/* =============================================================
   V4 — muscat-style — rainsday.com/v4/
   Lime electric + ink + paper, bold sans display, bento layout
   ============================================================= */

:root {
  --lime: #34ff00;
  --lime-deep: #2ee000;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --mute: #f4f4f4;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.2);

  --display: "Plus Jakarta Sans", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1320px;

  /* Soft Structuralism premium curves */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-outer: 28px;
  --radius-inner: calc(28px - 6px);
  --shadow-soft: 0 1px 1px rgba(10, 10, 10, 0.04), 0 8px 30px rgba(10, 10, 10, 0.06);
  --shadow-elev: 0 2px 2px rgba(10, 10, 10, 0.05), 0 22px 60px rgba(10, 10, 10, 0.1);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

button { font: inherit; }

[hidden] { display: none !important; }

main > section[id] { scroll-margin-top: 88px; }

@media (max-width: 600px) {
  main > section[id] { scroll-margin-top: 132px; }
}

body.v4 {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  cursor: none;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 220ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

::selection { background: var(--lime); color: var(--ink); }

@media (hover: none), (pointer: coarse) {
  body.v4 { cursor: auto; }
  .cursor { display: none !important; }
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: absolute; top: 0; left: 0;
  pointer-events: none; will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(10, 10, 10, 0.4);
}
.cursor-ring {
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(10, 10, 10, 0.8);
  border-radius: 999px;
  transition: width 220ms var(--ease), height 220ms var(--ease), margin 220ms var(--ease),
    background 220ms var(--ease), border-color 220ms var(--ease);
}
.cursor.is-pointer .cursor-ring {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: var(--lime);
  border-color: var(--lime);
  mix-blend-mode: multiply;
}

/* ============================================================
   Topbar — tiny, muscat-style
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
}

.topbar-left,
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-right { grid-column: 3; justify-self: end; }

.topbar-home,
.topbar-lang,
.topbar-version,
.topbar-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: none;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.topbar-home { padding: 0 8px; }
.topbar-home:hover,
.topbar-lang:hover,
.topbar-version:hover {
  background: var(--lime);
  border-color: var(--ink);
}
.topbar-version { gap: 6px; }
.ver-arrow { font-size: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 30px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: filter 200ms var(--ease);
}

/* When the topbar overlaps a dark section, invert the brand-mark
   + recolor the wordmark and hamburger so they stay legible. */
.topbar.is-on-dark .brand-mark img {
  filter: invert(1);
  mix-blend-mode: screen;
}
.topbar.is-on-dark .brand,
.topbar.is-on-dark .brand-word em {
  color: var(--paper);
}
.topbar.is-on-dark .brand {
  border-left-color: rgba(255, 255, 255, 0.16);
}
.topbar.is-on-dark .topbar-menu span {
  background: var(--paper);
}
.brand-word em {
  font-style: normal;
  font-weight: 500;
  margin-left: 4px;
  font-size: 0.86em;
  color: rgba(10, 10, 10, 0.6);
}

.topbar-menu {
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  gap: 4px;
}
.topbar-menu span {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease), background 220ms var(--ease);
}
.topbar-menu:hover { background: var(--ink); }
.topbar-menu:hover span { background: var(--lime); }
.topbar-menu[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
}
.topbar-menu[aria-expanded="true"] span { background: var(--lime); }
.topbar-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.topbar-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  top: 72px;
  right: 28px;
  z-index: 79;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  border-radius: var(--radius-outer);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 80px rgba(10, 10, 10, 0.16);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.menu-panel-inner {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: var(--radius-inner);
  background: var(--paper);
}
.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  transition: background 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease);
}
.menu-panel a:hover {
  background: var(--lime);
  transform: translateX(4px);
}

/* ============================================================
   Section helpers (kicker, square bullet, CTAs)
   ============================================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.square,
.kicker .dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--lime);
  flex: 0 0 auto;
}
.square.dark,
.kicker .dot.dark { background: var(--ink); }

.section-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.section-body {
  margin: 0 0 32px;
  max-width: 30rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.78);
}

.section-cta,
.we-cta,
.dual-cta,
.pickup-cta,
.project-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 140px;
  height: 44px;
  padding: 0 14px 0 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--ink);
  transition: transform 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
  cursor: none;
  white-space: nowrap;
}
.section-cta:hover,
.we-cta:hover,
.dual-cta:hover,
.pickup-cta:hover,
.project-more:hover {
  background: var(--ink);
  color: var(--lime);
  box-shadow: 6px 6px 0 0 var(--lime);
}
.section-cta .arrow,
.we-cta .arrow,
.dual-cta .arrow,
.pickup-cta .arrow,
.project-more .arrow {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--lime);
  font-size: 14px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.section-cta:hover .arrow,
.we-cta:hover .arrow,
.dual-cta:hover .arrow,
.pickup-cta:hover .arrow,
.project-more:hover .arrow {
  background: var(--lime);
  color: var(--ink);
  transform: translate(2px, -1px) scale(1.05);
}

/* §5.B magnetic active state. physical press simulation. */
[data-magnetic]:active,
.section-cta:active,
.we-cta:active,
.dual-cta:active,
.pickup-cta:active,
.project-more:active {
  transform: scale(0.97);
}

