/* Gabe Visuals — minimal */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #F6F4EF;
  --bg-2: #EFEBE3;
  --ink: #0E0E0C;
  --mute: #8A8780;
  --line: #1C1C1A14;
  --accent: #0E0E0C;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 3vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; cursor: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

/* layout primitives */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference; color: #fff;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
}
.nav .logo { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; font-style: italic; }
.nav .logo b { font-style: normal; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a { position: relative; padding: 4px 0; font-weight: 400; }
.nav .links a .num { font-family: var(--mono); font-size: 10px; opacity: 0.6; margin-right: 6px; }
.nav .links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right 0.5s cubic-bezier(0.7,0,0.2,1);
}
.nav .links a:hover::after, .nav .links a.active::after { right: 0; }

/* mobile menu trigger */
.nav .menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav .menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.nav .menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav .menu-btn.open span:nth-child(2) { opacity: 0; }
.nav .menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav .links { display: none; }
  .nav .menu-btn { display: flex; }
  .nav { mix-blend-mode: difference; }
}

/* mobile overlay menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--bg);
  flex-direction: column; padding: 100px var(--pad) 40px;
  transform: translateY(-100%); transition: transform 0.7s cubic-bezier(0.76,0,0.24,1); pointer-events: none; }
@media (max-width: 760px) { .mobile-menu { display: flex; } }
.mobile-menu.open { transform: translateY(0); pointer-events: auto; }
.mobile-menu a { display: block; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--serif); font-size: clamp(36px, 9vw, 56px); line-height: 1; letter-spacing: -0.02em; color: var(--bg); }
.mobile-menu a:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-menu a .num { font-family: var(--mono); font-size: 11px; opacity: 0.5; margin-right: 16px; vertical-align: super; }
.mobile-menu a em { font-style: italic; opacity: 0.5; }
.mobile-menu .foot-info { margin-top: auto; padding-top: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; }

/* cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 999px; transform: translate(-50%, -50%);
  will-change: transform, width, height;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; transition: opacity 0.2s; }
.cursor-ring { width: 28px; height: 28px; border: 1px solid #fff;
  transition: width 0.4s cubic-bezier(0.2,0.8,0.2,1), height 0.4s cubic-bezier(0.2,0.8,0.2,1), background 0.3s, border-color 0.3s, opacity 0.2s; }
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(255,255,255,0.08); }
.cursor-ring.view { width: 110px; height: 110px; background: #fff; mix-blend-mode: difference; }
.cursor-label { position: fixed; pointer-events: none; z-index: 10000;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.2s; }
.cursor-label.show { opacity: 1; }

@media (hover: none) { body { cursor: auto; } button, a { cursor: pointer; } .cursor-dot, .cursor-ring, .cursor-label { display: none; } }

/* page transition wipe */
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--ink); transform-origin: bottom; }

/* hero — locked to exact viewport so scroll hint never gets clipped below the fold */
.hero { position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden; background: #0a0a0a; }
.hero .frame { position: absolute; inset: 0; overflow: hidden; background: #0a0a0a; }
/* Image overhangs the frame by 25vh in both directions so the parallax translate
   never reveals an edge — even on fast rubber-band scrolls. */
.hero .frame img { position: absolute; left: 0; right: 0; top: -25vh; width: 100%; height: calc(100% + 50vh); object-fit: cover; will-change: transform; }
.hero .scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.55) 100%);
}
.hero .meta-tl, .hero .meta-tr, .hero .meta-bl, .hero .meta-br {
  position: absolute; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; gap: 12px; align-items: center;
}
.hero .meta-tl { top: 96px; left: var(--pad); }
.hero .meta-tr { top: 96px; right: var(--pad); }
.hero .meta-bl { bottom: 32px; left: var(--pad); flex-direction: column; align-items: flex-start; gap: 6px; }
.hero .meta-br { bottom: 32px; right: var(--pad); flex-direction: column; align-items: flex-end; gap: 6px; }
.hero .meta-tl .dot { width: 6px; height: 6px; border-radius: 999px; background: #ff5b3c; box-shadow: 0 0 0 4px rgba(255,91,60,0.18); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }

.hero .title-wrap {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%);
  color: #fff; pointer-events: none;
}
.hero .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.hero .display {
  font-family: var(--serif); font-weight: 400; line-height: 0.92; letter-spacing: -0.025em;
  font-size: clamp(64px, 14vw, 220px);
}
.hero .display em { font-style: italic; opacity: 0.92; }
.hero .display .row { display: block; overflow: hidden; }
.hero .display .row span { display: inline-block; transform: translateY(110%); will-change: transform; }
.hero .display .row.show span { transition: transform 1.1s cubic-bezier(0.7,0,0.2,1); transform: translateY(0); }

