/* =========================================================
   HOME TECH Development Ltd — Homepage
   Concept: Modern Royalty Meets Classical Architecture
   ========================================================= */

:root {
  /* Palette (from logo) */
  --marble: #FAF6EF;
  --parchment: #F3E9DA;
  --travertine: #A78C6A;
  --bronze: #77644D;
  --umber: #6C5344;
  --obsidian: #221F1F;
  --obsidian-2: #2B2724;
  --slate: #58595B;
  --ember: #F26E21;
  --ember-deep: #C2551A;
  --line: rgba(34, 31, 31, .14);
  --line-light: rgba(243, 233, 218, .18);

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-caps: "Cinzel", "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 88px;

  /* Arch-on-plinth mask pieces (cap and plinth keep their proportions; the shaft stretches) */
  --arch-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='98 59.5 942 398.5' width='942' height='398.5'%3E%3Cpath d='M140.5 458L140.5 457L162.5 457A406.5 397.5 0 0 1 975.5 457L997.5 457L997.5 458Z' fill='%23000'/%3E%3C/svg%3E");
  --arch-plinth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='98 1049 942 69.5' width='942' height='69.5'%3E%3Cpath d='M140.5 1049L997.5 1049L997.5 1050L1018.5 1050L1018.5 1073L1040 1073L1040 1118.5L98 1118.5L98 1073L119.5 1073L119.5 1050L140.5 1050Z' fill='%23000'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--marble);
  color: var(--obsidian);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
em { font-style: italic; }
::selection { background: var(--obsidian); color: var(--parchment); }
:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  font: 500 12px/1 var(--f-caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.eyebrow--light { color: rgba(243, 233, 218, .7); }
.eyebrow--center { justify-content: center; }

.h2 {
  font: 400 clamp(40px, 5.6vw, 84px)/1.02 var(--f-display);
  letter-spacing: -.015em;
  color: var(--obsidian);
}
.h2 em { color: var(--umber); font-weight: 300; }
.h2--light { color: var(--parchment); }
.h2--light em { color: var(--travertine); }

.lede { font: 300 clamp(17px, 1.3vw, 19px)/1.7 var(--f-body); color: var(--slate); max-width: 52ch; }
.lede--light { color: rgba(243, 233, 218, .78); }

.section-head { margin-bottom: clamp(56px, 7vw, 104px); }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.section-head--center { text-align: center; }
.section-head--center .h2 { max-width: 16ch; margin: 0 auto; }

/* Links */
.link-u { position: relative; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--obsidian); padding-bottom: 8px; border-bottom: 1px solid var(--line);
  transition: border-color .4s, gap .4s var(--ease-out);
}
.link-arrow i { font-style: normal; color: var(--ember-deep); transition: transform .4s var(--ease-out); }
.link-arrow:hover { border-color: var(--obsidian); gap: 18px; }
.link-arrow--light { color: var(--parchment); border-color: var(--line-light); }
.link-arrow--light i { color: var(--ember); }
.link-arrow--light:hover { border-color: var(--parchment); }

/* Buttons */
.btn {
  --bg: var(--obsidian); --fg: var(--parchment); --bd: var(--obsidian); --fill: var(--obsidian-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px;
  font: 500 12.5px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd);
  overflow: hidden; cursor: pointer; isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; }
.btn--sm { height: 44px; padding: 0 22px; font-size: 11.5px; }
.btn--dark { --bg: var(--obsidian); --fg: var(--parchment); --bd: var(--obsidian); --fill: #3a2f28; }
.btn--light { --bg: var(--parchment); --fg: var(--obsidian); --bd: var(--parchment); --fill: var(--marble); }
.btn--ghost-light { --bg: transparent; --fg: var(--parchment); --bd: rgba(243,233,218,.4); --fill: var(--parchment); }
.btn--ghost-light:hover { --fg: var(--obsidian); color: var(--obsidian); border-color: var(--parchment); }
.btn--line { --bg: transparent; --fg: currentColor; --bd: currentColor; --fill: var(--ember); }
.btn--line:hover { color: var(--obsidian); border-color: var(--ember); }

/* Arch mask */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,3%); } 80% { transform: translate(3%,-1%); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: transparent; mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s, opacity .3s;
  opacity: 0;
}
.cursor__label { font: 500 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--obsidian); opacity: 0; transition: opacity .3s; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--parchment); border-radius: 50%; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--obsidian);
  display: grid; place-items: center; color: var(--travertine);
}
.preloader__inner { text-align: center; }
.preloader__art { width: 115px; margin: 0 auto 28px; }
.preloader__art img { display: block; width: 100%; height: auto; clip-path: inset(100% 0 0 0); }
.preloader__word { font: 400 15px/1 var(--f-caps); letter-spacing: .5em; text-transform: uppercase; color: var(--parchment); padding-left: .5em; opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--parchment);
  transition: transform .6s var(--ease-out), background-color .5s, color .5s, height .5s var(--ease-out), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { --header-h: 72px; }
