/* ============================================================
   Swift Labs — section styles
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
}
.brandmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand .brandmark { font-size: inherit; }
.brandmark .dot { color: var(--lime); }
.brand .glyph svg { width: 30px; height: 30px; display: block; }
.brand .arc { animation: spin 9s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--paper); }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(203,242,78,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(203,242,78,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(203,242,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(203,242,78,0); }
}
/* ---------- MOBILE NAV ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  position: relative;
  z-index: 60;
}
.nav-burger span {
  display: block;
  width: 17px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 96px var(--pad) 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 881px) { .mobile-menu { display: none; } }

.mm-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.mm-status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  animation: pulse 2.4s infinite;
}
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(40px, 13vw, 64px); line-height: 1.04; color: var(--paper);
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline;
}
.mm-links .mm-dot { color: var(--lime); }
.mm-mail {
  font-family: var(--mono); font-size: 15px; color: var(--paper-dim);
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
}
.mm-mail::before { content: "→"; color: var(--lime); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 60% at 30% 45%, transparent, rgba(10,10,11,0.4) 80%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; }

.hero-tag-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 6vh, 64px);
}
.hero-coord { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-size: clamp(46px, 10.5vw, 156px);
  max-width: 14ch;
}
.hero h1 .whatif {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.hero h1 .rotator {
  position: relative;
  display: inline-block;
  color: var(--lime);
  font-style: italic;
  min-width: 1ch;
}
.hero h1 .rotator .word {
  display: inline-block;
  animation: wordIn 0.5s var(--ease) both;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.4em) rotate(2deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero h1 .caret {
  display: inline-block; width: 0.06em; height: 0.82em;
  background: var(--lime); margin-left: 0.05em;
  transform: translateY(0.08em);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  gap: clamp(24px, 6vw, 80px);
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-lede {
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--paper-dim);
  line-height: 1.5;
}
.hero-lede strong { color: var(--paper); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink-2);
  position: relative; z-index: 3;
}
.marquee-track {
  display: flex; gap: 0; white-space: nowrap;
  width: max-content;
  animation: marq 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  padding: 0 34px;
  display: inline-flex; align-items: center; gap: 34px;
  color: var(--paper);
}
.marquee-item .star { color: var(--lime); font-size: 0.6em; }
.marquee-item.dim { color: transparent; -webkit-text-stroke: 1px var(--line-strong); }

/* ---------- SECTION SHELL ---------- */
.section { padding: clamp(80px, 12vh, 150px) 0; position: relative; z-index: 3; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 7vh, 80px);
}
.section-head .lead { max-width: 30ch; }
.section-head h2 { margin-top: 18px; }
.section-head .aside { max-width: 38ch; color: var(--paper-dim); font-size: 16px; }

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.specimen {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.specimen:hover { border-color: color-mix(in oklab, var(--c) 55%, var(--line)); }
.specimen .glow {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(60% 60% at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--c) 26%, transparent), transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.specimen:hover .glow { opacity: 1; }
.specimen-feature { grid-column: span 6; min-height: 360px; }
.specimen-half { grid-column: span 6; }
.specimen-third { grid-column: span 4; }
@media (max-width: 900px) {
  .specimen, .specimen-feature, .specimen-half, .specimen-third { grid-column: 1 / -1; }
}

.spec-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.spec-code { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.spec-status {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-strong);
  color: var(--c);
}
.spec-status .d { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.spec-status.live .d { animation: pulse2 2s infinite; }
@keyframes pulse2 { 0%,100% { opacity:1 } 50% { opacity: 0.35 } }

.spec-body { position: relative; z-index: 2; }
.spec-name {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(28px, 3.4vw, 44px);
  text-wrap: balance;
}
.spec-name .ext { color: var(--c); }
.spec-desc { margin-top: 12px; color: var(--paper-dim); font-size: 15.5px; max-width: 42ch; }
.spec-foot {
  margin-top: 22px; display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--paper-dim);
}
.spec-link { display: inline-flex; align-items: center; gap: 8px; color: var(--c); transition: gap 0.25s var(--ease); }
.specimen:hover .spec-link { gap: 14px; }
.spec-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }

.spec-watermark {
  position: absolute; right: -10px; bottom: -34px; z-index: 1;
  font-family: var(--display); font-weight: 800; font-size: 190px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); opacity: 0.5; pointer-events: none;
}

/* ---------- APPROACH ---------- */
.approach { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
@media (max-width: 820px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }
.method-step {
  background: var(--ink); padding: 32px 26px 38px;
  display: flex; flex-direction: column; gap: 16px; min-height: 240px;
  transition: background 0.3s ease;
  position: relative;
}
.method-step:hover { background: var(--ink-3); }
.method-step .n { font-family: var(--mono); font-size: 12px; color: var(--lime); letter-spacing: 0.1em; }
.method-step h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.method-step p { color: var(--paper-dim); font-size: 15px; }
.method-step .ico { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--paper); opacity: 0.25; margin-top: auto; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--paper); letter-spacing: -0.01em; }
.about-copy p + p { margin-top: 22px; }
.about-copy .muted { color: var(--paper-dim); font-size: 17px; line-height: 1.55; letter-spacing: 0; }
.about-sign { margin-top: 30px; font-family: var(--display); font-weight: 700; font-size: 26px; }
.about-sign small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; letter-spacing: 0.06em; }

.founder-card {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
}
.founder-photo {
  position: relative; background: var(--ink-3); overflow: hidden; line-height: 0;
}
.founder-photo img { width: 100%; height: auto; display: block; }
.founder-meta { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.founder-meta .name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.founder-meta .role { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.founder-meta .brandmark { font-size: 17px; color: var(--paper); }

.stat-row { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -0.03em; }
.stat .lbl { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }

/* ---------- CONTACT / FOOTER ---------- */
.contact { position: relative; z-index: 3; }
.contact-card {
  border: 1px solid var(--line-strong); border-radius: 26px; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(140deg, var(--ink-3), var(--ink));
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 5vw, 64px);
  position: relative; overflow: hidden;
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h2 { font-size: clamp(34px, 5.5vw, 72px); }
.contact-statement {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  background: rgba(10,10,11,0.5); font-family: var(--mono); font-size: 14px;
}
.contact-statement .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: var(--paper-dim); }
.contact-statement .row.hl { color: var(--lime); }
.contact-statement .row + .row { border-top: 1px dashed var(--line); }
.contact-statement .head { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin-bottom: 8px; }

.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-actions .lead { color: var(--paper-dim); font-size: 16px; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; position: relative; z-index: 3; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 110px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--paper-dim); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-legal {
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.footer-bigmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.8;
  font-size: clamp(70px, 17vw, 260px); color: transparent; -webkit-text-stroke: 1px var(--line);
  margin-top: 30px; user-select: none;
}
