:root {
  --burnt: #C85A2A;
  --clay: #E8793E;
  --cream: #FFF1D8;
  --walnut: #2B1A12;
  --olive: #596B35;
  --marigold: #F4B942;
  --rosehip: #B9464B;
  --sage: #D8D0A2;
  --display: "Fraunces", Georgia, serif;
  --label: "Archivo Black", Impact, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

/* Compliance note: Inter** Inter* from Google Fonts for clean readable notes. */

@keyframes morning-glow {
  from { opacity: .72; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font-family: var(--body);
  overflow-x: hidden;
}

.grain,
.pollen-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.grain {
  opacity: .23;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 20% 30%, rgba(89,107,53,.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 60%, rgba(200,90,42,.14) 0 1px, transparent 1.5px),
    linear-gradient(100deg, rgba(43,26,18,.05), transparent 35%, rgba(244,185,66,.07));
  background-size: 19px 19px, 31px 31px, 100% 100%;
}

.pollen {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marigold);
  opacity: .55;
  transform: translate3d(var(--x), var(--y), 0);
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 58px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  overflow: hidden;
}

.estate-nav {
  position: absolute;
  top: 24px;
  left: clamp(24px, 4vw, 58px);
  right: clamp(24px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  z-index: 3;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}

.estate-nav a,
.seed-tab { color: var(--walnut); text-decoration: none; }

.nav-mark {
  margin-right: auto;
  color: var(--olive);
}

.nav-mark span {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: -4px;
  border-radius: 70% 30% 70% 30%;
  background: var(--olive);
}

.sun-disk {
  position: absolute;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 10vw;
  top: 16vh;
  background: radial-gradient(circle at 35% 34%, var(--marigold), var(--clay) 58%, var(--burnt));
  opacity: .82;
  filter: blur(.2px);
}

.hero-copy { position: relative; z-index: 2; max-width: 820px; }

.kicker,
.stamp,
.ledger-label,
.bed-meta span,
.ledger-lines span,
.corner-flag {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .055em;
}

.kicker { color: var(--olive); font-size: clamp(12px, 1.2vw, 15px); }

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

h1 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(74px, 15vw, 206px);
  line-height: .78;
  letter-spacing: -.075em;
  font-weight: 900;
  text-shadow: 0 6px 0 rgba(255,241,216,.45);
}

h2 {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 102px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 900;
}

h3 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: .94;
  letter-spacing: -.035em;
}

.lede {
  max-width: 640px;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.28;
  font-weight: 500;
}

.botanical-panel {
  position: relative;
  border: 2px solid rgba(43,26,18,.78);
  border-radius: 28px 18px 34px 18px;
  background:
    linear-gradient(135deg, rgba(255,241,216,.92), rgba(216,208,162,.48)),
    var(--cream);
  box-shadow: 12px 14px 0 rgba(200,90,42,.18), inset 0 0 0 1px rgba(255,241,216,.75);
}

.botanical-panel::before,
.botanical-panel::after {
  content: "";
  position: absolute;
  border: 2px solid var(--olive);
  opacity: .8;
}

.botanical-panel::before {
  width: 26px;
  height: 15px;
  right: 24px;
  top: -9px;
  border-radius: 80% 20% 80% 20%;
  background: var(--sage);
  transform: rotate(-18deg) scaleX(var(--leaf, .15));
  transform-origin: left center;
  transition: transform 900ms ease;
}

.botanical-panel::after {
  width: 15px;
  height: 22px;
  left: -8px;
  bottom: 24px;
  border-radius: 20% 80% 20% 80%;
  background: var(--cream);
  transform: rotate(18deg) scaleY(var(--leaf, .15));
  transform-origin: bottom center;
  transition: transform 900ms ease 120ms;
}

.reveal.is-visible.botanical-panel { --leaf: 1; }

.estate-map { padding: 24px; z-index: 2; transform-style: preserve-3d; }

.map-header,
.bed-meta,
.ledger-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(43,26,18,.28);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.map-header span,
.map-header strong,
.dial span,
.dial b { font-family: var(--label); text-transform: uppercase; }

.map-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  min-height: 500px;
}

.plot {
  position: relative;
  padding: 18px;
  border: 1.5px solid rgba(43,26,18,.55);
  border-radius: 18px 10px 22px 12px;
  background: rgba(255,241,216,.72);
  overflow: hidden;
}

.plot::after,
.bed::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 34px;
  opacity: .27;
  background: repeating-radial-gradient(ellipse at center, transparent 0 7px, var(--olive) 8px 9px, transparent 10px 16px);
}

.plot-a { grid-row: span 2; background: rgba(216,208,162,.52); }
.plot-b { transform: rotate(1.1deg); }
.plot-c { transform: rotate(-.8deg); background: rgba(244,185,66,.2); }

.stamp {
  display: inline-block;
  padding: 6px 9px;
  margin-bottom: 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--burnt);
  font-size: 10px;
  background: rgba(255,241,216,.7);
}

.stamp.olive { color: var(--olive); }
.stamp.gold { color: var(--walnut); background: var(--marigold); }

.dial {
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 2px solid var(--walnut);
  border-radius: 50%;
  background: radial-gradient(circle, var(--marigold) 0 42%, var(--clay) 43% 44%, transparent 45%), var(--cream);
  box-shadow: 7px 7px 0 rgba(89,107,53,.25);
}

