/*
 * Page sections (home, product, contact). Class names come from the theme
 * patterns; tokens come from theme.json.
 */

.ramen-section-title {
	font-size: var(--wp--preset--font-size--giant);
	line-height: 1.2;
	max-width: 780px;
}

/* ================= Home: hero ================= */

.wp-block-cover.is-style-hero {
	padding: 0;
	align-items: stretch;
	background-color: var(--wp--preset--color--contrast);
	overflow: hidden;
}

.wp-block-cover.is-style-hero::before,
.wp-block-cover.is-style-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: var(--ramen-img-hero-frame) center / cover no-repeat;
}

.wp-block-cover.is-style-hero::after {
	background-image: var(--ramen-img-hero-glow);
	opacity: 0.85;
}

.wp-block-cover.is-style-hero .wp-block-cover__inner-container {
	/* Core's cover CSS forces z-index 1 with a far heavier selector, which
	   ties the glow overlays above and washes out the text. */
	z-index: 2 !important;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.ramen-home-hero {
	margin-bottom: -300px !important;
	padding-bottom: 300px !important;
	min-height: 1080px !important;
}

.ramen-home-hero__grid {
	background: transparent;
	flex: 1 1 auto;
}

.ramen-home-hero__content {
	padding: 241px 65px 71px;
	color: var(--wp--preset--color--base);
}

.ramen-home-hero__title {
	font-family: var(--wp--preset--font-family--helvetica-now-display);
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.1;
	max-width: 735px;
	margin: 0 0 32px;
}

.ramen-home-hero__lead {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2;
	font-weight: 300;
	max-width: 735px;
	margin: 0;
}

.ramen-home-hero__lead strong {
	font-weight: 700;
}

.ramen-home-hero__actions {
	margin-top: 64px;
}

/* Inline-flex link inside a block wrapper adds a line box (66px vs live 58px). */
.ramen-home-hero__actions .wp-block-button {
	display: flex;
}

/* Live keeps the hero link's 24px right padding at rest too. */
.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link {
	padding-right: 24px;
}

/* Live's hero arrow is a 16x14 glyph in the 58px tile; the shared 18px SVG reads smaller. */
.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link::before {
	background-size: 34px;
}

/* Hover: live keeps the 16px gap here and uses the smaller periwinkle arrow. */
.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link:hover,
.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link:focus-visible {
	column-gap: 16px;
}

.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link:hover::before,
.ramen-home-hero__actions .wp-block-button.is-style-arrow-light .wp-block-button__link:focus-visible::before {
	background-size: 22px;
}

/* ================= Home: about ================= */

.ramen-home-about {
	z-index: 4;
	background: linear-gradient(rgba(4, 16, 84, 0), rgba(4, 16, 84, 0) 1%, var(--wp--preset--color--contrast) 20%);
	border-top: 1px solid var(--wp--preset--color--accent-2);
	border-bottom: 1px solid var(--wp--preset--color--accent-2);
	overflow: hidden;
}

.ramen-home-about::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ramen-img-glow-left) left center / auto 100% no-repeat;
	opacity: 0.6;
	pointer-events: none;
}

.ramen-home-about .ramen-rail {
	padding-top: 80px;
}

.ramen-home-about__content {
	padding: 120px 64px 188px;
}

.ramen-home-about__title {
	/* Live sets this h2 in Arial, not Helveticanowvar. */
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: var(--wp--preset--font-size--giant);
	max-width: 720px;
	margin: 0 0 64px;
}

.ramen-home-about__lead {
	max-width: 546px;
	margin: 0 0 120px auto !important;
}

.has-js .ramen-scroll-reveal .ramen-word {
	opacity: 0.2;
	transition: opacity 0.4s linear;
}

.has-js .ramen-scroll-reveal .ramen-word.is-lit {
	opacity: 1;
}

.ramen-home-about__highlights {
	gap: 166px;
	margin: 0;
}

.ramen-home-about__subtitle {
	font-family: var(--wp--preset--font-family--helvetica-now-display);
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: 0.64px;
	margin: 0 0 32px;
}

.ramen-home-about__highlights p {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

/* ================= Home: features (stacked panels) ================= */

.ramen-features {
	position: relative;
}

.ramen-feature {
	display: flex;
	min-height: 100vh;
	background: var(--wp--preset--color--base);
	margin: 0 !important;
	position: relative;
}

/* Live: image is 620px but shrinks (flex) with the text column when the frame is narrow. */
.ramen-feature__image {
	flex: 0 1 620px;
	box-sizing: border-box;
	width: 620px;
	min-width: 0;
	margin: 0;
	position: relative;
	border-right: 1px solid #000;
	overflow: hidden;
}

.ramen-feature__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ramen-feature__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ramen-img-glow-left) left top / 120% auto no-repeat;
	mix-blend-mode: screen;
	opacity: 0.9;
	pointer-events: none;
}

.ramen-feature__text {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	flex-direction: column;
	justify-content: flex-end;
	padding: 65px 75px 200px 65px;
	position: relative;
}

.ramen-feature__title {
	font-family: var(--wp--preset--font-family--helvetica-now-display);
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 0 0 32px;
}

.ramen-feature__body {
	font-size: var(--wp--preset--font-size--large);
	max-width: 372px;
	/* Live's body paragraphs keep a 10px bottom margin (bottom padding 200 + 10). */
	margin: 0 0 10px;
}

/* Live sizes each panel's paragraph individually. */
.ramen-feature:nth-child(1) .ramen-feature__body {
	max-width: 411px;
}

