/* ============================================================================
 * TL DESIGN STUDIO — GLOBAL STYLESHEET
 * ----------------------------------------------------------------------------
 * Served verbatim from /public/styles/global.css (linked in Base.astro). It is
 * NOT processed by Astro/Vite, so there are no imports or build steps — edit it
 * directly. The homepage card-stack ("Selected Work") has its own file,
 * /public/styles/work-stack.css, linked only on the homepage.
 *
 * Design language: Scandinavian/Catalan — warm chalk backgrounds, graphite ink,
 * olive accent, Cormorant Garamond (display) + DM Sans (body). All colours,
 * spacing, type sizes, easings and durations are CSS custom properties in
 * :root (the TOKENS block) — change a token to re-skin the whole site.
 *
 * Section map (in source order):
 *   TOKENS · RESET · SKIP LINK · SCROLL REVEAL · NAV · HERO · BUTTONS ·
 *   SECTION UTILITIES · IMAGE GALLERY (project pages) · PHILOSOPHY · SERVICES ·
 *   ABOUT · INSTAGRAM · CONTACT FORM · PROJECT PAGE (header/gallery/moodboard/
 *   cta) · FOOTER · ALL WORK PAGE · PROJECT CARDS · PRIVACY PAGE · RESPONSIVE.
 * ========================================================================== */

/* ─── TOKENS ────────────────────────────────────────────────── */
:root {
  --chalk:      #F7F4F0;
  --chalk-mid:  #EDE9E3;
  --greige:     #C8BFB4;
  --graphite:   #1E1C1A;
  --graphite-2: #2D2A27;
  --olive:      #7C826E;
  --olive-soft: #9BA590;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --sz-xs:  0.6875rem;
  --sz-sm:  0.8125rem;
  --sz-md:  1rem;
  --sz-lg:  1.125rem;
  --sz-xl:  1.375rem;
  --sz-2xl: 1.75rem;
  --sz-3xl: 2.5rem;
  --sz-4xl: 3.5rem;
  --sz-5xl: 5rem;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --track-wide:  0.08em;
  --track-wider: 0.15em;
  --track-caps:  0.2em;

  --max-w: 1600px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 200ms;
  --dur-mid:  350ms;
  --dur-slow: 600ms;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--chalk); color: var(--graphite); font-family: var(--font-body); font-weight: 300; font-size: var(--sz-md); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
/* <picture> only picks the file (AVIF first, src/components/Picture.astro);
   it takes no box, so `.x img` rules and layouts work as if it were not there. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 1px; }

/* ─── SKIP LINK ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-6);
  background: var(--graphite); color: var(--chalk);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--sz-sm); letter-spacing: var(--track-caps); text-transform: uppercase;
  z-index: 999;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--sp-4); }

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal][data-d="1"] { transition-delay: 80ms; }
[data-reveal][data-d="2"] { transition-delay: 160ms; }
[data-reveal][data-d="3"] { transition-delay: 240ms; }
[data-reveal][data-d="4"] { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal][data-d] {
    opacity: 1; transform: none; transition: none; transition-delay: 0ms;
  }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-12);
  background: var(--chalk);
  transition: background var(--dur-mid) ease, box-shadow var(--dur-mid) ease;
}
nav.scrolled {
  background: rgba(247,244,240,0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--greige);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--sz-xl); font-weight: 400;
  letter-spacing: var(--track-wide);
}
.nav-links { display: flex; gap: var(--sp-12); list-style: none; }
.nav-links a {
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  opacity: 0.5;
  position: relative; padding-bottom: 2px;
  transition: opacity var(--dur-fast) ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--olive);
  transition: width var(--dur-mid) var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
/* Project detail pages reuse this same <nav> (logo + .nav-links); their links
   are "← Previous / Next → / All Projects" instead of section anchors. There is
   no separate project-nav style — see Base.astro. */

/* ─── MOBILE NAV — hamburger (hidden on desktop; shown ≤640px) ───── */
.nav-toggle {
  display: none;                 /* flipped to flex in the 640px media query */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;     /* ≥44px tap target */
  margin-right: -8px;            /* optically align the bars to the edge */
  padding: 0;
  background: none; border: none; cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--graphite);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}
