:root {
  --bg: #f6f1ea;
  --bg-strong: #111316;
  --surface: rgba(255, 252, 246, 0.72);
  --ink: #161412;
  --muted: #68635c;
  --line: rgba(22, 20, 18, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);
  --accent: #355f80;
  --accent-soft: rgba(53, 95, 128, 0.1);
  --cream: #f3ece2;
  --white: #fffdf9;
  --shadow: 0 28px 80px rgba(18, 18, 18, 0.06);
  --max-width: 1120px;
  --serif: "Montserrat", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --sans: "Montserrat", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

p,
a,
span {
  text-wrap: pretty;
}

.page-halo {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(54px);
  pointer-events: none;
  opacity: 0.75;
}

.page-halo-left {
  top: -7rem;
  left: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(53, 95, 128, 0.12);
}

.page-halo-right {
  right: -4rem;
  top: 18rem;
  width: 18rem;
  height: 18rem;
  background: rgba(194, 160, 114, 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

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

.section {
  padding: 108px 0;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(22, 20, 18, 0.08);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 8vw, 8rem);
}

.hero-subtitle,
.hero-lead,
.spotlight-copy,
.case-item p,
.competition-copy p,
.outro-copy,
.signal-row p {
  color: var(--muted);
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-lead {
  max-width: 36rem;
  margin: 18px 0 0;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-row span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero .tag-row {
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-portrait {
  display: flex;
  justify-content: flex-end;
  padding-top: 40px;
}

.portrait-frame {
  width: min(100%, 390px);
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  box-shadow: 0 22px 52px rgba(18, 18, 18, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-heading h2,
.fit h2,
.outro h2 {
  font-size: clamp(2.5rem, 5vw, 5.6rem);
}

.section-heading h2 span,
.fit h2 span {
  color: var(--accent);
}

.signal-list {
  display: grid;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 1px solid var(--line);
}

.signal-title span,
.case-head span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-title h3 {
  font-size: 2rem;
}

.thesis {
  max-width: 18ch;
  margin: 54px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.spotlight,
.competition {
  border-radius: 36px;
  overflow: hidden;
}

.spotlight {
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.74), rgba(247, 240, 230, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.spotlight-dark {
  background:
    radial-gradient(circle at top right, rgba(83, 124, 158, 0.22), transparent 24%),
    linear-gradient(180deg, #151a20 0%, #101419 100%);
  color: var(--white);
}

.spotlight-dark .eyebrow,
.spotlight-dark .spotlight-label {
  color: #94bfdf;
}

.spotlight-dark .spotlight-subtitle,
.spotlight-dark .spotlight-copy,
.spotlight-dark .spotlight-grid p {
  color: rgba(245, 242, 235, 0.8);
}

.spotlight-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.spotlight h3 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

.spotlight-subtitle {
  margin: 12px 0 0;
  font-size: 1.06rem;
  font-weight: 600;
}

.spotlight-copy {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.artifact-note {
  margin: 18px 0 0;
  color: rgba(245, 242, 235, 0.64);
  font-size: 0.95rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.spotlight-grid > div {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.spotlight:not(.spotlight-dark) .spotlight-grid > div {
  border-top-color: var(--line);
}

.spotlight-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight + .spotlight,
.competition {
  margin-top: 28px;
}

.case-list {
  display: grid;
  margin-top: 16px;
}

.case-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.case-item:last-child {
  border-bottom: 1px solid var(--line);
}

.case-head h4 {
  font-size: 1.9rem;
}

.case-body p {
  margin: 0;
}

.artifact-strip,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artifact-strip {
  margin-top: 16px;
}

.artifact-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.link-row {
  margin-top: 14px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 180ms ease, transform 180ms ease;
}

.link-row a:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.competition {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
  padding: 36px 40px;
  background:
    radial-gradient(circle at left center, rgba(53, 95, 128, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.84), rgba(245, 237, 227, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.competition-number {
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.85;
  color: var(--accent);
}

.competition h3 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.competition-note {
  margin-top: 12px;
  font-weight: 600;
}

.competition .link-row {
  margin-top: 18px;
}

.fit {
  border-top: 1px solid rgba(22, 20, 18, 0.08);
  border-bottom: 1px solid rgba(22, 20, 18, 0.08);
}

.fit-inner,
.outro-inner {
  width: min(100%, 780px);
  margin: 0 auto;
}

.fit-inner {
  display: grid;
  gap: 10px;
}

.outro-inner {
  display: grid;
}

.fit .tag-row {
  margin-top: 26px;
}

.fit h2,
.outro h2 {
  max-width: none;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
}

.outro-copy {
  max-width: none;
  margin-top: 18px;
  font-size: 1.04rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .button,
  .nav a {
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero-layout,
  .signal-row,
  .spotlight-grid,
  .case-item,
  .competition {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    gap: 18px;
  }

  .section {
    padding: 84px 0;
  }

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

  .hero-layout {
    gap: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.9rem, 15vw, 5.4rem);
  }

  .portrait-frame {
    width: min(100%, 340px);
  }

  .portrait-frame img {
    border-radius: 24px;
  }

  .spotlight,
  .competition {
    padding: 26px;
    border-radius: 28px;
  }

  .thesis {
    max-width: none;
    margin-top: 44px;
  }
}
