:root {
  --bg: #050806;
  --bg-elevated: #0b1210;
  --bg-card: rgba(11, 18, 16, 0.88);
  --border: rgba(232, 228, 214, 0.09);
  --border-strong: rgba(232, 228, 214, 0.16);
  --text: #f3f0e6;
  --text-bright: #faf8f2;
  --muted: #a8aea6;
  --muted-2: #6f766f;
  --cream: #e8e4d6;
  --accent: #7fd9cb;
  --accent-bright: #a1ffef;
  --accent-ink: #04140f;
  --accent-soft: rgba(127, 217, 203, 0.12);
  --accent-glow: rgba(127, 217, 203, 0.22);
  --radius: 18px;
  --radius-sm: 11px;
  --max: 1100px;
  --font: "Instrument Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -18%, #12261c 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(20, 48, 38, 0.35), transparent 60%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c8fff5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  margin: 0 calc(50% - 50vw);
  padding: 0.65rem 0;
  background: rgba(5, 8, 6, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-lockup {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.brand-lockup:hover { color: inherit; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(232, 228, 214, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #0a100d;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.brand-text { display: flex; flex-direction: column; gap: 0.02rem; min-width: 0; }
.brand-name {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-bright); line-height: 1.2;
}
.brand-tag {
  font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav {
  display: flex; align-items: center; gap: 0.1rem 0.95rem;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-bright); }
.nav a.ext::after { content: " ↗"; font-size: 0.72em; opacity: 0.7; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg-elevated);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--cream);
  position: relative; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.eyebrow {
  margin: 0 0 0.55rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { font-family: var(--serif); color: var(--text-bright); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); line-height: 1.12; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.2; margin: 0 0 0.65rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; font-family: var(--font); font-weight: 650; }
.lede { color: var(--muted); margin: 0 0 1.25rem; max-width: 42rem; font-size: 1.02rem; }
.section { padding: 2.75rem 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head .more { font-size: 0.88rem; white-space: nowrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.15rem; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.15rem; border-radius: 999px; font-weight: 600;
  font-size: 0.92rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(127, 217, 203, 0.2), 0 10px 28px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover { background: var(--accent-bright); color: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }

/* Hero */
.hero {
  position: relative; margin: 1.1rem 0 0;
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  min-height: clamp(340px, 62vw, 520px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,6,0.88) 0%, rgba(5,8,6,0.55) 48%, rgba(5,8,6,0.28) 100%),
    linear-gradient(180deg, rgba(5,8,6,0.25) 0%, rgba(5,8,6,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 34rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(340px, 62vw, 520px);
}
.hero-sub {
  margin: 0; color: rgba(243, 240, 230, 0.88);
  font-size: 1.05rem; max-width: 30rem;
}

/* Proof strip */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0.95rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.proof-item { text-align: center; padding: 0.35rem 0.25rem; }
.proof-value {
  margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--accent-bright); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.proof-label {
  margin: 0.28rem 0 0; font-size: 0.68rem; color: var(--muted-2);
  letter-spacing: 0.02em; line-height: 1.3;
}
.proof-kicker {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

/* Mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(88px, 11vw);
  gap: 0.55rem;
}
.mosaic figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0a100d;
}
.mosaic figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.65rem 0.55rem;
  background: linear-gradient(transparent, rgba(5,8,6,0.82));
  color: rgba(243,240,230,0.9); font-size: 0.72rem; line-height: 1.25;
}
.mosaic .m-wide { grid-column: span 6; grid-row: span 2; }
.mosaic .m-tall { grid-column: span 3; grid-row: span 3; }
.mosaic .m-med { grid-column: span 4; grid-row: span 2; }
.mosaic .m-sq { grid-column: span 3; grid-row: span 2; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: clamp(1.15rem, 2.5vw, 1.65rem); }

.focus-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
  overflow: hidden;
}
.focus-card .focus-copy { padding: clamp(1.2rem, 2.8vw, 1.85rem); }
.focus-card .focus-photo { min-height: 220px; }
.focus-card .focus-photo img { width: 100%; height: 100%; object-fit: cover; }

.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
.work-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.work-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: #0a100d; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .body { padding: 0.95rem 1rem 1.1rem; }
.work-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Testimonials */
.quote-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
.quote {
  margin: 0; padding: 1.1rem 1.15rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.85rem;
}
.quote p {
  margin: 0; font-family: var(--serif); font-size: 1.02rem;
  color: var(--text-bright); line-height: 1.45;
}
.quote footer {
  margin-top: auto; font-size: 0.82rem; color: var(--muted); font-style: normal;
}
.quote footer strong { color: var(--cream); font-weight: 600; }
.quote.span-2 { grid-column: span 2; }

/* Credibility */
.cred {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.55rem;
  margin: 0; padding: 0; list-style: none;
}
.cred li {
  font-size: 0.82rem; color: var(--muted);
  padding: 0.45rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(11,18,16,0.55);
}

/* Publications */
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pub-list li {
  padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated);
}
.pub-title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.pub-title a { text-decoration: none; color: var(--text-bright); }
.pub-title a:hover { color: var(--accent-bright); }
.pub-meta { margin: 0; font-size: 0.82rem; color: var(--muted-2); }
.pub-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted-2); }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem;
}
.about-grid p { color: var(--muted); margin: 0 0 0.85rem; }
.about-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 240px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Footer */
footer.site-footer {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--border); text-align: center;
}
footer.site-footer .footer-brand {
  margin: 0 0 0.55rem; font-weight: 700; color: var(--text-bright);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  justify-content: center; margin: 0 0 0.75rem;
}
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent-bright); }
footer.site-footer .copy { margin: 0; font-size: 0.78rem; color: var(--muted-2); }

@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .focus-card { grid-template-columns: 1fr; }
  .focus-card .focus-photo { min-height: 200px; order: -1; }
  .work-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote.span-2 { grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: minmax(90px, 18vw); }
  .mosaic .m-wide { grid-column: span 12; grid-row: span 2; }
  .mosaic .m-tall { grid-column: span 6; grid-row: span 3; }
  .mosaic .m-med { grid-column: span 6; grid-row: span 2; }
  .mosaic .m-sq { grid-column: span 6; grid-row: span 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: 0.4rem 0 0.2rem;
  }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .site-header-inner { flex-wrap: wrap; }
  .nav a { padding: 0.7rem 0.2rem; border-top: 1px solid var(--border); }
  .hero-content { max-width: none; }
  .proof { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .mosaic figure:hover img { transform: none; }
}


/* My story */
.story-prose p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; max-width: 42rem; }
.story-prose p:last-of-type { margin-bottom: 0; }
.story-prose strong { color: var(--cream); font-weight: 600; }
