/* ==========================================================================
   VERTH / verth.it
   Brand tokens taken from the delivered brand board (orange system).
   Edit values here; nothing else in the site hardcodes a colour.
   ========================================================================== */

:root {
  /* Brand palette, from the brand board */
  --verth-orange:  #FF6A00;
  --sunburst:      #FF9E33;
  --amber-gold:    #FFC107;
  --deep-navy:     #0B1220;
  --warm-sand:     #F4EFE6;

  /* Derived surfaces */
  --navy-raised:   #111B2E;
  --navy-line:     rgba(244, 239, 230, 0.12);
  --navy-line-hi:  rgba(255, 106, 0, 0.45);

  /* Text */
  --ink:           var(--warm-sand);
  --ink-dim:       rgba(244, 239, 230, 0.66);
  --ink-faint:     rgba(244, 239, 230, 0.42);
  --ink-on-light:  var(--deep-navy);
  --ink-on-light-dim: rgba(11, 18, 32, 0.68);

  /* Type */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --shell:      1180px;
  --gutter:     clamp(1.25rem, 5vw, 3rem);
  --section-y:  clamp(4.5rem, 11vw, 8.5rem);
  --radius:     14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.55s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep-navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--verth-orange); color: #fff; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--warm-sand); color: var(--ink-on-light); }
.section--sand .lede,
.section--sand .muted { color: var(--ink-on-light-dim); }
.section--raised { background: var(--navy-raised); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--verth-orange);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 64px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 60ch;
}
.muted { color: var(--ink-dim); }
.orange { color: var(--verth-orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--navy-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em; /* optical: cancel trailing tracking space */
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-dim);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--verth-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  /* flex + fixed gap: grid auto-rows stretch to fill the button, which would
     break the exact translateY the X transform below depends on. */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--verth-orange);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(255, 106, 0, 0.75);
}
.btn--primary:hover { background: var(--sunburst); box-shadow: 0 12px 36px -10px rgba(255, 106, 0, 0.9); }

.btn--ghost { border-color: var(--navy-line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy-line-hi); background: rgba(255, 106, 0, 0.07); }

.section--sand .btn--ghost { border-color: rgba(11, 18, 32, 0.2); color: var(--ink-on-light); }
.section--sand .btn--ghost:hover { border-color: var(--verth-orange); background: rgba(255, 106, 0, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(6.5rem, 11vh, 8rem) clamp(7rem, 12vh, 8.5rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 32%; left: 50%;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,106,0,0.13) 0%, rgba(255,106,0,0.04) 42%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.86;
  pointer-events: none;
  /* Fade the plane out at the edges so it reads as depth, not a pasted panel. */
  mask-image: radial-gradient(ellipse 82% 74% at 50% 56%, #000 34%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 82% 74% at 50% 56%, #000 34%, transparent 88%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 48% 44% at 50% 60%,
              rgba(11, 18, 32, 0.80) 0%,
              rgba(11, 18, 32, 0.46) 48%,
              transparent 74%);
}
.hero .shell { position: relative; z-index: 2; }
.hero .scroll-cue { z-index: 2; }

.hero__mark {
  /* The artwork sits in a square frame with roughly 20% transparent padding
     below the glyph, so the optical gap to the wordmark is pulled back here. */
  --mark: clamp(120px, 19vw, 210px);
  position: relative;
  width: var(--mark);
  margin: 0 auto calc(var(--mark) * -0.12);
  aspect-ratio: 1;
}
.hero__mark svg,
.hero__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__mark img { object-fit: contain; opacity: 0; transition: opacity 1.15s var(--ease); }
.hero__mark.is-lit img { opacity: 1; }
.hero__mark svg { transition: opacity 0.85s var(--ease) 0.25s; }
.hero__mark.is-lit svg { opacity: 0; }

/* The wireframe is traced from the real mark, so it registers exactly with the
   PNG underneath it. Outline draws first, facets fill it in, then it ignites. */
.wire { overflow: visible; }
.wire path, .wire line {
  fill: none;
  stroke: var(--verth-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.wire__edge { stroke-width: 4.5; animation-duration: 1.8s !important; }
.wire__facets line { stroke-width: 2.6; opacity: 0.85; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 11vw, 6.75rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1;
  margin: 0;
}
.hero__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 0.9s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink-dim);
  margin: 1.25rem 0 0;
  text-transform: lowercase;
}
.hero__rule {
  width: 108px; height: 1px;
  background: var(--verth-orange);
  margin: 1.15rem auto;
  transform: scaleX(0);
  animation: ruleIn 0.9s var(--ease) 1.1s forwards;
}
@keyframes ruleIn { to { transform: scaleX(1); } }
.hero__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.hero .btn-row { justify-content: center; margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 1;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(var(--verth-orange), transparent);
  animation: cue 2.1s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(42px); opacity: 0; }
}

