/* =========================================================================
   Julia Hantla — Portfolio
   Design system: warm editorial. Cream · olive · charcoal · sage · slate-blue
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Surfaces */
  --cream:        #F4F1E7;
  --cream-deep:   #ECE7D9;
  --cream-card:   #F8F6EF;
  --paper:        #FBFAF4;

  /* Ink */
  --charcoal:     #2C2B25;
  --charcoal-soft:#4A483F;
  --muted:        #847E6C;

  /* Greens */
  --olive:        #5E6238;
  --olive-deep:   #4A4D2C;
  --sage:         #888B6B;
  --sage-soft:    #A7AA8C;

  /* Cool accent (the requested grey-blues) */
  --slate:        #6E8087;
  --slate-soft:   #97A6AB;

  /* Warm accent */
  --taupe:        #B3A88E;
  --taupe-soft:   #D6CDB8;

  /* Lines + utility */
  --line:         rgba(44,43,37,0.14);
  --line-soft:    rgba(44,43,37,0.08);
  --shadow:       0 24px 60px -28px rgba(44,43,37,0.30);
  --shadow-soft:  0 14px 40px -24px rgba(44,43,37,0.25);

  /* Type */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.6s;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw:   1320px;
  --nav-h:  76px;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--olive); color: var(--cream); }

/* ----------------------------- Type scale ------------------------------ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--olive);
}

.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* ----------------------------- Layout ---------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.lede { max-width: 46ch; color: var(--charcoal-soft); font-size: 1.06rem; }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  --bg: var(--olive); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  overflow: hidden; will-change: transform;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--charcoal);
  transform: scaleX(0); transform-origin: right; border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover { box-shadow: var(--shadow-soft); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--ghost { --bg: transparent; --fg: var(--charcoal); border: 1px solid var(--line); }
.btn--ghost:hover { --fg: var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--olive);
}
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translate(4px, -4px); }

/* ----------------------------- Cursor ---------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference; will-change: transform;
}
.cursor-dot  { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s;
}
.cursor-ring.is-active { width: 64px; height: 64px; background: rgba(255,255,255,0.12); }
.cursor-ring.is-hidden { opacity: 0; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ----------------------------- Nav ------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(244,241,231,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.nav__brand b { color: var(--olive); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__link {
  position: relative; font-size: 0.85rem; letter-spacing: 0.04em; padding-block: 0.4rem;
  color: var(--charcoal-soft); transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--olive); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.nav__cta.btn, .nav__cta.btn span { color: var(--cream); }
.nav__cta.btn::after { background: var(--charcoal); }

.nav__burger { display: none; width: 30px; height: 18px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--charcoal); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3) { bottom: 0; }
body.menu-open .nav__burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--cream-deep);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu__link {
  font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 300; font-style: italic;
  padding-block: 0.4rem; color: var(--charcoal); opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.menu__link:hover { color: var(--olive); }
body.menu-open .menu__link { opacity: 1; transform: none; }
body.menu-open .menu__link:nth-child(1) { transition-delay: 0.12s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: 0.24s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: 0.30s; }
body.menu-open .menu__link:nth-child(5) { transition-delay: 0.36s; }
body.menu-open .menu__link:nth-child(6) { transition-delay: 0.42s; }
.menu__meta { margin-top: 2.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; opacity: 0; transition: opacity 0.5s 0.5s var(--ease); }
body.menu-open .menu__meta { opacity: 1; }

/* ----------------------------- Page transition ------------------------- */
.page-veil {
  position: fixed; inset: 0; z-index: 9000; background: var(--olive-deep);
  transform: translateY(100%); pointer-events: none;
}
.page-veil.is-in  { animation: veilIn 0.55s var(--ease) forwards; }
.page-veil.is-out { animation: veilOut 0.6s var(--ease) forwards; }
@keyframes veilIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes veilOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ----------------------------- Reveals --------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