.hero .sub { margin-top: 24px; max-width: 520px; font-size: 14px; line-height: 1.5; opacity: 0.9; }

/* Animated scroll-hint mark — 16px vertical line that drips downward, looping every 2s */
.drip { display: inline-block; position: relative; width: 1px; height: 16px; background: rgba(255,255,255,0.18); overflow: hidden; vertical-align: middle; margin-right: 10px; }
.drip .drip-bar { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: currentColor; animation: drip-fall 2s cubic-bezier(0.65,0,0.35,1) infinite; }
@keyframes drip-fall {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* full-bleed reveal mask used on entry images */
.reveal { position: relative; overflow: hidden; }
.reveal .mask {
  position: absolute; inset: 0; background: var(--bg); transform-origin: top;
  animation: maskOut 1.4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: var(--d, 0.1s);
}
.reveal img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(0.2,0.8,0.2,1); transition-delay: var(--d, 0.1s); }
.reveal.in img { transform: scale(1.0); }
@keyframes maskOut { 0% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* section base */
section.block { padding: clamp(80px, 12vh, 160px) var(--pad); }
.eyebrow-line { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 48px; }
.eyebrow-line::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
h2.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.02em; max-width: 14ch; }
h2.section-title em { font-style: italic; }

/* Intro block — tight editorial lockup: short top strip, oversized headline,
   two-row discipline index. No oversized whitespace; reads as one composition. */
.intro-block { padding-top: clamp(72px, 10vh, 120px); padding-bottom: clamp(40px, 6vh, 72px); }

.intro-top {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  padding-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,0.14);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.intro-top .live { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.intro-top .live .ld { width: 6px; height: 6px; border-radius: 999px; background: #ff5b3c; box-shadow: 0 0 0 3px rgba(255,91,60,0.18); animation: blink 2s infinite; }

.intro-headline {
  font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 140px); line-height: 0.96;
  letter-spacing: -0.028em; color: var(--fg); margin: 0; text-wrap: balance;
}
.intro-headline .l1, .intro-headline .l2, .intro-headline .l3, .intro-headline .l4 { display: block; }
.intro-headline .l2 { padding-left: 1.4ch; }
.intro-headline .l3 { padding-left: 0.6ch; }
.intro-headline .l4 { padding-left: 2.4ch; }
.intro-headline em { font-style: italic; opacity: 0.92; }

/* Melbourne — italic word with a hand-drawn SVG underline that reveals on load */
.intro-headline .melb {
  position: relative; display: inline-block; white-space: nowrap;
}
.intro-headline .melb em { font-style: italic; opacity: 1; }
.intro-headline .melb-ul {
  position: absolute;
  left: 0; right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.22em;
  color: var(--fg);
  opacity: 0.85;
  overflow: visible;
  pointer-events: none;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: melb-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
}
@keyframes melb-draw {
  to { stroke-dashoffset: 0; }
}
/* Consistent 1px hairline borders across the intro index — single border-top per row,
   with a bottom rule on the wrapper so all four lines render at identical thickness. */

/* Discipline index — single border-top per row + bottom border on wrapper
   so all four hairlines render at identical 1px thickness. */
.intro-index {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}
.ix-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(18px, 2.6vh, 26px) 0;
  border-top: 1px solid rgba(0,0,0,0.18);
  color: var(--fg); text-decoration: none;
  transition: padding-left 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.ix-row:hover { padding-left: 14px; }
.ix-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--mute); }
.ix-ttl { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -0.015em; line-height: 1.05; }
.ix-ttl em { font-style: italic; opacity: 0.7; }
.ix-desc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; justify-self: end; }
.ix-go { display: inline-flex; align-items: center; color: var(--fg); transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); }
.ix-row:hover .ix-go { transform: translateX(6px); }

