/*
Theme Name: Julie De Comarmond
Theme URI: https://julie-de-comarmond.ddev.site
Author: Eliott & Markus
Description: Bespoke one-page theme for Julie De Comarmond — executive advisory. Dark editorial design, ACF-driven, native WordPress menus.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jdc
*/

/* ---------------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------------- */
:root {
	--black: #000000;
	--card-dark: #1d1d1d;
	--cream: #fbf3ec;
	--red: #fd3d4d;
	--muted: rgba(251, 243, 236, 0.6);
	--muted-dark: rgba(29, 29, 29, 0.65);
	--font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Barlow', system-ui, sans-serif;
	--pad: clamp(20px, 4.16vw, 60px);
	--maxw: 1440px;
}

/* ---------------------------------------------------------------------------
   Reset / base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	position: relative; /* containing block for full-height .bg-line */
	background: var(--black);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
	position: relative;
}

.site-main { position: relative; z-index: 1; }

/* Decorative red line behind everything */
.bg-line {
	position: absolute;
	inset: 0;
	top: -12px;
	left: 5px;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
/* Box is anchored to the header + footer logo circles by JS (initRedLine).
   The no-JS fallback draws redline.svg (1440 x 5474 design frame) 1:1 over the
   page, which matches at the 1440 design width. */
.bg-line__img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	opacity: .9;
}
@media (max-width: 1100px) { .bg-line__img { opacity: .5; } }

/* Slim red "fil rouge" thread shown only on small screens (styled in the
   max-width: 768px block) where the full decorative curve is hidden. */
.fil-rouge-thread { display: none; }

/* ---------------------------------------------------------------------------
   Intro (logo curtain) — only for JS users; removed after it plays
--------------------------------------------------------------------------- */
.intro { display: none; }
.has-js .intro {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--black);
	will-change: transform;
}
.intro__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	will-change: transform;
}
.intro__logo svg { height: clamp(180px, 30vh, 300px); width: auto; display: block; }
body.intro-active { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.has-js .intro { display: none; }
	body.intro-active { overflow: visible; }
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 20;
}
.site-header .container {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 32px;
}
.site-header .header-right { margin-top: 8px; }
.site-logo img, .site-logo svg { height: 283px; width: auto; }
.header-right { display: flex; align-items: center; gap: 28px; }

.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: .02em;
	text-transform: capitalize;
	color: var(--red);
	border: 1px solid var(--red);
	border-radius: 999px;
	padding: 9px 20px;
	transition: background .2s, color .2s;
}
.btn-pill::after { content: "\2197"; font-size: 14px; }
.btn-pill:hover { background: var(--red); color: var(--black); }

/* "Let's talk" CTA — red text with arrow + heart */
.cta-talk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--red);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 23px;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1;
}
.cta-talk .cta-arrow { display: inline-flex; }
.cta-talk .cta-arrow svg { display: block; width: 27px; height: auto; }
.cta-talk .cta-heart { display: inline-flex; align-items: center; margin-left: -18px; margin-top: -3px; }
.cta-talk .cta-heart svg { display: block; width: 38px; height: auto; transform: rotate(-6.26deg); transform-origin: center; transition: transform .3s ease; }
.cta-talk:hover .cta-heart svg { transform: rotate(-6.26deg) scale(1.18); }
.cta-talk:hover .cta-arrow svg { animation: jdc-nudge .6s ease; }
@keyframes jdc-nudge { 50% { transform: translateX(4px); } }

.menu-toggle {
	width: 58px; height: 58px;
	border: 0;
	border-radius: 0;
	background: transparent url('assets/img/toggle-ring.svg') center / contain no-repeat;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	transition: transform .5s cubic-bezier(.65, 0, .35, 1), filter .25s ease;
}
.menu-toggle:hover { filter: brightness(1.15); }
.menu-toggle:active { transform: scale(.94); }
/* spin the torn ring as it morphs into the X */
body.nav-open .menu-toggle { transform: rotate(90deg); }
.menu-toggle span {
	display: block;
	width: 20px; height: 1.5px;
	background: var(--cream);
	transition: transform .45s cubic-bezier(.65, 0, .35, 1), opacity .3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Nav overlay */
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.97);
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay li { will-change: transform, opacity; }
/* When the menu is open, lift the header (and its toggle) above the overlay and
   hide the logo + CTA so the toggle stays in the exact same spot and morphs to an X. */
