/* Main site styles for index.html. Sections follow the page order. */

:root {
  --bg: #f1f0ec;
  --fg: #0d0d0d;
  --muted: #6b6b6b;
  --line: rgba(0,0,0,.12);
  --card: #ffffff;
  --header-bg: rgba(241,240,236,.45);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --fg: #efeee9;
    --muted: #9a9a9a;
    --line: rgba(255,255,255,.12);
    --card: #171717;
    --header-bg: rgba(12,12,12,.35);
  }
  /* logo is grey-on-white: invert it and blend away the background */
  :root .logo-img { filter: invert(1); mix-blend-mode: screen; }
  :root .ld-anim, :root .ld-swash { filter: brightness(0) invert(1); }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.logo-img { mix-blend-mode: multiply; }
/* keyboard users always see where they are */
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
footer :focus-visible { outline-color: #efeee9; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* loading screen: loader.webp is the handwriting part of the logo video (0-1.64s) pre-keyed to
   black strokes on a transparent background, so no blend modes are needed; dark mode inverts it */
html.loading { overflow: hidden; }
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.76,0,.24,1); }
#loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.ld-wrap { position: relative; width: min(86vw, 760px); aspect-ratio: 16 / 9; }
.ld-anim { display: block; width: 100%; }
/* the video's last stroke (line after the d) only appears together with its splash effect, so it is
   drawn from the static (transparent) logo instead: aligned to the video's circle (logo scaled 0.586x) and wiped in left to right */
.ld-swash { position: absolute; left: 4.34%; top: 6.82%; width: 91.6%; height: auto; filter: brightness(0);
  clip-path: inset(36.5% 42.5% 52.3% 57.5%); transition: clip-path .75s cubic-bezier(.45,0,.25,1); }
.ld-swash.draw { clip-path: inset(36.5% 0 52.3% 57.5%); }
/* hold the cover headline back until the loader lifts */
html.loading .hero .lines .l > span { transform: translateY(105%); }
html.loading .hero .fade { opacity: 0; transform: translateY(40px); }

/* big uppercase display type */
.display { font-size: clamp(48px, 9vw, 150px); font-weight: 900; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.display.md { font-size: clamp(40px, 6.5vw, 104px); }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--fg); }

/* line-by-line reveal: each .l masks its inner span, which slides up */
.lines .l { display: block; overflow: hidden; padding-bottom: .06em; }
.lines .l > span { display: block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.lines.in .l > span { transform: none; }
.fade { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.fade.in { opacity: 1; transform: none; }

/* pinned sections: JS sets --p from 0 to 1 while the inner .pin is stuck */
[data-pin] { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* Header */
/* frosted-glass nav: content scrolling underneath shows through blurred */
header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo-img { height: 56px; width: auto; }
.nav ul { display: flex; gap: 36px; list-style: none; }
.nav ul a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--fg); transition: width .3s; }
.nav ul a:hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 20px; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--fg); transition: .3s; }
.burger::before { top: 0; } .burger span { top: 9px; } .burger::after { bottom: 0; }
.menu-open .burger::before { transform: translateY(9px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-9px) rotate(-45deg); }

main { position: relative; z-index: 1; background: var(--bg); border-radius: 0 0 32px 32px; }
section { padding: 140px 0; }
section[data-pin] { padding: 0; }

/* 1. Cover banner: photo slowly zooms and darkens, title slides away, intro card rises */
.hero { height: 230vh; }
.hero .pin { display: flex; align-items: center; background: #0a0a0a; color: #efeee9; }
/* starts below the header and anchors to the top so the head is never cropped; zooms around the face */
/* photo starts just above the nav (behind the glass) so the top of the head lands right at the nav edge:
   head sits ~9.4% down the photo, the photo is ~0.558x the screen width tall -> lift by ~5.2vw */
.hero-bg { position: absolute; inset: calc(76px - 5.2vw) 0 0 0; background: url(../images/cover.jpg) 70% 0 / cover no-repeat; transform-origin: 72% 15%;
  transform: scale(calc(1.04 + var(--p, 0) * .16)); filter: brightness(calc(1 - var(--p, 0) * .55)); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.35) 45%, transparent 70%); }
