/* Artur Avtukhov — software developer website.
   Design tokens first; the site always uses its dark theme. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0e11;
  --bg-soft: #13161a;
  --surface: #15181d;
  --ink: #f0efea;
  --ink-2: #aab0b8;
  --ink-3: #8a909a;
  --line: #23272e;
  --line-strong: #343a43;
  --accent: #c5ef5b;
  --accent-text: #c5ef5b;
  --on-accent: #101216;
  --btn-bg: #c5ef5b;
  --btn-ink: #101216;
  --focus: #c5ef5b;
  --night: #111419;
  --night-2: #191d23;
  --night-line: #2c313a;
  --night-ink: #eef0f2;
  --night-mute: #9aa1ab;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-lg: 0 30px 60px -24px rgb(0 0 0 / 75%);
  --radius-lg: 20px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --header: 72px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101216' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgb(18 20 24 / 50%); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgb(197 239 91 / 70%); }
.btn-ghost-dark { border-color: var(--night-line); color: var(--night-ink); }
.btn-ghost-dark:hover { border-color: var(--night-mute); background: var(--night-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--night); color: var(--accent); box-shadow: inset 0 0 0 1px var(--night-line);
}
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font: 800 16px/1.2 var(--display); letter-spacing: -0.01em; }
.brand-text span { font: 500 12px/1.3 var(--mono); color: var(--ink-3); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--surface); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; inset: var(--header) 0 auto;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-cta { margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; padding: 72px 0 64px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 40%, #000 15%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font: 500 13px/1.2 var(--mono); color: var(--ink-2);
}
.pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34b85a; }
.pulse::after { content: ""; position: absolute; inset: -4px; border: 2px solid #34b85a; border-radius: 50%; opacity: 0; animation: pulse 2.2s ease-out infinite; }
.hero h1 { margin-top: 26px; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.hl { padding: 0 .06em; color: var(--accent); }
.lead { max-width: 34em; margin-top: 24px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before, .ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) var(--check) center / 11px no-repeat;
}

/* Hero illustration: a browser, a phone and a deploy terminal */
.hero-visual { position: relative; height: 500px; }
.glow {
  position: absolute; top: 8%; right: 4%; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(197 239 91 / 55%), transparent 64%); filter: blur(30px); opacity: .7;
}
.mock { position: absolute; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.mock-bar i:nth-child(2) { background: #ffbd2e; }
.mock-bar i:nth-child(3) { background: #28c941; }
.mock-bar span {
  flex: 1; max-width: 240px; margin-left: 12px; padding: 0 10px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: 500 12px/22px var(--mono); color: var(--ink-3); white-space: nowrap;
}
.bar { display: block; width: var(--w, 60%); height: 9px; border-radius: 6px; background: var(--bg-soft); }
.bar.lg { height: 13px; background: var(--line-strong); }

.browser { top: 0; left: 6%; right: 0; height: 320px; border: 1px solid var(--line); background: var(--surface); }
.dash { display: grid; grid-template-columns: 56px 1fr; height: calc(100% - 40px); }
.dash-nav { display: grid; align-content: start; gap: 12px; padding: 16px 13px; border-right: 1px solid var(--line); }
.dash-nav b { height: 28px; border-radius: 8px; background: var(--bg-soft); }
.dash-nav b.on { background: var(--ink); }
.dash-main { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-width: 0; padding: 18px 20px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--mono);
}
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpis div { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; min-height: 0; padding: 12px; border-radius: 12px; background: var(--bg-soft); }
.dash-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--ink); transform-origin: bottom; }
.dash-chart span:nth-last-child(-n+3) { background: var(--accent); }

