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

:root {
  --ink:        #0a0a0a;   /* near-black canvas */
  --ink-2:      #141414;   /* raised surface   */
  --line:       #262626;   /* hairlines        */
  --paper:      #f4f2ec;   /* warm off-white   */
  --muted:      #8a8a85;   /* secondary text   */
  --accent:     #d8ff3e;   /* electric lime    */
  --accent-ink: #0a0a0a;   /* text on accent   */

  --display: 'Geologica', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1600px;
  --hero-pad-top: clamp(6.5rem, 13vw, 8rem);   /* shared hero top offset (both pages) */
  --section-pad: clamp(4.5rem, 10vw, 9rem);    /* shared section vertical rhythm (both pages) */
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
.dot { color: var(--accent); }

/* ============ REVEAL ============ */
/* Only hide when JS is present to animate them back in (no-JS = visible). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--pad);
  mix-blend-mode: difference;
}
.nav__logo { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav__links a { color: #fff; text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; opacity: 0.85; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { border: 1px solid rgba(255,255,255,.4); border-radius: 100px; padding: 0.45rem 1.1rem; opacity: 1 !important; }
.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 9px 6px; margin-right: -6px; border: none; background: none; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  max-width: var(--maxw); margin: 0 auto;
  /* shared hero top offset — keeps the eyebrow aligned with the portfolio hero */
  padding: var(--hero-pad-top) var(--pad) clamp(3rem, 8vw, 4.5rem);
}
.hero > *:not(.hero__aurora):not(.hero__spotlight) { position: relative; z-index: 2; }

/* Aurora — slow drifting gradient light behind the type */
.hero__aurora {
  position: absolute; inset: -25% -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 32%, rgba(216,255,62,.16), transparent 70%),
    radial-gradient(38% 46% at 78% 22%, rgba(90,120,255,.12), transparent 70%),
    radial-gradient(46% 55% at 62% 82%, rgba(216,255,62,.09), transparent 70%);
  filter: blur(34px);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%,-2%,0) rotate(0deg)  scale(1.05); }
  100% { transform: translate3d(3%, 2%,0) rotate(8deg)  scale(1.18); }
}

/* Cursor spotlight — follows the mouse across the hero */
.hero__spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .45s;
  background: radial-gradient(560px circle at var(--mx,50%) var(--my,50%), rgba(216,255,62,.10), transparent 42%);
}
.hero:hover .hero__spotlight,
.port-hero:hover .hero__spotlight { opacity: 1; }
.hero__eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: clamp(1.5rem, 4vw, 3rem);
  font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.hero__status { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--paper); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216,255,62,.5); } 70% { box-shadow: 0 0 0 10px rgba(216,255,62,0); } 100% { box-shadow: 0 0 0 0 rgba(216,255,62,0); } }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 20vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--accent); }