.header.is-hidden { transform: translateY(-100%); }
.header[data-theme="dark"].is-scrolled { background: rgba(34,31,31,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-light); }
.header[data-theme="light"] { color: var(--obsidian); }
.header[data-theme="light"].is-scrolled { background: rgba(250,246,239,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }

.header__logo { position: relative; display: block; width: clamp(150px, 13vw, 190px); flex-shrink: 0; }
.header__logo img { width: 100%; height: auto; transition: opacity .4s; }
.header__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.header[data-theme="light"] .logo-light { opacity: 0; }
.header[data-theme="light"] .logo-dark { opacity: 1; }

.header__nav { display: flex; gap: clamp(20px, 2.4vw, 40px); font: 400 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1 var(--f-body); letter-spacing: .06em; opacity: .9; }
.header__phone svg, .mobile-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; left: 18px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; left: 10px; transform: rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--obsidian); color: var(--parchment);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-out); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--parchment); background: transparent !important; border-color: transparent; backdrop-filter: none; }
.menu-open .header .logo-light { opacity: 1; } .menu-open .header .logo-dark { opacity: 0; }
.menu__media { height: 100%; overflow: hidden; opacity: .55; }
.menu__media img { width: 100%; height: 100%; object-fit: cover; }
.menu__nav { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font: 400 clamp(36px, 5vw, 64px)/1.15 var(--f-display); display: flex; align-items: baseline; gap: 20px; transition: color .3s, padding .5s var(--ease-out); }
.menu__nav a span { font: 400 12px/1 var(--f-caps); letter-spacing: .2em; color: var(--ember); width: 28px; }
.menu__nav a:hover { color: var(--travertine); padding-left: 12px; }
.menu__foot { position: absolute; left: 50%; bottom: 40px; padding: 0 var(--gutter); display: flex; gap: 32px; font-size: 14px; color: var(--travertine); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  color: var(--parchment); overflow: hidden; background: #040507;
}
/* Night sky behind everything */
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 8%, rgba(167, 140, 106, .14), rgba(167, 140, 106, 0) 70%),
    linear-gradient(180deg, #0c0f15 0%, #07090d 45%, #030405 100%);
}
/* Headline sits behind the building */
.hero__mark { position: absolute; left: 0; right: 0; top: clamp(112px, 16vh, 168px); z-index: 1; margin: 0 auto; }
/* Building cut-out: starts with its roofline near mid-screen, rises on scroll */
.hero__building {
  position: absolute; z-index: 2; left: 50%;
  width: max(101vw, 104vh); margin-left: calc(max(101vw, 104vh) / -2);
  aspect-ratio: 2000 / 1582;
  bottom: calc(45% - max(79.9vw, 82.3vh));
  will-change: transform;
}
.hero__building img { width: 100%; height: 100%; display: block; transform-origin: 50% 100%; }
.hero__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 0% 100%, rgba(4,5,7,.72), rgba(4,5,7,0) 72%), linear-gradient(0deg, rgba(4,5,7,.88) 0%, rgba(4,5,7,.45) 45%, rgba(4,5,7,0) 100%); }
.hero__front { position: absolute; left: 0; right: 0; bottom: clamp(110px, 14vh, 150px); z-index: 4; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero__title {
  font: 300 clamp(58px, 10.4vw, 176px)/.92 var(--f-display);
  letter-spacing: -.025em;
  margin-left: -.04em;
}
.hero__title em { font-weight: 300; color: var(--travertine); }
.line { display: block; overflow: hidden; padding-bottom: .26em; margin-bottom: -.2em; }
.line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: clamp(40px, 9vw, 160px); }
.hero__lede { max-width: 44ch; font: 300 clamp(16px, 1.25vw, 19px)/1.65 var(--f-body); color: rgba(243,233,218,.82); }
.hero__ctas { display: flex; gap: 14px; flex-shrink: 0; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; padding-bottom: 26px;
  margin: 0 auto;
}
.hero__foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line-light); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font: 400 11px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: rgba(243,233,218,.7); }
.scroll-cue__line { width: 1px; height: 34px; background: rgba(243,233,218,.25); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ember); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__teaser { display: flex; align-items: center; gap: 16px; font: 400 18px/1.2 var(--f-display); color: var(--parchment); }
.hero__teaser small { display: block; font: 400 10.5px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--travertine); margin-bottom: 6px; }
.hero__teaser i { font-style: normal; color: var(--ember); display: inline-block; transition: transform .4s var(--ease-out); }
.hero__teaser:hover i { transform: translateX(6px); }
.hero__teaser-img { width: 56px; height: 56px; overflow: hidden; border-radius: 999px 999px 0 0; }
.hero__teaser-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Manifesto ---------- */
.manifesto { overflow: hidden; }
.manifesto__ornament {
  position: absolute; right: -40px; top: 50%; width: clamp(220px, 24vw, 380px);
  transform: translateY(-50%); color: var(--travertine); opacity: .35; pointer-events: none;
}
.manifesto__ornament svg { width: 100%; height: auto; }
.manifesto__grid { display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; position: relative; }
.manifesto__grid .eyebrow { grid-column: 1; align-self: start; padding-top: 18px; }
.manifesto__text {
  grid-column: 2; max-width: 22ch;
  font: 300 clamp(34px, 4.4vw, 68px)/1.12 var(--f-display);
  letter-spacing: -.012em; color: var(--obsidian);
}
.manifesto__text .w { opacity: .14; transition: opacity .2s; }
.manifesto__aside { grid-column: 2; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 46ch) auto; gap: 48px; align-items: end; }
.manifesto__aside p { color: var(--slate); font-weight: 300; font-size: 17px; }