.ramen-feature:nth-child(2) .ramen-feature__body {
	max-width: 349px;
}

.ramen-feature:nth-child(3) .ramen-feature__body {
	max-width: 362px;
}

/* Mobile slider arrows injected by theme.js (shown at 767px and below). */
.ramen-feature__arrows {
	display: none;
}

/* Dot navigation injected by theme.js */
.ramen-feature__dots {
	position: absolute;
	right: 48px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.ramen-feature__dots::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: rgba(59, 78, 162, 0.3);
}

.ramen-feature__dot {
	position: relative;
	width: 12px;
	height: 12px;
	margin: 64px 0;
	border-radius: 50%;
	border: 0;
	padding: 0;
	/* --ramen-dot (0–1) is set from scroll progress by theme.js. */
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) calc(var(--ramen-dot, 0) * 100%), var(--wp--preset--color--accent));
	transform: scale(calc(1 + 1.2 * var(--ramen-dot, 0)));
	cursor: pointer;
	transition: transform 0.12s linear, background-color 0.12s linear;
}

@media (min-width: 992px) {
	/*
	 * All panels share one grid cell and pin together, so they never move;
	 * scroll position only decides which one is visible. The ::after spacer
	 * gives each panel one viewport of scroll (theme.js sets --ramen-feature-count).
	 */
	.ramen-features {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.ramen-feature {
		grid-area: 1 / 1;
		position: sticky;
		top: 0;
		height: 100vh;
	}

	.ramen-features::after {
		content: "";
		grid-area: 2 / 1;
		height: calc(var(--ramen-feature-count, 3) * 100vh);
	}

	/* theme.js toggles .is-shown; later panels paint over earlier ones. */
	.ramen-features.is-fading > .ramen-feature {
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s ease, visibility 0s linear 0.35s;
	}

	.ramen-features.is-fading > .ramen-feature.is-shown {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.35s ease, visibility 0s;
	}
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
	.ramen-features.is-fading > .ramen-feature,
	.ramen-features.is-fading > .ramen-feature.is-shown {
		transition: none;
	}
}

@media (max-width: 991px) {
	.ramen-home-features {
		padding-right: 0;
	}

	.ramen-feature {
		flex-direction: column;
		min-height: 0;
	}

	.ramen-feature__image {
		flex: none;
		width: 100%;
	}

	.ramen-feature__image img {
		height: auto;
	}

	.ramen-feature__text {
		padding-bottom: 65px;
	}

	.ramen-feature__dots {
		display: none;
	}
}

/*
 * Live turns the panels into a slick slider: one panel at a time, arrows at
 * the top of the text. theme.js sets --ramen-feature-index.
 */
@media (max-width: 767px) {
	.ramen-home-features > .ramen-rail {
		background-color: var(--wp--preset--color--contrast);
	}

	.ramen-home-features .ramen-rail__label {
		padding-left: 4px;
		color: var(--wp--preset--color--base);
	}

	.ramen-features {
		display: flex;
		align-items: flex-start;
		overflow: hidden;
	}

	.ramen-feature {
		flex: 0 0 100%;
		transform: translateX(calc(var(--ramen-feature-index, 0) * -100%));
		transition: transform 0.3s ease;
	}

	.ramen-feature__image {
		border-right: 0;
	}

	.ramen-feature__image img {
		height: 545px;
		object-fit: cover;
	}

	.ramen-feature__text {
		justify-content: flex-start;
		padding: 52px 16px 64px;
	}

	.ramen-feature__arrows {
		display: flex;
		justify-content: flex-end;
		gap: 46px;
		padding-right: 19px;
		margin-bottom: 78px;
	}

	.ramen-feature__title {
		font-size: 28px;
	}

	.ramen-feature .ramen-feature__body {
		max-width: none;
		font-size: 16px;
		line-height: 1.5;
	}
}

@media (max-width: 479px) {
	.ramen-feature__arrows {
		margin-bottom: 84px;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.ramen-feature {
		transition: none;
	}
}

/* ================= Home: industries (stacked cards) ================= */

.ramen-home-industries__content {
	padding: 64px;
}

.ramen-home-industries .ramen-section-title {
	margin: 0 0 155px;
	max-width: 777px;
}

.ramen-stack {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ramen-stack > * {
	margin: 0 !important;
}

/* Live's empty clearfix pseudo-elements take a flex-gap slot: one gap of space above and below the cards. */
.ramen-stack::before,
.ramen-stack::after {
	content: "";
	display: table;
}

.ramen-stack-card {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	padding: 0 64px 64px;
}

.ramen-stack-card:nth-child(2) { top: calc(var(--wp-admin--admin-bar--height, 0px) + 60px); }
.ramen-stack-card:nth-child(3) { top: calc(var(--wp-admin--admin-bar--height, 0px) + 120px); }
.ramen-stack-card:nth-child(4) { top: calc(var(--wp-admin--admin-bar--height, 0px) + 180px); }
.ramen-stack-card:nth-child(5) { top: calc(var(--wp-admin--admin-bar--height, 0px) + 240px); }

.ramen-stack-card__head {
	padding: 32px 0;
	margin-bottom: 64px;
	border-bottom: 1px solid var(--wp--preset--color--accent);
}

/* Learn More sits on one line with the title (block buttons add a line-box gap otherwise). */
.ramen-stack-card__head .wp-block-button {
	display: flex;
}

/* Industries Learn More: same navy hover pill as the base button, with a cyan arrow. */
.ramen-stack-card__head .wp-block-button.is-style-arrow .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315F5F5' stroke-width='1.5'%3E%3Cpath d='M3 12h17M14 5l7 7-7 7'/%3E%3C/svg%3E");
}

.ramen-stack-card__title {
	font-size: var(--wp--preset--font-size--huge);
	margin: 0;
}

.ramen-stack-card__body {
	gap: 32px;
	margin: 0;
}

.ramen-stack-card__body > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 0 590px !important;
}

.ramen-stack-card__body > .wp-block-column:last-child {
	flex: 1 1 0 !important;
	min-width: 0;
}

.ramen-stack-card__body > .wp-block-column > * {
	margin: 0;
}

.ramen-stack-card__image {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
}

.ramen-stack-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1440 / 1158;
	object-fit: cover;
}

