/* Casey Keesee Design — site styles */

:root {
  --bg: #faf8f5;
  --paper: #f1ede7;
  --ink: #1e1d1b;
  --ink-2: #3a3835;
  --muted: #77716a;
  --line: rgba(30, 29, 27, 0.14);
  --accent: #9c8671;
  --night: #171614;
  --night-ink: #ece7e0;
  --sans: "Jost", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 4.6vw, 76px);
  --gap: clamp(12px, 1.6vw, 24px);
  --maxw: 1480px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* nothing may widen the page sideways (clip, unlike hidden, keeps position: sticky working) */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 200; line-height: 1.08; letter-spacing: -0.005em; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-weight: 200;
  font-size: clamp(42px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.title-lg { font-weight: 200; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.05; }
.title-md { font-weight: 300; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; }
.lede { font-weight: 300; font-size: clamp(22px, 2.35vw, 34px); line-height: 1.38; letter-spacing: -0.005em; color: var(--ink-2); }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; }

/* ---------- Links & buttons ---------- */
.link-line {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid currentColor;
}
.link-line .arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.link-line:hover .arrow { transform: translateX(6px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid currentColor;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.on-night .btn:hover { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(88px, 12vw, 190px) 0; }
.section-tight { padding: clamp(64px, 8vw, 120px) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.bg-paper { background: var(--paper); }
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .eyebrow, .on-night .muted { color: rgba(236, 231, 224, 0.58); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------- Media ---------- */
.frame { position: relative; overflow: hidden; background: var(--paper); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity 0.8s var(--ease); }
a:hover .frame img, .frame:hover img.zoom { transform: scale(1.035); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--pad);
  color: var(--ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease), transform 0.6s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.over-image { color: #fff; }
.site-header.over-image::before {
  content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
  transition: opacity 0.5s var(--ease);
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(250, 248, 245, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom-color: var(--line);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 15px; font-weight: 400; letter-spacing: 0.36em; text-transform: uppercase; margin-right: -0.36em; }
.brand-sub { font-size: 9px; font-weight: 500; letter-spacing: 0.62em; text-transform: uppercase; margin-top: 8px; opacity: 0.72; }

.nav { display: flex; gap: clamp(24px, 3vw, 48px); }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; z-index: 2; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 48px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.menu-open .site-header { color: var(--ink); background: transparent; border-bottom-color: transparent; transform: none; }
.menu-open .site-header::before { opacity: 0; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: block; font-weight: 200; font-size: clamp(40px, 11vw, 64px); line-height: 1.2; }
.mobile-nav .mobile-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #151412; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.62) 0%, rgba(12, 11, 10, 0.12) 46%, rgba(12, 11, 10, 0) 70%);
}
.hero-content {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 7vh, 84px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
}
.hero-title { font-weight: 200; font-size: clamp(40px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -0.015em; max-width: 13ch; }
.hero-title .italic { font-size: 1.06em; }
.hero-side { display: grid; gap: 22px; justify-items: end; text-align: right; min-width: 260px; }
.hero-caption { display: grid; gap: 4px; min-height: 48px; transition: opacity 0.6s var(--ease); }
.hero-caption .eyebrow { color: rgba(255, 255, 255, 0.7); }
.hero-caption a { font-size: 17px; font-weight: 300; }
.hero-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-controls { display: flex; align-items: center; gap: 18px; }
.hero-count { font-size: 11px; letter-spacing: 0.24em; font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 20px; position: relative; }
.hero-dots button::before, .hero-dots button::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; }
.hero-dots button::before { right: 0; background: rgba(255, 255, 255, 0.35); }
.hero-dots button::after { width: 0; background: #fff; }
.hero-dots button.is-active::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-dots button.is-active::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 56px;
  background: rgba(255, 255, 255, 0.3); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Home hero: the name takes the stage on first load ---------- */
.hero-name-wrap {
  position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad); pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(12, 11, 10, 0.34), rgba(12, 11, 10, 0) 70%);
}
.hero-name { font-weight: 200; font-size: clamp(40px, 7.4vw, 124px); line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; margin-right: -0.2em; }
.hero-name .word { display: inline-block; white-space: nowrap; }
.hero-name .ltr { display: inline-block; }
.js .hero-name .ltr { opacity: 0; transform: translateY(0.3em); filter: blur(8px); animation: ltr-in 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 0.35s); }
@keyframes ltr-in { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-name-sub { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(11px, 0.9vw, 13px); font-weight: 500; letter-spacing: 0.62em; text-transform: uppercase; margin-right: -0.62em; opacity: 0.85; }
.hero-tag { margin-top: clamp(22px, 2.6vw, 38px); font-weight: 200; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.2; }
.hero-tag .italic { font-size: 1.08em; }
.js .hero-name-sub, .js .hero-tag { opacity: 0; transform: translateY(12px); animation: fade-up 1.2s var(--ease) forwards; }
.js .hero-name-sub { animation-delay: 1.35s; }
.js .hero-tag { animation-delay: 1.6s; }
@keyframes fade-up { to { opacity: 0.9; transform: none; } }
.site-header .brand { transition: opacity 0.6s var(--ease); }
.site-header.name-intro:not(.is-solid) .brand { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .hero-name { font-size: clamp(34px, 11vw, 56px); letter-spacing: 0.16em; margin-right: -0.16em; }
  .hero-name .word { display: block; }
  .hero-name .word + .word { margin-top: 0.15em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-name .ltr, .js .hero-name-sub, .js .hero-tag { opacity: 1; transform: none; filter: none; animation: none; }
}

/* ---------- Intro ---------- */
.intro .eyebrow { grid-column: 1 / 4; padding-top: 12px; }
.intro-body { grid-column: 4 / 13; }
.intro-body .lede { font-size: clamp(26px, 3vw, 46px); line-height: 1.26; color: var(--ink); }
.intro-body .actions { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Featured work (home) ---------- */
.work-grid { row-gap: clamp(56px, 8vw, 128px); }
.work-item { grid-column: span 12; }
.work-item .frame { aspect-ratio: var(--ar, 4 / 3); }
.wi-1 { grid-column: 1 / 8; --ar: 5 / 4; }
.wi-2 { grid-column: 9 / 13; --ar: 3 / 4; align-self: end; }
.wi-3 { grid-column: 2 / 6; --ar: 4 / 5; }
.wi-4 { grid-column: 7 / 13; --ar: 4 / 3; align-self: center; }
.wi-5 { grid-column: 1 / 13; --ar: 21 / 9; }
.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 18px; }
.work-cap h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 300; }
.work-cap .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin-right: 14px; }

/* ---------- Selected work carousel (home) ---------- */
.carousel { --edge: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); }
.carousel-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 40px); }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 17px; font-weight: 300;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s;
}
.carousel-arrows button:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carousel-arrows button:disabled { opacity: 0.3; cursor: default; }
.carousel-track {
  display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 0 0 0 var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track::after { content: ""; flex: 0 0 calc(var(--edge) - var(--gap)); }
.carousel-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel-track.is-dragging a { pointer-events: none; }
.carousel-item { flex: 0 0 clamp(280px, 34vw, 520px); scroll-snap-align: start; }
.carousel-item .frame { aspect-ratio: 4 / 5; }
.carousel-item img { -webkit-user-drag: none; }
.carousel-progress { position: relative; height: 1px; background: var(--line); margin-top: clamp(32px, 4vw, 56px); }
.carousel-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--ink); transition: left 0.25s var(--ease), width 0.25s var(--ease); }
@media (max-width: 1100px) { .carousel-item { flex-basis: 46vw; } }
@media (max-width: 640px) {
  .carousel-item { flex-basis: 82vw; }
  .carousel-arrows { display: none; }
}