/* ---------- Orders ---------- */
.orders { background: var(--parchment); padding-bottom: calc(var(--section) * .6); }
.orders__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); }
.orders__stage { position: sticky; top: calc(50vh - 280px); height: 560px; display: flex; flex-direction: column; align-items: center; }
.orders__frame { position: relative; width: min(100%, 300px); height: 520px; color: var(--umber); }
.orders__art { position: absolute; inset: 0 0 20px 0; display: grid; place-items: end center; }
.orders__art svg { height: 100%; width: auto; max-width: 100%; }
.orders__art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.orders__art.is-active path { stroke-dashoffset: 0; }
.orders__plinth { position: absolute; left: -30%; right: -30%; bottom: 14px; height: 1px; background: var(--travertine); }
.orders__counter { margin-top: 18px; font: 400 13px/1 var(--f-caps); letter-spacing: .2em; color: var(--bronze); }
.orders__current { color: var(--ember-deep); }

.orders__list { padding: 6vh 0 10vh; }
.order { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 64px 0; opacity: .28; transition: opacity .6s; }
.order.is-active { opacity: 1; }
.order__art { display: none; }
.order__name { font: 500 13px/1 var(--f-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--ember-deep); margin-bottom: 16px; }
.order__virtue { font: 300 clamp(56px, 7vw, 112px)/1 var(--f-display); letter-spacing: -.02em; margin-bottom: 28px; }
.order__body { font-weight: 300; font-size: 18px; line-height: 1.75; color: var(--slate); max-width: 46ch; }
.order__facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.order__facts li { font-size: 13px; letter-spacing: .04em; padding: 9px 16px; border: 1px solid rgba(119,100,77,.35); border-radius: 999px; color: var(--umber); }

/* ---------- Residences ---------- */
.residences { background: var(--obsidian); color: var(--parchment); position: relative; overflow: hidden; }
.residences__pin { height: 100vh; min-height: 680px; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 24px; }
.residences__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(32px, 3.5vw, 56px); }
.residences__head .h2 { max-width: none; }
.residences__nav { display: flex; align-items: center; gap: 32px; }
.residences__track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--gutter); width: max-content; }

.res-card { position: relative; width: clamp(300px, 30vw, 460px); flex-shrink: 0; container-type: inline-size; }
.plinth-arch { -webkit-mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; }
.res-card__link { position: absolute; inset: 0; z-index: 3; }
.res-card__media { height: clamp(260px, 40vh, 500px); overflow: hidden; position: relative; -webkit-mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; }
.res-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.res-card:hover .res-card__media img { transform: scale(1); }
.res-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,31,31,.35), transparent 40%); }
.res-card__meta { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 12px; }
.res-card__index { font: 400 12px/1 var(--f-caps); letter-spacing: .2em; color: var(--travertine); }
.badge { font: 500 10.5px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-light); color: var(--parchment); }
.badge--live { border-color: rgba(242,110,33,.6); }
.badge--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin-right: 8px; vertical-align: 1px; }
.res-card__title { font: 400 clamp(32px, 2.8vw, 44px)/1.05 var(--f-display); }
.res-card__loc { margin-top: 6px; font-size: 14px; letter-spacing: .06em; color: var(--travertine); }
.res-card__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.res-card__facts dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,233,218,.5); margin-bottom: 6px; }
.res-card__facts dd { font-size: 14.5px; }
.res-card__price { margin-top: 18px; font: italic 400 18px/1 var(--f-display); color: var(--parchment); opacity: .8; }

