@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --stone: #e9ece8;
  --stone-2: #dde2dd;
  --line: #c3cbc5;
  --ink: #142120;
  --ink-2: #485856;
  --teal: #0f5560;
  --teal-hi: #13707e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --bar: clamp(10.5rem, 24vh, 15rem);
  --night: #0d1820;
  --night-ink: #e7ece8;
  --sea: #c9d9db;
  --sea-ink: #2f6a74;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--line) var(--stone); }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--teal); color: var(--stone); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--stone); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid var(--stone); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, p, dl, dd { margin: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .6rem 1rem; background: var(--teal); color: var(--stone); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem var(--gutter); color: #fff; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__mark { font-weight: 500; font-size: 1.0625rem; letter-spacing: .01em; text-decoration: none; text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
.nav__cta { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; background: rgb(233 236 232 / .9); color: var(--ink); transition: background-color 180ms var(--ease); }
.nav__cta:hover { background: #fff; }
.is-past-film .nav { color: var(--ink); }
.is-past-film .nav__mark { text-shadow: none; }
.is-past-film .nav__cta { background: var(--teal); color: var(--stone); }
.is-past-film .nav { background: rgb(233 236 232 / .94); box-shadow: 0 1px 0 var(--line); }
.nav-dark .nav { background: rgb(13 24 32 / .94); box-shadow: none; }
.nav-dark .nav { color: var(--night-ink); }
.nav-dark .nav__cta { background: var(--night-ink); color: var(--night); }
.nav { transition: color 300ms var(--ease), background-color 300ms var(--ease); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.6rem;
  border-radius: 999px; background: var(--teal); color: #f4f7f4; text-decoration: none; white-space: nowrap;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em;
  box-shadow: 0 14px 30px -16px rgb(15 85 96 / .6);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.btn:hover { background: var(--teal-hi); }
.btn:active { transform: scale(.98); }

/* The film: a tall track with a pinned stage; the frame sequence follows scroll */
.film { position: relative; height: 560vh; }
.film__pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: var(--stone); }
.film__canvas, .film__still img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--bar)); object-fit: cover; }
.film__still img { display: block; }
.film__canvas { z-index: 1; opacity: 0; transition: opacity 600ms var(--ease); }
.is-ready .film__canvas { opacity: 1; }
.film__veil { position: absolute; inset: 0 0 auto; height: 9rem; z-index: 2; background: linear-gradient(rgb(10 20 22 / .38), transparent); pointer-events: none; }

.caption { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); z-index: 3; background: var(--stone); padding: 0 var(--gutter); }
.caption__item {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem 3rem;
  transform: translateY(-50%); opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease), visibility 0s linear 500ms;
}
.caption__item.is-on { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease) 120ms, transform 700ms var(--ease) 120ms, visibility 0s; }
.caption__item:not(.is-on) { transform: translateY(calc(-50% + 14px)); }
.caption__title { font-weight: 500; font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1; letter-spacing: -.035em; }
.caption__line { font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; }
.caption__item p:not(.caption__line) { color: var(--ink-2); max-width: 44ch; }
.film__track { position: absolute; left: 0; right: 0; bottom: var(--bar); height: 2px; z-index: 4; background: rgb(233 236 232 / .45); }
.film__track span { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); }



.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 3rem; padding: 3rem var(--gutter) 6.5rem; background: var(--stone-2); border-top: 1px solid var(--line); }
.foot__brand { font-weight: 500; }
.foot__credit { color: var(--ink-2); font-size: .9375rem; max-width: 56ch; }
.foot__credit a:hover { color: var(--teal); }
.credit {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px; background: rgb(20 33 32 / .82); color: #e6ebe7; border: 1px solid rgb(255 255 255 / .12);
  font-size: .8125rem; text-decoration: none; transition: background-color 180ms var(--ease);
}
.credit svg { width: .85rem; height: .85rem; }
.credit:hover { background: var(--teal); }

