/* ============================================
   Requiem OS — one-page site
   Aesthetic: quiet sophistication, editorial,
   warm off-whites + deep ink + single muted accent
   ============================================ */

:root {
  /* Palette */
  --paper: #f4f1ea;          /* warm off-white background */
  --paper-2: #ece7dc;        /* slightly deeper card */
  --paper-3: #e2dccd;        /* divider tone */
  --ink: #1c1b18;            /* deep almost-black ink */
  --ink-2: #3a3833;
  --ink-3: #6b6760;
  --ink-4: #9a958b;
  --accent: #6a4a2a;         /* muted bronze/umber */
  --accent-soft: #b08e63;
  --accent-deep: #4a3119;
  --signal: #c25d3c;         /* warm conflict/alert */
  --signal-soft: #e6a892;
  --good: #4a6b4a;           /* muted moss for resolved */

  --rule: rgba(28, 27, 24, 0.12);
  --rule-soft: rgba(28, 27, 24, 0.06);

  /* Type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing rhythm */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

/* Subtle film grain on the paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
}

.italic { font-style: italic; }

p { margin: 0; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(28,27,24,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(28,27,24,0.03);
}

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section scaffolding ---------- */

section { position: relative; }

.section-pad {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 241, 234, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--paper);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-deep); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(120px, 16vw, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.hero-h1 {
  margin-bottom: 32px;
}
.hero-h1 .word {
  display: inline-block;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-stats {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-self: end;
}
@media (max-width: 900px) {
  .hero-stats { justify-self: start; }
}
.stat {
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(255,255,255,0.3);
  min-width: 140px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

/* hero visual: a slow-drifting scene of system dots */
.hero-orb {
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-orb svg {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(620px, 60vw);
  height: auto;
  opacity: 0.55;
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--paper-2);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track .sep {
  color: var(--accent);
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Problem section ---------- */

.problem {
  background: var(--paper-2);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-cell {
  background: var(--paper-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}
.problem-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.problem-cell h3 {
  font-size: 26px;
  line-height: 1.1;
}
.problem-cell p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Pillars (three value props) ---------- */

.pillar {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid var(--rule);
}
.pillar:first-of-type { border-top: none; }
.pillar.flip { grid-template-columns: 7fr 5fr; }
.pillar.flip .pillar-copy { order: 2; }
.pillar.flip .pillar-visual { order: 1; }

@media (max-width: 900px) {
  .pillar, .pillar.flip { grid-template-columns: 1fr; gap: 40px; }
  .pillar.flip .pillar-copy { order: 1; }
  .pillar.flip .pillar-visual { order: 2; }
}

.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}
.pillar-copy h2 {
  margin-bottom: 24px;
}
.pillar-copy p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
}
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.pillar-bullets li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Pillar visuals share a frame look */
.viz-frame {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(28,27,24,0.25);
}
.viz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.viz-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.viz-dots {
  display: flex; gap: 6px;
}
.viz-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule);
}

/* ---- Pillar 1 viz: AI everywhere (chat-stream + 4 surfaces) ---- */
.ai-surface-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ai-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
  min-height: 130px;
  position: relative;
  display: flex; flex-direction: column;
  gap: 10px;
  transition: border-color .25s, transform .25s;
}
.ai-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.ai-card .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ai-card .body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.ai-card.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.ai-card .ai-ping {
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s;
}
.ai-card.active .ai-ping {
  opacity: 1;
  animation: ping 1.6s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(106,74,42,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(106,74,42,0); }
}
.ai-typing {
  display: inline-flex; gap: 3px;
}
.ai-typing span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ---- Pillar 2 viz: schedule with conflict ---- */
.schedule {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
}
.schedule-header {
  display: contents;
}
.schedule-header > div {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sched-times {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  text-align: center;
}
.sched-times div { padding: 8px 0; border-left: 1px dashed var(--rule-soft); }
.sched-row {
  display: contents;
}
.sched-label {
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sched-label .swatch {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--ink-3);
}
.sched-track {
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
  height: 44px;
  background-image: linear-gradient(to right, var(--rule-soft) 1px, transparent 1px);
  background-size: 12.5% 100%;
}
.block {
  position: absolute;
  top: 8px;
  height: 28px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--ink-3);
  padding: 6px 10px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  transition: all .5s cubic-bezier(.2,.8,.2,1);
}
.block.b-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.block.b-accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.block.b-soft { background: var(--paper); color: var(--ink); }

.block.conflict {
  background: var(--signal);
  border-color: var(--signal);
  color: white;
  animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}

.conflict-toast {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  transition: all .4s;
}
.conflict-toast.resolved {
  border-left-color: var(--good);
}
.conflict-toast .icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--signal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  transition: background .4s;
}
.conflict-toast.resolved .icon { background: var(--good); }
.conflict-toast .text strong { color: var(--ink); }
.conflict-toast .text { color: var(--ink-2); }
.conflict-toast .resolve-btn {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.conflict-toast.resolved .resolve-btn {
  background: var(--good);
  pointer-events: none;
}

/* ---- Pillar 3 viz: case timeline / chain of custody ---- */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.case-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.case-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--good);
}
.case-status .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  animation: livedot 2s infinite;
}
@keyframes livedot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--rule);
}
.t-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 0;
  position: relative;
  cursor: pointer;
  transition: opacity .25s;
}
.t-step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink-3);
  transition: all .3s;
}
.t-step.done::before {
  background: var(--accent);
  border-color: var(--accent);
}
.t-step.active::before {
  background: var(--good);
  border-color: var(--good);
  box-shadow: 0 0 0 4px rgba(74,107,74,0.18);
}
.t-step.future { opacity: 0.45; }

