:root {
  --ink: #17191d;
  --ink-soft: #4a4e57;
  --paper: #faf9f6;
  --paper-alt: #f2f0ea;
  --navy: #10141c;
  --navy-soft: #1b212c;
  --line: #e4e1d8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #c9a86a;
  --radius-pill: 999px;
  --radius-lg: 18px;
  --container: 1180px;
  --header-h: 76px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

/* <picture> must not introduce a box of its own — the <img> inside is
   positioned and sized by the existing layout rules. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

/* Keyboard focus: visible on every interactive element, never on mouse click */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.light :focus-visible,
.expertise :focus-visible,
.approach :focus-visible,
.cta :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, blockquote {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.65); }

.light { color: #fff; }

.section-intro {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 17px;
  margin: 16px 0 0;
}
.section-intro.light { color: rgba(255, 255, 255, 0.72); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: rgba(0,0,0,0.03); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }
.btn-small { padding: 10px 20px; font-size: 13px; }
.arrow { display: inline-block; transition: transform 0.15s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 auto;
}
.main-nav a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.5fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero-text {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-quote {
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  text-align: right;
  color: var(--ink-soft);
  justify-self: end;
  border-right: 2px solid var(--ink);
  padding-right: 16px;
  margin-top: 10px;
}
.hero-media {
  position: relative;
  width: 100%;
  height: min(58vw, 560px);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
}

/* About */
.about { padding: 110px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 6px 0 18px; }
.about-copy p { color: var(--ink-soft); font-size: 16px; max-width: 480px; }
.feature-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 22px 40px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 13px;
}
.about-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Expertise (dark) */
.expertise {
  background: var(--navy);
  padding: 110px 0;
}
.expertise h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 6px 0 0; }
.expertise-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.expertise-card {
  background: var(--navy-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.expertise-media { height: 220px; }
.expertise-media img { width: 100%; height: 100%; object-fit: cover; }
.expertise-body { padding: 30px 30px 34px; color: #fff; }
.expertise-body h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.expertise-body p {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  margin: 0 0 20px;
}
.arrow-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.arrow-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding-left: 20px;
  position: relative;
}
.arrow-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.expertise-card .text-link { color: #fff; }

/* Clients */
.clients { padding: 110px 0 100px; }
.clients-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.clients-heading h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 6px; }
.clients-copy { color: var(--ink-soft); font-size: 16px; padding-top: 4px; }
.logo-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: logo-scroll 32s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-tile {
  flex: 0 0 auto;
  width: 190px;
  aspect-ratio: 1.4;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.logo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 25, 29, 0.08);
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.2s ease;
}
.logo-tile:hover img {
  filter: grayscale(0) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* Approach */
.approach {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  color: #fff;
}
.approach-bg, .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.approach-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.55), rgba(10,12,16,0.78));
  z-index: 1;
}
.approach .container { position: relative; z-index: 2; }
.approach h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 6px 0 0; }
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  /* 5 steps only tile cleanly at 5, 3 or 1 columns. 4 leaves a lone
     orphan (4+1) and 2 leaves a ragged 2+2+1, so those counts are
     skipped entirely — see the .steps overrides in the media queries. */
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 28px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
}
.step-number { font-family: var(--font-serif); font-size: 15px; color: rgba(255,255,255,0.6); }
.step-title { font-weight: 600; font-size: 16px; }
.step-desc { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.45; }

/* CTA */
.cta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  color: #fff;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,10,14,0.9) 30%, rgba(8,10,14,0.35) 100%);
  z-index: 1;
}
.cta .container { position: relative; z-index: 2; }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 0; max-width: 520px; }
.cta-direct {
  margin: 26px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,0.72);
}
.cta-direct a { border-bottom: 1px solid rgba(255,255,255,0.4); color: #fff; }
.cta-quote {
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  border-left: 2px solid #fff;
  padding-left: 16px;
  margin: 34px 0 0;
}

/* Contact form */
.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.field .optional { font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}
.field select option { color: var(--ink); background: #fff; }

/* Only flag an invalid field once the user has actually tried to submit */
.contact-form-submitted .field input:invalid,
.contact-form-submitted .field textarea:invalid {
  border-color: #e88b7d;
}

/* Honeypot — hidden from humans and assistive tech, visible to naive bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}
.form-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.8);
}
.form-status.is-error { color: #f0a99c; }
.form-status.is-success { color: #9ad9b0; }

/* Legal pages */
.legal {
  padding: 72px 0 96px;
  background: var(--paper);
}
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 36px; }
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { border-bottom: 1px solid var(--line); color: var(--ink); }
.legal a:hover { border-bottom-color: var(--ink); }

/* Template warning — delete this block (and the .legal-notice markup)
   once a lawyer has reviewed and replaced the copy on these pages. */
.legal-notice {
  background: #fdf6e3;
  border: 1px solid #e6d9ae;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: 14.5px;
  color: #6b5d39;
}
.legal-notice strong { color: #4a3f24; }

/* Footer */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
}
.footer-brand p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-meta .text-link { justify-self: end; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.social-links svg { width: 15px; height: 15px; display: block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-links { display: flex; gap: 18px; }

/* ============================================================
   Responsive
   Breakpoints, largest first:
     1080  – tighten desktop nav spacing before it gets cramped
      980  – two-column layouts collapse to one
      900  – switch to the hamburger nav
      720  – phone spacing and single-column details
      420  – very small phones
   ============================================================ */

@media (max-width: 1080px) {
  .main-nav { gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-inner { gap: 44px; }
  .cta-inner { gap: 40px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-quote { justify-self: start; text-align: left; border-right: none; border-left: 2px solid var(--ink); padding-left: 16px; padding-right: 0; margin-top: 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .expertise-grid { grid-template-columns: 1fr; }
  .clients-inner { grid-template-columns: 1fr; gap: 16px; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; gap: 44px; }
  .cta h2 { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Hamburger takes over here rather than at 720 — between these widths the
   six-item desktop nav had only ~24px of slack left on either side. */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px 22px;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav a { padding: 10px 0; width: 100%; }
  .main-nav a.active::after { display: none; }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }
  /* Turn the three bars into an X while the menu is open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner .btn-small { display: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .feature-list { grid-template-columns: 1fr; }
  .logo-tile { width: 150px; }
  .hero { padding-top: 48px; }
  .about, .expertise, .clients { padding: 72px 0; }
  .approach, .cta { padding: 88px 0; }
  .contact-card { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .logo-tile { width: 132px; }
}

/* Touch devices get no hover state, so surface the client logos fully */
@media (hover: none) {
  .logo-tile img { filter: grayscale(0) opacity(0.85); }
}

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