:root {
  --bg: #07060b;
  --bg-2: #0e0c15;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.1);
  --line: rgba(244, 241, 234, 0.12);
  --gold: #f2c26b;
  --gold-2: #ff9d4d;
  --violet: #8b6cff;
  --grad: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 45%, var(--violet) 100%);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shake: 0;
  --speed: 0;
  --pad: clamp(16px, 4vw, 48px);
  /* Theme helpers: backgrounds as "r, g, b" so they can be used with alpha */
  --bg-rgb: 7, 6, 11;
  --bg2-rgb: 14, 12, 21;
  --tint-rgb: 255, 255, 255;
  --btn-ink: #120d06;
  --shadow: rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* Light theme — dark is the default; the ☀/☾ nav button switches (saved in localStorage) */
html[data-theme="light"] {
  --bg: #f7f3ea;
  --bg-2: #fffdf8;
  --ink: #17131f;
  --muted: rgba(23, 19, 31, 0.66);
  --faint: rgba(23, 19, 31, 0.08);
  --line: rgba(23, 19, 31, 0.13);
  --gold: #a1660f;
  --gold-2: #d9621c;
  --violet: #6a4de0;
  --bg-rgb: 247, 243, 234;
  --bg2-rgb: 255, 253, 248;
  --tint-rgb: 23, 19, 31;
  --btn-ink: #fff;
  --shadow: rgba(70, 45, 10, 0.28);
  color-scheme: light;
}
html[data-theme="light"] .grain { opacity: 0.035; }
html[data-theme="light"] #cursor { mix-blend-mode: normal; border-color: rgba(161, 102, 15, 0.8); }
html[data-theme="light"] .bento-card { background: var(--bg-2); }
html[data-theme="light"] .member-photo img { filter: grayscale(0.2); }
html[data-theme="light"] .hero {
  background:
    radial-gradient(55% 45% at 50% 60%, rgba(255, 157, 77, 0.2), transparent 70%),
    radial-gradient(40% 40% at 85% 15%, rgba(139, 108, 255, 0.16), transparent 70%),
    var(--bg);
}

/* Theme toggle button */
.theme-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.5);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s, transform 0.3s;
}
.theme-btn:hover { background: rgba(var(--tint-rgb), 0.08); transform: rotate(20deg); }
.theme-btn .icon-sun { display: none; }
html[data-theme="light"] .theme-btn .icon-sun { display: inline; }
html[data-theme="light"] .theme-btn .icon-moon { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--gold); color: #111; }

/* Film grain over everything */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* Cursor */
#cursor {
  position: fixed;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(242, 194, 107, 0.8);
  border-radius: 50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s, height 0.25s, left 0.25s, top 0.25s, background 0.25s, opacity 0.3s;
  mix-blend-mode: difference;
}
#cursor.on { opacity: 1; }
#cursor.big { width: 64px; height: 64px; left: -32px; top: -32px; background: rgba(242, 194, 107, 0.15); }

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.out { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 14px; }
.loader-brand { font-family: var(--mono); letter-spacing: 0.45em; font-size: 12px; color: var(--gold); }
.loader-brand em { font-family: var(--mono); font-style: normal; color: var(--muted); }
.loader-pct { font-size: clamp(64px, 12vw, 120px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.loader-pct small { font-size: 0.35em; color: var(--muted); margin-left: 4px; }
.loader-track { width: 220px; height: 2px; background: var(--faint); overflow: hidden; border-radius: 2px; }
#loader-bar { height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 0.2s; }
.loader-note { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* Nav */
#nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(1100px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
#nav.scrolled {
  background: rgba(var(--bg2-rgb), 0.6);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.brand { font-weight: 700; letter-spacing: 0.18em; font-size: 14px; }
.brand em { letter-spacing: 0.02em; font-size: 1.35em; color: var(--gold); margin-left: 2px; }
#nav nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
#nav nav a { position: relative; transition: color 0.2s; }
#nav nav a:hover { color: var(--ink); }
#nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
#nav nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-contact { display: none; }
.menu-btn {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.5);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
#nav.open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
#nav.open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  #nav { padding-left: 16px; }
  #nav.open { background: rgba(var(--bg2-rgb), 0.92); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .menu-btn { display: block; }
  .nav-contact { display: block; }
  #nav nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(var(--bg2-rgb), 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 17px;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  #nav.open nav { opacity: 1; visibility: visible; transform: none; }
  #nav nav a { padding: 14px 16px; border-radius: 14px; }
  #nav nav a + a { border-top: 1px solid var(--line); }
  #nav nav a::after { display: none; }
}
.btn[hidden] { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 40px -10px rgba(255, 157, 77, 0.6);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
.btn:hover { box-shadow: 0 14px 50px -8px rgba(255, 157, 77, 0.8); }
.btn-ghost { background: rgba(var(--tint-rgb), 0.04); color: var(--ink); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(var(--tint-rgb), 0.08); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 60%, rgba(255, 157, 77, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 15%, rgba(139, 108, 255, 0.18), transparent 70%),
    var(--bg);
}
/* The loom clip is a wide 480p shot — shown as a cinematic band (not
   stretched to cover the screen) so it stays sharp; edges fade out. */
.hero-video {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  aspect-ratio: 2.35;
  translate: 0 -50%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  transform: scale(calc(1.02 + var(--speed, 0) * 0.16 + var(--shake) * 0.06)) translate(calc(var(--shake) * 3px), calc(var(--shake) * -2px));
  filter: saturate(1.15) contrast(1.05);
  transition: opacity 0.6s ease;
  animation: loomShake 0.08s infinite;
  animation-play-state: paused;
}
body.loom .hero-video { animation-play-state: running; }
@keyframes loomShake {
  50% { translate: calc(var(--shake) * 4px) calc(-50% + var(--shake) * -3px); }
}
@media (max-aspect-ratio: 4/3) {
  /* Tall screens: let the band fill the height instead. */
  .hero-video { height: 62%; width: 100%; aspect-ratio: auto; }
}
/* The video keeps running behind the flash and fades out (no blur: blurring
   a playing video is slow and made it stutter right at the blast). */
body.blasted .hero-video { opacity: 0; transition: opacity 1.1s ease-in; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.55) 0%, rgba(var(--bg-rgb), 0.05) 30%, rgba(var(--bg-rgb), 0.1) 65%, var(--bg) 100%),
    radial-gradient(80% 80% at 50% 50%, transparent 40%, rgba(var(--bg-rgb), 0.7) 100%);
  pointer-events: none;
}
body.blasted .hero-shade { opacity: 0.6; transition: opacity 1s; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, rgba(255, 226, 170, 0.9) 25%, rgba(255, 157, 77, 0.35) 55%, rgba(139, 108, 255, 0.15) 100%);
}
#flash.go { animation: flash 1.2s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 6% { opacity: 1; } 100% { opacity: 0; } }

