/* PS Tech Solutions
   Concept: the page is dim, a warm lamp follows you and lights the circuit underneath.

   Locks (anti-slop pass)
   - Shape: buttons and tags are pills, every image and panel is 20px. Nothing else.
   - Color: one accent (--lit). Neutrals are true black and off-white, no tint.
   - Light: the cursor lamp is the only glow on the page. The hero photo ripples around the cursor (WebGL).
   - z-index scale: lamp 40, menu 55, nav 60, progress 70, skip link 100, loader 200. Hero layers use -3..3 inside their own stacking context. */

@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #070707;
  --ink-2: #0f0f0f;
  --panel: #171717;
  --line: rgba(245, 245, 242, 0.14);
  --stroke: rgba(245, 245, 242, 0.5);
  --text: #f5f5f2;
  --mute: #a8a8a3;
  --lit: #ffc23d;
  --glow: #ffc23d;

  --r: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
h2 { font-size: clamp(2.6rem, 6.4vw, 6.4rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.05; }

:focus-visible { outline: 3px solid var(--lit); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lit); color: var(--ink); padding: 0.7rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- lamp: the one signature effect ---------- */
.lamp {
  --mx: 50vw; --my: 40vh;
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background:
    radial-gradient(circle 320px at var(--mx) var(--my), rgba(255, 194, 61, 0.14), transparent 70%),
    url("assets/circuit.webp") center / cover no-repeat;
  filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-12deg) brightness(1.15) contrast(1.1);
  mix-blend-mode: screen;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
          mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--lit); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; padding: 0.6rem var(--pad);
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 7, 7, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: 0.95rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); }
.js .nav-links { display: none; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; background: var(--lit); color: var(--ink); padding: 0 1.2rem; border-radius: 999px; font-weight: 600; transition: transform 0.3s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 1.3rem; border-radius: 999px; background: transparent; color: var(--text); border: 1.5px solid var(--stroke); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.js .menu-btn { display: inline-flex; }
.menu-btn:hover { border-color: var(--lit); color: var(--lit); }
.menu-btn[aria-expanded="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--pad) 2.2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease), visibility 0s; }
.menu-list li { overflow: hidden; }
.menu-link {
  display: inline-block; font-family: var(--display); font-weight: 760; font-stretch: 80%;
  font-size: clamp(2.8rem, min(10vw, 13vh), 8rem); line-height: 1.02; letter-spacing: -0.03em;
  transform: translateY(108%); transition: transform 0.9s var(--ease), color 0.25s, opacity 0.25s;
}
.menu.is-open .menu-link { transform: none; transition-delay: calc(var(--i) * 70ms + 220ms), 0s, 0s; }
.menu-list:hover .menu-link { opacity: 0.35; }
.menu-list .menu-link:hover, .menu-list .menu-link:focus-visible { opacity: 1; color: var(--lit); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; color: var(--mute); }
.menu-foot a { display: inline-flex; align-items: center; min-height: 44px; transition: color 0.25s; }
.menu-foot a:hover { color: var(--lit); }
body.menu-open { overflow: hidden; }
.menu-visual { display: none; }
@media (min-width: 900px) {
  .menu-visual { display: block; position: absolute; right: var(--pad); top: 7rem; bottom: 6rem; width: min(34vw, 30rem); border-radius: var(--r); overflow: hidden; background: var(--panel); }
  .mv { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
  .menu[data-active="0"] .mv-0, .menu[data-active="1"] .mv-1, .menu[data-active="2"] .mv-2,
  .menu[data-active="3"] .mv-3, .menu[data-active="4"] .mv-4, .menu[data-active="5"] .mv-5 { opacity: 1; transform: none; }
}

/* ---------- preloader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: var(--pad); overflow: hidden;
}
.loader-word, .loader-count {
  font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(3rem, 11vw, 10rem); line-height: 0.85; letter-spacing: -0.03em;
}
.loader-count { color: var(--lit); font-variant-numeric: tabular-nums; }

.logo { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; min-height: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.7rem; border-radius: 999px;
  background: var(--lit); color: var(--ink);
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  border: 1.5px solid var(--lit);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: #ffd166; border-color: #ffd166; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--stroke); }
.btn-ghost:hover { background: transparent; border-color: var(--lit); color: var(--lit); }
.btn-lg { min-height: 60px; padding: 0 2.2rem; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--pad) 3rem;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; filter: saturate(1.1) brightness(0.85); }
.hero-gl { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; display: block; opacity: 0; transition: opacity 0.8s var(--ease); }
.hero.gl-ready .hero-gl { opacity: 1; }
.hero.gl-ready .hero-bg img { opacity: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0.15) 40%, var(--ink) 100%),
    linear-gradient(110deg, rgba(0, 0, 0, 0.35), transparent 60%);
}
.hero-title {
  position: relative; z-index: 2;
  /* sized by both width and height so the three lines plus the copy always fit one screen */
  font-size: clamp(3.2rem, min(11.5vw, 17vh), 10rem);
  line-height: 0.82; font-weight: 760; font-stretch: 80%;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; will-change: transform; }
.line-in { display: inline-block; will-change: transform; }
.line-2 { padding-left: 12vw; }
.line-2 .line-in { color: transparent; -webkit-text-stroke: 0.018em var(--lit); }
.line-3 { padding-left: 4vw; }
.js .line-in { transform: translateY(108%); }

.hero-copy {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 32rem) auto; gap: 1.5rem 4rem; align-items: end; justify-content: space-between;
}
.hero-copy p { color: #dddddb; font-size: clamp(1.05rem, 1.2vw + 0.7rem, 1.4rem); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.js .hero-copy, .js .tile { opacity: 0; }

.tile { position: absolute; z-index: -1; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); will-change: transform; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 0, 0, 0.3), rgba(7, 7, 7, 0.35)); }
.tile-a { width: clamp(9rem, 17vw, 19rem); aspect-ratio: 4 / 5; right: 9vw; top: 17vh; }
.tile-c { width: clamp(8rem, 14vw, 16rem); aspect-ratio: 5 / 4; right: 3vw; top: 52vh; }