/* ☰ → ✕ when the menu is open */
nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 88svh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-32) var(--sp-16) var(--sp-24) var(--sp-16);
}
.hero-label {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); margin-bottom: var(--sp-8);
  opacity: 0; transform: translateY(16px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}
.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--olive); flex-shrink: 0;
  animation: heroPulse 2.8s var(--ease-out) infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, var(--sz-5xl));
  font-weight: 300; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: var(--sp-8);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.35s forwards;
}
.hero-title em { font-style: italic; color: var(--olive); }
.hero-sub {
  font-size: var(--sz-md); font-weight: 300; line-height: 1.85;
  max-width: 38ch; color: rgba(30,28,26,0.6);
  margin-bottom: var(--sp-10);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.5s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.65s forwards;
}
/* hero meta footer row — contact/availability strip */
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-10);
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--chalk-mid);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.8s forwards;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-label {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--olive);
}
.hero-meta-value {
  font-size: var(--sz-sm); font-weight: 400;
  color: rgba(30,28,26,0.72);
}
.hero-meta-link {
  position: relative;
  transition: color var(--dur-fast) ease;
}
.hero-meta-link:hover { color: var(--olive); }

.hero-right { position: relative; overflow: hidden; background: var(--chalk); }
/* Hero photos (1 to 5 from the CMS): stacked slides, only .current shows; the
   next one cross-fades in (script in index.astro). No veil and no frame over the
   photo (removed 2026-11-12). Pure CSS keeps the light softening below, so it
   applies to any photo the CMS sets and the original files stay full strength. */
.hr-slide {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  opacity: 0; transition: opacity 1.2s cubic-bezier(0.45, 0, 0.55, 1);
}
.hr-slide.current { opacity: 1; }
.hr-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: contrast(0.85) saturate(0.85);
  transform: scale(1.04); transition: transform 6s var(--ease-out);
}
.hr-slide.current img { transform: scale(1); }      /* very slow settle */
/* Photo focus (CMS, per photo): where the crop is anchored. */
.hr-slide img.focus-top-left     { object-position: 15% 20%; }
.hr-slide img.focus-top          { object-position: 50% 20%; }
.hr-slide img.focus-top-right    { object-position: 85% 20%; }
.hr-slide img.focus-left         { object-position: 15% 50%; }
.hr-slide img.focus-right        { object-position: 85% 50%; }
.hr-slide img.focus-bottom-left  { object-position: 15% 80%; }
.hr-slide img.focus-bottom       { object-position: 50% 80%; }
.hr-slide img.focus-bottom-right { object-position: 85% 80%; }
/* First photo on page load: rises and fades in with the hero text (same
   fadeUp gesture), settling from a slight zoom. Classes set by the script once
   the photo has loaded, so it never pops in half-drawn. */
.hero-right.is-waiting .hr-slide.current { opacity: 0; transition: none; }
.hero-right.is-waiting .hr-slide.current img { transform: scale(1.08); transition: none; }
.hero-right.is-entering .hr-slide.current {
  animation: heroEnter 1.4s var(--ease-out) var(--enter-delay, .35s) both;
}
.hero-right.is-entering .hr-slide.current img {
  transition: transform 2.6s var(--ease-out) var(--enter-delay, .35s);
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-slide img, .hr-slide.current img { transform: none; transition: none; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--sp-8);
  background: var(--graphite); color: var(--chalk);
  font-family: var(--font-body); font-size: var(--sz-xs);
  font-weight: 400; letter-spacing: var(--track-caps); text-transform: uppercase;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.btn-primary:hover { background: var(--olive); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,130,110,0.25); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center;
  min-height: 48px;
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--graphite); opacity: 0.5;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity var(--dur-fast) ease;
}
.btn-ghost:hover { opacity: 1; }

/* ─── SECTION UTILITIES ─────────────────────────────────────── */
.section-label {
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); margin-bottom: var(--sp-6);
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, var(--sz-4xl));
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
}
/* Second line of a split heading (services): its own line, in olive. */
.section-title-sub { display: block; color: var(--olive); }
.section-body {
  font-size: var(--sz-md); font-weight: 300;
  line-height: 1.85; max-width: 54ch;
  color: rgba(30,28,26,0.62);
}