.res-card--more { display: flex; flex-direction: column; justify-content: flex-end; height: clamp(260px, 40vh, 500px); align-self: flex-start; width: clamp(260px, 24vw, 360px); padding: 40px 40px 56px; color: var(--parchment); position: relative; isolation: isolate; }
.res-card--more::before, .res-card--more::after { content: ""; position: absolute; z-index: -1; -webkit-mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; mask: var(--arch-cap) center top / 100% auto no-repeat, linear-gradient(#000, #000) center 41.90cqw / calc(100% - 9.02cqw) calc(100% - 48.88cqw) no-repeat, var(--arch-plinth) center bottom / 100% auto no-repeat; transition: background .6s var(--ease-out); }
.res-card--more::before { inset: 0; background: var(--line-light); }
.res-card--more::after { inset: 1px; background: var(--obsidian); }
.res-card--more:hover::before { background: var(--travertine); }
.res-card--more:hover::after { background: var(--obsidian-2); }
.res-card--more__art { position: absolute; top: 18%; left: 50%; width: 34%; transform: translateX(-50%); color: var(--travertine); opacity: .6; }
.res-card--more__art svg { width: 100%; height: auto; }
.res-card--more__text { font: 300 40px/1.05 var(--f-display); }
.res-card--more__text em { color: var(--travertine); }
.res-card--more__arrow { margin-top: 18px; font-size: 22px; color: var(--ember); transition: transform .5s var(--ease-out); }
.res-card--more:hover .res-card--more__arrow { transform: translateX(10px); }

/* ---------- Smart: interactive home hub ---------- */
.hub { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: stretch; }
.hub__stage { position: relative; overflow: hidden; min-height: clamp(520px, 62vh, 680px); background: var(--obsidian); }
.hub__scene { position: absolute; inset: 0; }
.hub__scene img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  filter: brightness(var(--bright, .95)) saturate(var(--sat, 1));
  transition: filter 1.2s var(--ease);
}
.hub__tint { position: absolute; inset: 0; background: var(--tint, rgba(242, 140, 60, .16)); mix-blend-mode: multiply; transition: background-color 1.2s var(--ease), background 1.2s var(--ease); }
.hub__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(20,18,18,0) 40%, rgba(20,18,18,.55) 100%); opacity: var(--vig, .5); transition: opacity 1s var(--ease); }
.hub.is-flicker .hub__scene img { animation: hubFlicker 1.1s steps(1) 1; }
@keyframes hubFlicker { 0% { filter: brightness(.15); } 18% { filter: brightness(.6); } 30% { filter: brightness(.12); } 55%, 100% { filter: brightness(var(--bright, .95)); } }

.hub__status {
  position: absolute; left: 22px; top: 22px; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(34,31,31,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--parchment); font: 400 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
}
.hub__clock { color: var(--travertine); letter-spacing: .1em; }
.hub__live { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 0 rgba(127,209,139,.6); animation: hubPulse 2s infinite; }
@keyframes hubPulse { 70% { box-shadow: 0 0 0 8px rgba(127,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(127,209,139,0); } }

.hub__panel {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; width: min(380px, calc(100% - 44px));
  padding: 26px 28px 28px; background: rgba(250,246,239,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -28px rgba(20,18,18,.6);
}
.ctl { animation: ctlIn .5s var(--ease-out); }
@keyframes ctlIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ctl__label { font: 500 10.5px/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: 18px; }
.ctl__read { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 14px; color: var(--obsidian); }
.ctl__big { font: 300 54px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ctl__unit { font: 400 15px/1 var(--f-body); color: var(--slate); }
.ctl__sep { margin: 0 10px; color: var(--travertine); }
.ctl__read > [data-dim-out] { font: 300 30px/1 var(--f-display); }
.ctl__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 300; color: var(--slate); line-height: 1.5; }
.ctl__note b { font-weight: 500; color: var(--obsidian); }
.ctl__link { margin-top: 18px; padding: 0 0 4px; background: none; border: 0; border-bottom: 1px solid var(--obsidian); font: 500 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--obsidian); cursor: pointer; }
.ctl__link i { font-style: normal; color: var(--ember-deep); margin-left: 6px; }

.seg { display: flex; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 11px 8px; background: none; border: 0; border-right: 1px solid var(--line); font: 400 12.5px/1 var(--f-body); letter-spacing: .04em; color: var(--slate); cursor: pointer; transition: background .3s, color .3s; }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--obsidian); background: rgba(34,31,31,.04); }
.seg button.is-on { background: var(--obsidian); color: var(--parchment); }
.seg--wrap { flex-wrap: wrap; border: 0; gap: 8px; }
.seg--wrap button { flex: 0 0 auto; border: 1px solid var(--line); padding: 11px 14px; }