/* ---------- logo wall (one marquee on the page) ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 1.6rem 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); padding-right: clamp(3rem, 6vw, 5.5rem); flex-shrink: 0; }
.marquee-set li { display: flex; flex-shrink: 0; }
.marquee-set img { height: 2.6rem; width: auto; filter: brightness(0) invert(1); opacity: 0.72; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(6rem, 16vw, 14rem) var(--pad); }
.manifesto-text {
  max-width: 62rem;
  font-family: var(--display); font-weight: 600; font-stretch: 88%;
  font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.08; letter-spacing: -0.025em;
}
.manifesto-text .w { display: inline-block; }
.js .manifesto-text .w { opacity: 0.14; }

/* ---------- heading reveal: words rise out of a mask ---------- */
.rw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rw > span { display: inline-block; }
.js [data-rw] .rw > span { transform: translateY(110%); }

/* ---------- image tone ---------- */
.tone { position: relative; overflow: hidden; background: var(--panel); }
.tone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.38), rgba(7, 7, 7, 0.5));
  mix-blend-mode: multiply;
}
.tone img { filter: saturate(0.9) contrast(1.05); }

/* ---------- horizontal scroll ---------- */
.hscroll { position: relative; background: var(--ink); }
.hpin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.htrack { display: flex; align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: 0 var(--pad); will-change: transform; }

.hpanel { flex-shrink: 0; }
.hintro { width: min(34rem, 80vw); position: relative; }
.hintro p { color: var(--mute); margin-top: 1.4rem; max-width: 24rem; }
.hbar { margin-top: 2.2rem; height: 3px; width: 12rem; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--lit); transform: scaleX(0); transform-origin: 0 50%; }