/* ─── IMAGE GALLERY (accordion — 21st.dev pattern) ─────────────
   Used by the React island ImageGallery.tsx on PROJECT DETAIL pages only.
   The homepage "Selected Work" is now the sticky card-stack in work-stack.css. */
.img-gallery-row {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.img-gallery-item {
  flex: 1 1 0;
  overflow: hidden;
  position: relative;
  transition: flex 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.img-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; pointer-events: none;
}
.img-gallery-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(30,28,26,0.72) 0%, transparent 55%);
  transition: opacity 250ms ease;
}
.img-gallery-info {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1rem;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.img-gallery-title {
  font-family: var(--font-display);
  font-size: var(--sz-xl); font-weight: 300; line-height: 1.2;
  color: var(--chalk);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-gallery-meta {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: rgba(247,244,240,0.65);
  margin-top: 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-gallery-hint {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: rgba(247,244,240,0.65);
  display: flex; align-items: center; gap: 6px;
}

/* ─── PHILOSOPHY ────────────────────────────────────────────── */
.philosophy {
  background: var(--graphite); color: var(--chalk);
  padding: var(--sp-32) var(--sp-12);
}
.philosophy-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-32); align-items: center;
}
.philosophy .section-label { color: rgba(200,191,180,0.5); }
.philosophy .section-title { color: var(--chalk); margin-top: var(--sp-4); }
.philosophy .section-body { color: rgba(247,244,240,0.5); margin-top: var(--sp-6); }
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.125rem);
  font-weight: 300; font-style: italic; line-height: 1.55;
  color: var(--greige);
  border-left: 1px solid var(--olive);
  padding-left: var(--sp-8);
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services-strip { padding: var(--sp-32) var(--sp-12); }
.services-inner { max-width: var(--max-w); margin: 0 auto; }
.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--sp-12);
}
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.service-card {
  padding: var(--sp-12) var(--sp-8);
  border: 1px solid var(--chalk-mid);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: border-color var(--dur-mid) ease,
              background var(--dur-mid) ease,
              transform var(--dur-mid) var(--ease-out);
}
.service-card:hover {
  border-color: var(--olive);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,28,26,0.08);
}
.service-num {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--olive);
}
.service-title {
  font-family: var(--font-display);
  font-size: var(--sz-2xl); font-weight: 300; line-height: 1.2;
}
.service-desc {
  font-size: var(--sz-sm); font-weight: 300;
  line-height: 1.85; flex: 1;
  color: rgba(30,28,26,0.6);
}
.service-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); margin-top: var(--sp-4);
  transition: gap var(--dur-fast) ease;
}
.service-cta span { transition: transform var(--dur-fast) ease; }
.service-card:hover .service-cta span { transform: translateX(5px); }
/* Card 4 = collaboration (studios, companies): a different audience, so on
   desktop it is a full-width band UNDER the three client services, set a
   little apart: number + title left, text centre, button right. Styled by
   position (the CMS locks the list at exactly 4). ≤1024px it becomes a normal
   card again (2x2 on tablet, one column on phones). */
.service-card:nth-child(4) {
  grid-column: 1 / -1;
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "num   desc cta"
    "title desc cta";
  column-gap: var(--sp-12);
  row-gap: var(--sp-4);
  align-items: start;
}
.service-card:nth-child(4) .service-num   { grid-area: num; }
.service-card:nth-child(4) .service-title { grid-area: title; }
.service-card:nth-child(4) .service-desc  { grid-area: desc; max-width: 65ch; }
.service-card:nth-child(4) .service-cta   { grid-area: cta; align-self: end; margin-top: 0; }

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-strip { padding: var(--sp-32) var(--sp-12); background: var(--chalk-mid); }
/* Portrait kept deliberately modest (Tatiana's ask): a fixed 340px column next
   to a ~65ch text column, the pair centred. The portrait stays in view (sticky)
   while the longer bio scrolls past, and a thin olive frame offset behind it
   gives the smaller photo presence without extra size. */
.about-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 660px);
  justify-content: center;
  gap: var(--sp-24); align-items: start;
}
.about-image-col { position: sticky; top: 120px; margin-top: var(--sp-4); }
.about-image-col::before {
  content: ''; position: absolute; z-index: 0;
  inset: var(--sp-6) calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-6);
  border: 1px solid var(--olive);
}
/* The crop's horizontal anchor comes from the CMS "photo focus" field
   (about.imageFocus → .focus-*), so a wide shot with Tatiana off-centre stays in frame. */
