
/* Terra Rosa Andros theme.
   Layout: dusk photo with the mark centred in the sky, then wide stone-paper sections, one dark earth band for the island, a fixed bar that settles in on scroll */
:root {
  --paper: #F5EFE6;
  --stone: #EAE0D2;
  --card: #FBF8F3;
  --ink: #2A211B;
  --ink-2: #66574A;
  --mute: #A99A88;
  --terra: #9A4A2C;
  --terra-d: #7E3A20;
  --terra-soft: rgba(154, 74, 44, .12);
  --line: #D5C6B2;
  --cream: #FBF7F1;
  --earth: #2B211A;
  --earth-2: #3A2D24;
  --earth-line: #4A3B30;
  --earth-text: #E6DBCD;
  --earth-mute: #B5A592;
  --clay: #D98C68;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --mark: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(16px, 5vw, 72px);
  --bar: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.gut { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1280px; margin: 0 auto; }
.caps { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--terra); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-weight: 400; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; margin-top: 18px; }
.h2 em, .phead h1 em { font-style: italic; }
.lede { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.42; text-wrap: pretty; }
.sec { padding-block: clamp(88px, 11vw, 160px); }
.more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-decoration: none; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.more i { font-style: normal; transition: transform .4s var(--ease); }
.more:hover i { transform: translateX(6px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 28px; border: 1px solid var(--terra); background: var(--terra); color: var(--cream); font: 500 12px/1 var(--sans); letter-spacing: .2em; text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .3s, border-color .3s, color .3s; }
.btn:hover { background: var(--terra-d); border-color: var(--terra-d); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--cream); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* reveal: only elements below the first screen start hidden, and only when script runs */
.rv { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.pre { opacity: 0; transform: translateY(30px); }
.frame { overflow: hidden; position: relative; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.frame.pre img { transform: scale(1.14); }

/* fixed bar */
.bar { position: fixed; top: var(--adm, 0px); left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(245, 239, 230, .94); border-bottom: 1px solid var(--line); transition: background .5s, border-color .5s; }
@supports (backdrop-filter: blur(1px)) { .bar { background: rgba(245, 239, 230, .82); backdrop-filter: blur(14px) saturate(1.2); } }
.bar-in { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); height: var(--bar); }
html.top-home .bar { background: transparent; border-color: transparent; backdrop-filter: none; }
.mini { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mini svg { width: 42px; height: 23px; }
.mini span { font-family: var(--mark); font-weight: 500; font-size: 22px; letter-spacing: .08em; white-space: nowrap; }
html.top-home .bar .book { display: none; }
html.top-home .bar-in { height: 62px; }
.bar-in { transition: height .45s var(--ease); }
.book { transition: background .3s, color .3s, opacity .45s; }
html.top-home .bar .mini { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 1.45vw, 28px); }
.nav a { position: relative; font-size: 12.5px; letter-spacing: .1em; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.book { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--ink); font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-decoration: none; white-space: nowrap; transition: background .3s, color .3s; }
.book:hover { background: var(--ink); color: var(--cream); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; place-items: center; }
.burger i { display: grid; gap: 6px; width: 24px; }
.burger i::before, .burger i::after { content: ""; height: 1px; background: var(--ink); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity .35s var(--ease); }
.drawer.open { opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.drawer-x { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.drawer-x::before, .drawer-x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: var(--ink); transform: rotate(45deg); }
.drawer-x::after { transform: rotate(-45deg); }
.drawer nav { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.drawer nav a { font-size: clamp(34px, 9vw, 48px); line-height: 1.25; text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; transition-delay: calc(.08s + var(--i) * .06s); }
.drawer.open nav a { opacity: 1; transform: none; }
.drawer nav a[aria-current="page"] { color: var(--terra); }
.drawer-foot { display: grid; gap: 18px; }
.drawer-foot p { font-size: 17px; color: var(--ink-2); }

/* page entrance */
.enter .pg { animation: fadeUp 1.1s var(--ease) both; animation-delay: var(--d, .15s); }
.ln { display: block; overflow: hidden; padding: .05em 0 .14em; margin: -.05em 0 -.14em; }
.ln > span { display: block; }
.enter .ln > span { animation: rise 1.15s var(--ease) both; animation-delay: calc(var(--d, .2s) + var(--i, 0) * .12s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(106%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: none; } }
@keyframes track { from { letter-spacing: .34em; opacity: 0; } to { letter-spacing: .06em; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: none; } }

/* home hero */
.hero { position: relative; height: max(460px, min(33.5vw, 660px)); overflow: hidden; background: #8D7766; }
.hero-media { position: absolute; inset: 0; }
.enter .hero-media { animation: heroZoom 2.8s var(--ease) both; }
.hero-media img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 24, 16, .42) 0%, rgba(34, 24, 16, .18) 28%, rgba(34, 24, 16, 0) 46%); pointer-events: none; }
.masthead { position: absolute; z-index: 2; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--adm, 0px) + clamp(12px, 1.3vw, 24px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); text-decoration: none; }
.masthead svg { width: clamp(56px, 5.1vw, 92px); height: auto; overflow: visible; }
.masthead .m-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; }
.masthead .m-leaf { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.enter .m-line { animation: draw 1.5s .25s var(--ease) both; }
.masthead .m-stem { stroke-width: 1.3; }
.enter .m-stem { animation-delay: .55s; }
.enter .m-leaf { animation: pop .6s var(--ease) both; animation-delay: calc(.9s + var(--i) * .07s); }
.word { font-family: var(--mark); font-weight: 500; font-size: clamp(26px, 2.95vw, 50px); letter-spacing: .06em; line-height: 1; margin-top: 2px; white-space: nowrap; }
.enter .masthead .word { animation: track 1.6s .45s var(--ease) both; }
.place { display: flex; align-items: center; gap: 14px; font-family: var(--mark); font-weight: 500; font-size: clamp(11px, .95vw, 16px); letter-spacing: .42em; margin-top: clamp(6px, .6vw, 10px); padding-left: .42em; }
.place::before, .place::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.enter .masthead .place { animation: fade 1.2s 1s var(--ease) both; }
.tagline { font-style: italic; font-size: clamp(14px, 1.1vw, 20px); margin-top: clamp(6px, .75vw, 14px); }
.enter .tagline { animation: fadeUp 1.2s 1.2s var(--ease) both; }
.lead { position: absolute; z-index: 2; left: 0; right: 0; bottom: 13%; color: var(--cream); }
.lead h1 { font-weight: 400; font-size: clamp(34px, 3.4vw, 60px); line-height: 1.06; letter-spacing: -.005em; }
.ghost { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(18px, 1.8vw, 30px); padding: clamp(11px, .9vw, 15px) clamp(18px, 1.5vw, 24px); border: 1px solid rgba(251, 247, 241, .85); color: var(--cream); text-decoration: none; font-size: clamp(13px, .95vw, 15px); letter-spacing: .14em; transition: background .3s, color .3s; }
.ghost i { font-style: normal; transition: transform .4s var(--ease); }
.ghost:hover { background: var(--cream); color: var(--ink); }
.ghost:hover i { transform: translateX(5px); }
.enter .ghost { animation: fadeUp 1.1s 1.25s var(--ease) both; }

/* three photos under the hero, as in the reference */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 4px; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* welcome */
.welcome .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.welcome .lede { margin-bottom: 26px; }
.welcome p + p { margin-top: 16px; }
.welcome .copy { max-width: 36em; padding-top: 8px; }
.welcome .copy p:not(.lede) { color: var(--ink-2); }

/* villa experience */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.space { text-decoration: none; display: grid; gap: 18px; }
.space:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }
.space .frame { aspect-ratio: 4 / 5; }
.space:hover .frame img { transform: scale(1.05); }
.space h3 { font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; display: flex; justify-content: space-between; gap: 12px; }
.space h3 i { font-style: normal; font-size: 20px; color: var(--terra); transition: transform .4s var(--ease); }
.space:hover h3 i { transform: translateX(6px); }
.space p { font-size: 17px; color: var(--ink-2); max-width: 30em; }

/* amenities */
.amen-band { background: var(--stone); }
.amen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); }
.amen li { border-top: 1px solid var(--line); padding: 24px 0 34px; display: grid; gap: 10px; align-content: start; }
.amen svg { width: 34px; height: 34px; color: var(--terra); }
.amen b { font-weight: 400; font-size: 22px; line-height: 1.2; }
.amen span { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.icn { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* glimpse rail */
.rail-wrap { position: relative; }
.rail { --edge: max(calc(var(--g) + max(0px, (100vw - 2 * var(--g) - 1280px) / 2)), env(safe-area-inset-left, 0px)); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge); padding-left: var(--edge); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { scroll-snap-type: none; cursor: grabbing; }
.rail figure { flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 12px; }
.rail button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.rail .frame { height: clamp(280px, 32vw, 470px); }
.rail img { height: 100%; width: auto; user-select: none; -webkit-user-drag: none; }
.rail figure:hover img { transform: scale(1.04); }
.rail figcaption { font-style: italic; font-size: 16px; color: var(--ink-2); }
.rail-ctl { display: flex; gap: 10px; }
.sq { width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 2px; transition: border-color .3s, background .3s; }
.sq:hover:not(:disabled) { border-color: var(--ink); }
.sq:disabled { opacity: .35; cursor: default; }
.sq svg { width: 18px; height: 18px; }

/* earth band: island */
.island { background: var(--earth); color: var(--earth-text); overflow: hidden; }
.island .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.island .eyebrow { color: var(--clay); }
.island p { color: var(--earth-text); max-width: 30em; margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 16px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { display: block; font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.facts span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.island .facts { border-color: var(--earth-line); }
.island .facts div + div { border-color: var(--earth-line); }
.island .facts span { color: var(--earth-mute); }
.island .more { color: var(--cream); margin-top: 40px; }

/* maps */
.map { width: 100%; height: auto; max-height: 720px; overflow: visible; }
.map .coast { fill: var(--stone); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; stroke-dasharray: 1; }
.map .ferry { fill: none; stroke: var(--terra); stroke-width: 1.4; stroke-dasharray: 5 6; }
.map text { font-family: var(--serif); font-size: 16px; fill: var(--ink); }
.map .sea { font-style: italic; fill: var(--ink-2); font-size: 15px; }
.map .town circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.map .town text { font-size: 15px; fill: var(--ink-2); }
.map .pin-in { transform-box: fill-box; transform-origin: center; }
.map-dark .coast { fill: var(--earth-2); stroke: #CDBBA4; }
.map-dark text { fill: var(--earth-text); }
.map-dark .sea { fill: var(--earth-mute); }
.map-dark .ferry { stroke: var(--clay); }
.map-dark .town circle { fill: var(--earth); stroke: var(--earth-text); }
.map-dark .town text { fill: var(--earth-text); font-size: 17px; }
.map.go .coast { animation: coastIn 2.8s var(--ease) both; }
.map.go .pin-in { animation: pop .7s var(--ease) both; animation-delay: calc(1.5s + var(--i) * .1s); }
.map.go .ferry { animation: fade .8s 1.4s both, sail 1.4s 1.4s linear infinite; }
@keyframes coastIn { 0% { stroke-dashoffset: 1; fill-opacity: 0; } 55% { fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes sail { to { stroke-dashoffset: -11; } }
.beach-pin circle { fill: var(--terra); stroke: var(--paper); stroke-width: 2; transition: r .3s var(--ease); }
.beach-pin text { font-size: 16px; transition: fill .3s; }
.beach-pin.hot circle { r: 8; }
.beach-pin.hot text { fill: var(--terra); }
.beach-pin { cursor: pointer; }

/* availability */
.stay .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.stay p { color: var(--ink-2); margin: 24px 0 32px; max-width: 26em; }
.cal { background: var(--card); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 32px); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border: 1px solid var(--line); display: inline-block; }
.legend .l-off { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(154, 74, 44, .35) 3px 4px); }
.legend .l-sel { background: var(--terra); border-color: var(--terra); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav .sq { width: 40px; height: 40px; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.cal-month .cal-mt { font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wd { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-2); text-align: center; padding: 6px 0 8px; }
.day { height: 42px; border: 0; background: transparent; font-size: 17px; cursor: pointer; border-radius: 2px; font-variant-numeric: lining-nums tabular-nums; transition: background .2s, color .2s; }
.day:hover:not(:disabled) { background: var(--stone); }
.day:disabled { cursor: default; }
.day.past { color: #C9BBA9; }
.day.off { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(154, 74, 44, .55); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(154, 74, 44, .14) 4px 5px); }
.day.co:not(:disabled) { cursor: pointer; }
.day.in { background: var(--terra-soft); }
.day.a, .day.b, .day.a:hover, .day.b:hover { background: var(--terra); color: var(--cream); text-decoration: none; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cal-sum { font-size: 18px; }
.cal-sum small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--mute); margin-top: 4px; }
.cal-clear { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--ink-2); cursor: pointer; }

/* inner page heads */
.phead { padding-top: calc(env(safe-area-inset-top, 0px) + var(--adm, 0px) + var(--bar) + clamp(64px, 9vw, 130px)); padding-bottom: clamp(48px, 6vw, 88px); }
.phead .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.phead h1 { font-weight: 400; font-size: clamp(50px, 7.4vw, 108px); line-height: .98; letter-spacing: -.018em; margin-top: 22px; }
.phead .intro { font-size: clamp(19px, 1.55vw, 22px); color: var(--ink-2); max-width: 30em; }
.wide { position: relative; height: clamp(320px, 50vw, 700px); overflow: hidden; background: var(--stone); }
.wide img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* villa page */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); }
.story h2, .row h2 { font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin: 16px 0 18px; }
.story p { color: var(--ink-2); max-width: 32em; }
.rows { display: grid; gap: clamp(72px, 9vw, 140px); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row:nth-child(even) .frame { order: 2; }
.row .frame { aspect-ratio: 3 / 2; }
.row p { color: var(--ink-2); max-width: 30em; }
.ticks { margin-top: 24px; display: grid; gap: 0; }
.ticks li { border-top: 1px solid var(--line); padding: 11px 0; font-size: 17px; display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: none; transform: translateY(-2px); }
.cta { background: var(--earth); color: var(--earth-text); }
.cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta .eyebrow { color: var(--clay); }
.cta .btn.line { color: var(--cream); border-color: var(--earth-text); }
.cta .btn.line:hover { background: var(--cream); color: var(--ink); }

/* gallery page */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 11px 16px; border-radius: 2px; font: 500 12px/1 var(--sans); letter-spacing: .12em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip span { color: var(--mute); margin-left: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--earth-mute); }
.masonry { columns: 3; column-gap: 14px; }
.tile { break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; animation: fade .6s var(--ease) both; }
.tile .frame img { height: auto; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { font-style: italic; font-size: 15px; color: var(--ink-2); margin-top: 8px; }

/* andros page */
.route { display: flex; align-items: flex-start; margin-top: clamp(48px, 6vw, 72px); }
.stop { flex: 0 0 auto; width: 160px; }
.stop:last-child { text-align: right; }
.stop b { display: block; font-weight: 400; font-size: 27px; line-height: 1.15; }
.stop small { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.dot { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--terra); background: var(--paper); margin-bottom: 16px; }
.stop:last-child .dot { margin-left: auto; background: var(--terra); }
.leg { flex: 1 1 0; min-width: 0; padding: 0 18px; text-align: center; position: relative; }
.leg::before { content: ""; display: block; height: 11px; margin-bottom: 16px; background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 1px no-repeat; transform-origin: left center; }
.leg.sea::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='11' viewBox='0 0 24 11'%3E%3Cpath d='M0 5.5 Q6 1 12 5.5 T24 5.5' fill='none' stroke='%239A4A2C' stroke-width='1.1'/%3E%3C/svg%3E") left center / 24px 11px repeat-x; }
.route.go .leg::before { animation: grow 1.3s var(--ease) both; }
.route.go .leg.sea::before { animation-delay: .5s; }
.leg b { display: block; font-weight: 400; font-size: 23px; line-height: 1.2; }
.leg small { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.boat { position: absolute; top: -15px; left: 18px; width: 28px; height: 14px; color: var(--terra); opacity: 0; }
.route.go .boat { opacity: 1; animation: boat 9s 1.6s ease-in-out infinite alternate both; }
@keyframes boat { from { left: 18px; } to { left: calc(100% - 46px); } }
.note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); max-width: 46em; }
.bwrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.bmap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--adm, 0px) + var(--bar) + 24px); }
.blist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 40px); }
.beach { border-top: 1px solid var(--line); padding: 20px 0 34px; display: flex; flex-direction: column; transition: border-color .3s; }
.beach.hot { border-color: var(--terra); }
.beach .caps { color: var(--ink-2); font-size: 11px; }
.beach h3 { font-weight: 400; font-size: 28px; line-height: 1.15; margin: 8px 0 10px; transition: color .3s; }
.beach.hot h3 { color: var(--terra); }
.beach p { font-size: 17px; line-height: 1.55; flex: 1; }
.beach .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.beach .meta a { color: var(--terra); text-decoration: none; letter-spacing: .06em; border-bottom: 1px solid currentColor; padding-bottom: 1px; white-space: nowrap; }

