/* ============================================================================
   HOSTAL VILLA AMPURDÁN — Portals Nous, Mallorca
   CONCEPT: "El Arco" — the whole stay is reached by passing through the
   honey-stone arch. The arch is the hero frame, the section divider, the
   numeral keystone and the mark. Palette derived from the real photos:
   honey marès stone + garden/shutter green + warm lantern night, with the
   turquoise cove as the single cool accent (the lane's "marina blue" glint).
   Identity lane: Syne (display) + Inter (body) · sharp edges · coastal.
   ============================================================================ */

:root {
  /* ---- palette derived from assets/photos ---- */
  --stone:        #b29a72;  /* marès arch stone (p05) */
  --stone-light:  #d8c7a4;  /* sunlit stone edge */
  --stone-deep:   #6f5d3f;  /* shadowed stone */
  --green:        #2b3a2f;  /* deep garden green (p05 foliage) */
  --green-shut:   #5c7150;  /* the green shutter / leaf */
  --night:        #16130c;  /* warm near-black of the night garden (p00) */
  --lantern:      #d98a2b;  /* lantern / candle amber (p00 highlights) */
  --cove:         #3f7e93;  /* the turquoise cove, dimmed (p06) — cool accent */
  --cove-bright:  #79b4c4;

  /* ---- working tokens ---- */
  --paper:        #f6f1e6;  /* warm limewash white — the wall in sun */
  --paper-2:      #efe7d6;
  --ink:          #211d16;  /* warm near-black text */
  --ink-soft:     #4c463a;
  --ink-faint:    #7d7768;
  --line:         #e2d8c4;
  --line-strong:  #cdbf9f;

  --bg:           var(--paper);
  --fg:           var(--ink);

  /* type */
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* rhythm */
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --gap: clamp(28px, 5vw, 72px);
  --sec-y: clamp(72px, 11vw, 150px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --speed: .6s;
}

/* ============================== RESET ============================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.62;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--lantern); color: var(--night); }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--green); color: var(--paper);
  padding: 10px 16px; transform: translateY(-160%);
  transition: transform .2s var(--ease); font-weight: 600; font-size: .9rem;
}
.skip:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--cove);
  outline-offset: 3px;
}

/* ============================== TYPE SCALE ============================== */
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--green);
  /* keep display headings from breaking into one-letter-per-line on mobile */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}
.h2--light { color: var(--paper); }

/* the recurring "threshold" label — names which arch you're passing */
.thresh {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-deep);
  padding-bottom: 14px;
  position: relative;
}
.thresh::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px; background: var(--stone);
}
.thresh--light { color: var(--stone-light); }
.thresh--light::after { background: var(--stone-light); }

/* ============================== THE ARCH MOTIF ============================== */
/* shared stroke styling for every inline arch instance */
.arch { overflow: visible; }
.arch__stone {
  fill: none;
  stroke: var(--stone);
  stroke-width: 2.5;
  stroke-linecap: square;
}
.arch__spring { stroke: var(--stone); stroke-width: 1.5; opacity: .55; }
.arch__key { stroke: var(--stone); stroke-width: 2; opacity: .8; }

.arch--mark { width: 26px; height: auto; }
.arch--num  { width: 44px; height: auto; }

