:root {
  --bg: #121C2B;
  --bg-deep: #0C1420;
  --fg: #F6F1E7;
  --muted: #AAB4C2;
  --line: #24314A;
  --amber: #E8A33D;
  --amber-soft: #F3C777;
  --navy-ink: #121C2B;
  --max: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { display: block; }
h1, h2, h3, .statement { font-family: var(--serif); font-weight: 300; letter-spacing: -0.005em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: 76px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 30px; width: auto; }
nav { display: flex; gap: 32px; }
nav a { white-space: nowrap; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding: 96px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; max-width: 16ch; margin-bottom: 28px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.hero-links a { font-weight: 500; color: var(--amber-soft); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero-links a:hover { color: var(--fg); }

.hero-door { position: relative; display: flex; justify-content: center; }
.hero-door .door { width: min(100%, 340px); height: auto; position: relative; z-index: 1; }
.hero-door .frame { fill: #1C2A40; }
.hero-door .light { fill: var(--amber); filter: url(#none); animation: light-on 2.4s ease-out both; }
.hero-door .glow {
  position: absolute; inset: 0; margin: auto;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,163,61,.32), rgba(232,163,61,.08) 55%, transparent 72%);
  filter: blur(12px);
  animation: glow-on 2.4s ease-out both;
}
@keyframes light-on { 0% { opacity: .15; } 40% { opacity: .15; } 100% { opacity: 1; } }
@keyframes glow-on  { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 0; } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-door .light, .hero-door .glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* Name statement */
.name { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.statement { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; max-width: 30em; margin: 0; }
.statement em { font-style: italic; color: var(--amber-soft); }

/* How we build */
.work { padding: 104px 0; }
.work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; }
.work-intro { color: var(--muted); max-width: 38ch; margin: 24px 0 0; }
.work-head h2 { margin-top: -6px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li:first-child { padding-top: 0; border-top: 0; }
.principles { border-top: 0; }
.principles li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principles h3 { font-size: 26px; }
.principles p { color: var(--muted); margin: 0; max-width: 46ch; }
.aside { margin: 32px 0 0; color: var(--muted); max-width: 56ch; }

/* Products */
.products { padding: 96px 0; background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.product-logo { width: min(240px, 70%); height: auto; margin-top: 24px; }
.product-lead { font-size: 22px; line-height: 1.45; margin-bottom: 20px; }
.product-body p { max-width: 56ch; }
.product-body p:not(.product-lead) { color: var(--muted); }
.product-link { margin-top: 28px; }
.product-link a { color: var(--amber-soft); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.product-link a:hover { color: var(--fg); }

/* Contact */
.contact { padding: 104px 0 112px; }
.contact-lead { color: var(--muted); max-width: 52ch; margin: 16px 0 28px; font-size: 19px; }
.button {
  display: inline-block;
  background: var(--amber); color: var(--navy-ink);
  font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 14px 22px; border-radius: 6px;
}
.button:hover { background: var(--amber-soft); }
.contact-note { color: var(--muted); font-size: 15px; max-width: 56ch; margin: 28px 0 0; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--fg); }
.legal { max-width: 62ch; margin: 0; }
.copy { margin: 14px 0 0; }

@media (max-width: 840px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-door { order: -1; }
  .hero-door .door { width: 180px; }
  .work-grid, .product, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .principles li { grid-template-columns: 1fr; gap: 6px; }
  .work, .products, .contact { padding: 72px 0; }
  .name { padding: 56px 0; }
  .product-logo { width: 180px; margin-top: 8px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .site-header { height: 64px; }
  .brand img { height: 24px; }
  nav { gap: 14px; }
  nav a:first-child { display: none; }
  nav a { font-size: 13px; }
}