.p-apps, .p-ai, .p-iot, .p-api, .p-ux { display: grid; gap: 1.4rem; }
.ph { position: relative; border-radius: var(--r); }
.ph img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.ptext { max-width: 26rem; }
.ptext p { color: var(--mute); margin-top: 0.7rem; }

/* deliberately uneven: sizes and vertical offsets change panel to panel */
.p-apps { width: min(44vw, 40rem); }
.p-apps .ph { aspect-ratio: 4 / 4.6; }
.p-ai { width: min(30vw, 28rem); align-self: flex-start; margin-top: 12vh; }
.p-ai .ph { aspect-ratio: 3 / 4; }
.p-iot { width: min(48vw, 44rem); }
.p-iot .ph { aspect-ratio: 16 / 11; }
.p-api { width: min(32vw, 30rem); align-self: flex-end; margin-bottom: 10vh; }
.p-api .ph { aspect-ratio: 4 / 5; }
.p-ux { width: min(40vw, 36rem); margin-right: 6vw; }
.p-ux .ph { aspect-ratio: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags li { font-size: 0.875rem; padding: 0.35rem 0.85rem; border: 1px solid var(--stroke); border-radius: 999px; color: #dddddb; }
.tags-lg { margin: 2rem 0; }

/* ---------- bridge ---------- */
.bridge { padding: clamp(6rem, 12vw, 11rem) var(--pad); position: relative; overflow-x: clip; }
.bridge-title { max-width: 14ch; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.bridge-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.half { position: relative; min-height: clamp(22rem, 46vw, 36rem); border-radius: var(--r); }
.half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.half::after { background: linear-gradient(180deg, rgba(7, 7, 7, 0.1) 30%, rgba(7, 7, 7, 0.88)); }
.half-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3vw, 2.6rem); }
.half-text p { color: #dddddb; margin-top: 0.6rem; max-width: 22rem; }
.half-r { margin-top: clamp(2rem, 6vw, 5rem); }
.seam { position: relative; width: 2px; margin: 0 clamp(0.6rem, 1.5vw, 1.4rem); }
.seam i { position: absolute; inset: -2rem 0; background: linear-gradient(180deg, transparent, var(--lit) 20%, var(--lit) 80%, transparent); transform-origin: 50% 0; }
.bridge-note { margin-top: 3rem; color: var(--mute); max-width: 34rem; }

/* ---------- work: pinned scene, the portrait opens to full bleed ---------- */
.work { background: var(--ink); }
.work-pin {
  position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46rem); align-items: center;
  padding: 6rem var(--pad) 3rem;
}
.work-frame { position: absolute; inset: 0; z-index: -2; border-radius: 0; clip-path: inset(14% 58% 14% 5% round 20px); }
.work-frame img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.work-pin::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to left, rgba(7, 7, 7, 0.95) 0%, rgba(7, 7, 7, 0.88) 42%, rgba(7, 7, 7, 0.35) 75%, rgba(7, 7, 7, 0) 100%); }
.work-copy { grid-column: 2; }
.work h2 { font-size: clamp(3.2rem, min(8vw, 15vh), 8rem); letter-spacing: -0.035em; line-height: 0.85; }
.work-lede { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.4vw + 0.5rem, 1.5rem); max-width: 30rem; color: #dddddb; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; margin-top: clamp(1.4rem, 4vh, 2.6rem); border-top: 1px solid var(--line); }
.feat li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.feat h3 { font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
.feat p { color: var(--mute); margin-top: 0.4rem; font-size: 0.95rem; }
.work-foot { margin-top: clamp(1.2rem, 3vh, 2rem); display: grid; gap: 1.4rem; justify-items: start; }
.work-foot .tags { margin-top: 0; }
@media (max-height: 780px) and (min-width: 900px) { .work-lede { display: none; } .work-pin { padding-top: 5.5rem; } .feat li { padding: 0.8rem 0; } }

/* ---------- process (vertical on mobile and reduced motion, pinned step-swap on desktop) ---------- */
.process { padding: clamp(6rem, 12vw, 11rem) var(--pad); }
.process-title { margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 12ch; }
.steps { position: relative; padding-left: clamp(2.2rem, 5vw, 4.5rem); }
.rail { position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--line); }
.rail i { display: block; width: 100%; height: 100%; background: var(--lit); transform: scaleY(0); transform-origin: 50% 0; }
.step { position: relative; padding-bottom: clamp(3.5rem, 10vh, 7rem); opacity: 0.4; transition: opacity 0.5s var(--ease); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: calc(clamp(2.2rem, 5vw, 4.5rem) * -1 + 0.45rem - 5px); top: 0.5rem; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mute); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.step.is-on { opacity: 1; }
.step.is-on::before { background: var(--lit); border-color: var(--lit); }
.step h3 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.step p { color: #dddddb; margin-top: 0.9rem; max-width: 28rem; }
.tracker { display: none; }
html:not(.js) .step { opacity: 1; }

@media (min-width: 900px) {
  .js .process { padding: 0; }
  .js .process-pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 6.5rem var(--pad) 2.5rem; }
  .js .process-title { font-size: clamp(2rem, 3.6vw, 3.6rem); margin: 0; max-width: none; }
  .js .steps { flex: 1; padding: 0; }
  .js .rail, .js .step::before { display: none; }
  .js .step { position: absolute; inset: 0; padding: 0; opacity: 0; display: flex; flex-direction: column; justify-content: center; }
  .js .step h3 { font-size: clamp(4.5rem, min(12vw, 22vh), 11rem); letter-spacing: -0.04em; line-height: 0.85; }
  .js .step p { font-size: clamp(1.1rem, 1.5vw, 1.55rem); max-width: 30rem; margin-top: 1.6rem; }
  .js .tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .js .tracker li { padding-top: 0.8rem; border-top: 3px solid var(--line); color: var(--mute); font-weight: 600; transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
  .js .tracker li.is-on { color: var(--text); border-color: var(--lit); }
}

/* ---------- team: one large founder, two leads at different heights ---------- */
.team { padding: clamp(6rem, 12vw, 11rem) var(--pad); overflow-x: clip; }
.team-title { max-width: 12ch; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.team-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 3rem); row-gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.member { display: grid; gap: 1.2rem; }
.founder { grid-column: 1 / span 5; }
.leads { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 3rem); row-gap: clamp(2.5rem, 6vw, 5rem); }
.m-three { margin-top: clamp(3rem, 8vw, 7rem); }
.leads .m-text h3 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.m-photo { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--panel); }
.m-photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.m-photo img.zoom { scale: 1.3; transform-origin: 50% 30%; }
.m-role { color: var(--lit); font-weight: 600; font-size: 1rem; margin-top: 0.5rem; }
.m-text h3 { font-size: clamp(2rem, 3.6vw, 3.6rem); }
.founder .m-text h3 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.92; }
.m-note { color: var(--mute); margin-top: 0.7rem; max-width: 26rem; }
.m-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.4rem; color: var(--text); border-bottom: 1.5px solid var(--stroke); align-self: start; justify-self: start; transition: color 0.25s, border-color 0.25s; }
.m-link:hover { color: var(--lit); border-color: var(--lit); }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(7rem, 16vw, 14rem) var(--pad) clamp(4rem, 8vw, 7rem); overflow: hidden; isolation: isolate; }
.contact-photo { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: min(60%, 62rem); opacity: 0.85;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%); mask-image: linear-gradient(to left, #000 35%, transparent 100%); }
.contact-photo img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.contact-title { font-size: clamp(3rem, 9vw, 9rem); line-height: 0.86; font-weight: 760; font-stretch: 80%; letter-spacing: -0.03em; }
.cl { display: block; overflow: hidden; padding-bottom: 0.07em; }
.cl:nth-child(2) { padding-left: 8vw; }
.cl:nth-child(3) { color: var(--lit); }
.cl > span { display: inline-block; }
.js .cl > span { transform: translateY(108%); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.contact-note { margin-top: 2rem; color: var(--mute); }

.foot { border-top: 1px solid var(--line); overflow: hidden; color: var(--mute); font-size: 0.95rem; }
.foot-mark { padding: clamp(2rem, 6vw, 4rem) var(--pad) 0; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 22vw; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 245, 242, 0.24); }
.foot-mark span { display: inline-block; will-change: transform; }
.foot-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; align-items: center; padding: 1.4rem var(--pad); }
.foot .logo { color: var(--text); font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .menu-link { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .line-2 { padding-left: 8vw; }
  .hero-copy { grid-template-columns: 1fr; }
  .tile-a { right: 6vw; top: 12vh; width: 9rem; }
  .tile-c { right: auto; left: 6vw; top: 24vh; width: 8rem; }

  .hpin { height: auto; display: block; padding: 4rem 0; }
  .htrack { flex-direction: column; align-items: stretch; gap: 4rem; }
  .hpanel, .p-ai, .p-api, .p-ux, .p-apps, .p-iot { width: 100%; margin: 0; align-self: auto; }
  .p-ux { margin-right: 0; }
  .hbar { display: none; }
  .ph img { left: -6%; width: 112%; }

  .bridge-stage { grid-template-columns: 1fr; gap: 1.2rem; }
  .seam { display: none; }
  .half-r { margin-top: 0; }

  .team-stage { grid-template-columns: 1fr; }
  .founder, .leads { grid-column: 1; }
  .leads { grid-template-columns: 1fr; }
  .m-two, .m-three, .m-four { max-width: 24rem; }
  .m-three { justify-self: end; margin-top: 0; }

  .work-pin { display: block; min-height: 0; padding: 4rem var(--pad); }
  .work-frame { position: relative; inset: auto; z-index: 0; clip-path: none; aspect-ratio: 4 / 4.4; border-radius: var(--r); margin-bottom: 2rem; }
  .work-pin::after { display: none; }
  .feat { grid-template-columns: 1fr; }
  .foot-mark { font-size: 24vw; }
  .step { opacity: 1; }

  .contact-photo { width: 100%; opacity: 0.3; }
  .marquee-set img { height: 2.2rem; }
}

/* touch screens: the lamp wanders by itself, keep it gentler behind text */
@media (hover: none) { .lamp { opacity: 0.32; } }

/* no motion or no script: the portrait is already open and headings are in place */
.reduced .work-frame, html:not(.js) .work-frame { clip-path: inset(0% 0% 0% 0% round 0px); }
@media (max-width: 899px) { .reduced .work-frame, html:not(.js) .work-frame { clip-path: none; } }

/* reduced motion: no pinning, the carousel scrolls natively */
.reduced .hpin { height: auto; overflow-x: auto; padding: 4rem 0; }
.reduced .ph img { left: 0; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .line-in, .js .cl > span { transform: none; }
  .js .hero-copy, .js .tile { opacity: 1; }
  .js .manifesto-text .w { opacity: 1; }
  .step { opacity: 1; }
  .work-frame { clip-path: inset(0% 0% 0% 0% round 0px); }
  .js [data-rw] .rw > span, .menu-link { transform: none; }
  .hero-gl { display: none; }
  .progress { display: none; }
}

/* browser surfaces themed from the palette */
::selection { background: var(--lit); color: var(--ink); }
html { accent-color: var(--lit); caret-color: var(--lit); scrollbar-color: #3a3a3a var(--ink); scrollbar-width: thin; }
a { text-underline-offset: 0.2em; }

@media (max-width: 420px) { .nav-cta { display: none; } }