.range { display: grid; gap: 10px; font: 500 10.5px/1 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.range input { width: 100%; accent-color: var(--obsidian); }

.temp { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.temp .ctl__read { margin: 6px 0; }
.temp__btn { width: 46px; height: 46px; border: 1px solid var(--line); background: none; font: 300 24px/1 var(--f-body); color: var(--obsidian); cursor: pointer; transition: background .3s, color .3s; }
.temp__btn:hover { background: var(--obsidian); color: var(--parchment); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: #5fa86b; }
.dot--live { background: #d94b3d; animation: hubPulse 2s infinite; box-shadow: 0 0 0 0 rgba(217,75,61,.5); }

.lockbtn { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: border-color .4s, background .4s; }
.lockbtn svg { width: 40px; height: 40px; fill: none; stroke: var(--obsidian); stroke-width: 1.3; stroke-linecap: round; flex-shrink: 0; }
.lockbtn__shackle { transition: transform .5s var(--ease-out); transform-origin: 21px 14px; }
.lockbtn small { display: block; font: 500 10px/1 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-bottom: 6px; }
.lockbtn b { font: 400 24px/1 var(--f-display); color: var(--obsidian); }
.lockbtn[aria-pressed="true"] { border-color: var(--ember); background: rgba(242,110,33,.06); }
.lockbtn[aria-pressed="true"] .lockbtn__shackle { transform: translateY(-3px) rotate(28deg); }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: 15px; color: var(--obsidian); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; width: 48px; height: 26px; border-radius: 99px; background: rgba(34,31,31,.18); transition: background .3s; flex-shrink: 0; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--obsidian); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 1px solid var(--ember); outline-offset: 3px; }
.cams { margin-top: 18px; border-top: 1px solid var(--line); }
.cams li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--obsidian); }
.cams em { margin-left: auto; font: normal 500 10px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #d94b3d; }
.hub.is-disarmed .cams .dot--live { background: var(--travertine); animation: none; }
.hub.is-disarmed .cams em { color: var(--bronze); }

.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sources span { padding: 12px 8px; border: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--slate); transition: all .4s; }
.sources span.is-on { border-color: var(--obsidian); background: var(--obsidian); color: var(--parchment); }
.sources span.is-off { border-color: var(--ember); color: var(--ember-deep); text-decoration: line-through; }
.meter { height: 3px; margin-top: 18px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ember); transition: width .8s var(--ease); }

.reqs { margin-top: 16px; }
.reqs li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--obsidian); animation: ctlIn .45s var(--ease-out); }
.reqs li span { margin-left: auto; font-size: 12px; color: var(--slate); }
.reqs .reqs__empty { color: var(--slate); font-weight: 300; border: 0; }

/* Feature list */
.hub__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hub__tab {
  position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start;
  padding: 22px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; color: var(--obsidian); cursor: pointer;
}
.hub__tab::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.hub__tab[aria-selected="true"]::after { transform: scaleX(1); }
.hub__tab svg { width: 28px; height: 28px; fill: none; stroke: var(--umber); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.hub__tab-title { display: block; font: 400 24px/1.15 var(--f-display); opacity: .5; transition: opacity .4s; }
.hub__tab:hover .hub__tab-title, .hub__tab[aria-selected="true"] .hub__tab-title { opacity: 1; }
.hub__tab[aria-selected="true"] svg { stroke: var(--ember-deep); }
.hub__tab-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.hub__tab-desc > span { overflow: hidden; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--slate); }
.hub__tab[aria-selected="true"] .hub__tab-desc { grid-template-rows: 1fr; }
.hub__tab[aria-selected="true"] .hub__tab-desc > span { padding-top: 8px; }

/* ---------- Signature (pinned scroll story) ---------- */
.signature { background: var(--obsidian); color: var(--parchment); padding: var(--section) 0; position: relative; }

/* Static layout: mobile, reduced motion, no JS */
.sig { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; }
.sig__frames, .sig__copy { display: contents; }
.sig__title { order: 1; }
.sig__frame, .sig__item { order: var(--o); }
.sig__frame { margin: 48px 0 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; border-radius: 4px; }
.sig__frame img { width: 100%; height: 100%; object-fit: cover; }
.sig__item { margin-top: 28px; max-width: 46ch; }
.sig__line { display: block; overflow: hidden; padding-bottom: .06em; }
.sig__line > span { display: block; }
.sig__shade, .sig__foot { display: none; }

.sig__kicker { font: 500 12px/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 233, 218, .7); display: flex; gap: 14px; margin-bottom: 22px; }
.sig__kicker span { color: var(--ember); padding-right: 14px; border-right: 1px solid var(--line-light); }
.sig__h { font: 400 clamp(36px, 3.2vw, 52px)/1.04 var(--f-display); letter-spacing: -.01em; }
.sig__h em { color: var(--travertine); font-weight: 300; }
.sig__p { margin: 20px 0 24px; font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(243, 233, 218, .72); }
.sig__meta { padding-top: 16px; border-top: 1px solid var(--line-light); font: 400 11px/1.4 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 233, 218, .5); }

