/* Pinit Bookkeeping — Pipely structure, Pinit brand */

@font-face {
  font-family: 'Golos Text';
  src: url('fonts/golos-text-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #c8cfd3;
  --paper: #ffffff;
  --soft: #f3f5f4;
  --ink: #0d2c41;
  --blue: #125894;
  --text: #2f4556;
  --muted: #536676;
  --line: #d5dde2;
  --green: #36b768;
  --green-hover: #44c776;
  --mint-glyph: #b6e7c8;

  --tint-mint: #dcf2e3;
  --tint-ice: #dbe8f3;
  --tint-sky: #e5e9f8;
  --tint-sage: #e7f1d5;
  --tint-sand: #f1ede1;

  --edge: 16px;
  --pad: clamp(24px, 3.4vw, 48px);
  --header-h: 72px;
  --r-panel: 14px;
  --r-card: 10px;
  --r-photo: 8px;
  --r-btn: 8px;
  --r-sm: 6px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.has-smoothscroll { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

::selection { background: var(--green); color: var(--ink); }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

.i { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: #ffffff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.4; color: var(--muted);
  white-space: nowrap;
}
.eyebrow-mark { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 2px; background: var(--green); }
.eyebrow-light { color: #d9e5ec; }

.h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h2-sm { font-size: clamp(30px, 2.9vw, 42px); }
.statement {
  font-size: clamp(24px, 2.25vw, 33px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 24em;
}
.statement-wide { max-width: 34em; }

/* ---------- 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: var(--r-btn);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-green:hover { background: var(--green-hover); box-shadow: 0 8px 22px -12px rgba(30, 140, 75, 0.8); }
  .btn-dark:hover { background: var(--blue); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
  .btn-line:hover { background: var(--ink); color: #fff; }
}

/* ---------- canvas + panels ---------- */
.canvas { padding: 0 var(--edge) var(--edge); }
.panel {
  background: var(--paper);
  border-radius: var(--r-panel);
  padding: clamp(56px, 6.5vw, 96px) var(--pad);
  margin-top: var(--edge);
}
.panel-soft { background: var(--soft); }
main { outline: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + var(--edge) * 2); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: var(--edge); left: var(--edge); right: var(--edge);
  z-index: 50;
}
.nav-panel {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  padding: 0 12px 0 24px;
  background: var(--paper);
  border-radius: var(--r-panel);
  transition: box-shadow 0.25s var(--ease-out);
}
.site-header.is-scrolled .nav-panel { box-shadow: 0 12px 30px -18px rgba(13, 44, 65, 0.5); }
.brand { flex: none; display: block; }
.brand img { width: 78px; height: auto; }
.site-menu { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 12px; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }
.menu-actions { display: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  height: 100vh; height: 100svh;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--edge) * 2 + var(--header-h));
  display: flex;
}
.hero-panel {
  position: relative; flex: 1; overflow: hidden;
  border-radius: var(--r-panel);
  background: #1d3a4f;
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-x, 70%) 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 30, 45, 0.9) 0%, rgba(9, 30, 45, 0.86) 34%, rgba(9, 30, 45, 0.78) 46%, rgba(9, 30, 45, 0.44) 60%, rgba(9, 30, 45, 0) 76%),
    linear-gradient(0deg, rgba(9, 30, 45, 0.45) 0%, rgba(9, 30, 45, 0) 36%);
}
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad); }
.hero-title {
  color: #fff;
  font-size: clamp(44px, calc((100vw - 200px) / 15.5), 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero-line { display: block; white-space: nowrap; }
.hero-lede { margin-top: 22px; max-width: 31em; color: #e6eef3; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: #e6eef3; font-size: 15px; }
.proof-badge {
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 17px;
}
.proof-badge .i { width: 16px; height: 16px; color: var(--green); }

/* hero entrance: words rise out of a soft blur, once */
.hero-animate .w {
  display: inline-block;
  animation: word-in 900ms var(--ease-out) both;
  animation-delay: calc(120ms + var(--i) * 55ms);
}
.hero-animate .hero-lede, .hero-animate .hero-actions, .hero-animate .hero-proof, .hero-animate .eyebrow {
  animation: fade-up 800ms var(--ease-out) both;
}
.hero-animate .eyebrow { animation-delay: 60ms; }
.hero-animate .hero-lede { animation-delay: 520ms; }
.hero-animate .hero-actions { animation-delay: 620ms; }
.hero-animate .hero-proof { animation-delay: 720ms; }
.hero-animate .hero-media img { animation: settle 1600ms var(--ease-out) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }

/* ---------- intro + stats ---------- */
.intro-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.marquee {
  overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: flex; align-items: center; gap: 12px; padding-right: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.marquee-list li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 176px; padding: 22px 24px 24px;
  background: var(--paper); border-radius: var(--r-card);
}
.stat-label { text-wrap: balance; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1.45; }
.stat-value {
  display: flex; align-items: baseline;
  font-size: clamp(40px, 3.6vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-star { width: 0.62em; height: 0.62em; margin-left: 4px; color: var(--green); align-self: center; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.about-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.about .h2 { max-width: 9.5em; }
.about-foot > p { max-width: 34em; color: var(--text); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.team li { display: flex; flex-direction: column; }
.team-name { color: var(--ink); font-weight: 600; font-size: 16px; }
.team-role { color: var(--muted); font-size: 14px; }
.about-photo { border-radius: var(--r-photo); overflow: hidden; align-self: stretch; min-height: 420px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }

/* ---------- services ---------- */
.svc-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.svc-card {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px);
  padding: 12px clamp(24px, 3vw, 36px) 12px 12px;
  border-radius: var(--r-card);
  background: var(--tint-mint);
}
.tint-mint { background: var(--tint-mint); }
.tint-ice { background: var(--tint-ice); }
.tint-sky { background: var(--tint-sky); }
.tint-sage { background: var(--tint-sage); }
.tint-sand { background: var(--tint-sand); }
.svc-photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 3; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 20px 0 12px; }
.svc-title { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.svc-text { margin-top: 14px; max-width: 32em; color: var(--text); font-size: 16px; }
.svc-points { margin-top: 20px; display: grid; gap: 8px; }
.svc-points li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }
.svc-points li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px; background: var(--blue); }

@media (min-width: 1000px) and (min-height: 700px) {
  .svc-card { position: sticky; top: calc(var(--header-h) + var(--edge) * 3); box-shadow: 0 -18px 40px -30px rgba(13, 44, 65, 0.35); }
}

/* ---------- reviews ---------- */
.reviews {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 1.25fr);
  gap: 16px; margin-top: clamp(80px, 9vw, 140px); align-items: stretch;
}
.reviews-intro { display: flex; flex-direction: column; align-items: flex-start; padding-right: 16px; }
.reviews-text { margin: 16px 0 28px; color: var(--text); max-width: 22em; }
.rev-controls { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 32px; }
.sq-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--r-sm); background: var(--soft); color: var(--ink); cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.sq-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .sq-btn:hover { background: var(--tint-mint); } }
.rev-count { margin-left: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.reviews-photo { display: flex; flex-direction: column; gap: 8px; }
.reviews-photo img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--r-photo); aspect-ratio: 3 / 4; }
.client-chip {
  display: grid; place-items: center; min-height: 60px; padding: 8px 12px;
  background: var(--soft); border-radius: var(--r-photo);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-align: center;
}
.review-stage { display: grid; background: var(--tint-ice); border-radius: var(--r-card); }
.review {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding: clamp(24px, 2.6vw, 36px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 320ms;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.review blockquote p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; color: var(--ink); letter-spacing: -0.01em; }
.review-who { display: flex; align-items: center; gap: 14px; }
.initials {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
}
.who-name { display: block; color: var(--ink); font-weight: 600; }
.who-role { display: block; color: var(--muted); font-size: 14px; }

/* ---------- process (accordion) ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { font-size: inherit; font-weight: inherit; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; min-height: 64px; padding: 16px 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: color 200ms ease;
}
.acc-item.is-open .acc-trigger { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .acc-trigger:hover { color: var(--ink); } }
.acc-icon { color: var(--ink); transition: transform 260ms var(--ease-out); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 48px 24px 0; color: var(--text); max-width: 38em; }
.process-photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 3; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- plans ---------- */
.plans-head .h2 { max-width: 12em; }
.plan-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.plan {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 24px 28px; border-radius: var(--r-card);
}
.plan-tag {
  align-self: flex-start; padding: 4px 10px; border-radius: var(--r-sm); background: var(--paper);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.plan-title { font-size: 22px; line-height: 1.18; letter-spacing: -0.02em; }
.plan-close { font-size: 15px; color: var(--text); }
.plan-list { display: grid; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(13, 44, 65, 0.14); }
.plan-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.plan-list li::before {
  content: ''; flex: none; width: 16px; height: 16px; margin-top: 2px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-cta { background: var(--ink); color: #d6e2ea; }
.plan-cta .plan-title { color: #fff; }
.plan-cta .plan-close { color: #c9d7e1; }
.plan-cta .btn { margin-top: auto; align-self: stretch; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq .h2 { max-width: 8em; }
.faq-note { margin-top: 22px; color: var(--text); max-width: 22em; }
.acc-faq .acc-trigger { text-transform: none; letter-spacing: -0.005em; font-size: 18px; font-weight: 600; color: var(--ink); min-height: 72px; }
.acc-faq .acc-item:not(.is-open) .acc-trigger { color: var(--text); }

/* ---------- final cta + form ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); background: var(--tint-mint); align-items: start; }
.cta .h2 { max-width: 9em; }
.cta-text { margin-top: 20px; max-width: 26em; color: var(--text); font-size: 18px; }
.cta-contacts { display: grid; gap: 10px; margin-top: 36px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: 17px;
}
.contact-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .contact-link:hover { text-decoration: underline; } }

.lead-form { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 2.8vw, 36px); display: grid; gap: 16px; }
.form-title { font-size: 22px; letter-spacing: -0.02em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #8a9aa6; border-radius: var(--r-sm); background: #fff; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230d2c41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 88, 148, 0.22); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-err { font-size: 14px; color: #b3261e; min-height: 0; }
.field-err:empty { display: none; }
.btn-submit { width: 100%; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; color: var(--ink); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c4d3dd; padding-bottom: 28px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 96px; height: auto; }
.footer-about p { margin-top: 18px; max-width: 26em; font-size: 15px; }
.footer-nav ul { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 48px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--mint-glyph); } }
.footer-line { margin-top: 40px; font-size: 14.5px; color: #c4d3dd; }
.footer-line a { color: #fff; }
.footer-line .sep { margin: 0 10px; color: #6f8899; }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); text-align: center; font-size: 13.5px; color: #a9bccb; }


/* ---------- accessibility page ---------- */
.a11y-hero { margin-top: calc(var(--edge) * 2 + var(--header-h)); }
.a11y-hero .h2 { font-size: clamp(38px, 5vw, 68px); }
.a11y-lede { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--text); }
.a11y-updated { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.a11y-body { display: grid; gap: 48px; }
.a11y-block { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 16px 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.a11y-block:first-child { padding-top: 0; border-top: 0; }
.a11y-block h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; grid-row: span 3; }
.a11y-block > p, .a11y-block > ul { grid-column: 2; max-width: 40em; }
.a11y-list { display: grid; gap: 10px; }
.a11y-list li { display: flex; gap: 12px; }
.a11y-list li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 2px; background: var(--blue); }
.a11y-block .cta-contacts { margin-top: 8px; }
@media (max-width: 760px) {
  .a11y-block { grid-template-columns: 1fr; }
  .a11y-block h2 { grid-row: auto; }
  .a11y-block > p, .a11y-block > ul { grid-column: 1; }
  .a11y-lede { font-size: 17px; }
}

/* ---------- reveal (content visible by default; JS opts in) ---------- */
.pre-reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); }
.pre-reveal.is-visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms), filter 700ms var(--ease-out) var(--d, 0ms);
}

/* ---------- responsive ---------- */
@media (max-height: 820px) and (min-width: 761px) {
  .hero-title { font-size: clamp(42px, min(calc((100vw - 200px) / 15.5), 9.6vh), 84px); }
  .hero-lede { margin-top: 16px; font-size: 17px; }
  .hero-actions { margin-top: 24px; }
  .hero-proof { margin-top: 24px; }
}
@media (max-height: 640px) and (min-width: 761px) { .hero-proof { display: none; } }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .reviews-photo { display: none; }
}

@media (max-width: 1080px) {
  .nav-panel { justify-content: space-between; gap: 12px; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-grid; place-items: center; align-content: center; gap: 6px;
    width: 48px; height: 48px; border: 0; border-radius: var(--r-sm); background: var(--soft); cursor: pointer;
  }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 220ms var(--ease-out); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 20px 20px; background: var(--paper); border-radius: var(--r-panel);
    box-shadow: 0 24px 40px -24px rgba(13, 44, 65, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 200ms;
  }
  .site-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: flex; width: 100%; min-height: 54px; font-size: 14px; }
  .nav-links a::after { display: none; }
  .menu-actions { display: grid; gap: 10px; }
  .menu-actions .btn { width: 100%; }
  .site-menu .btn-green { color: var(--ink); }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 30, 45, 0.93) 0%, rgba(9, 30, 45, 0.88) 46%, rgba(9, 30, 45, 0.66) 58%, rgba(9, 30, 45, 0.2) 72%, rgba(9, 30, 45, 0) 82%),
      linear-gradient(0deg, rgba(9, 30, 45, 0.5) 0%, rgba(9, 30, 45, 0) 40%);
  }
  .hero-copy { max-width: 640px; }
  .hero-title { font-size: clamp(40px, 6.4vw, 60px); }
  .intro-top { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .process-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq .h2 { max-width: 12em; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .lead-form, .field { min-width: 0; }
  .cta .h2 { max-width: 12em; }
  .svc-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --edge: 10px; --pad: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .nav-panel { padding: 0 8px 0 16px; }
  .brand img { width: 66px; }
  .header-cta { display: none; }

  .hero-panel { align-items: flex-end; }
  .hero-media img { object-position: 50% 0%; }
  .hero-scrim {
    background: linear-gradient(0deg, rgba(9, 30, 45, 0.96) 0%, rgba(9, 30, 45, 0.92) 42%, rgba(9, 30, 45, 0.82) 52%, rgba(9, 30, 45, 0.4) 62%, rgba(9, 30, 45, 0) 72%);
  }
  .hero-copy { padding: 0 20px 24px; }
  .hero-line { display: inline; white-space: normal; }
  .hero-title { font-size: clamp(36px, 10.6vw, 46px); }
  .hero-lede { font-size: 16px; margin-top: 14px; }
  .lede-extra { display: none; }
  .hero-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-proof { display: none; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.12em; }

  .btn { width: 100%; }
  .panel { padding: 52px 20px; }
  .stats { gap: 10px; }
  .stat { min-height: 140px; padding: 18px; gap: 24px; }
  .stat-label { font-size: 11.5px; letter-spacing: 0.1em; }
  .team { grid-template-columns: 1fr 1fr; }
  .svc-card { grid-template-columns: 1fr; padding: 10px 10px 20px; }
  .svc-body { padding: 8px 10px 0; }
  .svc-stack { gap: 16px; }
  .reviews { grid-template-columns: 1fr; margin-top: 64px; }
  .reviews-intro { padding-right: 0; }
  .rev-controls { order: 3; padding-top: 0; margin-top: 0; }
  .reviews-intro .btn { order: 2; }
  .reviews-intro { display: grid; }
  .rev-controls { margin-top: 20px; }
  .plan-row { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .acc-trigger { font-size: 13px; }
  .acc-faq .acc-trigger { font-size: 16.5px; }
  .acc-inner p { padding-right: 8px; }
  .footer-nav ul { grid-template-columns: repeat(2, auto); gap: 0 32px; }
  .footer-line .sep { display: none; }
  .footer-line { display: grid; gap: 4px; }
}

@media (min-width: 761px) and (max-width: 1080px) and (max-aspect-ratio: 4/5) {
  .hero-panel { align-items: flex-end; }
  .hero-media img { object-position: 50% 0%; }
  .hero-scrim {
    background: linear-gradient(0deg, rgba(9, 30, 45, 0.96) 0%, rgba(9, 30, 45, 0.9) 40%, rgba(9, 30, 45, 0.8) 48%, rgba(9, 30, 45, 0.32) 57%, rgba(9, 30, 45, 0) 65%);
  }
  .hero-copy { padding-bottom: 48px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero-lede { display: none; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; gap: 18px; }
}

@media (max-width: 420px) {
  .btn { padding: 0 14px; font-size: 12px; letter-spacing: 0.08em; }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .eyebrow { font-size: 11px; letter-spacing: 0.05em; }
  .contact-link { font-size: 14px; gap: 10px; overflow-wrap: anywhere; }
  .contact-ic { width: 36px; height: 36px; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list { flex-wrap: wrap; row-gap: 8px; }
  .acc-panel, .review, .site-menu { transition: none; }
}