@media (max-width: 760px) {
  .intro-top { font-size: 10px; padding-bottom: 14px; margin-bottom: 28px; }
  .intro-headline { font-size: clamp(36px, 11vw, 64px); }
  .intro-headline .l2 { padding-left: 1.2ch; }
  .intro-headline .l3 { padding-left: 0.2ch; }
  .intro-headline .l4 { padding-left: 1.4ch; }
  .intro-index { margin-top: 32px; }
  .ix-row { grid-template-columns: auto 1fr auto; row-gap: 6px; padding: 18px 0; }
  .ix-desc { grid-column: 1 / -1; justify-self: start; font-size: 10px; white-space: normal; }
  .ix-ttl { font-size: clamp(22px, 6vw, 32px); }
}


/* featured strip on home */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--pad); }
.featured .head { grid-column: 1 / 6; padding: 64px 0 32px; }
.featured .head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.featured .head h3 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; margin-top: 16px; }
.featured .head h3 em { font-style: italic; }
.featured .head .desc { margin-top: 20px; font-size: 14px; line-height: 1.6; color: #3a3a36; max-width: 38ch; }

.split-imgs { grid-column: 6 / 13; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: end; }
.split-imgs .a { aspect-ratio: 4/5; }
.split-imgs .b { aspect-ratio: 4/5; margin-bottom: 64px; }
.split-imgs .img { position: relative; overflow: hidden; }
.split-imgs .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(0.2,0.8,0.2,1); }
.split-imgs .img:hover img { transform: scale(1.06); }
.split-imgs .img .cap { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; justify-content: space-between; }

@media (max-width: 880px) {
  .featured .head { grid-column: 1 / 13; padding: 40px 0 24px; }
  .split-imgs { grid-column: 1 / 13; grid-template-columns: 1fr 1fr; }
  .split-imgs .b { margin-bottom: 0; }
}

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; overflow: hidden; white-space: nowrap; margin-top: 80px; }
.marquee .track { display: inline-flex; gap: 64px; animation: scroll 40s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--ink); }
.marquee span.alt { font-style: normal; font-family: var(--sans); font-weight: 300; font-size: 48px; }
.marquee .star { color: var(--mute); font-size: 32px; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* footer */
footer.foot { padding: 80px var(--pad) 32px; background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
footer .big { grid-column: 1 / 13; font-family: var(--serif); font-size: clamp(48px, 9vw, 160px); line-height: 0.95; letter-spacing: -0.025em; padding-bottom: 60px; }
footer .big em { font-style: italic; }
footer .big a { display: inline-flex; align-items: center; gap: 24px; }
footer .big a .arrow { width: 0.7em; height: 0.7em; }
footer .col { grid-column: span 3; font-size: 13px; }
footer .col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; font-weight: 500; }
footer .col p, footer .col a { line-height: 1.7; display: block; }
footer .legal { grid-column: 1 / 13; display: flex; justify-content: space-between; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 880px) { footer .col { grid-column: span 6; } }

/* WORK pages */
.work-cover { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; margin-top: 0; background: #0a0a0a; }
.work-cover.hero-mode { height: 100vh; height: 100svh; }
.work-cover .img { position: absolute; inset: 0; overflow: hidden; background: #0a0a0a; }
.work-cover .img img { position: absolute; left: 0; right: 0; top: -25vh; width: 100%; height: calc(100% + 50vh); object-fit: cover; will-change: transform; }
.work-cover .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.6) 100%); }
.work-cover .corners { position: absolute; inset: 0; color: #fff; pointer-events: none; }
.work-cover .corners > div { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; gap: 12px; }
.work-cover .corners .tl { top: 96px; left: var(--pad); }
.work-cover .corners .tr { top: 96px; right: var(--pad); }
.work-cover .corners .bl { bottom: 32px; left: var(--pad); flex-direction: column; gap: 6px; }
.work-cover .corners .br { bottom: 32px; right: var(--pad); flex-direction: column; align-items: flex-end; gap: 6px; }
.work-cover h1.cover-title { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); color: #fff;
  font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 13vw, 200px); line-height: 0.92; letter-spacing: -0.025em; pointer-events: none; }