.about-portrait {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%;
}
.about-portrait.focus-far-left  { object-position:  6% 15%; }
.about-portrait.focus-left      { object-position: 28% 15%; }
.about-portrait.focus-right     { object-position: 72% 15%; }
.about-portrait.focus-far-right { object-position: 94% 15%; }
.about-text-col { display: flex; flex-direction: column; gap: var(--sp-6); padding-top: var(--sp-4); }
.about-title { margin-top: var(--sp-2); }
.about-role {
  font-size: var(--sz-sm); font-weight: 400;
  letter-spacing: var(--track-wide);
  color: rgba(30,28,26,0.5); margin-top: var(--sp-4);
}
.about-divider { width: 48px; height: 1px; background: var(--olive); margin: var(--sp-2) 0; }
.about-bio { display: flex; flex-direction: column; gap: var(--sp-4); }
.about-bio p { font-size: var(--sz-md); font-weight: 300; line-height: 1.9; color: rgba(30,28,26,0.68); }
.about-bio p.lead { font-size: var(--sz-lg); font-weight: 300; color: rgba(30,28,26,0.82); line-height: 1.75; }
.about-insta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-6);
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--graphite); opacity: 0.55;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease;
}
.about-insta:hover { opacity: 1; color: var(--olive); }
.about-insta svg { width: 14px; height: 14px; flex-shrink: 0; }
/* When a second social link (LinkedIn) follows the Instagram one, stack it
   directly beneath with a tighter gap than its default section margin-top. */
.about-insta + .about-insta { margin-top: var(--sp-3); }

/* ─── INSTAGRAM STRIP ───────────────────────────────────────── */
.insta-strip { background: var(--graphite); color: var(--chalk); padding: var(--sp-20) var(--sp-12); }
.insta-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8);
}
.insta-label {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: rgba(200,191,180,0.5); margin-bottom: var(--sp-4);
}
.insta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 300; line-height: 1.2;
}
.insta-headline em { font-style: italic; color: var(--olive-soft); }
.insta-link {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  min-height: 48px; padding: var(--sp-4) var(--sp-8);
  border: 1px solid rgba(200,191,180,0.3);
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--chalk); white-space: nowrap;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.insta-link:hover { background: rgba(255,255,255,0.08); border-color: var(--olive-soft); }
.insta-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── CONTACT FORM ──────────────────────────────────────────── */
.contact-strip { padding: var(--sp-32) var(--sp-12); border-top: 1px solid var(--chalk-mid); }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: var(--sp-12); }
.contact-header .section-label { display: block; text-align: center; }
.contact-header .section-title { margin-top: var(--sp-4); }
.contact-sub {
  font-size: var(--sz-md); font-weight: 300; line-height: 1.85;
  color: rgba(30,28,26,0.58); margin-top: var(--sp-4); text-align: center;
}
.contact-form { display: grid; gap: var(--sp-6); margin-top: var(--sp-12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field label {
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: rgba(30,28,26,0.5);
}
.form-field input,
.form-field select,
.form-field textarea {
  height: 48px; padding: 0 var(--sp-4);
  background: var(--white); border: 1px solid var(--chalk-mid);
  font-family: var(--font-body); font-size: var(--sz-sm);
  font-weight: 300; color: var(--graphite);
  outline: none; appearance: none; -webkit-appearance: none;
  border-radius: 0;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.form-field textarea { height: 130px; padding: var(--sp-4); resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(124,130,110,0.12);
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237C826E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-consent { margin-top: var(--sp-2); }
.consent-label {
  display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0; margin-top: 3px;
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--olive);
}
.consent-label span {
  font-size: var(--sz-xs); font-weight: 300; line-height: 1.7;
  color: rgba(30,28,26,0.55);
}
.consent-link {
  color: var(--olive); border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-fast) ease;
}
.consent-link:hover { opacity: 0.7; }
.form-submit { display: flex; justify-content: center; margin-top: var(--sp-4); }

/* ─── PROJECT PAGE — HEADER ─────────────────────────────────── */
.project-header {
  min-height: 88svh; padding-top: var(--nav-h);
  display: grid; grid-template-columns: 5fr 7fr;
}
.project-intro {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-20) var(--sp-12) var(--sp-16);
}
.project-label {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); margin-bottom: var(--sp-4); display: block;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, var(--sz-5xl));
  font-weight: 300; line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
  overflow-wrap: break-word;   /* guard: a long single-word title can't overflow narrow phones */
}
.project-location {
  font-size: var(--sz-sm); letter-spacing: var(--track-caps);
  text-transform: uppercase; opacity: 0.4; margin-bottom: var(--sp-8);
}
.project-desc {
  font-size: var(--sz-md); font-weight: 300; line-height: 1.85;
  max-width: 42ch; color: rgba(30,28,26,0.65);
}
.project-hero-img { overflow: hidden; }
.project-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ─── PROJECT PAGE — GALLERY ────────────────────────────────── */
.project-gallery-section {
  background: var(--chalk-mid);
  padding: var(--sp-16) var(--sp-12);
}
.project-gallery-inner { max-width: var(--max-w); margin: 0 auto; }
.project-gallery-label {
  display: block;
  font-size: var(--sz-xs); font-weight: 400;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); opacity: 0.8;
  margin-bottom: var(--sp-8);
}