/* contact page */
.cgrid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.details { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.details div { border-top: 1px solid var(--line); padding: 14px 0 18px; }
.details .caps { color: var(--ink-2); font-size: 11px; }
.details span:last-child { display: block; font-size: 20px; margin-top: 4px; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); }
.form h3 { grid-column: 1 / -1; font-weight: 400; font-size: 30px; line-height: 1.1; }
.f { display: grid; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label, .f .lbl { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; color: var(--ink-2); }
.f input, .f textarea { width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; font: 400 19px/1.4 var(--serif); color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .3s; }
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--terra); }
.step { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0 6px; }
.step button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 2px; cursor: pointer; font-size: 18px; line-height: 1; }
.step button:hover { border-color: var(--ink); }
.step output { font-size: 20px; font-variant-numeric: tabular-nums; }
.send { grid-column: 1 / -1; display: grid; gap: 14px; }
.send p { font-size: 16px; color: var(--ink-2); font-style: italic; }

/* footer */
footer { background: var(--earth); color: var(--earth-text); padding-top: clamp(64px, 8vw, 110px); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
.f-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--earth-text); }
.f-brand svg { width: 66px; height: 36px; }
.f-brand .word { font-size: 34px; margin-top: 6px; }
.f-brand .place { font-size: 12px; padding-left: 0; }
.f-col h3 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--earth-mute); margin-bottom: 16px; }
.f-col ul { display: grid; gap: 2px; }
.f-col li > a, .f-col li > span { display: inline-block; padding: 6px 0; }
.f-col a, .f-col span { font-size: 17px; text-decoration: none; }
.f-col a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 18px; height: 18px; }
.f-legal { display: block; margin-top: 6px; letter-spacing: .04em; }
.f-legal span { white-space: nowrap; }
.f-bot { margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--earth-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: #A99A88; }
.up { padding: 14px 0 14px 14px; margin: -14px 0; background: none; border: 0; color: var(--earth-text); font: 500 12px/1 var(--sans); letter-spacing: .16em; cursor: pointer; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(24, 18, 13, .95); display: grid; grid-template-rows: auto 1fr auto; padding: max(14px, env(safe-area-inset-top, 0px)) max(var(--g), env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(var(--g), env(safe-area-inset-left, 0px)); color: var(--earth-text); opacity: 0; transition: opacity .3s; }
.lb.open { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; height: 52px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; }
.lb-x { width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; margin-right: -10px; }
.lb-x::before, .lb-x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: var(--earth-text); transform: rotate(45deg); }
.lb-x::after { transform: rotate(-45deg); }
.lb-stage { display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: fade .45s var(--ease) both; }
.lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.lb-bot p { font-style: italic; font-size: 17px; }
.lb .sq { border-color: var(--earth-line); color: var(--earth-text); }
.lb .sq:hover { border-color: var(--earth-text); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .book { margin-left: auto; }
  .f-top { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .welcome .wrap, .island .wrap, .stay .wrap, .phead .wrap, .bwrap, .cgrid { grid-template-columns: 1fr; }
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .frame { order: 0; }
  .story { grid-template-columns: 1fr; }
  .bmap { position: static; max-width: 520px; }
  .island .map { max-width: 520px; margin: 0 auto; }
  .masonry { columns: 2; }
}
@media (max-width: 720px) {
  :root { --bar: 64px; }
  body { font-size: 18px; }
  .book { display: none; }
  .mini { margin-right: auto; }
  .mini svg { width: 36px; height: 20px; }
  .mini span { font-size: 19px; }
  .hero { height: 640px; }
  .hero-media img { object-position: 64% 45%; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > span:first-child { grid-column: 1 / -1; }
  .hero::after { background: linear-gradient(0deg, rgba(34, 24, 16, .72) 0%, rgba(34, 24, 16, .25) 42%, rgba(34, 24, 16, 0) 60%); }
  .lead { bottom: 44px; }
  .tagline { margin-top: 10px; }
  .spaces { grid-template-columns: 1fr; gap: 44px; }
  .space:nth-child(2) { margin-top: 0; }
  .space .frame { aspect-ratio: 4 / 3; }
  .amen { grid-template-columns: 1fr 1fr; }
  .amen li { padding: 20px 0 26px; }
  .amen b { font-size: 19px; }
  .amen span { font-size: 15px; }
  .rail .frame { height: 260px; }
  .facts b { font-size: 26px; }
  .facts span { font-size: 10.5px; letter-spacing: .08em; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-month + .cal-month { display: none; }
  .route { flex-direction: column; }
  .stop, .stop:last-child { width: auto; text-align: left; display: grid; grid-template-columns: 11px 1fr; column-gap: 18px; }
  .stop .dot, .stop:last-child .dot { margin: 9px 0 0; grid-row: span 2; }
  .leg { padding: 16px 0 16px 34px; text-align: left; }
  .leg::before { position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; height: auto; margin: 0; background: var(--ink-2); transform-origin: center top; }
  .leg.sea::before { left: 0; width: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='24' viewBox='0 0 11 24'%3E%3Cpath d='M5.5 0 Q1 6 5.5 12 T5.5 24' fill='none' stroke='%239A4A2C' stroke-width='1.1'/%3E%3C/svg%3E") center top / 11px 24px repeat-y; }
  .route.go .leg::before { animation-name: growY; }
  .boat { display: none; }
  .blist { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .masonry { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .lb-bot p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv.pre { opacity: 1; transform: none; }
}

/* island photo, when the owners add one in place of the map */
.island-photo { aspect-ratio: 4 / 5; max-height: 720px; }


/* ---------- a day at Terra Rosa: pinned story, scroll moves the hours ---------- */
.day-track { height: calc(var(--n) * 80vh + 100vh); }
.day-pin { position: sticky; top: var(--adm, 0px); height: calc(100vh - var(--adm, 0px)); height: calc(100svh - var(--adm, 0px)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--day-bg, #EFE1CF); color: var(--day-fg, var(--ink)); overflow: hidden; transition: color .6s var(--ease); }
.day-pin .eyebrow { color: inherit; opacity: .75; }
.day-text { display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(14px, 2.6vh, 34px); padding-top: calc(var(--bar) + clamp(20px, 5vh, 56px)); padding-bottom: clamp(24px, 5vh, 56px); min-height: 0; }
.day-h { font-weight: 400; font-size: clamp(30px, 3.1vw, 48px); line-height: 1.08; margin-top: 14px; text-wrap: balance; }
.day-h em { font-style: italic; }
.day-clock { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.day-arc { width: clamp(96px, 9vw, 150px); height: auto; overflow: visible; flex: none; }
.day-arc path { fill: none; stroke: currentColor; stroke-opacity: .4; stroke-width: 1; stroke-dasharray: .012 .012; }
.day-arc line { stroke: currentColor; stroke-opacity: .4; stroke-width: 1; }
.day-sun { fill: var(--clay); transition: fill .6s; }
.day-time { height: 1em; overflow: hidden; font-size: clamp(54px, 6.2vw, 104px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.day-roll { transition: transform .9s var(--ease); }
.day-roll span { display: block; height: 1em; }
.day-chapters { display: grid; min-height: 0; align-content: start; }
.day-ch { grid-area: 1 / 1; max-width: 30em; opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease), transform .8s var(--ease); pointer-events: none; }
.day-ch.on { opacity: 1; transform: none; transition-delay: .12s; }
.day-ch .day-t, .day-img-m { display: none; }
.day-ch h3 { font-weight: 400; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.day-ch p { font-size: clamp(17px, 1.25vw, 20px); opacity: .82; }
.day-steps { display: flex; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-family: var(--sans); font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.day-steps li { flex: 1; padding-top: 12px; font-size: max(11px, 1em); opacity: .4; position: relative; transition: opacity .4s; }
.day-steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: currentColor; transition: width .7s var(--ease); }
.day-steps li.on, .day-steps li.done { opacity: 1; }
.day-steps li.on::before, .day-steps li.done::before { width: 100%; }
.day-media { position: relative; overflow: hidden; background: #2B211A; }
.day-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.day-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s cubic-bezier(.2, .6, .2, 1); }
.day-img.on { opacity: 1; }
.day-img.on img { transform: none; }

/* words that light up while the line scrolls past */
.words.js .w { opacity: .16; transition: opacity .35s ease; }
.words.js .w.on { opacity: 1; }

/* photos open like a curtain */
.frame { transition: background-color 1.2s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.frame img { transition: clip-path 1.5s var(--ease), transform 1.8s var(--ease); }
.frame.pre, .frame.rv.pre { opacity: 1; transform: none; background-color: transparent; }
.frame.pre img { clip-path: inset(100% 0 0 0); }

/* amenity icons draw their lines */
.draw .icn > * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }
.amen li.pre .draw .icn > * { stroke-dashoffset: 1; }

/* names of the island, drifting */
.island:has(.marquee) { padding-top: 0; }
.marquee { overflow: hidden; margin: 0 calc(-1 * max(var(--g), env(safe-area-inset-right, 0px))) clamp(64px, 8vw, 120px) calc(-1 * max(var(--g), env(safe-area-inset-left, 0px))); padding: clamp(36px, 4.5vw, 64px) 0; border-bottom: 1px solid var(--earth-line); }
.mq-track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-set { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
.mq-set span { font-style: italic; font-size: clamp(44px, 6.4vw, 104px); line-height: 1.1; color: var(--earth-text); white-space: nowrap; }
.mq-set i { font-style: normal; color: var(--clay); font-size: clamp(22px, 2.6vw, 40px); }
@keyframes mq { to { transform: translateX(-50%); } }

/* the ferry on the map */
.map .ship { fill: var(--terra); stroke: var(--terra); offset-path: path("M0 228 C 40 236, 92 262, 124 283"); offset-rotate: auto; opacity: 0; }
.map-dark .ship { fill: var(--clay); stroke: var(--clay); }
.map.go .ship { animation: ship 8s 2.2s ease-in-out infinite; }
@keyframes ship { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

@media (max-width: 900px) {
  .day-track { height: calc(var(--n) * 75vh + 100vh); }
  .day-pin { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; }
  .day-media { order: -1; }
  .day-text { padding-top: clamp(18px, 3vh, 28px); padding-bottom: 20px; grid-template-rows: auto auto 1fr auto; gap: 12px; }
  .day-text .eyebrow { display: none; }
  .day-h { font-size: 24px; margin-top: 0; }
  .day-time { font-size: 46px; }
  .day-arc { width: 76px; }
  .day-ch h3 { font-size: 24px; margin-bottom: 6px; }
  .day-ch p { font-size: 16px; }
  .day-steps { font-size: 10px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .day-track { height: auto; }
  .day-pin { position: static; height: auto; display: block; background: var(--paper); color: var(--ink); padding-block: 80px; }
  .day-media, .day-clock, .day-steps { display: none; }
  .day-chapters { gap: 48px; }
  .day-ch { grid-area: auto; opacity: 1; transform: none; }
  .day-ch .day-t { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--terra); }
  .day-img-m { display: block; margin-top: 16px; }
  .words.js .w { opacity: 1; }
  .frame.pre img { clip-path: none; }
  .mq-track { animation: none; }
}

/* WordPress */
body.admin-bar { --adm: 32px; }
@media (max-width: 782px) { body.admin-bar { --adm: 46px; } }
@media (max-width: 600px) { body.admin-bar { --adm: 0px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--line); font-size: 17px; }
.form-msg.ok { border-color: #6F7E52; background: rgba(111, 126, 82, .08); }
.form-msg.err { border-color: var(--terra); background: var(--terra-soft); }
.prose { max-width: 42em; }
.prose h2 { font-weight: 400; font-size: 32px; line-height: 1.15; margin: 40px 0 14px; }
.prose h3 { font-weight: 400; font-size: 24px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose a { color: var(--terra); }

/* beach photos, or the beach's place on the island until there is one */
.bimg { aspect-ratio: 3 / 2; margin: 4px 0 18px; position: relative; }
.bimg img { display: block; }
.beach:hover .bimg img, .beach.hot .bimg img { transform: scale(1.04); }
.bimg figcaption { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; background: rgba(29, 22, 17, .55); color: #F3E9DC; font-family: var(--sans); font-size: 10px; letter-spacing: .04em; line-height: 1.3; transition: opacity .8s .9s; }
.bimg figcaption a { color: inherit; text-decoration: none; }
.bimg figcaption a:hover { text-decoration: underline; }
.bimg.pre figcaption { opacity: 0; }
.bmini { background: var(--earth); overflow: hidden; }
.bmini svg { width: 100%; height: 100%; display: block; }
.bmini .coast { fill: var(--earth-2); stroke: #CDBBA4; stroke-width: .8; stroke-linejoin: round; }
.bmini .dot { fill: var(--clay); stroke: var(--earth); stroke-width: 2; }
.bmini .ring { fill: none; stroke: var(--clay); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ringOut 2.6s var(--ease) infinite; }
.bmini.pre .ring { animation: none; opacity: 0; }
.bmini figcaption { background: none; color: var(--earth-mute); left: 12px; right: auto; bottom: 10px; padding: 0; font-size: 11px; letter-spacing: .1em; }
@keyframes ringOut { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bmini .ring { animation: none; } }

/* loader: the mark draws, the photo rises inside its arch, the arch opens to the whole screen, then lifts away */
html.ld { overflow: hidden; }
html.ld main *, html.ld .bar, html.ld .bar * { animation-play-state: paused !important; }
.ld { position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink); transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.ld[hidden] { display: none; }
.ld-win { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.ld-win > div { position: absolute; inset: 0; background: #8D7766 center / cover no-repeat; transform: scale(1.18); transition: transform 1.6s var(--ease); }
.ld.open .ld-win > div { transform: none; }
.ld-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); display: flex; flex-direction: column; align-items: center; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.ld-brand svg { width: clamp(120px, 14vw, 170px); height: auto; overflow: visible; }
.ld .m-line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; animation: draw 1.3s .1s var(--ease) both; }
.ld .m-stem { animation-delay: .45s; }
.ld .m-leaf { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: pop .55s var(--ease) both; animation-delay: calc(.75s + var(--i) * .06s); }
.ld-word { margin-top: 18px; font-family: var(--mark); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; white-space: nowrap; animation: track 1.5s .35s var(--ease) both; }
.ld-place { margin-top: 12px; padding-left: .5em; font-family: var(--mark); font-weight: 500; font-size: 13px; letter-spacing: .5em; animation: fade 1s .9s var(--ease) both; }
.ld-count { position: absolute; right: var(--g); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-family: var(--sans); font-size: 11px; letter-spacing: .24em; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: opacity .4s; }
.ld.open .ld-brand { opacity: 0; transform: translate(-50%, -70%); }
.ld.open .ld-count { opacity: 0; }
.ld.lift { transform: translateY(-100%); }

/* hero changes as it scrolls away: day turns to dusk, the masthead shrinks into the bar, the strip moves at three speeds */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(217, 140, 104, .55) 0%, rgba(122, 60, 34, .35) 55%, rgba(29, 22, 17, .55) 100%); mix-blend-mode: multiply; opacity: calc(var(--hp, 0) * 1.3); pointer-events: none; }
.hero-media img { scale: calc(1 + var(--hp, 0) * .1); }
.hero .masthead { translate: 0 calc(var(--hp, 0) * -70px); scale: calc(1 - var(--hp, 0) * .45); opacity: calc(1 - var(--hp, 0) * 1.8); transform-origin: 50% 0; }
.hero .lead { translate: 0 calc(var(--hp, 0) * -110px); opacity: calc(1 - var(--hp, 0) * 1.6); }
.strip > span { display: block; overflow: hidden; }
.strip > span img { display: block; scale: 1.26; translate: 0 calc((var(--hp, 0) - .5) * var(--k, 0%)); }
.strip > span:nth-child(1) { --k: 8%; }
.strip > span:nth-child(2) { --k: 18%; }
.strip > span:nth-child(3) { --k: 12%; }
.enter .strip > span { animation: stripIn 1.3s var(--ease) both; }
.enter .strip > span:nth-child(2) { animation-delay: .12s; }
.enter .strip > span:nth-child(3) { animation-delay: .24s; }
@keyframes stripIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media::after, .hero .masthead, .hero .lead, .strip > span img { translate: none; scale: none; opacity: 1; }
  .hero-media::after { opacity: 0; }
  .enter .strip > span { animation: none; }
}

/* language switcher: the codes roll on hover, a terra line slides to the one you point at */
.lang { position: relative; display: flex; align-items: center; gap: 14px; padding-left: clamp(14px, 1.45vw, 26px); }
.lang::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid var(--line); }
.lang a { position: relative; display: block; padding: 10px 2px; margin: -10px -2px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .16em; text-decoration: none; color: var(--ink-2); transition: color .35s; }
.lang a[aria-current] { color: var(--ink); }
.lang a:hover, .lang a:focus-visible { color: var(--ink); }
.lang .r { display: block; height: 1.5em; overflow: hidden; }
.lang .r > span { display: block; transition: transform .5s var(--ease); }
.lang .r > span::after { content: attr(data-t); display: block; }
.lang a:hover .r > span, .lang a:focus-visible .r > span { transform: translateY(-1.5em); }
@media (max-width: 900px) { .bar .lang a { padding: 12px 8px; margin: -12px -4px; } }
.lang-mark { position: absolute; bottom: -5px; margin-left: 2px; left: var(--x, 0); width: var(--w, 0); height: 1px; background: var(--terra); transition: left .5s var(--ease), width .5s var(--ease); pointer-events: none; }
.drawer .lang-lg { flex-direction: row; justify-content: flex-start; padding-left: 0; gap: 26px; }
.drawer .lang-lg::before { display: none; }
.drawer .lang-lg a { font: 400 22px/1.5 var(--serif); letter-spacing: 0; }
.drawer .lang-lg .lang-mark { bottom: 0; }
@media (max-width: 900px) { .bar .lang { margin-right: 6px; } }

/* language change: a curtain with the language's name, before leaving and after arriving */
.lx { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: var(--earth); color: var(--earth-text); clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.lx span { font: italic 400 clamp(44px, 7vw, 96px)/1 var(--serif); opacity: 0; transform: translateY(24px); transition: opacity .5s .15s var(--ease), transform .7s .15s var(--ease); }
.lx.on { clip-path: inset(0 0 0 0); }
.lx.on span { opacity: 1; transform: none; }
.lx.in { clip-path: inset(0 0 0 0); }
.lx.in span { opacity: 1; transform: none; transition: none; }
.lx.in.out { clip-path: inset(0 0 0 0); animation: lxOut .8s .35s cubic-bezier(.7, 0, .2, 1) forwards; }
.lx.in.out span { opacity: 0; transform: translateY(-24px); transition: opacity .4s, transform .6s var(--ease); }
@keyframes lxOut { to { clip-path: inset(0 0 100% 0); } }

/* at the top of the home page the left of the bar is empty, so the language codes sit there and the menu keeps its place beside the masthead */
@media (min-width: 901px) {
  html.top-home .bar .lang { position: absolute; left: var(--g); top: 50%; transform: translateY(-50%); padding-left: 0; }
  html.top-home .bar .lang::before { display: none; }
  html.top-home .bar .lang a { color: rgba(251, 247, 241, .72); text-shadow: 0 1px 10px rgba(29, 22, 17, .35); }
  html.top-home .bar .lang a[aria-current], html.top-home .bar .lang a:hover { color: var(--cream); }
  html.top-home .bar .lang .lang-mark { background: var(--cream); }
}
