/* =========================================================================
   Domus Humani — homepage
   Brand blue #0E78AF from the logo, linen + clay from the façade, sage from the Sava.
   Type: Literata (book serif) · Atkinson Hyperlegible Next (designed for low vision) · Patrick Hand (hand, chosen for legibility)
   ========================================================================= */

:root {
  --linen: #F6F0E6;
  --paper: #FCF9F3;
  --sand: #EEE5D6;
  --sand-2: #E6DAC6;
  --blue: #0E78AF;
  --blue-deep: #0A5F8D;   /* AA on linen for text */
  --blue-ink: #0B4466;
  --ink: #1D2A33;
  --ink-2: #44515B;
  --ink-3: #6A747C;
  --line: rgba(29, 42, 51, .14);
  --clay: #A5634A;
  --clay-deep: #8A4E37;
  --clay-soft: #ECD3C4;
  --sage: #7F9A7E;
  --sage-soft: #DCE6D5;
  --sky: #D3E6F1;
  --sky-2: #BFD9E9;
  --butter: #F4E2A8;
  --butter-deep: #E9C766;

  --f-head: "Literata", Georgia, "Times New Roman", serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Patrick Hand", "Segoe Print", "Comic Sans MS", cursive;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 30px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --shadow: 0 1px 2px rgba(29, 42, 51, .06), 0 10px 30px -12px rgba(29, 42, 51, .18);
  --hdr: 84px;
}

/* text size switch (header A / A+ / A++) */
html { font-size: 100%; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.1875rem;       /* 19px — older eyes first */
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main, .ftr { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--blue-deep); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; margin: 0; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
h1 em, h2 em { color: var(--blue-deep); font-weight: 400; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-2); color: var(--ink); }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.06; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .7em 1.35em;
  border-radius: 14px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  touch-action: manipulation;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; transition: transform .3s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(29,42,51,.45); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 60px; padding: .8em 1.6em; font-size: 1.125rem; }