.ramen-stack-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(108, 126, 238, 0.55), rgba(28, 176, 240, 0.15) 45%, rgba(255, 255, 255, 0) 70%);
	mix-blend-mode: screen;
	pointer-events: none;
}

/* Disclosure rows (core/details) */
.ramen-disclosure {
	border-bottom: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.ramen-disclosure > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
	cursor: pointer;
	list-style: none;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.4;
}

.ramen-disclosure > summary::-webkit-details-marker {
	display: none;
}

.ramen-disclosure > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	background: url("../images/industry-accordion-icon.png") center / contain no-repeat;
	transition: transform 0.3s var(--ramen-ease);
}

/* The caret flips vertically (theme.js adds `.is-closing` while the row folds up). */
.ramen-disclosure[open]:not(.is-closing) > summary::after {
	transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
	.ramen-disclosure > summary::after {
		transition: none;
	}
}

.ramen-disclosure > :not(summary) {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
	padding: 16px 0 0;
}

/* Tablet: single column, image hidden, Learn More moves under the rows. Cards stay sticky. */
@media (max-width: 991px) {
	.ramen-home-industries__content {
		max-width: 704px;
		padding: 64px;
	}

	.ramen-stack-card {
		padding: 0 64px 186px;
	}

	.ramen-stack-card__head .wp-block-buttons {
		position: absolute;
		left: 64px;
		right: 64px;
		bottom: 64px;
		justify-content: flex-start;
	}

	.ramen-stack-card__body > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}

	.ramen-stack-card__body > .wp-block-column:last-child {
		display: none;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ramen-home-industries__content {
		padding: 32px 16px 64px;
	}

	.ramen-home-industries .ramen-section-title {
		margin-bottom: 48px;
		font-size: 32px;
	}

	.ramen-stack {
		gap: 16px;
	}

	.ramen-stack-card {
		padding: 16px 32px 146px;
	}

	.ramen-stack-card__head {
		padding: 16px 0;
		margin-bottom: 32px;
	}

	.ramen-stack-card__title {
		font-size: 32px;
	}

	.ramen-stack-card__head .wp-block-buttons {
		left: 32px;
		right: 32px;
		bottom: 32px;
	}

	.ramen-stack-card .wp-block-button.is-style-arrow .wp-block-button__link {
		font-size: 16px;
	}

	.ramen-stack-card .wp-block-button.is-style-arrow .wp-block-button__link::before {
		width: 50px;
		height: 50px;
		background-size: 15px;
	}

	.ramen-disclosure > summary {
		font-size: 16px;
		line-height: 1.5;
	}

	.ramen-disclosure > summary::after {
		width: 24px;
		height: 24px;
	}
}

/* ================= Home: customers logo wall =================
 * Live: .container-17 > two .grid-2 rows (6 + 5), logos at fixed widths
 * centered in their cells.
 */

.ramen-logos {
	padding: 64px;
}

/*
 * Live's rules above each home slider (.div-block-7): from the content's left
 * edge off the right of the screen. The outset paints past the frame without
 * adding scrollable overflow.
 */
.ramen-home-customers .ramen-slider,
.ramen-home-founders .ramen-main {
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-image: linear-gradient(var(--wp--preset--color--contrast) 0 0) 1 / 1px 0 0 / 0 100vw 0 0;
}

.ramen-logos > * {
	margin: 0 !important;
}

.ramen-logos__row {
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	gap: 0 !important;
	min-height: 200px;
	align-items: center;
}

.ramen-logos__item {
	margin: 0 !important;
	justify-self: center;
}

.ramen-logos__item img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.ramen-logos {
		max-width: 705px;
		padding: 64px 32px;
	}

	.ramen-logos__row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 30px !important;
		align-content: center;
	}
}

@media (max-width: 767px) {
	.ramen-logos {
		max-width: none;
		padding: 32px 16px 64px;
	}

	.ramen-logos__row {
		gap: 16px 4px !important;
	}

	.ramen-logos__item img {
		height: 134px;
		object-fit: contain;
	}
}

/* ================= Sliders (segments, founders) ================= */

.ramen-slider {
	position: relative;
	overflow: hidden;
}

.ramen-slider > .ramen-slide {
	margin: 0 !important;
}

.ramen-slide {
	display: grid;
	grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
	background: var(--wp--preset--color--base);
}

/* Slides stack in one cell (the slider takes the tallest, as live equalises heights).
   Photos crossfade; copy fades out, then in; the thumbnail nav never fades. */
.has-js .ramen-slider.is-ready {
	display: grid;
	background: var(--wp--preset--color--base);
}

