/* ==========================================================================
   OPSoft Inc — Landing Stylesheet
   Aesthetic: editorial · technical · dark · mint
   ========================================================================== */

:root {
  --bg:           #0a0e0d;
  --bg-2:         #0e1413;
  --bg-3:         #131a18;
  --line:         rgba(232, 235, 233, 0.08);
  --line-strong:  rgba(232, 235, 233, 0.16);
  --mint:         #99ddcc;
  --mint-bright:  #c7eee2;
  --mint-soft:    rgba(153, 221, 204, 0.12);
  --mint-dim:     rgba(153, 221, 204, 0.4);
  --ink:          #eef1ef;
  --ink-mute:     #8b958f;
  --ink-faint:    #5a635f;

  --radius:       4px;
  --radius-lg:    14px;
  --container:    1280px;
  --pad-x:        clamp(20px, 5vw, 64px);
  --section-pad:  clamp(80px, 12vw, 180px);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #07110d; }

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

/* ---------- typography helpers ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
  letter-spacing: -0.005em;
}

/* ---------- ambient layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(153,221,204,0.10), rgba(153,221,204,0) 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 400ms;
  will-change: transform, opacity;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px var(--pad-x);
  z-index: 100;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: linear-gradient(to bottom, rgba(10,14,13,0.85), rgba(10,14,13,0.6));
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(10,14,13,0.94);
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; transition: opacity 220ms; }
.brand:hover img { opacity: 0.85; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.nav__links a {
  font-size: 13px;
  color: var(--ink-mute);
  position: relative;
  padding: 4px 0;
  transition: color 200ms;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.65,0,.35,1);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { justify-self: end; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 320ms, opacity 200ms;
}

.nav[data-open="true"] .nav__burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav[data-open="true"] .nav__burger span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, background 220ms ease,
              color 220ms ease, border-color 220ms ease, box-shadow 240ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn--sm { padding: 10px 18px; font-size: 13px; }

.btn--mint {
  background: var(--mint);
  color: #07110d;
  box-shadow: 0 0 0 0 rgba(153,221,204, 0);
}
.btn--mint:hover {
  background: var(--mint-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -10px rgba(153,221,204,0.55);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn__arrow { transition: transform 240ms; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(153,221,204,0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(153,221,204,0.04), transparent 60%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
  pointer-events: none;
  opacity: 0.55;
}

.hero__inner { position: relative; z-index: 2; }

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.02);
}

.hero__meta-tag { color: var(--mint); }

.pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(153,221,204, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(153,221,204, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(153,221,204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(153,221,204, 0); }
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 56px;
  max-width: 14ch;
}

.hero__title em {
  font-size: 1.05em;
  letter-spacing: -0.02em;
  display: inline-block;
  transform: translateY(0.04em);
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 60px;
  align-items: end;
  max-width: 1080px;
}

.hero__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__art {
  position: absolute;
  right: -160px;
  top: 40px;
  width: 640px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.hero__art-orbit {
  transform-box: fill-box;
  transform-origin: 300px 300px;
  animation: spin 26s linear infinite;
}
.hero__art-orbit--slow { animation-duration: 38s; animation-direction: reverse; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- ticker ---------- */
.ticker {
  margin-top: clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker__row {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  animation: scroll-x 38s linear infinite;
}

.ticker__row i {
  color: var(--mint);
  font-style: normal;
  font-size: 9px;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { border-bottom: 1px solid var(--line); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 56px 32px;
  border-left: 1px solid var(--line);
  position: relative;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:last-child  { padding-right: 0; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat__suf {
  font-family: var(--font-sans);
  font-size: 0.45em;
  color: var(--mint);
  margin-left: 2px;
  vertical-align: super;
  font-weight: 500;
}

.stat__label { margin-top: 16px; }

/* ==========================================================================
   SECTION BASE
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--dark {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  text-align: center;
  justify-items: center;
}

.section__head--left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  justify-items: start;
}

.section__num {
  color: var(--mint);
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section__lede {
  color: var(--ink-mute);
  font-size: clamp(16px, 1.2vw, 19px);
  max-width: 58ch;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  transition: background 320ms ease;
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(153,221,204,0.06), transparent 45%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.service:hover { background: var(--bg-3); }
.service:hover::before { opacity: 1; }

.service > * { position: relative; z-index: 1; }

.service__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.service__head .mono { color: var(--mint); }
.service__head h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.service p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
}

.service__list {
  margin-top: auto;
  display: grid;
  gap: 6px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 18px;
}

.service__list li::before {
  content: "→ ";
  color: var(--mint);
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 96px);
  max-width: 1080px;
  margin: 0 auto;
}

.why__item {
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}

.why__num {
  color: var(--mint);
  margin-bottom: 18px;
}

.why__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.why__item p {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.65;
  max-width: 46ch;
}

/* ==========================================================================
   INDUSTRIES MARQUEE
   ========================================================================== */
.industries {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  background: var(--bg);
}

.industries__label {
  padding-left: var(--pad-x);
  white-space: nowrap;
  color: var(--mint);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
          mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  flex: 1;
  min-width: 0;
}

.marquee__row {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.01em;
  animation: scroll-x 44s linear infinite;
}

.marquee__row i {
  color: var(--mint);
  font-size: 0.7em;
  font-style: normal;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  padding: 36px 28px 32px;
  border-left: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  transition: background 320ms ease;
}
.step:first-child { border-left: 0; }
.step:hover { background: var(--bg-3); }

.step::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(.65,0,.35,1);
}
.step:hover::before { transform: scaleX(1); }

.step__num { color: var(--mint); }

.step h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.step p {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.step__meta {
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-faint);
}

/* ==========================================================================
   STACK
   ========================================================================== */
.stack {
  display: grid;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}

.stack__group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.stack__group:first-child { padding-top: 0; }
.stack__group:last-child  { border-bottom: 0; padding-bottom: 0; }

.stack__label {
  color: var(--mint);
  padding-top: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255,255,255,0.015);
  transition: all 220ms ease;
  cursor: default;
}
.chip:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-soft);
  transform: translateY(-1px);
}

/* ==========================================================================
   SELECTED WORK (PROJECTS)
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project {
  background: var(--bg);
  padding: 44px clamp(28px, 3.5vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 380px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background 320ms ease;
  isolation: isolate;
}

.project:hover { background: var(--bg-3); }

.project__bg {
  position: absolute;
  right: -16px;
  bottom: -80px;
  font-family: var(--font-display);
  font-size: 320px;
  line-height: 0.8;
  color: var(--mint);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  transition: opacity 360ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
}
.project:hover .project__bg {
  opacity: 0.10;
  transform: translateY(-8px);
}

.project > *:not(.project__bg) { position: relative; z-index: 1; }

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project__num { color: var(--mint); }

.project__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  transition: color 240ms;
}
.project__visit i {
  font-style: normal;
  color: var(--mint);
  font-size: 14px;
  display: inline-block;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.project:hover .project__visit { color: var(--ink); }
.project:hover .project__visit i { transform: translate(4px, -4px); }

.project__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.project__name em {
  font-size: 0.95em;
  display: inline;
  letter-spacing: -0.01em;
}

.project__lede {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
}

.project__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.project__tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 220ms, color 220ms;
  white-space: nowrap;
}
.project:hover .project__tags span {
  border-color: var(--mint-dim);
  color: var(--ink);
}

.project--wide {
  grid-column: span 2;
  min-height: 280px;
}
.project--wide .project__lede { max-width: 72ch; }
.project--wide .project__bg {
  font-size: 380px;
  right: -8px;
  bottom: -96px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq__item {
  background: var(--bg-2);
  position: relative;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 8px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 200ms;
  letter-spacing: -0.005em;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--mint);
  transition: transform 300ms;
  line-height: 1;
}

.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--mint); }

.faq__body {
  padding: 0 56px 24px 8px;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
  animation: fade-in 360ms ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background:
    radial-gradient(800px 500px at 10% 30%, rgba(153,221,204,0.08), transparent 60%),
    var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.contact__lede {
  color: var(--ink-mute);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 40px;
}

.form { display: grid; gap: 20px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
  position: relative;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color 240ms;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--mint);
}

.field textarea { min-height: 96px; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.form__note { color: var(--ink-faint); }

.contact__right {
  display: grid;
  gap: 20px;
}

.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-2);
}

.contact__label { color: var(--mint); margin-bottom: 14px; }

.contact__addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.contact__list { display: grid; gap: 4px; }

.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: color 220ms;
}
.contact__link:last-child { border-bottom: 0; }
.contact__link:hover { color: var(--mint); }
.contact__link-arrow {
  color: var(--mint);
  transition: transform 220ms;
}
.contact__link:hover .contact__link-arrow { transform: translateX(4px); }

.contact__map {
  padding: 0;
  overflow: hidden;
  height: 280px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(140deg) brightness(0.95) saturate(0.7) contrast(0.95);
  opacity: 0.85;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 80px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.footer__logo { height: 32px; margin-bottom: 18px; }

.footer__tagline {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-mute);
  max-width: 28ch;
  line-height: 1.4;
}

.footer__col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__head {
  color: var(--mint);
  margin-bottom: 8px;
}

.footer__col a {
  font-size: 14px;
  color: var(--ink-mute);
  transition: color 200ms;
  width: max-content;
}
.footer__col a:hover { color: var(--ink); }

.footer__col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__base .mono { color: var(--ink-faint); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1),
              transform 800ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* stagger inside services + steps + why + stack groups + stats */
.services [data-reveal]:nth-child(2),
.why [data-reveal]:nth-child(2),
.process [data-reveal]:nth-child(2),
.stack [data-reveal]:nth-child(2),
.projects [data-reveal]:nth-child(2),
.stats__grid [data-reveal]:nth-child(2) { transition-delay: 90ms; }

.services [data-reveal]:nth-child(3),
.why [data-reveal]:nth-child(3),
.process [data-reveal]:nth-child(3),
.stack [data-reveal]:nth-child(3),
.projects [data-reveal]:nth-child(3),
.stats__grid [data-reveal]:nth-child(3) { transition-delay: 180ms; }

.services [data-reveal]:nth-child(4),
.why [data-reveal]:nth-child(4),
.process [data-reveal]:nth-child(4),
.stack [data-reveal]:nth-child(4),
.projects [data-reveal]:nth-child(4),
.stats__grid [data-reveal]:nth-child(4) { transition-delay: 270ms; }

.services [data-reveal]:nth-child(5),
.process [data-reveal]:nth-child(5),
.stack [data-reveal]:nth-child(5) { transition-delay: 360ms; }

.services [data-reveal]:nth-child(6) { transition-delay: 450ms; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__art { display: none; }

  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .nav[data-open="true"] {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "links links"
      "cta cta";
    row-gap: 16px;
    padding-bottom: 22px;
    background: rgba(10,14,13,0.97);
    border-bottom-color: var(--line);
  }
  .nav[data-open="true"] .brand   { grid-area: brand; }
  .nav[data-open="true"] .nav__burger { grid-area: burger; }
  .nav[data-open="true"] .nav__links {
    grid-area: links;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--line);
  }
  .nav[data-open="true"] .nav__links a { font-size: 18px; }
  .nav[data-open="true"] .nav__cta {
    grid-area: cta;
    display: block;
    justify-self: start;
  }

  .services { grid-template-columns: repeat(2, 1fr); }

  .process { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step::before { display: none; }

  .stack__group { grid-template-columns: 1fr; gap: 16px; }

  .projects { grid-template-columns: 1fr; }
  .project__bg { font-size: 240px; bottom: -56px; }
  .project--wide { grid-column: auto; }
  .project--wide .project__bg { font-size: 240px; bottom: -56px; }

  .faq__wrap { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 40px 24px; }
  .stat:nth-child(2) { padding-right: 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .hero { padding-top: 130px; }
  .hero__title { font-size: clamp(44px, 13vw, 80px); }
  .hero__bottom { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .project { padding: 36px 24px; min-height: auto; }
  .project__bg { font-size: 180px; bottom: -36px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat__num { font-size: 52px; }
  .industries { flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0; }
  .marquee { width: 100%; }
  .hero__meta { flex-wrap: wrap; gap: 10px; }
  .hero__meta-tag { display: none; }
  .case__quote { padding: 40px 24px; }
  .case__mark { font-size: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .ticker__row, .marquee__row, .hero__art, .hero__art-orbit { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   LEGAL PAGES  (privacy / terms / dpa)
   ========================================================================== */
.legal {
  padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 12vw, 140px);
  position: relative;
  background:
    radial-gradient(800px 500px at 90% 5%, rgba(153,221,204,0.07), transparent 60%),
    var(--bg);
}

.legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black, transparent 60%);
          mask-image: radial-gradient(ellipse at 80% 0%, black, transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

.legal__container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.legal__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal__crumbs a {
  color: var(--mint);
  transition: opacity 200ms;
}
.legal__crumbs a:hover { opacity: 0.7; }
.legal__crumbs i {
  font-style: normal;
  color: var(--ink-faint);
}

.legal__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.legal__title em { font-size: 1em; }

.legal__lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 56ch;
  margin-bottom: 32px;
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  padding: 22px 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.legal__meta-item dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 6px;
}
.legal__meta-item dd {
  font-size: 14px;
  color: var(--ink);
}

.legal__toc {
  margin-bottom: 64px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.legal__toc-label {
  color: var(--mint);
  margin-bottom: 14px;
}
.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}
.legal__toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 28px;
}
.legal__toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mint);
  top: 2px;
}
.legal__toc a {
  font-size: 14px;
  color: var(--ink-mute);
  transition: color 200ms;
}
.legal__toc a:hover { color: var(--ink); }

.legal__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.legal__body h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 72px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal__body h2::before {
  content: attr(data-n);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin-bottom: 14px;
}
.legal__body h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.legal__body h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 12px;
}

.legal__body p { margin-bottom: 18px; }
.legal__body p:last-child { margin-bottom: 0; }

.legal__body strong { color: var(--ink); font-weight: 600; }

.legal__body em {
  font-family: inherit;
  font-style: italic;
  color: inherit;
  font-size: 1em;
  letter-spacing: 0;
}

.legal__body a {
  color: var(--mint);
  border-bottom: 1px dashed var(--mint-dim);
  transition: opacity 200ms;
}
.legal__body a:hover { opacity: 0.7; }

.legal__body ul,
.legal__body ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
.legal__body ul > li,
.legal__body ol > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.legal__body ul > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint);
}
.legal__body ol { counter-reset: lst; }
.legal__body ol > li::before {
  counter-increment: lst;
  content: counter(lst, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
}

.legal__body dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 28px;
  margin: 0 0 28px;
  padding: 22px 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}
.legal__body dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  padding-top: 4px;
}
.legal__body dd { margin: 0; color: var(--ink); }

.legal__contact {
  margin-top: 80px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.legal__contact-label {
  color: var(--mint);
  margin-bottom: 14px;
}
.legal__contact h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--ink);
}
.legal__contact-list {
  display: grid;
  gap: 10px;
}
.legal__contact-list a,
.legal__contact-list address {
  font-style: normal;
  color: var(--ink);
  border-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}
.legal__contact-list a:hover { color: var(--mint); }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  border-bottom: 0 !important;
  transition: gap 220ms;
}
.legal__back:hover { gap: 14px; opacity: 1 !important; }
.legal__back i { font-style: normal; }

@media (max-width: 720px) {
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal__body dl { grid-template-columns: 1fr; gap: 4px; }
  .legal__body dl dd { margin-bottom: 18px; }
  .legal__meta { gap: 16px 32px; }
  .legal__contact { padding: 24px; }
}
