:root {
  --bg: #0a0808;
  --ink: #f3ebe0;
  --muted: #a89d90;
  --ember: #ff7a2b;
  --ember-deep: #d23a12;
  --line: rgba(243, 235, 224, .14);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --label: "Jost", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
a { color: inherit; text-decoration: none; }

.label { font-family: var(--label); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ember); font-weight: 400; }

header {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(rgba(10, 8, 8, .92), rgba(10, 8, 8, .6) 60%, rgba(10, 8, 8, 0));
}
header::before { content: ""; position: absolute; inset: 0 0 -10px; z-index: -1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.brand img { height: 44px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
nav a { font-family: var(--label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
nav a:hover { color: var(--ink); }
nav a.cta { color: var(--ink); border: 1px solid var(--line); padding: 12px 20px 10px; border-radius: 999px; white-space: nowrap; background: rgba(10, 8, 8, .35); }
nav a.cta:hover { border-color: var(--ember); color: var(--ember); }
@media (max-width: 720px) { nav a:not(.cta) { display: none; } .brand img { height: 32px; } nav a.cta { padding: 10px 14px 8px; letter-spacing: .18em; } }

main { position: relative; z-index: 1; }
section { padding: clamp(90px, 14vh, 170px) var(--gutter); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; }
.wrap { max-width: 1240px; margin: 0 auto; width: 100%; }
/* Copy keeps to the left; the right of the screen belongs to the canvas. */
.col { max-width: min(620px, 50vw); }

h1 { font-weight: 300; font-size: clamp(54px, 8.4vw, 132px); line-height: .92; letter-spacing: -.02em; margin: 26px 0 30px; }
h1 em, h2 em { font-style: italic; color: var(--ember); }
h2 { font-weight: 300; font-size: clamp(38px, 4.6vw, 70px); line-height: 1; letter-spacing: -.015em; margin: 18px 0 0; }
.lede { font-size: clamp(20px, 1.7vw, 26px); color: #ddd3c6; max-width: 30em; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  font-family: var(--label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  padding: 19px 30px 16px; border-radius: 999px; border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn.primary { background: linear-gradient(120deg, var(--ember), var(--ember-deep)); border-color: transparent; color: #120a05; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.12); }

.hero { padding-top: 120px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; }
.scroll-cue i { display: block; width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ember); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.prose { margin-top: 30px; }
.prose p { color: #d6ccbf; font-weight: 300; }
.prose p + p { margin-top: 1.1em; }
.prose p:first-child { font-size: 1.25em; color: var(--ink); }

.services { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: baseline; padding: clamp(20px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line); transition: padding .4s; }
.service:hover { padding-left: 14px; }
.service .num { font-style: italic; color: var(--ember); font-size: 1.1em; }
.service h3 { font-weight: 400; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; }
.service p { grid-column: 2; color: #b9aea1; font-weight: 300; }

.pair { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(32px, 4vw, 56px); }
.pair > div { background: rgba(10, 9, 8, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: clamp(24px, 3vw, 40px); }
.pair h3 { font-weight: 300; font-style: italic; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; margin: 12px 0 14px; }
.pair p { color: #d6ccbf; font-weight: 300; }
.pair ul { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pair li { font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pair li::before { content: "— "; color: var(--ember); }

.contact h2 { font-size: clamp(48px, 6.4vw, 104px); line-height: .94; margin: 22px 0 30px; }
.mail { display: inline-block; font-size: clamp(26px, 3.2vw, 48px); font-style: italic; border-bottom: 1px solid var(--ember); padding-bottom: 4px; transition: color .3s; }
.mail:hover { color: var(--ember); }

/* Chapter rail */
.rail { position: fixed; z-index: 9; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.rail a { display: flex; align-items: center; gap: 12px; font-family: var(--label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: transparent; transition: color .4s; }
.rail a i { display: block; width: 14px; height: 1px; background: var(--muted); opacity: .6; transition: width .4s, background .4s, opacity .4s; }
.rail a.on, .rail a:hover { color: var(--ink); }
.rail a.on i { width: 34px; background: var(--ember); opacity: 1; }

footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 26px var(--gutter); border-top: 1px solid var(--line); background: rgba(10, 8, 8, .7); }

@media (max-width: 860px) {
  .col { max-width: none; }
  .hero, .contact { align-items: flex-end; padding-bottom: 110px; }
  .col { text-shadow: 0 1px 22px rgba(8, 6, 6, .95), 0 0 6px rgba(8, 6, 6, .6); }
  .btn, .pair { text-shadow: none; }
  .rail { display: none; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-cue i::after { animation: none; }
}

/* ---------- Layout variations (desktop widths only; phones share one stacked layout) ---------- */
@media (min-width: 861px) {
  /* Bloom: copy and imagery swap sides each chapter */
  body.alt section:nth-of-type(even) .col { margin-left: auto; }

  /* Halo: everything on the centre line */
  body.center .col { max-width: 660px; margin: 0 auto; text-align: center; }
  body.center .hero { align-items: flex-end; padding-bottom: 8vh; }
  body.center h1 { font-size: clamp(54px, 6.6vw, 104px); margin: 16px 0 18px; }
  body.center h1 br { display: none; }
  body.center .lede { margin: 0 auto; }
  body.center .actions { justify-content: center; margin-top: 26px; }
  body.center .scroll-cue { display: none; }
  body.center #studio .col { max-width: 480px; }
  body.center #studio h2 { font-size: clamp(34px, 3.6vw, 54px); }
  body.center #services, body.center #why, body.center #contact { align-items: flex-start; padding-bottom: 44vh; }
  body.center #services .col { max-width: 980px; }
  body.center .services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 0; text-align: left; }
  body.center .service { border-bottom: 0; border-top: 1px solid var(--line); }
  body.center #why .col { max-width: 940px; }
  body.center .pair { grid-template-columns: 1fr 1fr; text-align: left; }
  body.center .contact .col { max-width: 800px; }
  body.center .contact h2 { font-size: clamp(44px, 5vw, 80px); }

  /* Wildwood: copy across the top, the panorama below it */
  body.pano section:not(.hero) { align-items: flex-start; padding-top: clamp(110px, 15vh, 160px); padding-bottom: 46vh; }
  body.pano section:not(.hero) .col { max-width: none; }
  body.pano .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
  body.pano .split .prose { margin-top: 18px; }
  body.pano .services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; border-top: 0; }
  body.pano .service { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line); }
  body.pano .service p { grid-column: 1; }
  body.pano .service:hover { padding-left: 0; }
  body.pano .pair { grid-template-columns: 1fr 1fr; }
  body.pano .contact .col { max-width: 900px; }
  body.pano .contact h2 { font-size: clamp(44px, 5.4vw, 88px); margin-bottom: 22px; }
}
