/* ==========================================================================
   Rhea Gupta portfolio: shared styles for every page
   Sections: 1 tokens · 2 base · 3 layout · 4 header/footer · 5 components
             6 home · 7 case study · 8 placeholders · 9 motion · 10 a11y
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #F6EFE0;
  --cream-2: #EFE7D4;
  --paper: #FDFCF7;
  --ink: #2A231D;
  --ink-2: #5C5147;      /* body text, 6.7:1 on cream */
  --ink-3: #675D51;      /* labels, 5.6:1 on cream (was #8A7F72, 3.4:1) */
  --line: rgba(42, 35, 29, .12);
  --lime: #D7DF2A;       /* accent: fills, underlines, dots. Never text on cream */
  --lime-soft: #EFF0C0;
  --lime-hl: #E6EA85;    /* marker highlight behind text */
  --olive: #5E6600;      /* link hover text, 5.4:1 on cream (was #7A8400, 3.6:1) */
  --dark: #1C1E10;

  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Fluid type: min @ 375px, max @ 1440px */
  --fs-xs: 0.8125rem;                                  /* 13px */
  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --fs-h2: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  --fs-card: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-hero: clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
  --fs-display: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);

  --gutter: clamp(20px, 5vw, 100px);
  --maxw: 1240px;
  --header-h: 68px;
  --radius-lg: clamp(20px, 2.4vw, 32px);
  --radius-md: clamp(14px, 1.6vw, 20px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-card: 0 24px 60px -28px rgba(139, 163, 36, .38);
  --shadow-card-hover: 0 34px 70px -26px rgba(139, 163, 36, .5);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.eyebrow {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* Soft blurred colour fields behind a section (decorative) */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(30px);
  width: var(--s, 600px); height: var(--s, 600px);
  background: radial-gradient(closest-side, var(--c, #D9DDB0) 0%, transparent 100%);
}
.blobs ~ * { position: relative; z-index: 1; }

/* 4. Header / footer ------------------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(246, 239, 224, .92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(246, 239, 224, .78); backdrop-filter: blur(10px); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--font-serif); font-size: 1.375rem; text-decoration: none; line-height: 1; padding: 10px 0; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 10px); }
.nav-sep { color: var(--lime); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: var(--fs-sm); text-decoration: none; color: var(--ink);
}
.nav-link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 1.5px; background: var(--lime);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="true"]::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: var(--fs-sm); }
.back-link .arr { font-size: 1.15em; transition: transform .35s var(--ease); }
.back-link:hover .arr { transform: translateX(-4px); }

/* Case-study header sits on the dark hero until you scroll */
.site-header--case:not(.is-scrolled) { color: var(--cream); }
.site-header--case:not(.is-scrolled) .nav-link, .site-header--case:not(.is-scrolled) .back-link { color: var(--cream); }
.site-header--case:not(.is-scrolled) :focus-visible { outline-color: var(--cream); }

/* Reading progress (case studies) */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(var(--p, 0)); }

.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* 5. Components ------------------------------------------------------------ */
.txt-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s;
}
.txt-link:hover { color: var(--olive); text-decoration-color: var(--ink); }

.dot-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: var(--fs-sm); color: var(--ink); }
.dot-link i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); transition: transform .35s var(--ease); }
.dot-link:hover i, .dot-link:focus-visible i { transform: scale(1.8); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none; font-size: var(--fs-sm); transition: opacity .2s;
}
.pill:hover { opacity: .88; }
.pill .pl { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 9px; }

/* Marker highlight that sweeps in when its section is revealed */
.hl { background-image: linear-gradient(var(--lime-hl), var(--lime-hl)); background-repeat: no-repeat; background-size: 100% 38%; background-position: 0 88%; }
.js-motion .hl { background-size: 0% 38%; transition: background-size .9s cubic-bezier(.3, .75, .25, 1) .15s; }
.js-motion .is-in .hl, .js-motion .hl.is-in, .js-motion [role="tabpanel"]:not([hidden]) .hl { background-size: 100% 38%; }

