:root {
  --ivory: #faf7f1;
  --emerald: #0f2a22;
  --green: #1f5e48;
  --gold: #d4a24a;
  --gold-text: #9a7537;
  --graphite: #5f6975;
  --line: rgba(196, 146, 68, .3);
  --serif: "Times New Roman", Times, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --botanical-image: image-set(url("../assets/images/botanical-corner-800.webp") 1x, url("../assets/images/botanical-corner-1536.webp") 2x);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ivory); }
body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--emerald);
  background:
    radial-gradient(circle at 51% 44%, rgba(255,255,255,.76), transparent 42%),
    linear-gradient(180deg, #fdfaf5 0%, var(--ivory) 76%, #f8efe2 100%);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  color: white;
  background: var(--emerald);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.app-header,
.app-main {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}
.app-header {
  display: flex;
  min-height: 164px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 30px;
}
.app-logo { display: block; width: 340px; height: 116px; overflow: hidden; }
.app-logo img { position: relative; top: -9px; left: -18px; width: 340px; }
.home-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 17px;
  margin-top: 34px;
  font-size: 20px;
  font-weight: 500;
}
.home-link span { color: var(--green); font-size: 35px; font-weight: 300; line-height: 1; }

.app-main {
  display: grid;
  min-height: calc(100svh - 164px);
  grid-template: "copy dashboard" auto "note dashboard" auto / 1.25fr 1fr;
  column-gap: 25px;
  align-content: center;
  padding-bottom: clamp(0px, calc(40svh - 307.2px), 100px);
}
.app-copy { grid-area: copy; }
.app-copy h1 {
  margin: 0 0 29px;
  font: 400 clamp(58px, 4.3vw, 68px)/1.05 var(--serif);
  letter-spacing: -.025em;
}
.app-copy h1 span { display: block; white-space: nowrap; }
.app-copy h1 .heading-accent { color: var(--gold-text); }
.app-copy p {
  margin: 0 0 39px;
  color: var(--graphite);
  font-size: clamp(20px, 1.4vw, 22px);
  line-height: 1.42;
}
.return-button {
  display: grid;
  width: 378px;
  min-height: 84px;
  grid-template-columns: 58px 1fr 30px;
  align-items: center;
  gap: 7px;
  padding: 13px 28px 13px 24px;
  border: 1px solid rgba(212,162,74,.38);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #086049, #004d3c 72%);
  box-shadow: 0 14px 28px rgba(15,42,34,.18);
  font-size: 21px;
  font-weight: 650;
}
.return-button img { width: 52px; height: 52px; }
.return-button b { color: var(--gold); font-size: 31px; font-weight: 300; }
.return-button:hover { filter: brightness(1.04); }

