:root {
  --paper: #f4f0e7;
  --paper-deep: #e8e2d7;
  --ink: #171816;
  --ink-soft: #6f6b63;
  --rust: #b64731;
  --line: rgba(23, 24, 22, 0.2);
  --line-soft: rgba(23, 24, 22, 0.1);
  --frame-width: 1600px;
}

* { box-sizing: border-box; }

.is-framed body { display: none; }

html {
  min-width: 320px;
  background: #d9d5ca;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.page-frame {
  --tilt-x: 61deg;
  --tilt-z: -31deg;
  --glow-x: 0px;
  --glow-y: 0px;
  position: relative;
  isolation: isolate;
  width: min(100%, var(--frame-width));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  border-inline: 1px solid var(--line);
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.82), transparent 32rem),
    linear-gradient(115deg, rgba(255,255,255,.18), transparent 48%),
    var(--paper);
}

.page-frame::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(23,24,22,.7) 0, rgba(23,24,22,.7) .35px, transparent .55px, transparent 3px);
  background-size: 4px 4px;
  content: "";
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.ambient-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  top: -20rem;
  left: 32%;
  width: min(70vw, 68rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(182,71,49,.13), rgba(255,255,255,.14) 34%, transparent 68%);
  filter: blur(18px);
  transform: translate3d(var(--glow-x), var(--glow-y), 0);
  transition: transform 900ms cubic-bezier(.16,1,.3,1);
  animation: glow-breathe 8s ease-in-out infinite;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: 70px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding-inline: clamp(1.5rem, 2.2vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: max-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}

.header-discipline, .header-contact,
.eyebrow, .proof-note, .practice-areas > p,
.rail-title, .rail-index, .system-label,
.contact-kicker, .contact-copy > p:last-child,
.contact-form label > span, .form-actions > p,
.site-footer {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.header-discipline { margin: 0; color: var(--ink-soft); }
.header-contact {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.header-contact span:last-child { color: var(--rust); font-size: .85rem; transition: transform 180ms ease; }
.header-contact:hover span:last-child { transform: translate(2px, 2px); }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 134px);
  min-height: calc(100svh - 134px);
  grid-template-columns: clamp(3.7rem, 4.4vw, 4.5rem) minmax(31rem, .94fr) minmax(34rem, 1.06fr);
  border-bottom: 1px solid var(--line);
}

.practice-rail {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid var(--line);
}
.rail-cross { position: absolute; top: 1.7rem; left: 50%; color: var(--rust); font-size: 1.25rem; font-weight: 200; transform: translateX(-50%); }
.rail-title { position: absolute; top: 7.5rem; left: 50%; writing-mode: vertical-rl; white-space: nowrap; transform: translateX(-50%) rotate(180deg); }
.rail-index { position: absolute; bottom: 2rem; left: 50%; color: var(--ink-soft); writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); }

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  padding: clamp(3.4rem, 6vh, 5.3rem) clamp(1.5rem, 3vw, 3.1rem) 2.4rem;
}

.eyebrow { margin: 0 0 clamp(2.7rem, 5.5vh, 4.3rem); color: var(--ink-soft); }
.eyebrow span { margin-right: .75rem; color: var(--rust); }

h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(5.7rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -.076em;
  line-height: .79;
}
h1 em {
  padding-left: .015em;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82em;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .9;
}

.hero-note {
  margin: clamp(2.9rem, 6vh, 4.6rem) 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.5vw, 1.48rem);
  font-style: italic;
}

.proof-note {
  display: flex;
  margin: 1.8rem 0 0;
  align-items: center;
  gap: .85rem;
}
.proof-note i { width: .43rem; aspect-ratio: 1; border-radius: 50%; background: var(--rust); }

.practice-areas { margin-top: auto; padding-top: 3rem; }
.practice-areas > p { margin: 0 0 1.1rem; color: var(--rust); }
.practice-areas > div { display: flex; align-items: center; gap: 1rem; font-size: clamp(.86rem, 1.05vw, 1.06rem); white-space: nowrap; }
.practice-areas i { color: var(--rust); font-style: normal; }

.system-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
  perspective: 1200px;
}

.system-glow {
  position: absolute;
  top: 14%;
  left: 12%;
  width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(182,71,49,.1), rgba(255,255,255,.2) 30%, transparent 66%);
  filter: blur(20px);
  animation: system-breathe 7s ease-in-out infinite;
}

.system-stack {
  position: absolute;
  top: 50%;
  left: 48%;
  width: min(41vw, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -51%) rotateX(var(--tilt-x)) rotateZ(var(--tilt-z));
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(.2,.75,.2,1);
}

