/* Shardip Stratevisors — site styles
   Restraint over decoration. Serif headings for gravitas, system sans for
   reading, one accent used sparingly on rules and eyebrows. No webfont
   download: the stack below renders instantly on every device. */

/* ---------- tokens ---------- */
:root {
  --ink:        #0D1826;
  --ink-2:      #1B2C42;
  --ink-3:      #38495F;
  --muted:      #5C6A7A;
  --paper:      #FBF9F6;
  --surface:    #FFFFFF;
  --surface-2:  #F4F1EC;
  --line:       #E4DFD6;
  --line-2:     #D2CCC0;
  --accent:     #8A5A2B;
  --accent-ink: #6E4622;
  --focus:      #1F6FEB;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);

  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.375rem); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }

p, ul, ol { margin: 0 0 1.15rem; }
p { text-wrap: pretty; }
:is(p, li) { max-width: 68ch; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 650; }

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }

.band { padding-block: var(--band); }
.band--tint { background: var(--surface-2); }
.band--paper { background: var(--surface); }
.band--ink { background: var(--ink); color: #C9D3DF; }
.band--ink :is(h1, h2, h3) { color: #fff; }
.band--ink a { color: #E8D5BE; }
/* Dark-band variants. Kept here rather than as inline style attributes so the
   Content-Security-Policy can stay at style-src 'self' with no unsafe-inline. */
.band--ink .eyebrow { color: #C08A4E; }
.band--ink .stats { border-top-color: rgba(255, 255, 255, .15); }
.band--ink .stat__n { color: #fff; }
.band--ink .stat__l { color: #AEBBCA; }
.band--ink .form__note { color: #7E8EA0; }
.band--ink p { color: #C9D3DF; }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .split   { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); }
}

.measure { max-width: 62ch; }
.measure-narrow { max-width: 56ch; }
/* When .measure sits on the same element as .wrap, keep the wrap's own width so
   the block still starts at the page's left margin, and constrain the children
   instead. Otherwise margin-inline:auto centres the narrow box and text blocks
   visibly jump inward between sections. */
.wrap.measure, .wrap.measure-narrow { max-width: none; }
.wrap.measure > * { max-width: 62ch; }
.wrap.measure-narrow > * { max-width: 56ch; }
.attribution { max-width: 62ch; margin-top: 2rem; }


/* Text + image split: text gets the wider column, image sits right.
   Stacks below 46rem with the image under the text. */
.split--media { align-items: center; }
@media (min-width: 46rem) {
  .split--media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.cert { margin: 0; max-width: 28rem; }
@media (min-width: 46rem) { .cert { max-width: none; justify-self: end; } }
.cert img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(13, 24, 38, .06), 0 8px 24px rgba(13, 24, 38, .08);
}
.cert figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  width: 2.25rem; height: 2.25rem; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1;
  border-radius: var(--r);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.brand__sub { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0.5rem 0.75rem; font: inherit; font-size: 0.875rem;
  color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { width: 1rem; height: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 -5px currentColor; }

.site-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: 0.9375rem; color: var(--ink-2); text-decoration: none;
  padding-block: 0.35rem; border-bottom: 2px solid transparent; display: block;
}
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.site-nav__contact { display: none; }

@media (max-width: 59.99rem) {
  .site-nav {
    display: none; position: absolute; inset: 4.5rem 0 auto;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding-block: 0.85rem; border-bottom: none; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--accent); padding-left: 0.75rem; }
  .site-nav__contact {
    display: flex; flex-direction: column; gap: 0.35rem;
    margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
    font-size: 0.9375rem;
  }
}
@media (min-width: 60rem) { .nav-toggle { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.4rem; border-radius: var(--r);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.band--ink .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.band--ink .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.band--ink .btn--primary { background: #fff; color: var(--ink); }
.band--ink .btn--primary:hover { background: #EDE7DE; color: var(--ink); }

.textlink {
  display: inline-block; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
}
.textlink::after { content: " \2192"; }
.textlink:hover { border-bottom-color: var(--accent); }

/* ---------- cards & lists ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2rem);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card--edge { border-top: 3px solid var(--accent); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.6rem; height: 0.6rem; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px);
}

.defs { display: grid; gap: 1.75rem; }
@media (min-width: 46rem) { .defs { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.defs h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin-bottom: 0.35rem; }
.defs p { margin: 0; color: var(--muted); font-size: 0.9688rem; }

/* numbers */
.stats { display: grid; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.stat__n {
  font-family: var(--serif); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  color: var(--ink); line-height: 1; display: block; margin-bottom: 0.45rem;
}
.stat__l { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* comparison table */
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; min-width: 34rem; }
caption { text-align: left; color: var(--muted); font-size: 0.875rem; padding-bottom: 0.75rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; border-bottom-color: var(--line-2); }
tbody tr:last-child :is(th, td) { border-bottom: none; }
td:first-child, th:first-child { padding-left: 0; }

/* pull quote / callout */
.callout {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-family: var(--serif); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.45; color: var(--ink); max-width: 54ch;
}

/* timeline */
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; padding-bottom: 2rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-size: 0.8125rem; font-weight: 650; color: var(--accent-ink); background: var(--surface);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: 0.35rem;
  width: 1px; background: var(--line);
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.0313rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.35rem; top: 1.55rem;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > :not(summary) { margin-bottom: 1.15rem; }

/* CTA band */
.band--cta { background: var(--ink); color: #C9D3DF; }
.band--cta h2 { color: #fff; margin-bottom: 0.5rem; }
.band--cta p { color: #AEBBCA; max-width: 52ch; margin-bottom: 0; }
.cta { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .cta { grid-template-columns: minmax(0,1fr) auto; gap: 3rem; } }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.band--cta .btn--primary { background: #fff; color: var(--ink); }
.band--cta .btn--primary:hover { background: #EDE7DE; }
.band--cta .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.band--cta .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- forms ---------- */
.form { max-width: 38rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-top: 0.15rem; }
.field :is(input, select, textarea) {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.field :is(input, select, textarea):focus { border-color: var(--ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.field--error :is(input, select, textarea) { border-color: #A3241C; }
.field__error { color: #A3241C; font-size: 0.875rem; margin: 0.35rem 0 0; font-weight: 500; }

.form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.5rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.28rem; flex: none; }
.consent label { font-size: 0.9375rem; font-weight: 400; color: var(--muted); margin: 0; }

/* Honeypot: off-screen rather than display:none, which bots now detect. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form__note { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; max-width: 46ch; }

.alert { border-left: 3px solid #A3241C; background: #FDF3F2; padding: 1rem 1.25rem; margin-bottom: 2rem; border-radius: 0 var(--r) var(--r) 0; }
.alert p { margin: 0; color: #7A1B15; }

/* ---------- contact aside ---------- */
.contact-list { list-style: none; padding: 0; font-size: 1.0313rem; }
.contact-list li { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .k { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; font-weight: 650; }

/* ---------- CV table ---------- */
.roles { width: 100%; }
.roles td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink); color: #98A6B6;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9375rem;
}
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.foot-brand { font-family: var(--serif); font-size: 1.125rem; color: #fff; margin: 0 0 0.5rem; }
.foot-note { color: #8595A7; max-width: 34ch; margin: 0; font-size: 0.875rem; }
.foot-h { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7E8EA0; font-weight: 650; margin: 0 0 0.9rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.55rem; }
.site-foot a { color: #C9D3DF; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }

.foot-legal { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.foot-identity { font-size: 0.8125rem; color: #7E8EA0; margin: 0 0 0.9rem; max-width: none; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.8125rem; color: #7E8EA0; margin: 0; }
[data-placeholder] { color: #C08A4E; }

/* ---------- utility ---------- */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
img { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .band--cta, .nav-toggle { display: none; }
  body { background: #fff; }
}
