:root {
  --ink: #111411;
  --paper: #f3f0e7;
  --paper-deep: #e8e3d6;
  --acid: #d8ff42;
  --blue: #4e72ff;
  --muted: #64675f;
  --line: rgba(17, 20, 17, 0.17);
  --radius: 1.25rem;
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 20, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 17, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--page);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--acid);
  background: var(--ink);
  font: 500 0.72rem/1 "DM Mono", monospace;
  letter-spacing: -0.06em;
}

.brand-name { font-size: 0.92rem; letter-spacing: 0.05em; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta span { color: var(--blue); font-size: 1.1rem; }

.hero {
  width: var(--page);
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  padding: clamp(4rem, 8vw, 8rem) 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow,
.section-label,
.system-head,
.decision-system small {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(78, 114, 255, 0.14);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 700;
}

h1 em { display: block; color: var(--blue); font-style: normal; }

.hero-intro {
  max-width: 650px;
  margin: 2rem 0 0;
  color: #41443e;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.button {
  min-height: 54px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary { color: white; background: var(--ink); }
.button-secondary { background: rgba(255, 255, 255, 0.2); }
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--acid); }
.button:focus-visible, .header-cta:focus-visible, .brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.decision-system {
  position: relative;
  padding: 1.25rem;
  color: white;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: 22px 22px 0 var(--acid);
  overflow: hidden;
}

.decision-system::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -110px;
  top: -115px;
  border-radius: 50%;
  border: 45px solid rgba(78, 114, 255, 0.42);
}

.system-head {
  position: relative;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #a9aca5;
  font-size: 0.64rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.live-indicator { color: var(--acid); }

.signal-card,
.system-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-card { margin-top: 1rem; }
.signal-card div, .system-result div { display: grid; gap: 0.25rem; }
.signal-card small, .system-result small, .decision-grid small { color: #a9aca5; font-size: 0.58rem; }
.signal-card strong, .system-result strong, .decision-grid strong { font-size: 0.82rem; }

.signal-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font: 500 0.67rem/1 "DM Mono", monospace;
}

.status-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--acid); }

.system-path { height: 54px; display: flex; justify-content: center; align-items: center; gap: 7px; }
.system-path span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.system-path span:nth-child(2) { opacity: 0.65; }
.system-path span:nth-child(3) { opacity: 0.35; }

.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.16); }
.decision-grid div { min-height: 86px; padding: 1rem; display: grid; align-content: space-between; background: #1b1e1b; }
.system-result { margin-top: 1px; background: var(--blue); border-color: var(--blue); }
.system-result small { color: rgba(255, 255, 255, 0.72); }
.system-result span { margin-left: auto; font-size: 1.5rem; }

.discipline-strip {
  padding: 1.15rem max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  background: var(--ink);
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.discipline-strip i { color: var(--acid); font-style: normal; }

.point-of-view {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
}

.section-label { margin: 0; color: var(--muted); font-size: 0.68rem; }
.point-of-view h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.05em; font-weight: 500; }
.point-of-view h2 span { color: var(--muted); }
.point-of-view h2 strong { font-weight: 700; text-decoration: underline; text-decoration-color: var(--acid); text-decoration-thickness: 0.18em; text-underline-offset: 0.08em; }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 680px); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .decision-system { max-width: 560px; }
  .point-of-view { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 76px; }
  .header-cta { font-size: 0; }
  .header-cta span { font-size: 1.4rem; }
  .brand-mark { width: 40px; }
  .brand-name { font-size: 0.78rem; }
  .hero { padding-top: 3.5rem; gap: 3rem; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .decision-system { box-shadow: 10px 10px 0 var(--acid); }
  .discipline-strip { flex-wrap: wrap; justify-content: center; padding-block: 1.3rem; }
}

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

/* Complete site sections */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav > a:not(.header-cta) {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.header-cta):hover { color: var(--ink); }
.menu-toggle { display: none; }