.work-cover h1.cover-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.work-cover h1.cover-title .line .inner { display: inline-block; transform: translateY(110%); animation: maskRise 1.1s cubic-bezier(0.7,0,0.2,1) 0.2s forwards; }
.work-cover h1.cover-title em { font-style: italic; opacity: 0.9; }

.work-head { padding: 80px var(--pad) 60px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-head .label { grid-column: 1 / 4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-top: 14px; display: flex; gap: 12px; }
.work-head .label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; align-self: center; }
.work-head h1 { grid-column: 4 / 13; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.02em; }
.work-head h1 em { font-style: italic; color: var(--mute); margin-left: 0.3em; }
.work-head .meta { grid-column: 4 / 13; display: flex; gap: 64px; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 40px; font-size: 13px; color: #3a3a36; }
.work-head .meta div { flex: 0 0 auto; }
.work-head .meta h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; font-weight: 500; }

/* asymmetric grid */
.grid-asym { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 40px var(--pad) 80px; }
.grid-asym .item { position: relative; overflow: hidden; }
.grid-asym .item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1); }
.grid-asym .item:hover img { transform: scale(1.05); }
.grid-asym .cap { display: flex; justify-content: space-between; padding: 12px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }

/* justified rows — equal-height row layout for mixed portrait/landscape */
.grid-rows { display: flex; flex-direction: column; gap: 20px; padding: 56px clamp(24px, 3vw, 56px) 100px; max-width: 2200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.grid-row { display: flex; gap: 20px; height: clamp(320px, 42vw, 620px); }
.grid-row.partial { height: clamp(300px, 38vw, 560px); justify-content: center; }
.grid-row .row-item { position: relative; overflow: hidden; min-width: 0; height: 100%; }
.grid-row .row-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1); }
.grid-row .row-item:hover img { transform: scale(1.04); }
.grid-row .row-item .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.grid-row .row-item:hover .cap { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .grid-row { height: clamp(260px, 38vw, 440px); }
  .grid-row.partial { height: clamp(240px, 34vw, 400px); }
}
@media (max-width: 760px) {
  .grid-rows { gap: 10px; padding: 24px 16px 60px; }
  .grid-row, .grid-row.partial { flex-direction: column; gap: 10px; height: auto; }
  .grid-row .row-item { flex: none !important; aspect-ratio: 4/3 !important; height: auto; width: 100%; }
  .grid-row .row-item .cap { opacity: 1; transform: none; }
}

/* hover-list (alt work layout) */
.list-view { padding: 40px var(--pad) 80px; }
.list-row { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); position: relative; cursor: none; transition: padding 0.5s cubic-bezier(0.7,0,0.2,1); }
.list-row:last-child { border-bottom: 1px solid var(--line); }
.list-row:hover { padding-left: 12px; }
.list-row .num { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.list-row h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; transition: transform 0.5s cubic-bezier(0.7,0,0.2,1); }
.list-row:hover h4 { transform: translateX(8px); }
.list-row .year, .list-row .tags { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0.06em; }
.list-row .preview { position: fixed; pointer-events: none; width: 320px; height: 400px; transform: translate(-50%, -50%) scale(0.96); z-index: 30; opacity: 0; transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2,0.8,0.2,1); overflow: hidden; }
.list-row:hover .preview { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.list-row .preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  .list-row { grid-template-columns: 36px 1fr auto; }
  .list-row .tags { display: none; }
  .list-row .preview { display: none; }
}

/* lightbox — image centered in viewport with meta directly underneath */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(14,14,12,0.94); display: flex; align-items: center; justify-content: center; padding: 64px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox .stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 88vw; max-height: 78vh; object-fit: contain; display: block; }
.lightbox .lb-meta { width: 100%; display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,0.75); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox .close, .lightbox .prev, .lightbox .next { position: absolute; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: transparent; border: 0; cursor: pointer; padding: 8px 12px; }
.lightbox .close { top: 24px; right: 32px; display: flex; gap: 8px; align-items: center; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 880px) {
  .lightbox { padding: 24px; }
  .lightbox .prev, .lightbox .next { display: none; }
  .lightbox .lb-meta { font-size: 10px; }
  .lightbox img { max-width: 92vw; max-height: 76vh; }
}

