:root {
  --ink: rgb(16, 24, 19);
  --paper: rgb(244, 247, 239);
  --panel: rgb(255, 255, 255);
  --film: rgb(31, 122, 77);
  --gold: rgb(176, 148, 64);
  --blue: rgb(43, 99, 222);
  --line: rgb(209, 219, 199);
  --text-dim: rgb(92, 101, 87);

  --r-lg: 20px;
  --r-md: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--paper);
  background-image:
    radial-gradient(900px 620px at 8% 4%, rgba(31,122,77,0.22), transparent 60%),
    radial-gradient(1000px 700px at 96% 10%, rgba(43,99,222,0.24), transparent 55%),
    radial-gradient(1100px 800px at 50% 100%, rgba(31,122,77,0.14), transparent 60%),
    radial-gradient(900px 600px at 60% 60%, rgba(43,99,222,0.12), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.8) inset,
    0 18px 40px -20px rgba(22,19,18,0.28);
}

/* ---------- Nav ---------- */
header.nav {
  padding: 28px 0 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-projects-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(43,99,222,0.1);
  border: 1px solid rgba(43,99,222,0.25);
  padding: 12px 22px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nav-projects-link:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}

.nav-about-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--film);
  background: rgba(31,122,77,0.1);
  border: 1px solid rgba(31,122,77,0.25);
  padding: 12px 22px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nav-about-link:hover {
  color: #fff;
  background: var(--film);
  transform: translateY(-1px);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 13px 22px;
  border-radius: 999px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.hero-wordmark {
  width: min(880px, 92vw);
  margin: 0 auto;
}

.hero-lead {
  max-width: 600px;
  margin: 40px auto 0;
  font-size: 22px;
  color: var(--text-dim);
}

/* ---------- About ---------- */
.about { padding: 70px 0 60px; }

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
  border-radius: 36px;
  padding: 60px;
}

.about-text h2 {
  font-size: clamp(36px, 4.8vw, 50px);
  font-weight: 700;
  margin-bottom: 26px;
}

.about-text p {
  color: var(--text-dim);
  font-size: 19.5px;
  max-width: 58ch;
  margin: 0 0 18px;
}

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.15s ease;
}

.about-more:hover { gap: 13px; }

/* The one bold element: a clapperboard slate, built from CSS, standing in
   for "films" without literally saying it with a stock photo or icon. */
.slate {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 50px -22px rgba(22,19,18,0.45);
}

.slate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.slate-stripes {
  flex: 1;
  display: flex;
}

.slate-stripes i {
  flex: 1;
  transform: skewX(-18deg);
}

.slate-stripes i:nth-child(odd) { background: var(--film); }
.slate-stripes i:nth-child(even) { background: var(--blue); }

/* ---------- Projects ---------- */
.projects { padding: 20px 0 130px; }

.projects-head {
  font-size: clamp(30px, 3.6vw, 38px);
  font-weight: 700;
  margin-bottom: 36px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
  border-radius: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-row:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.8) inset,
    0 26px 50px -22px rgba(22,19,18,0.34);
}

.project-row-main h3 {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-row-main p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 58ch;
}

.project-status {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(22,19,18,0.06);
  color: var(--text-dim);
}

.project-link {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.project-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.is-soon {
  background: linear-gradient(165deg, rgba(255,255,255,0.4), rgba(255,255,255,0.14));
}

.is-soon .project-row-main h3,
.is-soon .project-row-main p {
  color: var(--text-dim);
  opacity: 0.65;
}

/* ---------- Social ---------- */
.social { padding: 0 0 110px; }

.social-head {
  font-size: clamp(24px, 2.8vw, 28px);
  font-weight: 700;
  margin-bottom: 24px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.social-link:hover { transform: translateY(-2px); }

.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

button.social-link {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.social-link.is-copied {
  color: var(--film);
}

.social-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 140px; display: flex; justify-content: center; }

.notfound-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  border-radius: 32px;
  padding: 64px 48px;
}

.notfound-slate {
  width: 96px;
  height: 28px;
  margin: 0 auto 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.notfound-slate .slate-stripes i { flex: 1; transform: skewX(-18deg); }
.notfound-slate .slate-stripes i:nth-child(odd) { background: var(--film); }
.notfound-slate .slate-stripes i:nth-child(even) { background: var(--blue); }

.notfound-tag {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 72px;
  margin: 0 0 8px;
  color: var(--ink);
  opacity: 0.9;
}

.notfound-card h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
}

.notfound-card p {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 44ch;
  margin: 0 auto 28px;
}

.notfound-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 560px) {
  .notfound-card { padding: 44px 28px; border-radius: 26px; }
  .notfound-tag { font-size: 56px; }
}

/* ---------- Standalone About page ---------- */
.about-page { padding: 60px 0 120px; }

.about-page-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
  border-radius: 36px;
  padding: 60px;
}

.about-page-tag {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.about-page-grid h1 {
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 700;
  margin-bottom: 26px;
}

.about-page-grid .about-text p {
  font-size: 18px;
  max-width: 62ch;
}

.slate-tall { aspect-ratio: 4 / 5; position: sticky; top: 120px; }

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
}

.footer-brand img { width: 22px; height: 22px; border-radius: 5px; }

footer .fine {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  header.nav { padding: 18px 0 0; }
  .about-grid, .about-page-grid { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 26px; }
  .about-portrait { order: 2; }
  .about-text { order: 1; }
  .slate { max-width: 170px; margin: 0 auto; }
  .slate-tall { position: static; aspect-ratio: 4 / 3; max-width: 220px; }
  .hero { padding: 36px 0 44px; }
  .project-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px; }
  .project-status, .project-link { align-self: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .nav-inner { flex-direction: column; align-items: center; gap: 10px; }
  .brand { font-size: 17px; padding: 8px 16px 8px 10px; }
  .brand img { width: 28px; height: 28px; }
  .nav-right { justify-content: center; gap: 10px; }
  .nav-projects-link, .nav-about-link { font-size: 14px; padding: 10px 16px; }
}
