/* ==========================================================================
   Vardline — site styles
   Plain CSS. No framework, no build step. Edit this file directly.

   Contents
     1.  Design tokens (colours, type, spacing)  <- change the brand here
     2.  Fonts
     3.  Base elements
     4.  Layout helpers
     5.  Header / navigation
     6.  Buttons and links
     7.  Hero
     8.  Section headers
     9.  Service cards and service list
     10. Partner cards
     11. Service detail pages
     12. Contact page and form
     13. Prose pages (privacy)
     14. Call-to-action band
     15. Footer
     16. Responsive rules
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Colours */
  --bone:       #f5f4f0;  /* page background */
  --bone-dim:   #ecebe5;  /* subtle fills on the light background */
  --ink:        #0f1f33;  /* headings, dark sections */
  --muted:      #5a6b7b;  /* body copy, secondary text */
  --accent:     #c8742b;  /* rust — buttons, links, numerals */
  --accent-dark:#a75f21;
  --line:       rgba(15, 31, 51, 0.14);
  --line-soft:  rgba(15, 31, 51, 0.08);
  --on-dark:         #f5f4f0;
  --on-dark-muted:   rgba(245, 244, 240, 0.64);
  --on-dark-line:    rgba(245, 244, 240, 0.16);

  /* Type */
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  --fs-display: 44px;  --lh-display: 1.10;  --ls-display: -0.02em;
  --fs-h2:      30px;  --lh-h2:      1.20;  --ls-h2:      -0.015em;
  --fs-h3:      20px;  --lh-h3:      1.30;  --ls-h3:      -0.01em;
  --fs-lead:    21px;  --lh-lead:    1.50;
  --fs-body:    17px;  --lh-body:    1.60;
  --fs-small:   14px;  --lh-small:   1.50;
  --fs-eyebrow: 12px;  --ls-eyebrow: 0.1em;

  /* Layout */
  --container: 1120px;
  --gutter: 40px;
  --section-y: 96px;
  --radius: 2px;
}

/* 2. Fonts ---------------------------------------------------------------
   Self-hosted IBM Plex Sans (SIL Open Font License — see assets/fonts/LICENSE.txt).
   Only the three weights the site uses are loaded.                          */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; margin: 0; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2);      line-height: var(--lh-h2);      letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3);      line-height: var(--lh-h3);      letter-spacing: var(--ls-h3); }

p { margin: 0; }
p + p { margin-top: 1em; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: rgba(200, 116, 43, 0.22); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.icon { width: 1em; height: 1em; display: block; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.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;
}

/* 4. Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 72px; }

.section--dark {
  background: var(--ink);
  color: var(--on-dark-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* 5. Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
}
.brand .icon { width: 22px; height: 22px; color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-links .btn:hover,
.nav-links .btn[aria-current="page"] { border-bottom-color: transparent; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 18px; height: 18px; }

/* 6. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }

.btn--primary { background: var(--accent); color: var(--bone); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

.btn--on-dark { background: var(--bone); color: var(--ink); }
.btn--on-dark:hover { background: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.15s ease; }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 7. Hero ---------------------------------------------------------------- */
.hero { padding-top: 120px; padding-bottom: var(--section-y); }

.hero__kicker {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px;
  margin-bottom: 28px;
}
.hero__kicker .place {
  font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted);
}

.hero h1 { max-width: 760px; }
.hero__lead {
  margin-top: 24px; max-width: 62ch;
  font-size: var(--fs-lead); line-height: var(--lh-lead);
  letter-spacing: -0.005em;
}

.chips {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 32px; padding: 0; list-style: none;
}
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: var(--fs-small); line-height: var(--lh-small);
}
.chips .icon { width: 16px; height: 16px; color: var(--accent); }

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 36px;
}

.hero__image {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone-dim);
}
.hero__image img {
  width: 100%; height: 460px; object-fit: cover;
}

/* 8. Section headers ----------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

.section-head { max-width: 66ch; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 18px; }

/* 9. Service cards ------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  margin-top: 56px;
}

.svc-card {
  display: block; text-decoration: none;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
.svc-card:hover { border-top-color: var(--accent); }
.svc-card .num {
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--muted);
}
.svc-card h3 { margin-top: 10px; }
.svc-card p { margin-top: 12px; }
.svc-card .more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; color: var(--accent);
  font-size: var(--fs-small); font-weight: 500;
}
.svc-card .more .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.svc-card:hover .more .icon { transform: translateX(3px); }

/* service index: wider rows with the audience line */
.svc-list { margin-top: 56px; }
.svc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover { border-top-color: var(--accent); }
.svc-row .num {
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); color: var(--accent);
  padding-top: 6px;
}
.svc-row .audience {
  font-size: var(--fs-small); line-height: var(--lh-small);
  margin-top: 10px;
}
.svc-row .more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; color: var(--accent);
  font-size: var(--fs-small); font-weight: 500;
}
.svc-row .more .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.svc-row:hover .more .icon { transform: translateX(3px); }

