:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #17202b;
  --muted: #566476;
  --accent: #1f3a5f;
  --accent-soft: #e3ebf4;
  --border: #dde3ea;
  --ink: #0b1420;
  --max: 1080px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141c;
    --surface: #16202b;
    --text: #e6ebf1;
    --muted: #9aa7b6;
    --accent: #a9c6ea;
    --accent-soft: #1d2b3b;
    --border: #273444;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; font-variant-ligatures: no-common-ligatures no-discretionary-ligatures; }

/* Header: frosted bar over the hero, turns solid on scroll */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; color: #fff;
  background: rgba(10, 16, 26, .28);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background .25s ease, box-shadow .25s ease;
}
header.site.scrolled { background: rgba(10, 16, 26, .88); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand .mark { width: 72px; height: 32px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-main { white-space: nowrap; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.wm-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; opacity: .78; margin-top: 4px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: rgba(255,255,255,.86); font-size: 15px; font-weight: 500; }
nav a:hover { color: #fff; }
nav a.nav-cta { padding: 7px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; }
nav a.nav-cta:hover { background: #fff; color: var(--ink); }
section, #about, #projects, #contact { scroll-margin-top: 68px; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink) center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(8,14,24,.82) 0%, rgba(8,14,24,.62) 38%, rgba(8,14,24,.15) 70%, rgba(8,14,24,0) 100%), linear-gradient(180deg, rgba(8,14,24,.45) 0%, rgba(8,14,24,0) 35%, rgba(8,14,24,.55) 100%), url("/images/hero.jpg");
}
.hero .wrap { text-shadow: 0 2px 18px rgba(0,0,0,.55); padding-top: 140px; padding-bottom: 88px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; opacity: .85; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.05; margin: 0 0 20px; max-width: 820px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 560px; font-weight: 500; margin: 0 0 32px; color: rgba(255,255,255,.9); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; background: #fff; color: var(--ink); font-size: 15px;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); margin-left: 10px; }
.btn:hover { opacity: .9; }
.credit-tag {
  position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.7);
}

section { padding: 88px 0; }
section h2 { font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 18px; line-height: 1.15; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; margin: 0 0 10px; }

/* About: text beside a photo */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); margin: 0 0 16px; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(10,20,35,.18); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.facts div { border-left: 3px solid var(--accent); padding-left: 14px; }
.facts strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--text); }
.facts span { font-size: 14px; color: var(--muted); }

.shoutout { margin-top: 36px; padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.shoutout h3 { margin: 0 0 6px; font-size: 20px; }
.shoutout p { margin: 0 0 10px; font-size: 15px; }
.shoutout ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 15px; color: var(--muted); }
.shoutout a { font-weight: 600; text-decoration: none; }
.shoutout a:hover { text-decoration: underline; }
@media (max-width: 480px) { .shoutout ul { grid-template-columns: 1fr; } }

/* Projects */
#projects { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .photo { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 26px; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 11px; margin-bottom: 12px; align-self: flex-start;
}
.card p { margin: 0 0 18px; color: var(--muted); }
.card .link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .link:hover { text-decoration: underline; }
.card .link.muted { color: var(--muted); font-weight: 600; }
.card.placeholder { border-style: dashed; background: transparent; }

/* Landmark gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 14px; margin-top: 32px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px;
  color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(5,10,18,.75));
}

/* Contact band over a photo */
.band {
  color: #fff; text-align: center; background: var(--ink) center / cover no-repeat;
  background-image: linear-gradient(rgba(8,14,24,.62), rgba(8,14,24,.62)), url("/images/contact.jpg");
  padding: 120px 0;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
footer .credits { margin-top: 16px; font-size: 12px; }
footer .credits a { color: var(--muted); }

@media (max-width: 1000px) {
  .split { gap: 36px; }
  .gallery { grid-auto-rows: 230px; }
  .card .body { padding: 20px; }
  .card h3 { font-size: 23px; }
  .shoutout ul { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  section { padding: 64px 0; }
  .gallery { grid-auto-rows: 200px; gap: 10px; }
  .hero { min-height: 86vh; }
  nav { gap: 16px; }
  nav a { font-size: 14px; }
  nav a.nav-cta { padding: 6px 12px; }
  .wm-main { font-size: 18px; }
  .brand .mark { width: 56px; height: 25px; }
}
@media (max-width: 680px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  nav a[href="#about"] { display: none; }
}
/* Phones held sideways: short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero .wrap { padding-top: 96px; padding-bottom: 40px; }
  .hero h1 { font-size: 38px; margin-bottom: 12px; }
  .hero p.lead { font-size: 16px; margin-bottom: 20px; }
  .eyebrow { margin-bottom: 8px; }
  .band { padding: 72px 0; }
}
@media (max-width: 420px) {
  .btn.ghost { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 680px) {
  .hero { background-image: linear-gradient(180deg, rgba(8,14,24,.55) 0%, rgba(8,14,24,.55) 50%, rgba(8,14,24,.8) 100%), url("/images/hero.jpg"); }
}