.t-step .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-step .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-step .what {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.t-step .who {
  font-size: 12px;
  color: var(--ink-3);
}
.t-step .when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Roles ---------- */

.roles {
  background: var(--ink);
  color: var(--paper);
}
.roles .eyebrow { color: var(--accent-soft); }
.roles .eyebrow .dot { background: var(--accent-soft); }
.roles h2 { color: var(--paper); }
.roles .lede { color: rgba(244,241,234,0.7); }
.roles .section-head { border-bottom-color: rgba(244,241,234,0.12); }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244,241,234,0.12);
}
@media (max-width: 1000px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .roles-grid { grid-template-columns: 1fr; } }

.role-card {
  padding: 36px 24px;
  border-right: 1px solid rgba(244,241,234,0.12);
  border-bottom: 1px solid rgba(244,241,234,0.12);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .35s;
  position: relative;
}
.role-card:last-child { border-right: none; }
@media (max-width: 1000px) {
  .role-card:nth-child(2n) { border-right: none; }
  .role-card { border-right: 1px solid rgba(244,241,234,0.12) !important; }
  .role-card:nth-child(2n) { border-right: none !important; }
}
.role-card:hover {
  background: rgba(244,241,234,0.04);
}
.role-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(244,241,234,0.4);
  letter-spacing: 0.14em;
}
.role-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--paper);
  line-height: 1.1;
}
.role-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(244,241,234,0.65);
  margin-top: auto;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
  font-size: 16px;
  color: var(--ink-2);
}
.faq-item.open .faq-toggle {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 8px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}
.faq-item.open .faq-a {
  max-height: 280px;
  padding: 0 8px 28px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-left h2 {
  margin-bottom: 24px;
}
.contact-left p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 42ch;
}
.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.contact-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact-info-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-info-row .val {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s;
  outline: none;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231c1b18' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field textarea { min-height: 100px; }

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  font-family: var(--sans);
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 14px;
}
.form-fine {
  font-size: 12px;
  color: var(--ink-3);
  max-width: 32ch;
  line-height: 1.4;
}

.form.submitted {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 420px;
  gap: 12px;
}
.form-success-mark {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}
.form-success-h {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
}
.form-success-p {
  color: var(--ink-2);
  max-width: 36ch;
}

/* ---------- Footer ---------- */

footer {
  background: var(--paper);
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col li a { color: var(--ink-2); transition: color .2s; }
.footer-col li a:hover { color: var(--ink); }

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 16px;
}
.footer-tag {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 38ch;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Misc utility ---------- */

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.accent { color: var(--accent); }
