:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --ink: #171717;
  --muted: #5f6460;
  --line: #d9d4c8;
  --paper: #ffffff;
  --sage: #e89cc1;
  --moss: #de86b2;
  --rose: #e89cc1;
  --accent-soft: rgba(232, 156, 193, 0.18);
  --accent-glow: rgba(232, 156, 193, 0.22);
  --butter: #e8d996;
  --sky: #dbe8ed;
  --shadow: 0 18px 50px rgba(38, 44, 40, 0.12);
  --radius: 8px;
  --media-radius: 18px;
}

* {
  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 {
  color: var(--sage);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.brand:hover {
  color: var(--moss);
  transform: translateY(-1px);
}

.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);
}

.nav-links a {
  border-radius: 999px;
  padding: 6px 10px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.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-inline: auto;
  margin-bottom: clamp(28px, 5vw, 60px);
  text-align: center;
}

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

.section-intro {
  max-width: 820px;
  margin: 22px auto 0;
  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;
}

.page-text {
  display: grid;
  gap: 28px;
  width: min(100%, 920px);
  margin-inline: auto;
  color: #333832;
  font-size: 18px;
}

.page-text article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.page-text article:last-child {
  border-bottom: 0;
}

.page-text h2 {
  margin: 0 0 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
  line-height: 1.15;
  text-align: center;
}

.page-text h3 {
  margin: 0 0 8px;
}

.page-text p + p {
  margin-top: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--moss);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.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 {
  width: min(100%, 1280px);
  margin: 52px auto 20px;
  color: var(--rose);
}

.section-heading + .subsection-label {
  margin-top: 0;
}

.home-main-grid + .subsection-label {
  margin-top: clamp(54px, 8vw, 110px);
}

.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 {
  display: grid;
  grid-template-rows: 180px 1fr;
  min-height: 360px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

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

.support-image.tile-image {
  height: 180px;
  min-height: 0;
}

.support-card-body {
  display: block;
  padding: 22px;
}

.has-reveal [data-reveal],
.has-motion .motion-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .work-tile[data-reveal],
.has-reveal .support-card[data-reveal] {
  transition:
    opacity 620ms ease,
    transform 620ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}

.has-reveal [data-reveal].is-visible,
.has-motion .motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-reveal .landing-hero[data-reveal] {
  opacity: 1;
  transform: none;
}

.has-motion .footer-rule.motion-item {
  transform: scaleX(0);
}

.has-motion .footer-rule.motion-item.is-visible {
  transform: scaleX(1);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .has-motion .motion-item,
  .has-motion .footer-rule.motion-item {
    opacity: 1;
    transform: none;
  }
}

.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 {
  position: relative;
  min-height: calc(100vh - 67px);
  display: grid;
  place-content: center;
  align-items: center;
  justify-items: center;
  padding-top: clamp(64px, 8vw, 108px);
  padding-right: clamp(18px, 5vw, 72px);
  padding-bottom: clamp(112px, 14vh, 176px);
  padding-left: clamp(18px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(232, 156, 193, 0.12), transparent 42%),
    radial-gradient(circle at 50% 44%, rgba(232, 217, 150, 0.28), transparent 34%);
  opacity: 0;
  transform: scale(1.04);
  animation: landingAtmosphere 1100ms ease 180ms both;
}

.landing-hero::after {
  z-index: 3;
  background: var(--bg);
  transform-origin: top;
  animation: landingCurtain 980ms cubic-bezier(.76, 0, .24, 1) 120ms both;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
  width: min(100%, 1040px);
  transform: translateY(clamp(-10px, -1.8vw, -28px));
}

.landing-hero-title {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
}

.landing-hero-title span {
  display: block;
  padding-bottom: 0.12em;
  clip-path: inset(0 0 120% 0);
  transform: translateY(0.32em);
  animation: titleLineOpen 780ms cubic-bezier(.22, 1, .36, 1) both;
}

.landing-hero-title span:nth-child(1) {
  animation-delay: 420ms;
}

.landing-hero-title span:nth-child(2) {
  animation-delay: 560ms;
}

.landing-hero .eyebrow,
.landing-hero .hero-intro {
  opacity: 0;
  transform: translateY(16px);
  animation: softRise 720ms ease both;
}

.landing-hero .eyebrow {
  animation-delay: 360ms;
}

.landing-hero .hero-intro {
  animation-delay: 760ms;
}

.landing-hero .hero-intro {
  margin-inline: auto;
  margin-top: 0;
  max-width: 760px;
  font-size: clamp(16px, 1.45vw, 19px);
}

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

.landing-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 8vw, 122px);
  line-height: 0.94;
  text-wrap: balance;
}

