/* ==========================================================================
   Grevna — real estate media buying & lead generation, Cyprus
   Design system: "Blueprint" — the architectural drawing set.
   Drafting paper ground, blueprint ink, cyan linework, signal orange.
   Structure reads as numbered sheets because a drawing set genuinely is
   a sequence. Mobile-first. Motion respects prefers-reduced-motion.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
  --ink: #0E1A2B;
  --ink-2: #16283E;
  --paper: #EEF1F4;
  --paper-2: #F7F9FA;
  --white: #FFFFFF;

  --line: #3E7CA8;
  --line-deep: #2A5F85;
  --rule: rgba(62, 124, 168, 0.28);
  --rule-soft: rgba(62, 124, 168, 0.16);

  --signal: #E8622A;
  --signal-soft: rgba(232, 98, 42, 0.12);

  --text: #0E1A2B;
  --body: #3B4A5C;
  --soft: #7C8B9C;
  --border: #D4DCE3;

  --font-head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --radius: 2px;
  --radius-md: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;

  --grid-size: 56px;
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 0.45em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.4vw, 74px); }
h2 { font-size: clamp(28px, 4.2vw, 46px); }
h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }

/* Section head, set like a drawing sheet title block */
.section-head { max-width: 760px; margin: 0 0 clamp(34px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 16.5px; line-height: 1.7; max-width: 62ch; margin-bottom: 0; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Eyebrow = drafting annotation with a leader line */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line);
  margin: 0 0 18px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 180px;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { display: none; }

.bg-mist { background: rgba(247, 249, 250, 0.74); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bg-lime { background: rgba(255, 255, 255, 0.74); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.bg-forest { background: var(--ink); color: var(--paper); }
.bg-forest h2, .bg-forest h3, .bg-forest h4 { color: var(--white); }
.bg-forest p { color: #A9BCCE; }
.bg-forest .eyebrow { color: #6FA8CE; }
.bg-forest .eyebrow::after { background: rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* On the ink-dark contact section the outline button inverts */
.bg-forest .btn-dark { color: var(--paper); border-color: rgba(255, 255, 255, 0.35); }
.bg-forest .btn-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------------------------------------------------------------------------
   5. Nav — the drawing sheet's title bar
   ------------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 241, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--ink);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 21px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--ink);
}
.logo .mark { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--signal); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 20px; font-size: 13.5px; }
.nav-login {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius); flex: none;
  color: var(--body); border: 1.5px solid var(--border);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-login:hover { color: var(--ink); border-color: var(--ink); }
.nav-login svg { width: 18px; height: 18px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 22px; cursor: pointer; line-height: 1; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 22px 24px; gap: 18px;
    transform: translateY(-135%);
    transition: transform var(--dur-med) var(--ease);
    border-bottom: 1.5px solid var(--ink);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------------------
   6. Hero — drafting paper with a measured grid
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 76px);
}
/* The hero no longer draws its own grid — the site-wide one behind every
   section handles it. This is just a soft depth vignette. */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 12% 0%, rgba(62, 124, 168, 0.09), transparent 68%);
}
.hero-inner { position: relative; }
.hero h1 { color: var(--ink); margin-bottom: 0.32em; max-width: 15ch; }
/* The accent phrase gets an underline that sweeps in, like a drawn dimension.
   Painted as a background gradient (not an absolute ::after) so it wraps
   correctly across lines on narrow screens instead of forcing overflow. */
.hero h1 .accent-word {
  color: var(--line);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 4px;
  transition: background-size 0.85s var(--ease) 0.3s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero h1 .accent-word.drawn { background-size: 100% 4px; }
.hero .lede {
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.72;
  color: var(--body);
  max-width: 58ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: clamp(38px, 6vw, 64px); }

/* Stat row set as a dimension string */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.hero-stats > div {
  padding: 22px 20px 20px;
  border-right: 1px dashed var(--rule);
  position: relative;
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats > div::before {
  content: "";
  position: absolute; left: 20px; top: 0;
  height: 3px; width: 0; background: var(--signal);
  transition: width 0.9s var(--ease);
}
.hero-stats.is-visible > div::before { width: 30px; }
.hero-stats.is-visible > div:nth-child(2)::before { transition-delay: 0.12s; }
.hero-stats.is-visible > div:nth-child(3)::before { transition-delay: 0.24s; }
.hero-stats .num {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stats .label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--soft); margin-top: 10px; line-height: 1.5;
}
@media (max-width: 620px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { border-right: 0; border-bottom: 1px dashed var(--rule); }
  .hero-stats > div:last-child { border-bottom: 0; }
}


/* ---------------------------------------------------------------------------
   6b. Site-wide blueprint grid — the drawing surface everything sits on.
   Fixed to the viewport, drifting one full cell so the loop is seamless, with
   a slow travelling light that makes the sheet feel alive rather than printed.
   ------------------------------------------------------------------------ */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  /* Explicit viewport sizing — more reliable than relying on inset:0 to
     stretch. Deliberately NOT dvh: the dynamic viewport changes every time the
     mobile URL bar hides or shows, which resizes this layer mid-scroll and made
     the background visibly jump. vh is the large viewport and stays put. */
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  /* JS nudges this as you scroll, so the sheet shifts under the content */
  background-position: 0 calc(var(--grid-shift, 0px));
}
/* Colour behind the grid. Two soft fields — cyan and signal orange — that
   slide in opposite directions as you scroll, so the sheet is never flat. */