/* 10. Partner cards ------------------------------------------------------ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.partner-card {
  display: block; text-decoration: none;
  background: var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
}
.partner-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bone-dim); }
.partner-card__body { padding: 22px 22px 26px; }
/* the card keeps the light palette even inside a dark section */
.section--dark .partner-card h3 { color: var(--ink); }
.partner-card h3 { margin-bottom: 4px; }
.partner-card .role { color: var(--ink); font-size: var(--fs-small); line-height: var(--lh-small); }
.partner-card .base { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.partner-card .blurb { color: var(--muted); margin-top: 14px; }

.offices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px; margin-top: 56px;
  border-top: 1px solid var(--on-dark-line); padding-top: 32px;
}
.offices h3 { font-size: var(--fs-h3); }

/* people page: long-form bios */
.bio {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.bio img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.bio h2 { font-size: 26px; }
.bio .role { color: var(--accent); font-size: var(--fs-small); font-weight: 500; margin-top: 6px; }
.bio__text > p { margin-top: 18px; }
.bio .creds {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small); line-height: var(--lh-small);
  color: var(--ink);
}

.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px; margin-top: 48px;
}
.principles h3 { margin-bottom: 12px; }

.note {
  margin-top: 48px; padding: 28px 32px;
  background: var(--bone-dim); border-radius: var(--radius);
  max-width: 72ch;
}
.note h3 { font-size: var(--fs-h3); margin-bottom: 10px; }

/* 11. Service detail ----------------------------------------------------- */
.detail-hero { padding-top: 72px; padding-bottom: 56px; }
.detail-hero .back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); text-decoration: none;
  font-size: var(--fs-small); font-weight: 500;
  margin-bottom: 28px;
}
.detail-hero .back:hover { color: var(--accent); }
.detail-hero .back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.detail-hero h1 { max-width: 20ch; margin-top: 14px; }
.detail-hero .intro {
  margin-top: 24px; max-width: 68ch;
  font-size: var(--fs-lead); line-height: var(--lh-lead);
}

/* A marked slot for a photo that has not been supplied yet.
   Replace the whole .photo-slot element with <img src="..." alt="..."> */
.photo-slot {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; padding: 32px;
  background: var(--bone-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted); font-size: var(--fs-small); text-align: center;
}

.deliver-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px; margin-top: 48px;
}
.deliver-grid > div { border-top: 1px solid var(--line); padding-top: 22px; }
.deliver-grid h3 { margin-bottom: 12px; }

.when {
  margin-top: 24px; max-width: 68ch;
}
.when p + p { margin-top: 16px; }

.led-by {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.led-by .eyebrow { margin-bottom: 12px; }
.led-by a { color: var(--ink); font-size: var(--fs-h3); font-weight: 500; text-decoration: none; }
.led-by a:hover { color: var(--accent); }
.led-by .base { font-size: var(--fs-small); margin-top: 4px; }

/* 12. Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px; margin-top: 56px;
}

.contact-block + .contact-block { margin-top: 40px; }
.contact-block .eyebrow { margin-bottom: 14px; }
.contact-block dl { margin: 0; }
.contact-block dt { color: var(--ink); font-size: var(--fs-small); margin-top: 14px; }
.contact-block dd { margin: 2px 0 0; font-size: var(--fs-small); }
.contact-block a { color: var(--accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: var(--fs-small); font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: var(--fs-body);
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form .hint { font-size: var(--fs-small); color: var(--muted); }
.form__honeypot { position: absolute; left: -9999px; }

/* 13. Prose -------------------------------------------------------------- */
.prose { max-width: 68ch; margin-top: 32px; }
.prose h2 { font-size: 22px; margin-top: 36px; margin-bottom: 12px; }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }

/* 14. Call to action ----------------------------------------------------- */
.cta { border-top: 1px solid var(--line); }
.cta .eyebrow { margin-bottom: 18px; }
.cta h2 { max-width: 26ch; }
.cta p { margin-top: 16px; max-width: 56ch; }
.cta .actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin-top: 32px;
}
.cta .actions a.mail { color: var(--accent); text-decoration: none; font-weight: 500; }
.cta .actions a.mail:hover { text-decoration: underline; }

/* 15. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: 72px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.site-footer .brand { color: var(--on-dark); }
.site-footer .blurb { margin-top: 14px; font-size: var(--fs-small); line-height: var(--lh-small); max-width: 34ch; }
.site-footer h2 {
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--on-dark-muted); margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { font-size: var(--fs-small); line-height: var(--lh-small); margin-top: 9px; }
.site-footer li:first-child { margin-top: 0; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .office { color: var(--on-dark); }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 32px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
  font-size: var(--fs-small);
}
.footer-base .right { display: flex; gap: 24px; }

/* 16. Responsive --------------------------------------------------------- */
@media (max-width: 1020px) {
  .contact-grid { gap: 56px; }
  .card-grid { gap: 32px 40px; }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); }
  .svc-row .body { grid-column: 2; }
}

@media (max-width: 860px) {
  :root {
    --fs-display: 34px; --lh-display: 1.10;
    --fs-h2: 26px;
    --fs-lead: 19px;
    --gutter: 24px;
    --section-y: 72px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 0; }
  .nav-links .btn { justify-content: center; margin-top: 14px; }
  .nav { position: relative; }

  .hero { padding-top: 64px; }
  .hero__image img { height: 300px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .deliver-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .offices { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; }
  .bio img { max-width: 220px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; }
  .svc-row .num { padding-top: 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .cta { display: none; }
  body { background: #fff; color: #000; }
}
