/* ==========================================================================
   AETHER — Cinematic Parallax Website
   UI/UX Design — Cinematic Scroll Experience
   ========================================================================== */

:root {
  --bg:         #06070b;
  --bg-2:       #0c0e14;
  --fg:         #f2f1ec;
  --fg-dim:     #9a9890;
  --fg-muted:   #5a5850;
  --accent:     #ff5416;
  --accent-2:   #f6c25b;
  --line:       rgba(242,241,236,0.10);

  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:"Space Grotesk", "Inter", sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;

  --pad: clamp(20px, 4vw, 56px);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* lenis handles smooth scroll */
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  cursor: none;
  min-height: 100vh;
  position: relative;
}

img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
button { background: none; border: none; color: inherit; cursor: none; font: inherit; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 9999;
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-cinematic), visibility .9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(420px, 80vw); }
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600; letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.preloader__mark::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--accent);
  clip-path: inset(0 100% 0 0);
  animation: wipe 1.6s var(--ease-cinematic) .2s forwards;
}
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

.preloader__bar {
  margin-top: 24px; height: 1px; background: rgba(242,241,236,.15);
  overflow: hidden;
}
.preloader__fill { display: block; height: 100%; background: var(--fg); width: 0%; }
.preloader__meta {
  margin-top: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============ GRAIN ============ */
.grain {
  pointer-events: none; position: fixed; inset: -10%; z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .6; mix-blend-mode: overlay;
  animation: grainShift 8s steps(4) infinite;
}
@keyframes grainShift {
  0%{transform:translate(0,0)} 25%{transform:translate(-3%,-2%)} 50%{transform:translate(2%,1%)} 75%{transform:translate(-1%,3%)} 100%{transform:translate(0,0)}
}
.vignette {
  pointer-events: none; position: fixed; inset: 0; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ============ CURSOR ============ */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99; mix-blend-mode: difference; }
.cursor__dot {
  position: absolute; top:-4px; left:-4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.cursor__ring {
  position: absolute; top:-22px; left:-22px;
  width: 44px; height: 44px; border: 1px solid #fff; border-radius: 50%;
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), top .35s, left .35s, opacity .3s;
  opacity: .5;
}
.cursor__label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: scale(.6); transition: .3s; font-family: var(--font-display); }
.cursor.is-hover .cursor__ring { width: 68px; height: 68px; top:-34px; left:-34px; opacity: 1; }
.cursor.is-hover .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-click .cursor__ring { transform: scale(.85); }
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, body { cursor: auto; }
  button,a { cursor: pointer; }
  .cursor { display: none !important; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  padding: 0 var(--pad); pointer-events: none;
  transition: transform .5s cubic-bezier(.6,.05,.2,1);
}
.nav__shell {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 14px 20px;
  background: rgba(6,7,11,.55);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: .9rem; }