.plane {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(23,24,22,.31);
  background-color: rgba(246,243,236,.35);
  background-image:
    linear-gradient(rgba(23,24,22,.105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,24,22,.105) 1px, transparent 1px);
  background-size: 8.333% 8.333%;
  box-shadow: 0 24px 48px rgba(38,29,22,.06);
  transform-style: preserve-3d;
}
.plane::before, .plane::after { position: absolute; background: var(--rust); content: ""; opacity: .78; }
.plane::before { right: 14%; bottom: 8%; width: 17%; height: 3px; }
.plane::after { top: 13%; left: 18%; width: 3px; height: 16%; }
.plane-context { transform: translateZ(180px); }
.plane-model { transform: translateZ(10px); }
.plane-tools { transform: translateZ(-155px); }

.corner { position: absolute; width: .7rem; height: .7rem; border-color: var(--rust); }
.corner-a { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-b { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }

.node {
  --node-delay: 0s;
  position: absolute;
  width: .42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) translateZ(5px);
  animation: node-pulse 3.4s var(--node-delay) ease-in-out infinite;
}
.node.rust { background: var(--rust); }
.n1 { top: 18%; left: 14%; --node-delay: -.2s; }
.n2 { top: 31%; left: 28%; --node-delay: -.6s; }
.n3 { top: 20%; left: 43%; --node-delay: -1s; }
.n4 { top: 35%; left: 58%; --node-delay: -1.4s; }
.n5 { top: 18%; left: 72%; --node-delay: -1.8s; }
.n6 { top: 61%; left: 20%; --node-delay: -2.2s; }
.n7 { top: 71%; left: 57%; --node-delay: -2.6s; }
.n8 { top: 78%; left: 84%; --node-delay: -3s; }

.voxel-field {
  position: absolute;
  top: 38%;
  left: 32%;
  display: grid;
  width: 38%;
  grid-template-columns: repeat(7, 1fr);
  gap: .2rem;
  transform: translateZ(14px);
  transform-style: preserve-3d;
}
.voxel-field i {
  aspect-ratio: 1;
  border: 1px solid rgba(244,240,231,.72);
  background: #67665f;
  box-shadow: 4px 5px 0 rgba(36,34,30,.13);
  animation: voxel-wave 4s ease-in-out infinite;
}
.voxel-field i:nth-child(4n), .voxel-field i:nth-child(11) { background: var(--rust); }
.voxel-field i:nth-child(3n) { animation-delay: -1.4s; }
.voxel-field i:nth-child(5n) { animation-delay: -2.2s; }

.vertical-wire {
  position: absolute;
  width: 1px;
  height: 330px;
  background: linear-gradient(transparent, rgba(23,24,22,.52), transparent);
  transform: rotateX(-61deg);
  transform-origin: top;
}
.wire-a { top: 18%; left: 22%; }
.wire-b { top: 10%; left: 51%; background: linear-gradient(transparent, var(--rust), transparent); }
.wire-c { top: 26%; right: 22%; }

.data-pulse {
  position: absolute;
  width: .46rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 6px rgba(182,71,49,.08);
}
.pulse-a { top: 10%; left: 51%; animation: data-travel 4.8s ease-in-out infinite; }
.pulse-b { top: 18%; left: 22%; background: var(--ink); animation: data-travel 5.7s -2s ease-in-out infinite; }