/* ============================== NAV ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  padding-top: 10px; padding-bottom: 10px;
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800;
  letter-spacing: -0.01em; font-size: 1.02rem; color: var(--green);
}
.nav__mark .arch__stone { stroke: var(--green); }
.nav__mark .arch__spring, .nav__mark .arch__key { stroke: var(--green); }
.nav__name { white-space: nowrap; }

.nav__links {
  display: none;
  gap: clamp(16px, 2vw, 34px);
  margin-inline: auto;
  padding-inline: 16px; /* guaranteed gutter so centered links never butt the brand */
}
.nav__links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 6px 2px; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--stone-deep); transition: right .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { right: 0; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang__btn {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; color: var(--ink-faint);
  padding: 6px 4px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .25s var(--ease);
}
.lang__btn.is-active { color: var(--green); }
.lang__btn:hover { color: var(--stone-deep); }
.lang__sep { color: var(--line-strong); }

.nav__book { display: none !important; }
@media (min-width: 960px) { .nav__book { display: inline-flex !important; } }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  font-family: var(--display); font-weight: 700; letter-spacing: .01em;
  padding: 13px 22px; min-height: 48px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--book {
  background: var(--green); color: var(--paper);
  border-color: var(--green);
}
.btn--book:hover { background: var(--lantern); border-color: var(--lantern); color: var(--night); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.btn--ghost:hover { border-color: var(--stone-light); background: color-mix(in srgb, var(--paper) 12%, transparent); }
.btn--lg { padding: 15px 28px; min-height: 54px; font-size: 1.02rem; }
.btn--xl { padding: 18px 40px; min-height: 60px; font-size: 1.1rem; }
.btn:active { transform: translateY(1px); }
@media (hover: hover) { .btn--book:hover { transform: translateY(-2px); } }

/* the arch-shaped underline link */
.link-arch {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  color: var(--green); min-height: 44px;
}
.link-arch__dash {
  width: 34px; height: 12px;
  border: 2px solid var(--stone);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  transition: width .3s var(--ease), border-color .3s var(--ease);
}
.link-arch:hover .link-arch__dash { width: 54px; border-color: var(--lantern); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  background-image: url("assets/img/garden-night.jpg");
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-10px); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, var(--night) 4%, color-mix(in srgb, var(--night) 72%, transparent) 34%, transparent 66%),
    linear-gradient(to bottom, color-mix(in srgb, var(--night) 60%, transparent), transparent 30%),
    radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--night) 55%, transparent), transparent 70%);
}
/* the hero arch: drawn around the headline as the wow device */
.hero__arch {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1100px, 142vw); height: auto; z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--lantern) 30%, transparent));
}
.hero__arch-line, .hero__arch-spring, .hero__arch-key {
  fill: none; stroke-linecap: round;
}
.hero__arch-line { stroke-width: 3; opacity: .92; }
.hero__arch-spring { stroke-width: 1.5; opacity: .5; }
.hero__arch-key { stroke-width: 2.5; opacity: .7; }

/* draw-on animation */
.hero__arch-line {
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: drawArch 2.1s var(--ease) .25s forwards;
}
.hero__arch-spring, .hero__arch-key { opacity: 0; animation: fadeKey .8s ease 1.6s forwards; }
@keyframes drawArch { to { stroke-dashoffset: 0; } }
@keyframes fadeKey { to { opacity: .5; } }

