/* Layout concept: a giant breathing headline over real work, on midnight,
   lit by one ember-to-violet gradient. Work stacks like sheets as you scroll;
   one light band carries the trust content (promises + FAQ). */
:root {
  --night: #0A0E22;      /* page ground: midnight navy */
  --surface: #121735;    /* raised panels */
  --surface-2: #1A2046;
  --text: #F2F3FA;
  --mute: #9BA1C2;
  --line: rgba(242, 243, 250, .11);
  --paper: #F4F3F8;      /* the one light band */
  --ink: #0A0E22;
  --ink-mute: #5B6080;
  --ink-line: rgba(10, 14, 34, .12);
  --ok: #2BD48A;

  --g1: #FF7847;         /* ember */
  --g2: #FF3D8F;         /* rose */
  --g3: #7B61FF;         /* violet */
  --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 48%, var(--g3) 100%);

  --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: max(20px, 4vw);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--g2); color: #fff; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Film grain, very faint */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: end start;
  position: fixed; inset: 0; z-index: 100;
  background: var(--night); color: var(--text);
  padding: var(--gutter);
  clip-path: inset(0 0 0 0);
}
.js.loaded .preloader { display: none; }
.preloader-inner { display: grid; gap: .5rem; }
.preloader-label { font-size: .95rem; color: var(--mute); }
.preloader-count {
  font: 800 clamp(5rem, 22vw, 18rem)/.8 var(--f-display);
  font-variation-settings: "wdth" 60;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.preloader-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ring ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor-ring {
  display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.cursor.is-link .cursor-ring { transform: scale(1.8); background: #fff; }
.cursor-label {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%) scale(.6);
  padding: .55rem .9rem; border-radius: 999px; background: var(--grad); color: #fff;
  font: 600 .78rem/1 var(--f-body); white-space: nowrap; opacity: 0;
  transition: opacity .25s, transform .35s var(--ease);
}
.cursor.has-label .cursor-ring { transform: scale(0); }
.cursor.has-label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  padding-bottom: 16px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(10, 14, 34, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.on-light { color: var(--ink); }
.nav.on-light.is-solid { background: rgba(244, 243, 248, .82); }
.nav-left { display: flex; align-items: center; gap: 1.25rem; }
.nav-brand { font: 800 1.15rem/1 var(--f-display); font-variation-settings: "wdth" 120; text-decoration: none; white-space: nowrap; }
.switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(242, 243, 250, .07); border: 1px solid var(--line);
  font-size: .88rem;
}
.nav.on-light .switch { background: rgba(10,14,34,.05); border-color: var(--ink-line); }
.switch a { padding: .42rem .9rem; border-radius: 999px; text-decoration: none; color: inherit; opacity: .72; transition: opacity .2s; }
.switch a:hover { opacity: 1; }
.switch a[aria-current="page"] { background: var(--grad); color: #fff; opacity: 1; }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); font-size: .95rem; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .6rem 1.05rem; border-radius: 999px; background: var(--text); color: var(--night); font-weight: 500; transition: background-color .3s, color .3s; }
.nav-cta:hover { background: var(--g2); color: #fff; }
.nav.on-light .nav-cta { background: var(--ink); color: var(--paper); }
@media (max-width: 1060px) { .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 600px) { .nav-cta { display: none; } }
@media (max-width: 400px) { .nav-brand { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(5.5rem, 11vh, 8rem));
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  max-width: 1600px; margin-inline: auto;
  isolation: isolate;
}
.aurora {
  position: absolute; z-index: -1; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  right: -12vw; top: -18vw;
  background: radial-gradient(closest-side, rgba(255, 61, 143, .36), rgba(123, 97, 255, .2) 45%, rgba(255, 120, 71, 0) 70%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 45vw; height: 45vw; left: -15vw; right: auto; top: 35%;
  background: radial-gradient(closest-side, rgba(255, 120, 71, .26), rgba(255, 61, 143, 0) 70%);
  animation-duration: 22s; animation-direction: alternate-reverse;
}
@keyframes drift { to { transform: translate(-8vw, 10vw) scale(1.15); } }

.hero-name {
  align-self: end;
  display: grid;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 12.6vw, 13.5rem);
  line-height: .84;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 100, "wght" 800;
}
.hero-name--sm { font-size: clamp(2rem, 10.2vw, 11rem); }
.name-line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.name-line--2 { padding-left: 13%; }
.name-line .ch { display: inline-block; will-change: font-variation-settings; }
.name-line--2 .ch {
  background: var(--grad) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-bottom--call { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.hero-intro { display: grid; gap: 1.1rem; max-width: 36rem; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--mute); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,212,138,.45); } 70% { box-shadow: 0 0 0 10px rgba(43,212,138,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,138,0); } }
.hero-lede { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.hero-sub { color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font: 500 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: none; color: inherit;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  will-change: transform;
}
.btn span { display: inline-flex; align-items: center; gap: .55rem; pointer-events: none; }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(255, 61, 143, .6); }
.btn--grad:hover { box-shadow: 0 14px 50px -8px rgba(255, 61, 143, .9); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--small { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn--white { background: #fff; color: var(--ink); }
.btn--line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Hero showcase: real screenshots in a browser + phone */
.showcase { position: relative; aspect-ratio: 16 / 11; max-width: 100%; perspective: 1400px; }
.showcase .frame { position: absolute; will-change: transform; }
.frame-back { width: 70%; left: 0; top: 0; }
.frame-back .browser { opacity: .9; }
.frame-front { width: 80%; right: 5%; top: 19%; }
.frame-phone { width: 24%; right: 0; bottom: 0; }

.browser {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1E2347; font-size: .72rem; color: var(--mute); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); flex-shrink: 0; }
.browser-bar span { margin-left: 8px; background: rgba(255,255,255,.07); padding: 3px 10px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  border-radius: 24px; padding: 5px; background: #05070F;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.16);
}
.phone img { border-radius: 19px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-rows: auto auto; }
  .hero-bottom, .hero-bottom--call { grid-template-columns: 1fr; }
  .showcase { max-width: 560px; }
}
@media (min-width: 1000px) {
  .hero-bottom .showcase { margin-top: calc(-1 * min(9vw, 9.5rem)); z-index: 2; }
  .hero-bottom--call .call { margin-top: 0; }
}

/* ---------- Call card (software page) ---------- */
.call {
  background: rgba(18, 23, 53, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  display: grid; gap: .8rem;
  position: relative;
}
.call::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7;
}
.call-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.call-who { display: flex; align-items: center; gap: .75rem; }
.call-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); position: relative; }
.call-avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--g2); opacity: 0; }
.call.is-ringing .call-avatar::after { animation: ring 1.2s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.call-title { font-weight: 600; font-size: .98rem; line-height: 1.2; }
.call-state { font-size: .85rem; color: var(--mute); }
.call-state.is-live { color: var(--ok); }
.call-timer { font: 500 .9rem/1 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.call-wave { width: 100%; height: 56px; }
.call-lines {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
  height: 11.5rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
          mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
}
.line { display: grid; gap: .15rem; max-width: 92%; }
.line-who { font-size: .72rem; letter-spacing: .04em; color: var(--mute); }
.line-ur { font-size: .97rem; line-height: 1.4; }
.line-en { font-size: .82rem; line-height: 1.35; color: var(--mute); }
.line--agent .line-who { color: #FF7DB3; }
.line--cust { align-self: flex-end; text-align: right; }
.line--cust .line-who { color: var(--g1); }
.line .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -.15em; margin-left: 1px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.call-tools { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 1.9rem; }
.tool { font: 400 .74rem/1 var(--f-mono); padding: .45rem .6rem; border-radius: 8px; background: rgba(123, 97, 255, .18); color: #CFC5FF; animation: toolIn .5s var(--ease) both; }
.tool::before { content: "\2713  "; color: var(--ok); }
@keyframes toolIn { from { opacity: 0; transform: translateY(6px); } }
.call-caption { font-size: .78rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: .7rem; }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-list li { padding: 1.7rem 1.2rem 1.7rem 0; display: grid; gap: .35rem; align-content: start; }
.proof-list li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.proof-big { font: 800 clamp(2.2rem, 4vw, 3.6rem)/1 var(--f-display); font-variation-settings: "wdth" 72; }
.proof-list p { color: var(--mute); font-size: .95rem; max-width: 26ch; }
@media (max-width: 800px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 1.3rem; display: flex; border-block: 1px solid var(--line); }
.marquee-track { display: flex; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  font: 600 clamp(1.4rem, 3vw, 2.4rem)/1 var(--f-display);
  font-variation-settings: "wdth" 75;
  padding-inline: 1.4rem;
  display: flex; align-items: center;
  white-space: nowrap;
}
.marquee li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); margin-left: 2.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title {
  font: 800 clamp(2.6rem, 6.5vw, 6rem)/.92 var(--f-display);
  font-variation-settings: "wdth" 70;
  letter-spacing: -.02em;
}
.section-note { max-width: 30rem; color: var(--mute); }

/* ---------- Work: stacking sheets ---------- */
.work { padding-block: clamp(5rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem); }
.stack { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.project {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 90px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.2rem, 2.6vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  transform-origin: 50% 0;
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,.7);
}
.project::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: var(--grad);
}
.project-shot { position: relative; min-width: 0; padding-bottom: 4%; }
.scroller { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.scroller-inner { position: absolute; left: 0; right: 0; top: 0; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.scroller-inner img { width: 100%; height: auto; }
.project-shot:hover .scroller-inner, .project-shot:focus-within .scroller-inner { transform: translateY(-69%); }
@media (hover: none) {
  .scroller-inner { animation: pan 14s cubic-bezier(.45, .05, .35, 1) 1s infinite alternate; }
}
@keyframes pan { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(-69%); } }
.project-shot .phone { position: absolute; width: 21%; right: -2%; bottom: 0; }
.project-text { display: grid; gap: 1rem; align-content: center; min-width: 0; }
.project-kind { display: inline-flex; width: fit-content; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }
.project h3 { font: 700 clamp(1.6rem, 2.6vw, 2.4rem)/1.08 var(--f-display); font-variation-settings: "wdth" 85; letter-spacing: -.01em; }
.project-text > p { color: var(--mute); }
.facts { display: grid; gap: .55rem; margin: .3rem 0 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; font-size: .92rem; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; }
.project-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
.btn--grad .live-dot { background: #fff; }
.hint { font-size: .8rem; color: var(--mute); }
@media (max-width: 900px) {
  .project { position: relative; top: auto; grid-template-columns: 1fr; }
}

/* Zoomable real screenshot: hover to magnify where the pointer is */
.zoom { overflow: hidden; background: #fff; cursor: zoom-in; }
.zoom img { width: 100%; height: auto; transition: transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.zoom:hover img { transform: scale(1.9); }
@media (hover: none) { .zoom:hover img { transform: none; } }

.project-shot, .phone-card, .site-card { text-decoration: none; color: inherit; }

/* Crossfading frames for scroll-driven sites (shows the story without scrolling) */
.frames { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #05060c; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: frameFade 10.5s infinite; }
.frames img:nth-child(1) { opacity: 1; }
.frames img:nth-child(2) { animation-delay: 3.5s; }
.frames img:nth-child(3) { animation-delay: 7s; }
@keyframes frameFade {
  0% { opacity: 0; transform: scale(1.04); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .frames img { animation: none !important; }
  .frames img:not(:first-child) { opacity: 0; }
}

/* Call language toggle */
.call-right { display: flex; align-items: center; gap: .7rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.lang-btn { font: 500 .74rem/1 var(--f-body); color: var(--mute); background: none; border: 0; padding: .4rem .65rem; border-radius: 999px; cursor: pointer; transition: color .2s, background-color .3s; }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--grad); color: #fff; }
@media (max-width: 420px) { .call-timer { display: none; } }

/* Business websites row */
.site-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(1rem, 3vw, 2rem); }
.site-card {
  display: grid; gap: 1.2rem; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1rem, 2vw, 1.6rem);
  transition: border-color .4s;
}
.site-card:hover { border-color: rgba(255, 61, 143, .45); }
.site-card .browser { transition: transform .6s var(--ease); }
.site-card:hover .browser { transform: translateY(-6px); }
.site-card h4 { font: 700 1.35rem/1.15 var(--f-display); font-variation-settings: "wdth" 85; }
.site-card p { color: var(--mute); font-size: .95rem; }
.site-card .stack-sm { display: grid; gap: .6rem; }
@media (max-width: 900px) { .site-row { grid-template-columns: 1fr; } }

/* Keep the hero glow from widening the page */
.hero { overflow-x: clip; }

/* Phones row (smaller stores) */
.phones-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2rem, 5vw, 4rem); }
.phone-card {
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1rem, 2vw, 1.6rem);
  transition: border-color .4s;
}
.phone-card:hover { border-color: rgba(255, 61, 143, .45); }
.phone-card .phone { transition: transform .6s var(--ease); }
.phone-card:hover .phone { transform: translateY(-6px) rotate(-2deg); }
.phone-card h4 { font: 700 1.35rem/1.15 var(--f-display); font-variation-settings: "wdth" 85; }
.phone-card p { color: var(--mute); font-size: .95rem; }
.phone-card .stack-sm { display: grid; gap: .6rem; align-content: center; }
@media (max-width: 900px) { .phones-row { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .phone-card { grid-template-columns: 110px minmax(0, 1fr); } }

/* Mock UIs for private software */
.mock { width: 100%; font-family: var(--f-body); color: var(--ink); background: #F7F8FB; aspect-ratio: 16 / 10; overflow: hidden; }
.mock-dark { background: #0E1330; color: var(--text); padding: clamp(.9rem, 2vw, 1.4rem); display: grid; align-content: center; }
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.pipe li { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .15rem; background: rgba(255,255,255,.03); animation: pipeOn 6s infinite; }
.pipe li:nth-child(2) { animation-delay: 1s; } .pipe li:nth-child(3) { animation-delay: 2s; }
.pipe li:nth-child(4) { animation-delay: 3s; } .pipe li:nth-child(5) { animation-delay: 4s; }
.pipe li:nth-child(6) { animation-delay: 5s; }
@keyframes pipeOn { 0%, 14% { border-color: var(--g2); background: rgba(255,61,143,.16); } 20%, 100% { border-color: var(--line); background: rgba(255,255,255,.03); } }
.pipe b { font-weight: 600; font-size: clamp(.72rem, 1vw, .9rem); }
.pipe span { font-size: clamp(.64rem, .85vw, .78rem); color: var(--mute); }
.pipe-code { margin: .9rem 0 0; padding: .85rem; border-radius: 12px; background: rgba(0,0,0,.35); font: 400 clamp(.62rem, .88vw, .8rem)/1.7 var(--f-mono); color: #DADDF0; overflow-x: auto; white-space: pre; }
.c-fn { color: #CFC5FF; } .c-str { color: #FFB394; }

.portal { display: grid; grid-template-columns: 22% 1fr; height: 100%; }
.portal-side { background: var(--ink); color: rgba(242,243,250,.6); padding: 14px 12px; display: grid; align-content: start; gap: 8px; font-size: clamp(.6rem, .8vw, .74rem); }
.portal-side b { color: #fff; font-size: clamp(.7rem, .9vw, .86rem); margin-bottom: 6px; }
.portal-side .on { color: #fff; background: rgba(255,61,143,.35); border-radius: 6px; padding: 4px 7px; margin-inline: -7px; }
.portal-main { padding: clamp(8px, 1.2vw, 14px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.portal-top { display: flex; justify-content: space-between; align-items: center; font-size: clamp(.66rem, .9vw, .82rem); }
.portal-top b { font-size: clamp(.8rem, 1.1vw, 1rem); }
.portal-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.portal-stats div { background: #fff; border: 1px solid #E6E8F0; border-radius: 8px; padding: 7px 9px; display: grid; }
.portal-stats small { font-size: clamp(.52rem, .7vw, .64rem); color: var(--ink-mute); }
.portal-stats b { font: 700 clamp(.85rem, 1.3vw, 1.15rem)/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.portal-table { width: 100%; border-collapse: collapse; font-size: clamp(.58rem, .8vw, .72rem); background: #fff; border-radius: 8px; overflow: hidden; }
.portal-table th { text-align: left; font-weight: 500; color: var(--ink-mute); padding: 6px 8px; background: #F0F2F7; }
.portal-table td { padding: 6px 8px; border-bottom: 1px solid #EEF0F5; white-space: nowrap; }
.portal-table td:first-child { font-family: var(--f-mono); color: var(--ink-mute); }
.pill { font-style: normal; font-size: .9em; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.pill.ok { background: #DDF6EA; color: #0F7A50; }
.pill.go { background: #ECE8FF; color: #5B3FE0; }
.pill.wait { background: #FFE9DF; color: #B83D10; }
.pill.red { background: #FFE3EC; color: #B4124C; }
.bars { display: flex; align-items: end; gap: 5px; height: 60px; padding: 8px; background: #fff; border: 1px solid #E6E8F0; border-radius: 8px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad); background-size: 100% 300%; opacity: .85; }

/* More software grid */
.more { margin-top: clamp(4rem, 8vw, 6rem); }
.more-title { font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--f-display); font-variation-settings: "wdth" 85; margin-bottom: 1.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.more-grid li { border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; display: grid; gap: .5rem; align-content: start; background: rgba(255,255,255,.02); transition: border-color .3s, background-color .3s; }
.more-grid li:hover { border-color: rgba(255,61,143,.5); background: rgba(255,61,143,.05); }
.more-grid h4 { font: 600 1.12rem/1.25 var(--f-body); }
.more-grid p { color: var(--mute); font-size: .95rem; }
.more-grid small { color: var(--mute); font-size: .8rem; margin-top: .4rem; }
@media (max-width: 900px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { padding-block: clamp(4rem, 9vw, 7rem); }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); outline-offset: -2px; }
.svc-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(1.2rem, 2.4vw, 2rem); }
.svc h3 {
  font: 700 clamp(1.6rem, 4.2vw, 3.6rem)/1.02 var(--f-display);
  font-variation-settings: "wdth" 80, "wght" 700;
  letter-spacing: -.015em;
  transition: font-variation-settings .6s var(--ease);
}
.svc-plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .5s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc-body > div { overflow: hidden; display: grid; gap: 1rem; }
.svc-body p { max-width: 40rem; color: var(--mute); }
.svc-body .tags { padding-bottom: clamp(1.2rem, 2.4vw, 2rem); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .85rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.svc:hover h3, .svc:focus-within h3, .svc.is-open h3 {
  font-variation-settings: "wdth" 115, "wght" 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc:hover .svc-body, .svc:focus-within .svc-body, .svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc:hover .svc-plus::after, .svc:focus-within .svc-plus::after, .svc.is-open .svc-plus::after { transform: rotate(0); }

/* ---------- Process ---------- */
.process { padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.steps li { display: grid; align-content: start; gap: .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--grad); transform-origin: left; }
.step-n { font: 800 clamp(3rem, 6vw, 5rem)/.9 var(--f-display); font-variation-settings: "wdth" 60; }
.steps h3 { font: 600 1.25rem/1.2 var(--f-body); }
.steps p { color: var(--mute); max-width: 26ch; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust band (light) ---------- */
.trust { background: var(--paper); color: var(--ink); padding-block: clamp(5rem, 10vw, 8rem); border-radius: 36px 36px 0 0; }
.trust .section-note { color: var(--ink-mute); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
.promise { background: #fff; border-radius: 20px; padding: 1.6rem; display: grid; gap: .6rem; align-content: start; border: 1px solid var(--ink-line); }
.promise-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; margin-bottom: .3rem; }
.promise-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font: 600 1.2rem/1.25 var(--f-body); }
.promise p { color: var(--ink-mute); font-size: .97rem; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-side { display: grid; gap: 1rem; position: sticky; top: 110px; }
.faq-side p { color: var(--ink-mute); max-width: 28rem; }
.faq { border-top: 1px solid var(--ink-line); }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.35rem; font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-body); transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-mute); padding-bottom: 1.4rem; max-width: 46rem; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- Cross link ---------- */
.cross { background: var(--paper); color: var(--ink); padding-bottom: clamp(4rem, 8vw, 6rem); }
.cross-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 28px; text-decoration: none;
  background: var(--ink); color: var(--text); position: relative; overflow: hidden; isolation: isolate;
}
.cross-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .6s var(--ease); }
.cross-card:hover::before, .cross-card:focus-visible::before { opacity: 1; }
.cross-card small { font-size: .95rem; color: var(--mute); transition: color .4s; }
.cross-card:hover small { color: rgba(255,255,255,.9); }
.cross-card h2 { font: 800 clamp(2rem, 5vw, 4.4rem)/.95 var(--f-display); font-variation-settings: "wdth" 75; margin-top: .5rem; }
.cross-card p { color: var(--mute); margin-top: .8rem; max-width: 40rem; transition: color .4s; }
.cross-card:hover p { color: rgba(255,255,255,.9); }
.cross-arrow { width: clamp(56px, 7vw, 96px); height: clamp(56px, 7vw, 96px); border-radius: 50%; background: var(--text); color: var(--ink); display: grid; place-items: center; transition: transform .6s var(--ease); }
.cross-arrow svg { width: 40%; height: 40%; stroke: currentColor; fill: none; stroke-width: 2.2; }
.cross-card:hover .cross-arrow { transform: rotate(-45deg); }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 6vw, 5rem);
  background: var(--night);
  color: #fff;
}
.contact::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(255,120,71,.8), transparent 70%),
    radial-gradient(45% 55% at 70% 40%, rgba(255,61,143,.75), transparent 70%),
    radial-gradient(50% 60% at 50% 95%, rgba(123,97,255,.9), transparent 70%);
  filter: blur(40px);
  animation: mesh 20s ease-in-out infinite alternate;
}
@keyframes mesh { to { transform: rotate(12deg) scale(1.1); } }
.contact-kicker { font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-bottom: clamp(1rem, 2.5vw, 2rem); color: rgba(255,255,255,.9); }
.contact-big { font: 800 clamp(4.5rem, 19vw, 18rem)/.82 var(--f-display); font-variation-settings: "wdth" 100; letter-spacing: -.04em; white-space: nowrap; }
.contact-big .ch { display: inline-block; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.35); }
.contact-mail { display: grid; gap: .3rem; min-width: 0; }
.contact-label { font-size: .9rem; color: rgba(255,255,255,.8); }
.contact-addr { font: 600 clamp(1.25rem, 3vw, 2.2rem)/1.2 var(--f-body); overflow-wrap: anywhere; user-select: all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--mute); font-size: .9rem; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.8rem); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.js-clock { font-variant-numeric: tabular-nums; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track, .scroller-inner { animation: none !important; }
  .js .preloader { display: none; }
}

/* =====================================================================
   Motion layer
   ===================================================================== */

/* Live WebGL gradient (hero + contact). Falls back to the CSS glows. */
.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.hero .gl { left: 50%; width: 100vw; transform: translateX(-50%); }
.hero.has-gl .aurora { display: none; }
.contact.has-gl::before { display: none; }

/* Scroll progress */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Page transition veil */
.veil { position: fixed; inset: 0; z-index: 110; background: var(--grad); display: none; clip-path: inset(100% 0 0 0); pointer-events: none; }
.seen .preloader { background: var(--grad); }
.seen .preloader-inner, .seen .preloader-bar { display: none; }

/* Split text pieces */
.w { display: inline-block; }
.c { display: inline-block; }
.section-title .w, .more-title .w { white-space: nowrap; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; perspective: 500px; }
.section-title .c, .more-title .c { transform-origin: 50% 100%; }
.hero-lede .w { will-change: transform, opacity, filter; }

/* Manifesto: words light up as you scroll */
.manifesto { padding-block: clamp(5rem, 12vw, 10rem) clamp(2rem, 4vw, 3rem); }
.manifesto-text {
  font: 700 clamp(1.9rem, 4.8vw, 4.6rem)/1.06 var(--f-display);
  font-variation-settings: "wdth" 82;
  letter-spacing: -.015em;
  max-width: 24ch;
  text-wrap: pretty;
}
.manifesto-text .w { margin-right: .02em; }
.manifesto-text em { font-style: normal; }
.manifesto-text .w.hl {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.manifesto-by { margin-top: clamp(1.5rem, 3vw, 2.5rem); color: var(--mute); display: flex; align-items: center; gap: .8rem; }
.manifesto-by::before { content: ""; width: 40px; height: 2px; background: var(--grad); }

/* Velocity marquee (JS drives it; CSS loop is the fallback) */
.marquee.is-js .marquee-track { animation: none; will-change: transform; }

/* Floating service preview */
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: clamp(240px, 24vw, 360px); aspect-ratio: 16 / 10;
  margin-left: 60px;
}
.svc-preview img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  clip-path: inset(50% 50% 50% 50% round 14px);
  transform: scale(1.15);
  transition: clip-path .6s var(--ease), transform .8s var(--ease);
}
.svc-preview.is-on img { clip-path: inset(0 0 0 0 round 14px); transform: scale(1); }

/* Project screenshots: tilt follows the pointer */
.project-shot .browser, .project-shot .phone { transition: transform .7s var(--ease); }
.project-shot { perspective: 1400px; }

/* Process rule draws with scroll */
.steps li::before { transform: scaleX(var(--line, 1)); }

/* Rotating availability badge */
.contact-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.contact-top .contact-kicker { margin-bottom: 0; }
.badge { position: relative; width: clamp(104px, 11vw, 150px); aspect-ratio: 1; flex-shrink: 0; display: grid; place-items: center; color: #fff; text-decoration: none; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge-ring text { font: 600 13.5px/1 var(--f-body); letter-spacing: .16em; fill: #fff; text-transform: uppercase; }
.badge-core { width: 44%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.badge-core svg { width: 42%; height: 42%; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge:hover .badge-core { transform: scale(1.12) rotate(45deg); }
.badge:hover .badge-ring { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .gl { display: none; }
  .hero.has-gl .aurora { display: block; }
  .contact.has-gl::before { display: block; }
  .badge-ring { animation: none; }
}

/* =====================================================================
   Contact form + calls to action
   ===================================================================== */
.section-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.2rem, 2.5vw, 1.8rem) clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.trust .section-cta { border-color: var(--ink-line); background: #fff; }
.section-cta p { font: 700 clamp(1.25rem, 2.2vw, 1.8rem)/1.15 var(--f-display); font-variation-settings: "wdth" 85; }

/* Floating button, shown after the hero and hidden over the form */
.fab {
  position: fixed; z-index: 55;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.35rem; border-radius: 999px;
  background: var(--grad); color: #fff; text-decoration: none; font: 600 .98rem/1 var(--f-body);
  box-shadow: 0 14px 40px -10px rgba(255, 61, 143, .7);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s, box-shadow .4s;
}
.fab.is-on { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { box-shadow: 0 18px 50px -8px rgba(255, 61, 143, .95); }
.fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-w 2s infinite; }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Contact layout */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.contact-side { display: grid; gap: 1.6rem; align-content: start; padding-top: .5rem; }
.contact-facts { display: grid; gap: .9rem; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.4rem; }
.contact-facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; font-size: .95rem; }
.contact-facts b { font-weight: 600; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* The form: a glass card over the live gradient */
.cform {
  scroll-margin-top: 100px;
  display: grid; gap: 1.25rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 26px;
  background: rgba(10, 14, 34, .55);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.cform-title { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-display); font-variation-settings: "wdth" 85; }
.cform-sub { color: rgba(255,255,255,.75); margin-top: -.6rem; }
.cform-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 560px) { .cform-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .chips legend { font-size: .88rem; color: rgba(255,255,255,.8); }
.field .opt { color: rgba(255,255,255,.5); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--f-body); color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  padding: .8rem .95rem; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FFB3C9; box-shadow: 0 0 0 4px rgba(255, 61, 143, .25); }
.field-error { font-size: .82rem; color: #FFD1DE; min-height: 0; }
.field-error:empty { display: none; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.chips legend { padding: 0; margin-bottom: .55rem; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); font-size: .9rem; color: rgba(255,255,255,.88);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chip:hover span { border-color: #fff; }
.chip input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.chip input:checked + span { transform: scale(1.04); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cform-status { font-size: .95rem; color: rgba(255,255,255,.9); }
.cform-status.is-ok { color: #C9FFE6; }
.cform-status.is-err { color: #FFD1DE; }
.cform.is-sent .cform-foot .btn { opacity: .6; pointer-events: none; }
.js-cform-btn[disabled] { opacity: .65; cursor: progress; }

/* =====================================================================
   About + faces
   ===================================================================== */
.about { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-photo {
  position: relative; margin: 0; max-width: 520px; width: 100%;
  border-radius: 28px; padding: 3px; background: var(--grad);
  box-shadow: 0 40px 90px -30px rgba(255, 61, 143, .45);
  transform: rotate(-2deg); transition: transform .8s var(--ease);
}
.about-photo:hover { transform: rotate(0deg) scale(1.015); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 674 / 842; object-fit: cover; border-radius: 25px; display: block; }
.about-photo figcaption {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem; border-radius: 999px; font-size: .88rem; color: #fff;
  background: rgba(10, 14, 34, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
}
.about-text { display: grid; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.about-text .section-title { margin-bottom: .3rem; }
.about-lede { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.about-text > p:not(.about-lede) { color: var(--mute); }
.about-facts { display: grid; gap: .6rem; margin: .4rem 0 0; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.about-facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; font-size: .95rem; }
.about-facts dt { color: var(--mute); }
.about-facts dd { margin: 0; }
.about-actions { margin-top: .6rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; transform: none; }
}

/* Small face in the hero status line */
.status-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); margin-right: .15rem; }

/* Face beside the contact details */
.me { display: flex; align-items: center; gap: .9rem; }
.me img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.me div { display: grid; gap: .1rem; }
.me b { font-weight: 600; font-size: 1.05rem; }
.me span { color: rgba(255,255,255,.8); font-size: .92rem; }