.has-js .ramen-slider.is-ready > .ramen-slide {
	grid-area: 1 / 1;
	background: none;
	visibility: hidden;
	transition: visibility 0s linear 0.6s;
}

.has-js .ramen-slider.is-ready > .ramen-slide.is-active {
	z-index: 1;
	visibility: visible;
	transition: none;
}

.has-js .ramen-slider.is-ready > .ramen-slide > .ramen-slide__image {
	opacity: 0;
	transition: opacity 0s linear 0.6s;
}

.has-js .ramen-slider.is-ready > .ramen-slide.is-active > .ramen-slide__image {
	opacity: 1;
	transition: opacity 0.6s ease;
}

.has-js .ramen-slider.is-ready > .ramen-slide > .ramen-slide__panel > :not(.ramen-slider__nav) {
	opacity: 0;
	transition: opacity 0.25s ease;
}

.has-js .ramen-slider.is-ready > .ramen-slide.is-active > .ramen-slide__panel > :not(.ramen-slider__nav) {
	opacity: 1;
	transition: opacity 0.4s ease 0.2s;
}

.has-js .ramen-slider.is-ready > .ramen-slide:not(.is-active) .ramen-slider__nav {
	visibility: hidden;
}

.ramen-slide__image {
	margin: 0;
	border-right: 1px solid var(--wp--preset--color--contrast);
	min-height: 640px;
	overflow: hidden;
}

.ramen-slide__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ramen-slide > * {
	margin: 0 !important;
}

/* Live: .container-22 (105/64/117) + .container-23 (0 32). Live breaks long words in narrow panels. */
.ramen-slide__panel {
	padding: 105px 96px 117px;
	overflow-wrap: break-word;
}

.ramen-slide__panel > * {
	margin: 0;
}

.ramen-slide__title {
	font-family: var(--wp--preset--font-family--helvetica-now-display);
	font-size: var(--wp--preset--font-size--giant);
	font-weight: 300;
	margin: 0 0 16px;
}

.ramen-slide__subtitle {
	font-family: var(--wp--preset--font-family--helvetica-now-display);
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.52px;
	line-height: 1.4;
	margin: 0 0 32px;
}

.ramen-slide__text {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0 0 32px;
}

/* Live keeps the 32px bottom gap on the last paragraph too (founder bios). */
.ramen-slide__panel > .ramen-slide__text {
	margin-bottom: 32px;
}

.ramen-slide__points {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 32px;
}

.ramen-slide__points li {
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--chivo-mono);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.2;
}

/* Thumbnail nav injected by theme.js */
.ramen-slider__nav {
	display: flex;
	align-items: center;
	gap: 47px;
	/* Hold the active thumb's height so the grow/shrink never shifts the copy below. */
	min-height: 125px;
	margin: 0 0 64px !important;
}

.ramen-slider__thumb {
	width: 90px;
	height: 90px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
	background: var(--wp--preset--color--base-2);
	transition: width 0.3s var(--ramen-ease), height 0.3s var(--ramen-ease), box-shadow 0.3s ease;
}

/* Editor-only source for the nav thumb; the front end builds the nav from it. */
.ramen-slide__thumb {
	display: none;
}

.editor-styles-wrapper .ramen-slide__thumb {
	display: block;
	width: 90px;
	margin: 0 0 24px;
}

.ramen-slider__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ramen-slider__thumb[aria-current="true"] {
	width: 125px;
	height: 125px;
	box-shadow: 0 0 0 1px var(--wp--preset--color--contrast-2);
}

.ramen-slider__arrows {
	display: none;
	gap: 46px;
	margin-left: auto;
	padding-right: 19px;
}

/* Live's mobile arrows (.arrow-wrapper): bare 43x37 PNGs at half size. */
.ramen-slider__arrow,
.ramen-feature__arrow {
	width: 19.8px;
	height: 17.1px;
	padding: 0;
	border: 0;
	background: url(../images/arrow-right-slider-mobile.png) center / contain no-repeat;
	cursor: pointer;
}

.ramen-slider__arrow.is-prev,
.ramen-feature__arrow.is-prev {
	background-image: url(../images/arrow-left-slider-mobile.png);
}

.ramen-slider.is-portraits .ramen-slide__image {
	background: #e5e5e5;
}

.ramen-slider.is-portraits .ramen-slide__image img {
	object-position: center top;
}

.ramen-home-customers,
.ramen-home-founders {
	border-bottom: 0;
}

@media (max-width: 991px) {
	.ramen-slide {
		grid-template-columns: minmax(0, 1fr);
	}

	.ramen-slide__image {
		border-right: 0;
		min-height: 0;
		height: 700px;
	}

	.ramen-slide__panel {
		max-width: 720px;
	}
}

@media (max-width: 767px) {
	.ramen-slide__image {
		height: 545px;
	}

	.ramen-slide__panel {
		max-width: none;
		padding: 46px 16px 32px;
	}

	.ramen-slider__thumb,
	.ramen-slide__points {
		display: none;
	}

	.ramen-slider__nav {
		min-height: 0;
		margin-bottom: 78px !important;
	}

	/* Live leaves 24px more space between the customer slider and the founders band. */
	.ramen-home-customers .ramen-slider {
		padding-bottom: 24px;
	}

	.ramen-slider__arrows {
		display: flex;
	}

	.ramen-slide__title {
		margin-bottom: 8px;
		font-size: 32px;
	}

	.ramen-slide__subtitle,
	.ramen-slide__text {
		font-size: 16px;
		line-height: 1.5;
	}
}