/* Draft banner (only when drafts are shown, see js/site.js) */
.draft-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  background: var(--ink); color: var(--cream); font-size: 12px; line-height: 1.4; padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); max-width: calc(100% - 32px);
}
.draft-banner a { color: var(--cream); }

/* 6. Home ------------------------------------------------------------------ */
.intro {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px; position: relative; overflow: hidden;
}
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.4vw, 30px); max-width: 1120px; }
.intro-hello { font-family: var(--font-serif); font-size: var(--fs-display); line-height: 1; }
.intro h1 { font-size: var(--fs-hero); line-height: 1.14; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.intro h1 strong { font-weight: 700; }
.loves { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: var(--fs-sm); color: var(--ink-2); }
.loves strong { color: var(--ink); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 8px;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.scroll-cue .chev { display: inline-block; animation: bob 1.8s ease-in-out infinite; }

/* Work: sticky intro column on the left, cards scroll on the right */
.work { position: relative; padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 120px); }
.work-grid { display: grid; gap: 32px; }
.work-aside { display: flex; flex-direction: column; gap: 24px; }
.work-aside .tagline { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); line-height: 1.22; letter-spacing: -0.01em; }
.work-aside .tagline strong { font-weight: 700; }
.work-aside .experiences { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.work-head h2 { font-size: var(--fs-xs); font-weight: 400; }
.work-count b { color: var(--ink); font-weight: 700; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(20px, 2.4vw, 28px); }

@media (min-width: 900px) {
  .work-grid { grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
  .work-aside { position: sticky; top: calc(var(--header-h) + 24px); min-height: calc(100vh - var(--header-h) - 48px); justify-content: space-between; padding-block: 8px 24px; }
}

.card {
  display: grid; gap: 16px; padding: 14px; border-radius: var(--radius-lg);
  background: rgba(246, 239, 224, .8); box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--ink);
  transition: box-shadow .5s var(--ease), background .4s;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.card:hover, .card:focus-visible { background: rgba(246, 239, 224, .96); box-shadow: var(--shadow-card-hover); }
.card-media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 10; background: #F0E6DF; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media > img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 4px 6px 4px; }
.card-title { font-size: var(--fs-card); line-height: 1.12; letter-spacing: -0.015em; font-weight: 400; transition: transform .5s var(--ease); }
.card:hover .card-title { transform: translateX(6px); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--ink-2); }
.card-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--lime-soft);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s;
}
.card-arrow svg { stroke: var(--ink); transition: stroke .3s; }
.card:hover .card-arrow { transform: translateX(4px) rotate(-45deg); background: var(--lime); }
.card-summary { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }

@media (min-width: 640px) {
  .card { grid-template-columns: minmax(0, 44%) 1fr; gap: clamp(20px, 3vw, 32px); padding: 16px; }
  .card-media { aspect-ratio: auto; min-height: 220px; height: 100%; }
  .card-body { padding: 10px 8px 6px 0; }
}

/* About */
.about { position: relative; overflow: hidden; }
.about-grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: end; max-width: 380px; }
.about-photo figcaption {
  order: -1; writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--fs-xs); font-style: italic; color: var(--ink-2); line-height: 1.35; max-height: 280px;
}
.about-photo .portrait { width: 100%; aspect-ratio: 8 / 11; border-radius: 6px; overflow: hidden; background: #ECE8E6; }
.about-photo .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; gap: 20px; font-size: var(--fs-base); line-height: 1.65; color: var(--ink-2); max-width: 560px; }
.about-copy h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h2); color: var(--ink); line-height: 1.1; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 12px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(280px, 400px) 1fr; justify-content: center; }
}

