:root {
  --ink: #0d0d0d;
  --ink-soft: #555555;
  --line: #e1e1e1;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --navy: #0a0a0a;
  --navy-deep: #000000;
  --accent: #b3b3b3;
  --accent-ink: #4a4a4a;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #1f1f1f;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: #bdbdbd; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .btn { background: #fff; color: #000; }
.nav .btn:hover { background: #d9d9d9; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--navy); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, 0.09), transparent 60%),
    linear-gradient(160deg, #111111 0%, #000000 100%);
  color: #fff;
  padding: 96px 0 92px;
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: min(100%, 420px); justify-self: end; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 22px;
  letter-spacing: -0.02em; max-width: 18ch;
}
.hero p.lede { font-size: 1.2rem; color: rgba(255, 255, 255, 0.82); max-width: 58ch; margin: 0 0 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn:not(.ghost) { background: #fff; color: #000; }
.hero .btn:not(.ghost):hover { background: #d9d9d9; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--wash); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.tight { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.07rem; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #efefef; color: #1a1a1a;
  display: grid; place-items: center;
}
.icon svg { width: 22px; height: 22px; }

/* About */
.two-col { display: grid; gap: 56px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.two-col p { color: var(--ink-soft); font-size: 1.07rem; margin: 0 0 18px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; background: var(--paper); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* Portfolio */
.portfolio {
  display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; padding: 40px; background: var(--paper);
}
.portfolio h3 { margin: 0 0 6px; font-size: 1.6rem; }
.portfolio .tag { color: var(--accent-ink); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 12px; }
.portfolio p { color: var(--ink-soft); margin: 0 0 22px; }
.links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #000; color: #fff; border-radius: 10px; padding: 9px 16px; font-size: 0.82rem; line-height: 1.15;
}
.store strong { display: block; font-size: 1.05rem; }
.portfolio-panel {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff;
  border-radius: 16px; padding: 34px; min-height: 220px; display: grid; align-content: center; gap: 10px;
}
.portfolio-panel b { font-size: 1.15rem; }
.portfolio-panel span { color: rgba(255, 255, 255, 0.78); }

/* Contact */
.contact { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.contact .card h3 { margin-top: 0; }
.contact .card a { font-weight: 600; word-break: break-word; }
.contact address { font-style: normal; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: 40px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer img { height: 40px; width: auto; }

/* Legal / prose pages */
.prose { max-width: 760px; padding: 72px 0 96px; }
.prose h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 32px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .grid, .contact { grid-template-columns: 1fr; }
  .two-col, .portfolio { grid-template-columns: 1fr; gap: 32px; }
  .portfolio { padding: 26px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { justify-self: start; width: min(70%, 280px); }
  .brand-logo { height: 48px; }
  section { padding: 60px 0; }
}

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