.line-mask { display: block; overflow: hidden; padding-block: 0.02em; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.line-mask.is-in > span { transform: none; }
.line-mask.d1 > span { transition-delay: 0.08s; }
.line-mask.d2 > span { transition-delay: 0.18s; }
.line-mask.d3 > span { transition-delay: 0.28s; }
.line-mask.d4 > span { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .line-mask > span { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero__inner { width: 100%; }
.hero__eyebrow { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 13vw, 11rem);
  line-height: 0.9; letter-spacing: -0.035em; color: var(--olive); }
.hero__title em { font-style: italic; color: var(--charcoal); font-weight: 300; }
.hero__sub { margin-top: clamp(1.5rem, 3.5vw, 2.6rem); max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--charcoal-soft); }
.hero__cta { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 2rem; left: var(--gutter); display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero__scroll .ln { width: 46px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.hero__scroll .ln::after { content: ""; position: absolute; inset: 0; background: var(--olive); animation: scrollLn 2.4s var(--ease) infinite; }
@keyframes scrollLn { 0% { transform: translateX(-100%);} 50%{transform: translateX(0);} 100%{transform: translateX(100%);} }

/* tiny floating tags around hero */
.hero__tags { position: absolute; inset: 0; pointer-events: none; }

/* =========================================================================
   PROJECT GRID (home)
   ========================================================================= */
.grid-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.grid-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.grid-head p { max-width: 30ch; color: var(--muted); font-size: 0.95rem; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  grid-auto-flow: dense;
}

.tile {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--cream-card); border: 1px solid var(--line-soft);
  will-change: transform; touch-action: none;
}
.tile.is-dragging { z-index: 50; box-shadow: var(--shadow); cursor: grabbing; }
.tile.is-ghost { opacity: 0.35; }

/* project tile sizes */
.tile--project { grid-column: span 6; aspect-ratio: 4 / 3.1; cursor: pointer; }
.tile--project.tile--tall { grid-column: span 6; aspect-ratio: 3 / 3.6; }
.tile--project .tile__media { position: absolute; inset: 0; }
.tile--project .tile__media img,
.tile--project .tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); will-change: transform; }
.tile--project:hover .tile__media img,
.tile--project:hover .tile__media video { transform: scale(1.06); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,40,33,0.62) 0%, rgba(40,40,33,0.05) 45%, transparent 70%); transition: opacity 0.5s; }

.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.1rem, 2vw, 1.6rem); color: var(--cream); z-index: 2; }
.tile__index { font-size: 0.7rem; letter-spacing: 0.25em; opacity: 0.85; }
.tile__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; margin-top: 0.3rem; }
.tile__tag { display: inline-block; margin-top: 0.5rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.tile__open { position: absolute; top: clamp(1rem,2vw,1.4rem); right: clamp(1rem,2vw,1.4rem); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(248,246,239,0.16); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--cream); transform: scale(0.8); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.tile--project:hover .tile__open { transform: scale(1); opacity: 1; }

/* personality tiles */
.tile--note { grid-column: span 3; aspect-ratio: 1 / 1; display: flex; align-items: center;
  padding: clamp(1.1rem, 1.8vw, 1.6rem); cursor: grab; }
.tile--note .note__inner { width: 100%; }
.tile--note .note__k { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.6rem; }
.tile--note .note__t { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.2; color: var(--charcoal); }
.tile--note.note--olive { background: var(--olive); }
.tile--note.note--olive .note__k { color: var(--taupe-soft); }
.tile--note.note--olive .note__t { color: var(--cream); }
.tile--note.note--slate { background: var(--slate); }
.tile--note.note--slate .note__k { color: rgba(255,255,255,0.7); }
.tile--note.note--slate .note__t { color: var(--cream); }
.tile--note.note--taupe { background: var(--taupe-soft); }
.tile--note.note--sage  { background: var(--sage-soft); }
.tile--note .note__emoji { font-style: normal; font-size: 1.4rem; display: block; margin-bottom: 0.5rem; }

.tile-hint { margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.04em; }
.tile-hint svg { opacity: 0.6; }

/* =========================================================================
   GENERIC editorial blocks
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-soft); }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame--ar { aspect-ratio: 4 / 5; }
.media-frame--ar-wide { aspect-ratio: 16 / 10; }

.kicker { font-family: var(--serif); font-style: italic; color: var(--sage); font-size: 1.1rem; margin-bottom: 0.8rem; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-hero { padding-top: calc(var(--nav-h) + clamp(2rem,6vw,5rem)); }
.about-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.03em; line-height: 0.98; }
.about-hero h1 em { font-style: italic; color: var(--olive); }
.about-story p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.7; color: var(--charcoal-soft); max-width: 60ch; }
.about-story p + p { margin-top: 1.4rem; }
.about-story strong { color: var(--olive); font-weight: 600; }

.about-portrait { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, var(--cream-deep), var(--taupe-soft)); box-shadow: var(--shadow-soft);
  display: grid; place-items: center; }
.about-portrait .ph { text-align: center; color: var(--muted); }
.about-portrait .ph .serif { font-size: 1.4rem; font-style: italic; color: var(--sage); display: block; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts .fact { background: var(--cream); padding: clamp(1.2rem, 2vw, 1.8rem); }
.facts .fact .k { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }
.facts .fact .v { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin-top: 0.4rem; }

.into-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.into-list li { font-family: var(--serif); font-style: italic; font-size: clamp(1rem,1.6vw,1.3rem);
  padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 100px; color: var(--charcoal-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease); }
.into-list li:hover { background: var(--olive); color: var(--cream); transform: translateY(-3px); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: clamp(1rem,2vw,1.6rem); }
.marquee__track { display: inline-flex; gap: 2.5rem; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--charcoal); }
.marquee .dot { color: var(--olive); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =========================================================================
   CLIENTS
   ========================================================================= */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.client { background: var(--cream); aspect-ratio: 16/9; display: grid; place-items: center; padding: 1.5rem;
  transition: background 0.5s var(--ease); position: relative; }
.client:hover { background: var(--cream-card); }
.client__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--charcoal-soft);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease); text-align: center; }
.client:hover .client__name { color: var(--olive); transform: scale(1.04); }
.client__cat { position: absolute; top: 0.8rem; left: 0.9rem; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.client:hover .client__cat { opacity: 1; }

/* =========================================================================
   PROJECT DETAIL PAGES
   ========================================================================= */
.proj-hero { padding-top: calc(var(--nav-h) + clamp(2rem,5vw,4rem)); }
.proj-hero__meta { display: flex; gap: 0.8rem; align-items: center; color: var(--olive); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.proj-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 9vw, 7rem); letter-spacing: -0.03em; line-height: 0.94; margin-top: 1rem; }
.proj-hero__sub { margin-top: 1.4rem; max-width: 52ch; font-size: clamp(1.05rem,1.6vw,1.3rem); color: var(--charcoal-soft); }