/* HUD (loom phase) */
#hud {
  position: absolute;
  left: var(--pad);
  bottom: clamp(24px, 6vh, 56px);
  z-index: 5;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  min-width: 240px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(var(--bg-rgb), 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}
body.loom #hud { opacity: 1; transform: none; }
body.blasted #hud { opacity: 0; }
.hud-row { display: flex; align-items: center; gap: 8px; }
.hud-row.dim { color: var(--muted); }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ef08b; box-shadow: 0 0 12px #3ef08b; animation: pulse 1s infinite; }
.hud-big { font-size: 40px; font-weight: 600; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-big small { font-size: 11px; color: var(--muted); margin: 0 6px; letter-spacing: 0.12em; }
.hud-track { height: 2px; background: var(--faint); border-radius: 2px; overflow: hidden; }
#hud-bar { height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* Hero copy */
#hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  /* Keep clear of the fixed nav (top) and the hero controls (bottom). */
  padding: 96px var(--pad) 84px;
  pointer-events: none;
}
#hero-copy .cta { pointer-events: auto; }
/* Soft dark pool behind the headline so it reads over the labels. */
#hero-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 110vw);
  height: min(620px, 90vh);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--bg-rgb), 0.82), rgba(var(--bg-rgb), 0.5) 55%, transparent);
  opacity: 0;
  transition: opacity 1s;
  z-index: -1;
}
#hero-copy.in::before { opacity: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s, transform 0.8s;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242, 194, 107, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 194, 107, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(242, 194, 107, 0); } }
#hero-copy h1 {
  margin: clamp(12px, 2.4vh, 22px) 0 0;
  /* Also limited by screen height so the copy fits on short laptops. */
  font-size: clamp(36px, min(8.4vw, 12.5vh), 118px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-shadow: 0 10px 60px rgba(var(--bg-rgb), 0.9);
}
#hero-copy h1 em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
  letter-spacing: -0.01em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.line:nth-child(2) > span { transition-delay: 0.08s; }
.line:nth-child(3) > span { transition-delay: 0.16s; }
.lede {
  max-width: 560px;
  margin: clamp(12px, 2.6vh, 24px) auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  text-shadow: 0 4px 30px rgba(var(--bg-rgb), 0.9);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s 0.3s, transform 0.9s 0.3s;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(16px, 3.4vh, 32px); opacity: 0; transform: translateY(12px); transition: opacity 0.9s 0.45s, transform 0.9s 0.45s; }
#hero-copy.in .eyebrow, #hero-copy.in .lede, #hero-copy.in .cta { opacity: 1; transform: none; }
#hero-copy.in .line > span { transform: none; }