body.nav-open .site-header { z-index: 40; }
body.nav-open .site-logo,
body.nav-open .header-right .cta-talk { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-overlay ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav-overlay li { margin: 10px 0; }
.nav-overlay a {
	font-family: var(--font-head);
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(34px, 6vw, 72px);
	line-height: 1.05;
	color: var(--cream);
	transition: color .2s;
}
.nav-overlay a:hover { color: var(--red); }

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero { position: relative; padding-top: 22px; }
.hero-top {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 800px;
}
.hero-portrait {
	width: 543px;
	max-width: 50vw;
	aspect-ratio: 497 / 746;
}

/* Torn-paper cream frame around editorial images */
.framed {
	margin: 0;
	background: var(--cream);
	padding: 9px;
	box-sizing: border-box;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
	transform: rotate(var(--rot, 0deg));
	clip-path: polygon(
		0% 2%, 8% 0.6%, 19% 1.6%, 31% 0.4%, 44% 1.4%, 57% 0.3%, 70% 1.5%, 82% 0.5%, 93% 1.7%, 100% 0.8%,
		99.2% 12%, 100% 26%, 99% 39%, 100% 53%, 99.2% 67%, 100% 80%, 99% 92%, 99.6% 100%,
		88% 99%, 75% 100%, 62% 98.8%, 49% 100%, 36% 98.9%, 23% 100%, 11% 99%, 0.6% 100%,
		1% 86%, 0% 72%, 0.8% 58%, 0% 45%, 1% 31%, 0.2% 18%
	);
}
.framed img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Images whose torn frame is already baked into the PNG export (transparent edges) */
.framed.is-baked {
	background: none;
	padding: 0;
	clip-path: none;
	box-shadow: none;
	filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.5));
	aspect-ratio: auto;
}
.framed.is-baked img {
	height: auto;
	object-fit: contain;
}
.hero-quote {
	position: absolute;
	right: 0; top: 376px;
	width: 354px;
	text-align: right;
}
.hero-quote__dots {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}
.hero-quote__dots .dot {
	position: relative;
	width: 7px; height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cream);
	cursor: pointer;
	transition: box-shadow .3s ease;
}
.hero-quote__dots .dot.is-active {
	/* shredded red ring + cream centre — exact Figma art as bg */
	background: transparent;
}
.hero-quote__dots .dot.is-active::before {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 22px; height: 22px;
	transform: translate(-50%, -50%);
	background: url('assets/img/dot-active.svg') center / contain no-repeat;
}
.hero-quote__track {
	position: relative;
	min-height: 200px;
}
.hero-quote__slide {
	margin: 0;
	position: absolute;
	right: 0; top: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.hero-quote__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	position: relative;
}
.hero-quote__slide blockquote {
	margin: 0;
	font-family: var(--font-head);
	font-style: normal;
	font-weight: 400;
	font-size: clamp(26px, 2.55vw, 36.65px);
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--cream);
}
.hero-quote__slide figcaption {
	margin-top: 18px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--red);
}
.hero-title {
	display: flex;
	justify-content: space-between;
	gap: 2%;
	position: relative;
	z-index: 2; /* overlap the portrait, paint on top (matches Figma) */
	margin: clamp(-180px, -10vw, -48px) 0 0;
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(64px, 12.8vw, 184px);
	line-height: .9;
	letter-spacing: -.01em;
	color: var(--cream);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Section heading helpers
--------------------------------------------------------------------------- */
.h-display {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	line-height: .92;
	letter-spacing: -.005em;
	margin: 0;
}
.body-text {
	font-family: var(--font-body);
	font-size: 22px;
	line-height: 1.32;
	color: var(--muted);
}

/* Torn-paper edge for cards (matches Figma hand-torn treatment) */
.torn-edge {
	clip-path: polygon(
		0.4% 1.2%, 12% 0.2%, 25% 1.3%, 38% 0.3%, 51% 1.2%, 64% 0.2%, 77% 1.3%, 90% 0.3%, 99.6% 1%,
		99% 12%, 99.8% 25%, 99% 38%, 99.9% 51%, 99% 64%, 99.8% 77%, 99.1% 90%, 99.7% 99%,
		88% 99.7%, 75% 98.8%, 62% 99.7%, 49% 98.8%, 36% 99.7%, 23% 99%, 10% 99.7%, 0.5% 99%,
		1% 87%, 0.2% 74%, 0.9% 61%, 0.1% 48%, 0.9% 35%, 0.2% 22%, 0.8% 10%
	);
}

/* Section: pivotal moments */
.pivotal { padding-top: 150px; }
.pivotal__head {
	font-size: clamp(46px, 5.4vw, 76px);
	max-width: 760px;
	font-weight: 700;
}
.pivotal__intro {
	margin-left: auto;
	margin-right: auto;
	width: 560px;
	max-width: 100%;
	margin-top: 24px;
	color: var(--cream);
}

/* Numbered moment cards — staggered */
.moments {
	position: relative;
	height: 520px;
	margin-top: 40px;
}
.moment-card {
	position: absolute;
	background: transparent url('assets/img/frames/card-dark.png') center / 100% 100% no-repeat;
	padding: 34px 38px;
	display: flex;
	flex-direction: column;
}
.moment-card .num {
	font-family: var(--font-head);
	color: var(--red);
	font-size: 22px;
	line-height: 1;
	margin-bottom: 16px;
}
.moment-card .mtitle {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.05;
	color: var(--cream);
	margin: 0 0 auto;
}
.moment-card .mtext {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.15;
	color: var(--muted);
	margin-top: 28px;
}
.moment-card:nth-child(1) { left: 3%;  top: 0;   width: 478px; height: 478px; transform: rotate(-1.24deg); }
.moment-card:nth-child(2) { left: 43%; top: 90px; width: 298px; height: 298px; transform: rotate(-2.13deg); }
.moment-card:nth-child(3) { left: 70%; top: 97px; width: 408px; height: 408px; transform: rotate(1.72deg); }

/* ---------------------------------------------------------------------------
   How Julie Helps
--------------------------------------------------------------------------- */
.help { padding-top: 150px; }
.help__head {
	font-size: clamp(40px, 4.6vw, 64px);
	max-width: 560px;
	margin-inline: auto;
	text-align: left;
}
.help__intro {
	margin: 28px auto 0;
	max-width: 560px;
	color: var(--cream);
	text-align: left;
}
.services {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 90px;
}
.service-card {
	background: transparent url('assets/img/frames/card-dark.png') center / 100% 100% no-repeat;
	padding: 50px 35px;
	min-height: 468px;
	display: flex;
	flex-direction: column;
}
.service-card .stitle {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 59px;
	line-height: 1;
	color: var(--cream);
	margin: 0 0 22px;
}
.service-card .stext { color: var(--muted); margin-bottom: auto; }
.service-card ul {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
}
.service-card li {
	color: var(--muted);
	font-size: 22px;
	line-height: 1.4;
	padding-left: 28px;
	position: relative;
}
.service-card li::before {
	content: "";
	position: absolute;
	left: 0; top: .72em;
	width: 14px; height: 1.5px;
	background: var(--red);
}

/* ---------------------------------------------------------------------------
   Signature Experiences
--------------------------------------------------------------------------- */
.signature { padding-top: 160px; position: relative; }
.signature__head {
	font-family: var(--font-head);
	font-style: italic;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	color: var(--cream);
	line-height: .83;
}
.signature__head .top    { display: block; font-size: clamp(48px, 6.6vw, 95px); }
.signature__head .bottom { display: block; font-size: clamp(72px, 10.7vw, 154px); }

.signature__stage {
	position: relative;
	height: 840px;
	margin-top: 30px;
	isolation: isolate; /* local stacking context: photo < red-line clone < cards */
}
.signature__photo {
	position: relative;
	z-index: 0;
	margin: 0 auto;
	width: 554px;
	max-width: 56vw;
	aspect-ratio: 555 / 783;
}
/* Clone of the global red line drawn on top of the photo but under the cards.
   Clipped so only the lower diagonal sits on top — the top-left segment stays
   behind the photo (drawn by the global .bg-line). Positioned by initRedLine. */
.sig-redline {
	position: absolute;
	inset: 0;
	top: 47px;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
	clip-path: polygon(28% 50%, 40% 16%, 72% 16%, 72% 90%, 28% 90%);
	transform: rotate(2.3deg);
}
.sig-redline__img {
	position: absolute;
	left: 0;
	top: 0;
	transform-origin: 0 0;
	opacity: .9;
}

/* Clone of the red line drawn ON TOP of the hero photo (clip set by initRedLine).
   Removed per client request — the line stays behind the first image. */
.hero-redline {
	display: none;
	position: absolute;
	inset: 0;
	top: 34px;
	left: 5px;
	overflow: hidden;
	pointer-events: none;
	z-index: 5;
	transform: rotate(2.4deg);
}
.hero-redline__img {
	position: absolute;
	left: 0;
	top: 0;
	transform-origin: 0 0;
	opacity: .9;
}
.sig-card {
	position: absolute;
	display: flex;
	flex-direction: column;
	width: 342px;
	max-width: 28vw;
	min-height: 367px;
	background: transparent url('assets/img/frames/card-cream.png') center / 100% 100% no-repeat;
	color: var(--card-dark);
	padding: 34px 28px;
	filter: drop-shadow(0 12px 28px rgba(0,0,0,.32));
	z-index: 2; /* above the red-line clone */
}
.sig-card .ctitle {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(34px, 3vw, 46px);
	line-height: 1;
	margin: 0 0 16px;
	color: #000;
}
.sig-card .ctext {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: clamp(17px, 1.5vw, 22px);
	line-height: 1.3;
	color: rgba(0, 0, 0, 0.6);
}
.sig-card:nth-child(2) { left: calc(50% - 563px); top: 30px;  transform: rotate(-7deg); }
.sig-card:nth-child(3) { left: calc(50% + 171px); top: 67px;  transform: rotate(-2deg); z-index: 3; }
.sig-card:nth-child(4) { left: calc(50% + 5px);    top: 416px; transform: rotate(9deg); }

/* ---------------------------------------------------------------------------
   Leadership Beyond Borders
--------------------------------------------------------------------------- */
.beyond { padding-top: 120px; padding-bottom: 160px; }
.beyond__head {
	font-size: clamp(48px, 6.6vw, 96px);
	margin-left: 176px;
	margin-bottom: 50px;
}
.beyond__head em { font-style: italic; font-weight: 300; color: var(--red); }
.beyond__grid {
	display: grid;
	grid-template-columns: 344px 1fr;
	gap: 60px;
	align-items: start;
	margin-left: 40px;
}
.beyond__photo {
	width: 344px;
	aspect-ratio: 344 / 477;
}
.beyond__body { max-width: 648px; padding-top: 10px; }
.beyond__body p { color: var(--muted); margin-bottom: 1.1em; font-size: 22px; line-height: 1.32; }
.beyond__actions {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-top: 40px;
}
.link-underline {
	font-family: var(--font-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 23px;
	color: var(--cream);
}
.link-underline:hover { color: var(--red); }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	z-index: 1;
	padding: 80px 0 60px;
}
.site-footer .container {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: end;
}
/* Left group: LinkedIn + name/credit. Logo sits in the right column so the
   fil rouge (anchored to .footer-logo by JS) now sweeps to the right edge. */
.footer-left { display: flex; flex-direction: column; gap: 48px; }
.footer-logo { justify-self: end; }
.footer-logo svg, .footer-logo img { width: 215px; height: auto; display: block; }
.footer-cols { display: flex; gap: 56px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-menu li { margin: 0; line-height: 1; }
.footer-menu a { font-family: var(--font-body); font-size: 20px; color: var(--cream); }
.footer-menu a:hover { color: var(--red); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 15px; color: var(--cream); }
.footer-meta .name { line-height: 1.4; }
.footer-credit { text-align: left; font-size: 14px; color: var(--cream); }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
/* Tablet / stacked layout */
@media (max-width: 1100px) {
	.site-logo svg, .site-logo img { height: 200px; }
	.hero-top { min-height: 0; flex-direction: column; align-items: center; gap: 28px; }
	.hero-quote { position: static; width: 100%; text-align: left; margin-top: 0; }
	.hero-title { flex-wrap: wrap; white-space: normal; justify-content: flex-start; gap: 0 .28em; margin-top: 28px; }
	.moments { height: auto; display: flex; flex-direction: column; gap: 20px; }
	.moment-card { position: static; width: 100% !important; height: auto !important; transform: none !important; min-height: 240px; }
	.services { grid-template-columns: 1fr; }
	.signature__stage { height: auto; display: flex; flex-direction: column; gap: 28px; align-items: center; }
	.signature__photo, .signature__photo.framed { position: static; transform: rotate(var(--rot, 0deg)); left: auto; width: 100%; max-width: 420px; }
	.sig-card { position: static; width: 100% !important; max-width: 420px; transform: none !important; }
	.beyond__head { margin-left: 0; }
	.beyond__grid { grid-template-columns: 1fr; margin-left: 0; gap: 40px; }
	.beyond__photo { width: 100%; max-width: 344px; }
	.hero-portrait { max-width: 72vw; }
	.site-footer .container { grid-template-columns: 1fr auto; align-items: center; }
	.footer-cols { flex-wrap: wrap; }
	.footer-logo svg, .footer-logo img { width: 150px; }
	/* The on-photo red-line clones only read well in the desktop composition. */
	.hero-redline, .sig-redline { display: none; }
	/* Tighten the generous desktop section rhythm. */
	.pivotal, .help { padding-top: 110px; }
	.signature { padding-top: 120px; }
	.beyond { padding-top: 90px; padding-bottom: 120px; }
}

/* ---------------------------------------------------------------------------
   Animation gating (GSAP). Only hide when JS present; respect reduced motion.
--------------------------------------------------------------------------- */
.has-js [data-anim] { opacity: 0; will-change: transform, opacity; }
.has-js [data-anim="up"]   { transform: translateY(40px); }
.has-js [data-anim="zoom"] { transform: rotate(var(--rot, 0deg)) scale(1.06); }
.has-js .stagger > * { opacity: 0; transform: translateY(38px); }
.has-js .reveal-card { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.has-js [data-anim], .has-js .stagger > *, .has-js .reveal-card { opacity: 1 !important; transform: rotate(var(--rot, 0deg)) !important; }
}
/* Large phone */
@media (max-width: 768px) {
	.site-header .container { padding-top: 20px; }
	.site-logo svg, .site-logo img { height: 132px; }
	.header-right { gap: 16px; }
	.cta-talk { font-size: 18px; }
	.cta-talk .cta-arrow svg { width: 22px; }
	.cta-talk .cta-heart { margin-left: -16px; }
	.cta-talk .cta-heart svg { width: 20px; }
	.menu-toggle { width: 50px; height: 50px; }
	/* Near-vertical at phone widths, the decorative line crosses the logo/content — drop it. */
	.bg-line { display: none; }

	/* Push hero content below the absolute header so the logo never overlaps the photo. */
	.hero { padding-top: 160px; }
	.hero-portrait { max-width: 86vw; }
	.hero-title { font-size: clamp(46px, 16vw, 92px); margin-top: 22px; }

	.body-text,
	.beyond__body p,
	.service-card li,
	.moment-card .mtext { font-size: 18px; }

	.pivotal, .help { padding-top: 80px; }
	.signature { padding-top: 88px; }
	.beyond { padding-top: 64px; padding-bottom: 88px; }

	/* Lower the min size so the "bottom" word doesn't overflow the viewport. */
	.signature__head .bottom { font-size: clamp(67px, 10.7vw, 154px); }

	.service-card { min-height: 0; padding: 36px 26px; }
	.service-card .stitle { font-size: clamp(38px, 11vw, 52px); }
	.service-card ul { margin-top: 28px; }

	.beyond__actions { flex-wrap: wrap; gap: 22px; }
	/* Footer logo was 215px while the header logo drops to ~132px — bring them
	   to a comparable scale so the bottom mark no longer reads as oversized. */
	.footer-logo svg, .footer-logo img { width: 132px; }

	/* "Fil rouge" reminder for small screens. The full JS-anchored curve is hidden
	   below 768px (it crosses the logo/content); instead a slim red thread runs down
	   the left gutter as a subtle echo. Behind everything, never over text. */
	.fil-rouge-thread {
		display: block;
		position: fixed;
		top: 0; bottom: 0; left: 9px;
		width: 2px;
		background: linear-gradient(180deg, transparent 0, var(--red) 7%, var(--red) 93%, transparent 100%);
		opacity: .45;
		z-index: 1;
		pointer-events: none;
	}
}

/* Small phone */
@media (max-width: 540px) {
	.site-logo svg, .site-logo img { height: 112px; }
	.hero { padding-top: 140px; }
	.hero-title { font-size: clamp(38px, 15vw, 70px); }
	.moment-card { padding: 26px 24px; }
	.moment-card .mtitle { font-size: 30px; }
	.pivotal__intro { width: 100%; }
	.footer-cols { flex-direction: column; gap: 28px; }
	.site-footer .container { grid-template-columns: 1fr; gap: 36px; }
	.footer-logo { justify-self: start; }
	.footer-meta, .footer-credit { text-align: left; }
}