/* CONTACT */
.contact-page { padding: 160px var(--pad) 80px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; min-height: 100vh; }
.contact-page .label { grid-column: 1 / 4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-top: 14px; }
.contact-page h1 { grid-column: 4 / 13; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 160px); line-height: 0.9; letter-spacing: -0.025em; }
.contact-page h1 em { font-style: italic; }
.contact-page h1 a { display: inline-block; position: relative; }
.contact-page h1 a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 2px; background: currentColor; transform: scaleX(0.0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.7,0,0.2,1); }
.contact-page h1 a:hover::after { transform: scaleX(1); }

.contact-form { grid-column: 4 / 10; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.contact-form .form-intro { margin-bottom: 32px; }
.contact-form .form-intro .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.contact-form .form-intro p { font-family: var(--serif); font-size: 22px; line-height: 1.4; letter-spacing: -0.005em; color: var(--ink); max-width: 540px; }
.contact-form .form-intro .req-mark { color: var(--accent); font-style: italic; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label .req { color: var(--accent); margin-left: 4px; opacity: 0.7; }
.contact-form .field-err input,
.contact-form .field-err textarea { border-bottom-color: var(--accent) !important; }
.contact-form .field-msg { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.contact-form label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; margin-top: 28px; }
.contact-form label .budget-value { display: none; }
.contact-form label .budget-value .budget-tier { display: none; }

/* Big budget display */
.budget-display {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 12px 0 24px;
}
.budget-display .amount,
.budget-display .amount-edit {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(48px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s cubic-bezier(0.2,0.8,0.2,1);
}
.budget-display .amount-display {
  cursor: text;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.budget-display .amount-display:hover { border-bottom-color: var(--line); }
.budget-display .amount-display:focus { outline: none; border-bottom-color: var(--ink); }
.budget-display .amount-edit {
  background: transparent; border: none; outline: none;
  width: 5ch; padding: 0 0 2px; margin: 0;
  border-bottom: 1px solid var(--ink);
  cursor: text;
}
.budget-display .amount-edit::-webkit-outer-spin-button,
.budget-display .amount-edit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.budget-display .amount.bump { transform: scale(1.04); }
.budget-display .currency {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px); color: var(--mute);
  letter-spacing: -0.02em; font-style: normal;
}
.budget-display .tier {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); margin-left: auto;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}

.budget-slider-wrap { padding: 8px 0 4px; position: relative; }

/* Track marks (visual dots at intervals) */
.budget-track {
  position: relative; height: 36px;
  display: flex; align-items: center;
  cursor: pointer;
}
.budget-track-bg {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--line); transform: translateY(-50%);
}
.budget-track-fill {
  position: absolute; left: 0; top: 50%; height: 1px;
  background: var(--ink); transform: translateY(-50%);
  transition: width 0.05s linear;
}
.budget-track-marks {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; pointer-events: none;
}
.budget-track-marks span {
  width: 1px; height: 8px; background: var(--line);
}

.budget-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; background: transparent; outline: none; cursor: grab;
  margin: 0; padding: 0; position: relative; z-index: 2;
}
.budget-slider:active { cursor: grabbing; }
.budget-slider::-webkit-slider-runnable-track { height: 36px; background: transparent; border: 0; }
.budget-slider::-moz-range-track { height: 36px; background: transparent; border: 0; }

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: 4px;
  border-radius: 50%; background: var(--ink);
  border: 4px solid var(--bg);
  cursor: grab;
  box-shadow: 0 0 0 1px var(--ink), 0 4px 14px rgba(14,14,12,0.18);
  transition: transform 0.18s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.18s;
}
.budget-slider:hover::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 1px var(--ink), 0 6px 20px rgba(14,14,12,0.25); }
.budget-slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.06); }
.budget-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px rgba(14,14,12,0.15); }

.budget-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--ink);
  border: 4px solid var(--bg);
  cursor: grab;
  box-shadow: 0 0 0 1px var(--ink), 0 4px 14px rgba(14,14,12,0.18);
}

