:root {
  --ink: #f6f0d7;
  --muted: #d8d1a9;
  --dim: #a7b38d;
  --black: #060805;
  --forest: #113c25;
  --leaf: #2c6e3d;
  --acid: #e6de53;
  --gold: #f3c84f;
  --glass: rgba(14, 24, 15, 0.58);
  --glass-strong: rgba(20, 37, 22, 0.74);
  --line: rgba(230, 222, 83, 0.24);
  --focus: #fff06a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 222, 83, 0.34), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(44, 110, 61, 0.48), transparent 34%),
    radial-gradient(circle at 55% 80%, rgba(243, 200, 79, 0.2), transparent 30%),
    linear-gradient(145deg, #020302 0%, #08150d 38%, #102516 70%, #050805 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("assets/images/mycelium-bg.jpg") center / cover no-repeat;
  opacity: 0.08;
  filter: blur(0.8px) contrast(1.2) saturate(0.55);
  pointer-events: none;
}

.ambient {
  position: fixed;
  inset: -45vmax;
  z-index: -1;
  background:
    conic-gradient(from 0deg, rgba(230, 222, 83, 0.12), rgba(44, 110, 61, 0.36), rgba(5, 8, 5, 0), rgba(243, 200, 79, 0.18), rgba(17, 60, 37, 0.42), rgba(230, 222, 83, 0.12));
  filter: blur(56px);
  opacity: 0.56;
  transform-origin: center;
}

@keyframes gentleReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(230, 222, 83, 0);
  }

  50% {
    text-shadow: 0 0 22px rgba(230, 222, 83, 0.22);
  }
}

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

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

  .hero::before,
  .mycelium-section::before {
    background-attachment: scroll;
  }
}

a {
  color: var(--acid);
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(3, 6, 3, 0.68);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-title {
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-size: 1.22rem;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--acid);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) clamp(18px, 5vw, 72px) clamp(32px, 7vw, 76px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 8, 5, 0.86), rgba(6, 8, 5, 0.68) 48%, rgba(6, 8, 5, 0.92)),
    url("assets/images/mycelium-bg.jpg") center / cover no-repeat;
  background-attachment: fixed;
  filter: contrast(1.08) saturate(0.72);
  opacity: 0.52;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 18% 22%, rgba(230, 222, 83, 0.24), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(44, 110, 61, 0.36), transparent 36%);
}

.hero-copy {
  max-width: 980px;
  padding: clamp(24px, 4vw, 42px);
}

.glass-panel,
.glass-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: 46% 54% 45% 55% / 36% 41% 59% 64%;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 16px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(145%);
}

.glass-card {
  padding: clamp(28px, 4vw, 42px);
  min-height: 275px;
}

.blob {
  position: relative;
  isolation: isolate;
}

.blob::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(246, 240, 215, 0.44);
  border-radius: inherit;
  pointer-events: none;
}

.blob-one {
  border-radius: 51% 49% 42% 58% / 32% 44% 56% 68%;
}

.blob-two {
  border-radius: 42% 58% 56% 44% / 55% 34% 66% 45%;
}

.blob-three {
  border-radius: 58% 42% 49% 51% / 39% 63% 37% 61%;
}

.blob-four {
  border-radius: 36% 64% 43% 57% / 48% 38% 62% 52%;
}

.blob-large {
  border-radius: 45% 55% 48% 52% / 34% 44% 56% 66%;
}

.eyebrow,
.document-type {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.7rem, 7.8vw, 6.6rem);
  letter-spacing: 0;
}

h1 span {
  color: var(--acid);
  animation: titleGlow 7s ease-in-out infinite;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.34rem);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-text,
.hero-actions {
  animation: gentleReveal 700ms ease-out both;
}

.hero-copy h1 {
  animation-delay: 90ms;
}

.hero-text {
  animation-delay: 170ms;
}

.hero-actions {
  animation-delay: 250ms;
}

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

.button,
.document-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(230, 222, 83, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
}

.button.primary {
  background: linear-gradient(135deg, rgba(230, 222, 83, 0.24), rgba(44, 110, 61, 0.36));
  color: var(--ink);
}

.button.secondary {
  background: rgba(15, 35, 18, 0.52);
  color: var(--acid);
}

.button:hover,
.document-card a:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 222, 83, 0.78);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
}

.stat {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.26);
  border-left: 6px solid var(--acid);
  border-radius: 6px;
}

.stat strong {
  color: var(--acid);
  font-size: 2.25rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.mycelium-section {
  position: relative;
  overflow: hidden;
}

.mycelium-section::before {
  content: "";
  position: absolute;
  inset: 0 -8% -18%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 8, 5, 0.78), rgba(6, 8, 5, 0.46) 48%, rgba(6, 8, 5, 0.88)),
    url("assets/images/mycelium-bg.jpg") center / cover no-repeat;
  background-attachment: fixed;
  filter: contrast(1.14) saturate(0.72);
  opacity: 0.42;
}