/* Pinned layout (desktop, set by JS) */
.signature.is-pinned { padding: 0; }
.is-pinned .sig { position: relative; display: block; max-width: none; padding: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.is-pinned .sig__frames, .is-pinned .sig__copy { display: block; }
.is-pinned .sig__frame { position: absolute; left: 0; top: 0; margin: 0; aspect-ratio: auto; will-change: left, top, width, height; }
.is-pinned .sig__shade { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(34,31,31,.35) 0%, rgba(34,31,31,0) 30%, rgba(34,31,31,0) 45%, rgba(34,31,31,.78) 100%); }
.is-pinned .sig__title { position: absolute; left: var(--gutter); bottom: clamp(48px, 8vh, 88px); z-index: 3; }
.is-pinned .sig__title .h2 { font-size: clamp(56px, 7.4vw, 128px); line-height: .98; }
.is-pinned .sig__title .eyebrow { margin-bottom: 32px; }
.is-pinned .sig__copy { position: absolute; display: grid; z-index: 3; }
.is-pinned .sig__item { grid-area: 1 / 1; margin: 0; max-width: none; }
.is-pinned .sig__foot { display: flex; align-items: center; gap: 12px; position: absolute; left: var(--gutter); bottom: 36px; z-index: 3; font: 400 11px/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 233, 218, .55); }
.sig__count { display: inline-block; height: 1em; overflow: hidden; color: var(--ember); }
.sig__count-track { display: block; }
.sig__count-track span { display: block; height: 1em; }

/* ---------- Addresses ---------- */
.addr-list { border-top: 1px solid var(--line); }
.addr {
  display: grid; grid-template-columns: 80px 1fr auto 60px; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line);
  cursor: pointer; position: relative; transition: padding .6s var(--ease-out), color .4s;
}
.addr::before { content: ""; position: absolute; inset: 0; background: var(--parchment); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; }
.addr:hover::before { transform: scaleY(1); }
.addr:hover { padding-left: 24px; padding-right: 24px; }
.addr__n { font: 400 13px/1 var(--f-caps); letter-spacing: .2em; color: var(--bronze); }
.addr__name { font: 300 clamp(40px, 5.6vw, 88px)/1 var(--f-display); letter-spacing: -.015em; transition: font-style .3s; }
.addr:hover .addr__name { font-style: italic; color: var(--umber); }
.addr__info { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.addr__arrow { text-align: right; font-size: 24px; color: var(--ember-deep); transform: translateX(-12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s; }
.addr:hover .addr__arrow { transform: none; opacity: 1; }
.addr-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 942 / 1059; pointer-events: none;
  overflow: hidden; opacity: 0; transform: scale(.85);
  /* Arch on a stepped plinth */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='98 59.5 942 1059'%3E%3Cpath d='M162.5 457A406.5 397.5 0 0 1 975.5 457L997.5 457L997.5 1050L1018.5 1050L1018.5 1073L1040 1073L1040 1118.5L98 1118.5L98 1073L119.5 1073L119.5 1050L140.5 1050L140.5 457Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='98 59.5 942 1059'%3E%3Cpath d='M162.5 457A406.5 397.5 0 0 1 975.5 457L997.5 457L997.5 1050L1018.5 1050L1018.5 1073L1040 1073L1040 1118.5L98 1118.5L98 1073L119.5 1073L119.5 1050L140.5 1050L140.5 457Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.addr-float.is-on { opacity: 1; transform: scale(1); }
.addr-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Journey ---------- */
.journey { background: var(--parchment); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--line); }
.step { padding: 0 32px 0 0; position: relative; }
.step + .step { padding-left: 32px; }
/* Arch-on-plinth outline (matches the address preview) */
.step__numeral {
  display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 36px;
  font: 400 26px/1 var(--f-caps); color: var(--umber);
  position: relative; isolation: isolate; transition: color .5s;
}
.step__numeral::before, .step__numeral::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: no-repeat center / contain; transition: opacity .5s;
}
.step__numeral::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='92 53.5 954 1071'%3E%3Cpath d='M162.5 457A406.5 397.5 0 0 1 975.5 457L997.5 457L997.5 1050L1018.5 1050L1018.5 1073L1040 1073L1040 1118.5L98 1118.5L98 1073L119.5 1073L119.5 1050L140.5 1050L140.5 457Z' fill='%23F3E9DA' stroke='%2377644D' stroke-opacity='.6' stroke-width='1.2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.step__numeral::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='92 53.5 954 1071'%3E%3Cpath d='M162.5 457A406.5 397.5 0 0 1 975.5 457L997.5 457L997.5 1050L1018.5 1050L1018.5 1073L1040 1073L1040 1118.5L98 1118.5L98 1073L119.5 1073L119.5 1050L140.5 1050L140.5 457Z' fill='%23221F1F' stroke='%23221F1F' stroke-opacity='1' stroke-width='1.2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); opacity: 0; }
.step:hover .step__numeral { color: var(--parchment); }
.step:hover .step__numeral::after { opacity: 1; }
.step h4 { font: 400 28px/1.15 var(--f-display); margin-bottom: 12px; }
.step p { font-size: 15px; font-weight: 300; color: var(--slate); max-width: 30ch; }