.grid-bg::after {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at 28% 32%, rgba(62, 124, 168, 0.20), transparent 46%),
    radial-gradient(circle at 74% 64%, rgba(232, 98, 42, 0.13), transparent 44%),
    radial-gradient(circle at 52% 88%, rgba(42, 95, 133, 0.14), transparent 48%);
  transform: translate3d(0, var(--wash-shift, 0px), 0);
  will-change: transform;
}
/* Canvas holding the traces that run along the grid lines. */
.grid-canvas { position: absolute; inset: 0; display: block; }

/* Content sits above the drawing surface. The nav keeps its own sticky
   positioning — do not fold it into this rule, it will stop sticking. */
main, .footer { position: relative; z-index: 1; }
.nav { z-index: 100; }

/* Light sections go translucent so the grid reads straight through them;
   the ink sections stay solid and act as the anchors. */
.hero { background: transparent; }

/* ---------------------------------------------------------------------------
   7. Service strip
   ------------------------------------------------------------------------ */
.logo-strip { padding: 26px 0; background: rgba(255, 255, 255, 0.78); border-bottom: 1px solid var(--border); }
.logo-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.logo-strip .strip-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--soft); white-space: nowrap;
}
.logo-strip .strip-items {
  display: flex; gap: clamp(20px, 3.4vw, 40px); flex-wrap: wrap;
  color: var(--ink); font-weight: 700; font-size: 14.5px; letter-spacing: -0.015em;
}

/* ---------------------------------------------------------------------------
   8. Sample lead — an annotated detail drawing
   ------------------------------------------------------------------------ */
.sample { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.sample-copy .btn { margin-top: 6px; }
.lead-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  padding: 26px 26px 22px;
  position: relative;
}
.lead-card::before {
  content: "";
  position: absolute; top: -1.5px; left: -1.5px;
  width: 34px; height: 34px;
  border-top: 4px solid var(--signal);
  border-left: 4px solid var(--signal);
}
.lead-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.lead-card-head h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--line); margin: 0;
}
.lead-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal); white-space: nowrap;
}
.lead-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.lead-fields { margin: 14px 0 0; display: flex; flex-direction: column; }
.lead-fields > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-bottom: 1px dashed var(--rule);
  font-size: 14.5px;
}
.lead-fields > div:last-child { border-bottom: none; }
.lead-fields dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.lead-fields dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; letter-spacing: -0.015em; }
.lead-fields dd.ok { color: var(--line-deep); }
.lead-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--soft); margin: 16px 0 0; }
@media (max-width: 880px) { .sample { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   9. Steps — numbered because a process genuinely is a sequence
   ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); background: var(--white); }
