@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --graphite: #14171c;
  --carbon: #1d222a;
  --bone: #edeae3;
  --slate: #8a93a1;
  --brass: #c89b3c;
  --line: rgba(237, 234, 227, 0.12);
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--graphite);
  color: var(--bone);
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
.nav-toggle:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 28, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(100%, calc(var(--content-width) + (var(--page-pad) * 2)));
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  gap: 2rem;
}

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

.brand span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

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

.site-nav a,
.header-cta {
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a {
  color: var(--slate);
}

.site-nav a:hover {
  color: var(--bone);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 0.85rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -0.28rem;
}

.nav-toggle__icon::after {
  top: 0.28rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-cta {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--brass);
  font-weight: 500;
  white-space: nowrap;
}

main {
  overflow: clip;
}

.hero,
.section,
.contact,
.site-footer {
  width: min(100%, calc(var(--content-width) + (var(--page-pad) * 2)));
  margin: 0 auto;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.98fr);
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--brass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.hero-subline {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: #b8bec7;
  font-size: clamp(1.0625rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.primary-cta {
  display: inline-block;
  padding: 0.76rem 0.95rem 0.7rem;
  border: 1px solid var(--brass);
  color: var(--bone);
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.primary-cta:hover {
  background: var(--brass);
  color: var(--graphite);
}

.agent-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--carbon);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.18);
}

.agent-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 2.7rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  gap: 0.45rem;
}

.agent-panel-top span {
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid #69717d;
  border-radius: 50%;
}

.agent-panel-top span:first-child {
  border-color: var(--brass);
  background: var(--brass);
}

.agent-log {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 3vw, 2rem);
  color: #c7cbd1;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.69rem, 1.08vw, 0.79rem);
  line-height: 1.65;
}

.agent-log p {
  min-height: 1.65em;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.agent-log p + p {
  margin-top: 0.72rem;
}

.agent-log__static {
  position: relative;
}

.agent-log__visual {
  position: absolute;
  inset: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  visibility: hidden;
}

.agent-log.is-animated .agent-log__static {
  visibility: hidden;
}

.agent-log.is-animated .agent-log__visual {
  visibility: visible;
}

.agent-log__visual.is-fading {
  opacity: 0;
}

.agent-cursor {
  display: inline-block;
  width: 0.52em;
  height: 1.08em;
  margin-left: 0.18em;
  background: var(--brass);
  vertical-align: -0.16em;
}

.motion-ok .agent-log__visual {
  transition: opacity 0.65s ease;
}

.motion-ok .agent-cursor {
  animation: cursor-blink 0.8s steps(1, end) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.section {
  padding-top: clamp(5rem, 9vw, 8rem);
}

.section-rule {
  width: 100%;
  height: 1px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  background: var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.section h2 {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}

.section-copy {
  max-width: 39rem;
  color: #b8bec7;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.section-copy strong {
  color: var(--bone);
  font-weight: 500;
}

.section-copy p + p {
  margin-top: 1.35rem;
}

.section-heading {
  margin-bottom: clamp(2.2rem, 5vw, 4rem) !important;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  min-height: 20rem;
  padding: 2rem clamp(1.35rem, 3vw, 2.25rem) 2.4rem;
}

.card + .card {
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--brass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.card h3,
.principles-list h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.card h3 {
  margin-top: clamp(4.5rem, 7vw, 7rem);
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: #aab1bb;
  font-size: 0.98rem;
  line-height: 1.65;
}

.steps,
.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
  gap: 1.2rem;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps p {
  margin: 0;
  color: #aeb5be;
}

.steps strong {
  color: var(--bone);
  font-weight: 500;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}

.principles-list li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.8rem;
}

.principle-number {
  color: var(--brass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.principles-list h3 {
  margin-bottom: 0.75rem;
}

.principles-list p {
  margin-bottom: 0;
  color: #aeb5be;
  font-size: 0.98rem;
}

.serif-close {
  color: var(--bone);
  font-family: "Instrument Serif", serif;
  font-size: 1.45rem;
  line-height: 1.35;
}

.contact {
  padding-top: clamp(7rem, 13vw, 12rem);
  padding-bottom: clamp(7rem, 12vw, 11rem);
}

.contact h2 {
  max-width: 55rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.contact a {
  border-bottom: 1px solid var(--brass);
  color: var(--bone);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0;
}

.motion-ok .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 959px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin-left: 0;
    padding-bottom: 0.9rem;
    gap: 0.55rem 1.25rem;
  }

  .nav-enhanced .header-inner {
    flex-wrap: nowrap;
  }

  .nav-enhanced .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    order: initial;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.4rem var(--page-pad) 0.8rem;
    border-bottom: 1px solid var(--line);
    background: var(--graphite);
    gap: 0;
  }

  .nav-enhanced .site-nav[hidden] {
    display: none;
  }

  .nav-enhanced .site-nav a {
    padding: 0.65rem 0;
    border-top: 1px solid var(--line);
  }

  .nav-enhanced .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav-enhanced .header-cta {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .agent-panel {
    max-width: 46rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .section-grid--work {
    gap: 3rem;
  }

  .section-copy {
    max-width: 46rem;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .principles-list li {
    max-width: 42rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 4rem;
    gap: 1rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand span {
    font-size: 0.61rem;
  }

  .header-cta {
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 4.2rem;
    padding-bottom: 4rem;
    gap: 3.25rem;
  }

  .eyebrow {
    font-size: 0.64rem;
    line-height: 1.5;
  }

  h1 {
    line-height: 1;
  }

  .agent-log {
    padding: 1.25rem;
    font-size: 0.67rem;
  }

  .agent-log__visual {
    padding: 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
    padding: 1.6rem 0 2rem;
  }

  .card + .card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card h3 {
    margin-top: 2.5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