.hero-title { position: relative; width: 100%; transform: translateY(calc(var(--p, 0) * -18vh)); opacity: calc(1 - var(--p, 0) * 1.8); }
.hero-title .display { font-size: clamp(52px, 8.5vw, 150px); max-width: 7ch; }
.hero-sub { margin-top: 28px; font-size: clamp(16px, 1.5vw, 21px); color: #bdbdbd; max-width: 30ch; }
.hero-card { position: absolute; left: max(20px, calc((100vw - 1320px) / 2 + 40px)); top: 50%; width: min(560px, calc(100vw - 40px)); background: #efeee9; color: #0d0d0d; padding: 36px; border-radius: 20px; text-align: left; z-index: 2;
  --a: clamp(0, calc((var(--p, 0) - .25) * 2.2), 1);
  transform: translateY(calc(-50% + (1 - var(--a)) * 85vh)); }
.hero-card p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.hero-card a { display: inline-block; margin-top: 22px; font-weight: 600; border-bottom: 1px solid currentColor; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; opacity: calc(1 - var(--p, 0) * 5); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 40px; background: #efeee9; margin: 12px auto 0; animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 2. About: words light up as you scroll */
.about { height: 260vh; }
.about .pin { display: flex; flex-direction: column; justify-content: center; }
.about-text { font-size: clamp(26px, 3.6vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; max-width: 24ch; }
.about-text .w { opacity: .14; transition: opacity .25s; }
.about-text .w.on { opacity: 1; }
.about-meta { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 56px; color: var(--muted); font-size: 15px; }
.about-meta b { display: block; color: var(--fg); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 4px; }

/* 3. Projects: vertical scroll drives a horizontal track */
.projects .pin { display: flex; flex-direction: column; justify-content: center; gap: 36px; padding-top: 76px; }
.projects .display.md { font-size: clamp(36px, 5vw, 80px); }
.proj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.proj-count { font-size: 14px; color: var(--muted); letter-spacing: .1em; }
.track { display: flex; gap: 40px; padding: 0 40px; width: max-content; transform: translateX(calc(var(--p, 0) * var(--dist, 0px) * -1)); will-change: transform; }
.card { width: min(38vw, 540px); flex: none; }
/* folder-style card: gradient metal frame, a tab with the domain, full-colour shot */
.card .thumb { aspect-ratio: 16/10; position: relative; border-radius: 20px; border: 3px solid transparent; overflow: hidden;
  background: linear-gradient(#1b1b1b, #1b1b1b) padding-box, linear-gradient(135deg, #b5b5b5, #3a3a3a 40%, #151515 60%, #8a8a8a) border-box;
  box-shadow: 0 24px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.card:hover .thumb { transform: translateY(-6px); box-shadow: 0 32px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.15); }
.card .thumb > div { position: absolute; inset: 6px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2c2c2c, #0f0f0f); }
.card .thumb > div::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 28%, transparent 45%, rgba(0,0,0,.35) 100%); }
.card .thumb div b { font-size: 40px; font-weight: 900; color: rgba(255,255,255,.85); }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.04); }
/* the tab's shape lives on ::before so a drop-shadow can trace its slanted edge */
.card .tab { position: absolute; top: 0; left: 0; z-index: 2; height: 44px; display: flex; align-items: center; padding: 4px 46px 0 20px;
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,.22)) drop-shadow(0 6px 10px rgba(0,0,0,.5));
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #d6d6d6; }
.card .tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #262626, #1b1b1b); clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%); }
.card .thumb > div { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.card .num { font-size: 13px; color: var(--muted); margin-top: 22px; letter-spacing: .1em; }
.card h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; margin-top: 6px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card .win { color: var(--fg); font-weight: 600; font-size: 14px; }
.card .win::before { content: "★ "; }
.bar { height: 2px; background: var(--line); }
.bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* details popup: a centred floating card (island), opened by clicking a card */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .5s; }
.drawer-panel { position: absolute; top: 50%; left: 50%; max-height: min(88vh, 860px); width: min(760px, calc(100vw - 32px)); background: var(--card); color: var(--fg); overflow-y: auto; overscroll-behavior: contain; padding: 64px 40px 40px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.5);
  opacity: 0; transform: translate(-50%, -44%) scale(.94); transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .35s; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { opacity: 1; transform: translate(-50%, -50%); }