.budget-ticks {
  display: flex; justify-content: space-between; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute);
}
.budget-ticks span { position: relative; cursor: pointer; transition: color 0.2s; padding: 4px 0; }
.budget-ticks span:hover { color: var(--ink); }
.budget-ticks span.active { color: var(--ink); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; font: inherit; color: var(--ink); font-size: 18px; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Work-page footer "See also" cross-link (Sports ↔ Automotive) — small editorial card */
.foot .see-also { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 24px; }
.foot .see-also .sa-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); flex: 0 0 auto; }
.foot .see-also .sa-link { display: inline-flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.foot .see-also .sa-link em { font-style: italic; }
.foot .see-also .sa-link .sa-sub { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.foot .see-also .sa-link .arrow { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.7,0,0.2,1); }
.foot .see-also .sa-link:hover .arrow { transform: translateX(6px); }
@media (max-width: 760px) {
  .foot .see-also { flex-direction: column; gap: 12px; }
  .foot .see-also .sa-link { font-size: 28px; flex-wrap: wrap; }
  .foot .see-also .sa-link .sa-sub { display: none; }
}
.contact-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; transition: all 0.2s; }
.contact-form .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-form .submit { margin-top: 48px; display: flex; align-items: center; gap: 16px; padding: 18px 32px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; transition: all 0.4s; position: relative; overflow: hidden; }
.contact-form .submit::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.7,0,0.2,1); z-index: -1; }
.contact-form .submit:hover { color: var(--bg); }
.contact-form .submit:hover::before { transform: translateY(0); }

.contact-side { grid-column: 10 / 13; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.contact-side h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; margin-top: 28px; font-weight: 500; }
.contact-side p, .contact-side a { font-size: 14px; line-height: 1.7; display: block; }

@media (max-width: 880px) {
  .contact-page h1 { grid-column: 1 / 13; }
  .contact-page .label { grid-column: 1 / 13; padding-bottom: 24px; }
  .contact-form { grid-column: 1 / 13; }
  .contact-side { grid-column: 1 / 13; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* fade-in on scroll */
.fadeup { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2,0.8,0.2,1), transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.fadeup.in { opacity: 1; transform: translateY(0); }

/* ABOUT */
.about-page { padding: 160px var(--pad) 60px; }
.about-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 80px; }
.about-head .label { grid-column: 1 / 4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-top: 14px; }
.about-head h1 { grid-column: 4 / 13; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 130px); line-height: 0.96; letter-spacing: -0.025em; }
.about-head h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.about-head h1 .line .inner { display: inline-block; transform: translateY(110%); animation: maskRise 1.1s cubic-bezier(0.7,0,0.2,1) 0.05s forwards; }
.about-head h1 em { font-style: italic; color: var(--mute); }

.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.about-grid .portrait { grid-column: 1 / 6; aspect-ratio: 4/5; overflow: hidden; }
.about-grid .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(0.2,0.8,0.2,1); }
.about-grid .portrait:hover img { transform: scale(1.04); }
.about-grid .bio { grid-column: 7 / 13; padding-top: 24px; }
.about-grid .kit { grid-column: 1 / 7; padding-top: 60px; border-top: 1px solid var(--line); margin-top: 60px; }
.about-grid .services { grid-column: 7 / 13; padding-top: 60px; border-top: 1px solid var(--line); margin-top: 60px; }

