:root {
  --ink: #0c0c0c;
  --ink-soft: #171717;
  --paper: #f3f0e9;
  --paper-2: #e9e5dc;
  --muted: #6d6a64;
  --line: rgba(12, 12, 12, 0.18);
  --line-dark: rgba(243, 240, 233, 0.18);
  --accent: #8f1f1f;
  --accent-dark: #6e1717;
  --white: #fff;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; display: block; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 112px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 233, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  font-weight: 800;
  letter-spacing: .13em;
  font-size: 17px;
}
.brand-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--ink);
  transition: right .2s ease;
}
.site-nav a:not(.nav-contact):hover::after { right: 0; }
.nav-contact {
  border: 1px solid var(--ink);
  padding: 9px 13px;
  transition: background-color .2s ease, color .2s ease;
}
.nav-contact:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px 0; }

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  gap: 88px;
  align-items: end;
}
.eyebrow,
.section-index,
.mini-label,
.project-meta,
.visual-topline,
.visual-footer,
.system-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 28px;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8vw, 128px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 650;
  max-width: 980px;
}
.hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 680px;
  margin: 40px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: #343330;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button {
  appearance: none;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); }
.text-link { text-underline-offset: 5px; font-size: 14px; }

.hero-system {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  align-self: stretch;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}
.system-label { font-size: 10px; color: var(--muted); }
.system-track { position: relative; flex: 1; min-height: 235px; margin: 28px 0; }
.system-node {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border-radius: 50%;
  z-index: 2;
}
.node-a { left: 8%; top: 72%; }
.node-b { left: 36%; top: 38%; }
.node-c { left: 66%; top: 58%; background: var(--accent); }
.node-d { right: 5%; top: 18%; }
.system-line { position: absolute; height: 1px; background: var(--ink); transform-origin: left center; opacity: .65; }
.line-a { left: 9%; top: 73%; width: 39%; transform: rotate(-38deg); }
.line-b { left: 37%; top: 39%; width: 35%; transform: rotate(22deg); }
.line-c { left: 67%; top: 59%; width: 34%; transform: rotate(-43deg); }
.system-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.system-list li { display: grid; grid-template-columns: 44px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.system-list span { font-family: var(--mono); font-size: 10px; color: var(--muted); padding-top: 3px; }

.statement { padding: 96px 0; background: var(--ink); color: var(--paper); }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.section-index { margin: 0; font-size: 10px; color: var(--muted); }
.statement .section-index { color: #8e8b84; }
.statement-copy { margin: 0; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.045em; max-width: 1050px; }

.section-heading { margin-bottom: 64px; }
.section-heading h2 { margin: 16px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }

.project { border-top: 1px solid var(--ink); display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 18px 0 96px; }
.project + .project { margin-top: 28px; }
.project-meta { font-size: 10px; color: var(--muted); }
.project-meta p { margin: 0 0 8px; }
.project-number { color: var(--ink); font-size: 15px; font-weight: 700; margin-bottom: 24px !important; }
.project-title-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: end; margin-bottom: 48px; }
.project-title-row.compact { margin-bottom: 36px; }
.project-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--accent); }
.project h3 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.05em; font-weight: 590; }
.project-summary { margin: 0; color: #484641; font-size: 18px; line-height: 1.55; }

.product-visual { background: var(--ink); color: var(--paper); padding: 20px; min-height: 620px; display: flex; flex-direction: column; margin-bottom: 48px; }
.visual-topline, .visual-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 9px; color: #9d9a93; }
.visual-footer { justify-content: flex-start; flex-wrap: wrap; gap: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.architecture-map { flex: 1; padding: 60px 4% 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.arch-node { border: 1px solid #595752; width: min(260px, 100%); padding: 17px 18px; background: #121212; }
.arch-node small { display: block; color: #77746e; font: 9px/1.2 var(--mono); letter-spacing: .08em; margin-bottom: 7px; }
.arch-node strong { font-size: 15px; font-weight: 600; }
.arch-primary { border-color: var(--accent); }
.arch-connector { width: 1px; height: 42px; background: #595752; }
.arch-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.arch-row::before { content: ""; position: absolute; left: 16.666%; right: 16.666%; top: -21px; height: 1px; background: #595752; }
.arch-row .arch-node { width: 100%; }
.arch-row-bottom { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.arch-row-bottom::before { display: none; }

.project-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin: 48px 0 56px; }
.project-story p { margin: 0; color: #45433f; font-size: 16px; }
.project-story .mini-label { margin-bottom: 13px; color: var(--muted); font-size: 9px; }
.capability-rail { border-top: 1px solid var(--line); }
.capability-rail > div { display: grid; grid-template-columns: 54px 220px 1fr; gap: 22px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.capability-rail span { font: 10px var(--mono); color: var(--muted); }
.capability-rail strong { font-size: 15px; }
.capability-rail p { margin: 0; color: #59564f; }
.role-strip { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ink); }
.role-strip p { margin: 0; }
.role-strip .mini-label { font-size: 9px; color: var(--muted); }

.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.metric-band > div { padding: 24px 18px 22px 0; }
.metric-band > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.metric-band strong { display: block; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1; }
.metric-band span { display: block; color: var(--muted); font-size: 12px; margin-top: 9px; }

.services { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; }
.sticky-heading { align-self: start; position: sticky; top: 112px; margin-bottom: 0; }
.sticky-heading h2 { font-size: clamp(44px, 5vw, 72px); }
.services-list { border-top: 1px solid var(--ink); }
.services-list article { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.services-list article > span { font: 10px var(--mono); color: var(--muted); padding-top: 6px; }
.services-list h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.03em; }
.services-list p { margin: 0; color: #54514b; max-width: 620px; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.about h2 { margin: 18px 0 0; font-size: clamp(44px, 5.6vw, 80px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.about-copy { align-self: end; }
.about-copy > p { margin: 0 0 22px; font-size: 20px; line-height: 1.55; color: #3f3d39; }
.about-facts { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.contact { background: var(--accent); color: var(--paper); }
.contact .section-index { color: #d5b2ae; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; }
.contact-intro h2 { margin: 18px 0 24px; font-size: clamp(54px, 6.3vw, 94px); line-height: .93; letter-spacing: -.06em; font-weight: 600; }
.contact-intro > p:last-child { max-width: 520px; color: #e3cbc7; font-size: 18px; }
.contact-form { border-top: 1px solid rgba(255,255,255,.48); padding-top: 18px; }
.contact-form label { display: block; margin-bottom: 24px; }
.contact-form label > span { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: #e6cbc8; }
.contact-form label small { font: inherit; opacity: .7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.46);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  outline: 0;
  padding: 8px 0 12px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 10px; }
.button-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-note { margin: 13px 0 0; font-size: 11px; color: #dab8b4; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { background: var(--ink); color: var(--paper); padding: 38px 0 42px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.footer-inner p { margin: 8px 0 0; color: #8d8a84; font-size: 13px; }
.footer-meta { display: flex; gap: 24px; align-items: center; color: #96938c; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.footer-meta a { color: var(--paper); text-decoration: none; }

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

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 1240px); }
  .hero { min-height: auto; }
  .hero-grid, .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-system { min-height: 400px; }
  .statement-grid { grid-template-columns: 1fr; gap: 24px; }
  .project { grid-template-columns: 1fr; gap: 18px; }
  .project-meta { display: flex; gap: 18px; align-items: center; }
  .project-meta p { margin: 0 !important; }
  .project-number { margin-right: auto !important; }
  .project-title-row { gap: 40px; }
  .sticky-heading { position: static; }
  .metric-band { grid-template-columns: 1fr 1fr; }
  .metric-band > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .metric-band > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 28px); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 66px; }
  .brand-sub { display: none; }
  .menu-toggle { display: block; cursor: pointer; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 14px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-contact { margin-top: 14px; text-align: center; border: 1px solid var(--ink); }

  .hero { padding: 60px 0 66px; }
  .hero-grid { gap: 58px; }
  .hero h1 { font-size: clamp(54px, 17vw, 88px); }
  .hero-lead { font-size: 18px; margin-top: 28px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-system { min-height: 370px; }
  .statement { padding: 70px 0; }
  .statement-copy { font-size: 35px; }

  .section-heading { margin-bottom: 44px; }
  .section-heading h2 { font-size: 47px; }
  .project { padding-bottom: 70px; }
  .project-title-row, .project-title-row.compact { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .project h3 { font-size: 46px; }
  .project-summary { font-size: 16px; }
  .product-visual { min-height: 560px; margin-inline: -14px; padding: 15px; }
  .architecture-map { padding-inline: 0; }
  .arch-row { grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .arch-row::before { display: none; }
  .arch-node { width: 100%; }
  .arch-connector { height: 28px; }
  .arch-row-bottom { grid-template-columns: 1fr; }
  .project-story { grid-template-columns: 1fr; gap: 30px; margin: 36px 0 42px; }
  .capability-rail > div { grid-template-columns: 38px 1fr; gap: 14px; }
  .capability-rail p { grid-column: 2; }
  .role-strip { grid-template-columns: 1fr; gap: 10px; }
  .metric-band { grid-template-columns: 1fr; }
  .metric-band > div, .metric-band > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .metric-band > div:first-child { border-top: 0; }

  .services-grid, .about-grid, .contact-grid { gap: 48px; }
  .services-list article { grid-template-columns: 42px 1fr; }
  .about h2 { font-size: 47px; }
  .about-copy > p { font-size: 18px; }
  .contact-intro h2 { font-size: 58px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { width: 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 53px; }
  .statement-copy { font-size: 30px; }
  .project h3, .section-heading h2, .about h2 { font-size: 40px; }
  .contact-intro h2 { font-size: 48px; }
}