.hero__inner { position: relative; max-width: 940px; margin-inline: auto; width: 100%; text-align: center; }
.hero__eyebrow {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(.7rem, 1.6vw, .82rem); letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone-light); margin-bottom: 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--paper);
  word-break: keep-all; overflow-wrap: normal; hyphens: none;
  text-shadow: 0 2px 40px color-mix(in srgb, var(--night) 60%, transparent);
}
.hero__line { display: block; text-wrap: balance; }
.hero__line--accent { color: var(--stone-light); }
.hero__sub {
  margin: 22px auto 0; max-width: 30ch;
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  line-height: 1.5;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(26px, 5vh, 40px);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--display); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.hero__scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero__scroll svg path { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* fade hero text up on load */
.hero__eyebrow, .hero__title .hero__line, .hero__sub, .hero__cta {
  opacity: 0; transform: translateY(18px);
  animation: riseIn .9s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: .15s; }
.hero__title .hero__line:nth-child(1) { animation-delay: .3s; }
.hero__title .hero__line:nth-child(2) { animation-delay: .42s; }
.hero__sub { animation-delay: .6s; }
.hero__cta { animation-delay: .72s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ============================== SECTION SHELL ============================== */
.story, .rooms, .place, .cta { padding: var(--sec-y) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__lede { margin-top: 18px; color: var(--ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.16rem); }

/* ---- STORY ---- */
.story__grid {
  display: grid; gap: var(--gap); margin-top: 30px;
  grid-template-columns: 1fr;
}
.story__copy p { margin-top: 18px; color: var(--ink-soft); max-width: 60ch; }
.story__copy .link-arch { margin-top: 28px; }
.story__photo { position: relative; }
.story__photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line-strong);
}
.story__photo figcaption {
  margin-top: 12px; font-size: .86rem; color: var(--ink-faint);
  font-style: italic; max-width: 46ch;
}

/* ============================== DIVIDER ARCH ============================== */
.divider { display: flex; justify-content: center; padding: 8px var(--pad) 0; }
.arch--divider { width: clamp(180px, 30vw, 260px); height: auto; opacity: .9; }
.arch--divider .arch__stone { stroke-width: 2; }

/* ============================== ROOMS ============================== */
.cards { display: grid; grid-template-columns: 1fr; gap: 4px; }
.card {
  position: relative;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.card + .card { border-top: 0; }
.card:hover { background: var(--paper-2); border-color: var(--line-strong); }
.card__num {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 50px; margin-bottom: 18px;
}
.card__num .arch--num { position: absolute; inset: 0; margin: auto; }
.card__num b {
  position: relative; font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; color: var(--green); transform: translateY(5px);
}
.card__num .arch__stone { stroke: var(--stone-deep); }
.card:hover .card__num .arch__stone { stroke: var(--lantern); }
.card__t { font-family: var(--display); font-weight: 700; font-size: 1.32rem; color: var(--green); letter-spacing: -.01em; }
.card__p { margin-top: 12px; color: var(--ink-soft); max-width: 52ch; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.card__meta li {
  font-size: .82rem; letter-spacing: .04em; color: var(--stone-deep);
  text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.card__meta li::before { content: ""; width: 6px; height: 6px; background: var(--stone); transform: rotate(45deg); }

.rooms__note {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1.04rem;
}
.rooms__note > span { max-width: 56ch; }

/* ============================== GARDEN (warm full-bleed) ============================== */
.garden {
  position: relative; isolation: isolate;
  padding: clamp(80px, 14vw, 170px) var(--pad);
  overflow: hidden;
  background: var(--night);
}
.garden__media { position: absolute; inset: 0; z-index: -2; }
.garden__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.garden__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 70%, transparent) 46%, color-mix(in srgb, var(--night) 30%, transparent) 100%),
    radial-gradient(80% 120% at 0% 50%, color-mix(in srgb, var(--night) 70%, transparent), transparent 60%);
}
.garden__inner { max-width: 56ch; position: relative; }
.garden__p { margin-top: 20px; color: color-mix(in srgb, var(--paper) 86%, transparent); font-size: clamp(1.04rem, 1.8vw, 1.22rem); }
.garden__list { margin-top: 30px; display: grid; gap: 12px; }
.garden__list li {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--paper); font-size: 1.02rem;
  padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--stone) 35%, transparent);
}
.garden__list li::before {
  content: ""; flex: none; width: 16px; height: 8px;
  border: 1.5px solid var(--lantern); border-bottom: 0; border-radius: 30px 30px 0 0;
  transform: translateY(-2px);
}

/* ============================== PLACE ============================== */
.place__grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: 30px; align-items: center; }
.place__photo img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border: 1px solid var(--line-strong);
}
.place__copy p { margin-top: 18px; color: var(--ink-soft); max-width: 56ch; }
.place__facts { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.place__facts li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.place__fact-k {
  font-family: var(--display); font-weight: 600; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--stone-deep);
}
.place__fact-v { color: var(--ink); text-align: right; font-weight: 500; }

/* ============================== BOOKING CTA ============================== */
.cta {
  position: relative; text-align: center; isolation: isolate;
  padding-top: clamp(90px, 13vw, 160px);
}
.cta__arch {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: min(760px, 118%); height: auto; z-index: -1; pointer-events: none;
}
.cta__arch-line { stroke-width: 2.5; opacity: .5; }
.cta__arch-spring { stroke-width: 1.4; opacity: .35; }
.cta__arch-key { stroke-width: 2; opacity: .4; }
.cta__inner { max-width: 60ch; margin-inline: auto; }
.cta .thresh { margin-inline: auto; }
.cta .thresh::after { left: 50%; transform: translateX(-50%); }
.cta__h { margin-top: 6px; }
.cta__p { margin: 22px auto 0; color: var(--ink-soft); font-size: clamp(1.04rem, 1.8vw, 1.2rem); max-width: 50ch; }
.cta__inner .btn--xl { margin-top: 34px; }
.cta__email { margin-top: 16px; font-size: 1rem; }
.cta__email a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--stone-deep); border-bottom: 1px solid var(--line-strong); padding: 0 2px 2px;
}
.cta__email a:hover { color: var(--green); border-color: var(--green); }