/* ================= Responsive: hero/about =================
 * Live values (.section-5 / .section-6): both drop the rail at 991px.
 */

@media (max-width: 991px) {
	.ramen-home-hero__grid,
	.ramen-home-about {
		grid-template-columns: minmax(0, 1fr);
	}

	.ramen-home-hero__grid > .ramen-main,
	.ramen-home-about > .ramen-main {
		grid-column: 1;
		border-left: 0;
	}

	.ramen-home-about > .ramen-rail {
		display: none;
	}

	.ramen-home-hero {
		min-height: 0 !important;
	}

	.ramen-home-hero__content {
		padding: 285px 0 126px;
	}

	.ramen-home-hero__title {
		max-width: 600px;
		margin-bottom: 16px;
		font-size: 46px;
		line-height: 1.2;
	}

	.ramen-home-hero__lead {
		font-size: 24px;
		line-height: 1.4;
	}

	.ramen-home-hero__actions {
		margin-top: 32px;
	}

	.ramen-home-about__content {
		padding: 107px 0 100px;
	}

	.ramen-home-about__title {
		margin-bottom: 32px;
		font-size: 32px;
	}

	.ramen-home-about__lead {
		margin: 0 0 120px !important;
	}

	.ramen-home-about__highlights {
		gap: 30px;
	}
}

/* Core stacks columns below 782px; live keeps two until 767px. */
@media (min-width: 768px) and (max-width: 781px) {
	.ramen-home-about__highlights {
		flex-wrap: nowrap !important;
	}

	.ramen-home-about__highlights > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

@media (max-width: 767px) {
	/* Base rail rules drop side padding at 767px; live keeps a 16px gutter here. */
	.ramen-home-hero__grid,
	.ramen-home-about {
		padding-inline: 16px;
	}

	.ramen-home-about {
		background-image: linear-gradient(rgba(4, 16, 84, 0), rgba(4, 16, 84, 0) 0%, var(--wp--preset--color--contrast) 10%);
	}

	.ramen-home-about__lead {
		margin-bottom: 64px !important;
		font-size: 18px;
		letter-spacing: 0.52px;
	}

	.ramen-home-about__highlights {
		gap: 64px;
	}

	.ramen-home-about__subtitle {
		margin-bottom: 16px;
		font-size: 28px;
	}

	.ramen-home-about__highlights p {
		font-size: 16px;
		line-height: 1.5;
	}
}

@media (max-width: 479px) {
	.ramen-home-about {
		background-image: linear-gradient(rgba(4, 16, 84, 0), rgba(4, 16, 84, 0) 0%, var(--wp--preset--color--contrast) 5%);
	}
}

/* ================= Page hero (product) ================= */

.ramen-page-hero {
	border-bottom: 1px solid var(--wp--preset--color--accent-2);
	overflow: hidden;
}

.ramen-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../images/product-hero-glow.png") left top / 100% 100% no-repeat;
	opacity: 0.9;
	pointer-events: none;
}

.ramen-page-hero__content {
	padding: 206px 64px 120px;
}

.ramen-page-hero__title {
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.1;
	max-width: 1190px;
	margin: 0 0 32px;
}

.ramen-page-hero__lead {
	max-width: 1110px;
	margin: 0;
	letter-spacing: 0;
}

/* ================= Product: three layers ================= */

.ramen-layers {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 64px max(64px, var(--ramen-frame-inset));
	position: relative;
}

.ramen-layers__cols {
	gap: 20px;
	margin: 0;
}

.ramen-layers__title {
	font-size: var(--wp--preset--font-size--giant);
	font-weight: 300;
	margin: 0 0 32px;
	max-width: 515px;
}

.ramen-layers__intro .ramen-lead {
	max-width: 515px;
}

/* Live uses a fixed intro column; the cards take the rest of the frame. */
@media (min-width: 992px) {
	.ramen-layers__intro {
		flex: 0 0 515px !important;
	}

	/* Live never narrows the cards below 513px (they overflow the frame at 992-1100). */
	.ramen-layers__cards {
		flex: 1 1 0 !important;
		min-width: 513px;
	}
}