.reveal-line {
  display: block;
  overflow: hidden;
  line-height: 1;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
[data-reveal-stagger].is-revealed .reveal-line:nth-child(1) > span { transform: translateY(0); transition-delay: 0ms; }
[data-reveal-stagger].is-revealed .reveal-line:nth-child(2) > span { transform: translateY(0); transition-delay: 110ms; }
[data-reveal-stagger].is-revealed .reveal-line:nth-child(3) > span { transform: translateY(0); transition-delay: 220ms; }
[data-reveal-stagger].is-revealed .reveal-line:nth-child(4) > span { transform: translateY(0); transition-delay: 330ms; }

/* §5.C Premium scroll entry. heavy fade-up + blur, single 880ms ease. */
[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition:
    opacity 880ms var(--ease),
    transform 880ms var(--ease),
    filter 880ms var(--ease);
  will-change: transform, opacity, filter;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px 28px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  isolation: isolate;
  overflow: clip;
  /* Match the MP4 ivory bg so any swap-gap blends in. Sampled mp4 corners: #E9-#F5 grey. */
  background: #eeeeee;
}

/* Full-bleed video. bottom layer of the hero stack. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  /* Same ivory bg on the element itself so even mid-swap (poster gap, blank frame)
     the colour stays consistent and the hero doesn't flash white/black. */
  background: #eeeeee;
  /* Slight desaturation lets the lime squares dominate. */
  filter: contrast(0.98) saturate(0.85);
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Multiply so the squares paint into the white video. */
  mix-blend-mode: multiply;
}

.hero-field .px {
  position: absolute;
  background: var(--lime);
  transform: scale(0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 700ms var(--ease);
}
.hero-field .px.is-in {
  transform: scale(1);
  opacity: 1;
}
.hero-field .px.is-ink { background: var(--ink); }
.hero-field .px.is-paper { background: var(--paper); outline: 1px solid var(--line); }
.hero-field .px.is-pulse {
  animation: px-pulse 4.6s ease-in-out infinite;
}
@keyframes px-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.hero-copy {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 28px;
  max-width: 640px;
  padding-left: clamp(0px, 4vw, 64px);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: 7rem;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  display: grid;
  gap: 14px;
  max-width: 360px;
}
.hero-lede p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.8);
}
.lede-eyebrow {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.hero-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.6);
}
.hero-by strong {
  font-weight: 700;
  color: var(--ink);
}

/* Pickup card. Double-Bezel shell + inner core. */
.pickup-card {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 5;
  display: grid;
  gap: 8px;
  min-width: 248px;
  padding: 8px;
  border-radius: var(--radius-outer);
  background: rgba(10, 10, 10, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--shadow-elev);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.pickup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(10, 10, 10, 0.08);
  pointer-events: none;
}
.pickup-card > * {
  position: relative;
  z-index: 1;
}
.pickup-card-inner {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
  border-radius: var(--radius-inner);
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.pickup-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 4px rgba(10, 10, 10, 0.04),
    0 32px 80px rgba(52, 255, 0, 0.18);
}
.pickup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pickup-tag .dot {
  width: 8px; height: 8px;
  background: var(--lime);
}
.pickup-kicker {
  font-size: 11px;
  color: rgba(10, 10, 10, 0.6);
}
.pickup-title {
  margin: 4px 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.pickup-cta {
  margin-top: 4px;
  height: 36px;
  min-width: unset;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
    padding-bottom: 196px;
  }
  .hero-portrait {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding-left: 0;
  }
  .pickup-card { left: 16px; right: 16px; bottom: 16px; }
  .hero-title { font-size: 5.4rem; }
}

/* ============================================================
   2. WE ARE
   ============================================================ */
.we-are {
  position: relative;
  padding: 112px 28px;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}

