:root {
  --ivory: #fff8ee;
  --cream: #f4ebdd;
  --sand: #e6d4be;
  --sand-soft: #f7ecdd;
  --apricot: #e8b18d;
  --apricot-hover: #dc9f78;
  --apricot-deep: #c99b78;
  --taupe: #d9b89e;
  --warm-brown: #494038;
  --brown-deep: #33271f;
  --charcoal: #33271f;
  --warm-shadow: #1f1712;
  --ink: var(--ivory);
  --muted: rgba(255, 248, 238, 0.78);
  --dim: rgba(255, 248, 238, 0.54);
  --paper: var(--cream);
  --paper-soft: var(--sand-soft);
  --paper-ink: var(--brown-deep);
  --soft-black: var(--warm-brown);
  --line: rgba(255, 248, 238, 0.2);
  --paper-line: rgba(73, 64, 56, 0.16);
  --gold: var(--apricot);
  --gold-dark: var(--apricot-deep);
  --peach: var(--apricot);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  background: var(--paper);
  color: var(--paper-ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: var(--ink);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(32, 21, 16, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.primary-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a,
.quiet-link,
.site-footer a {
  color: var(--muted);
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.quiet-link {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.58rem 1rem;
  border-radius: 0.34rem;
  background: #e8b18d;
  color: #33271f;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0.75rem 1.9rem rgba(51, 39, 31, 0.16), inset 0 1px 0 rgba(255, 248, 238, 0.34);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  background: #dc9f78;
  color: #33271f;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 2.2rem rgba(51, 39, 31, 0.2), inset 0 1px 0 rgba(255, 248, 238, 0.42);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8rem 1.25rem 4rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -3rem;
  z-index: -3;
  background-image: url("AV Slcies Distillation.png");
  background-size: cover;
  background-position: center;
  filter: brightness(1.28) contrast(0.96) saturate(0.98) sepia(0.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 248, 238, 0.32), rgba(240, 190, 155, 0.18) 24%, rgba(232, 177, 141, 0.06) 48%, transparent 68%),
    radial-gradient(circle at 50% 50%, rgba(51, 39, 31, 0.2), rgba(51, 39, 31, 0.12) 28%, rgba(232, 177, 141, 0.05) 54%, rgba(51, 39, 31, 0.32) 100%),
    linear-gradient(180deg, rgba(232, 177, 141, 0.16), rgba(73, 64, 56, 0.08) 36%, rgba(51, 39, 31, 0.52));
}

.hero-content {
  width: min(52rem, 100%);
  text-align: center;
  margin-top: 1.5rem;
  text-shadow: 0 0.14rem 0.38rem rgba(31, 23, 18, 0.46), 0 1rem 2.1rem rgba(31, 23, 18, 0.46);
}

.hero .eyebrow {
  color: #f0be9b;
}

.hero h1,
.hero-principle {
  color: #fff8ee;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(4.4rem, 13vw, 10.5rem);
}

.hero-principle {
  margin: 0 auto 1.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.hero-copy {
  width: min(38rem, 100%);
  margin: 0 auto 2rem;
  color: rgba(255, 245, 232, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.82rem 1.55rem;
  border: 1px solid rgba(217, 184, 158, 0.72);
  border-radius: 0.34rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #e8b18d;
  color: #33271f;
  border-color: transparent;
  box-shadow: 0 0.75rem 2.2rem rgba(51, 39, 31, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #dc9f78;
  border-color: transparent;
  box-shadow: 0 1rem 2.8rem rgba(51, 39, 31, 0.22);
}

.button-secondary {
  background: rgba(255, 248, 238, 0.08);
  color: #fff5e8;
  border-color: #d9b89e;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(232, 177, 141, 0.14);
  border-color: #f0be9b;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.section {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.intro-section,
.journal-section {
  background:
    linear-gradient(180deg, rgba(243, 232, 216, 0.72), rgba(239, 224, 204, 0.96)),
    var(--paper);
  color: var(--paper-ink);
}

.intro-section .section-kicker,
.journal-section .section-kicker {
  color: var(--gold-dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  max-width: 76rem;
  margin: 0 auto;
}

.intro-grid h2,
.section-head h2,
.philosophy-copy h2 {
  font-size: clamp(2.3rem, 6vw, 5.4rem);
}

.intro-grid p,
.philosophy-copy p {
  color: rgba(38, 27, 20, 0.72);
  font-size: 1.05rem;
}

.experiments-section {
  background:
    linear-gradient(180deg, #201510 0%, #302010 100%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  max-width: 78rem;
  margin: 0 auto 3rem;
}

.section-head .section-kicker {
  margin-bottom: 0.4rem;
}

.section-head > p:not(.section-kicker) {
  grid-column: 2;
  max-width: 38rem;
  color: var(--muted);
}

.experiment-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(1.3rem, 4vw, 3rem);
  max-width: 78rem;
  margin: 0 auto;
}

.experiment-large {
  position: relative;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(215, 161, 127, 0.22);
}

.experiment-large img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 54%;
  filter: sepia(0.18) saturate(0.62) contrast(1.02);
  transition: transform 600ms ease, filter 600ms ease;
}

.experiment-large::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(32, 21, 16, 0.06) 0%, rgba(32, 21, 16, 0.18) 46%, rgba(32, 21, 16, 0.84) 100%);
}

.experiment-large span {
  position: relative;
  z-index: 2;
}

.experiment-large:hover img,
.experiment-large:focus-visible img {
  transform: scale(1.04);
  filter: sepia(0.12) saturate(0.78) contrast(1.04);
}

.experiment-meta,
.experiment-question,
.experiment-row span,
.experiment-row em,
.journal-grid p,
.journal-grid a,
.lab-list small {
  color: var(--dim);
  font-style: normal;
}

.experiment-title {
  margin: 0.55rem 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.experiment-question {
  max-width: 34rem;
}

.experiment-list {
  display: grid;
  align-content: stretch;
  border-top: 1px solid var(--line);
}

.experiment-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, color 180ms ease;
}

.experiment-row strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.experiment-row em {
  grid-column: 2;
}

.experiment-row:hover,
.experiment-row:focus-visible {
  color: var(--gold);
  transform: translateX(0.25rem);
}

.lab-strip {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  background:
    linear-gradient(135deg, #302010 0%, #201510 58%, #403020 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.lab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.lab-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 78rem;
  margin: 0 auto;
  background: rgba(96, 80, 64, 0.2);
}

.journal-grid article {
  min-height: 18rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--paper-soft);
}

.journal-grid h3 {
  margin-bottom: 2rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.journal-grid a,
.text-link {
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.9fr);
  min-height: 44rem;
  background: var(--paper);
  color: var(--paper-ink);
}

.philosophy-image {
  min-height: 36rem;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-copy {
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem);
}

.philosophy-copy .section-kicker {
  color: var(--gold-dark);
}

.method-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0;
}

.method-line span {
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--paper-line);
  color: rgba(38, 27, 20, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  background: var(--warm-shadow);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .footer-mark {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
}

.content-page {
  min-height: 100vh;
  padding: 8rem clamp(1.25rem, 5vw, 5rem) clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 74% 0%, rgba(232, 177, 141, 0.16), transparent 34rem),
    linear-gradient(180deg, #3d3129 0%, #2b201a 34rem, #f4ebdd 34rem, #f4ebdd 100%);
  color: var(--paper-ink);
}

.content-page .reveal {
  opacity: 1;
  transform: none;
}

.page-hero,
.article-page,
.detail-page,
.article-list,
.collection-grid,
.split-content {
  width: min(78rem, 100%);
  margin-inline: auto;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 4rem);
  color: var(--ink);
}

.page-hero h1,
.article-header h1,
.detail-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
}

.page-hero p:not(.section-kicker),
.detail-hero p {
  max-width: 42rem;
  color: rgba(255, 248, 238, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(73, 64, 56, 0.16);
}

.experiment-card {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  background: var(--sand-soft);
  border: 1px solid rgba(73, 64, 56, 0.08);
}

.experiment-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.35rem;
  filter: sepia(0.12) saturate(0.74) contrast(1.02);
}

.experiment-card h2,
.experiment-card .card-title {
  display: block;
  margin: 0;
  color: var(--paper-ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.experiment-card p,
.experiment-card .card-summary {
  color: rgba(51, 39, 31, 0.72);
}

.status-pill {
  width: fit-content;
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(201, 155, 120, 0.44);
  color: #7a563f;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.card-actions .button {
  min-height: 2.5rem;
  padding: 0.68rem 1rem;
  font-size: 0.74rem;
}

.article-list {
  display: grid;
  gap: 1px;
  background: rgba(73, 64, 56, 0.16);
}

.article-list article {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--sand-soft);
}

.article-list article p:first-child,
.article-header .section-kicker,
.detail-hero .section-kicker {
  color: var(--apricot-deep);
}

.article-list h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.article-list p:not(:first-child) {
  max-width: 52rem;
  color: rgba(51, 39, 31, 0.72);
}

.article-page,
.detail-page {
  max-width: 58rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--sand-soft);
}

.article-header,
.detail-hero {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.article-header h1,
.detail-hero h1 {
  color: var(--paper-ink);
}

.detail-hero p {
  color: rgba(51, 39, 31, 0.72);
}

.detail-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 1.6rem;
}

.detail-image {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.detail-image img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.78) contrast(1.02);
}

.article-body {
  color: rgba(51, 39, 31, 0.82);
  font-size: 1.04rem;
}

.article-body h2,
.article-body h3 {
  margin: 2.2rem 0 0.8rem;
  color: var(--paper-ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.article-body p,
.article-body li {
  max-width: 48rem;
}

.article-body a {
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
}

.article-body hr {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--paper-line);
}

.article-body blockquote {
  margin: 2rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--apricot);
  color: rgba(51, 39, 31, 0.72);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  background: rgba(51, 39, 31, 0.05);
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
}

.split-content img {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
}

.prose-panel {
  align-self: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--sand-soft);
  color: rgba(51, 39, 31, 0.78);
}

.inner-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(80, 64, 48, 0.34), rgba(18, 12, 8, 0.96)),
    url("AV Slcies Distillation.png") center / cover fixed;
}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.placeholder-page h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 9vw, 7rem);
}