.phone { z-index: 1; right: 2%; bottom: 0; width: 176px; height: 356px; padding: 10px; border: 1px solid var(--night-line); border-radius: 32px; background: var(--night); }
.phone-notch { position: absolute; z-index: 1; top: 18px; left: 50%; width: 56px; height: 16px; border-radius: 10px; background: var(--night); translate: -50% 0; }
.phone-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 32px 14px 14px; border-radius: 24px; background: var(--surface); }
.phone-card { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.phone-card .bar { background: var(--line-strong); }
.phone-card.accent { background: var(--accent); }
.phone-card.accent .bar { background: rgb(16 18 22 / 22%); }
.phone-tabs { display: flex; justify-content: space-around; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.phone-tabs i { width: 18px; height: 18px; border-radius: 6px; background: var(--bg-soft); }
.phone-tabs i.on { background: var(--ink); }

.term { z-index: 2; left: 0; bottom: 34px; width: 64%; border: 1px solid var(--night-line); background: var(--night); }
.term .mock-bar { border-bottom-color: var(--night-line); background: var(--night-2); }
.term .mock-bar span { border: 0; background: none; color: var(--night-mute); }
.term-body { padding: 16px 18px 18px; color: var(--night-ink); font: 500 13px/1.75 var(--mono); white-space: pre; overflow: hidden; }
.term-line { display: block; }
.t-p { color: var(--accent); }
.t-ok { color: #6fdc8c; }
.t-dim { color: var(--night-mute); }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .browser { animation: float 9s ease-in-out infinite; }
  .phone { animation: float 8s ease-in-out -2s infinite; }
  .term { animation: float 10s ease-in-out -4s infinite; }
  .dash-chart span { animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms + 300ms); }
  .term-line { opacity: 0; animation: appear .01s linear forwards; }
  .term-line:nth-child(1) { animation-delay: .5s; }
  .term-line:nth-child(2) { animation-delay: 1.1s; }
  .term-line:nth-child(3) { animation-delay: 1.6s; }
  .term-line:nth-child(4) { animation-delay: 2.3s; }
  .term-line:nth-child(5) { animation-delay: 3s; }
  .caret { animation: blink 1s steps(1) infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes appear { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { width: 100%; max-width: 620px; height: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 48px; }
  .hero-visual { height: 380px; }
  .browser { left: 0; height: 250px; }
  .dash { grid-template-columns: 44px 1fr; }
  .dash-nav { padding: 14px 10px; }
  .dash-main { padding: 14px; gap: 10px; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis div:nth-child(3) { display: none; }
  .phone { width: 136px; height: 280px; padding: 8px; border-radius: 26px; }
  .phone-screen { gap: 8px; padding: 28px 10px 10px; border-radius: 19px; }
  .phone-notch { top: 14px; width: 44px; height: 13px; }
  .term { bottom: 16px; width: 80%; }
  .term-body { padding: 12px 14px 14px; font-size: 11.5px; }
}

/* Technology ticker */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { display: inline-flex; align-items: center; gap: 22px; padding: 18px 0 18px 22px; color: var(--ink-2); font: 500 15px/1 var(--mono); white-space: nowrap; }
.ticker li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-text); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: marquee 50s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { width: auto; }
  .ticker ul { flex-wrap: wrap; justify-content: center; padding: 6px 0; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker li { padding: 10px 11px; }
}

/* Sections */
.section { padding: 112px 0; }
.section-soft { border-block: 1px solid var(--line); background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: 0;
}
.section-head h2 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.03em; }
.section-head p:not(.eyebrow) { max-width: 40em; margin-top: 18px; color: var(--ink-2); font-size: 18px; }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Cards */
.card {
  position: relative; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: 500 12.5px/1 var(--mono); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.service { display: flex; flex-direction: column; gap: 16px; min-height: 400px; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.service-index { color: var(--ink-3); font: 600 13px/1 var(--mono); }
.service h3 { font-size: clamp(24px, 2.4vw, 30px); }
.service > p { max-width: 34em; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks li::before { margin-top: 3px; }
.service-dark {
  border-color: var(--night-line); color: var(--night-ink);
  background: radial-gradient(120% 90% at 100% 0%, rgb(197 239 91 / 16%), transparent 55%), var(--night);
}
.service-dark:hover { border-color: var(--night-mute); }
.service-dark > p, .service-dark .service-index { color: var(--night-mute); }
.service-dark .tags span { border-color: var(--night-line); color: var(--night-mute); }
@media (max-width: 900px) {
  .span-7, .span-5 { grid-column: 1 / -1; }
  .service { min-height: 0; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principle .icon { width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--night); color: var(--accent); box-shadow: inset 0 0 0 1px var(--night-line); }
.principle .icon svg { width: 22px; height: 22px; }
.principle h3 { font-size: 20px; letter-spacing: -0.01em; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step-num { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
.step-num b {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg);
  font: 800 15px/1 var(--display);
}
.step:last-child .step-num b { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.step-num::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step h3 { font-size: 22px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step-num { margin-bottom: 28px; } }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { display: flex; flex-direction: column; padding: 12px 12px 26px; }
.work-visual {
  display: grid; place-items: center; height: 200px; margin-bottom: 22px; overflow: hidden; border-radius: 14px; color: var(--night-ink);
  background: radial-gradient(90% 80% at 85% 0%, rgb(197 239 91 / 18%), transparent 60%), var(--night);
}
.work-visual svg { width: 82%; height: auto; }
.work-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 0 14px; }
.work-kind { color: var(--accent-text); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.work h3 { font-size: 22px; }
.work-body > p:not(.work-kind):not(.tags) { color: var(--ink-2); font-size: 15.5px; }
.work-body .tags { padding-top: 6px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header) + 32px); margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-list details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink); font: 400 22px/1 var(--font);
  transition: transform .2s ease, background-color .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq-list details p { max-width: 40em; padding: 0 22px 22px; color: var(--ink-2); }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-grid .section-head { position: static; }
}

/* Contact */
.contact { padding-bottom: 112px; }
.contact-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center;
  overflow: hidden; padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--night-line); border-radius: 28px; color: var(--night-ink);
  background: radial-gradient(70% 90% at 100% 0%, rgb(197 239 91 / 20%), transparent 60%), var(--night);
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 10%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 90% 10%, #000, transparent 70%);
}
.contact-copy, .contact-card { position: relative; }
.eyebrow.on-dark { color: var(--night-mute); }
.eyebrow.on-dark span { background: var(--accent); color: var(--on-accent); }
.contact h2 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.03em; }
.contact h2 em { color: var(--accent); font-style: normal; }
.contact-copy > p:not(.eyebrow) { max-width: 32em; margin-top: 18px; color: var(--night-mute); font-size: 18px; }
.contact-card { padding: 6px 24px; border: 1px solid var(--night-line); border-radius: 20px; background: rgb(255 255 255 / 4%); }
.contact-card dl { margin: 0; }
.contact-card div { display: grid; gap: 6px; padding: 16px 0; }
.contact-card div + div { border-top: 1px solid var(--night-line); }
.contact-card dt { color: var(--night-mute); font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.contact-card dd { margin: 0; font-size: 16px; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .contact-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .contact { padding-bottom: 80px; } }

/* Footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 28em; margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.footer-col h2 { margin-bottom: 14px; color: var(--ink-3); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.footer-bottom a { color: inherit; font-family: var(--mono); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Scroll reveal (enabled by the inline script that adds .js) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal {
    opacity: 0; translate: 0 18px;
    transition: opacity .7s ease var(--delay, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s),
      transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .js .reveal.in { opacity: 1; translate: none; }
  .bento > :nth-child(2), .principles > :nth-child(2), .steps > :nth-child(2), .work-grid > :nth-child(2) { --delay: .08s; }
  .bento > :nth-child(3), .principles > :nth-child(3), .steps > :nth-child(3), .work-grid > :nth-child(3) { --delay: .16s; }
  .bento > :nth-child(4), .principles > :nth-child(4), .steps > :nth-child(4) { --delay: .24s; }
}
/* Legal pages */
.legal-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-top: 18px; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.03em; }
.legal-hero p:not(.eyebrow) { max-width: 40em; margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.legal-updated { display: inline-block; margin-top: 18px; color: var(--ink-3); font: 500 13px/1 var(--mono); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding: 48px 0 112px; }
.legal-layout.single { grid-template-columns: minmax(0, 860px); }
.legal-nav { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 2px; }
.legal-nav span { margin-bottom: 12px; color: var(--ink-3); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.legal-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.legal-docs { display: grid; gap: 20px; min-width: 0; }
.legal-doc { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.legal-num { color: var(--accent-text); font: 600 12px/1 var(--mono); letter-spacing: .08em; }
.legal-doc h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); }
.legal-doc .legal-intro { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.legal-doc h3 { margin-top: 30px; font: 700 18px/1.3 var(--font); letter-spacing: 0; }
.legal-doc p, .legal-doc ul { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-doc ul { margin-bottom: 0; padding-left: 20px; }
.legal-doc li + li { margin-top: 8px; }
.legal-doc strong { color: var(--ink); }
.legal-doc a { color: var(--ink); text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-doc .legal-ref { margin-top: 24px; color: var(--ink-3); font-size: 14px; }
.legal-callout { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.legal-callout b { flex: none; font: 800 34px/1 var(--display); }
.legal-callout p { margin: 0; }
.legal-business { display: grid; margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.legal-business div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 18px; }
.legal-business div + div { border-top: 1px solid var(--line); }
.legal-business dt { color: var(--ink-3); font: 600 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.legal-business dd { margin: 0; color: var(--ink); }
.legal-doc .legal-back { display: inline-flex; margin-top: 26px; font-weight: 600; text-decoration: none; }
.legal-doc .legal-back:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav span { width: 100%; margin-bottom: 4px; }
  .legal-nav a { border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
}
@media (max-width: 560px) {
  .legal-hero { padding: 48px 0 32px; }
  .legal-business div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