.we-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}
.we-tile {
  margin: 0;
  position: relative;
  grid-column: var(--col, 1) / span 1;
  grid-row: var(--row, 1) / span 1;
  background: var(--ink-2);
  overflow: hidden;
  filter: grayscale(0.4) contrast(1.05);
}
.we-tile:nth-child(1) { grid-column: 1 / span 2; }
.we-tile:nth-child(2) { grid-column: 3 / span 1; }
.we-tile:nth-child(3) { grid-column: 5 / span 1; }
.we-tile:nth-child(4) { grid-column: 1 / span 1; grid-row: 2; }
.we-tile:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; }
.we-tile:nth-child(6) { grid-column: 2 / span 3; grid-row: 3; }
.we-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.we-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  pointer-events: none;
}
.we-overlay > * { pointer-events: auto; }

.we-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.we-display {
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: 10.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.we-body {
  margin: 0 auto 24px;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .we-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .we-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .we-display { font-size: 6.2rem; }
}

/* ============================================================
   3. PROJECT
   ============================================================ */
.project {
  padding: 112px 28px 64px;
  background: var(--paper);
}
.project-head {
  max-width: var(--max);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}
.project-head .section-title { grid-column: 1; }
.project-head .kicker { grid-column: 1; grid-row: 1; }
.project-head .section-body { grid-column: 1; }
.project-head .section-cta { grid-column: 2; grid-row: 1 / span 3; align-self: end; }

.project-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 0 28px;
}
@media (max-width: 1100px) {
  .project-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .project-rail { grid-template-columns: 1fr; }
}

/* Project card. Double-Bezel: outer hairline shell + inner content core. */
.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 6px;
  border-radius: var(--radius-outer);
  background: rgba(10, 10, 10, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    var(--shadow-soft);
  scroll-snap-align: start;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
  will-change: transform;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(10, 10, 10, 0.08);
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 2px rgba(10, 10, 10, 0.05),
    0 40px 80px rgba(52, 255, 0, 0.18);
}
.project-shot {
  position: relative;
  z-index: 1;
  background: var(--mute);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-inner) var(--radius-inner) 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.project-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 480ms var(--ease);
}
.project-card:hover .project-shot img { transform: scale(1.04); }

.project-shot--mascot {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff 0%, #fbfbfb 58%, #f2f2f2 100%);
  background-size: 28px 28px, 28px 28px, auto;
}
.project-shot--mascot img {
  width: min(78%, 230px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 26px 42px rgba(255, 108, 0, 0.22));
}
.project-card:hover .project-shot--mascot img {
  transform: translateY(-4px) scale(1.04);
}

.project-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 22px 22px 22px;
  background: var(--paper);
  border-radius: 0 0 var(--radius-inner) var(--radius-inner);
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-headline {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}
.project-lede {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.7);
}
.project-more {
  margin-top: 8px;
  min-width: unset;
  height: 36px;
  font-size: 12px;
}

/* ============================================================
   4. PEOPLE / APPROACH
   ============================================================ */
.people {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 64px 28px 112px;
  background: var(--paper);
  max-width: var(--max);
  margin: 0 auto;
}
.people-copy {
  align-self: center;
}

.people-stage {
  position: relative;
  min-height: 520px;
  background: var(--lime);
  overflow: hidden;
}
.people-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.people-wordmark {
  position: absolute;
  top: 50%; left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 8.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--ink);
  text-align: center;
}

.people-tag {
  position: absolute;
  display: grid;
  place-items: end start;
  width: 130px; height: 130px;
  padding: 12px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.people-tag img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: grayscale(1);
}
.people-tag-label {
  position: relative;
  z-index: 1;
}
.people-tag:hover { transform: translate(-2px, -2px) scale(1.03); }

.people-tag--design { top: 12%; left: 8%; width: 110px; height: 110px; }
.people-tag--ios    { top: 8%; right: 12%; width: 130px; height: 90px; }
.people-tag--vibe   { bottom: 16%; left: 16%; width: 150px; height: 100px; }
.people-tag--auto   { bottom: 8%; right: 8%; width: 140px; height: 130px; }

@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .people-stage { min-height: 420px; }
  .people-wordmark { font-size: 5.6rem; }
}

/* ============================================================
   5. BRIDGE band
   ============================================================ */