.nrb { margin-top: clamp(72px, 8vw, 112px); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 32px 40px; background: var(--marble); border: 1px solid var(--line); }
.nrb__icon svg { width: 44px; height: 44px; fill: none; stroke: var(--umber); stroke-width: 1.1; }
.nrb p { font-weight: 300; color: var(--slate); max-width: 70ch; }
.nrb strong { font: 500 21px/1 var(--f-display); color: var(--obsidian); margin-right: 6px; }

/* ---------- Landowners ---------- */
.landowners { position: relative; min-height: 92vh; display: grid; place-items: center; color: var(--parchment); overflow: hidden; text-align: center; padding: var(--section) 0; }
.landowners__media { position: absolute; inset: -10% 0; }
.landowners__media img { width: 100%; height: 100%; object-fit: cover; }
.landowners__veil { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 58% at center, rgba(28,25,25,.86), rgba(28,25,25,.62)); }
.landowners__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.landowners__title { font: 300 clamp(60px, 9vw, 150px)/.95 var(--f-display); letter-spacing: -.02em; margin-bottom: 36px; text-shadow: 0 2px 40px rgba(20,18,18,.55); }
.landowners__title em { color: #E3CBA2; font-weight: 400; }
.landowners .lede { text-align: center; margin: 0 auto 44px; color: rgba(243, 233, 218, .92); text-shadow: 0 1px 18px rgba(20,18,18,.6); }
.landowners__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Enquiry ---------- */
.enquiry__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 140px); }
.enquiry__intro .lede { margin: 28px 0 48px; }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); padding-top: 4px; }
.contact-list a:hover { color: var(--ember-deep); }

.form { position: relative; background: #fff; padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line); align-self: start; }
.form__row { margin-bottom: 28px; }
.form__row--2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(34,31,31,.25); background: transparent;
  padding: 26px 0 10px; font-size: 16px; outline: none; border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field > span, .field--phone label span {
  position: absolute; left: 0; top: 26px; font-size: 15px; color: var(--slate); pointer-events: none;
  transition: top .3s var(--ease-out), font-size .3s var(--ease-out), letter-spacing .3s, color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--obsidian); }
.field input:focus ~ span, .field input:not(:placeholder-shown) ~ span,
.field textarea:focus ~ span, .field textarea:not(:placeholder-shown) ~ span,
.field select:focus ~ span, .field select:valid ~ span {
  top: 2px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze);
}
.field--select::after { content: ""; position: absolute; right: 4px; top: 32px; width: 7px; height: 7px; border-right: 1px solid var(--obsidian); border-bottom: 1px solid var(--obsidian); transform: rotate(45deg); pointer-events: none; }
.field--phone { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: end; }
.field--phone select { padding-right: 10px; font-size: 14px; letter-spacing: .04em; }
.field--phone label { position: relative; display: block; }
.field.is-invalid input, .field--phone.is-invalid input, .field.is-invalid select { border-color: var(--ember-deep); }

.pref { border: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pref legend { float: left; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-right: 12px; padding: 0; }
.pref label { cursor: pointer; }
.pref input { position: absolute; opacity: 0; pointer-events: none; }
.pref span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; transition: background .3s, color .3s, border-color .3s; }
.pref input:checked + span { background: var(--obsidian); color: var(--parchment); border-color: var(--obsidian); }
.pref input:focus-visible + span { outline: 1px solid var(--ember); outline-offset: 3px; }

.form__submit { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 12.5px; color: var(--slate); max-width: 34ch; line-height: 1.5; }
.form__thanks { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s; color: var(--umber); }
.form__thanks > div { width: 64px; margin-bottom: 20px; }
.form__thanks svg { width: 100%; height: auto; }
.form__thanks h3 { font: 300 52px/1 var(--f-display); color: var(--obsidian); margin-bottom: 10px; }
.form.is-sent .form__thanks { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.footer { background: var(--obsidian); color: var(--parchment); padding: clamp(80px, 10vw, 140px) 0 36px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-light); }
.footer__logo { width: clamp(150px, 14vw, 210px); height: auto; }
.footer__tagline { font: 300 clamp(48px, 7.4vw, 124px)/.95 var(--f-display); letter-spacing: -.02em; text-align: right; }
.footer__tagline em { color: var(--travertine); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 0; }
.footer__cols h5 { font: 500 11px/1 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--ember); margin-bottom: 22px; }
.footer__cols a, .footer__cols address { display: block; font-size: 15px; font-weight: 300; color: rgba(243,233,218,.78); margin-bottom: 10px; transition: color .3s; }
.footer__cols a:hover { color: var(--parchment); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 84px 0 0; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(243,233,218,.55); flex-wrap: wrap; }
.footer__bottom div { display: flex; gap: 24px; }
.footer__bottom a:hover { color: var(--parchment); }

