/* Golden Forest — home page */
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/*FONTS-END*/

:root {
  --pine: #1A3A28; --forest: #2D5E3F; --gold: #D4A017; --mgold: #DEB96A; --cream: #F5F0E8; --bark: #3D2E1E;
  --ink: var(--pine); --soft: #5E5A4E; --rule: rgba(26, 58, 40, .22);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 7vw, 7.5rem);
}
body[data-theme="dark"] { --ink: #F5F0E8; --soft: #B9C4C0; --rule: rgba(245, 240, 232, .22); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 300;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.7; -webkit-font-smoothing: antialiased;
  transition: color .6s ease; }
body[data-theme="dark"] { background: #080B12; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--cream); color: var(--pine); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }

/* the world */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 0; display: block; }
html:not(.js) #world { display: none; }

/* header */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--pad); pointer-events: none; }
.top a { pointer-events: auto; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand svg { width: 38px; height: auto; }
.brand svg path { stroke: var(--gold); }
.brand span { font-size: .72rem; font-weight: 500; letter-spacing: .22em; color: var(--ink); transition: color .6s ease; }
.brand b { font-family: var(--serif); font-weight: 500; color: var(--gold); }
.top nav { display: flex; }
.top nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.top nav li { margin: 0; }
.top nav a { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  padding: .4rem 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease, color .6s ease; }
.top nav a:hover, .top nav a:focus-visible, .top nav .current-menu-item > a, .top nav a[aria-current="page"] { background-size: 100% 1px; }

/* chapter rail */
.rail { position: fixed; z-index: 20; right: clamp(.9rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .9rem; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; text-decoration: none; font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.rail a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); opacity: .55; transition: all .35s; }
.rail a.on::after { background: var(--gold); border-color: var(--gold); opacity: 1; transform: scale(1.25); }
.rail a:hover span, .rail a:focus-visible span, .rail a.on span { opacity: .85; transform: none; }

/* scenes */
main { position: relative; z-index: 10; }
.scene { position: relative; height: 200vh; }
.scene--hero { height: 170vh; }
.scene--end { height: 150vh; }
.panel { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; align-items: center; padding: 0 var(--pad); }
.scene--right .panel { justify-content: flex-end; padding-right: calc(var(--pad) + 4.5rem); }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--o, 1);
  background: linear-gradient(90deg, var(--scrim, transparent) 0%, color-mix(in srgb, var(--scrim, transparent) 70%, transparent) 38%, transparent 64%); }
.scene--right .panel::before { background: linear-gradient(270deg, var(--scrim, transparent) 0%, color-mix(in srgb, var(--scrim, transparent) 70%, transparent) 38%, transparent 64%); }
.panel-inner { position: relative; max-width: 34rem; will-change: opacity, transform; }
html.js .panel-inner { opacity: 0; }

.eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; font-size: .7rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--soft); }
.eyebrow .n { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--gold); }
.eyebrow::after { content: ""; width: 3.5rem; height: 1px; background: var(--rule); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.1rem); line-height: 1.06;
  letter-spacing: -.012em; margin: 0 0 1.4rem; text-wrap: balance; }
h2 em { font-style: italic; color: var(--gold); }
.panel p { margin: 0 0 1.1rem; max-width: 31rem; text-wrap: pretty; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--soft); }

/* drafting callouts */
.callouts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem; }
.callouts li { display: flex; align-items: center; gap: .85rem; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.callouts li::before { content: ""; width: 2.6rem; height: 9px; flex: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 1px no-repeat,
              linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 100% no-repeat,
              linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 100% no-repeat; }

/* hero */
.scene--hero .panel { justify-content: center; align-items: flex-start; text-align: center; }
.scene--hero .panel::before { display: none; }
.hero { padding-top: 62vh; max-width: 44rem; margin: 0 auto; }
.lockup { margin: 0 0 1rem; font-weight: 400; line-height: 1.2; font-size: clamp(1.15rem, .9rem + 1vw, 1.7rem); letter-spacing: .22em; }
.lockup .first { font-family: var(--sans); font-weight: 500; color: var(--pine); }
.lockup .last { font-family: var(--serif); font-weight: 500; color: var(--gold); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); margin: 0 0 .5rem !important; max-width: none !important; }
.sub { font-size: .92rem; color: var(--soft); margin: 0 auto !important; }
.cue { margin: 2.4rem 0 0 !important; font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); max-width: none !important; }
.cue::after { content: ""; display: block; width: 1px; height: 46px; margin: .9rem auto 0; background: linear-gradient(var(--gold), transparent);
  animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* company badges: equal boxes, each logo in its own colours */
.company { display: flex; align-items: center; gap: 1.2rem; margin: 0 0 1.6rem; }
.badge { width: 12.5rem; height: 6.25rem; flex: none; border-radius: 14px; display: grid; place-items: center; padding: .9rem 1.2rem;
  background: #F5F0E8; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -18px rgba(0,0,0,.35); }
.badge img { max-height: 100%; width: auto; object-fit: contain; }
.badge--cu img { max-height: 5.2rem; }
.badge--dark { background: #080B12; box-shadow: inset 0 0 0 1px rgba(245,240,232,.14); }
.badge--scm { background: #F5F1E8; }
.wm { font-family: var(--sans); line-height: 1; white-space: nowrap; }
.wm-de { font-size: 1.55rem; color: #F0F4F8; } .wm-de b { font-weight: 700; } .wm-de i { font-style: normal; font-weight: 300; color: #4ECDC4; }
.wm-bl { font-family: var(--serif); font-size: 1.45rem; color: var(--pine); letter-spacing: .01em; }
.wm-scm { font-size: .82rem; font-weight: 700; letter-spacing: .2em; color: #163B47; text-align: center; line-height: 1.35; }
.go { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding-bottom: .25rem; border-bottom: 1px solid var(--gold); }
.go:hover { color: var(--gold); }

/* the end */
.scene--end .panel { justify-content: center; text-align: center; align-items: flex-start; }
.scene--end .panel::before { display: none; }
.end { padding-top: 56vh; max-width: 40rem; margin: 0 auto; }
.end h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem); }
.end p { margin-left: auto !important; margin-right: auto !important; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 2rem; margin: 2rem 0 0; }
.foot { margin-top: 3.2rem !important; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); max-width: none !important; }

/* small screens */
@media (max-width: 760px) {
  .rail { display: none; }
  .top nav li:not(:last-child) { display: none; }
  .brand span { display: none; }
  .scene { height: 190vh; }
  .panel { align-items: flex-end; padding-top: 5.5rem; padding-bottom: 10vh; }
  h2 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.4rem); }
  .panel::before { background: linear-gradient(0deg, var(--scrim, transparent) 0%, color-mix(in srgb, var(--scrim, transparent) 75%, transparent) 45%, transparent 75%) !important; }
  .scene--right .panel { justify-content: flex-start; }
  .hero { padding-top: 55vh; }
  .end { padding-top: 44vh; }
  .company { flex-direction: column; align-items: flex-start; }
  .badge { width: 10rem; height: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cue::after { animation: none; transform: none; opacity: 1; }
  body, .brand span, .top nav a { transition: none; }
}