@media (max-height: 740px) {
  .scroll-cue { display: none; }
}

/* ---------- Department tiles ---------- */
.dept-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.dept {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #05080f;
  border: 1px solid var(--navy-line);
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.dept:hover, .dept:focus-visible, .dept.is-open {
  transform: translateY(-5px);
  border-color: var(--navy-line-hi);
}
.dept:focus { outline: none; }
.dept:focus-visible { outline: 2px solid var(--verth-orange); outline-offset: 3px; }

/* Swap the inline <svg> for an <img> here to use a photograph instead. */
.dept__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--verth-orange);
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}
.dept__media svg, .dept__media img {
  width: 72%;
  height: 72%;
  object-fit: cover;
}
.dept__media img { width: 100%; height: 100%; }
.dept:hover .dept__media,
.dept:focus-visible .dept__media,
.dept.is-open .dept__media { transform: scale(1.08); opacity: 0.34; }

/* Black by default, orange on reveal. */
.dept__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 6, 12, 0.94) 6%, rgba(3, 6, 12, 0.52) 52%, rgba(3, 6, 12, 0.30) 100%);
  transition: opacity 0.45s var(--ease);
}
.dept::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 106, 0, 0.94), rgba(255, 158, 51, 0.88) 62%, rgba(255, 193, 7, 0.82));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.dept:hover::after, .dept:focus-visible::after, .dept.is-open::after { opacity: 1; }

.dept__face,
.dept__reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.dept__face { justify-content: flex-end; }
.dept__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--verth-orange);
  margin-bottom: auto;
}
.dept__face h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink); }
.dept:hover .dept__face,
.dept:focus-visible .dept__face,
.dept.is-open .dept__face { opacity: 0; transform: translateY(-8px); }

.dept__reveal {
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  color: #fff;
}
.dept:hover .dept__reveal,
.dept:focus-visible .dept__reveal,
.dept.is-open .dept__reveal { opacity: 1; transform: none; }
.dept__reveal h3 {
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}
.dept__reveal ul { list-style: none; margin: 0; padding: 0; }
.dept__reveal li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.79rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 0.42rem;
}
.dept__reveal li:last-child { margin-bottom: 0; }
.dept__reveal li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
  .dept-grid { grid-template-columns: 1fr; }
  .dept { aspect-ratio: 16 / 10; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-block: clamp(9rem, 16vw, 12rem) clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 480px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,0,0.15), transparent 66%);
  pointer-events: none;
}
.page-head .lede { margin-top: 1.4rem; }

/* ---------- Statement ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.card {
  position: relative;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.025);
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 106, 0, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  border-color: var(--navy-line-hi);
  background: rgba(244, 239, 230, 0.045);
}
.card:hover::before, .card:focus-within::before { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--verth-orange);
  margin-bottom: 1.1rem;
  display: block;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--ink-dim); margin: 0; }

/* Expandable service rows */
.accordion { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--navy-line); }
.acc-item { border-bottom: 1px solid var(--navy-line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.acc-btn:hover { color: var(--verth-orange); }
.acc-btn__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--verth-orange);
  flex: none;
  width: 2.5rem;
}
.acc-btn__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: -0.015em;
  flex: 1;
}
.acc-btn__sign {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
  transition: transform 0.45s var(--ease);
}
.acc-btn__sign::before, .acc-btn__sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--verth-orange);
  transform: translate(-50%, -50%);
}
.acc-btn__sign::before { width: 14px; height: 1.5px; }
.acc-btn__sign::after  { width: 1.5px; height: 14px; transition: opacity 0.35s var(--ease); }
.acc-item.is-open .acc-btn__sign { transform: rotate(180deg); }
.acc-item.is-open .acc-btn__sign::after { opacity: 0; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  max-width: 62ch;
  color: var(--ink-dim);
  padding: 0 0 1.75rem 3.75rem;
  font-size: 0.98rem;
}