.page-hero {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: calc(100vh - 67px);
  padding-top: clamp(64px, 8vw, 108px);
  padding-right: clamp(18px, 5vw, 72px);
  padding-bottom: clamp(112px, 14vh, 176px);
  padding-left: clamp(18px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  justify-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(232, 156, 193, 0.1), transparent 42%),
    radial-gradient(circle at 50% 44%, rgba(232, 217, 150, 0.2), transparent 34%);
  opacity: 0;
  transform: scale(1.04);
  animation: landingAtmosphere 1100ms ease 180ms both;
}

.page-hero::after {
  z-index: 3;
  background: var(--bg);
  transform-origin: top;
  animation: landingCurtain 980ms cubic-bezier(.76, 0, .24, 1) 120ms both;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow,
.page-hero .section-intro {
  opacity: 0;
  transform: translateY(16px);
  animation: softRise 720ms ease both;
}

.page-hero .eyebrow {
  animation-delay: 360ms;
}

.page-hero .section-intro {
  animation-delay: 760ms;
  margin-top: 0;
}

.page-hero h1 {
  clip-path: inset(0 0 120% 0);
  padding-bottom: 0.12em;
  transform: translateY(0.32em);
  animation: titleLineOpen 780ms cubic-bezier(.22, 1, .36, 1) 460ms both;
}

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

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

.home-projects .section-heading {
  text-align: left;
}

.home-projects .section-heading,
.supporting-home .section-heading {
  max-width: 1280px;
}

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

.home-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 80px) clamp(24px, 5vw, 58px);
  max-width: 1280px;
  margin-inline: auto;
}

.work-tile {
  position: relative;
  display: grid;
  grid-template-rows: 220px auto auto 1fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-main-grid .work-tile {
  grid-template-rows: clamp(320px, 38vw, 500px) auto auto auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-main-grid .work-tile::after {
  content: "View project";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-tile:hover,
.clickable-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 156, 193, 0.45);
  box-shadow: 0 28px 76px rgba(38, 44, 40, 0.18);
}

.home-main-grid .work-tile:hover {
  box-shadow: none;
}

.home-main-grid .work-tile:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.work-tile:hover .tile-image,
.support-card:hover .support-image {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

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

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

.home-main-grid .work-tile strong {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 0.95;
}

.work-tile .tile-desc {
  align-self: start;
  margin-top: 10px;
  padding-inline: 20px;
  padding-bottom: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.home-main-grid .work-tile .tile-desc {
  max-width: 620px;
  margin-top: 16px;
  padding-inline: 0;
  padding-bottom: 0;
  font-size: clamp(17px, 1.45vw, 21px);
}

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

.home-main-grid .tile-kicker {
  padding: 28px 0 0;
  font-size: 13px;
}

.tile-image,
.detail-placeholder {
  display: block;
  min-height: 0;
  height: 220px;
  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);
  background-size: cover;
  background-position: center;
  transform-origin: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.home-main-grid .tile-image {
  height: auto;
  position: relative;
  border: 0;
  border-radius: var(--media-radius);
  background-color: #fff;
  background-image: none;
  box-shadow: 0 22px 60px rgba(38, 44, 40, 0.14);
  overflow: hidden;
}

.home-main-grid .tile-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    var(--tile-image-url);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 520ms ease, filter 520ms ease;
}

.home-main-grid .work-tile:hover .tile-image {
  transform: none;
  box-shadow: 0 30px 80px rgba(38, 44, 40, 0.18);
}

.home-main-grid .work-tile:hover .tile-image::before {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.03);
}

.home-main-grid .work-tile strong,
.home-main-grid .work-tile .tile-desc {
  padding-inline: 0;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 0;
}

.tile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(23, 23, 23, 0.28);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.work-tile:hover .tile-tags span {
  border-color: rgba(232, 156, 193, 0.42);
  color: var(--moss);
  background: rgba(255, 255, 255, 0.9);
}

.tile-image--fmp {
  --tile-image-url: url("assets/images/fmp/fmp-cover.jpg");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.18)),
    url("assets/images/fmp/fmp-cover.jpg");
  background-size: cover;
  background-position: center;
}

.tile-image--kh {
  --tile-image-url: url("assets/images/kh/kh-cover.png");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.2)),
    url("assets/images/kh/kh-cover.png");
  background-size: cover;
  background-position: center;
}

.project-hero--kh {
  background-image:
    linear-gradient(90deg, rgba(245, 247, 250, 0.8), rgba(245, 247, 250, 0.42) 45%, rgba(245, 247, 250, 0.16)),
    var(--cover-image);
}

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

.project-hero--m12 {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.78), rgba(251, 250, 246, 0.42) 45%, rgba(251, 250, 246, 0.12)),
    var(--cover-image);
  background-position: center;
}

.project-hero--m12 h1 {
  max-width: 980px;
  font-size: clamp(54px, 8.4vw, 128px);
}

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