.principles {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 clamp(6rem, 10vw, 10rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.principle {
  min-height: 430px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}

.principle-ai { background: var(--acid); }
.principle-stop { color: white; background: var(--blue); }
.principle-stop .section-label, .principle-stop p { color: rgba(255, 255, 255, 0.74); }
.principle-number { font: 500 0.65rem/1 "DM Mono", monospace; }
.principle h3 { margin: 1rem 0; font-size: 1.65rem; line-height: 1.1; letter-spacing: -0.04em; }
.principle p:not(.section-label) { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.principle-decision { padding-top: 1rem; border-top: 1px solid currentColor; font: 500 0.65rem/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em; }

.section-shell { width: var(--page); margin: 0 auto; }
.services { padding: clamp(6rem, 10vw, 10rem) 0; }

.section-intro {
  display: grid;
  grid-template-columns: 0.45fr 1.1fr 0.45fr;
  align-items: start;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-intro h2,
.about-statement h2,
.contact h2,
.production-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.section-intro > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.service-list { border-top: 1px solid var(--line); }

.service-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr 0.7fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-title { display: flex; align-items: baseline; gap: 1rem; }
.service-title span, .use-case-grid article > span, .process-list > li > span, .production-list span { font: 500 0.65rem/1 "DM Mono", monospace; color: var(--blue); }
.service-title h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.03em; }
.service-card > p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.service-card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.8rem; line-height: 1.8; }
.service-card li::before { content: "+"; margin-right: 0.55rem; color: var(--blue); }
.service-output { align-self: center; padding: 0.8rem; border: 1px solid var(--line); font: 500 0.57rem/1.45 "DM Mono", monospace; text-transform: uppercase; letter-spacing: 0.05em; }
.service-card-featured .service-output { background: var(--acid); border-color: var(--acid); }

.approach { padding: clamp(6rem, 10vw, 10rem) 0; color: white; background: var(--ink); }
.section-intro-light { grid-template-columns: 0.45fr 1.55fr; }
.section-intro-light .section-label { color: var(--acid); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.process-list li { display: grid; grid-template-columns: 0.25fr 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.process-list li > span { color: var(--acid); padding-top: 0.35rem; }
.process-list li div { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 2rem; }
.process-list h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -0.04em; }
.process-list p { max-width: 620px; margin: 0; color: #aeb1ab; line-height: 1.65; }

.use-cases { padding: clamp(6rem, 10vw, 10rem) 0; }
.section-intro-wide { grid-template-columns: 0.45fr 1.55fr; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use-case-grid article { min-height: 250px; padding: 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.use-case-grid h3 { margin: auto 0 0.75rem; font-size: 1.2rem; letter-spacing: -0.03em; }
.use-case-grid p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

.production-band {
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 8vw, 8rem);
  color: white;
  background: var(--blue);
}

.production-copy .section-label { color: var(--acid); margin-bottom: 1.5rem; }
.production-copy h2 span { color: rgba(255, 255, 255, 0.58); }
.production-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.production-list li { padding: 1rem 0; display: flex; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-weight: 700; }
.production-list span { color: var(--acid); }

.about { padding: clamp(6rem, 10vw, 10rem) 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.about-statement .section-label { margin-bottom: 1.5rem; }
.about-profile { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.profile-monogram { display: grid; place-items: center; width: 72px; height: 72px; color: var(--acid); background: var(--ink); border-radius: 50%; font: 500 0.95rem/1 "DM Mono", monospace; }
.about-profile h3 { margin: 1rem 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.25; letter-spacing: -0.035em; }
.about-profile p:not(.section-label) { color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; gap: 0.6rem; margin-top: 0.8rem; font-size: 0.82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 0.3em; }
.text-link span { color: var(--blue); }

.contact {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 8vw, 8rem);
  color: white;
  background: var(--ink);
  border-radius: var(--radius);
}

.contact .section-label { margin-bottom: 1.5rem; color: var(--acid); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.contact-actions p { margin: 0 0 0.5rem; color: #b7bab4; line-height: 1.65; }
.button-acid { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.contact-email { color: #b7bab4; font: 400 0.68rem/1 "DM Mono", monospace; text-underline-offset: 0.3em; }

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { width: 36px; }
.site-footer > p { text-align: center; }
.site-footer > div { display: flex; justify-content: flex-end; gap: 1rem; }

.legal-page { width: min(780px, calc(100vw - 48px)); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0; }
.legal-page > h1 { margin-top: 1rem; font-size: clamp(3rem, 7vw, 6rem); }
.legal-updated { margin: 1.5rem 0 4rem; color: var(--muted); font: 400 0.7rem/1 "DM Mono", monospace; }
.legal-page section { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal-page section h2 { margin: 0 0 0.8rem; font-size: 1.3rem; }
.legal-page section p { margin: 0; color: var(--muted); line-height: 1.75; }

.not-found { width: min(760px, calc(100vw - 48px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found .section-label { margin: 2rem 0 1rem; }
.not-found h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.not-found > p:not(.section-label) { margin: 1.5rem 0 2rem; color: var(--muted); }

@media (hover: hover) {
  .service-card { transition: padding 180ms ease, background 180ms ease; }
  .service-card:hover { padding-inline: 1rem; background: rgba(255, 255, 255, 0.38); }
  .use-case-grid article { transition: background 180ms ease; }
  .use-case-grid article:hover { background: var(--acid); }
}

@media (max-width: 900px) {
  .site-nav > a:not(.header-cta) { display: none; }
  .principles { grid-template-columns: 1fr; background: transparent; gap: 1px; }
  .principle { min-height: 330px; }
  .section-intro, .section-intro-light, .section-intro-wide { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro > p:last-child { max-width: 560px; }
  .service-card { grid-template-columns: 1fr 1fr; }
  .service-output { align-self: start; }
  .use-case-grid { grid-template-columns: 1fr 1fr; }
  .production-band, .about, .contact { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer > div { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 20;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    color: white;
    background: var(--ink);
    border-radius: 0.75rem;
    box-shadow: 8px 8px 0 var(--acid);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.header-cta) { display: block; padding: 0.65rem; color: white; }
  .site-nav .header-cta { padding: 0.85rem; color: var(--ink); background: var(--acid); justify-content: space-between; font-size: 0.78rem; }
  .menu-toggle { position: relative; width: 42px; height: 42px; padding: 10px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); background: transparent; }
  .menu-toggle > span:not(.sr-only) { width: 100%; height: 2px; display: block; background: var(--ink); }
  .site-header > .header-cta { font-size: 0.72rem; }
  .service-card { grid-template-columns: 1fr; gap: 1rem; }
  .process-list li { grid-template-columns: auto 1fr; gap: 1rem; }
  .process-list li div { grid-template-columns: 1fr; gap: 0.75rem; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-grid article { min-height: 220px; }
  .about-profile { grid-template-columns: 1fr; }
  .contact { padding: 2rem 1.4rem; }
}