/* ============================== FOOTER ============================== */
.foot { background: var(--green); color: color-mix(in srgb, var(--paper) 86%, transparent); padding: clamp(56px, 8vw, 88px) var(--pad) 28px; }
.foot__top { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(36px, 6vw, 56px); }
.foot__mark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--paper); }
.foot__mark .arch__stone { stroke: var(--stone-light); }
.foot__mark .arch__spring, .foot__mark .arch__key { stroke: var(--stone-light); }
.foot__cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.foot__col h3 { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 12px; }
.foot__col p { color: color-mix(in srgb, var(--paper) 82%, transparent); line-height: 1.7; }
.foot__col a { color: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--stone-light) 45%, transparent); padding-bottom: 1px; }
.foot__col a:hover { border-color: var(--lantern); color: var(--lantern); }
.foot__rating { margin-top: 8px; }
.foot__rating span { color: var(--lantern); }
.lang--foot .lang__btn { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.lang--foot .lang__btn.is-active { color: var(--paper); }
.foot__base {
  max-width: var(--maxw); margin: clamp(40px, 6vw, 60px) auto 0; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--stone-light) 28%, transparent);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.foot__copy, .foot__sig { font-size: .82rem; color: color-mix(in srgb, var(--paper) 64%, transparent); }
.foot__sig { font-style: italic; letter-spacing: .01em; }

/* ============================== REVEAL ON SCROLL ============================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__photo { animation: none; transform: scale(1.04); }
  .hero__arch-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .hero__arch-spring, .hero__arch-key { opacity: .5; animation: none; }
  .hero__eyebrow, .hero__title .hero__line, .hero__sub, .hero__cta { opacity: 1; transform: none; animation: none; }
  .hero__scroll svg path { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================== RESPONSIVE ============================== */

/* small tablets */
@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 4px; }
  .card + .card { border-top: 1px solid var(--line); }
  .cards .card:nth-child(2) { border-left: 0; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

/* arrange rooms 2-up nicely */
@media (min-width: 600px) and (max-width: 959px) {
  .cards .card:nth-child(3) { grid-column: 1 / -1; border-top: 0; }
}

/* desktop */
@media (min-width: 960px) {
  /* 3-track nav: brand | links | actions — never overlapping */
  .nav__links { display: flex; margin-inline: 0; padding-inline: 0; }
  .nav__mark { margin-right: clamp(20px, 4vw, 56px); }
  .nav__right { margin-left: clamp(20px, 4vw, 56px); }
  .story__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .story__grid .story__photo { order: 2; }
  .place__grid { grid-template-columns: 0.95fr 1.05fr; }
  .place__grid .place__photo { order: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card { border-top: 1px solid var(--line); }
  .cards .card + .card { border-left: 0; }
}

/* large */
@media (min-width: 1200px) {
  .story__photo img { aspect-ratio: 5/6; }
}

/* phones (≤520) — keep the headline composed, never shattered */
@media (max-width: 520px) {
  /* size so each line of the headline holds without stranding a lone word */
  .hero__title { font-size: clamp(2.15rem, 10.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.0; }
  .hero__sub { max-width: 32ch; }
}

/* very narrow safety (≤400) — guarantee no overflow, no clipped type */
@media (max-width: 400px) {
  .hero__title { font-size: clamp(2.0rem, 10.2vw, 2.7rem); }
  .nav { gap: 8px; }
  .nav__mark { font-size: .94rem; }
  .btn { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .rooms__note { font-size: .98rem; }
}