/* ---------- Philosophy ---------- */
.philosophy { align-items: center; row-gap: 56px; }
.philosophy .frame { grid-column: 1 / 7; aspect-ratio: 4 / 5; }
.philosophy-body { grid-column: 8 / 13; }
.philosophy blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.12; letter-spacing: -0.005em; }
.philosophy cite, .quote-band cite { font-family: var(--sans); font-style: normal; }
.philosophy cite { display: block; margin-top: 22px; }
.philosophy .prose { margin-top: clamp(32px, 4vw, 56px); color: var(--ink-2); }
.philosophy .actions { margin-top: 40px; }

/* ---------- Home philosophy: light, full-bleed, image dissolving into the page ---------- */
.philo-immersive { position: relative; overflow: hidden; min-height: clamp(540px, 74vh, 740px); display: flex; align-items: center; padding: clamp(72px, 8vw, 120px) 0; background: var(--paper); }
.philo-bg { position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; will-change: transform; }
.philo-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.philo-immersive::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 248, 245, 0.98) 0%, rgba(250, 248, 245, 0.93) 32%, rgba(250, 248, 245, 0.55) 56%, rgba(250, 248, 245, 0) 78%);
}
.philo-content { position: relative; z-index: 2; }
.philo-copy { max-width: 620px; }
.philo-quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.1; letter-spacing: -0.005em; margin: 22px 0 18px; }
.philo-quote .w { display: inline-block; }
.philo-copy cite { display: block; font-style: normal; }
.philo-copy > p { margin-top: clamp(24px, 2.6vw, 36px); max-width: 46ch; color: var(--ink-2); }
.philo-copy .actions { margin-top: 28px; }
@media (max-width: 900px) {
  .philo-immersive::after { background: linear-gradient(to top, rgba(250, 248, 245, 0.97) 0%, rgba(250, 248, 245, 0.9) 55%, rgba(250, 248, 245, 0.45) 100%); }
}

