/* =========================================================================
   Harbor Ops — marketing site
   Brand: Deep Harbour #19363A · Harbor Teal #215B5D · Sage #A7B4B0 · Sand #D4BE97 · Cream #FDF9F2
   ========================================================================= */

:root {
  --cream: #FDF9F2;
  --paper: #F3EDE3;
  --deep: #19363A;
  --teal: #215B5D;
  --sage: #A7B4B0;
  --sand: #D4BE97;
  --ink: #13201F;

  --tone-2: #7D8B88;          /* second tone on light (3.4:1, large text) */
  --tone-0: #DADBD5;          /* not yet filled, light */
  --tone-2-dark: #6C8080;     /* second tone on deep (3.1:1, large text) */
  --tone-0-dark: #3C5558;     /* not yet filled, dark */
  --tone-2-small: #626D6A;    /* second tone, small text on light (4.6:1+) */
  --tone-2-small-dark: #8F9F9F; /* second tone, small text on deep (4.7:1) */
  --line: rgba(19, 32, 31, .14);
  --line-dark: rgba(253, 249, 242, .16);

  --sans: 'Urbanist', ui-sans-serif, sans-serif;   /* stand-in for Sharp Sans */
  --serif: 'Lora', Georgia, serif;

  --pad: clamp(20px, 5.2vw, 75px);
  --section: clamp(72px, 7.8vw, 112px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(212, 190, 151, .55); color: var(--ink); }   /* Sand */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 9fr); column-gap: clamp(24px, 4vw, 64px); }
.label { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; }

/* ---------- Two-tone text ---------- */
.t1 { color: var(--ink); }
.t2 { color: var(--tone-2); }
.dark .t1 { color: var(--cream); }
.dark .t2 { color: var(--tone-2-dark); }
.rooms__text .t2, .origin__text .t2, .features__intro .t2, .pricing__intro .t2, .why__text .t2 { color: var(--tone-2-small); }
.dark .services__close .t2, .dark .features__intro .t2 { color: var(--tone-2-small-dark); }
.split .ch { will-change: color; }
.split .wd { display: inline-block; white-space: nowrap; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 20px;
  border-radius: 999px;
  background: var(--deep); color: var(--cream);
  font: 500 13.5px/1 var(--sans); letter-spacing: .005em;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border: 1px solid transparent;
}
.pill svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.pill:not(.pill--light):not(.pill--line):not(.pill--line-dark) svg { color: var(--sand); }   /* a touch of the brand's Sand, like its gold-on-teal print */
.pill:hover { background: var(--teal); }
.pill:hover svg { transform: translateX(3px); }
.pill--light { background: var(--cream); color: var(--deep); }
.pill--light:hover { background: var(--sand); }
.pill--line { background: transparent; color: var(--cream); border-color: rgba(253, 249, 242, .4); }
.pill--line:hover { background: var(--cream); color: var(--deep); }
.pill--line-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.pill--line-dark:hover { background: var(--deep); color: var(--cream); border-color: var(--deep); }

/* ---------- Media slots ---------- */
.media { position: relative; overflow: hidden; background: #E9E3D8; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.dark .media { background: #234246; }

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad);
  transition: transform .5s var(--ease), color .4s var(--ease);
  color: var(--ink);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before {   /* frosted bar once the page is under the nav (never over the hero) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(253, 249, 242, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .45s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.nav.on-dark::before { background: rgba(25, 54, 58, .8); box-shadow: 0 1px 0 var(--line-dark); }
.nav__logo { display: block; line-height: 0; position: relative; }
.nav__logo::before { content: ""; position: absolute; inset: -10px -8px; }   /* a comfortable tap area around the small logo */
.nav__logo img { height: 28px; width: auto; transition: opacity .4s var(--ease); }
.nav__logo .on-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.nav__links { display: flex; gap: 30px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a, .nav__signin { font-size: 15px; font-weight: 500; position: relative; }
.nav__links a::after, .nav__signin::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__signin:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }   /* the section you're reading keeps its underline */
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__burger { display: none; }
.nav.on-dark { color: var(--cream); }
.nav.on-dark .nav__logo .on-light { opacity: 0; }
.nav.on-dark .nav__logo .on-dark { opacity: 1; }
.nav.on-dark .pill { background: var(--cream); color: var(--deep); }
.nav.on-dark .pill:not(.pill--light):not(.pill--line):not(.pill--line-dark) svg { color: currentColor; }   /* cream button: arrow matches its text */
.nav.on-dark .nav__links a[aria-current]::after { background: var(--sand); }   /* Sand rule on dark, as on the brand's print */
.nav .pill { font-size: 15px; }   /* matches Sign in beside it */

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--cream);
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1.25; }
.menu li { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu.is-open li { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) { transition-delay: .08s; }
.menu.is-open li:nth-child(2) { transition-delay: .14s; }
.menu.is-open li:nth-child(3) { transition-delay: .2s; }
.menu.is-open li:nth-child(4) { transition-delay: .26s; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; opacity: 0; transition: opacity .5s var(--ease); }
.menu.is-open .menu__foot { opacity: 1; transition-delay: .32s; }
.menu__signin { font-size: 18px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.menu-open { overflow: hidden; }   /* the page stays put behind the open menu */
.menu-open .nav::before { opacity: 0; }

/* Skip link: hidden until a keyboard user tabs to it */
.skip {
  position: fixed; left: var(--pad); top: 14px; z-index: 60;
  padding: 11px 18px; border-radius: 999px; background: var(--deep); color: var(--cream);
  font-size: 14px; font-weight: 500; transform: translateY(-180%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* =========================================================================
   Hero — Harbor Street: HARBOR draws itself on open sky, the painted
   townhouses rise into it and fill it, then the logo docks into the nav
   ========================================================================= */
.hero { position: relative; height: 320vh; background: var(--cream); }
@media (max-aspect-ratio: 9/10) { .hero { height: 250vh; } }   /* phones and portrait tablets: shorter journey */
.hero__stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden;
  --house-w: min(62vw, 980px); --house-y: 54vh;
}
.hero__sky {   /* the rendered morning sky; this gradient is only the stand-in until it loads */
  position: absolute; inset: -3%;
  background:
    radial-gradient(70% 60% at 14% 96%, rgba(232, 205, 160, .5), rgba(232, 205, 160, 0) 72%),
    radial-gradient(60% 50% at 88% 8%, rgba(167, 180, 176, .35), rgba(167, 180, 176, 0) 70%),
    linear-gradient(180deg, #DCE4DF 0%, #E9ECE5 34%, #F5F1E9 66%, var(--cream) 100%);
  will-change: transform;
}
.hero__plate { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity 1.4s var(--ease); }
.js .hero__plate:not(.is-in) { opacity: 0; }

/* Morning mist (rendered volumes): a bank behind the street, and banks over its side walls that part as it rises */
.hero__mist { position: absolute; left: -5%; right: -5%; bottom: -3%; height: 88%; z-index: 1; pointer-events: none; }
.hero__mist i { position: absolute; inset: 0; background: url(../assets/street/mist-back.webp?v=brand1) center bottom / 100% 100% no-repeat; will-change: transform, opacity; }
.hero__mist--back { animation: mist-drift 46s ease-in-out infinite alternate; }
.hero__mist--front { z-index: 2; animation: mist-drift 34s ease-in-out -12s infinite alternate-reverse; }
.hero__mist--front i {   /* only a light veil over the doors */
  background-image: url(../assets/street/mist-front.webp?v=brand1);
  -webkit-mask-image: radial-gradient(ellipse 20% 38% at 50% 100%, rgba(0, 0, 0, .3) 50%, #000 100%);
  mask-image: radial-gradient(ellipse 20% 38% at 50% 100%, rgba(0, 0, 0, .3) 50%, #000 100%);
}
.hero__mist--front i:first-child { clip-path: inset(0 50% 0 0); }
.hero__mist--front i:last-child { clip-path: inset(0 0 0 50%); }
@keyframes mist-drift { from { transform: translateX(-1.6%); } to { transform: translateX(1.6%); } }
@media (max-aspect-ratio: 9/10) {   /* phones: only the outer edges of the banks reach in, lighter, so the windows stay clear */
  .hero__mist { left: -26%; right: -26%; height: 58%; }
  .hero__mist--front { opacity: .9; }
}
.hero__sky::after {   /* a little film grain so it reads as light, not a flat fill */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(20px, 6vh, 80px));
  text-align: center; padding: 0 var(--pad); z-index: 3;
  will-change: transform, opacity, filter;
}
.hero__title {
  margin: 0 auto;
  font-size: clamp(44px, min(6.1vw, 9.6vh), 92px); font-weight: 600; line-height: 1; letter-spacing: -.04em;   /* smaller on short laptop screens */
  color: var(--deep);   /* brand Deep Harbour */
}
.hero__title .line { display: block; }
.hero__title .line + .line { color: var(--teal); }
.hero__sub {
  margin: clamp(14px, 2vh, 22px) auto clamp(18px, 2.6vh, 28px); max-width: 62ch;
  font-size: clamp(18px, min(1.7vw, 2.9vh), 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
}
.hero__sub .t2 { color: #59645F; }   /* 4.9:1+ on the sage sky, also at phone size */
.hero__copy .pill { height: 54px; padding: 0 24px 0 28px; gap: 12px; font-size: 16.5px; }   /* the page's main action: sized to the subline, not the nav */
.hero__copy .pill svg { width: 15px; height: 15px; }

/* The script brings the copy and the street in; if it never runs, they appear anyway */
.js:not(.reduce) .hero__copy, .js:not(.reduce) .hero__house, .js:not(.reduce) .hero__mist i { opacity: 0; animation: hero-fallback .6s 2.5s forwards; }
@keyframes hero-fallback { to { opacity: 1; } }

.hero__house, .hero__fill {
  position: absolute; left: 50%; top: 0;
  width: var(--house-w);
  transform: translate(calc(-50% + var(--house-x, 0px)), var(--house-y)) scale(var(--house-s, 1));
  transform-origin: 50% 0;
  will-change: transform;
}
.hero__house {   /* on short screens the risen street fades out under the nav (--fade is set in the house's own space) */
  z-index: 2;
  -webkit-mask-image: linear-gradient(180deg, transparent calc(var(--fade, -999px) - 20px), #000 var(--fade, -999px));
  mask-image: linear-gradient(180deg, transparent calc(var(--fade, -999px) - 20px), #000 var(--fade, -999px));
}
.hero__house img, .hero__fill img { width: 100%; height: auto; }
.hero__house img {   /* the street dissolves into the page */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
}

.hero__logo { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__fillwrap {
  position: absolute; inset: 0;
  -webkit-mask-image: url(../assets/brand/harbor-logo-teal.svg); mask-image: url(../assets/brand/harbor-logo-teal.svg);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--logo-w, 60vw) auto; mask-size: var(--logo-w, 60vw) auto;
  -webkit-mask-position: 50% var(--logo-y, 42vh); mask-position: 50% var(--logo-y, 42vh);
  opacity: 0;
}
.hero__fill { z-index: 1; }
.hero__solid { position: absolute; inset: 0; z-index: 2; background: var(--teal); opacity: 0; }
.hero__outline {
  position: absolute; left: 50%; top: var(--logo-top, 42vh);
  width: var(--logo-w, 60vw); transform: translateX(-50%);
  overflow: visible;
}
.hero__outline path { fill: none; stroke: var(--teal); stroke-width: var(--ow, .5); stroke-linejoin: round; }   /* --ow keeps the line ~1.5px at any logo size */

.hero__veil { position: absolute; inset: 0; z-index: 3; background: var(--cream); opacity: 0; pointer-events: none; }   /* under the logo */

.hero__cue {   /* in the left gutter, on open sky, clear of the houses */
  position: absolute; left: var(--pad); bottom: 28px; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
@media (max-aspect-ratio: 9/10) { .hero__cue { display: none; } }   /* the street fills a portrait screen; touch users scroll anyway */
.hero__cue i { position: relative; display: block; width: 1px; height: 30px; background: rgba(19, 32, 31, .2); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-100%); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================================
   Why Harbor
   ========================================================================= */
.why { position: relative; z-index: 1; background: var(--cream); padding: var(--section) 0 0; }
/* With motion, Why Harbor slides up over the end of the hero (clear on top) while the logo docks into the nav */
.js:not(.reduce) .why { --overlap: 60vh; margin-top: calc(var(--overlap) * -1); background: linear-gradient(180deg, transparent var(--overlap), var(--cream) var(--overlap)); }
@media (max-aspect-ratio: 9/10) { .js:not(.reduce) .why { --overlap: 40vh; } }
.why__text { font-size: clamp(26px, 2.95vw, 42px); line-height: 1.15; letter-spacing: -.03em; margin: 0; max-width: 18em; }
.why__pin { position: relative; height: 300vh; margin-top: clamp(40px, 6vw, 88px); }
.why__frame {
  position: sticky; top: calc(var(--nav-h) + 10px);
  height: min(72vh, 46vw); margin: 0 var(--pad);
  clip-path: inset(0 10% 0 10% round 2px);
  overflow: hidden; background: #E9E3D8;
}
.why__item { position: absolute; inset: 0; opacity: 0; }
.why__item:first-child { opacity: 1; }
.why__item img, .why__item video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--why-zoom, 1.06)); }
.why__caption {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  font-size: 13px; font-weight: 600; color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* =========================================================================
   Room by room (shaped images)
   ========================================================================= */
.rooms { background: var(--cream); padding: var(--section) 0; text-align: center; }
.rooms__title { margin: 0 auto; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.04; letter-spacing: -.04em; max-width: 24em; }
.rooms__row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 1.4vw, 20px);
  margin: clamp(36px, 4.5vw, 64px) auto clamp(28px, 3.4vw, 48px);
}
.room {
  width: clamp(120px, 15.5vw, 230px); aspect-ratio: 3 / 4.1;
  clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%);   /* gabled room: from the Harbor emblem */
  overflow: hidden;
}
.room:nth-child(2) { aspect-ratio: 3 / 4.5; }
.room:nth-child(3) { aspect-ratio: 3 / 3.8; }
.room:nth-child(4) { aspect-ratio: 3 / 4.3; }
.room img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.rooms__text { margin: 0 auto; max-width: 31em; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -.01em; }

/* =========================================================================
   One system (steps)
   ========================================================================= */
.system { background: var(--cream); padding: var(--section) 0; }
.system__head { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.system__title { margin: 0 0 28px; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.02; letter-spacing: -.04em; max-width: 9em; }
.steps__label { margin: 0 0 18px; font-size: 15px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-size: 11px; font-weight: 600; color: var(--tone-2); padding-top: 12px; }
.step p { margin: 0; font-size: clamp(22px, 2.3vw, 33px); line-height: 1.15; letter-spacing: -.03em; }

/* =========================================================================
   Our story (origin)
   ========================================================================= */
.origin { background: var(--cream); padding: var(--section) 0; overflow: hidden; }
.origin__title { margin: 0 0 clamp(28px, 3vw, 44px); font-size: clamp(34px, 3.75vw, 54px); line-height: 1.1; letter-spacing: -.04em; }
.origin__big { aspect-ratio: 16 / 10.2; clip-path: inset(0 0 0 var(--o-inset, 12%)); }
.origin__big img { transform: scale(var(--o-zoom, 1.12)); }
.origin__left { position: relative; }
.origin__small { position: absolute; left: 0; width: clamp(140px, 16vw, 236px); aspect-ratio: 3 / 4; top: clamp(160px, 22vw, 330px); will-change: transform; }
.origin__text { margin: clamp(28px, 3vw, 44px) 0 26px; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -.005em; max-width: 30em; }

/* =========================================================================
   In their words (quotes)
   ========================================================================= */
.quotes { background: var(--paper); padding: var(--section) 0; }
.quotes__title { margin: 0 0 clamp(32px, 3.4vw, 50px); font-size: clamp(34px, 3.75vw, 54px); line-height: 1; letter-spacing: -.04em; }
.quotes__img { aspect-ratio: 3 / 2.1; }
.quotes__img img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease), transform 1.6s var(--ease); transform: scale(1.04); }
.quotes__img img.is-on { opacity: 1; transform: scale(1); }
.quotes__panel { border-top: 1px solid rgba(19, 32, 31, .35); padding-top: 22px; display: flex; flex-direction: column; }
.quotes__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dots { display: flex; gap: 8px; }
.dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(19, 32, 31, .35); background: none;
  font-size: 10px; font-weight: 600; color: var(--tone-2); cursor: pointer; padding: 0;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.dot { position: relative; }
.dot::before { content: ""; position: absolute; inset: -11px -4px; }   /* a finger-sized hit area */
.dot.is-on { border-color: var(--ink); color: var(--ink); }
.dot:hover { border-color: var(--ink); }
.quotes__mark { font-family: var(--serif); font-size: 64px; line-height: .6; height: 28px; color: var(--ink); }
.quote { display: none; margin: 0; }
.quote.is-on { display: block; animation: quoteIn .8s var(--ease); }
@keyframes quoteIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; color: var(--ink); max-width: 30em; }
.quote figcaption { margin-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.quote figcaption span { color: var(--tone-2); margin-left: 10px; }

/* =========================================================================
   Services (deep)
   ========================================================================= */
.dark { background: var(--deep); color: var(--cream); }
.services { padding: var(--section) 0 clamp(60px, 6vw, 96px); }
.services__title { margin: 0; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.svc { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; }
.svc__row { border-top: 1px solid var(--line-dark); padding: clamp(18px, 2vw, 28px) 0; align-items: center; }
.svc__row:last-child { border-bottom: 1px solid var(--line-dark); }
.svc__info { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; max-width: 360px; }
.svc__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(253, 249, 242, .45); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.svc__info p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(253, 249, 242, .86); }
.svc__word {
  margin: 0; font-size: clamp(52px, 8.2vw, 128px); font-weight: 500; line-height: .95; letter-spacing: -.045em;
  color: var(--cream); overflow: hidden;
}
.svc__word span { display: inline-block; will-change: transform; }
.services__close { margin-top: clamp(48px, 6vw, 96px); }
.services__close p { margin: 0 0 22px; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; letter-spacing: -.015em; max-width: 21em; }

/* =========================================================================
   Features (deep, cards)
   ========================================================================= */
.features { padding: clamp(40px, 5vw, 80px) 0 var(--section); }
.features__title { margin: 0; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.02; letter-spacing: -.04em; max-width: 7em; }
.features__intro p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; max-width: 34em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); margin-top: clamp(40px, 4vw, 60px); }
.card { position: relative; aspect-ratio: 4 / 4.6; color: var(--cream); }
.card img { object-position: 50% var(--focus-y, 0%); transition: transform 1.2s var(--ease); transform: scale(1.02); }   /* top-aligned: faces sit below the card text; an image can set its own --focus-y */
.card:hover img { transform: scale(1.07); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 30, 32, 0) 60%, rgba(13, 30, 32, .62) 100%); pointer-events: none; }   /* grounds the pill */
.card__text { position: absolute; left: 20px; right: 20px; top: 18px; z-index: 1; display: flex; flex-direction: column; gap: 12px; }   /* title and text stack, however long the title */
.card__text::before { content: ""; position: absolute; z-index: -1; left: -20px; right: -20px; top: -18px; bottom: -84px; background: linear-gradient(180deg, rgba(13, 30, 32, .84), rgba(13, 30, 32, .72) calc(100% - 84px), rgba(13, 30, 32, 0)); pointer-events: none; }   /* shade sized to the text: every line stays 4.5:1+ over bright photos at any card width */
.card h3 { margin: 0; font-size: clamp(20px, 1.75vw, 26px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.45; max-width: 24em; opacity: .92; }
.card .pill { position: absolute; left: 20px; bottom: 20px; z-index: 1; height: 34px; font-size: 12.5px; }
.card .pill--line { background: rgba(13, 30, 32, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }   /* frosted, so it reads on white bedding or paper */
.card .pill--line:hover { background: var(--cream); }

/* =========================================================================
   Pricing (paper)
   ========================================================================= */
.pricing { background: var(--paper); padding: var(--section) 0; }
.pricing__title { margin: 0; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.pricing__intro p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; max-width: 36em; }
.plans { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; }
.plan { border-top: 1px solid var(--line); padding: 22px 0 30px; align-items: start; }
.plan:last-child { border-bottom: 1px solid var(--line); }
.plan__tag { margin: 0 0 clamp(36px, 5vw, 76px); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.plan h3 { margin: 0 0 12px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.plan p { margin: 0 0 22px; font-size: 13.5px; line-height: 1.5; max-width: 32em; }
.plan__img { aspect-ratio: 16 / 7.4; }
.plan__img img { opacity: .35; filter: grayscale(.4); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }
.plan.is-in .plan__img img { opacity: 1; filter: none; }

/* =========================================================================
   Closing call to action + footer curtain
   ========================================================================= */
.curtain { position: relative; }
.outro { position: sticky; top: 0; z-index: 0; }
.outro__stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; color: var(--cream); display: grid; place-items: center; text-align: center; }
.outro__stage video, .outro__stage img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.outro__stage::after { content: ""; position: absolute; inset: 0; background: rgba(19, 32, 31, .5); }
.outro__copy { position: relative; z-index: 1; padding: 0 var(--pad); }
.outro__title { margin: 0 0 24px; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; }
.outro__title .t1 { color: var(--cream); }
.outro__title .t2 { color: rgba(253, 249, 242, .55); }

.footer { position: relative; z-index: 2; background: var(--deep); color: var(--cream); padding: clamp(56px, 6vw, 90px) 0 26px; }
.footer__top { align-items: start; }
.footer__lead { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.footer__note { margin: 14px 0 0; font-size: 13px; color: rgba(253, 249, 242, .72); }
.contact { display: flex; gap: clamp(24px, 4vw, 64px); margin-top: 44px; }
.contact div { font-size: 13px; }
.contact dt { font-size: 10.5px; font-weight: 600; color: rgba(253, 249, 242, .55); margin-bottom: 6px; }
.contact dd { margin: 0; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.footer__links ul { list-style: none; margin: 0; padding: 0; }
.footer__links li a { display: inline-block; font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; line-height: 1.5; letter-spacing: -.015em; }
.footer__links li a:hover { color: var(--sand); }
.footer__mark { margin: clamp(56px, 7vw, 110px) 0 18px; line-height: 0; }
.footer__mark img { width: min(100%, 1180px); height: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 11px; color: rgba(253, 249, 242, .6); border-top: 1px solid var(--line-dark); padding-top: 18px; }
.footer__legal span:last-child { margin-left: auto; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { gap: 14px; }
  .nav__links, .nav__signin { display: none; }
  .nav__right { margin-left: auto; gap: 10px; }
  .nav__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid currentColor; border-radius: 999px; background: none; cursor: pointer; opacity: .8; }
  .pill { height: 44px; }   /* 44px touch targets */
  .nav__burger span { height: 1px; background: currentColor; transition: transform .35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }   /* becomes a close (×) */
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__logo img { height: 22px; }
  .grid { grid-template-columns: 1fr; row-gap: 22px; }
  .why__frame { height: calc(100svh - var(--nav-h) - 26px); margin: 0 var(--pad); }   /* fills the screen while pinned */
  .system__head { position: static; }
  .origin__small { position: relative; top: 0; margin-bottom: 20px; }
  .rooms__row { gap: 6px; }
  .room { width: 22vw; }
  .svc__row { row-gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3.6; }
  .plan__tag { margin-bottom: 18px; }
  .footer__links { margin-top: 44px; }
  .footer__legal span:last-child { margin-left: 0; }
  /* phones: small labels big enough to read, links big enough to tap */
  .step__n { font-size: 12.5px; }
  .quote figcaption { font-size: 12.5px; letter-spacing: .06em; }
  .svc__n { width: 28px; height: 28px; font-size: 12px; }
  .contact dt { font-size: 12px; }
  .dots { gap: 10px; }
  .dot { width: 30px; height: 30px; font-size: 12px; }
  .dot::before { inset: -7px -5px; }
  .footer__legal { font-size: 13px; row-gap: 0; }
  .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal span:last-child { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .nav .pill { display: none; }
  .hero__title { font-size: clamp(40px, 11.5vw, 56px); }
  .contact { flex-direction: column; gap: 18px; }
}

/* ---------- Reduced motion: final states, no scrubbing ---------- */
.reduce .nav { background: rgba(253, 249, 242, .94); box-shadow: 0 1px 0 var(--line); }
.reduce .nav.on-dark { background: rgba(25, 54, 58, .94); box-shadow: 0 1px 0 var(--line-dark); }
.reduce .nav::before { display: none; }
.reduce .menu li { transform: none; }
.reduce .hero { height: auto; }
.reduce .hero__stage { position: relative; height: 92svh; }
.reduce .hero__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20vh; z-index: 3; background: linear-gradient(180deg, rgba(253, 249, 242, 0), var(--cream)); }
.reduce .hero__cue, .reduce .hero__logo, .reduce .hero__veil { display: none; }
.reduce .hero__mist { animation: none; }
@media (max-aspect-ratio: 9/10) { .reduce .hero__stage { --house-w: 165vw; --house-y: 52svh; } }
.reduce .why__pin { height: auto; }
.reduce .why__frame { position: relative; top: 0; clip-path: none; }
.reduce .why__item { position: relative; opacity: 1 !important; height: min(72vh, 46vw); }
.reduce .why__item + .why__item { margin-top: 12px; }
.reduce .plan__img img { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__cue i::after { animation: none; }
}