@media (max-width: 900px) {
  .caption__item { grid-template-columns: 1fr; gap: .6rem; }
  .caption__item .btn { justify-self: start; }
}
@media (max-width: 767px) {
  :root { --bar: 38dvh; }
  .nav { padding: 1rem 1.25rem; }
  .caption { padding: 0 1.25rem; }
  .caption__item { left: 1.25rem; right: 1.25rem; top: 1.75rem; transform: none; align-content: start; }
  .caption__item:not(.is-on) { transform: translateY(14px); }
  .foot { padding: 2.5rem 1.25rem 5.5rem; }
  .credit { left: 1rem; right: auto; }
}

/* Reduced motion: no pinned scrubbing; the still and every caption read as a normal page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .film { height: auto; }
  .film__pin { position: relative; height: auto; overflow: visible; }
  .film__canvas, .film__track { display: none; }
  .film__still img { position: relative; height: 70dvh; }
  .caption { position: relative; height: auto; padding: 2.5rem var(--gutter); display: grid; gap: 2.5rem; }
  .caption__item { position: relative; inset: auto; transform: none !important; opacity: 1; visibility: visible; }
}

/* ── Section headings shared by the editorial half of the page ── */
.plan h2, .day h2, .place h2, .viewing h2 { font-weight: 500; font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }

/* ── Plan: a drawn floor plan you can open room by room ── */
.plan { padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 3.5vw, 4rem); border-top: 1px solid var(--line); }
.plan__intro { max-width: 46rem; }
.plan__intro p { margin-top: 1.25rem; color: var(--ink-2); max-width: 52ch; }
.plan__body { margin-top: clamp(2.5rem, 6vh, 4rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.plan__drawing { margin: 0; }
.plan__drawing svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.plan__walls path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: miter; }
.plan__glass path { fill: none; stroke: var(--teal); stroke-width: 3; }
.plan__cliff { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.plan__cliffhatch { opacity: .5; }
.plan__hatchline { stroke: var(--line); stroke-width: 1.5; }
.plan__sea { font-size: 16px; letter-spacing: .4em; fill: var(--ink-2); }
.plan__water { fill: #bcd9dc; stroke: var(--teal); stroke-width: 1.5; }
.plan__deck line { stroke: #b9b2a3; stroke-width: 1.5; }
.plan__tree { fill: none; stroke: #7d8a6a; stroke-width: 1.5; stroke-dasharray: 3 4; }
.plan__tree--in { fill: #7d8a6a; stroke: none; }
.plan__fire, .plan__gate { fill: var(--ink); }
.plan__gate { fill: var(--stone); }
.plan__north circle { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.plan__north path { fill: var(--ink); }
.plan__north text, .plan__scale text { font-size: 17px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan__scale path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.room { cursor: pointer; outline: none; }
.room__hit { fill: var(--teal); fill-opacity: 0; transition: fill-opacity 220ms var(--ease); }
.room:hover .room__hit { fill-opacity: .07; }
.room.is-on .room__hit { fill-opacity: .14; }
.room:focus-visible .room__hit { stroke: var(--teal); stroke-width: 3; fill-opacity: .1; }
.room__label { font-size: 21px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--stone); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.room.is-on .room__label { fill: var(--teal); }
.plan__panel { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
.plan__detail { display: grid; gap: .75rem; }
.plan__rooms { display: flex; flex-wrap: wrap; gap: .5rem; }
.plan__rooms button { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--sans); cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
.plan__rooms button:hover { border-color: var(--teal); }
.plan__rooms button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #f4f7f4; }
.plan__photo { margin: 0 0 .5rem; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone-2); }
.plan__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease), transform 900ms var(--ease); }
.plan__photo.is-swapping img { opacity: 0; transform: scale(1.02); }
.plan__panel h3 { margin: 0; font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; }
.plan__area { color: var(--teal); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.plan__panel p:last-child { color: var(--ink-2); }
.js-motion .plan__walls path, .js-motion .plan__glass path, .js-motion .plan__cliff { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.js-motion .plan__glass path { transition-delay: .5s; }
.js-motion .plan.is-in .plan__walls path, .js-motion .plan.is-in .plan__glass path, .js-motion .plan.is-in .plan__cliff { stroke-dashoffset: 0; }

/* ── A day at Alcor: a pinned horizontal walk; the page darkens from morning to night ── */
.day { --day: 0; position: relative; background: color-mix(in oklab, var(--stone) calc((1 - var(--day)) * 100%), var(--night)); color: var(--ink); transition: color 400ms var(--ease); }
.day.is-dark { color: var(--night-ink); }
.day__pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding: clamp(5.5rem, 12vh, 7.5rem) 0 clamp(2rem, 6vh, 4rem); }
.day__head { padding: 0 var(--gutter); display: grid; gap: .75rem; }
.day__head p { max-width: 40ch; opacity: .78; }
.day__track { list-style: none; margin: 0; padding: clamp(2rem, 5vh, 3.5rem) var(--gutter) 0; display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; will-change: transform; }
.day__panel { flex: 0 0 auto; width: clamp(18rem, 40vw, 40rem); }
.day__panel:nth-child(even) { margin-top: clamp(2rem, 8vh, 5rem); }
.day__panel figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: rgb(128 140 140 / .2); }
.day__panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.day__time { margin-top: 1rem; font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.day__what { opacity: .78; }

/* ── Place: where the headland is ── */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; padding: clamp(6rem, 14vh, 10rem) var(--gutter); }
.place__text > p:first-of-type { margin-top: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.place__times { margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.place__times div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.place__times dt { color: var(--ink-2); }
.place__times dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.place__note { margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }
.place__map { margin: 0; border-radius: 4px; overflow: hidden; }
.place__map svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.map__sea { fill: var(--sea); }
.map__land { fill: var(--stone-2); stroke: var(--ink-2); stroke-width: 1.2; }
.map__contour { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 5; }
.map__coastroad { fill: none; stroke: #b9b2a3; stroke-width: 4; }
.map__road { fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-motion .map__road { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .2s; }
.js-motion .place.is-in .map__road { stroke-dashoffset: 0; }
.map__house { fill: var(--ink); }
.map__village { fill: var(--ink-2); }
.map__label { font-size: 15px; font-weight: 500; fill: var(--ink); }
.map__label--sea { fill: var(--sea-ink); font-style: italic; font-weight: 400; letter-spacing: .08em; }

/* ── Viewing ── */
.viewing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--night); color: var(--night-ink); }
.viewing__photo { margin: 0; min-height: 100%; }
.viewing__photo picture, .viewing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewing__body { padding: clamp(6rem, 14vh, 8rem) var(--gutter) clamp(4rem, 10vh, 7rem); display: grid; align-content: center; gap: 1rem; }
.viewing__body > p:first-of-type { color: #b8c4c2; max-width: 42ch; }
.vform { margin-top: 1rem; display: grid; gap: 1rem; max-width: 26rem; }
.vform__field { display: grid; gap: .4rem; }
.vform label { font-size: .875rem; color: #b8c4c2; }
.vform input, .vform select { min-height: 3rem; padding: 0 1rem; border-radius: 4px; border: 1px solid #3c4d55; background: #13222c; color: var(--night-ink); font: inherit; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease); }
.vform input:focus, .vform select:focus { outline: none; border-color: #7fb6bd; box-shadow: 0 0 0 3px rgb(127 182 189 / .25); }
.vform input[aria-invalid="true"] { border-color: #e59a85; }
.vform .btn { justify-self: start; margin-top: .25rem; }
.vform__msg { min-height: 1.5em; color: #a9d6da; }
.vform__msg.is-error { color: #f0b3a3; }
.viewing__note { font-size: .875rem; color: #8fa09d; max-width: 46ch; }
.viewing__note a { color: var(--night-ink); }

@media (max-width: 900px) {
  .plan__body, .place, .viewing { grid-template-columns: 1fr; }
  .plan__panel { position: static; }
  .viewing__photo { aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
  .plan, .place { padding-left: 1.25rem; padding-right: 1.25rem; }
  .room__label { font-size: 22px; }
  .day { background: var(--stone); }
  .day__pin { position: relative; height: auto; padding: 5rem 0 3rem; }
  .day__head { padding: 0 1.25rem; }
  .day__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 2rem 1.25rem 1rem; transform: none !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .day__panel { width: 82vw; scroll-snap-align: start; }
  .day__panel:nth-child(even) { margin-top: 0; }
  .viewing__body { padding: 3.5rem 1.25rem 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .day { background: var(--stone); }
  .day__pin { position: relative; height: auto; }
  .day__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
  .day__panel { scroll-snap-align: start; }
}
