:root {
  --ink: #0c0d0f;
  --ink-2: #101216;
  --surface: #14161b;
  --line: rgba(236, 233, 226, 0.12);
  --line-strong: rgba(236, 233, 226, 0.24);
  --paper: #ece9e3;
  --paper-dim: #b7b4ad;
  --muted: #8a8d93;
  --faint: #5f636b;
  --accent: #8fb0e6;
  --accent-deep: #294063;
  --maxw: 1200px;
  --gutter: 40px;
  --serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ---------- Shared type ---------- */
.label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.serif { font-family: var(--serif); }

/* ---------- Buttons (square, editorial) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 24px; border: 1px solid var(--line-strong); border-radius: 0;
  color: var(--paper); background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--paper); border-color: var(--line-strong); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--paper); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px; transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link:hover { border-color: var(--paper); }
.text-link .arrow { color: var(--accent); transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 13, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; }
.brand-mark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; color: var(--paper); }
.brand-text { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.66rem; color: var(--muted); }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu > li > a { font-size: 0.85rem; color: var(--paper-dim); letter-spacing: 0.02em; transition: color 0.25s ease; }
.nav-menu > li > a:hover { color: var(--paper); }
.nav-cta { color: var(--paper) !important; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 6px; }
.nav-toggle-bar { width: 26px; height: 1.5px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 96px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 8%, rgba(12, 13, 15, 0.86) 42%, rgba(12, 13, 15, 0.5) 100%);
}
.hero .hero-grid { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1000px; }
.hero .eyebrow { display: block; margin-bottom: 34px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--paper); }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--paper-dim); max-width: 60ch; margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-bottom: 64px; align-items: start; }
.section-index { display: flex; align-items: baseline; gap: 12px; }
.section-num { font-family: var(--serif); font-size: 1.05rem; color: var(--accent); }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 18ch; }
.section-intro { color: var(--paper-dim); font-size: 1.08rem; max-width: 62ch; margin-top: 22px; }

/* ---------- Services as editorial index ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 64px minmax(220px, 1fr) 1.4fr; gap: 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.index-row:hover { background: rgba(236, 233, 226, 0.03); }
.index-num { font-family: var(--serif); font-size: 0.95rem; color: var(--faint); }
.index-row h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.index-row p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Focus columns ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.focus-col { padding: 40px 32px 40px 0; border-right: 1px solid var(--line); }
.focus-col:last-child { border-right: 0; padding-right: 0; }
.focus-col .focus-num { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; }
.focus-col h3 { font-family: var(--serif); font-size: 1.5rem; margin: 18px 0 14px; }
.focus-col p { color: var(--paper-dim); }

/* ---------- Who it helps ---------- */
.who-inner { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.who-list { border-top: 1px solid var(--line); }
.who-list li {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.25;
  padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--paper);
  display: flex; align-items: baseline; gap: 20px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.who-list li .who-num { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--faint); flex: none; transform: translateY(-2px); }
.who-list li:hover { padding-left: 10px; }

/* ---------- Media band ---------- */
.media-band { position: relative; height: clamp(240px, 36vw, 440px); overflow: hidden; border-bottom: 1px solid var(--line); }
.media-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.45), rgba(12, 13, 15, 0.12) 50%, rgba(12, 13, 15, 0.6));
}

/* ---------- Why (pull-quote) ---------- */
.why-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.why-media { margin: 0; }
.why-media img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.why-content .section-index { margin-bottom: 26px; }
.why-statements { display: grid; gap: 10px; max-width: 24ch; }
.why-line { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.18; letter-spacing: -0.01em; }
.why-line.muted { color: var(--faint); }
.why-line.emphasis { color: var(--paper); }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--line); }
.result-row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.3rem;
}
.result-row .result-num { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent); flex: none; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; }
.contact-inner { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.contact h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 16ch; }
.contact-sub { color: var(--paper-dim); font-size: 1.12rem; max-width: 56ch; margin: 22px 0 36px; }
.contact-disclaimer { color: var(--faint); font-size: 0.82rem; margin-top: 26px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: baseline; gap: 9px; }
.footer-meta { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.footer-founder { color: var(--paper-dim); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { color: var(--muted); font-size: 0.85rem; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--paper); }
.footer-copy { width: 100%; color: var(--faint); font-size: 0.8rem; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .section-head, .who-inner, .contact-inner, .why-block { grid-template-columns: 1fr; gap: 18px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .focus-col:last-child { border-bottom: 0; }
  .results-grid { grid-template-columns: 1fr; gap: 0; }
  .index-row { grid-template-columns: 40px 1fr; gap: 6px 18px; }
  .index-row p { grid-column: 2; }
  .why-inner, .why-quote { max-width: none; }
}

@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
