*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #000000;
  --gold: #d4c5a0;
  --fg: #f5f2eb;
  --fg-muted: #9a9590;
  --fg-dim: #6a6560;
  --line: rgba(245, 242, 235, 0.12);
  --sidebar: 7.5rem;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 400; line-height: 1.05;
  letter-spacing: -0.01em; text-wrap: balance; margin: 0;
}
p { text-wrap: pretty; margin: 0; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--fg); }
.shell { min-height: 100dvh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar); z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding: 2.25rem 0 2rem; background: var(--bg); border-right: 1px solid var(--line);
}
.logo {
  font-family: var(--font-serif); font-size: 1.75rem; letter-spacing: 0.06em;
  color: var(--gold); line-height: 1;
}
.logo:hover { opacity: 0.85; }
.side-nav {
  display: flex; flex-direction: column; gap: 1.75rem;
  margin-top: auto; margin-bottom: auto; padding: 1rem 0;
}
.side-nav a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--fg-dim); transition: color 0.2s ease;
}
.side-nav a:hover, .side-nav a.active { color: var(--gold); }
.side-footer {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim); writing-mode: vertical-rl; transform: rotate(180deg);
}
.main { margin-left: var(--sidebar); min-height: 100dvh; }
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 40;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.mobile-bar .logo { font-size: 1.4rem; }
.burger {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--fg-muted);
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 1.15rem; height: 1.5px; background: currentColor; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.mobile-drawer {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 0.85rem 0; font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted); border-bottom: 1px solid var(--line);
}
.mobile-drawer a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .mobile-bar { display: flex; }
}
.hero {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 6vw 5rem;
}
.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem); color: var(--gold); margin-bottom: 0.35rem;
}
.hero-roles { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-roles span {
  font-family: var(--font-serif); font-size: clamp(2rem, 5.5vw, 3.75rem);
  color: var(--fg-muted); line-height: 1.12;
}
.hero-roles span:nth-child(1) { color: #c8c4be; }
.hero-roles span:nth-child(2) { color: #a8a49e; }
.hero-roles span:nth-child(3) { color: #88847e; }
.hero-note {
  margin-top: 2.5rem; max-width: 28rem; font-size: 0.95rem;
  line-height: 1.65; color: var(--fg-dim);
}
.block { scroll-margin-top: 1rem; }
.block-head { padding: 5rem 6vw 2.5rem; border-top: 1px solid var(--line); }
.block-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.block-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--fg); max-width: 18ch;
}
.block-head p {
  margin-top: 1.25rem; max-width: 34rem; color: var(--fg-muted);
  font-size: 1rem; line-height: 1.65;
}
.panel {
  position: relative; min-height: min(72vh, 640px); display: flex;
  align-items: flex-end; padding: 3.5rem 6vw; overflow: hidden; isolation: isolate;
}
.panel::before {
  content: ""; position: absolute; inset: 0; background: #101018; z-index: -2;
}
.panel::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}
.panel-inner { max-width: 40rem; }
.panel-client {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem;
}
.panel-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem); color: var(--fg); margin-bottom: 0.85rem;
}
.panel-summary {
  font-size: 1rem; line-height: 1.6; color: rgba(245,242,235,0.72); max-width: 32rem;
}
.panel-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,242,235,0.45);
}
.panel.tone-a::before { background: linear-gradient(145deg, #0c1020 0%, #151a2e 50%, #1a2035 100%); }
.panel.tone-b::before { background: linear-gradient(145deg, #141210 0%, #1e1a16 50%, #2a241e 100%); }
.panel.tone-c::before { background: linear-gradient(145deg, #0e1412 0%, #16201c 50%, #1e2a24 100%); }
.panel.tone-d::before { background: linear-gradient(145deg, #121018 0%, #1c1828 50%, #262038 100%); }
.panel.tone-e::before { background: linear-gradient(145deg, #101418 0%, #1a2228 50%, #243038 100%); }
.panel.tone-f::before { background: linear-gradient(145deg, #161412 0%, #221e1a 50%, #2e2822 100%); }
.panel-deco {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 75% 40%, black, transparent);
}
.lab-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .lab-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lab-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lab-cell {
  background: var(--bg); min-height: 280px; padding: 2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.lab-cell::before {
  content: ""; position: absolute; inset: 0; background: var(--wash); opacity: 0.9; z-index: 0;
}
.lab-cell::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.08), transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
  z-index: 1;
}
.lab-cell > * { position: relative; z-index: 2; }
.lab-title { font-family: var(--font-serif); font-size: 1.65rem; color: var(--fg); }
.lab-meta {
  margin-top: 0.35rem; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,242,235,0.5);
}
.contact {
  padding: 6rem 6vw 7rem; border-top: 1px solid var(--line);
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
}
.contact .block-label { margin-bottom: 1.25rem; }
.contact h2 {
  font-size: clamp(2.5rem, 6vw, 4rem); max-width: 14ch; margin-bottom: 1.5rem;
}
.contact-lead {
  max-width: 28rem; color: var(--fg-muted); font-size: 1.05rem;
  line-height: 1.65; margin-bottom: 2.5rem;
}
.contact-email {
  display: inline-block; font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--gold);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, opacity 0.2s ease;
}
.contact-email:hover { border-bottom-color: var(--gold); opacity: 0.9; }
.contact-loc {
  margin-top: 1.5rem; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
}
.site-end {
  padding: 2rem 6vw 3rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
}
.site-end a:hover { color: var(--gold); }