/* 7. Case study ------------------------------------------------------------ */
.cs-hero {
  position: relative; overflow: hidden; color: var(--cream); background: var(--paper);
  padding: calc(var(--header-h) + clamp(24px, 4vw, 48px)) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  min-height: min(100svh, 980px);
}
.cs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 20, 11, .97) 0%, rgba(47, 51, 23, .9) 40%, rgba(86, 92, 31, .62) 72%, rgba(86, 92, 31, .25) 100%);
}
.cs-hero > * { position: relative; }
.cs-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.875rem); line-height: 1.2; max-width: 860px; text-wrap: balance; }
.cs-tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; list-style: none; padding: 0; margin: 0; }
.cs-tags li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); margin-right: 14px; vertical-align: middle; }
.cs-hero-media {
  margin-top: auto; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: 20px 20px 0 0; overflow: hidden;
  background: #000; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .65); position: relative;
}
.cs-hero-media img, .cs-hero-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.cs-hero-media .ph { height: 100%; border-radius: 0; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(10, 10, 6, .22);
}
.play .pcirc { width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px); border-radius: 50%; background: rgba(246, 239, 224, .95); display: grid; place-items: center; transition: transform .25s; }
.play:hover .pcirc, .play:focus-visible .pcirc { transform: scale(1.08); }

.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 32px; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); margin: 0; }
.cs-facts dt { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.cs-facts dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); line-height: 1.45; }

.cs-lead { font-size: var(--fs-lead); line-height: 1.75; color: #3A3226; text-align: center; max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.supporters { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: clamp(24px, 3vw, 40px); }
.supporters ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.supporters li { font-size: var(--fs-sm); font-weight: 700; }

.spec { display: grid; gap: 12px; padding-block: clamp(26px, 3.4vw, 38px); border-top: 1px solid var(--line); }
.spec:first-child { border-top: 0; }
.spec h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }
.spec p { color: var(--ink-2); line-height: 1.75; }
.spec .hmw { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6875rem); line-height: 1.42; color: var(--ink); }
.spec .pill { margin-top: 12px; justify-self: start; }
@media (min-width: 900px) { .spec { grid-template-columns: 260px 1fr; gap: 48px; } }

.role-box { display: grid; gap: 8px; background: rgba(42, 35, 29, .045); border-radius: 12px; padding: 20px clamp(18px, 2.4vw, 28px); font-size: var(--fs-sm); color: var(--ink-2); margin-block: 24px 0; }
.role-box b { color: var(--ink); }

.cs-h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h2); text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }

/* Tabs (Approach) */
.tablist { position: relative; display: flex; gap: clamp(4px, 3vw, 48px); border-bottom: 1px solid rgba(42, 35, 29, .14); margin-bottom: clamp(28px, 3.4vw, 40px); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab:first-child { margin-left: auto; }
.tab:last-child { margin-right: auto; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: var(--fs-sm); letter-spacing: .03em; color: var(--ink-3); padding: 12px 10px 16px; min-height: 44px;
  position: relative; transition: color .3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--lime); }
.tabpanel { max-width: 980px; margin-inline: auto; display: grid; gap: 22px; min-height: var(--panel-h, auto); align-content: center; }
.js-motion .tabpanel:not([hidden]) { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 980px; margin: 28px auto 0; }
.tab-nav button { appearance: none; background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.tab-nav button:hover { color: var(--ink); }
.tab-nav button[disabled] { visibility: hidden; }

.quote { border-left: 3px solid var(--lime); background: rgba(239, 240, 192, .5); padding: 20px 26px; border-radius: 4px 16px 16px 4px; max-width: 680px; margin-inline: auto; }
.quote p { font-family: var(--font-serif); font-size: clamp(1rem, .95rem + .25vw, 1.03rem); line-height: 1.55; }
.panel-text { max-width: 68ch; margin-inline: auto; text-align: center; color: var(--ink-2); line-height: 1.75; }
.img-pair { display: grid; gap: 20px; max-width: 880px; margin-inline: auto; width: 100%; }
.img-pair > * { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(42, 35, 29, .28); }
.img-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .img-pair { grid-template-columns: 1fr 1fr; } }

.needs { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 22px 44px; max-width: 880px; counter-reset: need; }
.needs li { display: flex; gap: 16px; align-items: baseline; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); counter-increment: need; }
.needs li::before {
  content: counter(need, decimal-leading-zero); flex-shrink: 0; width: 34px;
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink);
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 92% / 100% 30%;
}
.needs b { color: var(--ink); }
@media (min-width: 640px) { .needs { grid-template-columns: 1fr 1fr; } }