/* ---------- Split ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

/* ---------- Stats / audience ---------- */
.stack { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.stack-item { padding-left: 1.4rem; border-left: 2px solid var(--verth-orange); }
.stack-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.stack-item p { font-size: 0.95rem; color: var(--ink-dim); margin: 0; }
.section--sand .stack-item p { color: var(--ink-on-light-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(105deg, var(--verth-orange), var(--sunburst) 62%, var(--amber-gold));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: 1rem; }
.cta-band .btn {
  background: var(--deep-navy);
  color: #fff;
  margin-top: 2rem;
  box-shadow: 0 10px 34px -12px rgba(11,18,32,0.7);
}
.cta-band .btn:hover { background: #16223a; }

/* ---------- Contact ---------- */
.contact-links { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--navy-line); border-block: 1px solid var(--navy-line); }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  background: var(--deep-navy);
  text-decoration: none;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.contact-link:hover { padding-inline: 1.1rem 0.25rem; background: var(--navy-raised); }
.contact-link__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
  width: 7.5rem;
}
.contact-link__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: -0.01em;
  flex: 1;
}
.contact-link:hover .contact-link__value { color: var(--verth-orange); }
.contact-link__arrow { color: var(--verth-orange); transition: transform 0.35s var(--ease); flex: none; }
.contact-link:hover .contact-link__arrow { transform: translateX(5px); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--navy-line);
  padding-block: 3.25rem 2.25rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.25rem;
}
.site-footer__tag { color: var(--ink-dim); letter-spacing: 0.12em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer nav a { text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer nav a:hover { color: var(--verth-orange); }
.site-footer__base {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--navy-line);
  padding-top: 1.75rem;
}

/* ---------- Placeholder ribbon ---------- */
.placeholder-note {
  background: rgba(255, 193, 7, 0.1);
  border: 1px dashed rgba(255, 193, 7, 0.45);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  color: var(--amber-gold);
  margin-top: 2.5rem;
  max-width: 62ch;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 3rem 0 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-size: 1.02rem;
  margin: 1.9rem 0 0.5rem;
  color: var(--verth-orange);
}
.legal p, .legal li { color: var(--ink-dim); font-size: 0.98rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.55rem; }
.legal li::marker { color: var(--verth-orange); }
.legal a { color: var(--verth-orange); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding-block: 1rem;
  margin-top: 2.25rem;
}

/* Unfilled legal blanks. Deliberately loud so they cannot ship unnoticed. */
.fill {
  background: rgba(255, 193, 7, 0.16);
  border-bottom: 1px dashed var(--amber-gold);
  color: var(--amber-gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92em;
  padding: 0.05em 0.35em;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- Comparison matrix ---------- */
.vs-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow-x: auto; padding-bottom: 0.5rem; }
.vs {
  min-width: 560px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(244, 239, 230, 0.02);
}
.vs__row {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(96px, 1fr));
  align-items: stretch;
  border-top: 1px solid var(--navy-line);
}
.vs__row:first-child { border-top: 0; }
.vs__head { position: relative; z-index: 1; }
.vs__col {
  border: 0;
  background: none;
  padding: 1.05rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  cursor: pointer;
  border-left: 1px solid var(--navy-line);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.vs__col:hover { color: var(--ink); }
.vs__col.is-on { color: var(--ink); background: rgba(244, 239, 230, 0.05); }
.vs__col--us.is-on { color: #fff; background: var(--verth-orange); }
.vs__label {
  padding: 0.95rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
}
.vs__cell {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--navy-line);
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.vs.has-focus .vs__cell:not(.is-on) { opacity: 0.32; }
.vs.has-focus .vs__col:not(.is-on) { opacity: 0.5; }
.vs__cell--us.is-on { background: rgba(255, 106, 0, 0.09); }

.vs__mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.vs__mark[data-v="yes"]  { background: var(--verth-orange); color: #fff; }
.vs__mark[data-v="part"] { background: rgba(255, 193, 7, 0.2); color: var(--amber-gold); border: 1px solid rgba(255,193,7,0.45); }
.vs__mark[data-v="no"]   { background: rgba(244, 239, 230, 0.07); color: var(--ink-faint); }
.vs__key {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin-top: 1rem; font-size: 0.76rem; color: var(--ink-faint);
}
.vs__key span { display: flex; align-items: center; gap: 0.45rem; }

/* ---------- Maturity scale ---------- */
.scale { margin-top: 2.5rem; }
.scale__track {
  position: relative;
  height: 3px;
  background: var(--navy-line);
  border-radius: 3px;
  margin: 2.75rem 8% 0;
}
.scale__fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--verth-orange), var(--amber-gold));
  border-radius: 3px;
  width: 0;
  transition: width 0.55s var(--ease);
}
.scale__pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--deep-navy);
  background: rgba(244, 239, 230, 0.28);
  padding: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.section--sand .scale__pin { border-color: var(--warm-sand); background: rgba(11,18,32,0.22); }