.btn--ink { --bg: var(--ink); }
.btn--blue { --bg: var(--blue-deep); }
.btn--blue:hover { --bg: var(--blue-ink); }
.btn--clay { --bg: var(--clay-deep); }
.btn--paper { --bg: var(--paper); --fg: var(--blue-ink); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; }
.btn--wa { --bg: #1F7A4D; }
.btn--viber { --bg: #6A4BA8; }
.round {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
  display: grid; place-items: center; transition: background-color .25s, color .25s;
}
.round svg { width: 22px; height: 22px; }
.round:hover { background: var(--ink); color: #fff; }

/* ---------- notice + header ---------- */
.notice { background: var(--sky); color: var(--blue-ink); font-size: 1rem; text-align: center; padding: .65rem var(--gut); }
.notice p { margin: 0; }
.notice a { font-weight: 700; color: inherit; white-space: nowrap; }
.nt-s { display: none; }
@media (max-width: 640px) { .nt-l { display: none; } .nt-s { display: inline; } }

.hdr { position: sticky; top: 0; z-index: 60; transition: background-color .35s, box-shadow .35s; }
.hdr.is-stuck { background: rgba(246, 240, 230, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.hdr__logo { flex: none; display: block; }
.logo { height: 54px; width: auto; aspect-ratio: 221.7 / 100; }
.lg-m { fill: var(--lgm, #0E78AF); }
.lg-w { fill: var(--lgw, #6F747B); }
.hdr__nav { display: flex; gap: 6px; margin-left: auto; }
.hdr__nav a { color: var(--ink); text-decoration: none; font-size: 1.0625rem; padding: .55em .8em; border-radius: 10px; transition: background-color .2s; }
.hdr__nav a:hover, .hdr__nav a.is-on { background: var(--sand); color: var(--ink); }
.hdr__act { display: flex; align-items: center; gap: 14px; }
.hdr__tel { display: inline-flex; align-items: center; gap: .45em; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hdr__tel svg { width: 22px; height: 22px; color: var(--blue); }
.fs { display: flex; align-items: flex-end; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; }
.fs button { width: 34px; height: 38px; border: 0; background: none; border-radius: 9px; font-family: var(--f-head); font-weight: 600; line-height: 1; color: var(--ink-2); }
.fs button:nth-child(1) { font-size: 15px; }
.fs button:nth-child(2) { font-size: 19px; }
.fs button:nth-child(3) { font-size: 23px; }
.fs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hdr__burger { display: none; width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--ink); background: transparent; position: relative; }
.hdr__burger span:not(.sr) { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.hdr__burger span:nth-child(1) { top: 19px; }
.hdr__burger span:nth-child(2) { top: 29px; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { top: 24px; transform: rotate(-45deg); }
.menu { background: var(--linen); border-top: 1px solid var(--line); padding: 12px var(--gut) 28px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
.menu nav { display: grid; }
.menu nav a { font-family: var(--f-head); font-size: 1.6rem; color: var(--ink); text-decoration: none; padding: .45em 0; border-bottom: 1px solid var(--line); }
.menu__tel { display: inline-flex; align-items: center; gap: .5em; margin-top: 20px; font-weight: 700; font-size: 1.3rem; color: var(--blue-deep); text-decoration: none; }
.menu__tel svg { width: 26px; height: 26px; }

/* ---------- thread (duyvenvoorde-style scroll-drawn line) ---------- */
main { position: relative; }
.thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread__ghost { stroke: rgba(14, 120, 175, .10); stroke-width: 2; stroke-dasharray: 2 9; }
.thread__line { stroke: var(--blue); stroke-width: 2.25; }

/* hanging items on a string */
.hang { position: absolute; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; pointer-events: none; }
.hang__str { width: 2px; height: 90px; background: var(--blue); border-radius: 2px; }
.hang__it { width: 64px; height: 64px; margin-top: -4px; }

/* ---------- shapes (all.inn-style masked photos; the house = domus) ---------- */
.shape { margin: 0; position: relative; overflow: hidden; }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.shape--house { -webkit-mask: url(../assets/shapes/house.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/house.svg) center / 100% 100% no-repeat; }
.shape--arch { -webkit-mask: url(../assets/shapes/arch.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/arch.svg) center / 100% 100% no-repeat; }
.shape--tag { -webkit-mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; }

/* ---------- hero (all.inn-style: headline across, playful collage below) ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 80px); }
.hero__top { position: relative; z-index: 2; }
.hero__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 1.4rem; }
.hero__tape {
  display: inline-block; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.2; color: var(--blue-ink);
  padding: .32em 1.1em .28em; rotate: -1.8deg;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px), rgba(211, 230, 241, .9);
  clip-path: polygon(0 10%, 4% 0, 8% 12%, 12% 0, 16% 8%, 20% 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
}
.hero__loc { display: inline-flex; align-items: center; gap: .4em; font-size: 1.0625rem; color: var(--ink-2); }
.hero__loc svg { width: 20px; height: 20px; color: var(--clay-deep); }
.hero__title {
  font-size: clamp(2.6rem, 6.3vw, 6.1rem);
  line-height: 1.02; letter-spacing: -.028em; font-weight: 500;
  max-width: 17ch;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(22px, 2.6vw, 40px); }
.hero__copy { position: relative; z-index: 2; padding-top: 6px; }
.hero__lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink-2); max-width: 30ch; margin: 0; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 28px 0 26px; }
.rating { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 1.0625rem; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); }
.rating strong { font-size: 1.15rem; }
.rating__stars { display: inline-flex; gap: 2px; color: #D99A1E; }
.rating__stars svg { width: 20px; height: 20px; }
.rating:hover { color: var(--ink); }

/* collage: every piece is placed in % of a fixed-ratio box, so it scales as one picture */
.hero__art { position: relative; aspect-ratio: 820 / 600; margin-top: clamp(-70px, -4vw, -20px); }
.pc { position: absolute; margin: 0; rotate: var(--rot, 0deg); will-change: transform; }
.pc img { width: 100%; height: 100%; object-fit: cover; }
.pc--house  { left: 21%; top: 6%;  width: 37%; aspect-ratio: 100 / 112; --rot: -4deg; z-index: 2; }
.pc--chess  { left: 63%; top: 0;   width: 23%; aspect-ratio: 1;         --rot: 7deg; }
.pc--lady   { left: 0;   top: 36%; width: 24%; aspect-ratio: 100 / 126; --rot: 5deg; z-index: 3; }
.pc--circle { left: 70%; top: 44%; width: 27%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; --rot: -6deg; box-shadow: 0 0 0 10px var(--linen); z-index: 2; }
.pc--clay   { left: 55%; top: 50%; width: 17%; aspect-ratio: 100 / 110; background: var(--clay); --rot: 12deg; z-index: 1;
              -webkit-mask: url(../assets/shapes/house.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/house.svg) center / 100% 100% no-repeat; }
.pc--sun    { left: 9%;  top: 4%;  width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--butter); }
.pc--badge  { left: 36%; top: 74%; width: 23%; aspect-ratio: 1.45; background: var(--sage-soft); --rot: -7deg; z-index: 4;
              display: grid; place-content: center; text-align: center; line-height: 1.1; padding-right: 8%;
              -webkit-mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; }
.pc--badge strong { font-family: var(--f-head); font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 500; }
.pc--badge span { font-size: clamp(.8rem, 1vw, .95rem); }
.pc--yarn   { left: 12%; top: 82%; width: 11%; aspect-ratio: 1; z-index: 5; }
.yarn svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }

/* ---------- intro ---------- */
.intro { padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 6vw, 90px); }
.intro__head { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; padding-top: 150px; }
.hang--intro { left: 50%; top: -10px; translate: -50% 0; }
.intro__text { font-family: var(--f-head); font-size: clamp(1.7rem, 3.3vw, 2.85rem); line-height: 1.55; letter-spacing: -.01em; color: var(--ink); }
.intro__text .w { color: #CABDAA; transition: color .4s; }
.intro__text .w.on { color: var(--ink); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(60px, 8vw, 110px); }
.reason { border-top: 2px solid var(--ink); padding-top: 22px; }
.reason__n { font-family: var(--f-head); font-style: italic; font-size: 1.15rem; color: var(--clay-deep); }
.reason h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 8px 0 12px; }
.reason p { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: clamp(48px, 6vw, 80px) 0 0; }
.stat { background: var(--paper); border-radius: var(--r-m); padding: 26px 26px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; box-shadow: var(--shadow); }
.stat dd { margin: 0; font-family: var(--f-head); font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .45em; color: var(--ink-3); }
.stat dt { color: var(--ink-2); font-size: 1.0625rem; }
.stat--g { background: var(--blue-deep); }
.stat--g dd, .stat--g dt, .stat--g dd small { color: #fff; }

/* ---------- yarn line: hand-drawn thread from the hero yarn, woven through the welcome text ---------- */
.yl { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.yl--back { z-index: 0; }
/* a strand of yarn: dark core, lighter twisted plies, a soft sheen; revealed through a mask */
.yl path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.yl__core { stroke: #8A4A33; stroke-width: 6; }
.yl__ply { stroke: #B9765B; stroke-width: 6.2; stroke-dasharray: 3.6 2.2; stroke-linecap: butt; }
.yl__sheen { stroke: rgba(255, 232, 218, .55); stroke-width: 1.2; stroke-dasharray: 3.6 2.2; }
.yl__reveal { stroke: #fff; stroke-width: 18; }
.yl__heart { fill: #D9A086; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 50% 60%; transform: scale(.3); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.yl__heart.is-on { opacity: .9; transform: scale(1); animation: heartbeat 1.6s ease-in-out .6s 2; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.intro__head { padding-top: 110px; }
/* a linen halo around the letters so the thread visibly passes under them */

/* ---------- section heads ---------- */
.sec-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__lead { font-size: 1.25rem; color: var(--ink-2); max-width: 44ch; margin-top: 20px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 60px; flex-wrap: wrap; }
.sec-head--row .sec-head__lead { margin: 0; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* ---------- services ---------- */
.services { padding: clamp(60px, 8vw, 120px) 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--sand); border-radius: var(--r-l); padding: 12px 12px 26px; display: flex; flex-direction: column; transition: transform .45s var(--ease), background-color .3s; }
.card:hover { transform: translateY(-6px); background: var(--sand-2); }
.card__img { margin: 0 0 20px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 0 12px; }
.card h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 1.0625rem; }
.extras { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.extras li { display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em .55em .75em; border-radius: 999px; border: 1.5px solid var(--line); font-size: 1.0625rem; background: rgba(252, 249, 243, .6); }
.extras svg { width: 22px; height: 22px; color: var(--blue); }

/* ---------- a day ---------- */
.day { position: relative; color: var(--ink); --sky-top: #FBE7D3; --sky-bot: #F6F0E6; }
.day::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: linear-gradient(180deg, rgba(246,240,230,0), var(--linen)); pointer-events: none; }
.day__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); transition: background .6s; }
.day__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 20px) 0 50px; }
.day__wrap { display: grid; grid-template-rows: auto auto auto; }
.day__head { text-align: center; }
.day__head .eyebrow { color: var(--clay-deep); }
.day__arc { position: relative; height: clamp(110px, 16vh, 180px); margin: 6px 4% -36px; }
.day__arc svg { width: 100%; height: 100%; overflow: visible; }
.day__path { stroke: rgba(29, 42, 51, .22); stroke-width: 2; stroke-dasharray: 3 10; vector-effect: non-scaling-stroke; }
.day__orb { position: absolute; left: 0; top: 0; width: 64px; height: 64px; translate: -50% -50%; }
.day__sun, .day__moon { position: absolute; inset: 0; border-radius: 50%; transition: opacity .6s; }
.day__sun { background: radial-gradient(circle at 40% 38%, #FFF3C9, var(--butter-deep) 62%); box-shadow: 0 0 0 10px rgba(244, 226, 168, .35), 0 0 60px 18px rgba(244, 204, 110, .45); }
.day__moon { background: radial-gradient(circle at 38% 36%, #FFFBEF, #E9E2C9 70%); box-shadow: 0 0 40px 10px rgba(255, 250, 230, .25); opacity: 0; }
.day__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); position: relative; }
.slot { background: rgba(252, 249, 243, .62); border-radius: var(--r-m); padding: 18px 18px 22px; opacity: .66; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease), background-color .5s, box-shadow .5s; }
.slot.is-on { opacity: 1; transform: translateY(0); background: var(--paper); box-shadow: var(--shadow); }
.slot__il { width: 64px; height: 64px; margin-bottom: 10px; transition: transform .6s var(--ease); }
.slot.is-on .slot__il { transform: rotate(-6deg) scale(1.08); }
.slot__t { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1; color: var(--clay-deep); margin-bottom: 6px; }
.slot h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; }
.slot p { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.day.is-night { color: #F3EEE4; }
.day.is-night .h2 em { color: var(--sky-2); }
.day.is-night .eyebrow { color: var(--butter); }
.day.is-night .day__path { stroke: rgba(255, 255, 255, .25); }
.day.is-night .day__sun { opacity: 0; }
.day.is-night .day__moon { opacity: 1; }
.day.is-night .slot { background: rgba(255, 255, 255, .08); color: #F3EEE4; }
.day.is-night .slot p { color: #D9D4CB; }
.day.is-night .slot__t { color: var(--butter); }
.day.is-night .slot.is-on { background: #F3EEE4; color: var(--ink); }
.day.is-night .slot.is-on p { color: var(--ink-2); }
.day.is-night .slot.is-on .slot__t { color: var(--clay-deep); }

/* ---------- rooms ---------- */
.rooms { padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 8vw, 110px); }
.rooms__ui { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.rooms__tabs { display: grid; gap: 10px; position: sticky; top: calc(var(--hdr) + 20px); }
.rooms__tabs button, .tour__rooms button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  min-height: 76px; padding: 14px 40px 14px 22px; border: 0; text-align: left;
  background: var(--sand); color: var(--ink); border-radius: 16px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.rooms__tabs button span { font-family: var(--f-head); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.rooms__tabs button small { font-size: .95rem; white-space: nowrap; color: var(--ink-2); }
.rooms__tabs button:hover, .tour__rooms button:hover { background: var(--sand-2); transform: translateX(4px); }
.rooms__tabs button[aria-selected="true"], .tour__rooms button[aria-selected="true"] { background: var(--blue-ink); color: #fff; }
.rooms__tabs button[aria-selected="true"] small { color: #CFE3EF; }
.rooms__panel { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); background: var(--paper); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow); }
.rooms__img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand); }
.rooms__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .9s var(--ease); }
.rooms__img img.is-swap { opacity: 0; transform: scale(1.03); }
.rooms__info { padding: 22px 18px 18px 0; display: flex; flex-direction: column; }
.rooms__info h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 18px; }
.levels { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--linen); border-radius: 14px; align-self: flex-start; }
.levels button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 1rem; color: var(--ink-2); transition: background-color .25s, color .25s; }
.levels button[aria-checked="true"] { background: var(--ink); color: #fff; }
.levels[hidden] { display: none; }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__v { font-family: var(--f-head); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.price__u { color: var(--ink-2); }
.rooms__desc { color: var(--ink-2); margin: 14px 0 22px; max-width: 46ch; }
.feats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.feats li { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; line-height: 1.3; }
.feats__i { flex: none; width: 46px; height: 42px; display: grid; place-items: center; padding-right: 6px; -webkit-mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; mask: url(../assets/shapes/tag.svg) center / 100% 100% no-repeat; }
.feats__i svg { width: 22px; height: 22px; color: var(--ink); }
.feats__i--sky { background: var(--sky-2); }
.feats__i--butter { background: var(--butter); }
.feats__i--sage { background: var(--sage-soft); }
.feats__i--clay { background: var(--clay-soft); }
.rooms__note { margin-top: auto; font-size: 1rem; color: var(--ink-3); }
.more { margin-top: 18px; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow); }
.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-family: var(--f-head); font-size: 1.3rem; min-height: 64px; }
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 26px; height: 26px; transition: transform .35s var(--ease); }
.more[open] summary svg { transform: rotate(45deg); }
.ptable { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.ptable th, .ptable td { text-align: left; padding: 14px 24px; border-top: 1px solid var(--line); }
.ptable th { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.ptable td:last-child, .ptable th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- marquee ---------- */
.marq { padding: clamp(30px, 5vw, 70px) 0; overflow: hidden; position: relative; z-index: 1; }
.marq__track { display: flex; width: max-content; will-change: transform; }
.marq__row { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding-right: clamp(20px, 2.6vw, 40px); flex: none; }
.marq__w { font-family: var(--f-head); font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: 1.1; letter-spacing: -.025em; white-space: nowrap; color: var(--ink); }
.marq__w em { color: var(--blue-deep); }
.marq__pic { display: block; height: clamp(76px, 8.4vw, 124px); aspect-ratio: 100 / 110; overflow: hidden; flex: none; }
.marq__pic img { width: 100%; height: 100%; object-fit: cover; }
.marq__dot { width: clamp(46px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; flex: none; }
.marq__dot--sage { background: var(--sage-soft); }
.marq__dot--clay { background: var(--clay-soft); }

/* ---------- 360 tour ---------- */
.tour { padding: clamp(60px, 8vw, 120px) 0; }
.tour__ui { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 36px); align-items: stretch; }
.tour__rooms { display: flex; flex-direction: column; gap: 10px; }
.tour__rooms button { justify-content: flex-start; font-family: var(--f-head); font-size: 1.2rem; min-height: 66px; }
.tour__n { font-family: var(--f-body); font-size: .9rem; font-weight: 700; opacity: .6; }
.tour__all { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 700; padding: 14px 4px; min-height: 48px; }
.tour__all svg { width: 20px; height: 20px; }
.tour__view { position: relative; border-radius: var(--r-l); overflow: hidden; background: #2A3640; aspect-ratio: 16 / 10; min-height: 360px; box-shadow: var(--shadow); }
.tour__canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.tour__canvas:active { cursor: grabbing; }
.tour__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.tour__fallback { width: 100%; height: 100%; object-fit: cover; }
.tour__canvas.is-gl .tour__fallback { display: none; }
.tour__hint { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: .5em; background: rgba(252, 249, 243, .94); color: var(--ink); padding: .7em 1.2em; border-radius: 999px; font-weight: 700; pointer-events: none; transition: opacity .5s; box-shadow: var(--shadow); }
.tour__hint svg { width: 26px; height: 26px; color: var(--blue); }
.tour__hint.is-gone { opacity: 0; }
.tour__fs { position: absolute; right: 16px; top: 16px; width: 52px; height: 52px; border-radius: 14px; border: 0; background: rgba(252, 249, 243, .94); display: grid; place-items: center; }
.tour__fs svg { width: 24px; height: 24px; }
.tour__label { position: absolute; left: 16px; bottom: 16px; margin: 0; background: var(--blue-ink); color: #fff; padding: .45em 1em; border-radius: 12px; font-family: var(--f-head); font-size: 1.15rem; }
.tour__view:fullscreen { border-radius: 0; }

/* ---------- album (clothesline) ---------- */
.album { padding: clamp(60px, 8vw, 120px) 0 clamp(60px, 7vw, 100px); }
.line { position: relative; z-index: 1; margin-top: 10px; }
.line__rope { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.line__rope path { stroke: #9C8670; stroke-width: 2; vector-effect: non-scaling-stroke; }
.line__items { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: 1600px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 34px); }
.pol { position: relative; transform-origin: 50% 0; rotate: var(--r); padding-top: var(--dy, 30px); }
.pol figure { margin: 0; background: #fff; padding: 12px 12px 0; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 34px -16px rgba(60, 40, 20, .35); border-radius: 3px; }
.pol img { aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover; }
.pol figcaption { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.15; text-align: center; color: var(--ink); padding: 12px 4px 16px; }
.pol__pin { position: absolute; left: 50%; top: calc(var(--dy, 30px) - 26px); width: 20px; height: 40px; translate: -50% 0; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.album__foot { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 60px); }

/* ---------- steps ---------- */
.steps { padding: clamp(60px, 8vw, 120px) 0; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: s; }
.step { position: relative; padding-top: 4px; }
.step__n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--blue); color: var(--blue-deep); font-family: var(--f-head); font-size: 1.6rem; margin-bottom: 22px; position: relative; z-index: 1; }
.step h3 { font-size: 1.5rem; margin-bottom: 20px; }
.step p { color: var(--ink-2); font-size: 1.0625rem; }
.docs { display: grid; gap: 8px; margin-top: 14px; }
.docs a { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1rem; min-height: 44px; }
.docs svg { width: 22px; height: 22px; flex: none; }
.urgent { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; background: var(--clay-soft); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); }
.urgent__i { width: 56px; height: 56px; color: var(--clay-deep); }
.urgent h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 8px; }
.urgent p { color: var(--ink-2); max-width: 60ch; }

/* ---------- reviews ---------- */
.reviews { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); }
.gbadge { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; background: var(--paper); padding: 18px 24px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.gbadge strong { grid-row: span 2; font-family: var(--f-head); font-size: 3rem; line-height: 1; font-weight: 500; }
.gbadge span:last-child { font-size: 1rem; color: var(--ink-2); }
.gbadge:hover { color: var(--ink); }
.quotes { overflow: hidden; position: relative; z-index: 1; cursor: grab; touch-action: pan-y; }
.quotes:active { cursor: grabbing; }
.quotes__track { display: flex; gap: 18px; padding: 10px var(--gut) 20px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: max-content; will-change: transform; }
.q { margin: 0; width: clamp(290px, 32vw, 440px); flex: none; border-radius: var(--r-l); padding: 34px 32px 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; user-select: none; }
.q p { font-family: var(--f-head); font-size: 1.4rem; line-height: 1.4; }
.q p::before { content: "„"; }
.q p::after { content: "”"; }
.q footer { margin-top: 24px; font-weight: 700; font-size: 1.0625rem; color: var(--ink-2); }
.q--sky { background: var(--sky); }
.q--butter { background: var(--butter); }
.q--sage { background: var(--sage-soft); }
.q--clay { background: var(--clay-soft); }
.quotes__nav { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 8vw, 120px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr) + 30px); }
.faq__head p { color: var(--ink-2); margin: 20px 0 24px; max-width: 34ch; }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-family: var(--f-head); font-size: 1.3rem; line-height: 1.3; min-height: 72px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--sand); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.qa[open] summary svg { transform: rotate(45deg); background: var(--ink); color: #fff; }
.qa__a { padding: 0 26px 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- letter / book ("Spomenar") ---------- */
.letter { padding: clamp(70px, 9vw, 140px) 0 clamp(70px, 9vw, 130px); }
.book {
  --pw: min(580px, 46vw);
  position: relative; display: grid; grid-template-columns: var(--pw) var(--pw); justify-content: center;
  perspective: 2600px; margin: 0 auto;
  contain: layout;
}
/* every page shares one grid row, so left and right are always the same height */
.turn { grid-column: 2; grid-row: 1; position: relative; display: flex; transform-style: preserve-3d; transform-origin: 0 50%; z-index: calc(20 - var(--i)); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face--back { transform: rotateY(180deg); }
.turn--info .face--back { position: relative; inset: auto; flex: 1; }
/* light sweeping across a page while it turns */
.shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 5; }
.face--front > .shade { background: linear-gradient(90deg, rgba(60, 40, 20, .3), rgba(255,255,255,.18) 55%, transparent); }
.face--back > .shade { background: linear-gradient(270deg, rgba(60, 40, 20, .3), rgba(255,255,255,.15) 55%, transparent); }

.page {
  background-color: #FBF5E8;
  background-image: radial-gradient(130% 90% at 50% 40%, transparent 60%, rgba(150, 110, 60, .13)), url(../assets/img/paper.webp);
  background-size: auto, 384px 384px;
  min-height: 0;
  padding: clamp(24px, 2.8vw, 40px) clamp(24px, 3vw, 42px);
}
.face--front.page, .page--r { border-radius: 4px 16px 16px 4px; }
.face--back.page { border-radius: 16px 4px 4px 16px; }
.turn--blank .face--front, .turn--info .face--front { box-shadow: inset 22px 0 26px -22px rgba(80, 60, 30, .35); }
.turn--blank .face--back { box-shadow: inset -22px 0 26px -22px rgba(80, 60, 30, .35); }

/* cover */
.cover {
  border-radius: 6px 18px 18px 6px;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 2px, transparent 2px 6px),
    linear-gradient(160deg, #11699A, #0B4C72);
  box-shadow: inset 12px 0 18px -10px rgba(0,0,0,.45), inset -2px 0 0 rgba(255,255,255,.08), 0 34px 50px -24px rgba(11, 40, 60, .6);
  display: grid; place-items: center; color: #F3E9D6; overflow: visible;
}
.cover::before { content: ""; position: absolute; inset: 18px 18px 18px 32px; border: 1.5px solid rgba(243, 233, 214, .35); border-radius: 4px 12px 12px 4px; }
.book__cover-in { text-align: center; position: relative; }
.book__mono { width: 130px; height: 112px; margin: 0 auto 26px; fill: #0B5680; filter: drop-shadow(1px 1px 0 rgba(255,255,255,.22)) drop-shadow(-1px -1px 0 rgba(0,0,0,.25)); }
.book__cover-in p { font-family: var(--f-head); font-style: italic; font-size: clamp(2.4rem, 4vw, 3.4rem); margin: 0 0 8px; color: #F3E9D6; }
.book__cover-in span { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.book__ribbon { position: absolute; right: 60px; bottom: -34px; width: 22px; height: 70px; background: var(--clay); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
/* inside of the cover: marbled endpaper */
.endpaper {
  border-radius: 16px 6px 6px 16px;
  background:
    radial-gradient(circle at 20% 30%, rgba(14,120,175,.30) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 20%, rgba(165,99,74,.26) 0 6%, transparent 7%),
    radial-gradient(circle at 40% 70%, rgba(127,154,126,.30) 0 9%, transparent 10%),
    radial-gradient(circle at 85% 75%, rgba(14,120,175,.26) 0 7%, transparent 8%),
    repeating-linear-gradient(135deg, rgba(14,120,175,.05) 0 2px, transparent 2px 12px), #ECE4D3;
  box-shadow: inset -20px 0 26px -18px rgba(40, 30, 20, .35);
}

/* page thickness on the outer edges */
.page--l { position: relative; box-shadow: inset -26px 0 30px -26px rgba(80, 60, 30, .35), -1px 0 0 #EDE3D0, -2px 1px 0 #E2D6BF, -3px 1px 0 #EDE3D0, -4px 2px 0 #DCCFB6, -5px 2px 0 #E8DDC8, 0 30px 50px -30px rgba(60, 40, 20, .45); }
.page--r {
  grid-column: 2; grid-row: 1; position: relative; z-index: 1;
  display: flex; flex-direction: column;
  box-shadow: inset 26px 0 30px -26px rgba(80, 60, 30, .35), 1px 0 0 #EDE3D0, 2px 1px 0 #E2D6BF, 3px 1px 0 #EDE3D0, 4px 2px 0 #DCCFB6, 5px 2px 0 #E8DDC8, 0 30px 50px -30px rgba(60, 40, 20, .45);
}
.page--r::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 2.2vw, 30px); width: 1.5px; background: rgba(165, 99, 74, .3); }
/* a curled corner that lifts on hover */
.page__curl { position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; border-radius: 0 0 16px 0; background: linear-gradient(315deg, var(--linen) 45%, #E4D8C2 50%, #FBF5E8 72%); box-shadow: -3px -3px 6px -3px rgba(60,40,20,.25); transition: width .4s var(--ease), height .4s var(--ease); }
.page--r:hover .page__curl { width: 66px; height: 66px; }

.page__lav { position: absolute; right: 18px; top: 26px; width: 46px; height: 124px; rotate: 18deg; opacity: .95; }
.page__hand { font-family: var(--f-hand); font-size: 2.1rem; color: var(--clay-deep); line-height: 1.1; margin-bottom: 16px; rotate: -3deg; transform-origin: 0 50%; }
.page__h { font-size: 2rem; margin-bottom: 22px; }
.page__info { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.page__info li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; line-height: 1.45; }
.page__info svg { width: 26px; height: 26px; color: var(--blue); margin-top: 1px; }
.page__info a { font-weight: 700; }
.page__info small { font-size: .95rem; color: var(--ink-2); }
.minimap { display: block; text-decoration: none; color: var(--ink); background: rgba(252, 249, 243, .7); border-radius: 14px; border: 1.5px dashed rgba(29, 42, 51, .22); padding: 10px 10px 12px; transition: border-color .3s; }
.minimap:hover { border-color: var(--blue); color: var(--ink); }
.minimap svg { width: 100%; height: auto; }
.minimap > span { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: 1rem; color: var(--blue-deep); padding: 4px 6px 0; }
.minimap > span svg { width: 18px; height: 18px; }
.mm-river { fill: none; stroke: var(--sky-2); stroke-width: 16; stroke-linecap: round; }
.mm-road { fill: none; stroke: var(--sand-2); stroke-width: 9; stroke-linecap: round; }
.mm-t { font-family: var(--f-hand); font-size: 22px; fill: var(--blue-deep); }
.mm-t--s { font-size: 17px; fill: var(--ink-3); }
.mm-house path { fill: var(--clay-soft); stroke: var(--clay-deep); stroke-width: 2; stroke-linejoin: round; }
.mm-heart { fill: var(--clay); }

/* the letter */
.page--r { font-family: var(--f-head); font-size: 1.2rem; line-height: 2.35rem; padding-left: clamp(36px, 4.2vw, 62px); }
.lt { margin: 0 0 .15rem; }
.lt__date { text-align: right; font-style: italic; color: var(--ink-3); margin-bottom: .3rem; }
.ink {
  font-family: var(--f-hand); font-size: 1.55rem; font-weight: 400; line-height: 1.2; letter-spacing: .01em;
  color: #123F6E; background: transparent;
  border: 0; border-bottom: 2px dotted rgba(29, 42, 51, .4); border-radius: 0;
  padding: 0 .15em; margin: 0 .1em; min-height: 44px; vertical-align: baseline; max-width: 100%;
  transition: border-color .25s, background-color .25s;
}
.ink:focus { outline: none; border-bottom: 2px solid var(--blue); background: rgba(14, 120, 175, .07); }
.ink::placeholder { color: rgba(18, 63, 110, .42); }
select.ink { -webkit-appearance: none; appearance: none; padding-right: 1.1em; background-image: linear-gradient(45deg, transparent 50%, #123F6E 50%), linear-gradient(135deg, #123F6E 50%, transparent 50%); background-size: 6px 6px, 6px 6px; background-position: right .32em top 58%, right .1em top 58%; background-repeat: no-repeat; cursor: pointer; }
.ink--sig { font-size: 1.9rem; }
.ink[aria-invalid="true"] { border-bottom-color: #B3261E; background: rgba(179, 38, 30, .06); }
select.ink.is-inked { animation: write .7s steps(14, end) both; }
/* typed handwriting: the real input keeps the caret, a mirror shows the ink flowing in letter by letter */
.ink-wrap { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.ink-wrap .ink { color: transparent; caret-color: #123F6E; }
.ink-ghost { position: absolute; left: calc(.1em + .15em); top: 0; height: 100%; display: flex; align-items: center; pointer-events: none; white-space: pre; font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.2; letter-spacing: .01em; color: #123F6E; overflow: hidden; max-width: calc(100% - .4em); }
.ink-wrap--sig .ink-ghost { font-size: 1.9rem; }
.ink-ghost .ch { display: inline-block; white-space: pre; }
.ink-ghost .ch.nw { animation: inkin .45s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes inkin { 0% { clip-path: inset(0 100% 0 0); opacity: .25; transform: translateY(1px) rotate(-5deg); filter: blur(.7px); } 100% { clip-path: inset(0 0 0 0); opacity: 1; transform: none; filter: none; } }
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
/* printed lines write themselves in once the book has opened */

/* seal + send share one fixed box, so the page never grows */
.seal-row { position: relative; height: 158px; margin-top: 16px; font-family: var(--f-body); line-height: 1.4; }
.seal-state, .send { position: absolute; inset: 0; transition: opacity .45s, transform .5s var(--ease), visibility 0s; }
.send[hidden] { display: block; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.page--r.is-sealed .seal-state { opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.seal { display: inline-flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; text-align: left; }
.seal__wax {
  width: 96px; height: 96px; flex: none; display: grid; place-items: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 36% 30%, #C76B55, #9C3E2C 58%, #7E2F21);
  box-shadow: inset -4px -6px 10px rgba(0,0,0,.25), inset 4px 4px 8px rgba(255,255,255,.18), 0 6px 14px -4px rgba(126, 47, 33, .55);
  transition: transform .4s var(--ease);
}
.seal__wax svg { width: 52px; height: 44px; fill: #7A2C1F; filter: drop-shadow(1px 1px 0 rgba(255,255,255,.25)); }
.seal__txt { font-weight: 700; font-size: 1.15rem; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.seal:hover .seal__wax { transform: rotate(-8deg) scale(1.05); }
.lt__err[hidden] { display: none; }
.lt__err { margin: 12px 0 0; font-size: 1rem; line-height: 1.4; color: #B3261E; max-width: 34ch; }
/* the wax stamp pressed onto the page once sealed */
.page--r::after { content: ""; position: absolute; right: 56px; bottom: 300px; width: 92px; height: 92px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 36% 30%, #C76B55, #9C3E2C 58%, #7E2F21); box-shadow: inset -4px -6px 10px rgba(0,0,0,.25), inset 0 0 0 9px rgba(126,47,33,.35), inset 0 0 0 11px rgba(255,220,200,.18), 0 6px 14px -4px rgba(126,47,33,.55); opacity: 0; transform: scale(1.6) rotate(-14deg); pointer-events: none; }
.page--r.is-sealed::after { animation: stamp .6s var(--ease) .1s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.6) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
.send__t { font-family: var(--f-hand); font-size: 1.8rem; color: var(--clay-deep); margin-bottom: 10px; line-height: 1.1; }
.send__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.send__edit { margin-top: 10px; background: none; border: 0; padding: 8px 0; text-decoration: underline; color: var(--ink-2); font-size: 1rem; min-height: 44px; }
.lt__fine { font-family: var(--f-body); font-size: .9rem; line-height: 1.5; color: var(--ink-3); margin-top: auto; padding-top: 14px; padding-right: 40px; }
.letter__or { text-align: center; margin-top: 56px; font-size: 1.2rem; color: var(--ink-2); }
.letter__or a { font-weight: 700; }

/* closed -> open: the cover turns, then the pages follow one after another (desktop) */
/* the page turn is driven by scroll (js/main.js sets each leaf's angle); pages lift a little mid-turn */
.turn { will-change: transform; }
@media (min-width: 901px) { .letter { contain: layout style; } }

/* ---------- footer ---------- */
.ftr { background: var(--blue-ink); color: #EAF1F5; padding: clamp(60px, 8vw, 110px) 0 32px; position: relative; }
.ftr a:not(.btn) { color: #fff; }
.ftr__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 44px; align-items: center; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255,255,255,.16); }
.ftr__mono { width: clamp(90px, 9vw, 130px); height: auto; aspect-ratio: 117 / 100; fill: var(--sky-2); }
.ftr__claim { font-family: var(--f-head); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: 0; }
.ftr__claim em { color: var(--sky-2); }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: 44px 0; }
.ftr__cols h3 { font-family: var(--f-body); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 12px; }
.ftr__cols p { line-height: 1.75; }
.ftr__soc { display: flex; gap: 10px; }
.ftr__soc a { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background-color .25s; }
.ftr__soc a:hover { background: rgba(255,255,255,.12); }
.ftr__soc svg { width: 24px; height: 24px; }
.ftr__legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; font-size: .95rem; color: #C2D3DD; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.ftr__legal p { margin: 0; }
.ftr__legal a { color: #fff; }

.callfab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; background: var(--blue-deep); color: #fff; place-items: center; box-shadow: 0 12px 26px -10px rgba(11, 68, 102, .7); transition: transform .3s var(--ease), opacity .3s; }
.callfab svg { width: 28px; height: 28px; }
.callfab.is-hidden, .callfab.is-early { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ---------- reveal helpers (JS adds .js on <html>) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(26px); }
.js [data-split] .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .ln > span { display: inline-block; transform: translateY(105%); }


/* ---------- Spomenar motifs across the page: pressed flowers, washi tape, photo corners ---------- */
.deco { position: absolute; pointer-events: none; z-index: 1; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
/* each one sits in empty space beside a heading, never on text, photos or the thread */
.sec-head { position: relative; }
.deco--svc    { width: 54px; height: 90px; left: calc(100% + 60px); top: 18px; rotate: 14deg; }
.deco--steps  { width: 40px; height: 92px; left: calc(100% + 70px); top: 10px; rotate: -16deg; }
.day__head { position: relative; }
.deco--day1   { width: 40px; height: 108px; left: calc(50% - 470px); top: 0; rotate: -22deg; }
.deco--day2   { width: 52px; height: 86px; left: calc(50% + 420px); top: 6px; rotate: 16deg; animation-delay: -3s; }
.album__foot { position: relative; }
.deco--alb1   { width: 40px; height: 106px; left: calc(50% - 250px); top: -34px; rotate: -24deg; }
.deco--alb2   { width: 36px; height: 84px; left: calc(50% + 210px); top: -24px; rotate: 22deg; animation-delay: -4s; }
.faq__head { position: relative; }
.deco--faq    { width: 48px; height: 128px; left: 4px; top: calc(100% + 30px); rotate: -14deg; }
.deco--faq2   { width: 52px; height: 86px; left: 70px; top: calc(100% + 64px); rotate: 18deg; animation-delay: -2.5s; }
.deco--letter { width: 36px; height: 84px; left: calc(50% - 440px); top: 0; rotate: -20deg; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

@media (max-width: 1240px) { .deco--svc, .deco--steps { display: none; } .deco--day1 { left: calc(50% - 400px); } .deco--day2 { left: calc(50% + 350px); } .deco--letter { left: calc(50% - 380px); } }

/* washi tape: semi-transparent paper with torn ends */
.card, .q, .rooms__panel, .tour__view { position: relative; }
.card::before, .q::before, .rooms__panel::before, .tour__ui::after {
  content: ""; position: absolute; z-index: 3; width: 112px; height: 30px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px), var(--tape, rgba(211, 230, 241, .78));
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 24% 8%, 30% 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 5% 50%);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.card::before { top: -12px; left: 50%; translate: -50% 0; rotate: -4deg; }
.card:nth-child(2)::before { --tape: rgba(244, 226, 168, .82); rotate: 3deg; }
.card:nth-child(3)::before { --tape: rgba(220, 230, 213, .85); rotate: -2deg; }
.card:nth-child(4)::before { --tape: rgba(236, 211, 196, .85); rotate: 5deg; }
.q::before { top: -12px; left: 34px; width: 96px; rotate: -6deg; --tape: rgba(252, 249, 243, .8); }
.q:nth-child(even)::before { left: auto; right: 34px; rotate: 5deg; }
.rooms__panel::before { top: -12px; left: 30px; rotate: -7deg; --tape: rgba(236, 211, 196, .85); }
.tour__ui { position: relative; }
.tour__ui::after { top: -12px; right: 40px; rotate: 6deg; --tape: rgba(244, 226, 168, .82); }
/* old-album photo corners on the room photo */
.rooms__img { position: relative; }
.rooms__panel .rooms__img::before, .rooms__panel .rooms__img::after { content: ""; position: absolute; z-index: 2; width: 34px; height: 34px; background: #3A2B22; opacity: .82; pointer-events: none; }
.rooms__panel .rooms__img { border-radius: 6px; }
.rooms__panel .rooms__img::before { left: 0; bottom: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.rooms__panel .rooms__img::after { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
@media (max-width: 900px) {
  .deco--day1, .deco--day2, .deco--letter, .deco--svc, .deco--steps, .deco--faq, .deco--faq2 { display: none; }
}
@media (prefers-reduced-motion: reduce), (max-width: 900px) { .deco { animation: none; } }
@media (max-width: 640px) { .deco--alb1, .deco--alb2 { display: none; }  }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1240px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__act { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .line__items { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .line__rope { display: none; }
  .pol { --dy: 26px !important; }
}
@media (max-width: 1080px) {
  .rooms__ui { grid-template-columns: minmax(0, 1fr); }
  .rooms__tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour__ui { grid-template-columns: minmax(0, 1fr); }
  .tour__rooms { flex-direction: row; flex-wrap: wrap; }
  .tour__rooms button { width: auto; flex: 1 1 200px; }
  .tour__all { margin-top: 0; }
  .tour__view { order: -1; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hdr__tel span { display: none; }
  .hdr__act > .btn { display: none; }
  .fs { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { margin-top: 18px; aspect-ratio: 820 / 640; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .rooms__panel { grid-template-columns: minmax(0, 1fr); }
  .rooms__img { aspect-ratio: 4 / 3; }
  .rooms__info { padding: 8px 10px 14px; }
  .urgent { grid-template-columns: minmax(0, 1fr); }
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
  /* the book becomes a stacked notebook: info page, then the letter */
  .book { display: block; transform: none !important; perspective: none; max-width: 640px; }
  .book .turn--cover, .book .turn--blank, .book .turn--info > .face--front, .book .shade { display: none; }
  .turn { animation: none !important; transform: none !important; display: block; visibility: visible !important; }
  .turn--info .face--back { transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; border-radius: 16px 16px 0 0; }
  .book .page--r { visibility: visible !important; border-radius: 0 0 16px 16px; }
  .page { min-height: 0; }
  .page--r::after { top: -24px; bottom: auto; right: 16px; width: 54px; height: 54px; z-index: 3; }
  .seal-row { height: 220px; }
  .callfab { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .notice { font-size: .95rem; }
  .logo { height: 46px; }
  :root { --hdr: 74px; }
  .day__list { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 20px 18px; }
  .line__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .pol figcaption { font-size: 1.3rem; }
  .tour__view { aspect-ratio: 4 / 5; }
  .rooms__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rooms__tabs button { min-height: 72px; padding: 10px 26px 10px 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .rooms__tabs button span { font-size: 1.05rem; }
  .rooms__tabs button small { font-size: .85rem; }
  .tour__rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tour__rooms button { min-height: 56px; font-size: 1rem; padding: 8px 22px 8px 12px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
  .tour__n { display: none; }
  .tour__all { grid-column: 1 / -1; }
  .ptable th, .ptable td { padding: 12px 14px; }
  .ftr__cols { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { width: 100%; }
  /* phone collage: fewer, bigger pieces in a squarer box */
  .hero__art { aspect-ratio: 1 / .98; margin-top: 26px; }
  .pc--house  { left: 17%; top: 4%;  width: 50%; }
  .pc--chess  { left: 67%; top: 0;   width: 31%; }
  .pc--lady   { left: 0;   top: 42%; width: 33%; }
  .pc--circle { left: 63%; top: 47%; width: 36%; box-shadow: 0 0 0 6px var(--linen); }
  .pc--clay   { left: 46%; top: 60%; width: 20%; }
  .pc--sun    { left: 3%;  top: 6%;  width: 18%; }
  .pc--badge  { left: 33%; top: 77%; width: 33%; }
  .pc--yarn   { left: 12%; top: 84%; width: 14%; }
  .pc--badge strong { font-size: 1.5rem; }
  .pc--badge span { font-size: .72rem; }
  .page--r { padding-left: 34px; padding-right: 18px; }
  .ink { font-size: 1.5rem; }
  .q { padding: 26px 24px; min-height: 260px; }
  .q p { font-size: 1.25rem; }
}

/* the day section without pinning: phones + reduced motion */
@media (max-width: 900px) {
  .day__pin { min-height: 0; padding: 80px 0; }
  .day__arc { display: none; }
  .slot { opacity: 1; transform: none; background: var(--paper); }
  .day__head { text-align: left; margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js [data-split] .ln > span { transform: none; }
  .intro__text .w { color: var(--ink); }
  .slot { opacity: 1; transform: none; }
}
