/*
 * About Us (2026 design): hero, why Ramen exists, vision and mission, how we
 * work, founders, track record, investors. Builds on home.css (.ramen-section,
 * .ramen-marquee) and technology.css (.ramen-tech-hero; the CTA band is the
 * shared ramen/technology-cta pattern with About copy).
 */

/* ---------- Shared ---------- */

/* Spacing inside these sections comes from flex/grid gaps, not block margins. */
.ramen-about .wp-block-group > * {
	margin-block: 0 !important;
}

/* Section headings are Display MD (48) here; home.css takes them to 48/32 below 1200/768. */
@media (min-width: 1200px) {
	.ramen-about h2 {
		font-size: var(--wp--preset--font-size--huge);
	}
}

/* Text LG Regular body copy. */
.ramen-about__body {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

/* ---------- Hero ----------
 * The Technology hero (mirrored photo, five-gradient wash, glows) with this
 * page's photo box: 2000×1333 from (80, -151) at 1440, under the header.
 */

.wp-block-cover.ramen-about-hero .wp-block-cover__image-background,
.wp-block-cover.ramen-about-hero .wp-block-cover__background {
	top: -151px;
	left: 5.556%;
	width: 138.89%;
	height: 1333px;
}

/* Figma's image adjustments (contrast +0.47, saturation +0.27). */
.wp-block-cover.ramen-about-hero .wp-block-cover__image-background {
	object-position: 50% 50%;
	filter: contrast(1.2) saturate(1.2);
}

.wp-block-cover.ramen-about-hero .ramen-hero__title,
.wp-block-cover.ramen-about-hero .ramen-hero__lead {
	max-width: 860px;
}

/* ---------- Why Ramen exists ---------- */

.ramen-about-story__row {
	display: flex;
	align-items: center;
	gap: 64px;
}

.ramen-about-story__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.ramen-about-story__text h2 {
	margin-bottom: 0 !important;
}

.ramen-about-story__image {
	position: relative;
	flex: 0 0 560px;
	height: 520px;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

/* A navy fade toward the bottom of the photo. */
.ramen-about-story__image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(4, 16, 84, 0) 0%, rgba(4, 16, 84, 0.3) 100%);
}

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

/* ---------- Vision and mission ---------- */

.ramen-about-purpose {
	overflow: clip;
}

/* Periwinkle/cyan haze in the bottom-left corner (the home "How" glows). */
.ramen-about-purpose::before,
.ramen-about-purpose::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	background: center / 100% 100% no-repeat;
}

.ramen-about-purpose::before {
	left: calc(var(--ramen-frame-inset) - 1210px);
	top: -10px;
	width: 2175px;
	height: 1338px;
	background-image: url(../images/home/how-glow-1.webp);
}

.ramen-about-purpose::after {
	left: calc(var(--ramen-frame-inset) - 732px);
	top: 377px;
	width: 1219px;
	height: 828px;
	background-image: url(../images/home/how-glow-2.webp);
}

.ramen-about-purpose__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.ramen-about-statement {
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	min-height: 408px;
	padding: 64px;
	border: 1px solid var(--wp--preset--color--contrast-2);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--preset--color--contrast-2);
}

.ramen-about-statement > p {
	margin: 0;
	max-width: 465px;
}

.ramen-about-statement__label {
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--chivo-mono);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

/* Display SM Light. */
.ramen-about-statement__text {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 410;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

/* ---------- How we work ---------- */

.ramen-about-values h2 {
	max-width: 820px;
}

.ramen-about-values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.ramen-about-value {
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--gray-2);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--preset--color--base);
}

/* Icon tile; Figma's 8px spacer between two 16px gaps = 40px down to the title. */
.ramen-about-value .ramen-about-value__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	margin: 0 0 24px !important;
	border-radius: var(--wp--custom--radius--tile);
	background-color: var(--wp--preset--color--surface);
}

/* Display XS Regular. */
.ramen-about-value .ramen-about-value__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 410;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

/* Text LG Light. */
.ramen-about-value__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

/* ---------- Founders ----------
 * The cards run edge to edge of the main column: a rule under the heading,
 * a rule after each card and along the bottom. Each card is 980 tall at
 * 1440 with the LinkedIn button pinned to its foot.
 */

.ramen-about-founders > .ramen-main {
	gap: 32px;
	padding-inline: 0;
	padding-bottom: 0;
}

.ramen-about-founders h2 {
	padding-inline: 64px;
}

.ramen-about-founders__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--wp--preset--color--gray-2);
	border-bottom: 1px solid var(--wp--preset--color--gray-2);
}

.ramen-founder {
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	min-height: 980px;
	padding: 64px;
	border-right: 1px solid var(--wp--preset--color--gray-2);
}

