@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/cormorant-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/cormorant-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens: SAMY navy (#071D49, sampled from the logo) on white. */
:root {
  --paper: #FFFFFF;
  --navy: #071D49;
  --ink: #071D49;
  --text: #243257;
  --muted: #56617F;
  --line: #E1E5ED;
  --field: #FFFFFF;
  --field-border: #9AA3BA;
  --error: #B42318;
  --button: #071D49;
  --button-hover: #0F2D6B;
  --on-button: #FFFFFF;
  --footer-bg: #071D49;
  --footer-ink: #FFFFFF;
  --footer-muted: #B6BFD6;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --col-gap: clamp(12px, 2vw, 24px);

  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem);
  --t-h2: clamp(2.25rem, 1.8rem + 1.8vw, 3.375rem);
  --t-display: clamp(2.875rem, 1.5rem + 5.4vw, 6.75rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071D49;
    --ink: #FFFFFF;
    --text: #E3E8F3;
    --muted: #AEB8D2;
    --line: #22386B;
    --field: #0B2457;
    --field-border: #5D6F9C;
    --error: #FF9A8F;
    --button: #FFFFFF;
    --button-hover: #DCE3F3;
    --on-button: #071D49;
    --footer-bg: #041334;
    --footer-muted: #9EA9C6;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 0.6em 1em; background: var(--button); color: var(--on-button);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* Logo: the traced SVG used as a mask, so it takes the current text colour. */
.logo { display: inline-block; color: var(--ink); line-height: 0; }
.logo-mark {
  display: block;
  width: 116px;
  aspect-ratio: 787 / 204;
  background: currentColor;
  -webkit-mask: url("/logo.svg") center / contain no-repeat;
  mask: url("/logo.svg") center / contain no-repeat;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
}
.masthead nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.masthead nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.masthead nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  padding-block: clamp(48px, 9vw, 128px) clamp(64px, 9vw, 128px);
  row-gap: clamp(32px, 4.5vw, 56px);
}
.hero h1 {
  grid-column: 1 / span 10;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
/* The logo's diamond, used as the headline's full stop. */
.diamond {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.09em;
  background: currentColor;
  transform: rotate(45deg);
  vertical-align: 0.04em;
}
.hero-body { grid-column: 5 / span 7; }
.lede {
  margin: 0 0 36px;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--text);
  max-width: 34em;
}

.button {
  display: inline-block;
  padding: 1em 1.6em;
  background: var(--button);
  color: var(--on-button);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--button-hover); color: var(--on-button); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* Bands: heading in columns 1-4, content in 5-12. */
.band {
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
  row-gap: 32px;
}
.band h2 {
  grid-column: 1 / span 4;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.band > :not(h2):not(.contact-intro) { grid-column: 5 / -1; }

.services {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) var(--col-gap);
}
.services dt {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.services dd { margin: 0; color: var(--muted); max-width: 34em; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step, upper-roman);
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.steps h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.steps p { margin: 0; color: var(--muted); max-width: 38em; }

/* Contact */
.contact-intro { grid-column: 1 / span 4; }
.contact-intro h2 { margin-bottom: 24px; }
.contact-intro p { color: var(--muted); max-width: 24em; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px var(--col-gap);
  align-content: start;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.half { grid-column: span 1; }
.field label { font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75em 0.875em;
  font: inherit;
  font-size: max(16px, 1rem);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 10em; line-height: 1.5; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: 0; color: var(--error); font-size: var(--t-small); font-weight: 500; }
.field-error:empty { display: none; }

.cf-turnstile { min-height: 65px; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.form-note { margin: 0; font-size: var(--t-small); color: var(--muted); max-width: 30em; }

.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status:focus { outline: none; }

.form-sent {
  align-self: start;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
}
.form-sent h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
}
.form-sent p { margin: 0; color: var(--muted); }
.form-sent:focus { outline: none; }

/* Footer: the brand's white-on-navy variant. */
.footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  font-size: var(--t-small);
}
.footer .grid { padding-block: 56px 64px; row-gap: 28px; align-items: start; }
.footer a { color: var(--footer-ink); }
.footer-logo { grid-column: 1 / span 4; color: var(--footer-ink); }
.footer-logo .logo-mark { width: 148px; }
.footer address { grid-column: 5 / span 4; font-style: normal; }
.footer-meta { grid-column: 9 / span 4; margin: 0; }

/* Prose pages (privacy, 404) */
.prose { padding-block: clamp(40px, 7vw, 96px); }
.prose > * { grid-column: 3 / span 8; }
.prose h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 1.8rem + 4vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h2 {
  margin: 40px 0 8px;
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
}
.prose p, .prose li { max-width: 40em; }
.prose ul { padding-left: 1.2em; }

/* Small screens: one column. */
@media (max-width: 760px) {
  .masthead { padding-block: 22px; }
  .logo-mark { width: 96px; }
  .hero h1,
  .hero-body,
  .band h2,
  .band > :not(h2):not(.contact-intro),
  .contact-intro,
  .footer-logo,
  .footer address,
  .footer-meta,
  .prose > * { grid-column: 1 / -1; }

  .services { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .steps li::before { font-size: 1.875rem; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-body { grid-column: 3 / -1; }
  .band h2, .contact-intro, .band > :not(h2):not(.contact-intro) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