.nav__logoMark {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(255,84,22,.45);
}
.nav__logo em { font-style: normal; opacity: .6; font-size: .75em; }
.nav__links { display: flex; gap: 30px; justify-self: center; }
.nav__links a {
  position: relative; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim);
  transition: color .3s;
}
.nav__links a::before {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__clock { font-size: .7rem; letter-spacing: .12em; color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__cta {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background .3s, border-color .3s;
  overflow: hidden; position: relative;
}
.nav__cta span { position: relative; z-index: 2; transition: color .3s; }
.nav__cta i { position: relative; z-index: 2; transition: transform .3s; font-style: normal; }
.nav__cta::before {
  content:''; position:absolute; inset:0; background: var(--fg); transform: translateY(101%);
  transition: transform .45s var(--ease-cinematic); z-index:1;
}
.nav__cta:hover { border-color: var(--fg); color: var(--bg); }
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover i { transform: translate(4px,-4px); }
.nav__burger { width: 38px; height: 38px; display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px; }
.nav__burger span { height: 1.5px; background: var(--fg); transition: .3s; transform-origin: center; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ============ PROGRESS ============ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: transparent; }
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

/* ============ MENU (mobile) ============ */
.menu { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 820px;
  overflow: hidden; background: #03040a;
}
.hero__stage {
  position: absolute; inset: 0;
  /* parallax container scaled to allow motion */
  transform: scale(1.18);
  will-change: transform;
}
.hero__layer {
  position: absolute; inset: 0; will-change: transform;
}
.hero__layer img { position: absolute; inset: 0; width: 100%; height: 110%; object-fit: cover; filter: saturate(1.05); }

.hero__sky {
  position: absolute; inset: -20%; background:
    radial-gradient(circle at 20% 30%, rgba(255,84,22,.22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(246,194,91,.12), transparent 50%),
    linear-gradient(180deg, #0b0e1a 0%, #04050a 60%, #000 100%);
}
.hero__nebula { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: screen; }
.hero__nebula--a { width: 55vw; height: 55vw; top: -10%; left: -8%; background: #ff5416; }
.hero__nebula--b { width: 40vw; height: 40vw; bottom: -5%; right: -10%; background: #4361ee; }

.hero__ridge { will-change: transform; }
.hero__ridge--far  { opacity: .75; filter: brightness(.5) saturate(.85) hue-rotate(-15deg); }
.hero__ridge--mid  { opacity: .88; filter: brightness(.65) saturate(.95); mix-blend-mode: lighten; }
.hero__ridge--near { opacity: .95; filter: brightness(.75) contrast(1.05); mix-blend-mode: screen; }

.hero__haze {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(180deg, rgba(6,7,11,.0) 30%, rgba(6,7,11,.55) 70%, rgba(6,7,11,1) 100%);
}

.hero__content {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad) var(--pad) calc(var(--pad) + 110px);
  max-width: 1600px; margin: 0 auto; left: 0; right: 0;
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
  margin-bottom: 26px;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero__eyebrowLine { width: 60px; height: 1px; background: var(--line); margin: 0 6px; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 15vw, 13rem);
  line-height: .86; font-weight: 400; letter-spacing: -0.04em;
  display: grid; gap: 0.02em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line .line__inner { display: inline-block; }
.hero__line--indent { margin-left: clamp(40px, 12vw, 180px); }

.hero__meta {
  margin-top: clamp(30px, 4vw, 50px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.hero__lede {
  max-width: 460px; font-size: 1.05rem; line-height: 1.5; color: var(--fg-dim); font-weight: 300;
}
.hero__scroll {
  display: flex; align-items: center; gap: 14px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); transition: transform .3s;
}
.hero__scroll:hover { transform: translateY(2px); }
.hero__scrollRing {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; animation: bob 2.4s ease-in-out infinite;
}
.hero__scrollRing::before {
  content:''; position:absolute; inset:-1px; border-radius:50%;
  background: conic-gradient(from 0deg, transparent 0, var(--accent) 90deg, transparent 140deg);
  opacity: .6; animation: spin 4s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes spin { to{transform:rotate(360deg)} }
.hero__scrollRing svg { width: 14px; height: 14px; stroke: var(--fg); stroke-width:1.2; fill:none; }

.hero__rail { position: absolute; bottom: 0; left: 0; right: 0; z-index: 8; padding: 16px 0; border-top: 1px solid var(--line); }
.hero__marquee { overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: inline-block; white-space: nowrap; font-family: var(--font-display);
  font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim);
  animation: marquee 30s linear infinite;
}
.marquee__track span { margin: 0 14px; }
.marquee__track i { color: var(--accent); font-style: normal; margin: 0 6px; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ensure seamless: track content doubled */

/* ============ SECTION HEADERS ============ */
.sectionHead {
  display: flex; align-items: center; gap: 14px;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim);
  margin-bottom: 40px;
}
.sectionHead__num { color: var(--accent); font-family: var(--font-mono, "JetBrains Mono", monospace); }
.sectionHead__label { color: var(--fg-dim); }
.sectionHead__rule { flex: 1; height: 1px; background: var(--line); }

/* ============ INTRO ============ */
.intro {
  padding: clamp(100px, 15vh, 200px) 0;
  background: var(--bg); position: relative; z-index: 2;
}
.intro__big {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08; font-weight: 400; letter-spacing: -0.025em;
  max-width: 1200px; margin-bottom: clamp(60px, 8vh, 100px);
}
.intro__big em { color: var(--accent); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: clamp(60px, 9vh, 110px); max-width: 1000px; }
.intro__col p { font-size: 1.05rem; line-height: 1.7; color: var(--fg-dim); font-weight: 300; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 40px; }
.stat { padding: 0 20px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; font-weight: 400; letter-spacing: -0.03em; display: inline-block; }
.stat__plus { font-family: var(--font-serif); color: var(--accent); font-size: 2rem; vertical-align: top; }
.stat__label { display: block; margin-top: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }

/* ============ SCROLLY PINNED ============ */
.scrolly { position: relative; }
.scrolly__pin { position: relative; height: 100vh; overflow: hidden; }
.scrolly__scene { position: absolute; inset: 0; background: #000; }
.scrolly__scene .layer {
  position: absolute; inset: -12%; overflow: hidden; will-change: transform;
}
.scrolly__scene .layer img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.1);
}
.layer--fore { mix-blend-mode: lighten; opacity: .7; filter: brightness(1.1); }
.scrolly__scene .layer::after {
  content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.0) 40%, rgba(6,7,11,.85) 100%);
}
.scrolly__wash { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,7,11,0) 0%, rgba(6,7,11,.4) 100%); z-index: 5; pointer-events: none; }
.scrolly__grain { position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay; pointer-events: none; z-index: 5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

.scrolly__caption {
  position: absolute; z-index: 8; left: var(--pad); bottom: clamp(60px, 8vh, 100px);
  max-width: 620px; mix-blend-mode: difference;
}
.scrolly__index { font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: .16em; color: var(--fg-dim); display: block; margin-bottom: 18px; }
.scrolly__title {
  font-family: var(--font-serif); font-size: clamp(3rem, 9vw, 8rem);
  line-height: .86; font-weight: 400; letter-spacing: -0.035em;
  display: flex; gap: .15em; flex-wrap: wrap;
}
.scrolly__word { display: inline-block; }
.scrolly__word--accent { color: var(--accent); font-style: italic; }
.scrolly__text { margin-top: 20px; max-width: 420px; color: var(--fg-dim); font-weight: 300; font-size: 1rem; mix-blend-mode: normal; background: rgba(6,7,11,.35); padding: 12px 16px; border-radius: var(--radius-sm); backdrop-filter: blur(8px); }

/* ============ HORIZONTAL SCROLL ============ */
.hscroll { padding: clamp(120px, 16vh, 220px) 0 0; background: var(--bg-2); position: relative; z-index: 2; }
.hscroll__head { margin-bottom: 60px; }
.hscroll__title { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.025em; margin-top: 8px; }
.hscroll__pin { position: relative; }
.hscroll__track {
  display: flex; gap: 24px; padding: 0 var(--pad) 120px;
  will-change: transform;
}
.card {
  flex: 0 0 clamp(320px, 32vw, 460px); height: 560px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(242,241,236,.3); }
.card--wide { flex-basis: clamp(440px, 44vw, 620px); }
.card--tall { height: 640px; }
.card--end {
  background: transparent; border-color: transparent;
  justify-content: center;
}
.card__media { height: 58%; overflow: hidden; position: relative; }
.card--tall .card__media { height: 62%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.card--end .card__body--solo {
  gap: 18px; justify-content: center; height: 100%;
  background: transparent;
}
.card__num { font-family: var(--font-mono, monospace); font-size: .72rem; color: var(--accent); letter-spacing: .14em; }
.card h3 { font-family: var(--font-serif); font-size: 2rem; line-height: 1; font-weight: 400; letter-spacing: -0.02em; margin: 6px 0; }
.card--end h3 { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: .95; }
.card--end h3 em { color: var(--accent); }
.card p { color: var(--fg-dim); font-weight: 300; font-size: .92rem; line-height: 1.55; }
.card__tag { margin-top: auto; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; align-self: flex-start; }

/* ============ BAND MARQUEE ============ */
.band { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.band__track { display: inline-block; white-space: nowrap; font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 7rem); font-style: italic; color: var(--fg); animation: marquee 38s linear infinite; line-height: 1; }
.band__track span { margin: 0 22px; }
.band__track i { color: var(--accent); font-style: normal; margin: 0 14px; font-size: .6em; vertical-align: middle; }

/* ============ WORK ============ */
.work { padding: clamp(120px, 16vh, 200px) 0; background: var(--bg); position: relative; z-index: 2; }
.work__row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 30px;
  padding: 34px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.work__row:last-child { border-bottom: 1px solid var(--line); }
.work__row:hover { border-color: rgba(242,241,236,.25); }
.work__idx { font-family: var(--font-mono, monospace); font-size: .78rem; color: var(--fg-muted); letter-spacing: .14em; }
.work__name { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1; }
.work__meta { display: block; margin-top: 6px; font-size: .82rem; color: var(--fg-dim); font-weight: 300; }
.work__preview {
  width: 120px; height: 80px; overflow: hidden; border-radius: var(--radius-sm);
  opacity: 0; transform: translateX(20px) scale(.95); transition: .45s var(--ease-out); filter: saturate(.9) contrast(1.05);
}
.work__row:hover .work__preview { opacity: 1; transform: translateX(0) scale(1); }
.work__go { font-size: 1.4rem; color: var(--fg-muted); transition: color .3s, transform .3s; }
.work__row:hover .work__go { color: var(--accent); transform: translate(4px,-4px); }

/* ============ QUOTE ============ */
.quote { position: relative; height: 90vh; min-height: 600px; overflow: hidden; }
.quote__bg { position: absolute; inset: -15%; will-change: transform; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); transform: scale(1.15); }
.quote__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,11,.2) 0%, rgba(6,7,11,.6) 100%); }
.quote__text {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center;
  padding: var(--pad);
}
.quote__text p {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1; font-weight: 400; letter-spacing: -0.025em;
  max-width: 1000px; font-style: italic;
}
.quote__text cite { display: block; margin-top: 24px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); font-style: normal; font-family: var(--font-display); }