.gallery { display: grid; gap: 24px; justify-content: center; grid-template-columns: minmax(0, 1fr); }
.gallery > * { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(42, 35, 29, .3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { aspect-ratio: 16 / 10; }
.gallery .tall { aspect-ratio: 1 / 2; max-width: 220px; justify-self: center; width: 100%; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 2.2fr 1fr 1fr; align-items: start; }
  .gallery .tall { max-width: none; }
}

.conclusion { text-align: center; }
.conclusion .sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.4; max-width: 58ch; margin: 0 auto 18px; }
.conclusion p:not(.sub) { max-width: 70ch; margin-inline: auto; color: var(--ink-2); line-height: 1.75; }

.journey { background: rgba(239, 240, 192, .4); border-radius: 16px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 42px); max-width: 620px; margin: 46px auto 0; text-align: left; }
.journey-label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); margin-bottom: 26px; }
.journey-line { position: relative; display: flex; justify-content: space-between; align-items: center; }
.journey-line::before { content: ""; position: absolute; left: 24px; right: 26px; top: 50%; height: 1px; background: rgba(42, 35, 29, .28); }
.journey-line > * { position: relative; }
.journey-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.journey-end { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--lime); display: grid; place-items: center; background: var(--cream); }
.journey-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: var(--fs-sm); font-weight: 700; }
.journey-labels span:last-child { max-width: 240px; text-align: right; }

.next-project { border-top: 1px solid var(--line); }
.next-project a { display: flex; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; padding-block: clamp(40px, 6vw, 72px); }
.next-project .title { font-family: var(--font-serif); font-size: var(--fs-h2); line-height: 1.1; }
.next-project:hover .card-arrow { transform: translateX(4px) rotate(-45deg); background: var(--lime); }

/* 8. Placeholders ----------------------------------------------------------
   Anything still waiting for content uses one of these, so it is easy to spot
   on the page and to find in the code (search for `ph`). Replace the whole
   element with the real <img> or text when the content is ready.            */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(42, 35, 29, .035) 0 12px, transparent 12px 24px), linear-gradient(160deg, var(--t1, #E2E3BE), var(--t2, #EDE9BC));
  color: var(--ink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
  border-radius: inherit;
}
.ph::before { content: attr(data-ph); max-width: 30ch; }
.ph-text { background: rgba(215, 223, 42, .28); outline: 1px dashed rgba(42, 35, 29, .35); outline-offset: 2px; border-radius: 3px; }

/* Draft entries are hidden on the live site; js/site.js reveals them in preview */
[data-draft] { display: none !important; }
.show-drafts [data-draft] { display: revert !important; }
.show-drafts .cards > li[data-draft] { display: block !important; }
.show-drafts [data-draft] .card { outline: 2px dashed rgba(42, 35, 29, .3); outline-offset: 4px; }

/* 9. Motion (only when JS is on and the visitor allows motion) ------------- */
.js-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.22, .61, .36, 1), transform .75s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.22, .61, .36, 1); }
.js-motion .reveal-clip.is-in { clip-path: inset(0 0 0 0); }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(var(--dx, 26px), var(--dy, -18px), 0); }
  66% { transform: translate3d(calc(var(--dx, 26px) * -.6), calc(var(--dy, -18px) * -1), 0); }
}
.js-motion .blob { animation: drift var(--dur, 18s) ease-in-out infinite; }

/* Cursor: a small yellow dot (js/site.js, mouse only). It glows over links
   and buttons. The system cursor is hidden only while the dot is showing. */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #F4B400;
  opacity: 0; transition: opacity .2s;
}
.cursor-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cursor-dot.is-active::after { transform: scale(1.6); box-shadow: 0 0 10px 3px rgba(244, 180, 0, .75), 0 0 26px 10px rgba(247, 201, 72, .45); }
.has-cursor-dot, .has-cursor-dot * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cursor-dot { display: none; }
}

/* 10. Accessibility -------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.card:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
.cs-hero :focus-visible { outline-color: var(--cream); }