.ramen-founder .ramen-founder__photo {
	aspect-ratio: 320.67 / 380;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: linear-gradient(180deg, #edf0ff 0%, #d1d9fa 100%);
}

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

.ramen-founder__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* Eyebrow Regular in a periwinkle outline pill. */
.ramen-founder__role {
	margin: 0;
	padding: 6px 16px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--chivo-mono);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

/* Display SM Regular. */
.ramen-about .ramen-founder__name {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 410;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

/* Text LG Light. */
.ramen-founder__bio {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.ramen-founder .ramen-founder__actions {
	margin-top: auto !important;
}

/* ---------- Track record ----------
 * The home logo marquee: 120px gaps and white edge fades; Figma scrolls one
 * logo set (1905px) every 35.5s.
 */

.ramen-about-track .ramen-marquee {
	--ramen-marquee-duration: 35.5s;
}

.ramen-about-track .ramen-marquee__track {
	min-height: 56px;
}

.ramen-about-track .ramen-about__body {
	font-size: var(--wp--preset--font-size--medium);
}

/* ---------- Investors ---------- */

.ramen-about-investors > .ramen-main {
	padding-block: 64px;
}

.ramen-about-investors__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ramen-about-investor {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 140px;
	padding: 16px;
	border: 1px solid var(--wp--preset--color--gray-2);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--preset--color--surface);
	text-align: center;
}

/* Display XS Bold (stands in for a logo). */
.ramen-about-investor__name {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

/* A logo in place of the name. Capped by height (compact marks like Cota)
   and by width (long wordmarks like Alumni Ventures) so they read at a similar size. */
.ramen-about-investor .wp-block-image {
	margin: 0;
}

.ramen-about-investor .wp-block-image img {
	display: block;
	max-width: min(100%, 244px);
	max-height: 44px;
	width: auto;
	height: auto;
}

.ramen-about-investor .wp-block-image.is-square img {
	max-height: 64px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
	.ramen-about-story__image {
		flex-basis: 44%;
		height: 460px;
	}

	.ramen-about-statement {
		min-height: 0;
		padding: 48px 40px;
	}

	.ramen-about-statement__text {
		font-size: var(--wp--preset--font-size--x-large);
		line-height: 1.3;
	}

	.ramen-about-values__grid {
		gap: 24px;
	}

	.ramen-about-founders h2 {
		padding-inline: 40px;
	}

	.ramen-founder {
		min-height: 0;
		padding: 40px;
	}

	.ramen-about-investors > .ramen-main {
		padding-block: 48px;
	}

	.ramen-about-investors__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.ramen-about-story__row {
		flex-direction: column;
		align-items: stretch;
		gap: 48px;
	}

	.ramen-about-story__image {
		flex-basis: auto;
		height: 420px;
	}

	.ramen-about-purpose__grid,
	.ramen-about-values__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ramen-about-founders__grid {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.ramen-founder + .ramen-founder {
		border-top: 1px solid var(--wp--preset--color--gray-2);
	}

	/* Portrait beside the copy while there is room. */
	.ramen-founder {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: 40px;
		row-gap: 24px;
	}

	.ramen-founder .ramen-founder__photo {
		grid-row: 1 / span 2;
		margin: 0 !important;
		align-self: start;
	}
}

@media (max-width: 767px) {
	/* Like the Technology hero: the photo fills the cover on phones. */
	.wp-block-cover.ramen-about-hero .wp-block-cover__image-background,
	.wp-block-cover.ramen-about-hero .wp-block-cover__background {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.ramen-about__body {
		font-size: var(--wp--preset--font-size--medium);
	}

	.ramen-about-story__image {
		height: 300px;
	}

	.ramen-about-statement {
		gap: 20px;
		padding: 32px 24px;
	}

	.ramen-about-statement__text {
		font-size: var(--wp--preset--font-size--large);
		line-height: 1.4;
	}

	.ramen-about-value {
		padding: 24px;
	}

	.ramen-about-founders > .ramen-main {
		gap: 40px;
	}

	.ramen-about-founders h2 {
		padding-inline: 16px;
	}

	.ramen-founder {
		display: flex;
		padding: 40px 16px;
	}

	.ramen-founder .ramen-founder__photo {
		width: min(100%, 320px);
	}

	.ramen-about-investors > .ramen-main {
		padding-block: 40px;
	}

	.ramen-about-investors__grid {
		gap: 12px;
	}

	.ramen-about-investor {
		min-height: 100px;
		padding: 16px;
	}

	.ramen-about-investor__name {
		font-size: var(--wp--preset--font-size--medium);
	}
}