/* ─── PROJECT PAGE — MOODBOARD ──────────────────────────────── */
.moodboard-strip { background: var(--chalk-mid); padding: var(--sp-16) var(--sp-12); }
.moodboard-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--sp-12); align-items: center;
}
.moodboard-text .section-label { font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--olive); display: block; margin-bottom: var(--sp-4); }
.moodboard-text h2 { font-family: var(--font-display); font-size: var(--sz-3xl); font-weight: 300; line-height: 1.2; }
.moodboard-text p { font-size: var(--sz-sm); font-weight: 300; line-height: 1.85; color: rgba(30,28,26,0.6); margin-top: var(--sp-6); max-width: 38ch; }
.moodboard-img { overflow: hidden; }
.moodboard-img img { width: 100%; }

/* Note: the old bottom prev/next/all-work bar (.project-nav*) was removed —
   project detail pages now navigate via the top nav only (see Base.astro). */

/* ─── PROJECT PAGE — CTA ────────────────────────────────────── */
.project-cta {
  background: var(--graphite); color: var(--chalk);
  padding: var(--sp-20) var(--sp-12); text-align: center;
}
.project-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, var(--sz-4xl));
  font-weight: 300; margin-bottom: var(--sp-8);
}
.project-cta h2 em { font-style: italic; color: var(--olive-soft); }
.project-cta .btn-primary {
  background: var(--chalk); color: var(--graphite);
}
.project-cta .btn-primary:hover { background: var(--greige); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--graphite); color: var(--chalk); padding: var(--sp-10) var(--sp-12); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-8);
}
.footer-logo { font-family: var(--font-display); font-size: var(--sz-xl); font-weight: 300; letter-spacing: var(--track-wide); }
.footer-links { display: flex; gap: var(--sp-8); list-style: none; }
.footer-links a {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  opacity: 0.35; transition: opacity var(--dur-fast) ease;
}
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; align-items: center; gap: var(--sp-4); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; opacity: 0.35;
  transition: opacity var(--dur-fast) ease;
}
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 18px; height: 18px; }
/* Copyright + KvK + VAT. Opacity .25 → .55: the legal numbers must be
   readable (≈5.5:1 on graphite, passes WCAG AA); still the quietest line.
   Two lines: "© year Tatiana León" with "KvK … · VAT …" below it. Desktop
   (footer is one row): both lines left-aligned, starting at the same point
   (Arturo, 2026-11-03). ≤1024px (footer is a centred column): centred. */
.footer-copy {
  font-size: var(--sz-xs); opacity: 0.55; letter-spacing: var(--track-wide);
  display: flex; flex-direction: column; align-items: flex-start; row-gap: 0.35em;
  text-align: left;
}
.footer-copy span { white-space: nowrap; }
@media (max-width: 1024px) {
  .footer-copy { align-items: center; text-align: center; }
}