.mycelium-section::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -26%;
  z-index: -1;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  background: url("assets/images/mycelium-bg.jpg") center / cover no-repeat;
  border-radius: 50%;
  filter: blur(1px) contrast(1.16) saturate(0.58);
  opacity: 0.28;
  mask-image: radial-gradient(circle, #000 0 46%, transparent 72%);
}

.section-heading {
  max-width: 930px;
  margin-bottom: 32px;
  animation: gentleReveal 680ms ease-out both;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.summary-quote {
  margin: 22px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(230, 222, 83, 0.62);
  color: var(--muted);
  font-family: "IM Fell Great Primer", Georgia, serif;
  font-size: clamp(1.22rem, 2.1vw, 1.7rem);
  line-height: 1.28;
}

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

.client-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 8px;
}

.summary-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(50vw, 1fr);
  gap: clamp(24px, 6vw, 64px);
  align-items: start;
}

.summary-text {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.26rem, 2.08vw, 1.72rem);
  text-align: justify;
  line-height: 1.58;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.research-grid,
.outcome-grid,
.testing-grid,
.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.moodboard-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  overflow: visible;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 16px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(145%);
}

.moodboard-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.moodboard-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.moodboard-trigger:hover::after,
.moodboard-trigger:focus-visible::after {
  border-color: rgba(230, 222, 83, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 5px rgba(230, 222, 83, 0.13);
}

.moodboard-trigger:hover,
.moodboard-trigger:focus-visible {
  filter: drop-shadow(0 18px 30px rgba(230, 222, 83, 0.18));
  transform: translateY(-2px);
}

.moodboard-trigger:hover img,
.moodboard-trigger:focus-visible img {
  filter: saturate(1.08) brightness(1.08);
}

.moodboard-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.32;
  object-fit: contain;
  background: rgba(246, 240, 215, 0.96);
  border: 1px solid rgba(230, 222, 83, 0.24);
  border-radius: inherit;
  transition: filter 180ms ease, transform 180ms ease;
}

.moodboard-card figcaption {
  color: var(--muted);
  padding-inline: 6px;
  line-height: 1.45;
}

.moodboard-card strong {
  display: block;
  color: var(--acid);
}

.view-larger {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(230, 222, 83, 0.68);
  border-radius: 8px;
  background: rgba(5, 8, 5, 0.78);
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.card-number {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--acid);
  font-weight: 900;
  transition: transform 180ms ease, text-shadow 180ms ease;
}

.glass-card:hover .card-number,
.glass-card:focus-within .card-number {
  text-shadow: 0 0 18px rgba(230, 222, 83, 0.32);
  transform: translateY(-2px);
}

.glass-card p,
.glass-panel p,
.timeline p,
.site-footer p,
.check-list {
  color: var(--muted);
}

.testing-card {
  min-height: auto;
  border-radius: 8px;
}

.testing-card::before {
  content: none;
}

.testing-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(230, 222, 83, 0.42);
  border-radius: 8px;
  background: rgba(230, 222, 83, 0.12);
  color: var(--acid);
}

.testing-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band {
  background: rgba(0, 0, 0, 0.22);
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.timeline li {
  counter-increment: process;
  position: relative;
  min-height: 300px;
}

.timeline li::before {
  content: counter(process, decimal-leading-zero);
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  background: rgba(230, 222, 83, 0.16);
  color: var(--acid);
  border: 1px solid rgba(230, 222, 83, 0.36);
  border-radius: 8px;
  font-weight: 900;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
}

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

.split-grid .glass-panel {
  padding: clamp(34px, 5vw, 58px);
}

.floating-text {
  max-width: 760px;
  padding-block: clamp(8px, 2vw, 20px);
  color: var(--muted);
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.floating-text h3 {
  color: var(--ink);
}

.floating-text p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(230, 222, 83, 0.52);
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.viewer-layout article {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
}

.viewer-layout h3 {
  margin-bottom: 14px;
}

iframe {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  min-height: 420px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #101510;
}

.prototype-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 8px;
}

.prototype-callout p {
  max-width: 650px;
}

.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  max-height: 90vh;
  padding: clamp(18px, 3vw, 28px);
  overflow: auto;
  border-radius: 8px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-panel img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: rgba(246, 240, 215, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-panel p {
  margin: 0;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(230, 222, 83, 0.42);
  border-radius: 8px;
  background: rgba(15, 35, 18, 0.58);
  color: var(--acid);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.08), 0 12px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(160%);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(230, 222, 83, 0.86);
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .hero,
  .summary-section,
  .outcome-grid,
  .testing-grid,
  .split-grid,
  .moodboard-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .timeline li {
    min-height: auto;
  }
}

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

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

  h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .prototype-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .research-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  iframe {
    min-height: 360px;
  }
}