.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 28px; }
.bio .lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 24px; }
.bio p { font-size: 15px; line-height: 1.7; color: #3a3a36; margin-bottom: 16px; max-width: 56ch; }

.kit-list { list-style: none; }
.kit-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.kit-list li:last-child { border-bottom: 1px solid var(--line); }
.kit-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: baseline; }
.kit-num { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.kit-name { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.01em; }
.kit-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.kit-note { margin-top: 8px; padding-left: 52px; font-size: 13px; color: #3a3a36; line-height: 1.6; max-width: 50ch; }

.svc-list { list-style: none; font-size: 14px; }
.svc-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list li span { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.1em; }

.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.press-grid div { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; font-style: italic; }

.approach-list { list-style: none; font-size: 14px; }
.approach-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
.approach-list li:last-child { border-bottom: 1px solid var(--line); }
.approach-list li span { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.1em; }

@media (max-width: 880px) {
  .about-head h1 { grid-column: 1 / 13; }
  .about-head .label { grid-column: 1 / 13; padding-bottom: 16px; }
  .about-grid .portrait { grid-column: 1 / 13; }
  .about-grid .bio { grid-column: 1 / 13; }
  .about-grid .kit, .about-grid .services { grid-column: 1 / 13; }
}

/* MOBILE responsive overrides */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .hero { height: 100vh; height: 100svh; }
  /* Hide hero corner meta on mobile — too crowded under nav */
  .hero .meta-tl, .hero .meta-tr { display: none; }
  .hero .meta-bl, .hero .meta-br { bottom: 24px; font-size: 10px; }
  .hero .meta-bl span:first-child, .hero .meta-br span:nth-child(2) { display: none; }
  /* Cover frame corners (work pages) — also hide top, keep bottom */
  .work-cover .corners .tl, .work-cover .corners .tr { display: none; }
  .hero .display { font-size: clamp(56px, 18vw, 96px) !important; }
  .hero .sub { font-size: 13px; max-width: 100%; }

  .featured { grid-template-columns: 1fr; gap: 16px; }
  .featured .head { padding: 32px 0 16px !important; }
  .featured .head h3 { font-size: clamp(36px, 9vw, 56px) !important; }
  .split-imgs { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .split-imgs .b { margin-bottom: 0 !important; }

  section.block { padding: 60px var(--pad); }
  h2.section-title { font-size: clamp(32px, 8vw, 56px); }
  .marquee { padding: 20px 0; margin-top: 60px; }
  .marquee span { font-size: 36px; }
  .marquee span.alt { font-size: 28px; }
  .marquee .star { font-size: 22px; }
  .marquee .track { gap: 32px; }

  footer.foot { padding: 60px var(--pad) 24px; }
  footer .big { font-size: clamp(56px, 18vw, 96px); padding-bottom: 40px; }
  footer .col { grid-column: 1 / 13 !important; }
  footer .legal { flex-direction: column; gap: 8px; padding-top: 24px; margin-top: 24px; }

  /* Work cover */
  .work-cover { height: 100vh; height: 100svh; }
  .work-cover .corners > div { font-size: 10px; }
  .work-cover .corners .tl, .work-cover .corners .tr { top: 80px; }
  .work-cover .corners .bl, .work-cover .corners .br { bottom: 24px; }
  .work-cover h1.cover-title { font-size: clamp(56px, 16vw, 96px); }

  .work-head { padding: 60px var(--pad) 32px; }
  .work-head .label, .work-head h1, .work-head .meta { grid-column: 1 / 13 !important; }
  .work-head h1 { font-size: clamp(36px, 9vw, 56px); }
  .work-head .meta { flex-wrap: wrap; gap: 24px; padding-top: 24px; margin-top: 24px; }
  .work-head .meta div { flex: 0 0 calc(50% - 12px); }

  /* Asym grid → single column on mobile */
  .grid-asym { grid-template-columns: 1fr; gap: 32px; padding: 24px var(--pad) 60px; }
  .grid-asym > div { grid-column: 1 / -1 !important; }
  .grid-asym .item > div { aspect-ratio: 4/5 !important; }

  /* About */
  .about-page { padding: 100px var(--pad) 40px; }
  .about-head { margin-bottom: 40px; }
  .about-head h1 { font-size: clamp(40px, 10vw, 64px); }
  .about-grid { gap: 32px 16px; }
  .about-grid .kit, .about-grid .services { padding-top: 32px; margin-top: 32px; }
  .bio .lead { font-size: 22px; }
  .kit-name { font-size: 20px; }
  .kit-note { padding-left: 0; }
  .kit-row { grid-template-columns: 28px 1fr; }
  .kit-row .kit-tag { grid-column: 2; font-size: 9px; }

  /* Contact */
  .contact-page { padding: 100px var(--pad) 40px; }
  .contact-page h1 { font-size: clamp(40px, 11vw, 72px); word-break: break-word; }
  .contact-page h1 a { font-size: clamp(20px, 5vw, 32px); display: block; margin-top: 12px; word-break: break-all; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .contact-form .submit { width: 100%; justify-content: center; }

  /* Lightbox */
  .lightbox { padding: 24px; }
  .lightbox .close { top: -36px; }
  .lightbox img { max-height: 70vh; }
}

@media (max-width: 380px) {
  .hero .meta-bl, .hero .meta-br { font-size: 9px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal img { transform: none !important; }
  .reveal .mask { display: none; }
}