.bridge {
  padding: 112px 28px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.bridge .kicker { justify-content: center; }
.bridge-headline {
  margin: 0 auto 28px;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 32rem;
}
.bridge .section-cta {
  display: inline-flex;
}

/* ============================================================
   6. SPLIT — Brand Produce + Brand Partner
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--mute);
}
.split-card {
  position: relative;
  min-width: 0;
  padding: 80px 40px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.split-card.produce { border-right: 1px solid var(--ink); }
.split-head { margin-bottom: 24px; }
.split-title {
  margin: 0;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}
.produce-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.produce-tiles figure {
  margin: 0;
  background: var(--mute);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.produce-tiles img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); transition: transform 380ms var(--ease); }
.produce-tiles figure:hover img { transform: scale(1.06); }

/* Brand Partner infinite marquee. one marquee per page (taste-skill §5). */
.partner-marquee {
  position: relative;
  margin: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  white-space: nowrap;
  animation: partner-scroll 24s linear infinite;
  will-change: transform;
}
.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}
.partner-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 240px;
  min-height: 96px;
  padding: 14px 32px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
  border-right: 1px solid var(--line-strong);
  transition: background 280ms var(--ease), color 280ms var(--ease);
}
.partner-cell:hover { background: var(--lime); }
.partner-mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  color: var(--ink);
}
.partner-cell:hover .partner-mark { color: var(--ink); }

@keyframes partner-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-card.produce { border-right: 0; border-bottom: 1px solid var(--ink); }
  .split-title { font-size: 2.6rem; }
}

/* ============================================================
   7. NEWS
   ============================================================ */
.news {
  padding: 112px 28px;
  background: var(--paper);
  max-width: var(--max);
  margin: 0 auto;
}
.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.news-row {
  border-bottom: 1px solid var(--ink);
}
.news-row a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 8px;
  transition: transform 320ms var(--ease), background 220ms var(--ease);
}
.news-row a:hover {
  background: var(--mute);
  transform: translateX(12px);
}
.news-row a:hover .arrow {
  background: var(--lime);
  color: var(--ink);
}
.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.news-foot {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(10, 10, 10, 0.6);
}
.news-foot .arrow {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

/* ============================================================
   8. DUAL — Studio + Contact
   ============================================================ */
.dual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 112px 28px;
  background: var(--lime);
  overflow: clip;
  isolation: isolate;
}
.dual-stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-content: center;
  pointer-events: none;
  z-index: 0;
}
.dual-word {
  font-family: var(--display);
  font-size: 20rem;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0.5;
  white-space: nowrap;
  transform: translateY(-12%);
}
.dual-stage .dual-word:nth-child(odd) { justify-self: start; }
.dual-stage .dual-word:nth-child(even) { justify-self: end; }

/* Dual cards. Double-Bezel shell + inner core. */
.dual-card {
  position: relative;
  z-index: 1;
  padding: 8px;
  border-radius: var(--radius-outer);
  background: rgba(10, 10, 10, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--shadow-elev);
}
.dual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(10, 10, 10, 0.1);
  pointer-events: none;
}
.dual-card-inner {
  position: relative;
  padding: 36px 32px 28px;
  border-radius: var(--radius-inner);
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.dual-title {
  margin: 0 0 14px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
}
.dual-body {
  margin: 14px 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

@media (max-width: 900px) {
  .dual { grid-template-columns: 1fr; }
  .dual-word { font-size: 10rem; }
  .dual-title { font-size: 2.5rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  position: relative;
  padding: 60px 28px 24px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  overflow: clip;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto 40px;
}
.foot-brand .brand--foot {
  margin: 0;
  padding: 0;
  border-left: 0;
  font-size: 18px;
}
.foot-tag {
  margin: 12px 0 24px;
  font-size: 14px;
  color: rgba(10, 10, 10, 0.6);
}
.foot-addr p { margin: 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.foot-addr-label {
  margin: 0 0 4px !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.5) !important;
}
.foot-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(10, 10, 10, 0.7);
}
.foot-map:hover { color: var(--ink); }

.foot-nav,
.foot-sub {
  display: grid;
  gap: 14px;
  align-content: start;
}
.foot-nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
  position: relative;
}
.foot-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease);
}
.foot-nav a:hover::after { transform: scaleX(1); }

.foot-sub a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: rgba(10, 10, 10, 0.7);
}
.foot-sub a:hover { color: var(--ink); }

.foot-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.6);
  align-self: end;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.foot-social a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.foot-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.6);
}
.foot-bottom .rule {
  flex: 0 0 18px;
  height: 1px;
  background: var(--line-strong);
}
.foot-link { color: var(--ink); }
.contact-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--lime);
  text-transform: uppercase;
}
.contact-cta .arrow {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  background: var(--lime); color: var(--ink);
}
.contact-cta:hover { background: var(--lime); color: var(--ink); }
.contact-cta:hover .arrow { background: var(--ink); color: var(--lime); }

