:root {
  color-scheme: dark;
  --ink: #090b0a;
  --panel: #101311;
  --panel-light: #171b18;
  --paper: #e8e2d6;
  --muted: #a9aaa0;
  --line: rgba(232, 226, 214, .18);
  --red: #cf5949;
  --gold: #d8c6a2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip-link {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid #000;
  border-radius: 4px;
  background: #000;
}
.brand-mark::before, .brand-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  content: '';
  transform: translate(-50%, -50%);
}
.brand-mark::before { width: 18px; height: 4px; }
.brand-mark::after { width: 4px; height: 18px; }
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy span, .brand-copy strong { font-size: 10px; letter-spacing: .16em; }
.brand-copy span { color: var(--muted); }
.brand-copy strong { margin-top: 4px; color: var(--paper); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--paper); }
.main-nav .nav-contact { color: var(--paper); }
.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100svh - 92px));
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(44px, 7vw, 104px);
  padding-block: 74px 86px;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 12px; }
.eyebrow, .section-label, .figure-caption, .hero-meta, .scroll-note, .stack-index, .stack-label, .foot-label {
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold); }
.status-dot { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px rgba(207, 89, 73, .72); }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.5vw, 112px);
  letter-spacing: -.065em;
  line-height: .98;
}
h1 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 470px; margin-bottom: 30px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 18px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff7ec;
  font-size: 11px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.button:hover { background: transparent; color: var(--paper); }
.text-link { color: var(--paper); font-size: 12px; text-decoration-color: rgba(232, 226, 214, .4); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--red); }
.hero-meta { display: flex; gap: clamp(25px, 4vw, 55px); margin-top: 60px; color: #797d75; }
.hero-meta span { display: grid; gap: 5px; }
.hero-meta strong { color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.profile-frame { position: relative; width: min(100%, 480px); justify-self: end; margin: 0; }
.profile-frame::before {
  position: absolute;
  z-index: -1;
  top: 18px;
  right: -18px;
  width: 83%;
  height: 84%;
  border: 1px solid rgba(207, 89, 73, .4);
  content: '';
}
.profile-frame img { display: block; width: 100%; aspect-ratio: 780 / 940; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.figure-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 13px; color: #85877e; font-size: 9px; }
.figure-caption span:last-child { color: var(--gold); }
.scroll-note { position: absolute; right: 0; bottom: 28px; color: #6d726d; writing-mode: vertical-rl; }
.section { border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: .66fr 1.35fr .85fr; gap: 38px; padding-block: 105px 116px; }
.section-label { padding-top: 12px; color: var(--red); }
.intro h2, .projects h2, .stack h2, .contact h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -.055em;
  line-height: 1.04;
}
.intro-copy { align-self: end; color: var(--muted); font-size: 14px; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy strong { color: var(--paper); font-weight: 500; }
.projects { display: grid; grid-template-columns: .66fr 1.35fr .85fr; gap: 38px; padding-block: 95px 110px; }
.projects-heading { grid-column: 2 / 4; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.projects-heading p { max-width: 280px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.project-card { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 70px); margin-top: 15px; padding-top: 25px; border-top: 1px solid var(--line); }
.project-art { min-width: 0; margin: 0; }
.project-art img { display: block; width: 100%; aspect-ratio: 780 / 780; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.project-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--gold); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.project-copy h3 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(48px, 6vw, 78px); font-weight: 400; letter-spacing: -.065em; line-height: .9; }
.project-copy > p:not(.project-kicker) { max-width: 420px; color: var(--muted); font-size: 14px; }
.project-details { display: flex; flex-wrap: wrap; gap: 20px 27px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-details span { display: grid; gap: 5px; color: var(--paper); font-size: 11px; }
.project-details small { color: #81857d; font-size: 8px; letter-spacing: .15em; }
.store-note { display: inline-block; margin-top: 28px; color: #85877e; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.stack { display: grid; grid-template-columns: .66fr 1.35fr .85fr; gap: 38px; padding-block: 95px 105px; background: var(--panel); }
.stack-heading { grid-column: 2 / 4; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.stack-heading p { max-width: 270px; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.stack-card {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 56px 1.1fr 1fr;
  align-items: center;
  gap: 34px;
  min-height: 188px;
  margin-top: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-index { align-self: start; padding-top: 8px; color: var(--red); }
.engine-name { font-family: var(--serif); font-size: clamp(29px, 4vw, 53px); letter-spacing: -.05em; line-height: .98; }
.engine-name span { color: var(--gold); }
.stack-detail { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; }
.stack-label { grid-column: 2 / 4; margin-top: 4px; color: #81857d; }
.contact { display: grid; grid-template-columns: .66fr 1.35fr .85fr; gap: 38px; align-items: end; padding-block: 100px 105px; }
.contact h2 { grid-column: 2; max-width: 700px; }
.contact-action { grid-column: 3; justify-self: end; color: var(--gold); font-size: 12px; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-action:hover { color: var(--paper); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; border-top: 1px solid var(--line); color: #80847d; font-size: 10px; letter-spacing: .1em; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(232, 226, 214, .3); text-underline-offset: 4px; }
.footer-links { display: flex; gap: 23px; }

.policy-main { max-width: 900px; padding-block: 78px 110px; }
.back-link { color: var(--gold); font-size: 11px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.policy-kicker { margin: 44px 0 15px; color: var(--red); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.policy-main h1 { max-width: 780px; font-size: clamp(54px, 8vw, 92px); }
.updated { margin: 0 0 52px; color: var(--muted); font-size: 12px; }
.policy-intro { max-width: 670px; margin-bottom: 55px; color: var(--paper); font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.policy-section { display: grid; grid-template-columns: 170px 1fr; gap: 35px; padding-block: 27px; border-top: 1px solid var(--line); }
.policy-section h2 { margin: 2px 0 0; color: var(--gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.policy-section p, .policy-section ul { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.policy-section p:last-child, .policy-section ul:last-child { margin-bottom: 0; }
.policy-section ul { padding-left: 20px; }
.policy-section li + li { margin-top: 7px; }
.policy-section a { color: var(--paper); text-decoration-color: rgba(232, 226, 214, .38); text-underline-offset: 3px; }
.policy-callout { padding: 18px 20px; border-left: 2px solid var(--red); background: var(--panel); }
.policy-callout strong { color: var(--paper); font-weight: 500; }

@media (max-width: 880px) {
  .shell { width: min(100% - 44px, 680px); }
  .hero { min-height: 0; grid-template-columns: 1fr .76fr; gap: 34px; padding-block: 65px 76px; }
  h1 { font-size: clamp(58px, 9vw, 85px); }
  .hero-meta { gap: 22px; margin-top: 43px; }
  .intro, .projects, .stack, .contact { grid-template-columns: 110px 1fr; gap: 24px; }
  .intro h2, .projects-heading, .project-card, .stack-heading, .stack-card, .stack-label, .contact h2 { grid-column: 2; }
  .intro-copy { grid-column: 2; max-width: 530px; }
  .project-card { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: 28px; }
  .projects-heading { align-items: start; flex-direction: column; gap: 18px; }
  .stack-heading { align-items: start; flex-direction: column; gap: 18px; }
  .stack-card { grid-template-columns: 42px 1fr 1fr; gap: 22px; }
  .stack-label { margin-left: 64px; }
  .contact-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 76px; }
  .brand-mark { width: 37px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 9px; letter-spacing: .08em; }
  .main-nav a:first-child { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 45px; padding-block: 58px 60px; }
  .hero-copy { padding: 0; }
  h1 { max-width: 540px; margin-bottom: 21px; font-size: clamp(56px, 16vw, 82px); }
  .hero-description { font-size: 14px; }
  .hero-meta { flex-wrap: wrap; gap: 20px 28px; margin-top: 38px; }
  .profile-frame { width: min(90%, 420px); align-self: center; }
  .scroll-note { display: none; }
  .intro, .projects, .stack, .contact { display: grid; grid-template-columns: 1fr; gap: 23px; padding-block: 70px; }
  .section-label, .intro h2, .intro-copy, .projects-heading, .project-card, .stack-heading, .stack-card, .stack-label, .contact h2, .contact-action { grid-column: 1; }
  .section-label { padding: 0; }
  .intro h2, .projects h2, .stack h2, .contact h2 { font-size: clamp(42px, 12vw, 60px); }
  .intro-copy { max-width: 540px; margin-top: 8px; }
  .projects-heading { gap: 14px; }
  .project-card { display: flex; flex-direction: column; align-items: stretch; gap: 25px; margin-top: 5px; padding-top: 20px; }
  .project-art { width: min(100%, 440px); }
  .project-copy h3 { font-size: clamp(55px, 16vw, 72px); }
  .stack-heading p { margin-top: 0; }
  .stack-card { grid-template-columns: 33px 1fr; gap: 15px 20px; margin-top: 10px; padding-block: 22px; }
  .stack-index { grid-row: span 2; }
  .engine-name { font-size: 42px; }
  .stack-detail { grid-column: 2; }
  .stack-label { margin: 0; }
  .contact-action { margin-top: 5px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 20px; }
  .footer-links { gap: 18px; }
  .policy-main { padding-block: 50px 76px; }
  .policy-kicker { margin-top: 36px; }
  .updated { margin-bottom: 35px; }
  .policy-intro { font-size: 19px; }
  .policy-section { grid-template-columns: 1fr; gap: 11px; padding-block: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
