:root {
  --bg: #fbfaf7;
  --bg-soft: #f4f1ec;
  --panel: #faf8f4;
  --text: #2b241f;
  --muted: #5e554c;
  --surface-dark: #2f2722;
  --on-dark: #f6f1ea;
  --on-dark-muted: rgba(246, 241, 234, 0.78);
  --on-dark-soft: rgba(246, 241, 234, 0.86);
  --line: rgba(43, 36, 31, 0.12);
  --accent: #e30613;
  --accent-soft: rgba(227, 6, 19, 0.08);
  --shadow: rgba(36, 24, 20, 0.1);
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 1.8;
}

.icon-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  padding: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
}

main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 14px 16px 0;
  pointer-events: none;
}

.site-nav-inner {
  pointer-events: auto;
  max-width: calc(100% - 32px);
  padding: 6px;
  border: 1px solid rgba(246, 241, 234, 0.16);
  border-radius: 999px;
  background: rgba(43, 36, 31, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 350ms ease,
    border-color 350ms ease;
}

.site-nav.is-scrolled .site-nav-inner {
  border-color: var(--line);
  background: rgba(251, 250, 247, 0.86);
}

.site-nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav-list::-webkit-scrollbar {
  display: none;
}

.site-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(246, 241, 234, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.site-nav.is-scrolled .site-nav-list a {
  color: var(--muted);
}

.site-nav-list a:hover {
  color: var(--on-dark);
  background: rgba(246, 241, 234, 0.1);
}

.site-nav.is-scrolled .site-nav-list a:hover {
  color: var(--text);
  background: rgba(43, 36, 31, 0.06);
}

.site-nav-list a.is-active {
  color: var(--on-dark);
  background: rgba(227, 6, 19, 0.88);
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.28);
}

.site-nav.is-scrolled .site-nav-list a.is-active {
  color: var(--on-dark);
  background: var(--accent);
}

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

.section-grid > *,
.section-heading > *,
.hero > * {
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 100svh;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(43, 36, 31, 0.45) 0%,
    rgba(43, 36, 31, 0.2) 42%,
    rgba(43, 36, 31, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  color: var(--on-dark);
  text-align: center;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(3.7rem, 7.3vw, 7.6rem);
}

h2 {
  font-size: clamp(2.7rem, 5.7vw, 5.3rem);
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.hero-copy,
.section-intro,
.text-columns p,
.finding p,
.analysis-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-copy {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--on-dark-soft);
}

.hero .button-primary {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-button-secondary {
  border-color: rgba(246, 241, 234, 0.28);
  background: rgba(246, 241, 234, 0.1);
  color: var(--on-dark);
}

.hero h1 {
  color: var(--on-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.button-primary {
  background: var(--accent);
  color: var(--on-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.content-section {
  position: relative;
  isolation: isolate;
  padding: 7rem 0;
}

.content-section::before {
  position: absolute;
  inset: 0 auto;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: var(--bg);
  content: "";
}

main .content-section:nth-child(even)::before {
  background: var(--bg-soft);
}

#kontext {
  padding-top: 8rem;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.wide-image,
.final-image {
  min-height: 520px;
  margin: 48px 0 0;
}

.old-site-preview {
  position: relative;
  min-height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 52px var(--shadow);
  cursor: pointer;
}

.old-site-preview img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(14px);
  transform: scale(1.03);
  transition: filter 450ms ease, transform 450ms ease;
}

.old-site-preview:hover img,
.old-site-preview:focus-visible img {
  filter: blur(0);
  transform: scale(1);
}

.old-site-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(43, 36, 31, 0.18);
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.old-site-preview:hover .old-site-hint,
.old-site-preview:focus-visible .old-site-hint {
  opacity: 0;
}

.old-site-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: none) {
  .old-site-preview img {
    filter: blur(14px);
  }

  .old-site-preview:active img {
    filter: blur(0);
    transform: scale(1);
  }

  .old-site-preview:active .old-site-hint {
    opacity: 0;
  }
}

.final-design-preview {
  position: relative;
  min-height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 52px var(--shadow);
}

.final-design-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.final-design-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 36, 31, 0.42);
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
}

.final-design-preview:hover .final-design-overlay,
.final-design-preview:focus-within .final-design-overlay {
  opacity: 1;
  pointer-events: auto;
}

.final-design-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(36, 24, 20, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.final-design-button:hover {
  transform: translateY(-1px);
  background: #c80512;
}

@media (hover: none) {
  .final-design-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .final-design-preview:active .final-design-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.section-intro {
  max-width: 780px;
  margin: 28px 0 0;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.field-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 28px var(--shadow);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.field-list li span {
  min-width: 0;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 40px 0 0;
}

.project-meta div {
  padding: 22px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 30px var(--shadow);
}

.project-meta strong,
.project-meta span {
  display: block;
}

.project-meta strong {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.05rem;
}

.project-meta span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.impact-quote {
  max-width: 860px;
  margin: 44px 0 0;
  padding: 0;
  border: 0;
}

.impact-quote p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 3.8vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.impact-quote p span {
  color: var(--accent);
}

.impact-quote cite {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.analysis-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 0;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 40px var(--shadow);
}

.analysis-card .icon-badge {
  margin-bottom: 18px;
}

.analysis-card span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.analysis-card p {
  margin: 0;
}

.findings-list {
  display: grid;
  gap: 2rem;
  margin-top: 48px;
}

.finding {
  display: grid;
  padding: 0;
}

.finding p {
  max-width: 850px;
  margin: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

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

.design-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.design-card {
  min-height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 52px var(--shadow);
}

.design-card img {
  width: 100%;
  height: auto;
}

.design-item figcaption {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.design-exploration {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.design-exploration summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  list-style: none;
}

.design-exploration summary::-webkit-details-marker {
  display: none;
}

.design-exploration summary::after {
  margin-left: 10px;
  color: var(--accent);
  content: "+";
}

.design-exploration[open] summary::after {
  content: "-";
}

.design-exploration .design-row {
  margin-top: 28px;
}

.final-section {
  padding-bottom: 72px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.outcome-grid div {
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 30px var(--shadow);
}

.outcome-grid strong,
.outcome-grid span {
  display: block;
}

.outcome-grid strong {
  margin-bottom: 8px;
  color: var(--text);
}

.outcome-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px max(16px, calc((100% - var(--max-width)) / 2)) 48px;
  background: var(--surface-dark);
  color: rgba(246, 241, 234, 0.68);
}

.footer-primary p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--on-dark);
  font-weight: 700;
}

.site-footer > a {
  color: var(--on-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

@media (max-width: 1500px) {
  .analysis-grid,
  .outcome-grid,
  .project-meta {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    min-height: auto;
  }

  .analysis-card span {
    margin-bottom: 22px;
  }
}

@media (max-width: 720px) {
  .section-grid,
  .section-heading,
  .finding {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 0 56px;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .wide-image,
  .final-image {
    grid-column: auto;
    min-height: 330px;
  }

  .text-columns,
  .field-list,
  .project-meta,
  .design-row {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 76px 0;
  }

  .site-nav {
    padding-top: 10px;
  }

  .site-nav-list {
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .site-nav-list a {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  .hero-video {
    display: none;
  }

  .hero-overlay {
    background: rgba(43, 36, 31, 0.72);
  }

  .reveal {
    animation: none;
    transition: none;
  }
}