.foot-megaword {
  position: absolute;
  left: 0; right: 0; bottom: -22%;
  margin: 0;
  pointer-events: none;
  font-family: var(--display);
  font-size: 20rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
  text-align: center;
  color: rgba(10, 10, 10, 0.04);
}

@media (max-width: 900px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .foot-social { grid-column: span 2; }
  .foot-megaword { font-size: 9rem; }
}

/* ============================================================
   Responsive helpers
   ============================================================ */
@media (max-width: 720px) {
  .topbar { padding: 12px 14px; }
  .menu-panel {
    top: 58px;
    right: 14px;
    width: calc(100vw - 28px);
  }
  .brand-word em { display: none; }
  .topbar-version { display: none; }
  .topbar-version:nth-last-of-type(1) { display: inline-flex; } /* keep only last */
  .hero { padding: 92px 16px 198px; }
  .hero-title { font-size: 3.7rem; }
  .section-title { font-size: 2.7rem; }
  .we-display { font-size: 4.2rem; }
  .people-wordmark { font-size: 4rem; }
  .bridge-headline { font-size: 1.8rem; }
  .dual-word { font-size: 7rem; }
  .dual-title { font-size: 2.2rem; }
  .foot-megaword { font-size: 7rem; }
  .section-cta,
  .we-cta,
  .dual-cta,
  .project-more {
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
  }
  .dual-cta {
    width: 100%;
    white-space: normal;
  }
  .project-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  .project-head .kicker,
  .project-head .section-title,
  .project-head .section-body,
  .project-head .section-cta {
    grid-column: 1;
    grid-row: auto;
  }
  .project-head .section-body {
    max-width: 100%;
    margin-bottom: 12px;
  }
  .project-head .section-cta {
    justify-self: start;
    align-self: start;
  }
  .we-are,
  .project,
  .people,
  .bridge,
  .news,
  .dual,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .we-grid { grid-template-rows: repeat(3, 160px); }
  .partner-cell { min-width: 160px; padding: 14px 20px; font-size: 14px; }
  .produce-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Scroll-progress hairline (native scroll-driven animation)
   Justification: page-position feedback for long single-page scroll.
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  height: 2px;
  width: 100%;
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progress-grow linear forwards;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   Hero headline scramble (load-once)
   Justification: storytelling. signals arrival, mirrors fish "still settling" frame.
   ============================================================ */
.scramble-line {
  display: block;
  overflow: hidden;
  line-height: 1;
}
.scramble-text {
  display: inline-block;
  white-space: pre;
}
.scramble-text .ch {
  display: inline-block;
  will-change: transform, opacity;
}
[data-scramble] .scramble-line:nth-child(1) .scramble-text { transition-delay: 0ms; }
[data-scramble] .scramble-line:nth-child(2) .scramble-text { transition-delay: 80ms; }
[data-scramble] .scramble-line:nth-child(3) .scramble-text { transition-delay: 160ms; }

/* ============================================================
   News row letter-by-letter reveal
   Justification: news cadence. items "type in" as user enters the section.
   ============================================================ */
[data-letters] {
  display: inline-block;
  white-space: normal;
}
[data-letters] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 380ms var(--ease), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
[data-letters] .ch.space { width: 0.28em; }
.news-row.is-revealed [data-letters] .ch {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Project card directional hover sweep
   Justification: feedback. shows the user where the card "lit up" from.
   ============================================================ */
.project-card[data-sweep] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.project-card[data-sweep]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle 280px at var(--sx, 50%) var(--sy, 50%),
      rgba(52, 255, 0, 0.18),
      transparent 60%
    );
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.project-card[data-sweep]:hover::after {
  opacity: 1;
}
.project-card[data-sweep] > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   Hero pixel proximity glow (driven by JS-set CSS vars)
   ============================================================ */
.hero-field .px.near {
  filter: drop-shadow(0 0 6px rgba(52, 255, 0, 0.6));
  z-index: 2;
}

/* ============================================================
   Reduced motion (everything above MOTION > 3 collapses)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body.v4 { cursor: auto; }
  .cursor { display: none; }
  [data-reveal], [data-reveal-stagger] .reveal-line > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-field .px { opacity: 1; transform: scale(1); }
  .partner-track { animation: none; }
  [data-letters] .ch { opacity: 1; transform: none; }
  .scramble-text .ch { opacity: 1; }
}