.dial b { font-size: 28px; }

.botanical-line {
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 270px;
  fill: rgba(216,208,162,.86);
  stroke: var(--olive);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard {
  background:
    linear-gradient(90deg, rgba(89,107,53,.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(89,107,53,.12) 1px, transparent 1px),
    linear-gradient(180deg, var(--cream), rgba(232,121,62,.17));
  background-size: 8.33% 100%, 100% 92px, 100% 100%;
}

.section-title { max-width: 920px; margin: 4vh 0 28px; }

.plot-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: 18px;
}

.bed { padding: clamp(20px, 3vw, 34px); overflow: hidden; }
.bed.wide { grid-column: span 7; grid-row: span 2; }
.bed.tall { grid-column: span 5; grid-row: span 2; background: linear-gradient(140deg, rgba(216,208,162,.72), rgba(255,241,216,.9)); }
.bed:not(.wide):not(.tall) { grid-column: span 6; }
.bed.rose { box-shadow: 12px 14px 0 rgba(185,70,75,.22), inset 0 0 0 1px rgba(255,241,216,.75); }

.bed ul { padding-left: 18px; font-weight: 700; line-height: 1.8; }

.corner-flag {
  position: absolute;
  right: 18px;
  top: 18px;
  writing-mode: vertical-rl;
  color: var(--rosehip);
  font-size: 11px;
}

.root-diagram {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 25px;
  height: 110px;
}

.root-diagram i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--olive);
  transform: rotate(var(--r));
  transform-origin: top;
  opacity: .45;
}
.root-diagram i:nth-child(1) { --r: -28deg; }
.root-diagram i:nth-child(2) { --r: 0deg; }
.root-diagram i:nth-child(3) { --r: 31deg; }

.reading-room {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  background: linear-gradient(115deg, rgba(216,208,162,.52), var(--cream) 48%, rgba(200,90,42,.12));
}

.side-note {
  align-self: start;
  margin-top: 18vh;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.08;
}

.ledger-spread { padding: clamp(26px, 5vw, 58px); }
.ledger-label { color: var(--burnt); margin-bottom: 24px; }
.ledger-lines { margin-top: 34px; font-size: clamp(15px, 1.6vw, 20px); }
.ledger-lines b { text-align: right; }

.weather-stack { display: grid; gap: 18px; }
.gauge {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 2px solid var(--walnut);
  background: conic-gradient(var(--burnt) 0 74%, rgba(216,208,162,.7) 74% 100%);
  box-shadow: 8px 8px 0 rgba(43,26,18,.12);
}
.gauge.second { background: conic-gradient(var(--olive) 0 28%, rgba(216,208,162,.7) 28% 100%); }
.gauge b { font-family: var(--label); font-size: 33px; }
.gauge em { font-family: var(--display); font-size: 21px; }

.conservatory {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(244,185,66,.58), transparent 22%),
    radial-gradient(circle at 83% 70%, rgba(185,70,75,.18), transparent 26%),
    var(--cream);
  overflow: hidden;
}

.collage-card { padding: clamp(24px, 4vw, 50px); }
.collage-card.pull {
  transform: rotate(-2.6deg);
  background: var(--burnt);
  color: var(--cream);
}
.pull p { font-family: var(--display); font-size: clamp(44px, 6vw, 94px); line-height: .88; letter-spacing: -.05em; }
.collage-card.note { transform: rotate(1.1deg); }

.seed-tab {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 20px;
  border: 2px solid var(--walnut);
  border-radius: 4px 24px 24px 4px;
  background: var(--marigold);
  font-family: var(--label);
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 5px 5px 0 rgba(89,107,53,.25);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.seed-tab:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(89,107,53,.3); }

.flower-seal {
  position: absolute;
  right: 6vw;
  bottom: 5vh;
  width: 220px;
  fill: rgba(244,185,66,.55);
  stroke: var(--rosehip);
  stroke-width: 4;
  opacity: .8;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.18,.78,.24,1), filter 900ms ease;
  filter: saturate(.85) brightness(1.06);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--keep-rotate, 0deg));
  filter: saturate(1) brightness(1);
}
.collage-card.pull { --keep-rotate: -2.6deg; }
.collage-card.note { --keep-rotate: 1.1deg; }

@media (max-width: 920px) {
  .hero,
  .reading-room,
  .conservatory { grid-template-columns: 1fr; }
  .hero { padding-top: 94px; }
  .estate-nav { flex-wrap: wrap; }
  .map-grid { min-height: auto; }
  .bed.wide,
  .bed.tall,
  .bed:not(.wide):not(.tall) { grid-column: 1 / -1; }
  .side-note { margin-top: 0; }
  .weather-stack { grid-template-columns: repeat(2, minmax(120px, 176px)); }
}

@media (max-width: 560px) {
  .scene { padding: 22px; }
  .estate-nav { position: relative; inset: auto; margin-bottom: 22px; justify-content: flex-start; }
  .nav-mark { width: 100%; }
  .map-grid { grid-template-columns: 1fr; }
  .dial { justify-self: center; }
  .weather-stack { grid-template-columns: 1fr; }
  .gauge { width: 148px; height: 148px; }
}