/* ============ CONTACT ============ */
.contact { padding: clamp(120px, 16vh, 200px) 0 0; background: var(--bg); position: relative; z-index: 2; }
.contact__big {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: .88; font-weight: 400; letter-spacing: -0.04em;
  margin-bottom: clamp(60px, 8vh, 100px);
}
.contact__big .line__inner { display: inline-block; }
.contact__big em { color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 40px; margin-bottom: clamp(80px, 10vh, 140px); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.6rem); font-style: italic;
  color: var(--fg); border-bottom: 1px solid var(--line); padding: 10px 2px 10px 0;
  transition: color .3s, border-color .3s;
}
.contact__mail i { font-style: normal; font-size: 1.2rem; transition: transform .3s; color: var(--accent); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__mail:hover i { transform: translate(6px,-6px); }
.contact__details li { list-style: none; display: flex; justify-content: space-between; gap: 30px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__details li span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.contact__details li p { color: var(--fg-dim); font-weight: 300; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; margin-top: clamp(60px, 8vh, 100px); }
.foot__inner { display: flex; justify-content: space-between; gap: 20px; font-size: .74rem; color: var(--fg-muted); letter-spacing: .06em; flex-wrap: wrap; }

/* ============ REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="0.08"] { --rd: .08s; }
[data-reveal][data-delay="0.12"] { --rd: .12s; }
[data-reveal][data-delay="0.16"] { --rd: .16s; }
[data-reveal][data-delay="0.24"] { --rd: .24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav__links, .nav__clock { display: none; }
  .nav__burger { display: flex; }
  .menu {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 45;
    background: rgba(6,7,11,.97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: .4s;
  }
  .menu.is-open { opacity: 1; visibility: visible; }
  .menu__list { display: grid; gap: 26px; }
  .menu__list a { font-family: var(--font-serif); font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 400; }
  .menu__list a em { color: var(--accent); margin-right: 14px; font-style: normal; font-family: var(--font-mono, monospace); font-size: .8rem; letter-spacing: .14em; vertical-align: top; }
  .menu__foot { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--fg-dim); display: grid; gap: 6px; }

  .intro__grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat:nth-child(2n) { text-align: right; }

  .card { flex-basis: 78vw; height: 440px; }
  .card--wide, .card--tall { flex-basis: 78vw; height: 480px; }

  .work__row { grid-template-columns: auto 1fr auto; }
  .work__preview { display: none; }

  .contact__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .hero__lede { max-width: 100%; }
  .scrolly__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .quote__text p { font-size: clamp(1.6rem, 6vw, 2.6rem); }
}

.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.wrap-full { padding: 0 var(--pad); }

/* Section anchor offset */
[id] { scroll-margin-top: 90px; }

/* Selection */
::selection { background: var(--accent); color: #fff; }