.project-hero--m11 {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.76), rgba(251, 250, 246, 0.38) 45%, rgba(251, 250, 246, 0.1)),
    var(--cover-image);
  background-position: center;
}

.project-hero--m11 h1 {
  max-width: 980px;
  font-size: clamp(54px, 8.4vw, 128px);
}

.tile-image--cdr {
  --tile-image-url: url("assets/images/cdr/cdr-cover.png");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.08)),
    url("assets/images/cdr/cdr-cover.png");
  background-size: cover;
  background-position: center;
}

.project-hero--cdr {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.76), rgba(251, 250, 246, 0.38) 45%, rgba(251, 250, 246, 0.12)),
    var(--cover-image);
  background-position: center;
}

.project-hero--cdr h1 {
  max-width: 980px;
  font-size: clamp(54px, 8.4vw, 128px);
}

.tile-image--bol {
  --tile-image-url: url("assets/images/bol/bol-cover.png");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08)),
    url("assets/images/bol/bol-cover.png");
  background-size: cover;
  background-position: center;
}

.project-hero--bol {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.74), rgba(251, 250, 246, 0.38) 45%, rgba(251, 250, 246, 0.12)),
    var(--cover-image);
  background-position: center;
}

.project-hero--bol h1 {
  max-width: 1100px;
  font-size: clamp(44px, 7.4vw, 116px);
}

.tile-image--alien {
  --tile-image-url: url("assets/images/alien/alien-cover.png");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.06)),
    url("assets/images/alien/alien-cover.png");
  background-size: cover;
  background-position: center;
}

.project-hero--alien {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.72), rgba(251, 250, 246, 0.34) 45%, rgba(251, 250, 246, 0.1)),
    var(--cover-image);
  background-position: center;
}

.project-hero--alien h1 {
  max-width: 980px;
  font-size: clamp(58px, 9vw, 134px);
}

.tile-image--thinking {
  --tile-image-url: url("assets/images/thinking/thinking-cover.png");
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    url("assets/images/thinking/thinking-cover.png");
  background-size: cover;
  background-position: center;
}

.project-hero--thinking {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.74), rgba(251, 250, 246, 0.36) 45%, rgba(251, 250, 246, 0.12)),
    var(--cover-image);
  background-position: center;
}

.project-hero--thinking h1 {
  max-width: 1120px;
  font-size: clamp(44px, 7.3vw, 116px);
}

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

.project-hero-detail {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-hero-detail h1,
.project-hero-detail .hero-intro,
.project-hero-meta {
  animation: softRise 760ms ease both;
}

.project-hero-meta {
  animation-delay: 120ms;
}

.project-hero-detail h1 {
  animation-delay: 220ms;
}

.project-hero-detail .hero-intro {
  animation-delay: 360ms;
}

.project-hero-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 48%, rgba(232, 156, 193, 0.16), transparent 30%),
    radial-gradient(circle at 34% 78%, rgba(219, 232, 237, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(251, 250, 246, 0.92), rgba(251, 250, 246, 0.54));
}

.project-hero-detail > div:first-child {
  max-width: 980px;
}

.project-hero--cover {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: stretch;
  padding: clamp(44px, 7vw, 96px);
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.78), rgba(251, 250, 246, 0.44) 44%, rgba(251, 250, 246, 0.18)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.project-hero--cover::before {
  display: block;
  z-index: -1;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.045);
  animation: heroCoverSettle 1300ms cubic-bezier(.22, 1, .36, 1) both;
}

.project-hero--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.78), rgba(251, 250, 246, 0.44) 44%, rgba(251, 250, 246, 0.18)),
    linear-gradient(180deg, rgba(251, 250, 246, 0.1), rgba(251, 250, 246, 0.3));
}

.project-hero--cover .project-hero-overlay {
  display: grid;
  justify-items: center;
  width: min(100%, 1080px);
  max-width: min(100%, 1080px);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 52px);
  text-align: center;
}

.project-hero-meta {
  position: absolute;
  top: clamp(22px, 4vw, 54px);
  left: clamp(18px, 5vw, 72px);
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: min(680px, calc(100% - 36px));
  padding: 12px 0;
  text-align: left;
}

.project-hero-meta .back-link {
  margin-bottom: 0;
}

.project-hero--cover h1 {
  max-width: 1040px;
  font-size: clamp(54px, 9vw, 140px);
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(251, 250, 246, 0.5);
}

.project-hero--kh h1 {
  max-width: 1120px;
  font-size: clamp(42px, 6.3vw, 92px);
  line-height: 0.98;
}

.project-hero--cover .hero-intro {
  max-width: 760px;
  margin-inline: auto;
  color: #171717;
  text-shadow: 0 10px 32px rgba(251, 250, 246, 0.65);
}

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