.step {
  padding: 28px 26px 26px;
  border-right: 1px dashed var(--rule);
  position: relative;
  transition: background var(--dur-fast) var(--ease);
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--paper-2); }
.step .step-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--signal); margin-bottom: 16px; display: block;
}
.step h3 { margin-bottom: 9px; }
.step p { font-size: 14.5px; line-height: 1.65; margin-bottom: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px dashed var(--rule); }
  .step:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------------------
   10. Lead-type cards — drawing sheets
   ------------------------------------------------------------------------ */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card {
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 22px 20px 20px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.type-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--line); }
.type-card .tag {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px;
}
.type-card h3 { font-size: 17px; margin-bottom: 8px; }
.type-card p { font-size: 13.5px; line-height: 1.62; margin-bottom: 0; }
@media (max-width: 940px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   11. Qualification checklist — spec panel on ink
   ------------------------------------------------------------------------ */
.checklist-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--ink); color: var(--paper);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
}
.checklist-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 165, 205, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 165, 205, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 72%);
}
.checklist-panel > * { position: relative; }
.checklist-panel h2 { color: var(--white); }
.checklist-panel p { color: #A9BCCE; }
.checklist-panel .eyebrow { color: #6FA8CE; }
.checklist-panel .eyebrow::after { background: rgba(255, 255, 255, 0.2); }
.checklist { display: flex; flex-direction: column; gap: 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1.55;
  padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .check {
  width: 18px; height: 18px; flex: none; margin-top: 2px;
  color: var(--signal); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 880px) { .checklist-panel { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   12. Comparison table
   ------------------------------------------------------------------------ */
.compare-wrap { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--white); }
.compare-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td {
  padding: 15px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px dashed var(--rule);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
  border-bottom: 1.5px solid var(--ink);
}
.compare-table thead th.col-grevna { color: var(--signal); }
.compare-table tbody th[scope="row"] {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--soft); width: 24%; text-transform: uppercase;
}
.compare-table tbody td { color: var(--body); }
.compare-table td.col-grevna {
  background: var(--paper-2);
  font-weight: 700; color: var(--ink);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
}

/* ---------------------------------------------------------------------------
   13. Numbers — research figures
   ------------------------------------------------------------------------ */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.stat { padding: 30px 26px; border-right: 1px dashed var(--rule); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before {
  content: ""; position: absolute; left: 26px; top: 0;
  height: 3px; width: 0; background: var(--signal);
  transition: width 0.9s var(--ease);
}
.stat.is-visible::before { width: 30px; }
.stat .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 66px); line-height: 1; letter-spacing: -0.05em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 14.5px; color: var(--body); margin-top: 14px; line-height: 1.55; max-width: 30ch; }
.stats-note {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.7;
  color: var(--soft); margin: 26px 0 0; max-width: 78ch;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px dashed var(--rule); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------ */
#faq {
  background: linear-gradient(
    180deg,
    rgba(238, 241, 244, 0) 0%,
    rgba(238, 241, 244, 0.92) 7%,
    rgba(238, 241, 244, 0.92) 93%,
    rgba(238, 241, 244, 0) 100%
  );
}
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--ink);
  letter-spacing: -0.02em;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0;
  transition: color var(--dur-fast) var(--ease);
}
.faq-item summary:hover { color: var(--line-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; font-weight: 400;
  color: var(--signal); flex: none; line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; max-width: 68ch; }

/* ---------------------------------------------------------------------------
   15. Contact / form
   ------------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info h2 { color: var(--white); }
.contact-info .item {
  display: flex; gap: 13px; margin-top: 16px; font-size: 15px;
  color: #A9BCCE; align-items: flex-start; line-height: 1.6;
}
.contact-info .item svg { flex: none; margin-top: 3px; color: #6FA8CE; }
.form-card { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(24px, 3.4vw, 34px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-family: var(--font-head);
  font-size: 15px; font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--paper-2);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237C8B9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px 7px;
}
.field textarea { height: auto; min-height: 112px; padding: 12px 13px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9EACB9; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background-color: var(--white);
}

/* Phone: flag + dial code and number share one field */
.phone-field {
  display: flex; align-items: center; height: 46px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background-color: var(--paper-2);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.phone-field:focus-within { border-color: var(--ink); background-color: var(--white); }
.phone-country {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 100%; padding: 0 11px 0 13px;
  border-right: 1.5px solid var(--border); cursor: pointer; flex: none;
}
.phone-flag { font-size: 17px; line-height: 1; }
.phone-dial { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.phone-chev { width: 10px; height: 6px; color: var(--soft); flex: none; }
.field .phone-field select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; background: none;
}
.field .phone-field input {
  flex: 1 1 auto; min-width: 0; height: 100%;
  border: 0; background-color: transparent; padding: 0 13px;
}
.field .phone-field input:focus { border: 0; background-color: transparent; }

.form-card .form-note { font-family: var(--font-mono); font-size: 11px; line-height: 1.65; color: var(--soft); margin-top: 14px; }
.form-status {
  display: none; margin: 14px 0 0; padding: 13px 15px;
  border-radius: var(--radius); font-size: 14.5px; font-weight: 600; line-height: 1.5;
  border-left: 4px solid transparent;
}
.form-status.success { display: block; background: var(--paper-2); border-left-color: var(--line); color: var(--line-deep); }
.form-status.error { display: block; background: var(--signal-soft); border-left-color: var(--signal); color: #A83E12; }
/* Honeypot — off-screen, never display:none (some bots skip those) */
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .phone-country { padding: 0 9px 0 11px; } }
/* iOS zooms the page when a focused control is under 16px */
@media (max-width: 640px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* ---------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------ */
.footer { background: var(--ink); color: #8FA5B8; padding: clamp(40px, 5vw, 60px) 0 26px; font-size: 14px; border-top: 4px solid var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer > .container > div > p { line-height: 1.7; max-width: 42ch; }
.footer h4 {
  color: var(--white); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 14px;
}
.footer ul li { margin-bottom: 9px; }
.footer ul a { transition: color var(--dur-fast) var(--ease); }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 42px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.footer-copyright { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #7E93A6; margin: 0; }
.footer-legal { max-width: 84ch; margin-left: auto; margin-right: auto; font-size: 11px; line-height: 1.75; color: rgba(255, 255, 255, 0.34); margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------------------------------------------------------------------
   17. Scroll-reveal
   Content is hidden ONLY when <html> carries the "js" class (set by an inline
   script in <head>). If JavaScript fails to load, nothing is ever hidden.
   ------------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero h1 .accent-word { background-size: 100% 4px; }
  .grid-bg::after { transform: none; }
  .grid-canvas { display: none; }
  .hero-stats > div::before, .stat::before { width: 30px; }
}

/* ---------------------------------------------------------------------------
   18. Utilities
   ------------------------------------------------------------------------ */
.visually-hidden {
  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: absolute; left: 12px; top: -60px;
  background: var(--signal); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }
