@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --bg: #0f1b14;
  --bg-deep: #0a120d;
  --ink: #ede8da;
  --gray: #a1a690;
  --faint: #6c7465;
  --hairline: #253128;
  --gold: #c6a45f;
  --gold-deep: #a98a48;
  --scroll: #35443a;
}

/* visitor-selectable theme presets, applied via data-theme on <html> */
:root[data-theme="midnight"] {
  --bg: #111213;
  --bg-deep: #0a0b0c;
  --ink: #ebe8e0;
  --gray: #9c9c95;
  --faint: #6b6b65;
  --hairline: #26282a;
  --gold: #cfc5a9;
  --gold-deep: #b1a681;
  --scroll: #3a3c3e;
}
:root[data-theme="oxblood"] {
  --bg: #1c1012;
  --bg-deep: #130a0c;
  --ink: #eee5dc;
  --gray: #a89a94;
  --faint: #786a66;
  --hairline: #332225;
  --gold: #c98f5f;
  --gold-deep: #aa7447;
  --scroll: #46343a;
}
:root[data-theme="abyss"] {
  --bg: #0d1420;
  --bg-deep: #080e17;
  --ink: #e7eaf0;
  --gray: #96a0b2;
  --faint: #636e80;
  --hairline: #222c3d;
  --gold: #bda15c;
  --gold-deep: #9f8546;
  --scroll: #313c4e;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--scroll) var(--bg-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--bg); }

/* film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 27, 20, 0.88);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--gray); font-weight: 400; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--gold);
}

/* ---------- theme settings ---------- */
.nav-right { display: flex; align-items: center; gap: 22px; position: relative; }
.theme-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-btn:hover, .theme-btn[aria-expanded="true"] { color: var(--gold); border-color: var(--gold); }
.theme-panel {
  position: absolute;
  right: 0;
  top: 46px;
  width: 212px;
  padding: 14px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.theme-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  margin-bottom: 2px;
  background: none;
  border: 1px solid transparent;
  color: var(--gray);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-opt:hover { color: var(--ink); }
.theme-opt.active { color: var(--ink); border-color: var(--hairline); }
.sw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.sw-evergreen { background: linear-gradient(135deg, #0f1b14 55%, #c6a45f 55%); }
.sw-midnight { background: linear-gradient(135deg, #111213 55%, #cfc5a9 55%); }
.sw-oxblood { background: linear-gradient(135deg, #1c1012 55%, #c98f5f 55%); }
.sw-abyss { background: linear-gradient(135deg, #0d1420 55%, #bda15c 55%); }
.theme-accent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--hairline);
  color: var(--gray);
  font-size: 13px;
}
.theme-accent input {
  width: 36px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--hairline);
  background: none;
  cursor: pointer;
}
.theme-reset {
  margin-top: 12px;
  width: 100%;
  padding: 6px 0;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--faint);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-reset:hover { color: var(--ink); border-color: var(--gray); }

/* ---------- hero ---------- */
header {
  border-bottom: 1px solid var(--hairline);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 96px 0 88px;
}
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--gray);
}
.hero-cta {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.15s;
}
.btn:hover { background: var(--gold-deep); }
.text-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.text-link:hover { color: var(--gold); }

.orbit-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  justify-self: end;
}
.orbit-box canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.orbit-box canvas:focus { outline: none; }
.orbit-box canvas:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; border-radius: 50%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* staggered hero entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.kicker, .hero h1, .lede, .hero-cta, .orbit-box { animation: rise 0.7s ease both; }
.hero h1 { animation-delay: 0.1s; }
.lede { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }
.orbit-box { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) {
  .kicker, .hero h1, .lede, .hero-cta, .orbit-box { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 110px 0; border-bottom: 1px solid var(--hairline); }
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 56px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.label i {
  font-style: normal;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- portfolio ---------- */
.rows { border-top: 1px solid var(--hairline); }
.row {
  display: grid;
  grid-template-columns: 56px 250px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.row-num {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.row-name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.row-name:hover { color: var(--gold); }
.row-desc {
  font-size: 15px;
  color: var(--gray);
  max-width: 52ch;
}
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.learn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.learn:hover { background: var(--gold-deep); }
.learn[aria-expanded="true"] {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.row-go {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.row-go .arrow {
  display: inline-block;
  transition: transform 0.18s ease, color 0.15s;
  color: var(--ink);
}
.row-go:hover .arrow { transform: translate(3px, -3px); color: var(--gold); }
.learn .caret {
  display: inline-block;
  margin-left: 5px;
  font-size: 9px;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}
.learn[aria-expanded="true"] .caret { transform: translateY(0) rotate(180deg); }
.row-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s ease, visibility 0.4s;
}
.row-detail.open {
  grid-template-rows: 1fr;
  visibility: visible;
}
.row-detail-clip { overflow: hidden; min-height: 0; }
.row-detail-card {
  margin-top: 20px;
  padding: 22px 26px;
  background: rgba(237, 232, 218, 0.04);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--gold);
  max-width: 72ch;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}
.row-detail.open .row-detail-card { opacity: 1; transform: none; }
.row-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.row-detail-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- about ---------- */
.statement {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.statement em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.principles {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.principle h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.principle h3 i {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.principle p { font-size: 14.5px; color: var(--gray); }

/* ---------- footer ---------- */
footer {
  background: var(--bg-deep);
  color: var(--ink);
  padding: 96px 0 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.foot-orbits {
  position: absolute;
  right: -140px;
  bottom: -200px;
  width: 580px;
  height: 580px;
  pointer-events: none;
  z-index: -1;
}
.fo-rings { stroke: var(--ink); opacity: 0.07; }
.fo-core { fill: var(--gold); opacity: 0.45; }
.fo-dot { fill: var(--ink); }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  padding-bottom: 88px;
}
.foot-title {
  font-size: 13px;
  color: rgba(198, 164, 95, 0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  color: rgba(237, 232, 218, 0.85);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--gold); }
.foot-col a span { color: rgba(237, 232, 218, 0.38); font-size: 13px; margin-left: 10px; }
.foot-lede {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(237, 232, 218, 0.6);
}
.foot-lede a {
  color: rgba(237, 232, 218, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 164, 95, 0.5);
  transition: color 0.15s, border-color 0.15s;
}
.foot-lede a:hover { color: var(--gold); border-color: var(--gold); }
.foot-mark {
  font-size: clamp(64px, 13vw, 168px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--gold);
  user-select: none;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(237, 232, 218, 0.14);
  padding-top: 26px;
  margin-top: 26px;
  font-size: 12.5px;
  color: rgba(237, 232, 218, 0.45);
}

/* ---------- 404 ---------- */
.e404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 0;
}
.e404 .code {
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 22px;
}
.e404 h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.01em;
}
.e404 p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 16px;
}
.e404 .btn { margin-top: 40px; }

/* ---------- press page ---------- */
.press {
  max-width: 720px;
  padding-top: 96px;
  padding-bottom: 110px;
}
.press h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.press-lede {
  margin-top: 16px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}
.press section { margin-top: 64px; padding: 0; border-bottom: none; }
.press h2 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.press section > p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.7;
}
.press a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.15s;
}
.press a:hover { color: var(--gold); }
.press-products { margin-top: 10px; }
.press-products > div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.press-products dt { color: var(--ink); font-weight: 600; font-size: 15px; }
.press-products dd { margin: 6px 0 0; color: var(--gray); font-size: 14.5px; line-height: 1.65; }
.press-products dd a { font-size: 13.5px; }
.press-facts { margin-top: 10px; }
.press-facts > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}
.press-facts dt { color: var(--faint); }
.press-facts dd { margin: 0; color: var(--ink); line-height: 1.6; }
footer.press-foot { padding: 28px 0; }
.foot-base a { color: var(--gray); text-decoration: none; transition: color 0.15s; }
.foot-base a:hover { color: var(--gold); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 72px 0; gap: 56px; }
  .orbit-box { justify-self: center; max-width: 380px; }
  .row { grid-template-columns: 40px 1fr; row-gap: 0; }
  .row-num { grid-column: 1; grid-row: 1; }
  .row-name { grid-column: 2; grid-row: 1; }
  .row-desc { grid-column: 2; grid-row: 2; margin-top: 8px; }
  .row-actions { grid-column: 2; grid-row: 3; margin-top: 16px; }
  .row-detail { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 56px; }
  section { padding: 80px 0; }
  .nav-links { gap: 18px; }
  .nav-right { gap: 14px; }
}