.scale__pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.scale__pin.is-on {
  background: var(--verth-orange);
  box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.18);
  transform: translate(-50%, -50%) scale(1.2);
}
.scale__cap {
  position: absolute;
  top: -2.1rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease);
  pointer-events: none;
}
.section--sand .scale__cap { color: var(--ink-on-light-dim); }
.scale__pin.is-on .scale__cap { color: var(--verth-orange); }

.scale__panels { position: relative; margin-top: 2.4rem; }
.scale__panel {
  display: none;
  animation: fadeUp 0.5s var(--ease);
}
.scale__panel.is-on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scale__panel h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: 0.6rem; }
.scale__panel p { max-width: 60ch; color: var(--ink-dim); }
.section--sand .scale__panel p { color: var(--ink-on-light-dim); }
.scale__hands {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.9rem; padding: 0.45rem 0.9rem;
  border: 1px dashed rgba(255, 106, 0, 0.5);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--verth-orange);
}

/* ---------- Process stepper ---------- */
.steps { margin-top: 2.5rem; }
.steps__track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 0.5rem;
  position: relative;
}
.steps__track::before {
  content: '';
  position: absolute;
  left: var(--edge, 0); right: var(--edgeR, 0); top: 21px;
  height: 2px;
  background: var(--navy-line);
}
.section--sand .steps__track::before { background: rgba(11,18,32,0.14); }
.steps__bar {
  position: absolute;
  left: var(--edge, 0); top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--verth-orange), var(--sunburst));
  transition: width 0.55s var(--ease);
}
.steps__btn {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.steps__dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  background: var(--deep-navy);
  border: 2px solid var(--navy-line);
  color: var(--ink-faint);
  transition: all 0.4s var(--ease);
}
.section--sand .steps__dot { background: var(--warm-sand); border-color: rgba(11,18,32,0.16); color: var(--ink-on-light-dim); }
.steps__btn:hover .steps__dot { border-color: var(--navy-line-hi); color: var(--ink); }
.section--sand .steps__btn:hover .steps__dot { border-color: var(--verth-orange); color: var(--ink-on-light); }
.steps__btn.is-on .steps__dot {
  background: var(--verth-orange);
  border-color: var(--verth-orange);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(255,106,0,0.9);
}
.steps__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  padding-right: 0.8rem;
  transition: color 0.3s var(--ease);
}
.section--sand .steps__name { color: var(--ink-on-light-dim); }
.steps__btn.is-on .steps__name { color: var(--ink); }
.section--sand .steps__btn.is-on .steps__name { color: var(--ink-on-light); }

.steps__body { margin-top: 2rem; min-height: 5.2rem; }
.steps__panel { display: none; animation: fadeUp 0.5s var(--ease); }
.steps__panel.is-on { display: block; }
.steps__panel p { max-width: 62ch; color: var(--ink-dim); font-size: 1rem; }
.section--sand .steps__panel p { color: var(--ink-on-light-dim); }

@media (max-width: 700px) {
  .steps__track::before, .steps__bar { display: none; }
  .steps__track { grid-template-columns: 1fr; gap: 0.9rem; }
  .steps__btn { grid-template-columns: 44px 1fr; align-items: center; gap: 0.9rem; }
  .steps__name { padding-right: 0; }
}

/* ---------- Card glyphs ---------- */
.card__glyph {
  display: block;
  width: 30px; height: 30px;
  color: var(--verth-orange);
  margin-bottom: 1rem;
  transition: transform 0.45s var(--ease);
}
.card:hover .card__glyph { transform: translateY(-3px) scale(1.06); }
.card__glyph + .card__num { margin-bottom: 0.8rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--deep-navy);
    border-bottom: 1px solid var(--navy-line);
    padding: 0.5rem var(--gutter) 1.5rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease);
  }
  .nav-open .nav { clip-path: inset(0 0 0 0); }
  .nav-open body, body.nav-open { overflow: hidden; }
  .nav a { padding-block: 0.95rem; border-bottom: 1px solid var(--navy-line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.1rem; justify-content: center; border-bottom: 0; }
  .contact-link { flex-wrap: wrap; gap: 0.4rem; }
  .contact-link__label { width: 100%; }
  .acc-panel p { padding-left: 0; }
}

/* ---------- Motion preferences ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__word span { opacity: 1; transform: none; }
  .hero__mark img { opacity: 1; }
  .hero__mark svg { opacity: 0; }
  .wire path { stroke-dashoffset: 0; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--verth-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--verth-orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
