:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --ink: #171717;
  --muted: #5f6460;
  --line: #d9d4c8;
  --paper: #ffffff;
  --sage: #55766e;
  --moss: #25463f;
  --rose: #bd6f64;
  --butter: #e8d996;
  --sky: #dbe8ed;
  --shadow: 0 18px 50px rgba(38, 44, 40, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(23, 23, 23, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a:hover,
.contact-row a:hover {
  color: var(--moss);
}

.section-pad {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.panel-label,
.project-date,
.subsection-label {
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin-top: 16px;
  max-width: 1050px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.02;
  font-weight: 800;
}

.hero-intro {
  max-width: 690px;
  margin-top: 28px;
  color: #343832;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #3a403b;
  font-size: 13px;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f4f1e9;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.section-heading {
  max-width: 1120px;
  margin-bottom: clamp(28px, 5vw, 60px);
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 64px);
}

.section-intro {
  max-width: 820px;
  margin-top: 22px;
  color: #333832;
  font-size: 18px;
}

.two-column,
.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 5vw, 70px);
}

.text-block,
.future-copy {
  max-width: 820px;
  color: #333832;
  font-size: 18px;
}

.text-block p + p,
.future-copy p + p,
.split-block p + p,
.project-card p + p,
.reflection-panel p + p {
  margin-top: 16px;
}

.profile-panel,
.reflection-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.profile-panel {
  display: grid;
  gap: 0;
}

.profile-panel > div {
  padding: 24px;
}

.profile-panel > div + div {
  border-top: 1px solid var(--line);
}

.profile-panel p {
  margin-top: 8px;
  color: #222;
  font-size: 16px;
}

.split-block {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-block article,
.project-card,
.support-card,
.competence-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.split-block article {
  padding: clamp(24px, 4vw, 42px);
}

h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.split-block h3,
.competence-grid h3,
.reflection-panel h3 {
  margin-bottom: 18px;
}

.subsection-label {
  margin: 52px 0 20px;
  color: var(--rose);
}

.project-stack {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 40px);
}

.project-card--featured {
  border-color: rgba(85, 118, 110, 0.55);
  background: linear-gradient(135deg, rgba(219, 232, 237, 0.75), rgba(255, 255, 255, 0.9));
}

.project-index {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 50%;
  background: var(--butter);
  font-weight: 900;
}

.project-card h3,
.support-card h3 {
  margin-top: 6px;
}

.project-tagline {
  margin: 8px 0 16px;
  color: var(--moss);
  font-weight: 800;
}

.project-media {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  padding: 22px;
  min-height: 285px;
}

.support-card p:last-child {
  margin-top: 14px;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.competence-grid article {
  padding: 22px;
}

.competence-grid p,
.support-card p,
.project-card p,
.split-block p {
  color: #333832;
}

.reflection-panel {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 38px);
  max-width: 980px;
}

.future-section {
  border-top: 1px solid var(--line);
}

.landing-hero,
.page-hero,
.project-hero-detail {
  padding: clamp(54px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.landing-hero {
  min-height: calc(100vh - 67px);
  display: grid;
  align-items: center;
}

.landing-hero h1,
.page-hero h1,
.project-hero-detail h1 {
  max-width: 980px;
  margin-top: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1;
  font-weight: 850;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-content {
  padding-top: clamp(34px, 6vw, 70px);
}

.home-projects {
  padding-top: clamp(36px, 7vw, 80px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-tile {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-tile:hover,
.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(38, 44, 40, 0.16);
}

.work-tile strong,
.work-tile > span:not(.tile-image):not(.tile-kicker) {
  padding-inline: 20px;
}

.work-tile strong {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 25px;
  line-height: 1.08;
}

.work-tile > span:last-child {
  padding-bottom: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.tile-large {
  grid-column: span 2;
}

.tile-kicker {
  padding: 18px 20px 0;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tile-image,
.detail-placeholder {
  display: block;
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0)),
    linear-gradient(135deg, #e8d996, #dbe8ed);
}

.tile-image--fmp {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0)),
    url("../assets/timeline/timeline_test.png");
  background-size: cover;
  background-position: center;
}

.tile-image--kh {
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.72), transparent 28%),
    linear-gradient(135deg, #c7d7c9, #f2e4b7 52%, #c76d5f);
}

.tile-image--m12 {
  background:
    radial-gradient(circle at 70% 20%, #ef936d, transparent 22%),
    linear-gradient(135deg, #f0d276, #e89f6a 48%, #bd6f64);
}

.tile-image--m11 {
  background:
    radial-gradient(circle at 30% 35%, #ffffff, transparent 18%),
    linear-gradient(135deg, #dbe8ed, #e8d996 52%, #c7d7c9);
}

.tile-image--cdr {
  background: linear-gradient(135deg, #dbe8ed, #f3ded8);
}

.tile-image--bol {
  background: linear-gradient(135deg, #c9d9ec, #ffffff 48%, #f0d276);
}

.tile-image--alien {
  background:
    radial-gradient(circle at 55% 45%, #111 0 13%, transparent 14%),
    radial-gradient(circle at 42% 54%, #111 0 9%, transparent 10%),
    linear-gradient(135deg, #f7f6f0, #d9d4c8);
}

.tile-image--thinking {
  background:
    linear-gradient(45deg, transparent 46%, rgba(23,23,23,0.25) 47% 49%, transparent 50%),
    linear-gradient(135deg, #ffffff, #e8d996);
}

.clickable-card {
  display: block;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-hero-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.project-hero-detail video,
.detail-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-placeholder {
  display: grid;
  place-items: center;
  color: rgba(23, 23, 23, 0.55);
  font-weight: 800;
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-layout article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(24px, 4vw, 42px);
}

.detail-layout h2,
.competence-grid h2,
.reflection-panel h2,
.split-block h2 {
  margin: 0 0 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  line-height: 1.15;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-row a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--moss);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .support-grid,
  .competence-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .two-column,
  .split-block,
  .project-hero-detail,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .support-grid,
  .competence-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .tile-large {
    grid-column: span 1;
  }

  .landing-hero h1,
  .page-hero h1,
  .project-hero-detail h1 {
    font-size: clamp(36px, 12vw, 54px);
  }
}

@media print {
  .site-header {
    position: static;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
  }

  .section-pad {
    padding: 36px 28px;
  }
}
