:root {
  --paper: #F3F0E8;
  --ink: #16150F;
  --accent: #D2461E;
  --sand: #E8E3D6;
  --panel: #24231C;
  --body: #3A382F;
  --muted: #6B685E;
  --muted-dark: #A29E90;
  --dim: #8A8676;
  --tag: #D8D4C7;
  --line: rgba(22, 21, 15, .12);
  --line-dark: rgba(243, 240, 232, .2);
  --serif: 'Instrument Serif', serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section[id] { scroll-margin-top: 70px; }

/* Type */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
}
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-muted-dark { color: var(--muted-dark); }
.label-accent { color: var(--accent); }
em { color: var(--accent); }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  font: 500 15px var(--sans);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.btn-outline { border-color: rgba(22, 21, 15, .3); }
.btn-outline:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 240, 232, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
}
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; font-size: 14px; flex-wrap: wrap; }

/* Hero */
.hero {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 136px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  margin-top: 56px;
  align-items: end;
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  margin: 0;
  max-width: 46ch;
  color: var(--body);
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.band-dark { background: var(--ink); color: var(--paper); }
.band-sand { background: var(--sand); }
.section { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head-lg { margin-bottom: 56px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.service-item {
  all: unset;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--dim);
  transition: color .15s;
}
.service-item:hover,
.service-item[aria-selected="true"] { color: var(--paper); }
.service-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.service-num { font-family: var(--mono); font-size: 13px; }
.service-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.01em; }
.service-mark { font-family: var(--mono); font-size: 18px; color: var(--accent); }
.service-panel {
  background: var(--panel);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-desc { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; margin: 0; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 240, 232, .25);
  color: var(--tag);
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--ink);
}
.step { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.step-meta {
  display: flex; justify-content: space-between; align-items: center; padding-right: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.step-meta span:first-child { color: var(--accent); }
.step h3, .engage-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0;
}
.step p, .engage-card p { font-size: 15px; line-height: 1.55; margin: 0; color: var(--body); text-wrap: pretty; }

/* Work */
.work { padding-bottom: clamp(56px, 8vw, 112px); }
.work-head {
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 112px);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-card:hover { color: var(--ink); }
.work-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #E6E1D4 0 10px, #EDE9DE 10px 20px);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.work-sector { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work-card h3 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin: 0; text-wrap: pretty; }

/* Engagements */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.engage-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.engage-card h3 { font-size: 36px; }
.engage-kind { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.engage-meta {
  font-family: var(--mono);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

/* Contact */
.contact { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
}
.contact-lede { font-size: 18px; line-height: 1.5; color: var(--body); margin: 28px 0 0; max-width: 40ch; }
.contact-sent {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-sent p { font-family: var(--serif); font-size: 36px; line-height: 1.1; margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-chips { gap: 10px; }
.field input, .field textarea {
  font: 16px/1.5 var(--sans);
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 14px var(--sans);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn-submit { align-self: flex-start; padding: 15px 26px; margin-top: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); margin-top: auto; }
.footer-inner { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-word {
  font-family: var(--serif);
  font-size: clamp(64px, 14vw, 200px);
  line-height: .85;
  color: var(--paper);
  letter-spacing: -.03em;
}
.footer-word span { color: var(--accent); }
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  border-top: 1px solid rgba(243, 240, 232, .15);
  padding-top: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--tag); }
.footer-links a:hover { color: var(--accent); }

/* Legal pages */
.legal { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(72px, 10vw, 140px); }
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 24px 0 0;
}
.legal-meta { margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap; }
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ink);
  padding-top: 40px;
  align-items: start;
}
.legal-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legal-toc .label { margin-bottom: 6px; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--accent); }
.legal-body { max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--body); }
.legal-body > p:first-child { font-size: 19px; line-height: 1.5; color: var(--ink); margin-top: 0; }
.legal-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  color: var(--ink);
  margin: 56px 0 16px;
  scroll-margin-top: 90px;
}
.legal-body h2 span { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-right: 12px; vertical-align: middle; }
.legal-body h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-note {
  background: var(--sand);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 14px;
  margin-top: 56px;
}
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
@media (max-width: 800px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