.proj-cover { margin-top: clamp(2rem,5vw,4rem); border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow); background: var(--cream-deep); }
.proj-cover img, .proj-cover video { width: 100%; height: 100%; object-fit: cover; }

.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.meta-row .m { background: var(--cream); padding: clamp(1.2rem,2.5vw,2rem) 0; padding-inline: clamp(0.5rem,1.5vw,1.2rem); }
.meta-row .m .k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }
.meta-row .m .v { font-family: var(--serif); font-size: clamp(1rem,1.4vw,1.25rem); margin-top: 0.5rem; line-height: 1.3; }

.block { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem,5vw,5rem); }
.block__label { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--olive); font-weight: 300; }
.block__body p { font-size: 1.08rem; line-height: 1.75; color: var(--charcoal-soft); }
.block__body p + p { margin-top: 1.1rem; }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.step { background: var(--cream); padding: clamp(1.4rem,2.5vw,2rem); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.step__n { font-family: var(--serif); font-size: 1.6rem; color: var(--sage); line-height: 1; }
.step__t { font-weight: 600; margin-bottom: 0.3rem; }
.step__d { color: var(--charcoal-soft); font-size: 0.98rem; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2.5vw,2.5rem); }
.metric .n { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6vw, 5rem); color: var(--olive); line-height: 1; letter-spacing: -0.02em; }
.metric .l { margin-top: 0.6rem; color: var(--charcoal-soft); font-size: 0.95rem; max-width: 22ch; }

.quote { text-align: center; max-width: 64ch; margin-inline: auto; }
.quote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.4; letter-spacing: -0.005em; }
.quote .cite { display: block; margin-top: 0.85rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }

.gallery { columns: 2; column-gap: clamp(0.9rem,1.6vw,1.4rem); }
.gallery .g { break-inside: avoid; margin-bottom: clamp(0.9rem,1.6vw,1.4rem); border-radius: 12px; overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-soft); }
.gallery .g img, .gallery .g video { width: 100%; }