.system-label {
  position: absolute;
  right: 3%;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.system-label i { position: relative; display: block; width: 3.6rem; height: 1px; background: currentColor; opacity: .38; }
.system-label i::before { position: absolute; top: -.13rem; left: -.13rem; width: .28rem; aspect-ratio: 1; border-radius: 50%; background: var(--rust); content: ""; }
.label-context { top: 20%; }
.label-model { top: 49%; }
.label-tools { top: 78%; }

.contact-section {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 43rem;
  grid-template-columns: minmax(18rem, .82fr) minmax(28rem, 1.18fr);
  border-bottom: 1px solid var(--line);
  background: rgba(244,240,231,.88);
}

.contact-copy {
  display: flex;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(2.2rem, 6vw, 6.5rem);
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.contact-kicker { margin: 0 0 auto; color: var(--rust); }
.contact-copy h2 {
  margin: 4rem 0 2rem;
  font-size: clamp(4rem, 7vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .82;
}
.contact-copy h2 em { color: var(--rust); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.contact-copy > p:last-child { margin: 0; color: var(--ink-soft); }

.contact-form-wrap { display: flex; padding: clamp(4rem, 8vw, 7.5rem) clamp(2rem, 5vw, 5rem); align-items: center; }
.contact-form { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); }
.contact-form label { display: block; margin-bottom: 2rem; }
.contact-form label > span { display: block; margin-bottom: .65rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 180ms ease;
}
.contact-form input { height: 3rem; }
.contact-form textarea { min-height: 8rem; padding-block: .8rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rust); outline: 0; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #9b271b; }
.form-trap { position: absolute !important; left: -10000px !important; overflow: hidden; width: 1px; height: 1px; }

.form-actions { display: flex; margin-top: 2.2rem; align-items: center; gap: 1.5rem; }
.form-actions button {
  display: inline-flex;
  min-width: 11rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ink);
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.form-actions button:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.form-actions button:disabled { cursor: wait; opacity: .55; transform: none; }
.form-actions > p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.form-status { min-height: 1.5rem; margin: 1.2rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.form-status.is-success { color: #375f3a; }
.form-status.is-error { color: #9b271b; }

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 64px;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { color: var(--ink-soft); }

.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.js .eyebrow, .js h1 > span, .js h1 > em,
.js .hero-note, .js .proof-note, .js .practice-areas,
.js .system-stack { opacity: 0; }
.js.is-ready .eyebrow { animation: copy-enter .75s .05s both; }
.js.is-ready h1 > span:first-child { animation: copy-enter .9s .12s both; }
.js.is-ready h1 > em { animation: copy-enter .9s .2s both; }
.js.is-ready h1 > span:last-child { animation: copy-enter .9s .28s both; }
.js.is-ready .hero-note { animation: copy-enter .8s .38s both; }
.js.is-ready .proof-note { animation: copy-enter .8s .46s both; }
.js.is-ready .practice-areas { animation: copy-enter .8s .54s both; }
.js.is-ready .system-stack { animation: stack-enter 1.45s cubic-bezier(.18,.8,.2,1) both; }

@keyframes copy-enter { from { opacity: 0; filter: blur(5px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes stack-enter { from { opacity: 0; transform: translate(-50%, -45%) rotateX(68deg) rotateZ(-38deg) scale(.86); } to { opacity: 1; transform: translate(-50%, -51%) rotateX(var(--tilt-x)) rotateZ(var(--tilt-z)) scale(1); } }
@keyframes glow-breathe { 50% { opacity: .7; transform: translate3d(var(--glow-x), var(--glow-y), 0) scale(1.08); } }
@keyframes system-breathe { 50% { opacity: .68; transform: scale(1.12); } }
@keyframes node-pulse { 50% { transform: translate(-50%, -50%) translateZ(18px) scale(1.45); } }
@keyframes voxel-wave { 50% { transform: translateZ(13px); } }
@keyframes data-travel { 0%,100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(310px); } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 4rem minmax(29rem, .95fr) minmax(28rem, 1.05fr); }
  h1 { font-size: clamp(5.3rem, 9.2vw, 7.2rem); }
  .system-stack { width: min(48vw, 570px); }
  .practice-areas > div { gap: .7rem; font-size: .82rem; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 4rem minmax(0, 1fr); }
  .practice-rail { grid-column: 1; grid-row: 1 / span 2; }
  .hero-copy { min-height: 45rem; grid-column: 2; grid-row: 1; padding-inline: 7vw; }
  h1 { font-size: clamp(5.5rem, 15vw, 8rem); }
  .system-visual { height: 43rem; grid-column: 2; grid-row: 2; }
  .system-stack { left: 47%; width: min(78vw, 610px); }
  .contact-section { grid-template-columns: 1fr; }
  .contact-copy { min-height: 30rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-kicker { margin-bottom: 4rem; }
}

@media (max-width: 640px) {
  .site-header { min-height: 60px; grid-template-columns: 1fr auto; padding-inline: 1.25rem; }
  .header-discipline { display: none; }
  .wordmark { font-size: 1.2rem; }
  .practice-rail { display: none; }
  .hero { display: block; }
  .hero-copy { min-height: 42rem; padding: 2.8rem 7vw 2rem; }
  .eyebrow { margin-bottom: 3rem; font-size: .58rem; }
  h1 { font-size: clamp(4.25rem, 20vw, 6.2rem); line-height: .82; }
  .hero-note { margin-top: 3.2rem; max-width: 92%; }
  .proof-note { margin-top: 1.55rem; font-size: .56rem; }
  .practice-areas { margin-top: 4rem; padding-top: 0; }
  .practice-areas > div { flex-wrap: wrap; row-gap: .65rem; white-space: normal; font-size: .92rem; }
  .system-visual { height: 31rem; margin-inline: -3vw; }
  .system-stack { width: min(94vw, 470px); }
  .system-label { right: 1%; font-size: .5rem; }
  .system-label i { width: 2.1rem; }
  .contact-copy { min-height: 25rem; padding: 4rem 7vw; }
  .contact-copy h2 { font-size: clamp(4rem, 19vw, 6rem); }
  .contact-form-wrap { padding: 4rem 7vw; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { min-height: 76px; padding-inline: 7vw; font-size: .54rem; }
  .site-footer p:first-child { max-width: 10rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .eyebrow, .js h1 > span, .js h1 > em, .js .hero-note, .js .proof-note, .js .practice-areas, .js .system-stack { opacity: 1; }
}

@media print {
  .ambient-field, .system-visual, .practice-rail, .header-contact, .contact-section { display: none; }
  .page-frame { border: 0; }
  .hero { display: block; min-height: auto; }
  .hero-copy { min-height: auto; padding: 3rem; }
}