/* ---------- Floating WA + mobile bar ---------- */
.wa-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--obsidian); color: var(--parchment);
  border: 1px solid var(--line-light); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
  transition: transform .5s var(--ease-out), background .3s;
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #3a2f28; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
.mobile-bar { display: none; }

/* ---------- Reveal helpers ---------- */
.reveal-up { will-change: transform; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header__nav, .header__phone { display: none; }
  .burger { display: block; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .hero__front { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__teaser { display: none; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__grid .eyebrow, .manifesto__text, .manifesto__aside { grid-column: 1; }
  .manifesto__aside { grid-template-columns: 1fr; gap: 28px; }
  .manifesto__ornament { opacity: .14; right: -80px; }

  .orders__grid { grid-template-columns: 1fr; }
  .orders__stage { display: none; }
  .orders__list { padding: 0; }
  .order { min-height: auto; opacity: 1; padding: 48px 0; }
  .order__art { display: block; width: 64px; margin-bottom: 28px; color: var(--umber); }
  .order__art svg { width: 100%; height: auto; }

  .residences__pin { height: auto; min-height: 0; padding: 96px 0; }
  .res-card__media, .res-card--more { height: auto; aspect-ratio: 4 / 5; }
  .residences__head { flex-direction: column; align-items: flex-start; }
  .residences__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .residences__track::-webkit-scrollbar { display: none; }
  .res-card { width: 78vw; scroll-snap-align: start; }
  .res-card--more { width: 64vw; }

  .enquiry__grid { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; gap: 0; }
  .hub__tabs { order: -1; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter); gap: 8px; }
  .hub__tabs::-webkit-scrollbar { display: none; }
  .hub__tab { flex: 0 0 auto; grid-template-columns: 22px auto; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); }
  .hub__tab::after { display: none; }
  .hub__tab[aria-selected="true"] { background: var(--obsidian); color: var(--parchment); border-color: var(--obsidian); }
  .hub__tab[aria-selected="true"] svg { stroke: var(--parchment); }
  .hub__tab svg { width: 22px; height: 22px; }
  .hub__tab-title { font-size: 18px; white-space: nowrap; }
  .hub__tab-desc { display: none; }
  .hub__stage { min-height: 0; display: flex; flex-direction: column; background: none; }
  .hub__scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
  .hub__panel { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 14px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
  .steps::before { display: none; }
  .step, .step + .step { padding: 0; }
  .nrb { grid-template-columns: 1fr; gap: 20px; padding: 32px 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .menu { grid-template-columns: 1fr; }
  .menu__media { position: absolute; inset: 0; opacity: .18; }
  .menu__nav { position: relative; }
  .menu__foot { left: 0; flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { min-height: 600px; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__front { bottom: 96px; }
  .hero__building { width: 150vh; margin-left: -75vh; bottom: calc(45% - 118.65vh); }
  .hero__shade { height: 64%; background: linear-gradient(0deg, rgba(4,5,7,.96) 0%, rgba(4,5,7,.8) 52%, rgba(4,5,7,0) 100%); }
  .hero__foot { padding-bottom: 20px; }
  .btn { height: 52px; padding: 0 26px; }
  .header .btn--sm { display: none; }

  .res-card__facts { gap: 16px; }
  .res-card__facts dd { font-size: 13.5px; white-space: nowrap; }
  .addr { grid-template-columns: 36px 1fr 24px; gap: 14px; }
  .addr__info { grid-column: 2; grid-row: 2; font-size: 11px; margin-top: -6px; }
  .addr__arrow { opacity: 1; transform: none; grid-row: 1; grid-column: 3; }
  .addr:hover { padding-left: 0; padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .step__numeral { width: 72px; height: 72px; font-size: 22px; margin-bottom: 24px; }
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
  .form__row--2 { grid-template-columns: 1fr; gap: 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__tagline { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 72px; }

  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    background: var(--obsidian); color: var(--parchment); border-top: 1px solid var(--line-light);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .5s var(--ease-out);
  }
  .mobile-bar.is-on { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
  .mobile-bar a + a { border-left: 1px solid var(--line-light); }
  .mobile-bar__primary { background: var(--parchment); color: var(--obsidian); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .manifesto__text .w { opacity: 1; }
  .orders__art path { stroke-dashoffset: 0; }
  .preloader__art img { clip-path: none; }
}
