/* Arbor View fly-through. Tokens from 2026-09-24-ellington-style-guide-wip.html */

@font-face { font-family: "Teodor"; src: url("../fonts/Teodor-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Acumin Pro"; src: url("../fonts/Acumin-Pro.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --surface-inverse: #111111;
  --surface-menu: #342926;
  --text-inverse: #F2F1ED;
  --text-inverse-soft: rgba(242, 241, 237, .78);
  --text-inverse-quiet: rgba(242, 241, 237, .55);
  --ink: #1C1A1A;
  --accent: #AA8D74;            /* Accent/Decorative, bronze */
  --accent-hover: #BC9F86;
  --tan: #C7BBAC;
  --stone: #BFB3A3;
  --hairline: rgba(170, 141, 116, .45);
  --hairline-light: rgba(242, 241, 237, .22);
  --error: #E39A8F;
  --serif: "Teodor", Georgia, serif;
  --sans: "Acumin Pro", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 3rem;
  --sheet: 2rem;
}

* { box-sizing: border-box; }
html { background: var(--surface-inverse); scroll-behavior: auto; }
body {
  margin: 0; background: var(--surface-inverse); color: var(--text-inverse);
  font: 400 16px/1.5 var(--sans); letter-spacing: -.2px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--text-inverse); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 50; background: var(--text-inverse); color: var(--ink); padding: .8rem 1rem; }
.skip:focus { top: 1rem; }

.eyebrow { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tan); }

/* ---------- Film ---------- */
#film { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; }
.shade {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    /* text side: bottom and left */
    linear-gradient(to top, rgba(17,17,17,.92) 0%, rgba(17,17,17,.62) 26%, rgba(17,17,17,.2) 48%, rgba(17,17,17,0) 64%),
    linear-gradient(to right, rgba(17,17,17,.68) 0%, rgba(17,17,17,.25) 32%, rgba(17,17,17,0) 56%),
    /* chapter bar and right-edge marker */
    linear-gradient(to bottom, rgba(17,17,17,.6) 0%, rgba(17,17,17,0) 20%),
    linear-gradient(to left, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 16%),
    /* vignette and an overall dim, for mood */
    radial-gradient(ellipse 85% 80% at 55% 45%, rgba(17,17,17,0) 50%, rgba(17,17,17,.6) 100%),
    linear-gradient(rgba(17,17,17,.12), rgba(17,17,17,.12));
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.sheet { position: absolute; inset: var(--sheet); border: 1px solid var(--hairline); }
.tick { position: absolute; width: 15px; height: 15px; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--accent); }
.tick::before { left: 7px; top: 0; width: 1px; height: 15px; }
.tick::after { top: 7px; left: 0; height: 1px; width: 15px; }
.tick.tl { left: -8px; top: -8px; } .tick.tr { right: -8px; top: -8px; }
.tick.bl { left: -8px; bottom: -8px; } .tick.br { right: -8px; bottom: -8px; }
/* the film rises from this line (86% of the hero, matched in flight.js) */
.horizon { position: absolute; left: 0; right: 0; top: calc(86% - var(--sheet)); height: 1px; background: var(--hairline); }

.hero-maker {
  position: absolute; top: calc(var(--sheet) - 17px); left: 50%; transform: translateX(-50%);
  height: 34px; width: auto; padding: 0 1rem; background: var(--surface-inverse); opacity: .9;
}

.corner { position: absolute; margin: 0; font: 300 .72rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.corner dt { color: var(--accent); }
.corner dd { margin: 0; color: var(--text-inverse-soft); }
.c-tl { top: calc(var(--sheet) + 1.4rem); left: calc(var(--sheet) + 1.6rem); }
.c-tr { top: calc(var(--sheet) + 1.4rem); right: calc(var(--sheet) + 1.6rem); text-align: right; }
.c-bl { bottom: calc(var(--sheet) + 1.4rem); left: calc(var(--sheet) + 1.6rem); }
.c-br { bottom: calc(var(--sheet) + 1.4rem); right: calc(var(--sheet) + 1.6rem); text-align: right; }

.hero-body {
  position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%);
  width: min(60rem, 84vw); text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-logo { margin: 0; }
.hero-logo img { height: clamp(64px, 9vw, 104px); width: auto; }
.dimension { position: relative; display: block; width: 140px; height: 1px; margin: 2.2rem 0 2rem; background: var(--hairline); }
.dimension::before, .dimension::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--accent); }
.dimension::before { left: 0; } .dimension::after { right: 0; }
.hero-title { font: 400 clamp(2.4rem, 5.2vw, 4.4rem)/1.12 var(--serif); letter-spacing: 0; text-wrap: balance; }
.hero-line { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; color: var(--text-inverse-soft); }

