/* ═══════════════════════════════════════════════════════════════════════
   VEYDROS — services.veydros.com
   A single, plain-English list of what Veydros does.

   Same grammar as the flagship site (veydros.com / "THE TRACE"):
       NAVY  = a decision that still stands (the drawn rule, the mark)
       GREY  = supporting material, set down quietly
       INK   = the firm's own voice (headings, the footer plate)
       WHITE = the page itself
   border-radius is 0 everywhere. No shadows (except the focus ring),
   no gradients, no glow. Elevation is rule weight, never a drop shadow.
   Type is thin by brand law: display 300, body 300–400, labels 500.
   NEVER 600+. Emphasis comes from size, colour and eyebrows, not bold.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Satoshi'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/assets/fonts/satoshi-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('/assets/fonts/manrope-var-latin.woff2') format('woff2');
}

:root {
  --paper:       #FFFFFF;
  --bone:        #F4F5F7;
  --rule:        #D3D7DE;
  --grey-600:    #5F6874;
  --graphite:    #39404B;
  --ink:         #0D1B2A;
  --navy:        #1A2B4A;
  --navy-active: #2E5A9A;

  --display: 'Satoshi', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --sans:    'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --maxw: 1280px;
  --gutter: 32px;
  --section: 112px;

  color-scheme: light;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: #FFFFFF; }

/* ── Type ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--ink); font-weight: 300; }

.h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  line-height: 1.03; letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.5rem);
  line-height: 1.12; letter-spacing: -0.025em;
}
.h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.125rem; line-height: 1.30; letter-spacing: -0.01em;
}

.lead {
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.52; color: var(--graphite); max-width: 60ch;
}
p { max-width: 64ch; }

.eyebrow, .index, .tag, .btn, .foot-meta {
  font-family: var(--sans); font-variant-numeric: tabular-nums;
}
.eyebrow, .index, .tag {
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--grey-600);
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.col-main { grid-column: 1 / span 8; }
.col-side { grid-column: 10 / span 3; }

.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 40px; }
.section-head .index { display: block; margin-bottom: 18px; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed !important; top: 12px; left: 12px;
  width: auto; height: auto; margin: 0; clip: auto; clip-path: none; overflow: visible;
  padding: 12px 20px; background: var(--ink); color: #FFFFFF; z-index: 100;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
}

:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--navy-active);   /* the only box-shadow on this site */
  outline-offset: 2px;
}

/* ── Masthead ────────────────────────────────────────────────────────── */
.masthead { padding: 28px 0 20px; border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark img { height: 19px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: baseline; }
.nav a {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--grey-600);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--navy); }

/* ── Buttons & links ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 15px 26px; border: 1px solid var(--ink);
  background: var(--ink); color: #FFFFFF;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--navy-active); border-color: var(--navy-active); }
.btn-ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

.link { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.link:hover { border-bottom-color: var(--navy); }

/* ── The mark: a 1px navy rule that draws left→right ──────────────────
   CSS ships the FINISHED (drawn) state. site.js arms it (un-draws), then
   redraws with a transition when it scrolls into view. No-JS / reduced
   motion / CSP block all land on the finished rule with no second path. */
.rule-mark { display: block; height: 1px; background: var(--navy); transform-origin: left; }
.rule-mark.is-armed { transform: scaleX(0); transition: none; }
.rule-mark.is-armed.is-drawn {
  transform: scaleX(1);
  transition: transform 420ms cubic-bezier(0.22, 0.65, 0.2, 1);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 var(--section); }
.hero .h1 { margin: 20px 0 0; max-width: 16ch; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }

/* ── At-a-glance grid: the plain list, scannable, above the detail ───── */
.glance { padding-top: 80px; padding-bottom: 80px; }
.glance .section-head { margin-bottom: 44px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 52px; }
.svc-group-name {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--navy);
  transition: color 160ms ease;
}
.svc-group-name:hover { color: var(--navy-active); }
.svc-group-num { color: var(--rule); }
.svc-list { list-style: none; margin-top: 2px; }
.svc-list li {
  padding: 11px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.9688rem; color: var(--graphite); line-height: 1.35;
}

/* ── A service, in detail ────────────────────────────────────────────── */
.cap .section-head { margin-bottom: 28px; }
.cap .index { display: block; margin-bottom: 16px; }
.cap-tag { margin-top: 14px; color: var(--graphite); max-width: 30ch;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.3;
  letter-spacing: -0.015em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 34px; }
.chips li {
  border: 1px solid var(--rule); padding: 8px 13px;
  font-size: 0.8125rem; color: var(--ink); line-height: 1.2;
}

.def { display: grid; grid-template-columns: 132px 1fr; gap: 24px; }
.def + .def { margin-top: 26px; }
.def dt {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey-600);
  padding-top: 4px;
}
.def dd { max-width: 64ch; color: var(--graphite); }

/* The big register numeral in the margin (apparatus, quiet). */
.cap-num {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── Closing note. No motion — stillness reads as not selling. ────────── */
.close .h2 { max-width: 22ch; }
.close p { margin-top: 22px; max-width: 60ch; }
.close .btn-row { margin-top: 40px; }

/* ── Footer: the one dark plate. The document is closed. ─────────────── */
.footer { background: var(--ink); color: #FFFFFF; padding: 72px 0 40px; }
.footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-mark { line-height: 0; }
.footer-mark img { height: 24px; width: auto; display: block; }
.footer-div { margin-top: 20px; color: rgba(255,255,255,0.6); font-size: 0.9375rem; max-width: 44ch; }
.footer .foot-h {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6); margin-bottom: 18px;
}
.footer-list, .footer-contact { list-style: none; }
.footer-list li, .footer-contact li { margin-bottom: 10px; }
.footer-list a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-list a:hover { border-bottom-color: rgba(255,255,255,0.6); }
.footer-contact li { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { border-bottom: 1px solid rgba(255,255,255,0.6); }
.footer-base {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot-meta { font-size: 0.6875rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.footer :focus-visible { box-shadow: 0 0 0 2px #FFFFFF; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .col-main { grid-column: 1 / span 12; }
  .col-side { grid-column: 1 / span 12; order: -1; }
  .cap-num { font-size: 2.75rem; }
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .def { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 72px; }
  .hero { padding: 52px 0 var(--section); }
  .masthead .wrap { gap: 14px; }
  .nav { gap: 4px 16px; }
  .svc-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .rule-mark.is-armed { transform: scaleX(1); }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .masthead, .footer, .btn-row { display: none; }
  body { color: #000; }
  .section { break-inside: avoid; }
}