.hero-controls {
  position: absolute;
  right: var(--pad);
  bottom: clamp(24px, 6vh, 56px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.hero-controls button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}
.hero-controls button:hover { background: rgba(var(--tint-rgb), 0.08); }
body.loading .hero-controls { display: none; }
@media (max-width: 640px) { #hint { display: none; } #hud { min-width: 0; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.6s 0.8s;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
body.settled .scroll-cue { opacity: 1; }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 18px 0;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  white-space: nowrap;
  animation: slide 32s linear infinite;
}
.ticker-track i { font-style: normal; color: var(--gold); font-size: 0.7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pad); }
.section-wide { max-width: none; padding-inline: 0; }
.section-wide .section-head { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 14px 0 0; font-size: clamp(34px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; max-width: 14ch; }
h2 em { color: var(--gold); letter-spacing: -0.01em; }
h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Story */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-lead p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.story-lead .big { color: var(--ink); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.story-lead strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 32px; }
.t-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}
.timeline p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); gap: 14px; }
.bento-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.035), rgba(var(--tint-rgb), 0.01));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 194, 107, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card p { margin: auto 0 0; color: var(--muted); font-size: 14px; }
.b-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.b-num { font-size: clamp(64px, 9vw, 120px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.b-num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-num small { font-size: 0.22em; color: var(--muted); letter-spacing: 0; margin-left: 8px; font-weight: 500; }
.b-years { grid-column: span 2; grid-row: span 2; }
.b-looms { grid-column: span 4; }
.b-looms h3 { font-size: clamp(22px, 2.6vw, 34px); }
.b-design { grid-column: span 2; }
.b-finish { grid-column: span 2; }
.b-team { grid-column: span 6; flex-direction: row; align-items: center; gap: 28px; }
.b-team p { margin: 0; max-width: 420px; }
.pills { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-years, .b-looms, .b-team { grid-column: span 2; grid-row: auto; }
  .b-design, .b-finish { grid-column: span 1; }
  .b-team { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .b-design, .b-finish { grid-column: span 2; } }

.process { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.process li { position: relative; padding: 22px 16px 0 0; counter-increment: step; }
.process li::before { content: "0" counter(step); font-family: var(--mono); font-size: 11px; color: var(--gold); }
.process li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.process span { display: block; margin-top: 8px; font-size: 20px; font-weight: 600; }
.process p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* Label marquee */
.marquee { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  height: clamp(180px, 22vw, 260px);
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.marquee img:hover { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }

/* Team */
.team-group + .team-group { margin-top: 48px; }
.team-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.team-group-title::before,
.team-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-group-title span { color: var(--muted); font-weight: 400; }
#team .section-head { text-align: center; }
#team .section-head h2 { margin-inline: auto; }
/* Flex (not grid) so groups with fewer cards sit in the centre */
.team-grid { --cols: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.team-grid .member { flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols)); }
.member { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.member-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s; }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb), 0.85)); }
.member:hover .member-photo img { transform: scale(1.06); filter: none; }
.chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
}
.member-body { padding: 14px 16px 18px; }
.member-body h3 { font-size: 16px; }
.role { margin: 2px 0 0; font-size: 13px; color: var(--gold); }
.bio { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1180px) { .team-grid { --cols: 3; } }
@media (max-width: 640px) { .team-grid { --cols: 2; } .bio { display: none; } }

/* Contact */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 88px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 157, 77, 0.1), rgba(139, 108, 255, 0.08) 60%, transparent);
  text-align: center;
}
.cta-panel h2 { margin-inline: auto; }
.cta-panel > p { max-width: 520px; margin: 20px auto 0; color: var(--muted); }
.cta-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; margin-left: -260px; background: radial-gradient(circle, rgba(242, 194, 107, 0.25), transparent 65%); pointer-events: none; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact-item {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.4);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-item span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.contact-item small { color: var(--muted); font-size: 12px; }
.contact-location { max-width: 420px; }
.contact-map {
  max-width: 720px;
  margin: 20px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Phones */
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 32px; }
  #hero-copy { padding-top: 88px; }
  #hero-copy h1 { font-size: clamp(38px, min(12vw, 7.5vh), 64px); }
  #hero-copy::before { width: 130vw; height: 70vh; background: radial-gradient(closest-side, rgba(var(--bg-rgb), 0.9), rgba(var(--bg-rgb), 0.65) 60%, transparent); }
  .eyebrow { font-size: 10px; letter-spacing: 0.08em; padding: 6px 12px; }
  .lede { font-size: 15px; }
  .cta .btn { padding: 13px 20px; font-size: 14px; }
  .hero-controls { left: var(--pad); right: var(--pad); justify-content: center; bottom: 18px; }
  .contact-list { flex-direction: column; align-items: stretch; }
  .contact-item { min-width: 0; }
  .cta-panel { border-radius: 24px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Small phones: shrink nav buttons so "Members Login" fits */
.nav-actions .btn-sm, .brand { white-space: nowrap; }
@media (max-width: 420px) {
  #nav { gap: 10px; padding-right: 8px; }
  .brand { letter-spacing: 0.12em; font-size: 13px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 9px 12px; font-size: 12px; }
  .theme-btn, .menu-btn { width: 36px; height: 36px; }
  .menu-btn span { left: 11px; right: 11px; }
  .menu-btn span:first-child { top: 13px; }
  .menu-btn span:last-child { top: 21px; }
  #nav.open .menu-btn span:first-child, #nav.open .menu-btn span:last-child { top: 17px; }
}