.cue { position: absolute; left: 50%; top: 74%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font: 300 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-inverse-quiet); }
.cue i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--accent), rgba(170,141,116,0)); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Flight track ---------- */
.flight { position: relative; height: 0; }

/* ---------- Navigation (fades in once the film fills the screen) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.4rem var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.nav.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, background-color .4s ease; }
.nav.solid { background: rgba(17, 17, 17, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline-light); }
.nav-logo img { height: 34px; width: auto; }
.pills {
  display: flex; gap: .2rem; padding: .3rem; border-radius: 41px; border: 1px solid var(--hairline-light);
  background: rgba(17, 17, 17, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pills button {
  border: 0; border-radius: 41px; padding: .55rem 1rem; background: transparent; color: var(--text-inverse-soft);
  font: 400 .85rem/1.2 var(--sans); letter-spacing: -.2px; cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s;
}
.pills button:hover { color: var(--text-inverse); background: rgba(242, 241, 237, .1); }
.pills button[aria-current="true"] { background: var(--text-inverse); color: var(--ink); }
.cta {
  justify-self: end; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .7rem 1.25rem; border-radius: 41px;
  background: var(--accent); color: var(--ink); text-decoration: none; font: 400 .9rem/1.3 var(--sans); transition: background-color .2s;
}
.cta:hover { background: var(--accent-hover); }
/* at the enquiry form the button becomes the way back: outlined, so it reads differently */
.cta[data-mode="top"] { background: transparent; color: var(--text-inverse); box-shadow: inset 0 0 0 1px var(--accent); }
.cta[data-mode="top"]:hover { background: rgba(170,141,116,.18); }
.cta:focus-visible { outline-color: var(--text-inverse); }