/* ─── ALL WORK PAGE ─────────────────────────────────────────── */
.all-work-header {
  background: var(--graphite); color: var(--chalk);
  padding: calc(var(--nav-h) + var(--sp-20)) var(--sp-12) var(--sp-20);
}
.all-work-header-inner { max-width: var(--max-w); margin: 0 auto; }
.all-work-header .section-label { color: rgba(200,191,180,0.45); }
.all-work-header .section-title { color: var(--chalk); margin-top: var(--sp-4); }
.all-work-header .section-title em { font-style: italic; color: var(--olive-soft); }
.all-work-grid-section { padding: var(--sp-16) var(--sp-12); }

/* ── PROJECT CARDS (21st.dev project-card pattern, TL palette) ── */
.project-cards {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
}
.project-card-link { display: block; height: 100%; }
.project-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white);
  border: 1px solid var(--chalk-mid);
  overflow: hidden;
  transition: border-color var(--dur-mid) ease,
              transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) ease;
}
.project-card-link:hover .project-card {
  border-color: var(--olive);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,28,26,0.10);
}
.project-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--greige);
}
.project-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.project-card-link:hover .project-card-img img { transform: scale(1.05); }
.project-card-body {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-10) var(--sp-8) var(--sp-8);
  flex: 1;
}
.project-card-label {
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive);
}
.project-card-title {
  font-family: var(--font-display); font-size: var(--sz-2xl);
  font-weight: 300; line-height: 1.15;
}
.project-card-location {
  font-size: var(--sz-xs); letter-spacing: var(--track-wide); text-transform: uppercase;
  color: rgba(30,28,26,0.4);
  margin-top: calc(-1 * var(--sp-2));
}
.project-card-desc {
  font-size: var(--sz-sm); font-weight: 300; line-height: 1.8;
  color: rgba(30,28,26,0.6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--sz-xs); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive); margin-top: auto; padding-top: var(--sp-4);
}
.project-card-cta span { transition: transform var(--dur-fast) ease; }
.project-card-link:hover .project-card-cta span { transform: translateX(5px); }

/* ─── PRIVACY PAGE ──────────────────────────────────────────── */
.privacy-hero {
  background: var(--graphite); color: var(--chalk);
  padding: calc(var(--nav-h) + var(--sp-20)) var(--sp-12) var(--sp-20);
}
.privacy-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.privacy-hero .section-label { color: rgba(200,191,180,0.45); }
.privacy-meta {
  margin-top: var(--sp-6);
  font-size: var(--sz-sm); color: rgba(247,244,240,0.4);
  letter-spacing: var(--track-wide);
}
.privacy-body { padding: var(--sp-32) var(--sp-12); }
.privacy-inner { max-width: 720px; margin: 0 auto; }
.privacy-block { margin-bottom: var(--sp-12); }
.privacy-block h2 {
  font-family: var(--font-display);
  font-size: var(--sz-2xl); font-weight: 300; line-height: 1.2;
  margin-bottom: var(--sp-4);
}
.privacy-block p {
  font-size: var(--sz-md); font-weight: 300; line-height: 1.85;
  color: rgba(30,28,26,0.68); margin-bottom: var(--sp-4);
}
.privacy-block p:last-child { margin-bottom: 0; }
.privacy-block ul {
  margin: var(--sp-4) 0 var(--sp-4) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.privacy-block li {
  font-size: var(--sz-md); font-weight: 300; line-height: 1.75;
  color: rgba(30,28,26,0.68);
}
.privacy-block a {
  color: var(--olive); border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-fast) ease;
}
.privacy-block a:hover { opacity: 0.7; }
.privacy-back { margin-top: var(--sp-16); padding-top: var(--sp-8); border-top: 1px solid var(--chalk-mid); }