.placeholder-page p:not(.section-kicker) {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.placeholder-page .button {
  width: fit-content;
  margin-top: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.055) translate3d(-0.8rem, -0.6rem, 0);
  }
}

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    grid-column: 1;
    justify-self: center;
    gap: 0.75rem;
    font-size: 0.68rem;
  }

  .quiet-link {
    grid-column: 1;
    justify-self: center;
    display: inline-flex;
    margin-top: 0.35rem;
  }

  .hero {
    align-items: end;
    padding-top: 6rem;
  }

  .intro-grid,
  .section-head,
  .experiment-feature,
  .lab-strip,
  .philosophy,
  .journal-grid,
  .split-content {
    grid-template-columns: 1fr;
  }

  .section-head > p:not(.section-kicker) {
    grid-column: auto;
  }

  .experiment-large {
    min-height: 28rem;
  }

  .lab-list li {
    display: grid;
  }

  .philosophy-image {
    min-height: 25rem;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .article-page,
  .detail-page {
    padding: clamp(1.2rem, 5vw, 2rem);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 0.85rem;
  }

  .primary-nav {
    gap: 0.55rem;
  }

  .primary-nav a {
    font-size: 0.62rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .page-hero h1,
  .article-header h1,
  .detail-hero h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .placeholder-page .button {
    width: 100%;
  }

  .experiment-row {
    grid-template-columns: 1fr;
  }

  .experiment-row em {
    grid-column: auto;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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