/* ---------- Places marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 3vw, 36px) 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; white-space: nowrap; padding: 0 clamp(24px, 3vw, 48px); display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.service { border-top: 1px solid var(--line); padding-top: 28px; }
.service .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.service h3 { font-size: clamp(21px, 1.7vw, 25px); font-weight: 300; margin: 22px 0 14px; }
.service p { font-size: 15px; color: var(--ink-2); }

/* ---------- Press band ---------- */
.press-band { align-items: center; row-gap: 48px; }
.press-band .frame { grid-column: 1 / 7; aspect-ratio: 3 / 2; background: #222; }
.press-band-body { grid-column: 8 / 13; }
.masthead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--night-ink); opacity: 0.8; margin: 20px 0 28px; }
.press-band h2 { margin-bottom: 26px; }
.press-band p { color: rgba(236, 231, 224, 0.78); }
.press-band .actions { margin-top: 40px; }

/* ---------- Home press: full-bleed, immersive ---------- */
.press-immersive { position: relative; overflow: hidden; min-height: clamp(520px, 70vh, 720px); display: flex; align-items: center; padding: clamp(72px, 8vw, 120px) 0; background: #121110; }
.press-bg { position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; will-change: transform; }
.press-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.press-immersive::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 13, 12, 0.88) 0%, rgba(14, 13, 12, 0.66) 38%, rgba(14, 13, 12, 0.18) 75%, rgba(14, 13, 12, 0.05) 100%),
    linear-gradient(to top, rgba(14, 13, 12, 0.55), rgba(14, 13, 12, 0) 40%);
}
.press-content { position: relative; z-index: 2; }
.press-copy { max-width: 600px; }
.press-copy .masthead { margin: 14px 0 16px; }
.press-copy .display { font-size: clamp(40px, 5vw, 76px); }
.press-copy .display { color: #fff; }
.press-quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.3; color: var(--night-ink); margin: clamp(20px, 2.2vw, 32px) 0 0; padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid rgba(236, 231, 224, 0.4); }
.press-quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; }
.press-copy > p { color: rgba(236, 231, 224, 0.8); max-width: 52ch; }
.press-copy .actions { margin-top: 32px; }
.press-copy .link-line { color: var(--night-ink); }
@media (max-width: 900px) {
  .press-immersive { min-height: 0; }
  .press-immersive::after { background: linear-gradient(to top, rgba(14, 13, 12, 0.9) 0%, rgba(14, 13, 12, 0.6) 55%, rgba(14, 13, 12, 0.35) 100%); }
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .display { max-width: 15ch; margin: 22px auto 0; }
.cta p { max-width: 48ch; margin: 28px auto 0; color: var(--ink-2); }
.cta .actions { justify-content: center; margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(236, 231, 224, 0.7); padding: clamp(72px, 9vw, 128px) 0 36px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-top .brand { color: var(--night-ink); }
.footer-top .tagline { margin-top: 28px; max-width: 34ch; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(236, 231, 224, 0.45); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(236, 231, 224, 0.14); font-size: 12px; letter-spacing: 0.08em; }

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(150px, 20vw, 240px) 0 clamp(48px, 7vw, 104px); }
.page-head .eyebrow { margin-bottom: 26px; }
.page-head .lede { margin-top: 36px; max-width: 34ch; }
.page-head-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }

/* ---------- Portfolio index ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  min-height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 4vw, 72px); row-gap: clamp(56px, 7vw, 112px); padding-bottom: clamp(88px, 12vw, 180px); }
.project-card.is-offset { margin-top: clamp(0px, 10vw, 180px); }
.project-card .frame { aspect-ratio: 4 / 5; }
.project-card .frame img { position: absolute; inset: 0; }
.project-card .frame .alt { opacity: 0; }
.project-card a:hover .frame .alt { opacity: 1; }
.card-cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; margin-top: 22px; }
.card-cap h2 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 200; }
.card-cap .eyebrow { grid-column: 1; }
.card-cap .count { grid-row: 1 / 3; grid-column: 2; align-self: start; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* ---------- Portfolio: expanding panels ---------- */
.pf-head { padding-top: clamp(112px, 10vw, 150px); padding-bottom: clamp(24px, 3vw, 40px); }
.pf-note { max-width: 34ch; font-size: 16px; color: var(--ink-2); }
.pf-note .muted { display: block; margin-top: 8px; font-size: 13px; }
.panels-wrap { padding-bottom: clamp(88px, 12vw, 180px); }
.panels { display: flex; gap: 8px; height: clamp(460px, 74vh, 800px); list-style: none; margin: 0; padding: 0; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #151412; transition: flex-grow 0.9s var(--ease); }
.panel.is-active { flex-grow: 6; }
.panel a { position: absolute; inset: 0; display: block; color: #fff; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: brightness(0.7) saturate(0.9); transition: transform 1.4s var(--ease), filter 0.9s var(--ease); }
.panel.is-active img { transform: scale(1); filter: none; }
.panel a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(12, 11, 10, 0.62), rgba(12, 11, 10, 0) 55%); }
.panel-tab {
  position: absolute; z-index: 2; left: 50%; bottom: 28px;
  transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  transition: opacity 0.4s var(--ease);
}
.panel-tab .num { font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; }
.panel.is-active .panel-tab { opacity: 0; }
.panel-info {
  position: absolute; z-index: 2; left: clamp(22px, 2.6vw, 40px); bottom: clamp(24px, 3vw, 44px);
  min-width: 340px; display: grid; gap: 10px; justify-items: start;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.7s var(--ease);
}
.panel.is-active .panel-info { opacity: 1; transform: none; transition-delay: 0.35s; }
.panel-info .num { font-family: var(--serif); font-style: italic; font-size: 20px; }
.panel-title { font-weight: 200; font-size: clamp(34px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -0.01em; }
.panel-info .eyebrow { color: rgba(255, 255, 255, 0.75); }
.panel-meta { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.panel-info .link-line { margin-top: 10px; }
@media (max-width: 900px) {
  .panels { flex-direction: row; height: clamp(380px, 62vh, 560px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scroll-padding-left: 0; }
  .panels::-webkit-scrollbar { display: none; }
  .panel, .panel.is-active { flex: 0 0 80vw; height: 100%; scroll-snap-align: start; }
  .panel img { transform: none; filter: none; }
  .panel-tab { display: none; }
  .panel-info { opacity: 1; transform: none; min-width: 0; right: 22px; }
  .pf-note .muted { display: none; }
}

/* ---------- Portfolio: main photo + description + smaller photos ---------- */
.pf-index { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 36px); margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); }
.pf-index a { display: inline-flex; align-items: baseline; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); transition: color 0.3s var(--ease); }
.pf-index a span { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.pf-index a:hover { color: var(--ink); }
.pf-list { padding-bottom: clamp(88px, 12vw, 180px); }
.pf-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: end; padding: clamp(56px, 7vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.pf-item:first-child { border-top: 0; padding-top: clamp(24px, 3vw, 40px); }
.pf-main { grid-column: 1 / 8; display: block; }
.pf-main .frame { aspect-ratio: 4 / 3; }
.pf-body { grid-column: 8 / 13; padding-left: clamp(0px, 3vw, 56px); display: grid; gap: 16px; align-content: end; justify-items: start; }
.pf-item.rev .pf-main { grid-column: 6 / 13; grid-row: 1; }
.pf-item.rev .pf-body { grid-column: 1 / 6; grid-row: 1; padding-left: 0; padding-right: clamp(0px, 3vw, 56px); }
.pf-body .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.pf-body h2 { font-weight: 200; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.04; }
.pf-body p { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.pf-meta { font-size: 13px; color: var(--muted); }
.pf-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 8px; }
.pf-thumbs .frame { aspect-ratio: 4 / 5; }
.pf-thumbs a.frame:hover img { transform: scale(1.05); }
.pf-body .link-line { margin-top: 8px; }
@media (max-width: 900px) {
  .pf-main, .pf-body, .pf-item.rev .pf-main, .pf-item.rev .pf-body { grid-column: 1 / -1; grid-row: auto; padding: 0; }
}

/* ---------- Project page ---------- */
.project-hero { position: relative; height: 94vh; height: 94svh; min-height: 560px; color: #fff; background: #151412; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 11, 10, 0.6), rgba(12, 11, 10, 0) 55%); }
.project-hero-body { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(40px, 8vh, 96px); }
.project-hero-body .eyebrow { color: rgba(255, 255, 255, 0.78); margin-bottom: 20px; }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: #fff; }

.project-intro { row-gap: 56px; }
.project-meta { grid-column: 1 / 5; display: grid; gap: 26px; align-content: start; }
.project-meta dt { font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.project-meta dd { font-size: 16px; }
.project-meta a { border-bottom: 1px solid var(--line); }
.project-meta a:hover { border-color: var(--ink); }
.project-text { grid-column: 6 / 13; }
.project-text p { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }

.gallery { padding-bottom: clamp(88px, 12vw, 180px); }
.g-row { display: grid; gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
.g-full { grid-template-columns: 1fr; }
.g-inset { padding: 0 clamp(0px, 9vw, 160px); }
.g-narrow { max-width: min(100%, 980px); margin-left: auto; margin-right: auto; }
.g-single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.g-pair { grid-template-columns: 1fr 1fr; }
.g-mix { grid-template-columns: 1fr 1.5fr; }
.g-mix.rev { grid-template-columns: 1.5fr 1fr; }
.g-row figure { position: relative; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.g-row figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-row figure:hover img { transform: scale(1.02); }
.g-pair figure, .g-mix figure { aspect-ratio: var(--row-ar, 4 / 5); }

.next-project { position: relative; display: block; min-height: 72vh; color: #fff; overflow: hidden; background: #151412; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform 1.6s var(--ease), opacity 0.8s var(--ease); }
.next-project:hover img { transform: scale(1.03); opacity: 0.75; }
.next-project .container { position: relative; z-index: 2; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.next-project .eyebrow { color: rgba(255, 255, 255, 0.75); }

/* ---------- Project walk-through: pinned horizontal gallery ---------- */
.walk { position: relative; --wh: min(60vh, 640px); --edge: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); }
.walk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.walk-track { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); width: max-content; padding: 0 var(--edge); will-change: transform; }
.walk-intro, .walk-end { flex: 0 0 min(340px, 72vw); display: grid; gap: 18px; justify-items: start; align-content: center; }
.walk-intro { padding-right: clamp(0px, 2vw, 32px); }
.walk-count { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.walk-item { flex: none; margin: 0; cursor: zoom-in; will-change: transform, opacity; }
.walk-img { position: relative; height: var(--wh); width: calc(var(--wh) * var(--ar)); overflow: hidden; background: var(--paper); }
.walk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }
.walk-item figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font-size: 13px; color: var(--muted); }
.walk-item figcaption .n { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); }
.walk-progress { position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(24px, 5vh, 48px); height: 1px; background: var(--line); }
.walk-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .walk { --wh: min(40vh, 66vw); }
  .walk-track { gap: 14px; }
  .walk-intro, .walk-end { flex-basis: 74vw; }
  .walk-item figcaption { font-size: 12px; margin-top: 10px; }
  .walk .swipe-hint { display: none !important; }
}

/* ---------- Project gallery: tight mosaic ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
.gallery-head > div { display: flex; align-items: baseline; gap: 18px; }
.gallery-count { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 280px); gap: clamp(6px, 0.7vw, 10px); }
.bento figure { position: relative; overflow: hidden; background: var(--paper); cursor: zoom-in; grid-column: span 4; }
.bento figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bento figure:hover img { transform: scale(1.04); }
.bento .b-big { grid-column: span 8; grid-row: span 2; }
.bento .b-tall { grid-column: span 4; grid-row: span 2; }
.bento .b-wide { grid-column: span 8; }
.bento .b-half { grid-column: span 6; }
.bento .b-full { grid-column: span 12; grid-row: span 2; }
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; grid-auto-flow: dense; }
  .bento figure, .bento .b-half { grid-column: span 1; }
  .bento .b-big, .bento .b-wide, .bento .b-full { grid-column: span 2; grid-row: span 1; }
  .bento .b-tall { grid-column: span 1; grid-row: span 2; }
  .gallery-head .link-line { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18, 17, 16, 0.97); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lb-btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; font-size: 22px; font-weight: 200; opacity: 0.8; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 18px; right: 18px; font-size: 13px; letter-spacing: 0.24em; width: auto; padding: 0 18px; text-transform: uppercase; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.26em; font-weight: 500; }

/* ---------- About ---------- */
.about-split { row-gap: 56px; align-items: start; }
.about-split .frame { grid-column: 1 / 6; aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.about-split .about-body { grid-column: 7 / 13; }
.about-body h2 { margin-bottom: 30px; }
.about-body .block + .block { margin-top: clamp(64px, 8vw, 112px); }
.about-body .prose { color: var(--ink-2); font-size: 17px; }
.about-body .prose .lead { font-size: clamp(21px, 1.9vw, 26px); color: var(--ink); line-height: 1.45; }
.credential { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.credential:last-child { border-bottom: 1px solid var(--line); }
.credential .eyebrow { min-width: 130px; }
.quote-band { text-align: center; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.1; max-width: 20ch; margin: 0 auto; }
.quote-band cite { display: block; margin-top: 30px; font-style: normal; }

/* ---------- About (portrait layout) ---------- */
.about-hero { padding-top: clamp(130px, 14vw, 190px); align-items: end; row-gap: 48px; }
.about-portrait { grid-column: 1 / 6; aspect-ratio: 3 / 4; }
.about-portrait img { object-position: center 20%; }
.about-intro { grid-column: 7 / 13; }
.about-intro .display { margin: 22px 0 20px; }
.about-intro .role { display: block; margin-bottom: 34px; color: var(--ink-2); }
.about-intro .lede { max-width: 32ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.about-facts dt { font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.about-facts dd { font-size: 15px; }
.about-firm { row-gap: 40px; align-items: start; }
.about-firm-head { grid-column: 1 / 6; }
.about-firm .lead-q { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.12; margin-top: 24px; max-width: 14ch; }
.about-firm .prose { grid-column: 7 / 13; font-size: 17px; color: var(--ink-2); }
.about-wide { margin-top: clamp(64px, 8vw, 120px); margin-bottom: clamp(24px, 3vw, 40px); }
.about-wide .frame { aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .about-portrait, .about-intro, .about-firm-head, .about-firm .prose { grid-column: 1 / -1; }
  .about-facts { grid-template-columns: 1fr; }
  .about-wide .frame { aspect-ratio: 4 / 3; }
}

/* ---------- Press page ---------- */
.feature-hero { aspect-ratio: 21 / 9; }
.feature-head { row-gap: 40px; }
.feature-head .meta { grid-column: 1 / 5; display: grid; gap: 22px; align-content: start; }
.feature-head .meta dt { font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.feature-head .body { grid-column: 6 / 13; }
.feature-head .body .title-lg { margin-bottom: 18px; }
.feature-head .body .dek { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--ink-2); margin-bottom: 36px; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); line-height: 1.18; border-left: 1px solid var(--accent); padding-left: clamp(20px, 3vw, 40px); margin: 48px 0; max-width: 24ch; }
.caption-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.caption-grid .frame { aspect-ratio: 4 / 3; }
.caption-grid figcaption { font-size: 14px; color: var(--ink-2); margin-top: 16px; line-height: 1.6; }
.caption-grid figcaption strong { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.resources { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 0; font-size: 15px; }
.resources li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.resources li span:first-child { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

/* ---------- Contact ---------- */
.contact-grid { row-gap: 64px; padding-bottom: clamp(88px, 12vw, 180px); }
.contact-info { grid-column: 1 / 5; display: grid; gap: 36px; align-content: start; }
.contact-info .big { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; }
.contact-info .big a { border-bottom: 1px solid var(--line); transition: border-color 0.4s; }
.contact-info .big a:hover { border-color: var(--ink); }
.contact-info .frame { aspect-ratio: 4 / 3; margin-top: 12px; }
.contact-form { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--gap); align-content: start; }
.field { display: grid; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 18px; font-weight: 300; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0 14px; transition: border-color 0.4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- Contact: sentence form ---------- */
.contact-head { padding-bottom: clamp(24px, 3vw, 48px); }
.ct-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px; align-items: start; padding-bottom: clamp(88px, 12vw, 180px); }
.contact-form.sentence-form { grid-column: 1 / 8; grid-template-columns: 1fr; display: grid; gap: clamp(32px, 4vw, 52px); padding-bottom: 0; }
.sentence { font-weight: 200; font-size: clamp(26px, 3vw, 46px); line-height: 1.62; letter-spacing: -0.01em; color: var(--ink-2); }
.sentence .w, .sentence .blank { display: inline-block; }
.sentence .glue { white-space: nowrap; }
.js .words .w, .js .words .blank { opacity: 0; transform: translateY(0.45em); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 0.15s); }
.js .words.is-in .w, .js .words.is-in .blank { opacity: 1; transform: none; }
.blank { position: relative; max-width: 100%; vertical-align: baseline; }
.blank::after {
  content: ""; position: absolute; left: 0.1em; right: 0; bottom: 0.1em; height: 1px; background: rgba(30, 29, 27, 0.32);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease), background-color 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 0.55s), 0s;
}
.words.is-in .blank::after, html:not(.js) .blank::after { transform: scaleX(1); }
.blank:focus-within::after { background-color: var(--ink); }
.blank input, .pick-btn {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1em; line-height: 1.2;
  color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 0 0.06em 0.06em; margin: 0 0 0 0.1em;
  min-width: 3ch; max-width: 100%; -webkit-appearance: none; appearance: none;
}
.blank input::placeholder { color: rgba(119, 113, 106, 0.55); }
.blank input:focus, .pick-btn:focus { outline: none; }
.pick-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* custom dropdown: small, quiet list instead of the native select */
.pick { position: relative; display: inline-block; }
.pick-btn { cursor: pointer; padding-right: 0.85em; position: relative; }
.pick-btn::after {
  content: ""; position: absolute; right: 0.2em; top: 50%; width: 0.22em; height: 0.22em;
  border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.4s var(--ease);
}
.pick.is-open .pick-btn::after { transform: translateY(-20%) rotate(-135deg); }
.pick-list {
  position: absolute; left: 0.1em; top: calc(100% + 8px); z-index: 30; min-width: 250px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 44px -22px rgba(30, 29, 27, 0.28);
  font-family: var(--sans); font-style: normal; font-size: 15px; font-weight: 300; line-height: 1.4; letter-spacing: 0.01em;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
}
.pick.is-open .pick-list { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) {
  .pick-list { min-width: 0; width: min(280px, calc(100vw - 2 * var(--pad))); }
  .pick-list li { white-space: normal; }
}
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; white-space: nowrap; color: var(--ink-2); cursor: pointer; transition: background 0.2s, color 0.2s; }
.pick-list li:hover, .pick-list li:focus { background: var(--paper); color: var(--ink); outline: none; }
.pick-list li[aria-selected="true"] { color: var(--ink); }
.pick-list li[aria-selected="true"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.sentence-more { display: grid; gap: 12px; }
.sentence-more textarea {
  width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: 18px; font-weight: 300; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 14px;
  transition: border-color 0.4s var(--ease);
}
.sentence-more textarea:focus { outline: none; border-color: var(--ink); }

/* direct contact: email + phone in the spotlight */
.ct-direct { grid-column: 9 / 13; position: sticky; top: 120px; display: grid; padding-top: 18px; border-top: 1px solid var(--ink); }
.ct-direct > .eyebrow { color: var(--ink); margin-bottom: 8px; }
.ct-big { position: relative; display: grid; gap: 6px; padding: 24px 56px 24px 0; border-bottom: 1px solid var(--line); }
.ct-big .v { font-weight: 300; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -0.005em; overflow-wrap: anywhere; transition: transform 0.6s var(--ease); }
.ct-arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.6s var(--ease); }
.ct-big:hover .v { transform: translateX(6px); }
.ct-big:hover .ct-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-50%) rotate(-45deg); }
.ct-studio { padding-top: 24px; display: grid; gap: 6px; font-size: 16px; }
@media (max-width: 900px) {
  .contact-form.sentence-form, .ct-direct { grid-column: 1 / -1; }
  .ct-direct { position: relative; top: 0; }
}

/* swipe hint: only on touch-size screens where rows scroll sideways */
.swipe-hint { display: none; }
@media (max-width: 900px) {
  .swipe-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
  .swipe-hint .arrow { animation: nudge 1.8s var(--ease) infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { justify-items: start; text-align: left; min-width: 0; }
  .scroll-cue { display: none; }
  .intro .eyebrow, .intro-body,
  .wi-1, .wi-2, .wi-3, .wi-4, .wi-5,
  .philosophy .frame, .philosophy-body,
  .press-band .frame, .press-band-body,
  .project-meta, .project-text,
  .about-split .frame, .about-split .about-body,
  .feature-head .meta, .feature-head .body,
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .intro .eyebrow { margin-bottom: 24px; }
  .wi-2 { --ar: 4 / 5; }
  .wi-5 { --ar: 4 / 3; }
  .about-split .frame { position: relative; top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.is-offset { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .resources { columns: 1; }
  .g-inset { padding: 0; }
}
@media (max-width: 640px) {
  .services-grid, .caption-grid { grid-template-columns: 1fr; }
  .work-cap { flex-direction: column; gap: 4px; }
  .g-pair, .g-mix, .g-mix.rev { grid-template-columns: 1fr; }
  .g-pair figure, .g-mix figure { aspect-ratio: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .resources li { grid-template-columns: 1fr; gap: 4px; }
  .credential { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