.ramen-layers__cards {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ramen-layers__cards > * {
	margin: 0 !important;
}

.ramen-layer-card {
	display: flex;
	gap: 32px;
	padding: 32px 32px 64px;
	border-radius: 20px;
	border: 1px solid var(--wp--preset--color--accent);
}

.ramen-layer-card > * {
	margin: 0 !important;
}

.ramen-layer-card {
	transition: opacity 0.35s ease;
}

.ramen-layer-card.is-intelligence {
	background-image: linear-gradient(39deg, #6c7eee 10%, #c4cae3 100%, #fff);
	border-color: #c4cae3;
}

.ramen-layer-card.is-autonomy {
	background: var(--wp--preset--color--contrast-2);
	padding-bottom: 32px;
	cursor: pointer;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

/* Live: only the Autonomy card lights up. It turns accent with a pale border and dims the other two layers. */
.ramen-layer-card.is-autonomy:hover {
	background-color: var(--wp--preset--color--accent);
	border-color: #f9faff;
}

.ramen-layers__cards:has(.ramen-layer-card.is-autonomy:hover) .ramen-layer-card:not(.is-autonomy) {
	opacity: 0.4;
}

.ramen-layer-card.is-input {
	background: var(--wp--preset--color--contrast);
	padding-right: 64px;
}

.ramen-layer-card__head {
	flex: 0 0 295px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ramen-layer-card__head > * {
	margin: 0 !important;
}

.ramen-layer-card__head .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 24px;
}

/* Live shows only the arrow tile; the label fades in when the card is hovered. */
.ramen-layer-card .ramen-modal-trigger .wp-block-button__link {
	min-height: 58px;
	color: transparent;
	transition: color 0.35s ease;
}

/* Live's arrow tile is the full 58px, not the is-small 40px tile. */
.ramen-layer-card .ramen-modal-trigger .wp-block-button__link::before {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background-size: 21px;
}

.ramen-layer-card .ramen-modal-trigger .wp-block-button__link:hover,
.ramen-layer-card .ramen-modal-trigger .wp-block-button__link:focus-visible,
.ramen-layer-card.is-autonomy:hover .ramen-modal-trigger .wp-block-button__link {
	color: inherit;
	background: none;
	padding-right: 0;
	column-gap: 16px;
}

/* Live: the tile is accent by default and contrast-2 while the card is hovered; the base nudge is removed. */
.ramen-layer-card.is-autonomy .wp-block-button.ramen-modal-trigger .wp-block-button__link::before {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background-color: var(--wp--preset--color--accent);
	background-size: 21px;
	transition: background-color 0.35s ease, transform 0.35s ease;
}

.ramen-layer-card.is-autonomy .wp-block-button.ramen-modal-trigger .wp-block-button__link:hover::before,
.ramen-layer-card.is-autonomy .wp-block-button.ramen-modal-trigger .wp-block-button__link:focus-visible::before,
.ramen-layer-card.is-autonomy:hover .wp-block-button.ramen-modal-trigger .wp-block-button__link::before {
	background: var(--wp--preset--color--contrast-2) var(--ramen-arrow-white) center / 21px no-repeat;
}

.ramen-layer-card__title {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 300;
}

.ramen-layer-card__subtitle {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

.ramen-layer-card.is-input .ramen-layer-card__subtitle {
	color: var(--wp--preset--color--accent);
}

.ramen-layer-card__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 17px;
	border-left: 1px solid var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 300;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ramen-layers__icons {
	margin: -12px 0 0 !important;
}

.ramen-layers__icons img {
	width: 100%;
	display: block;
}

/* Hidden detail panel opened as a modal (see theme.js). Inline in the editor. */
.ramen-modal {
	background: rgba(4, 16, 84, 0.8);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 20px;
	padding: 64px;
	color: var(--wp--preset--color--base);
	margin-top: 64px;
}

.has-js .ramen-layers .ramen-modal {
	display: none;
}

.ramen-modal__title {
	font-size: var(--wp--preset--font-size--huge);
	margin: 0 0 32px;
}

.ramen-modal p {
	font-size: var(--wp--preset--font-size--large);
}

.ramen-modal img {
	display: block;
	width: 100%;
	height: auto;
}

dialog.ramen-dialog {
	width: min(1312px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

dialog.ramen-dialog::backdrop {
	background: rgba(4, 16, 84, 0.7);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

dialog.ramen-dialog.is-open::backdrop {
	opacity: 1;
}

/* Panel rises and settles in; theme.js toggles .is-open and waits for the exit before closing. */
dialog.ramen-dialog > * {
	opacity: 0;
	transform: translateY(24px) scale(0.97);
	transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

dialog.ramen-dialog.is-open > * {
	opacity: 1;
	transform: none;
}

dialog.ramen-dialog:not(.is-open) > * {
	transition-duration: 0.22s;
	transition-timing-function: ease-in;
}

@media (prefers-reduced-motion: reduce) {
	dialog.ramen-dialog::backdrop,
	dialog.ramen-dialog > * {
		transition: none;
		transform: none;
	}
}

dialog.ramen-dialog .ramen-modal {
	display: block !important;
	margin: 0;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: rgba(4, 16, 84, 0.92);
}

/* Live: 58px accent tile, 32px in from the top and right edges, no hover change. */
.ramen-dialog__close {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 2;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	border: 0;
	cursor: pointer;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='1.5'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.ramen-dialog__video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ramen-dialog__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ================= Split panels (image + text) ================= */

.ramen-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding-inline: var(--ramen-frame-inset);
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	min-height: 690px;
}

.ramen-split > * {
	margin: 0 !important;
}

.ramen-split.is-blue {
	background: var(--wp--preset--color--contrast-2);
	color: var(--wp--preset--color--base);
}

.ramen-split.is-light {
	background: #f9faff;
	color: var(--wp--preset--color--contrast);
}

.ramen-split__image {
	position: relative;
	overflow: hidden;
}

.ramen-split__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ramen-split__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 96px 64px;
}

.ramen-split__text > * {
	margin: 0;
	max-width: 580px;
}

.ramen-split__text p + p {
	margin-top: 1.4em;
}

.ramen-split__title {
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 300;
	margin: 0 0 64px;
}

.ramen-split.is-light .ramen-split__title {
	margin-bottom: 32px;
}

/* Live: the text column is top-aligned under a fixed top offset, 20px copy. */
.ramen-split.is-blue .ramen-split__text {
	justify-content: flex-start;
	padding: 252px 32px 120px 64px;
}

.ramen-split.is-light .ramen-split__text {
	justify-content: flex-start;
	/* Live's copy block is min(646px, 50%) wide and ends at the centre line. */
	padding: 140px 64px 120px max(32px, calc(100% - 614px));
}

.ramen-split__text p {
	font-size: 20px;
	line-height: 1.4;
	font-weight: 400;
	max-width: 550px;
}

/* ================= Product: visibility panel ================= */

.ramen-visibility {
	padding: 64px calc(64px + var(--ramen-frame-inset));
	background: var(--wp--preset--color--base);
}

.ramen-visibility__panel {
	position: relative;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 20px;
	padding: 32px 32px 64px;
	overflow: hidden;
}

.ramen-visibility__panel > * {
	margin: 0;
	position: relative;
}

.ramen-visibility__image {
	position: absolute !important;
	top: 0;
	right: 0;
	width: 50%;
	margin: 0 !important;
}

.ramen-visibility__image img {
	display: block;
	width: 100%;
}

.ramen-visibility__intro {
	max-width: 614px;
	padding: 32px 32px 0;
	margin-bottom: 32px !important;
}

.ramen-visibility__title {
	font-size: var(--wp--preset--font-size--giant);
	font-weight: 300;
	margin: 0 0 32px;
}

/* Live: three columns, 20px apart, each card padded 32px. */
.ramen-visibility__points {
	gap: 20px;
	margin: 0;
}

.ramen-visibility__points > .wp-block-column {
	padding: 32px;
}

.ramen-visibility__icon {
	margin: 0 0 16px;
}

.ramen-visibility__icon img {
	width: 50px;
	display: block;
}

.ramen-visibility__point-title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
	margin: 0 0 16px;
}

.ramen-visibility__points p {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	margin: 0;
}

.ramen-visibility__intro p {
	font-weight: 400;
}

/* Live: 58px white tile with an outlined play icon; the label is navy, so only the tile shows at rest. */
.ramen-visibility .ramen-video-link .wp-block-button__link {
	position: relative;
	color: var(--wp--preset--color--contrast);
	border-radius: 40px;
	transition: all 0.35s ease;
}

/* Hover: the navy pill grows 24px on the right, the tile fades out and a white outlined play icon fades in at the left. */
.ramen-visibility .ramen-video-link .wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 24px;
	width: 30px;
	height: 30px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E") center / 30px no-repeat;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.ramen-visibility .ramen-video-link .wp-block-button__link:hover {
	gap: 4px;
	padding-right: 24px;
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.ramen-visibility .ramen-video-link .wp-block-button__link:hover::before {
	opacity: 0;
	transform: none;
}

.ramen-visibility .ramen-video-link .wp-block-button__link:hover::after {
	opacity: 1;
}

.ramen-layers__intro .ramen-lead {
	margin-bottom: 32px;
}

.ramen-visibility .wp-block-button.is-video .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041054' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E");
	background-size: 30px;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ================= CTA ================= */

.ramen-cta__content {
	padding: 64px 64px 64px 82px;
}

.ramen-cta__title {
	font-size: var(--wp--preset--font-size--huge);
	margin: 0 0 32px;
}

.ramen-cta__text {
	max-width: 1000px;
	margin: 0 0 64px;
	font-size: 20px;
	line-height: 1.4;
}

/* Live drops the rail below 992px: the hero is one full-width column. */
@media (max-width: 991px) {
	.ramen-page-hero {
		grid-template-columns: minmax(0, 1fr);
		padding-inline: 16px;
	}

	.ramen-page-hero .ramen-main {
		grid-column: 1;
		border-left: 0;
	}

	.ramen-page-hero__content {
		padding: 285px 0 120px;
	}

	.ramen-page-hero__title {
		font-size: 46px;
		line-height: 1.2;
		width: 600px;
		max-width: 100%;
		margin-bottom: 16px;
	}

	.ramen-page-hero__lead {
		font-size: 24px;
		line-height: 1.4;
	}

	.ramen-layers {
		padding: 64px;
	}

	.ramen-layers__intro .ramen-lead {
		font-size: 26px;
		line-height: 1.4;
	}

	.ramen-visibility {
		padding: 64px;
	}

	/* Live stacks the intro above the cards from 991px down. */
	.ramen-layers__cols {
		flex-wrap: wrap !important;
	}

	.ramen-layers__cols > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Live keeps the photo at the top right; the copy drops below a 250px band. */
	.ramen-visibility__panel {
		padding: 250px 32px 64px;
	}

	.ramen-visibility__intro {
		max-width: 614px;
		padding: 32px 32px 0;
		margin-bottom: 32px !important;
	}

	.ramen-visibility__points {
		flex-direction: column;
		gap: 20px;
	}

	.ramen-visibility__points > .wp-block-column {
		flex-basis: auto;
		padding: 32px;
	}

	.ramen-modal {
		padding: 32px 24px;
	}

	/* Live: CTA text sits on the 16px frame, no rail rule, 48px heading. */
	.ramen-cta {
		grid-template-columns: minmax(0, 1fr);
		padding-inline: 16px;
	}

	.ramen-cta .ramen-main {
		grid-column: 1;
		border-left: 0;
	}

	.ramen-cta__content {
		padding: 64px 0;
	}

	.ramen-cta__title {
		font-size: 48px;
		line-height: 1.2;
		width: 600px;
		max-width: 100%;
		margin-bottom: 16px;
	}

	.ramen-cta__text {
		font-size: 24px;
		line-height: 1.4;
	}
}

/* Product sections, mobile (live: 38px headings, 16px frame, stacked cards). */
@media (max-width: 767px) {
	.ramen-layers {
		padding: 64px 16px;
	}

	.ramen-layers__title {
		font-size: 38px;
	}

	/* Split panels stack: the photo is a 500px band above the copy. */
	.ramen-split {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.ramen-split__image {
		height: 500px;
	}

	.ramen-split.is-reversed .ramen-split__image {
		order: -1;
	}

	.ramen-split__text,
	.ramen-split.is-blue .ramen-split__text,
	.ramen-split.is-light .ramen-split__text {
		padding: 64px 16px;
	}

	.ramen-visibility {
		padding: 64px 16px;
	}

	.ramen-visibility__intro {
		padding: 32px 0 0;
	}

	.ramen-visibility__points {
		gap: 40px;
	}

	.ramen-visibility__points > .wp-block-column {
		padding: 0;
	}

	.ramen-split__title {
		margin-bottom: 64px;
	}
}

@media (max-width: 479px) {
	.ramen-page-hero__content {
		padding-top: 200px;
	}

	.ramen-split__title {
		margin-bottom: 32px;
	}

	/* Cards stack their head above the list below 480px (row layout until then). */
	.ramen-layer-card {
		flex-direction: column;
		gap: 32px;
	}

	.ramen-layer-card__head {
		flex-basis: auto;
		width: 100%;
	}

	/* Live fills 90% of the panel width for the dashboard photo here. */
	.ramen-visibility__image {
		width: 90%;
	}

	.ramen-split__title,
	.ramen-cta__title,
	.ramen-visibility__title {
		font-size: 38px;
	}
}

/* ================= Contact ================= */

.ramen-contact {
	--ramen-contact-photo-h: 767px;
	position: relative;
	overflow: hidden;
	/* Live: the photo band starts where the intro ends and the form card overhangs it. */
	padding-bottom: var(--ramen-contact-photo-h);
}

.ramen-contact__photo {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--ramen-contact-photo-h);
	margin: 0 !important;
	background: center / cover no-repeat;
}

.ramen-contact__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Live site's light-leak overlay, stretched over the whole photo. */
.ramen-contact__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ramen-img-contact-glow) 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

.ramen-contact__grid {
	position: relative;
	z-index: 1;
	margin-block-start: 0;
	min-height: inherit;
}

.ramen-contact__content {
	border-left: 0;
	padding: 102px 135px 101px 65px;
}

/* Rail rule: navy above the photo, cyan across it (as on the live site). */
.ramen-contact__content::before,
.ramen-contact__content::after {
	content: "";
	position: absolute;
	left: 0;
	pointer-events: none;
}

.ramen-contact__content::before {
	top: 0;
	bottom: 0;
	border-left: 1px solid var(--wp--preset--color--contrast);
}

.ramen-contact__content::after {
	top: 100%;
	height: var(--ramen-contact-photo-h);
	border-left: 1px solid #15f5f5;
}

.ramen-contact__cols {
	gap: 16px;
	margin: 0;
}

.ramen-contact__intro {
	padding-left: 0;
}

.ramen-contact__title {
	font-size: var(--wp--preset--font-size--giant);
	line-height: 1.2;
	margin: 0 0 32px;
}

.ramen-contact__lead {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	max-width: 515px;
}

/* Live: the card sits beside the intro and hangs over the photo, so it is out of flow. */
.ramen-contact__form {
	position: absolute;
	top: 102px;
	right: 135px;
	width: 40.4%;
	max-width: 535px;
}

.ramen-form-placeholder {
	border: 1px dashed currentColor;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	font-family: var(--wp--preset--font-family--chivo-mono);
	text-transform: uppercase;
}

/*
 * Tablet + mobile follow the live site's breakpoints (991/767), not the
 * theme's 781 rail breakpoint: columns stack. Tablet takes the form card out
 * of flow so the photo starts under the intro; mobile keeps the card in flow
 * and starts the photo 490px above its bottom so the card overlaps it.
 */
@media (max-width: 991px) {
	.ramen-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ramen-contact__content {
		grid-column: 1;
		padding: 102px 135px 192px 65px;
	}

	.ramen-contact__cols {
		flex-wrap: wrap !important;
	}

	.ramen-contact__cols > .wp-block-column {
		flex-basis: 100% !important;
	}

	.ramen-contact__intro {
		padding-left: 0;
	}

	/* Live wraps the lead 17px short of its box at tablet and mobile. */
	.ramen-contact__lead {
		padding-right: 17px;
	}

	/* Live (820px): the card starts 428px below the top of the section and overhangs the photo. */
	.ramen-contact__form {
		position: absolute;
		top: 428px;
		left: 65px;
		width: 535px;
	}
}

@media (max-width: 767px) {
	.ramen-contact {
		--ramen-contact-photo-h: 811px;
		/* Live (375px): the photo starts 490px above the bottom of the form card. */
		padding-bottom: calc(var(--ramen-contact-photo-h) - 490px);
	}

	.ramen-contact__photo {
		background-image: var(--ramen-img-contact-photo-mobile);
	}

	.ramen-contact__photo img {
		visibility: hidden;
	}

	.ramen-contact__photo::after {
		background-image: var(--ramen-img-contact-glow-mobile);
	}

	.ramen-contact__content {
		padding: 118px 16px 0;
	}

	.ramen-contact__content::before,
	.ramen-contact__content::after {
		display: none;
	}

	.ramen-contact__cols {
		gap: 69px;
	}

	.ramen-contact__title {
		font-size: 46px;
		margin-bottom: 16px;
	}

	.ramen-contact__form {
		position: static;
		width: auto;
		max-width: none;
	}
}