.hero__title .reveal:nth-child(2) { transition-delay: .08s; }
.hero__title .reveal:nth-child(3) { transition-delay: .16s; }

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.hero__lede { max-width: 30ch; font-size: clamp(1rem, 1.5vw, 1.35rem); color: var(--paper); }
.hero__lede em { color: var(--accent); font-style: normal; }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--muted); text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero__scroll svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ MARQUEE ============ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 2rem 0; background: var(--ink-2); }
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); white-space: nowrap; width: max-content; animation: scroll 42s linear infinite; }
.marquee__track img { height: clamp(46px, 6vw, 68px); width: auto; flex: none; opacity: 0.7; transition: opacity .3s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img:hover { opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ STATEMENT ============ */
.statement { padding: var(--section-pad) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.statement__body {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 4rem); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 20ch + 40ch; text-wrap: balance;
}
.statement__index { display: block; font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
.statement__body mark { background: none; color: var(--accent); }
.statement__bio { max-width: 68ch; margin-top: clamp(2rem, 4vw, 3rem); font-family: var(--body); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.statement__bio strong { color: var(--paper); font-weight: 600; }

/* ============ CRAFT / HUMAN-MADE ============ */
.craft { padding: 0 var(--pad) var(--section-pad); max-width: var(--maxw); margin: 0 auto; }
.craft__inner { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.craft__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem); line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.craft__title mark { background: none; color: var(--accent); }
.craft__body {
  max-width: 62ch; margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--body); font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75; color: var(--muted); text-wrap: pretty;
}
.craft__seal {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem); padding: 0.65rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper);
  transition: border-color .3s;
}
.craft__seal:hover { border-color: var(--accent); }
.craft__seal-mark { color: var(--accent); }

/* ============ WORK ============ */
.work { padding: 0 var(--pad) var(--section-pad); max-width: var(--maxw); margin: 0 auto; }
.work__head, .cv__head { display: flex; justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.work__head h2, .cv__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 5rem); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.work__index { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }

.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.tile { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.tile:hover { border-color: var(--accent); transform: translateY(-4px); }
/* Card spotlight — radial glow tracking the cursor */
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(216,255,62,.16), transparent 46%);
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; z-index: 1; }
.tile--lg { grid-column: 1 / -1; flex-direction: row; }
.tile__img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.tile__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
html:not(.js) .tile__img img:first-child { opacity: 1; }  /* no-JS: show first */
.tile__img img.is-active { opacity: 1; }
.tile__img img:only-child { opacity: 1; }
.tile:hover .tile__img img { transform: scale(1.04); }
/* mini image-slider dots */
.tile__dots { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; display: flex; gap: .4rem; }
.tile__dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .3s, transform .3s;
}
.tile__dots button:hover { background: rgba(255,255,255,.8); }
.tile__dots button.is-active { background: var(--accent); transform: scale(1.3); }
.tile__meta { padding: clamp(1.25rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 0.7rem; }
.tile--lg .tile__meta { flex: 1 1 42%; justify-content: center; }
.tile__meta h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.tile__meta p { color: var(--muted); font-size: 0.95rem; }
.tile__link { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-top: 0.4rem; }

/* ============ QUOTE ============ */
.quote { padding: var(--section-pad) var(--pad); max-width: 1300px; margin: 0 auto; }
.quote blockquote { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance; }
.quote__mark { color: var(--accent); }
.quote__hi { color: var(--accent); }
.quote cite { display: block; margin-top: 2rem; font-family: var(--body); font-style: normal; font-weight: 400; font-size: 1rem; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }

/* ============ CV ============ */
.cv { padding: 0 var(--pad) var(--section-pad); max-width: var(--maxw); margin: 0 auto; }
.cv__cols { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.cv__col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.5rem; }
.cv__col ul { list-style: none; }
.cv__col li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cv__col li span { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
.cv__col li em { font-style: normal; color: var(--muted); font-size: 0.95rem; text-align: right; align-self: center; }
.cv__quote { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vw, 3.5rem); font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; }
.cv__quote cite { display: block; margin-top: 1.2rem; font-family: var(--body); font-style: normal; font-size: 0.95rem; color: var(--muted); }

/* ============ CTA ============ */
.cta { padding: var(--section-pad) var(--pad); max-width: var(--maxw); margin: 0 auto; text-align: center; }
.cta__index { display: block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.cta__giant {
  display: inline-block; font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 13vw, 13rem); line-height: 0.86; letter-spacing: -0.03em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
  /* solid at rest; on hover a lime glow follows the cursor through the letters */
  background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent) 0%, var(--paper) 38%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: var(--paper);
  transition: -webkit-text-fill-color .35s ease;
}
.cta__giant:hover { -webkit-text-fill-color: transparent; }
.cta__giant .dot { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.cta__foot { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 3.5rem); font-size: 0.95rem; color: var(--muted); }
.cta__foot a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ============ FOOTER ============ */
.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============ PORTFOLIO PAGE ============ */
.port-hero { position: relative; overflow: hidden; max-width: var(--maxw); margin: 0 auto; padding: var(--hero-pad-top) var(--pad) clamp(3rem, 6vw, 5rem); }
.port-hero > *:not(.hero__aurora):not(.hero__spotlight) { position: relative; z-index: 2; }
.port-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 14vw, 14rem); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase; }
.port-hero h1 .dot, .port-hero .accent { color: var(--accent); }
.port-hero p { max-width: 42ch; margin-top: 2rem; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--muted); }
.port-banner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.port-banner img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.port-clients { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vw, 9rem) var(--pad); }
.port-clients h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2rem; }
.port-clients .client-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.port-clients .client-grid li { background: var(--ink-2); padding: 1.4rem 1.5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }

/* ============ SHOWCASE / 3D MARQUEE ============ */
.showcase {
  position: relative; overflow: hidden;
  min-height: 66vh; display: flex; align-items: center;
  background: #050505; border-block: 1px solid var(--line);
}
.marquee3d {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.marquee3d__grid {
  display: flex; gap: 1.2rem;
  transform: rotateX(52deg) rotateZ(-42deg) scale(1.35);
  transform-style: preserve-3d;
  opacity: 0.55;
}
.marquee3d__col { display: flex; flex-direction: column; width: clamp(150px, 15vw, 280px); }
.marquee3d__col img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.09); display: block;
  margin-bottom: 1.2rem;   /* spacing on the item (not flex gap) so translateY(-50%) tiles exactly = seamless loop */
}
.marquee3d__col--up   { animation: mq-up   44s linear infinite; }
.marquee3d__col--down { animation: mq-down 44s linear infinite; }
@keyframes mq-up   { from { transform: translateY(0); }     to { transform: translateY(-50%); } }
@keyframes mq-down { from { transform: translateY(-50%); }  to { transform: translateY(0); } }

.showcase__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 50%, rgba(5,5,5,.30), rgba(5,5,5,.88) 78%);
}
.showcase__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,8vw,6rem) var(--pad); }
.showcase__inner h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; margin: .6rem 0 1.4rem; }
.showcase__inner p { max-width: 40ch; color: var(--paper); font-size: clamp(1rem, 1.5vw, 1.35rem); margin-bottom: 1.6rem; }

/* ============ MOVING BORDER BUTTON ============ */
.mborder {
  position: relative; display: inline-block; padding: 1px; border-radius: 100px;
  overflow: hidden; background: var(--line); text-decoration: none; isolation: isolate;
}
.cta__foot a.mborder { border-bottom: none; }
.mborder::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 210%; aspect-ratio: 1; transform: translate(-50%,-50%);
  background: conic-gradient(from 0deg, transparent 0 68%, var(--accent) 82%, #fff 90%, transparent 100%);
  animation: mspin 4s linear infinite;
}
.mborder span {
  position: relative; display: block; border-radius: 100px;
  background: var(--ink-2); color: var(--paper);
  padding: .85rem 2rem; font-weight: 600; font-size: .9rem; letter-spacing: .01em;
}
.mborder:hover span { color: var(--accent); }
@keyframes mspin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ============ CONTACT FORM ============ */
.contact {
  width: 100%; max-width: 640px; margin: 2.5rem auto 0;
  display: flex; flex-direction: column; gap: 1.1rem; text-align: left;
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--paper);
  border: 1px solid transparent; border-radius: 10px;
  padding: .85rem 1rem; width: 100%; resize: vertical;
  /* interior solid; border ring picks up a lime glow near the cursor on hover */
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), var(--fglow, transparent), var(--line) 62%) border-box;
  transition: box-shadow .3s ease;
}
.field input:hover, .field textarea:hover {
  --fglow: var(--accent);
  box-shadow: 0 10px 34px -14px rgba(216,255,62,.30);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216,255,62,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #5a5a55; }
/* honeypot — visually and semantically hidden from humans */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.contact button.mborder { border: none; background: var(--line); cursor: pointer; font: inherit; }
.contact button.mborder:disabled { opacity: .55; cursor: default; }
.contact__status { font-size: .9rem; color: var(--muted); margin: 0; }
.contact__status.ok  { color: var(--accent); }
.contact__status.err { color: #ff6b6b; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora, .marquee__track, .marquee3d__col--up, .marquee3d__col--down,
  .mborder::before, .pulse, .hero__scroll svg { animation: none !important; }
  .hero__spotlight, .tile::before, .proj-card::before { display: none; }
  .marquee3d__grid { opacity: .4; }
  .tile__img img { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav--open { mix-blend-mode: normal; background: rgba(10,10,10,.98); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 var(--pad) 1.25rem;
    background: rgba(10,10,10,.98); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { font-size: 1.05rem; padding: 1rem 0; border-top: 1px solid var(--line); opacity: 1; }
  .nav__cta { border: none !important; border-radius: 0; padding: 1rem 0; color: var(--accent) !important; text-align: left; }
  .work__grid { grid-template-columns: 1fr; }
  .tile--lg { flex-direction: column; }
  .cv__cols { grid-template-columns: 1fr; }
  .cv__col li em { text-align: left; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .showcase { min-height: 56vh; }
  .marquee3d__grid { transform: rotateX(50deg) rotateZ(-40deg) scale(1.7); }
}

/* Desktop-only refinements (leave mobile sizing alone) */
@media (min-width: 821px) {
  .hero__title { font-size: clamp(3.5rem, 14vw, 14rem); }
  .hero__eyebrow { margin-bottom: 1.75rem; }
  .hero__foot { margin-top: 2.25rem; }
  .hero__lede { max-width: 62ch; }
}

/* ============ PORTFOLIO: FEATURED ============ */
.port-featured { max-width: var(--maxw); margin: 0 auto; padding: var(--section-pad) var(--pad); }
.fcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem,3vw,3rem); align-items: center; padding: clamp(2rem,4vw,3.5rem) 0; border-top: 1px solid var(--line); }
.fcase__cover { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; padding: 0; display: block; }
.fcase__cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.fcase__cover:hover img { transform: scale(1.03); }
.fcase__badge { position: absolute; bottom: .8rem; right: .8rem; background: rgba(10,10,10,.72); color: var(--paper); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; }
.fcase__body h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.02em; line-height: .95; margin: .5rem 0 1rem; }
.fcase__body p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 46ch; }
.proj-card__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }

/* ============ PORTFOLIO: GALLERY ============ */
.port-gallery { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) var(--section-pad); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.proj-card { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .3s, transform .3s; }
.proj-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.proj-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(216,255,62,.16), transparent 46%); }
.proj-card:hover::before { opacity: 1; }
.proj-card > * { position: relative; z-index: 1; }
.proj-card__cover { display: block; width: 100%; padding: 0; border: none; background: #000; cursor: pointer; overflow: hidden; }
.proj-card__cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.proj-card:hover .proj-card__cover img { transform: scale(1.05); }
.proj-card__meta { padding: 1.2rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.proj-card__meta h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.proj-card__meta p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ============ PORTFOLIO: TESTIMONIALS ============ */
.port-quotes { max-width: var(--maxw); margin: 0 auto; padding: var(--section-pad) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); border-top: 1px solid var(--line); }
.port-quotes blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,2.6vw,2.4rem); line-height: 1.12; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.port-quotes .quote__mark, .port-quotes .quote__hi { color: var(--accent); }
.port-quotes cite { display: block; margin-top: 1.2rem; font-family: var(--body); font-style: normal; font-weight: 400; font-size: .95rem; text-transform: none; color: var(--muted); }

/* ============ LIGHTBOX (deck viewer) ============ */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(5,5,5,.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: clamp(1rem,4vw,3rem); }
.lightbox.open { display: flex; }
.lightbox__stage { margin: 0; max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lightbox__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); color: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,20,20,.7); color: var(--paper); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; z-index: 2; }
.lightbox__nav:hover { border-color: var(--accent); background: var(--ink-2); }
.lightbox__prev { left: clamp(.5rem,2vw,2rem); }
.lightbox__next { right: clamp(.5rem,2vw,2rem); }
.lightbox__bar { position: absolute; bottom: clamp(1rem,3vw,1.8rem); left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; align-items: baseline; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.lightbox__title { color: var(--paper); font-weight: 600; }
.lightbox__count { color: var(--accent); }

@media (max-width: 860px) {
  .fcase { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .port-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
}

/* Footer human-made seal */
.footer__seal { color: var(--paper); }
.footer__seal-mark { color: var(--accent); }
