:root {
  --bg: #0b0c10;
  --bg-raised: #12141a;
  --line: #23262f;
  --text: #ecedf0;
  --muted: #9a9ea8;
  --accent: #c8a46a;
  --accent-soft: rgba(200, 164, 106, 0.12);
  --radius: 16px;
  --max: 1120px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .18em; font-size: 15px; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 140px 0 120px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,164,106,.16), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}
h1, h2, h3 { font-weight: 400; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02; letter-spacing: -.01em; max-width: 14ch;
}
.hero h1 em { color: var(--accent); }
.hero p { margin-top: 28px; max-width: 56ch; color: var(--muted); font-size: 19px; }
.hero-actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-ghost:hover { border-color: var(--muted); }

/* Sections */
section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 64px; align-items: end; }
.section-head h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Portfolio */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; min-height: 280px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: #3a3e49; transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 24px;
  margin-bottom: 28px;
}
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card-foot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tag {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.tag.live { color: #7fd1a0; border-color: rgba(127,209,160,.35); }
.card-link { color: var(--accent); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle .num { font-family: var(--serif); font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.principle h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.contact p { color: var(--muted); margin: 20px auto 40px; max-width: 48ch; }
.contact .email { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 36px); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.contact .email:hover { color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 80px 0 110px; border-top: 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: #c9ccd3; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 90px 0 80px; }
  section { padding: 80px 0; }
  .grid, .principles { grid-template-columns: 1fr; }
  .principles { gap: 36px; }
}