/* ─── RESPONSIVE — 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sp-12: 2rem; --sp-16: 3rem; --sp-24: 5rem; --sp-32: 6rem; }
  nav { padding: 0 var(--sp-8); }

  /* Homepage */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 55vw; order: -1; }
  .hero-left { padding: var(--sp-12) var(--sp-8); }
  .philosophy-inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(4) { grid-column: auto; margin-top: 0; display: flex; }  /* 2x2 */
  .about-inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  /* Single column now: no sticky, centre a smaller portrait (with its frame). */
  .about-image-col { position: relative; top: 0; width: 100%; max-width: 260px; margin-inline: auto; }
  .about-text-col { width: 100%; max-width: 660px; margin-inline: auto; }
  .insta-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: var(--sp-6); text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Project pages */
  .project-header { grid-template-columns: 1fr; min-height: auto; }
  .project-hero-img { height: 60vw; }
  .project-intro { padding: var(--sp-12) var(--sp-8); }
  .moodboard-inner { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE — 640px ────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 var(--sp-6); }

  /* Hamburger replaces the inline links; the links become a dropdown panel that
     drops from under the bar when nav.menu-open is set (toggled in Base.astro). */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--chalk);
    border-top: 1px solid var(--greige);
    box-shadow: 0 14px 28px -16px rgba(40, 38, 34, 0.35);
    padding: var(--sp-2) var(--sp-6) var(--sp-6);
    /* closed by default */
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast) ease;
  }
  nav.menu-open .nav-links {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    display: flex; align-items: center;
    min-height: 48px;
    font-size: var(--sz-sm);
    opacity: 0.8;
    border-bottom: 1px solid var(--greige);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a::after { display: none; }   /* no underline-grow animation in the panel */

  /* Homepage */
  .hero-left { padding: var(--sp-8) var(--sp-6); }
  .project-cards { grid-template-columns: 1fr; gap: var(--sp-6); }
  .services-grid { grid-template-columns: 1fr; }
  /* Services deck (single column only). `.stack-mobile` is set by the
     index.astro deck script only when every card fits below the nav and
     motion is allowed, so without it the cards are the plain list. Cards pin
     under the nav 10px apart; the script shrinks + dims the covered ones
     (anchored at the top edge, so they peek out like a deck). The chalk
     background makes the arriving card opaque; the reveal keeps its fade but
     drops its slide, which would fight the script's inline transform. */
  .services-grid.stack-mobile .service-card {
    position: sticky;
    top: calc(var(--nav-h) + var(--sp-4));
    background: var(--chalk);
    transform-origin: center top;
    box-shadow: 0 -12px 24px -14px rgba(30,28,26,0.18),
                0 12px 28px -18px rgba(30,28,26,0.2);
  }
  .services-grid.stack-mobile .service-card:nth-child(2) { top: calc(var(--nav-h) + var(--sp-4) + 10px); }
  .services-grid.stack-mobile .service-card:nth-child(3) { top: calc(var(--nav-h) + var(--sp-4) + 20px); }
  .services-grid.stack-mobile .service-card:nth-child(4) { top: calc(var(--nav-h) + var(--sp-4) + 30px); }
  /* The dim: a solid chalk veil (opacity driven by the script via --dim), so
     the covered card fades into the page but never turns see-through. */
  .services-grid.stack-mobile .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--chalk);
    opacity: var(--dim, 0);
    pointer-events: none;
  }
  .services-grid.stack-mobile .service-card[data-reveal] {
    transform: none;
    transition: opacity var(--dur-slow) var(--ease-out),
                border-color var(--dur-mid) ease, background var(--dur-mid) ease;
  }
  .services-strip, .about-strip, .insta-strip, .contact-strip { padding: var(--sp-20) var(--sp-6); }
  .philosophy { padding: var(--sp-20) var(--sp-6); }
  footer { padding: var(--sp-8) var(--sp-6); }

  /* Gallery — stack vertically on mobile */
  .img-gallery-row { flex-direction: column; height: auto !important; }
  .img-gallery-item { flex: none !important; height: 260px; width: 100%; }

  /* Project pages */
  .project-gallery-section { padding: var(--sp-12) var(--sp-6); }
  .moodboard-strip, .project-cta { padding: var(--sp-16) var(--sp-6); }
}