.hero-poster {
  justify-self: end;
  width: min(100%, 680px);
  border: 0;
  border-radius: var(--media-radius);
  background: var(--paper);
  box-shadow: 0 30px 86px rgba(38, 44, 40, 0.18);
  overflow: hidden;
  transform: rotate(0.35deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-poster:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 38px 104px rgba(38, 44, 40, 0.22);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
}

.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;
  transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover {
  color: var(--moss);
  transform: translateX(3px);
}

.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);
}

.project-narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 72px);
  max-width: 1180px;
  margin-inline: auto;
}

.project-narrative > * {
  grid-column: 1 / -1;
}

.project-narrative article {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 4vw, 48px);
  border: 1px solid rgba(217, 212, 200, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(38, 44, 40, 0.08);
}

.project-narrative article:last-child {
  padding-bottom: clamp(22px, 3vw, 34px);
}

.project-narrative p {
  max-width: 780px;
  margin-inline: auto;
  color: #333832;
  font-size: 18px;
}

.project-narrative p + p {
  margin-top: 16px;
}

.project-figure,
.image-card {
  position: relative;
  border: 0;
  border-radius: var(--media-radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: imageReveal 520ms ease both;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  will-change: transform;
}

.project-figure::after,
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 240ms ease, transform 520ms ease;
}

.project-figure {
  width: min(100%, 960px);
  margin-inline: auto;
}

.project-figure--medium {
  width: min(100%, 560px);
}

.project-figure--portrait {
  width: min(100%, 720px);
}

.project-figure:hover,
.image-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 156, 193, 0.48);
  box-shadow: 0 24px 64px rgba(38, 44, 40, 0.16);
}

.project-figure:hover::after,
.image-card:hover::after {
  opacity: 1;
  transform: translateX(42%);
}

.project-figure img,
.image-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transition: transform 520ms ease, filter 520ms ease;
}

.project-figure:hover img,
.image-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.project-hero--kh + .project-narrative .project-figure,
.project-hero--kh + .project-narrative .image-card {
  background: #fff;
}

.project-hero--kh + .project-narrative .project-figure img,
.project-hero--kh + .project-narrative .image-card img {
  display: block;
  max-height: 680px;
  object-fit: contain;
  background: #fff;
}

.project-hero--kh + .project-narrative .image-card--portrait img {
  max-height: none;
  object-fit: cover;
}

.project-figure--portrait img {
  max-height: 720px;
  object-fit: cover;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}

.project-image-grid--stack {
  grid-template-columns: 1fr;
  max-width: 960px;
}

.project-image-grid--stack .image-card--wide {
  grid-column: 1;
}

.project-image-grid--stack .image-card--portrait {
  width: min(100%, 560px);
  justify-self: center;
}

.project-figure figcaption,
.image-card figcaption {
  min-height: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.image-card--wide {
  grid-column: span 2;
}

.image-card--portrait {
  align-self: start;
}

.image-card--portrait img {
  max-height: none;
  object-fit: cover;
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingCurtain {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

@keyframes landingAtmosphere {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes titleLineOpen {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.32em);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes softRise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCoverSettle {
  0% {
    opacity: 0.82;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.detail-layout h2,
.project-narrative 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;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.about-copy {
  width: 100%;
  margin: 0;
}

.about-portrait {
  width: min(100%, 460px);
  margin: 0 0 0 auto;
  align-self: start;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.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;
}

.site-footer {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(54px, 8vw, 86px);
}

.footer-rule {
  width: min(100%, 1280px);
  height: 1px;
  margin: 0 auto clamp(32px, 5vw, 54px);
  background: rgba(23, 23, 23, 0.16);
  transform-origin: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.42fr) minmax(180px, 0.42fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
  width: min(100%, 1280px);
  margin-inline: auto;
}

.footer-copy,
.footer-block h2,
.footer-block a {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.footer-copy {
  color: #20231f;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-copy:hover {
  color: var(--moss);
  transform: translateY(-2px);
}

.footer-block {
  display: grid;
  gap: 14px;
}

.footer-block h2 {
  margin: 0 0 4px;
  color: #20231f;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.footer-block a {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: #20231f;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-block a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.footer-block a:hover {
  color: var(--rose);
  transform: translateX(4px);
}

.footer-block a:hover::after {
  transform: scaleX(1);
}

@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,
  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: stretch;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

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

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

  .about-portrait {
    width: min(100%, 420px);
    margin: 10px auto 6px;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 0.94;
  }

  .home-main-grid .work-tile {
    grid-template-rows: 260px auto auto 1fr;
    min-height: auto;
  }

  .home-main-grid .work-tile strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .image-card--wide {
    grid-column: span 1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-block {
    gap: 11px;
  }

  .footer-block a {
    font-size: 18px;
  }
}

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

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
  }

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