.drawer-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.drawer-close:hover { background: var(--fg); color: var(--bg); }
.d-eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.drawer-body h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; margin: 10px 0 20px; }
.d-overview { color: var(--muted); font-size: 17px; }
.drawer-body h4 { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; margin: 36px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer-body ul { list-style: none; display: grid; gap: 10px; }
.drawer-body li { padding-left: 22px; position: relative; color: var(--muted); }
.drawer-body li::before { content: "→"; position: absolute; left: 0; color: var(--fg); }
.d-results { display: flex; flex-wrap: wrap; gap: 10px; }
.d-results a { display: inline-flex; align-items: center; gap: 8px; }
.d-results svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-results span, .d-results a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.d-visit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-visit { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; background: var(--fg); color: var(--bg); padding: 16px 28px; border-radius: 999px; font-weight: 700; }
html.drawer-open { overflow: hidden; }
.card[role=button] { cursor: pointer; }
.d-wip { display: inline-block; margin-left: 10px; padding: 3px 10px; border: 1px dashed var(--line); border-radius: 999px; font-size: 11px; letter-spacing: .1em; color: var(--muted); vertical-align: middle; }

/* section dial (phones only): an arc that rotates with scroll, drag to scrub, snaps to sections.
   Own visual language: monochrome palette, dotted minor marks, needle pointer, mono section counter */
.zoom-dial { display: none; }
@media (max-width: 900px) {
  .zoom-dial { --r: 330px; --ink: #efeee9; display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 92px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
  .zoom-dial::before { content: ""; position: absolute; left: 50%; top: 30px; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin-left: calc(var(--r) * -1); border-radius: 50%;
    background: rgba(18,18,18,.38); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 -1px 0 rgba(255,255,255,.18); }
  /* second, inner guide line */
  .zoom-dial::after { content: ""; position: absolute; left: 50%; top: 58px; width: calc(var(--r) * 2 - 56px); height: calc(var(--r) * 2 - 56px); margin-left: calc(var(--r) * -1 + 28px); border-radius: 50%; border-top: 1px dashed rgba(255,255,255,.12); pointer-events: none; }
  .zd-ring { position: absolute; left: 50%; top: calc(30px + var(--r)); width: 0; height: 0; transform: rotate(calc(var(--v, 0) * var(--step, 24deg) * -1)); will-change: transform; }
  .zd-ring i { position: absolute; left: -1.5px; top: 0; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.35); transform-origin: 1.5px 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1 + 8px)); }
  .zd-ring i.major { left: -1px; width: 2px; height: 11px; border-radius: 1px; background: var(--ink); transform-origin: 1px 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1 + 5px)); }
  .zd-ring i.faint { background: rgba(255,255,255,.16); }
  .zd-ring button { position: absolute; left: 0; top: 0; width: 64px; margin-left: -32px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.6); font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; text-align: center; transform-origin: 50% 0;
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1 + 24px)); cursor: pointer; }
  .zd-ring button small { display: block; margin-top: 4px; font: 600 7.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
  .zd-ring button, .zd-ring button small { transition: color .35s; }
  .zd-ring button.on, .zd-ring button.on small { color: var(--ink); }
  /* needle pointer: thin line with a dot */
  .zd-pointer { position: absolute; left: 50%; top: 22px; width: 1.5px; height: 22px; margin-left: -.75px; background: var(--ink); border-radius: 1px; z-index: 2; }
  .zd-pointer::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(18,18,18,.6); }
  .zd-value { position: absolute; left: 50%; top: 1px; transform: translateX(-50%); white-space: nowrap; color: var(--ink); pointer-events: none; background: rgba(18,18,18,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 3px 8px; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
  .zd-value b { font: inherit; }
  .zd-value span { display: inline; opacity: .6; }
  .zd-value span::before { content: " · "; }
  .scroll-hint { display: none; }
  .zoom-dial.drag { transform: scale(1.06); transform-origin: 50% 100%; }
  html.loading .zoom-dial, html.drawer-open .zoom-dial, .zoom-dial.away { transform: translateY(110%); opacity: 0; pointer-events: none; }
}

/* Digital marketing section: reuses the folder-card look from Projects */
.marketing { padding-bottom: 0; }
.mk-grid { display: grid; gap: 40px; margin-top: 64px; }
.mk-work { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mk-grid .card { width: auto; }
.mk-grid .card h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin-top: 20px; }
.mk-grid .card p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 4. Accomplishments: counters + stacking cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 72px 0 120px; border-top: 1px solid var(--line); padding-top: 40px; }
.stats b { display: block; font-size: clamp(44px, 5.5vw, 84px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.stats span { color: var(--muted); font-size: 15px; }
.stack { display: grid; gap: 28px; }
.xp { position: sticky; top: calc(100px + var(--i) * 22px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; box-shadow: 0 -20px 40px rgba(0,0,0,.06); }
.xp .n { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.xp h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase; margin-top: 10px; }
.xp .co { color: var(--muted); margin-top: 8px; }
.xp ul { list-style: none; display: grid; gap: 12px; color: var(--muted); }
.xp li { padding-left: 22px; position: relative; }
.xp li::before { content: "→"; position: absolute; left: 0; color: var(--fg); }
.xp li b { color: var(--fg); font-weight: 600; }

/* 5. Trusted by: endless marquee */
.trusted { padding-bottom: 100px; }
.marquee { overflow: hidden; margin-top: 56px; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.mq-toggle { display: block; margin: 16px auto 0; font: inherit; font-size: 13px; background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.logo-cell { width: 280px; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo-cell img { width: 100%; max-width: 170px; height: 72px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell img.crest { height: 104px; margin-block: -16px; } /* square logos read small in a wide box */
.logo-cell span { font-size: 13px; color: var(--muted); }
@keyframes slide { to { transform: translateX(-50%); } }

/* 6. Testimonials: pinned, quotes change with scroll */
.testimonials { height: 320vh; }
.testimonials .pin { display: flex; flex-direction: column; justify-content: center; }
.quotes { position: relative; min-height: 340px; margin-top: 24px; }
.quote { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.quote.on { opacity: 1; transform: none; }
.quote blockquote { font-size: clamp(20px, 2.6vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; max-width: 26ch; }
.quote blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; font-weight: 900; }
.quote cite { display: block; margin-top: 28px; font-style: normal; color: var(--muted); }
.quote cite b { color: var(--fg); }
.quote cite a { border-bottom: 1px solid currentColor; }
.dots { display: flex; gap: 10px; margin-top: 40px; }
.dots i { width: 40px; height: 3px; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--fg); }

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-note { color: var(--muted); font-size: 17px; margin-top: 32px; max-width: 38ch; }
.contact-note a { color: var(--fg); border-bottom: 1px solid currentColor; }
.contact-form { display: grid; gap: 28px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 18px; letter-spacing: normal; text-transform: none; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; outline: none; resize: vertical; transition: border-color .3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--fg); }
.contact-form textarea::placeholder { color: var(--muted); opacity: .6; }
.send-btn { justify-self: start; font: inherit; font-weight: 700; background: var(--fg); color: var(--bg); border: 0; border-radius: 999px; padding: 18px 34px; cursor: pointer; transition: transform .3s; }
.send-btn:hover { transform: scale(1.05); }
.send-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { color: var(--muted); font-size: 14px; min-height: 1em; }
.contact-form .opt { font-weight: 400; letter-spacing: 0; text-transform: none; }
.form-note { color: var(--muted); font-size: 13px; }
.contact-form label.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.contact-form label.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--fg); }
.contact-form label.consent a { color: var(--fg); border-bottom: 1px solid currentColor; }

/* 8. Footer: revealed from under the page like a curtain */
footer { position: sticky; bottom: 0; z-index: 0; background: #0d0d0d; color: #efeee9; padding: 140px 0 40px; }
footer .eyebrow { color: #9a9a9a; } footer .eyebrow::before { background: #efeee9; }
footer .display a:hover { color: #9a9a9a; }
.cta-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; background: #efeee9; color: #0d0d0d; padding: 18px 32px; border-radius: 999px; font-weight: 700; transition: transform .3s; }
.cta-btn:hover { transform: scale(1.05); }
.foot-logo { height: 64px; width: auto; margin-top: 96px; filter: invert(1); mix-blend-mode: screen; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 40px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: #9a9a9a; font-weight: 500; margin-bottom: 14px; }
.foot-grid a { display: block; margin-bottom: 6px; }
.foot-grid a:hover { color: #9a9a9a; }
.foot-legal { margin-top: 64px; color: #7a7a7a; font-size: 12px; max-width: 70ch; }
.foot-bottom a:hover { color: #efeee9; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 80px; padding-top: 28px; border-top: 1px solid #333; color: #9a9a9a; font-size: 14px; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .lines .l > span, .fade { transform: none; opacity: 1; transition: none; }
  .marquee-track, .scroll-hint::after { animation: none; }
}

@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .burger { display: block; }
  .nav ul { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; gap: 28px; padding: 40px 20px; transform: translateY(-120%); visibility: hidden; transition: transform .4s, visibility .4s; height: calc(100vh - 76px); }
  .nav ul a { font-size: 28px; }
  .menu-open .nav ul { transform: none; visibility: visible; }
  section { padding: 96px 0; }
  .hero .pin { align-items: flex-end; padding-bottom: 16vh; padding-bottom: calc(100vh - 100svh + 24svh); }
  .hero-bg { top: 76px; background-position: 74% 0; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.6) 35%, transparent 65%); }
  .track { gap: 20px; padding: 0 9vw; transition: transform .7s cubic-bezier(.65,0,.35,1); }
  .card { width: 82vw; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .xp { grid-template-columns: 1fr; gap: 20px; }
  .xp { padding: 28px; top: calc(90px + var(--i) * 14px); }
  .logo-cell { width: 200px; padding: 28px 20px; }
  .logo-cell img { height: 52px; }
  .logo-cell img.crest { height: 76px; margin-block: -12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .mk-work { grid-template-columns: 1fr; gap: 36px; }
  .drawer-panel { padding: 72px 24px 40px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}