/* ─── PRIVATE CV PAGE (/cv) ─────────────────────────────────── */
.cv-hero { padding: calc(var(--nav-h) + var(--sp-20)) var(--sp-12) var(--sp-20); background: var(--chalk); }
.cv-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--sp-20); align-items: center;
}
.cv-photo { position: relative; }
.cv-photo::before {
  content: ''; position: absolute; z-index: 0;
  inset: var(--sp-6) calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-6);
  border: 1px solid var(--olive);
}
.cv-name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.05;
  margin-top: var(--sp-4); color: var(--graphite);
}
.cv-role { font-family: var(--font-display); font-style: italic; font-size: var(--sz-xl); color: var(--olive); margin-top: var(--sp-2); }
.cv-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-4);
  font-size: var(--sz-xs); letter-spacing: var(--track-wide); text-transform: uppercase;
  color: rgba(30,28,26,0.55);
}
.cv-summary {
  max-width: 62ch; margin-top: var(--sp-8);
  font-size: var(--sz-md); font-weight: 300; line-height: 1.85; color: rgba(30,28,26,0.72);
}
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); margin-top: var(--sp-10); }
.cv-actions .btn-ghost { text-transform: none; letter-spacing: var(--track-wide); font-size: var(--sz-sm); }
.cv-download { gap: var(--sp-3); }
.cv-download svg { width: 16px; height: 16px; flex-shrink: 0; }
.cv-download-meta { opacity: 0.6; letter-spacing: var(--track-wide); text-transform: none; }

.cv-body { padding: var(--sp-20) var(--sp-12) var(--sp-32); background: var(--white); }
.cv-body-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: var(--sp-20); align-items: start;
}
.cv-h2 {
  font-size: var(--sz-xs); font-weight: 400; letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--olive);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--chalk-mid);
  margin: var(--sp-16) 0 var(--sp-8);
}
.cv-main > .cv-h2:first-child, .cv-side-block:first-child .cv-h2 { margin-top: 0; }
.cv-h2-side { margin: var(--sp-12) 0 var(--sp-4); }
.cv-jobs { list-style: none; display: flex; flex-direction: column; gap: var(--sp-10); }
.cv-job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-2) var(--sp-6); }
.cv-job-role { font-family: var(--font-display); font-weight: 400; font-size: var(--sz-xl); color: var(--graphite); line-height: 1.25; }
.cv-job-years { font-size: var(--sz-xs); letter-spacing: var(--track-wide); text-transform: uppercase; color: rgba(30,28,26,0.5); white-space: nowrap; }
.cv-job-org { font-size: var(--sz-sm); color: rgba(30,28,26,0.6); margin-top: var(--sp-1); }
.cv-points { list-style: none; margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.cv-points li {
  position: relative; padding-left: var(--sp-6);
  font-size: var(--sz-md); font-weight: 300; line-height: 1.7; color: rgba(30,28,26,0.72);
}
.cv-points li::before {
  content: ''; position: absolute; left: 0; top: 0.8em;
  width: 10px; height: 1px; background: var(--olive);
}
.cv-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-6); }
.cv-list strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--sz-lg); color: var(--graphite); }
.cv-list span { display: block; font-size: var(--sz-sm); color: rgba(30,28,26,0.6); margin-top: var(--sp-1); }
.cv-side { position: sticky; top: calc(var(--nav-h) + var(--sp-8)); }
.cv-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cv-tags li {
  font-size: var(--sz-sm); color: var(--graphite);
  padding: var(--sp-1) var(--sp-3); border: 1px solid var(--chalk-mid); background: var(--chalk);
}
.cv-langs { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); font-size: var(--sz-sm); }
.cv-langs dt { color: var(--graphite); }
.cv-langs dd { color: rgba(30,28,26,0.6); }
.cv-side-note { font-size: var(--sz-sm); line-height: 1.7; color: rgba(30,28,26,0.65); }
.cv-side-note a { border-bottom: 1px solid currentColor; }
.cv-side-note a:hover { color: var(--olive); }

@media (max-width: 1024px) {
  .cv-hero-inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .cv-photo { max-width: 240px; }
  .cv-body-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .cv-side { position: static; }
}
@media (max-width: 640px) {
  .cv-hero { padding: calc(var(--nav-h) + var(--sp-12)) var(--sp-6) var(--sp-16); }
  .cv-body { padding: var(--sp-16) var(--sp-6) var(--sp-24); }
  .cv-photo { max-width: 200px; }
}
/* A recruiter may print the page or save it as PDF: keep it clean. */
@media print {
  #nav, footer, .skip-link, .cv-actions svg { display: none !important; }
  .cv-hero, .cv-body { padding: 0 0 var(--sp-8); background: none; }
  .cv-side { position: static; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
