:root {
  color-scheme: light dark;
  --paper: #f6f4ef;
  --paper-deep: #ebe8df;
  --ink: #1b1e1c;
  --muted: #5f655e;
  --line: #d4d2c9;
  --accent: #b23c22;
  --accent-dark: #8f2e1c;
  --green: #2f5146;
  --card: #efede6;
  --shadow: 0 18px 40px rgba(26, 31, 27, .08);
  --max-width: 1180px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171a18;
    --paper-deep: #202521;
    --ink: #f0eee6;
    --muted: #aeb3aa;
    --line: #3a413b;
    --accent: #f17855;
    --accent-dark: #ff906c;
    --green: #a4c8b6;
    --card: #202521;
    --shadow: 0 18px 40px rgba(0, 0, 0, .18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 1rem;
  transform: translateY(-120%);
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(1rem); }
.site-shell { max-width: var(--max-width); margin: 0 auto; padding: 0 2.25rem; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
}
.wordmark strong { font-weight: 400; }
.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: var(--accent);
  color: #fffaf1;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0;
}
nav { display: flex; gap: 1.75rem; }
nav a, .site-footer a { color: var(--muted); font-size: .78rem; text-decoration: none; }
nav a:hover, nav a:focus-visible, .site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.nav-quiet { opacity: .7; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  gap: 6rem;
  align-items: center;
  min-height: 600px;
  padding: 5.5rem 0 6rem;
}
.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow-dot {
  display: inline-block;
  width: .48rem;
  height: .48rem;
  margin: 0 .5rem .05rem 0;
  border-radius: 50%;
  background: var(--accent);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.055em; line-height: 1.05; }
h1 { max-width: 680px; margin-bottom: 1.4rem; font-size: clamp(3.8rem, 7vw, 6.6rem); }
h1 em, h2 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lede { max-width: 32rem; margin-bottom: .9rem; color: var(--ink); font-size: 1.35rem; letter-spacing: -.02em; }
.hero-note { max-width: 31rem; margin-bottom: 2rem; color: var(--muted); font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-height: 2.85rem;
  padding: .65rem 1.05rem;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fffaf1; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-figure {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--green);
}
.figure-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .42;
  mask-image: linear-gradient(to bottom right, black, transparent 75%);
}
.constellation { position: absolute; inset: 50% auto auto 50%; width: 94%; height: auto; transform: translate(-50%, -50%); }
.figure-label { position: absolute; z-index: 1; color: var(--muted); font-size: .62rem; letter-spacing: .16em; }
.figure-label-top { top: 1.3rem; left: 1.3rem; }
.figure-label-bottom { right: 1.3rem; bottom: 1.3rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.figure-index { position: absolute; right: 1.3rem; top: 1.3rem; color: var(--accent); font-family: Georgia, serif; font-size: 1.15rem; }
.figure-index span { padding: 0 .18rem; color: var(--muted); font-family: inherit; font-size: .7rem; }
.section { padding: 6rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-card { min-height: 430px; padding: 1.6rem; background: var(--paper); }
.work-card-featured { background: var(--card); }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.card-tag { color: var(--accent); text-align: right; }
.card-icon { position: relative; display: grid; width: 64px; height: 64px; margin: 3.5rem 0 2rem; place-items: center; color: var(--green); }
.icon-dna span { position: absolute; width: 1px; height: 54px; background: currentColor; transform: rotate(30deg); }
.icon-dna span:nth-child(2) { transform: rotate(-30deg); }
.icon-dna span:nth-child(3) { width: 34px; height: 1px; transform: rotate(0); }
.icon-court { border: 1px solid currentColor; }
.icon-court span { position: absolute; background: currentColor; }
.icon-court span:nth-child(1), .icon-court span:nth-child(2) { width: 1px; height: 100%; top: 0; }
.icon-court span:nth-child(1) { left: 25%; }
.icon-court span:nth-child(2) { right: 25%; }
.icon-court span:nth-child(3), .icon-court span:nth-child(4) { width: 100%; height: 1px; left: 0; }
.icon-court span:nth-child(3) { top: 25%; }
.icon-court span:nth-child(4) { bottom: 25%; }
.icon-nodes span { position: absolute; width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; background: var(--paper); }
.icon-nodes span:nth-child(1) { top: 0; left: 27px; }
.icon-nodes span:nth-child(2) { top: 27px; right: 0; }
.icon-nodes span:nth-child(3) { bottom: 0; left: 27px; }
.icon-nodes span:nth-child(4) { top: 27px; left: 0; }
.icon-nodes::before, .icon-nodes::after { position: absolute; width: 42px; height: 1px; background: currentColor; content: ""; }
.icon-nodes::before { transform: rotate(45deg); }
.icon-nodes::after { transform: rotate(-45deg); }
.work-card h3 { margin-bottom: .8rem; font-size: 1.25rem; letter-spacing: -.02em; }
.work-card p { max-width: 28rem; color: var(--muted); font-size: .9rem; }
.work-card .card-boundary { padding-left: .8rem; border-left: 2px solid var(--accent); font-size: .79rem; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; margin-top: .65rem; color: var(--accent); font-size: .78rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .25rem; }
.about-section { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 3rem; align-items: start; padding: 7rem 0; border-top: 1px solid var(--line); }
.about-marker { display: flex; flex-direction: column; color: var(--green); font-family: Georgia, serif; font-size: 4rem; line-height: .8; }
.about-marker span:last-child { padding-left: 2rem; color: var(--accent); font-size: 2rem; }
.about-copy { max-width: 34rem; }
.about-copy h2 { margin-bottom: 1.8rem; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1rem; }
.about-aside { padding-top: 4rem; border-top: 1px solid var(--line); }
.aside-label { margin-bottom: 1rem; color: var(--muted); font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; }
.aside-quote { color: var(--green); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.2; }
.contact-section { display: flex; justify-content: space-between; gap: 3rem; padding: 4.5rem 0; border-top: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.contact-copy { max-width: 26rem; padding-top: 1.3rem; }
.contact-copy p { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.footer-note { margin-left: auto; }
@media (max-width: 820px) {
  .site-shell { padding: 0 1.25rem; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 4.5rem 0 4rem; }
  .hero-figure { min-height: min(75vw, 420px); }
  .section { padding: 4.5rem 0; }
  .section-heading { display: block; margin-bottom: 2rem; }
  .section-heading h2 { margin-top: 1.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; padding: 1.5rem; }
  .card-icon { margin-top: 2.5rem; }
  .about-section { grid-template-columns: 1fr 2fr; gap: 2rem; padding: 5rem 0; }
  .about-aside { grid-column: 2; padding-top: 1.5rem; }
}
@media (max-width: 540px) {
  .site-header { min-height: 76px; }
  nav { gap: .85rem; }
  nav a { font-size: .7rem; }
  .nav-quiet { display: none; }
  .wordmark { font-size: .67rem; }
  h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero-lede { font-size: 1.15rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: space-between; }
  .about-section { grid-template-columns: 1fr; }
  .about-copy, .about-aside { grid-column: auto; }
  .about-marker { flex-direction: row; align-items: baseline; gap: .6rem; margin-bottom: 1.5rem; font-size: 3rem; }
  .about-marker span:last-child { padding-left: 0; font-size: 1.7rem; }
  .contact-section { display: block; padding: 3.5rem 0; }
  .contact-copy { padding-top: 1.5rem; }
  .site-footer { flex-wrap: wrap; }
  .footer-note { order: 3; width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
