:root {
  --bg: #12100e;
  --bg-elevated: rgba(38, 34, 30, 0.55);
  --ink: #f6f1e8;
  --muted: #b9b0a3;
  --line: rgba(243, 238, 230, 0.1);
  --accent: #e0b07a;
  --accent-deep: #c4894a;
  --header-h: 72px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--ink);
  color: var(--bg);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb-a {
  width: 52vw;
  height: 52vw;
  top: -18vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(224, 176, 122, 0.28), transparent 68%);
}

.orb-b {
  width: 44vw;
  height: 44vw;
  left: -16vw;
  top: 28vh;
  background: radial-gradient(circle, rgba(92, 74, 58, 0.55), transparent 70%);
}

.orb-c {
  width: 38vw;
  height: 38vw;
  right: 8vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(180, 120, 80, 0.16), transparent 70%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 16, 14, 0.52);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner,
main,
.site-footer {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.wordmark:hover {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

nav a.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 28px);
}

.hero {
  min-height: calc(100vh - var(--header-h) - 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0 0 28px;
  max-width: 13ch;
  font-size: clamp(52px, 9vw, 96px);
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
}

h3 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.lede,
.section-copy {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.about,
.now,
.work,
.approach,
.notes,
.contact {
  padding: 40px 0 96px;
}

.about-panel {
  max-width: 68ch;
  padding: 40px;
}

.about-panel p {
  margin: 0 0 1.1em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-copy {
  margin-top: 16px;
}

.now-grid,
.principles,
.notes-list {
  display: grid;
  gap: 18px;
}

.now-grid,
.principles {
  grid-template-columns: repeat(3, 1fr);
}

.notes-list {
  grid-template-columns: repeat(2, 1fr);
}

.glass-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.card-kicker,
.item-name {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glass-card p,
.project-copy > p {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  margin-top: 16px !important;
  font-size: 13px;
  color: #8f877c !important;
}

.project {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.project-visual {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(224, 176, 122, 0.18), rgba(18, 16, 14, 0.2)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 45%);
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 72px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles span {
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
}

.contact-panel {
  padding: 48px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .now-grid,
  .principles,
  .notes-list,
  .project {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 8px);
    right: 24px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    min-width: 180px;
    background: rgba(18, 16, 14, 0.82);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(18px);
  }

  .site-header.is-open nav {
    display: flex;
  }

  .contact-panel,
  .about-panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  main,
  .site-footer {
    width: min(1080px, calc(100% - 28px));
  }

  h1 {
    font-size: clamp(44px, 12vw, 72px);
  }

  .hero {
    min-height: auto;
    padding: 36px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .site-header {
    transition: none;
  }
}