/* Scattered moodboard cluster */
.moodboard-wrap { padding-block: clamp(0.5rem, 2vw, 2rem); }
.moodboard-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.2rem, 2.5vw, 2rem); }
.moodboard-cap .kicker { margin: 0; }
.moodboard-cap span { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.moodboard { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.7rem, 1.5vw, 1.3rem); align-items: center; }
.mb-slot { position: relative; }
.mb-slot .mb {
  display: block; width: 100%; height: 100%; border-radius: 10px; overflow: hidden;
  background: var(--cream-deep); box-shadow: var(--shadow-soft);
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.mb-slot .mb:hover { transform: rotate(0deg) translateY(0) scale(1.04); box-shadow: var(--shadow); z-index: 6; }
.mb-slot .mb img, .mb-slot .mb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-1 { grid-column: 1 / span 3;  aspect-ratio: 3/4; --rot: -3deg; }
.mb-2 { grid-column: 4 / span 4;  aspect-ratio: 4/3; --rot: 1.5deg; --ty: -14px; z-index: 2; }
.mb-3 { grid-column: 8 / span 2;  aspect-ratio: 3/4; --rot: 4deg;  --ty: 18px; }
.mb-4 { grid-column: 10 / span 3; aspect-ratio: 1/1; --rot: -2deg; }
@media (max-width: 720px) {
  .moodboard { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .mb-slot { grid-column: auto !important; aspect-ratio: 4/5 !important; }
  .mb-slot .mb { transform: none !important; }
}

/* Strategy set grid (Capstone six-piece set) — natural aspect ratios, no crop */
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); align-items: start; }
.set-grid .s { position: relative; border-radius: 12px; overflow: hidden; background: var(--cream-card);
  border: 1px solid var(--line-soft); cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.set-grid .s:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.set-grid .s img { width: 100%; height: auto; display: block; }
.set-grid .s::after { content: ""; position: absolute; top: 0.7rem; right: 0.7rem; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(28,27,21,0.55) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'><circle cx='6' cy='6' r='4.2'/><path d='M9.2 9.2L13 13M6 4.4v3.2M4.4 6h3.2'/></svg>") center/14px no-repeat;
  opacity: 0; transform: scale(0.8); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; }
.set-grid .s:hover::after { opacity: 1; transform: scale(1); }
@media (max-width: 720px) { .set-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox / image preview */
.lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(28,27,21,0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 8px;
  box-shadow: var(--shadow); transform: scale(0.96); transition: transform 0.35s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(244,241,231,0.14); color: var(--cream);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: background 0.3s var(--ease); }
.lightbox__close:hover { background: rgba(244,241,231,0.28); }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { transition: none; } }

/* Motion feature (centered looping video) */
.motion-feature { max-width: 680px; margin: clamp(1.5rem,3vw,2.5rem) auto 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.motion-feature video { width: 100%; display: block; }

/* Social / Instagram showcase */
.social { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.social__media { justify-self: center; max-width: 330px; width: 100%; }
.social__media img, .social__media video { width: 100%; display: block; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .social { grid-template-columns: 1fr; } .social__media { order: -1; max-width: 300px; } }

.next-proj { display: block; position: relative; padding-block: clamp(3rem,7vw,6rem); border-top: 1px solid var(--line); overflow: hidden; }
.next-proj .k { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.next-proj .t { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: -0.02em; color: var(--charcoal); transition: color 0.4s var(--ease), transform 0.6s var(--ease); margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 1rem; }
.next-proj:hover .t { color: var(--olive); transform: translateX(1.5rem); }
.next-proj .t svg { transition: transform 0.5s var(--ease); }
.next-proj:hover .t svg { transform: translate(8px,-8px); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.contact-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 11vw, 9rem); line-height: 0.92; letter-spacing: -0.03em; }
.contact-hero h1 em { font-style: italic; color: var(--olive); }
.contact-note { max-width: 44ch; margin-top: 1.6rem; font-size: clamp(1.05rem,1.6vw,1.3rem); color: var(--charcoal-soft); }
.contact-links { margin-top: clamp(2rem,4vw,3rem); display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.contact-link { background: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1.2rem,2.5vw,1.8rem) 0; transition: padding 0.4s var(--ease), background 0.4s var(--ease); }
.contact-link:hover { padding-inline: 1.2rem; background: var(--cream-card); }
.contact-link .l { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 300; }
.contact-link .r { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--olive); font-size: 0.85rem; letter-spacing: 0.05em; }
.contact-link:hover .r svg { transform: translate(4px,-4px); }
.contact-link .r svg { transition: transform 0.4s var(--ease); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--olive-deep); color: var(--cream); padding-block: clamp(3rem,6vw,5rem) 2rem; margin-top: clamp(3rem,7vw,7rem); }
.footer a { color: var(--cream); }
.footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; }
.footer__big { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.footer__big em { font-style: italic; color: var(--taupe-soft); }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer__links a { opacity: 0.85; transition: opacity 0.3s, transform 0.3s var(--ease); display: inline-flex; gap: 0.4rem; justify-content: flex-end; }
.footer__links a:hover { opacity: 1; transform: translateX(-4px); }
.footer__bot { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.5rem; border-top: 1px solid rgba(244,241,231,0.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.7; letter-spacing: 0.03em; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .split, .block { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .meta-row { grid-template-columns: repeat(2, 1fr); }
  .tile--project, .tile--project.tile--tall { grid-column: span 6; aspect-ratio: 4/3.2; }
  .tile--note { grid-column: span 6; aspect-ratio: 2/1; }
  .metrics { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { columns: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .tile-grid { grid-template-columns: repeat(6, 1fr); }
  .tile--project, .tile--project.tile--tall { grid-column: span 6; aspect-ratio: 4/3.4; }
  .tile--note { grid-column: span 3; aspect-ratio: 1/1; }
  .tile-hint { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer__links { text-align: left; }
  .footer__links a { justify-content: flex-start; }
}