/* ---------- Right-edge chapter marker ---------- */
.marker {
  position: fixed; right: 1.6rem; top: 50%; z-index: 4; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .9rem; opacity: 0; transition: opacity .5s;
  font: 400 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-inverse);
  text-shadow: 0 1px 12px rgba(17,17,17,.6);
}
.marker.on { opacity: 1; }
.marker.on.off { opacity: 0; }
.marker-count { color: var(--accent); }
.marker-line { position: relative; width: 1px; height: 72px; background: rgba(242,241,237,.35); }
.marker-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.marker-name { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

/* ---------- Chapter text ---------- */
.chapters { position: fixed; left: var(--gutter); bottom: 3.2rem; z-index: 4; width: min(36rem, calc(100vw - 2 * var(--gutter))); pointer-events: none; }
.chapter { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.chapter.on { opacity: 1; transform: none; transition-delay: .12s; }
.chapter .count { font: 400 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--accent); margin-bottom: 1.2rem; }
.chapter .eyebrow { margin-bottom: .9rem; }
.chapter h2 { font: 400 clamp(2.1rem, 3.8vw, 3.5rem)/1.12 var(--serif); letter-spacing: 0; margin-bottom: 1rem; text-shadow: 0 1px 24px rgba(17,17,17,.35); }
.chapter .line { max-width: 31rem; font-size: 1.05rem; line-height: 1.5; color: rgba(242,241,237,.9); text-shadow: 0 1px 16px rgba(17,17,17,.5); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; }
.chips li { padding: .42rem .9rem; border-radius: 41px; border: 1px solid rgba(242,241,237,.3); background: rgba(17,17,17,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .8rem; line-height: 1.3; color: var(--text-inverse); }

/* ---------- Enquiry ---------- */
.enquire {
  position: relative; z-index: 5; background: var(--surface-inverse); border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-content: center; min-height: 100vh; min-height: 100svh;
  padding: 8rem var(--gutter) 7rem;
}
.enquire .eyebrow { margin-bottom: 1.6rem; }
.enquire h2 { font: 400 clamp(2.4rem, 4vw, 3.5rem)/1.12 var(--serif); margin-bottom: 1.4rem; }
.enquire .line { font-size: 1.15rem; line-height: 1.45; color: var(--text-inverse-soft); max-width: 28rem; }
.next { margin-top: 3rem; max-width: 26rem; padding: 1rem 0 1rem 1.4rem; border-left: 1px solid var(--accent); color: var(--text-inverse); }
.next span { display: block; margin-bottom: .4rem; font: 300 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.form { align-self: start; }
.form label { display: block; margin-top: 1.4rem; font-size: .85rem; color: var(--text-inverse-soft); }
.form > label:first-child { margin-top: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.field {
  display: block; width: 100%; height: 3.4rem; padding: .5rem 0; border: 0; border-bottom: 1px solid rgba(242,241,237,.4); border-radius: 0;
  background: transparent; color: var(--text-inverse); font: 400 1.05rem/1.5 var(--sans); letter-spacing: -.2px; appearance: none; -webkit-appearance: none;
}
.field:focus { outline: none; border-bottom-color: var(--text-inverse); }
.field:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--text-inverse); }
select.field { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AA8D74' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .2rem center; padding-right: 1.6rem; }
select.field:invalid { color: var(--text-inverse-quiet); }
select.field option { color: var(--ink); background: #F2F1ED; }
.field.bad { border-bottom-color: var(--error); }
.submit {
  margin-top: 2.6rem; min-height: 3rem; padding: .8rem 1.6rem; border: 0; border-radius: 41px; cursor: pointer;
  background: var(--accent); color: var(--ink); font: 400 .95rem/1.3 var(--sans); transition: background-color .2s;
}
.submit:hover { background: var(--accent-hover); }
.thanks { margin-top: 1.6rem; max-width: 30rem; color: var(--text-inverse); }

.footer {
  position: relative; z-index: 5; background: var(--surface-inverse); display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 2.4rem var(--gutter) 2.8rem; border-top: 1px solid var(--hairline-light);
}
.footer img { height: 34px; width: auto; opacity: .9; }
.footer p { display: flex; gap: 2rem; font-size: .9rem; color: var(--text-inverse-soft); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text-inverse); text-decoration: underline; }

/* ---------- Reduced motion: posters instead of the film ---------- */
.stills { display: none; }
.rm #film, .rm .shade, .rm .flight, .rm .marker, .rm .cue i { display: none; }
.rm .horizon { display: none; }
.rm .stills { display: block; position: relative; z-index: 2; }
.rm .chapters { display: none; }
.rm .still { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.rm .still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm .still::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.82) 0%, rgba(17,17,17,.3) 35%, rgba(17,17,17,0) 60%), linear-gradient(to right, rgba(17,17,17,.5), rgba(17,17,17,0) 50%); }
.rm .still .chapter { position: absolute; z-index: 1; left: var(--gutter); bottom: 3.2rem; width: min(36rem, calc(100vw - 2 * var(--gutter))); opacity: 1; transform: none; }
.rm .nav { opacity: 1; visibility: visible; transform: none; transition: none; }
.rm * { transition: none !important; animation: none !important; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .pills { justify-self: center; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
  :root { --gutter: 1.25rem; --sheet: .9rem; }
  .nav { grid-template-columns: 1fr auto; row-gap: .8rem; padding: 1rem var(--gutter); }
  .nav-logo img { height: 26px; }
  .pills { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .pills button { padding: .5rem .85rem; font-size: .8rem; }
  .cta { min-height: 2.4rem; padding: .5rem 1rem; font-size: .82rem; }
  .marker { display: none; }
  .corner { font-size: .6rem; letter-spacing: .1em; }
  .c-tl, .c-bl { left: calc(var(--sheet) + .9rem); }
  .c-tr, .c-br { right: calc(var(--sheet) + .9rem); }
  .c-tl, .c-tr { top: calc(var(--sheet) + 2.2rem); }
  .c-bl, .c-br { bottom: calc(14% + .9rem); }   /* above the horizon, which the film covers on phones */
  .hero-maker { height: 20px; top: calc(var(--sheet) - 10px); }
  .hero-body { top: 42%; }
  .dimension { margin: 1.6rem 0 1.4rem; width: 100px; }
  .cue { top: 72%; }
  .chapters { bottom: 2rem; }
  .chapter h2 { font-size: 2rem; }
  .chapter .line { font-size: .98rem; }
  .enquire { grid-template-columns: 1fr; gap: 3.5rem; padding: 5rem var(--gutter); }
  .pair { grid-template-columns: 1fr; gap: 0; }
  .pair label { margin-top: 1.4rem; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer p { flex-direction: column; gap: .4rem; }
}