.future-note {
  grid-area: note;
  display: flex;
  width: min(735px, 100%);
  align-items: flex-start;
  gap: 25px;
  margin: 59px 0 0;
  padding: 27px 0 0;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.45;
}
.future-note svg {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-scene {
  position: relative;
  grid-area: dashboard;
  width: 100%;
  max-width: 605px;
  aspect-ratio: 1.22;
  align-self: center;
  isolation: isolate;
  transform: translateY(-35px);
}
.dashboard-scene::before,
.dashboard-scene::after {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 300px;
  background: var(--botanical-image) top left / 100% auto no-repeat;
  content: "";
  filter: blur(1px) saturate(.78);
  opacity: .27;
  pointer-events: none;
}
.dashboard-scene::before { top: -26px; right: -185px; }
.dashboard-scene::after { right: -24px; bottom: 18px; width: 230px; height: 175px; transform: rotate(180deg); opacity: .19; }
.dashboard-back,
.dashboard {
  position: absolute;
  border: 1px solid rgba(187, 158, 113, .12);
  border-radius: 28px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 22px 46px rgba(96, 77, 50, .12);
}
.dashboard-back {
  z-index: 1;
  top: 0;
  right: 8%;
  width: 82%;
  height: 88%;
  transform: rotate(-9deg);
}
.dashboard {
  z-index: 2;
  right: 0;
  bottom: 3%;
  display: grid;
  width: 96%;
  height: 82%;
  grid-template-columns: 32% 68%;
  overflow: hidden;
  transform: rotate(3deg);
}
.dashboard-sidebar {
  padding: 9% 6% 6%;
  border-right: 1px solid rgba(199, 159, 94, .16);
}
.dashboard-mark { width: 40%; margin: 0 auto 18%; }
.dashboard-nav-item {
  display: grid;
  min-height: 13%;
  grid-template-columns: 18% 1fr;
  align-items: center;
  gap: 7%;
  margin-bottom: 5%;
  padding: 0 12% 0 8%;
  border-radius: 12px;
  color: #174b3a;
  font-size: clamp(9px, .9vw, 13px);
  font-weight: 600;
  white-space: nowrap;
}
.dashboard-nav-item.is-current { padding-right: 18%; background: #e9efe6; }
.dashboard-nav-item svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-content { padding: 11% 5% 7%; }
.dashboard-content h2 { margin: 0 0 7%; font: 400 clamp(18px, 1.7vw, 27px)/1 var(--serif); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4%; }
.project-card {
  position: relative;
  aspect-ratio: .84;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(64,49,31,.12);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card span {
  position: absolute;
  top: 5%;
  right: 6%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--emerald);
  background: rgba(255,255,255,.94);
  font-size: 12px;
  letter-spacing: 1px;
}

.botanical {
  position: fixed;
  z-index: 1;
  width: 430px;
  height: 300px;
  background: var(--botanical-image) top left / 100% auto no-repeat;
  filter: blur(1.5px) saturate(.72);
  opacity: .17;
  pointer-events: none;
}
.botanical--top { top: -4px; left: -44px; width: 300px; height: 270px; }
.botanical--middle { display: none; }
.botanical--bottom { right: -80px; bottom: -15px; width: 390px; height: 360px; transform: rotate(184deg); opacity: .2; }
.bottom-waves,
.bottom-waves::before {
  position: fixed;
  z-index: 0;
  right: -9vw;
  bottom: -150px;
  width: 72vw;
  height: 280px;
  border-radius: 50% 50% 0 0;
  background: rgba(247, 237, 220, .66);
  content: "";
  pointer-events: none;
}
.bottom-waves::before { right: auto; bottom: -22px; left: -72vw; width: 108vw; background: rgba(250,244,234,.86); transform: rotate(7deg); }

@media (max-width: 1180px) {
  .app-header, .app-main { width: min(100% - 48px, 1040px); }
  .app-main { grid-template-columns: minmax(500px, 1fr) minmax(430px, .9fr); }
  .app-copy { padding-top: 0; }
  .app-copy h1 { font-size: 56px; }
  .dashboard-scene { margin-top: 0; }
}

@media (max-width: 900px) {
  .app-header, .app-main { width: min(100% - 40px, 720px); }
  .app-header { min-height: 140px; }
  .app-logo { width: 250px; height: 92px; }
  .app-logo img { left: -12px; width: 260px; }
  .home-link { margin-top: 20px; font-size: 17px; }
  .app-main {
    min-height: auto;
    grid-template: "copy" auto "dashboard" auto "note" auto / 1fr;
    padding-bottom: 100px;
  }
  .app-copy { padding-top: 32px; }
  .app-copy h1 { font-size: clamp(48px, 7.4vw, 60px); }
  .app-copy h1 span { white-space: normal; }
  .app-copy p br, .future-note br { display: none; }
  .dashboard-scene { width: min(660px, 100%); margin: 68px auto 0; transform: none; }
  .future-note { margin-top: 36px; }
}

@media (max-width: 560px) {
  .app-header, .app-main { width: calc(100% - 32px); }
  .app-header { min-height: 106px; padding-top: 16px; }
  .app-logo { width: 170px; height: 66px; }
  .app-logo img { top: -4px; left: -8px; width: 176px; }
  .home-link { gap: 7px; margin-top: 13px; font-size: 13px; }
  .home-link span { font-size: 24px; }
  .app-copy { padding-top: 25px; }
  .app-copy h1 { margin-bottom: 22px; font-size: clamp(39px, 11.6vw, 50px); line-height: 1.03; }
  .app-copy p { margin-bottom: 29px; font-size: 17px; }
  .return-button { width: 100%; min-height: 72px; grid-template-columns: 45px 1fr 24px; padding: 10px 18px; font-size: 18px; }
  .return-button img { width: 44px; height: 44px; }
  .return-button b { font-size: 25px; }
  .dashboard-scene { margin-top: 50px; aspect-ratio: 1.12; }
  .dashboard { width: 98%; height: 80%; grid-template-columns: 30% 70%; }
  .dashboard-sidebar { padding-inline: 5%; }
  .dashboard-nav-item { gap: 6%; padding-inline: 5%; font-size: 8px; }
  .dashboard-content { padding-top: 12%; }
  .dashboard-content h2 { font-size: 17px; }
  .project-card { border-radius: 10px; }
  .project-card span { width: 20px; height: 20px; font-size: 9px; }
  .future-note { gap: 14px; margin-top: 18px; padding-top: 21px; font-size: 15px; }
  .future-note svg { width: 23px; height: 23px; }
  .botanical--middle { display: none; }
  .botanical--top { width: 190px; opacity: .12; }
  .botanical--bottom { width: 230px; opacity: .13; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
