/* Halvard — site styles */

:root {
  --ground: #ECECE8;
  --surface: #E1E2DD;
  --ink: #1B1D1C;
  --slate: #626764;
  --line: #C9CAC4;
  --accent: #4E6A61;
  --accent-ink: #F1F1ED;

  --basalt: #111312;
  --basalt-2: #1A1D1B;
  --basalt-line: #2C302E;
  --on-basalt: #E7E8E3;
  --on-basalt-dim: #8E9490;
  --verdigris: #8FB0A4;
  --on-image: #F4F4F0;
  --panel: #F7F7F4;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 184px);
  --max: 1480px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #131514;
    --surface: #1B1E1C;
    --ink: #E4E5E0;
    --slate: #9A9F9B;
    --line: #2D312F;
    --accent: #8FB0A4;
    --accent-ink: #111312;
    --basalt: #0A0B0B;
    --basalt-2: #151716;
    --basalt-line: #262A28;
    --panel: #1B1E1C;
  }
}
:root[data-theme="dark"] {
  --ground: #131514;
  --surface: #1B1E1C;
  --ink: #E4E5E0;
  --slate: #9A9F9B;
  --line: #2D312F;
  --accent: #8FB0A4;
  --accent-ink: #111312;
  --basalt: #0A0B0B;
  --basalt-2: #151716;
  --basalt-line: #262A28;
  --panel: #1B1E1C;
}

*, *::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; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Type ---------- */
.label {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
  margin: 0;
}
.h2 { font-size: clamp(40px, 6.4vw, 104px); }
.h3 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.04; }
.lede {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
}
.prose p { margin: 0 0 1.1em; max-width: 62ch; color: var(--slate); }
.prose p:last-child { margin-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.section { padding-block: var(--section); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 88px);
  color: var(--slate);
}
.on-basalt { background: var(--basalt); color: var(--on-basalt); }
.on-basalt .section-head { border-color: var(--basalt-line); color: var(--on-basalt-dim); }
.on-basalt .prose p { color: var(--on-basalt-dim); }

/* Dimension line: |—— 42.6 m ——| */
.dim { display: flex; align-items: center; gap: 14px; color: inherit; }
.dim::before, .dim::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: .7;
}
.dim::before { border-left: 1px solid currentColor; }
.dim::after { border-right: 1px solid currentColor; }
.dim span { white-space: nowrap; }

/* Arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .5s var(--ease-out), color .3s;
}
.link-arrow:hover { gap: 26px; }
.link-arrow .label { font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  background: var(--ink); color: var(--ground); border-radius: 1px;
  transition: background .35s, gap .5s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); gap: 22px; }
.on-basalt .btn { background: var(--on-basalt); color: var(--basalt); }
.on-basalt .btn:hover { background: var(--verdigris); color: var(--basalt); }

/* ---------- Reveal ---------- */
.rv { transform: translateY(28px); opacity: .35; transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); }
.rv.in { transform: none; opacity: 1; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
[data-scrub] .w { transition: opacity .25s linear; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-image);
  transition: background .5s var(--ease-out), color .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__brand { font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: 19px; letter-spacing: .22em; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav__links a, .nav__cta { position: relative; padding-block: 6px; }
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex; gap: 10px; align-items: center; }
.nav__toggle { display: none; }
.nav.is-solid { background: color-mix(in srgb, var(--ground) 92%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); }
.nav.is-hidden { transform: translateY(-100%); }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--basalt); color: var(--on-basalt);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a.display { display: block; font-size: clamp(40px, 12vw, 64px); padding-block: 10px; border-top: 1px solid var(--basalt-line); }
.menu .label { margin-top: 32px; color: var(--on-basalt-dim); }
body.menu-open .nav { color: var(--on-basalt); background: transparent; border-color: transparent; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(620px, 94svh, 980px);
  display: flex; align-items: flex-end; color: var(--on-image); overflow: hidden;
  background: var(--basalt);
}
.hero__media { position: absolute; inset: 0; animation: aperture 1.9s var(--ease) both; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.8s var(--ease-out) both; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(10 12 11 / .45) 0%, rgb(10 12 11 / 0) 22%),
    linear-gradient(0deg, rgb(10 12 11 / .78) 0%, rgb(10 12 11 / .2) 48%, rgb(10 12 11 / 0) 70%);
}
.hero__guides { position: absolute; inset: 0; pointer-events: none; }
.hero__guides .grid { height: 100%; }
.hero__guides span { border-left: 1px solid rgb(244 244 240 / .08); animation: guide 1.6s var(--ease-out) both; animation-delay: .9s; }
.hero__guides span:last-child { border-right: 1px solid rgb(244 244 240 / .08); }
.hero__inner { position: relative; padding-top: 140px; padding-bottom: clamp(28px, 4vw, 48px); }
.hero__eyebrow { opacity: .82; margin: 0 0 clamp(20px, 2.4vw, 32px); animation: rise 1.2s var(--ease-out) both; animation-delay: 1.2s; }
.hero__title { font-size: clamp(48px, 9.6vw, 164px); line-height: .92; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; animation: lineup 1.4s var(--ease-out) both; animation-delay: 1s; }
.hero__title .line + .line > span { animation-delay: 1.12s; }
.hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px);
  align-items: end; margin-top: clamp(32px, 4.5vw, 64px);
  animation: rise 1.2s var(--ease-out) both; animation-delay: 1.4s;
}
.hero__intro { grid-column: 1 / span 5; margin: 0; max-width: 46ch; color: rgb(244 244 240 / .84); }
.hero__launch {
  grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 4px;
  padding: 22px 0 0; border-top: 1px solid rgb(244 244 240 / .4);
}
.hero__launch .label { grid-column: 1 / -1; color: var(--verdigris); }
.hero__launch-name { font-family: var(--display); font-stretch: 115%; font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.hero__launch-meta { grid-column: 1; color: rgb(244 244 240 / .72); font-size: 15px; }
.hero__launch .arrow { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 26px; transition: transform .6s var(--ease-out); }
.hero__launch:hover .arrow { transform: translateX(10px); }
.hero__dim { margin-top: clamp(28px, 3vw, 40px); color: rgb(244 244 240 / .66); animation: rise 1.2s var(--ease-out) both; animation-delay: 1.6s; }

@keyframes aperture { from { clip-path: inset(14% 44% 14% 44%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes lineup { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes guide { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* ---------- Profile ---------- */
.profile__label { grid-column: 1 / span 3; color: var(--slate); padding-top: 12px; }
.profile__statement { grid-column: 4 / span 9; font-size: clamp(28px, 3.6vw, 58px); line-height: 1.12; letter-spacing: -.02em; font-stretch: 112%; }
.figures {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--line);
}
.figure { padding: 26px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure__value { font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figure__value small { font-size: .42em; letter-spacing: 0; font-weight: 300; margin-left: .15em; }
.figure .label { color: var(--slate); }

.approach { margin-top: clamp(80px, 11vw, 170px); row-gap: 40px; align-items: end; }
.approach__img { grid-column: 1 / span 6; position: relative; overflow: hidden; aspect-ratio: 5 / 6; background: var(--surface); }
.approach__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.approach__body { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 32px; }
.approach__body .prose p { color: var(--slate); }
.founders { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.founders span:first-child { font-family: var(--display); font-stretch: 112%; font-size: 19px; }
.founders span:last-child { color: var(--slate); font-size: 15px; }

/* ---------- Focus ---------- */
.focus__cols { row-gap: 72px; }
.focus__col { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; }
.focus__col:last-child { padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--basalt-line); }
.focus__col .label { color: var(--verdigris); }
.focus__col .prose p { max-width: 50ch; }
.criteria { margin: 12px 0 0; border-top: 1px solid var(--basalt-line); }
.criteria div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--basalt-line); }
.criteria dt { color: var(--on-basalt-dim); }
.criteria dd { margin: 0; }
.services { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--basalt-line); }
.services li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--basalt-line); }
.services li span:last-child { color: var(--on-basalt-dim); text-align: right; }
.focus__cta { margin-top: 12px; }

/* ---------- Aperture (scroll) ---------- */
.aperture { position: relative; height: 230vh; background: var(--basalt); color: var(--on-image); }
.aperture__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.aperture__frame { position: absolute; inset: 0; will-change: clip-path; }
.aperture__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.aperture__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 12 11 / .72), rgb(10 12 11 / 0) 55%); }
.aperture__text { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 80px); z-index: 2; }
.aperture__quote { font-size: clamp(34px, 5.6vw, 92px); max-width: 15ch; line-height: 1; }
.aperture__meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; color: rgb(244 244 240 / .72); }
.aperture__meta .dim { flex: 1; max-width: 520px; }
.aperture__text > .wrap > * { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.aperture.is-closed .aperture__text > .wrap > * { opacity: 0; transform: translateY(30px); }

/* ---------- Developments index ---------- */
.devs__intro { grid-column: 1 / span 7; }
.devs__intro .display { margin-bottom: 28px; }
.devs__aside { grid-column: 9 / span 4; align-self: end; color: var(--slate); margin: 0; max-width: 40ch; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: clamp(48px, 6vw, 80px) 0 0; }
.filter {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 1px; font-size: 14.5px; color: var(--slate);
  transition: border-color .3s, color .3s, background .3s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.filter .num { font-size: 12px; opacity: .7; }

.devlist { margin-top: 28px; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 112px minmax(0, 4.4fr) minmax(0, 2.6fr) minmax(0, 2.6fr) minmax(0, 2.6fr) 32px;
  align-items: center; column-gap: 24px; padding: clamp(22px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.row[hidden] { display: none; }
.row__img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.row:hover .row__img img { transform: scale(1.08); }
.row__name {
  font-family: var(--display); font-stretch: 118%; font-weight: 300;
  font-size: clamp(26px, 3.1vw, 48px); line-height: 1.02; letter-spacing: -.02em;
  transition: transform .7s var(--ease-out), color .4s;
}
.row__place, .row__type { color: var(--slate); font-size: 15.5px; }
.row__arrow { justify-self: end; font-size: 22px; transform: translateX(-10px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; }
.row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
@media (hover: hover) {
  .row:hover .row__name { transform: translateX(18px); color: var(--accent); }
  .row:hover .row__arrow { transform: none; opacity: 1; }
  .row:hover::before { transform: scaleX(1); }
}

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; }
.status--launching::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.status--construction::before { border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.status--planning::before { border: 1px solid var(--ink); }
.status--completed { color: var(--slate); }
.status--completed::before { width: 10px; height: 1px; border-radius: 0; background: var(--slate); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(260px, 22vw, 360px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; background: var(--surface);
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .7s var(--ease);
}
.preview.on { clip-path: inset(0 0 0 0); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .5s, transform 1.2s var(--ease-out); }
.preview img.on { opacity: 1; transform: scale(1); }

/* Swipe progress (phones) */
.swipe-progress { display: none; }

/* ---------- Launch ---------- */
.launch { background: var(--surface); }
.launch__grid { align-items: stretch; row-gap: 48px; }
.launch__media { grid-column: 1 / span 7; position: relative; overflow: hidden; min-height: 520px; }
.launch__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out); }
.launch__media:hover img { transform: scale(1.04); }
.launch__body { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 28px; padding-block: 8px; }
.launch__body .label { color: var(--accent); }
.launch__body .display { font-size: clamp(40px, 4.6vw, 72px); }
.steps { list-style: none; margin: 8px 0; padding: 0; }
.step { display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.step:first-child { border-top: 1px solid var(--line); }
.step__mark { width: 9px; height: 9px; border: 1px solid var(--ink); }
.step--done .step__mark { background: var(--ink); }
.step--next .step__mark { border-color: var(--accent); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.step--done { color: var(--slate); }
.step__when { color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step--next .step__when { color: var(--accent); }

/* ---------- Enquiries ---------- */
.enq { row-gap: 64px; }
.enq__side { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 40px; }
.enq__side .display { font-size: clamp(40px, 4.8vw, 76px); }
.contacts { display: grid; gap: 24px; margin: 0; }
.contacts div { display: grid; gap: 4px; }
.contacts dt { color: var(--slate); }
.contacts dd { margin: 0; font-size: 18px; }
.contacts a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contacts a:hover { border-color: var(--ink); }
.form {
  grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-content: start;
  background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 3.2vw, 48px);
  box-shadow: 0 30px 60px -40px rgb(17 19 18 / .25);
}
.form__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form__head .display { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 112%; }
.form__head .label { color: var(--slate); }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ground); border: 1px solid var(--line); border-radius: 2px; font-size: 15px; transition: all .3s; }
.chip input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); }
.field label i { font-style: normal; color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: 2px; padding: 0 16px; min-height: 52px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate); opacity: .75; }
.field select { appearance: none; padding-right: 44px; background: var(--ground) linear-gradient(45deg, transparent 50%, var(--slate) 50%) right 22px center / 6px 6px no-repeat; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(-45deg, transparent 50%, var(--slate) 50%); background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ground); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; padding-block: 14px; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); max-width: 44ch; }
.consent input { accent-color: var(--accent); margin-top: 4px; }
.form__done { grid-column: 1 / -1; margin: 0; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--basalt); color: var(--on-basalt); padding-top: clamp(72px, 9vw, 130px); overflow: hidden; }
.footer__top { row-gap: 40px; padding-bottom: clamp(56px, 7vw, 100px); }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 10px; }
.footer__col .label { color: var(--on-basalt-dim); margin-bottom: 8px; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--verdigris); }
.footer__news { grid-column: span 6; }
.footer__news p { margin: 0; max-width: 34ch; font-family: var(--display); font-stretch: 112%; font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.footer__mark {
  display: block; width: max-content; margin: 0 auto; padding-bottom: clamp(20px, 3vw, 44px);
  font-family: var(--display); font-stretch: 125%; font-weight: 200;
  font-size: 15vw; line-height: .78; letter-spacing: 0; white-space: nowrap; color: var(--on-basalt);
}
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--basalt-line); color: var(--on-basalt-dim); font-size: 13.5px; }

/* ---------- Development page ---------- */
.dhero .hero__title { font-size: clamp(52px, 11vw, 190px); }
.dhero__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; margin-top: clamp(24px, 3vw, 40px); animation: rise 1.2s var(--ease-out) both; animation-delay: 1.4s; }
.dhero__meta .status { color: var(--on-image); }
.dhero__meta .status::before { box-shadow: none; }
.dhero .status--launching::before { background: var(--verdigris); }
.dhero .status--construction::before, .dhero .status--planning::before { border-color: var(--on-image); }
.dhero .status--construction::before { background: linear-gradient(90deg, var(--on-image) 50%, transparent 50%); }
.crumbs { color: rgb(244 244 240 / .75); }
.crumbs a:hover { color: var(--on-image); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
.fact:not(:nth-child(4n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { color: var(--slate); }
.fact dd { margin: 0; font-family: var(--display); font-stretch: 108%; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; font-variant-numeric: tabular-nums; }

.story { margin-top: clamp(80px, 10vw, 150px); row-gap: 40px; }
.story__label { grid-column: 1 / span 3; color: var(--slate); padding-top: 10px; }
.story__lede { grid-column: 4 / span 8; }
.story__body { grid-column: 4 / span 5; }

.gallery { padding-block: var(--section); background: var(--basalt); color: var(--on-basalt); overflow: hidden; }
.gallery .section-head { margin-bottom: 36px; }
.gallery__controls { display: flex; align-items: center; gap: 20px; }
.gallery__btn { width: 48px; height: 48px; border: 1px solid var(--basalt-line); display: grid; place-items: center; font-size: 18px; transition: border-color .3s, background .3s; }
.gallery__btn:hover { border-color: var(--on-basalt); }
.gallery__track {
  display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; contain: paint;
  cursor: grab;
}
@media (min-width: 1480px) { .gallery__track { padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); } }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; width: clamp(290px, 64vw, 1080px); scroll-snap-align: start; margin: 0; }
.gallery__item button { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--basalt-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.gallery__item button:hover img { transform: scale(1.03); }
.gallery__item figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--on-basalt-dim); font-size: 14.5px; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 11 11 / .96); color: var(--on-basalt); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .4s ease both; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); color: var(--on-basalt-dim); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 0 var(--pad); min-height: 0; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 20px; }
@keyframes fade { from { opacity: 0; } }

/* Specification: materials grid */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 40px); margin: 0; }
.spec { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); }
.spec dt { display: flex; justify-content: space-between; color: var(--slate); }
.spec dd { margin: 0; font-family: var(--display); font-stretch: 108%; font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.28; letter-spacing: -.01em; text-wrap: pretty; }

/* Programme: horizontal timeline */
.programme { margin-top: clamp(96px, 11vw, 170px); }
.programme .section-head strong { font-weight: 500; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ms { position: relative; padding: 40px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ms::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.ms--done::before { background: var(--ink); height: 2px; top: 5.5px; }
.ms--next::before { background: linear-gradient(90deg, var(--accent) 0 34%, var(--line) 34%); height: 2px; top: 5.5px; }
.ms__dot { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ground); border: 1px solid var(--slate); }
.ms--done .ms__dot { background: var(--ink); border-color: var(--ink); }
.ms--next .ms__dot { background: var(--accent); border-color: var(--accent); }
.ms--next .ms__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ms__when { font-family: var(--display); font-stretch: 112%; font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ms__what { font-size: 15.5px; max-width: 22ch; }
.ms__state { color: var(--slate); margin-top: 4px; }
.ms--done .ms__when, .ms--done .ms__what { color: var(--slate); }
.ms--next .ms__state { color: var(--accent); }

/* Gallery autoplay progress */
.gallery__progress { width: 72px; height: 1px; background: var(--basalt-line); position: relative; overflow: hidden; }
.gallery__progress i { position: absolute; inset: 0; background: var(--on-basalt); transform-origin: left; transform: scaleX(0); }
.gallery__progress.run i { animation: fill var(--gdelay, 5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Process band: land to keys */
.process { padding-top: 0; }
.process__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.stage { display: flex; flex-direction: column; gap: 14px; }
.stage:nth-child(even) { margin-top: clamp(40px, 6vw, 96px); }
.stage__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.stage__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.stage:hover .stage__img img { transform: scale(1.05); }
.stage__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--slate); padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--ink); }
.stage__title { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.stage p { margin: 0; color: var(--slate); font-size: 15.5px; max-width: 34ch; }

/* Details marquee */
.details { padding-block: var(--section); overflow: hidden; }
.details__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.details__head .display { font-size: clamp(34px, 4.6vw, 72px); max-width: 15ch; }
.details__head p { margin: 0; color: var(--slate); max-width: 40ch; }
.marquee { overflow: hidden; contain: paint; }
.marquee__track { --mg: clamp(12px, 1.4vw, 20px); display: flex; align-items: flex-start; gap: var(--mg); padding-right: var(--mg); width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee figure { margin: 0; flex: none; }
.marquee img { height: clamp(280px, 32vw, 470px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.marquee figure:nth-child(even) { margin-top: clamp(48px, 6vw, 96px); }
.marquee figure:nth-child(even) img { aspect-ratio: 3 / 2; height: clamp(200px, 22vw, 330px); }
.marquee figcaption { padding-top: 10px; color: var(--slate); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Launch inset photo */
.launch__inset { position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); width: 32%; aspect-ratio: 4 / 5; border: 8px solid var(--surface); overflow: hidden; z-index: 1; }
.launch__inset img { position: static; width: 100%; height: 100%; object-fit: cover; }

/* Site plan */
.siteplan { grid-column: 9 / span 4; margin: 0; }
.siteplan svg { display: block; width: 100%; height: auto; }
.siteplan figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--slate); padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.siteplan .p { fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke: var(--ink); stroke-width: 1.2; }
.siteplan .tr { fill: color-mix(in srgb, var(--accent) 30%, transparent); stroke: var(--accent); stroke-width: .8; }
.siteplan .g { fill: none; stroke: var(--slate); stroke-width: .8; stroke-dasharray: 3 3; }
.siteplan .b { fill: var(--ink); }
.siteplan .h { stroke: var(--ground); stroke-width: 1; }
.siteplan .ln { fill: none; stroke: var(--ink); stroke-width: 1; }
.siteplan .road { fill: none; stroke: var(--line); stroke-width: 18; }
.siteplan .t { fill: var(--ink); font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.siteplan .inv { fill: var(--ground); }

/* Exterior + detail pair */
.duo { margin-top: clamp(80px, 10vw, 150px); align-items: start; row-gap: 32px; }
.duo figure { margin: 0; }
.duo__a { grid-column: 1 / span 7; }
.duo__b { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.duo__frame { overflow: hidden; background: var(--surface); }
.duo__a .duo__frame { aspect-ratio: 4 / 5; }
.duo__b .duo__frame { aspect-ratio: 3 / 4; }
.duo__frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.duo figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--slate); font-size: 14.5px; }

/* Full-bleed image band */
.band { position: relative; height: clamp(440px, 82vh, 840px); overflow: hidden; display: flex; align-items: flex-end; color: var(--on-image); background: var(--basalt); }
.band__img { position: absolute; inset: 0; }
.band__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 12 11 / .72), rgb(10 12 11 / 0) 60%); }
.band .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(32px, 5vw, 64px); }
.band .display { font-size: clamp(34px, 5.2vw, 84px); max-width: 14ch; }
.band .label { color: rgb(244 244 240 / .75); }

.register { background: var(--surface); }
.next { display: block; padding-block: clamp(80px, 10vw, 150px); background: var(--basalt); color: var(--on-basalt); position: relative; overflow: hidden; }
.next__img { position: absolute; inset: 0; opacity: .32; transition: opacity 1s var(--ease-out), transform 2s var(--ease-out); }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__img { opacity: .5; transform: scale(1.03); }
.next .wrap { position: relative; }
.next .label { color: var(--verdigris); }
.next .display { font-size: clamp(48px, 9vw, 150px); margin-top: 18px; transition: transform .9s var(--ease-out); }
.next:hover .display { transform: translateX(24px); }
.next p { margin: 18px 0 0; color: rgb(231 232 227 / .75); }

/* ---------- Home: cinematic slideshow ---------- */
.hero--home .hero__media img { animation: none; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 9s linear; }
.slide.is-on img { transform: scale(1); }
.hero__bar {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  margin-top: clamp(36px, 5vw, 72px); padding-top: 22px; border-top: 1px solid rgb(244 244 240 / .3);
  animation: rise 1.2s var(--ease-out) both; animation-delay: 1.4s;
}
.hero__now { display: flex; flex-direction: column; gap: 6px; }
.hero__now .label { color: var(--verdigris); }
.hero__now-name { font-family: var(--display); font-stretch: 115%; font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { position: relative; width: clamp(44px, 5vw, 76px); padding: 14px 0; }
.hero__dot::before { content: ""; display: block; height: 1px; background: rgb(244 244 240 / .35); }
.hero__dot i { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--on-image); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-on i { animation: fill 6.5s linear forwards; }

/* ---------- Home: image story ---------- */
.ss { padding-bottom: var(--section); }
.ss .grid { align-items: end; row-gap: 40px; }
.ss__big { grid-column: 1 / span 7; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.ss__small { margin: 0; width: 72%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.ss__big img, .ss__small img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.ss__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 32px; padding-bottom: 24px; }
.ss__side .lede { font-size: clamp(26px, 2.6vw, 40px); max-width: 16ch; }
.ss__sig { color: var(--slate); }

/* ---------- Home: expanding panels ---------- */
.panels { display: flex; gap: 2px; height: clamp(560px, 92svh, 940px); background: var(--basalt); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; color: var(--on-image); transition: flex-grow 1.2s var(--ease); }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 12 11 / .82), rgb(10 12 11 / .08) 58%, rgb(10 12 11 / .3)); }
.panel__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 60px); max-width: 600px; }
.panel__body > .label { color: var(--verdigris); }
.panel__body .display { font-size: clamp(44px, 5.8vw, 100px); }
.panel__body p { margin: 0; max-width: 36ch; color: rgb(244 244 240 / .82); }
.panel__body .link-arrow { align-self: flex-start; }
@media (hover: hover) {
  .panels:hover .panel { flex-grow: .8; }
  .panels .panel:hover { flex-grow: 1.35; }
  .panel:hover > img { transform: scale(1); }
}

/* ---------- Home: developments cards ---------- */
.devs__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(44px, 5vw, 80px); }
.devs__top .display { font-size: clamp(52px, 8vw, 136px); }
.devs__top .filters { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); align-items: stretch; }
.card { display: flex; flex-direction: column; gap: 12px; grid-column: span var(--span, 4); min-width: 0; }
.card[hidden] { display: none; }
.card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; flex: 1 0 auto; background: var(--surface); }
.card--feature { grid-column: span 8; grid-row: span 2; }
.card--feature .card__img { aspect-ratio: auto; flex: 1; min-height: 420px; }
.card--solo .card__img { aspect-ratio: 21 / 9; }
.card--side .card__img { aspect-ratio: auto; flex: 1 1 0; min-height: 220px; }
.card--feature .card__name { font-size: clamp(40px, 5vw, 84px); }
.card--small .card__name { font-size: clamp(24px, 2.2vw, 36px); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 12 11 / .55), rgb(10 12 11 / 0) 45%); }
.card:hover .card__img img { transform: scale(1.05); }
.card__name { position: absolute; z-index: 1; left: clamp(18px, 2vw, 32px); bottom: clamp(16px, 2vw, 28px); right: 18px; color: var(--on-image); font-family: var(--display); font-stretch: 118%; font-weight: 300; font-size: clamp(30px, 3.4vw, 58px); line-height: 1; letter-spacing: -.02em; }
.card__meta { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); color: var(--slate); font-size: 15px; }

/* ---------- Home: full-bleed launch ---------- */
.lf { position: relative; min-height: clamp(640px, 100svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; color: var(--on-image); background: var(--basalt); }
.lf__img { position: absolute; inset: 0; }
.lf__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.lf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 12 11 / .68), rgb(10 12 11 / .05) 62%), linear-gradient(0deg, rgb(10 12 11 / .45), transparent 50%); }
.lf__inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px); }
.lf__inner > .label { color: var(--verdigris); }
.lf__inner .display { font-size: clamp(60px, 10.5vw, 180px); line-height: .9; margin: 20px 0 14px; }
.lf__line { margin: 0 0 36px; color: rgb(244 244 240 / .82); font-size: 18px; }
.lf__cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.lf__inset { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(56px, 8vw, 120px); width: clamp(180px, 19vw, 300px); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; outline: 1px solid rgb(244 244 240 / .35); outline-offset: 8px; }
.lf__inset img { width: 100%; height: 100%; object-fit: cover; }
.btn--light, .on-basalt .btn--light { background: var(--on-image); color: #111312; }
.btn--light:hover, .on-basalt .btn--light:hover { background: var(--verdigris); color: #111312; }

/* ---------- Home: contact split ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(580px, 88svh, 880px); background: var(--basalt); color: var(--on-basalt); }
.contact__img { position: relative; overflow: hidden; min-height: 380px; }
.contact__img img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.contact__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: clamp(56px, 7vw, 110px) var(--pad); }
.contact__inner .display { font-size: clamp(56px, 7.4vw, 124px); }
.contact__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 0; }
.contact__list div { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--basalt-line); }
.contact__list dt { color: var(--on-basalt-dim); }
.contact__list dd { margin: 0; font-size: 18px; }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--verdigris); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s .9s; }
.drawer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(10 12 11 / .55); opacity: 0; transition: opacity .7s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(660px, 100%); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 40px);
  background: var(--panel); color: var(--ink); transform: translateX(100%); transition: transform .9s var(--ease);
}
.drawer.open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .3s; }
.drawer__close:hover { border-color: var(--ink); }
.drawer .form { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; }
.cursor__dot { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--on-image); color: #111312; transform: scale(0); transition: transform .5s var(--ease-out); }
.cursor.on .cursor__dot { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .cursor-hide, .cursor-hide * { cursor: none; } }

/* ---------- Development: shorter story, spec with image ---------- */
.more summary { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; padding-bottom: 6px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 16px; }
.more[open] summary::after { content: "–"; }
.more p { margin-top: 1.1em; }
.spec-split { align-items: start; row-gap: 48px; }
.spec-split__img { grid-column: 1 / span 5; position: sticky; top: 110px; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.spec-split__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.spec-split .specs { grid-column: 7 / span 6; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Language switch ---------- */
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 36px; padding: 0 12px;
  border: 1px solid currentColor; border-radius: 1px; opacity: .78;
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .3s, background .3s;
}
.lang:hover { opacity: 1; }
.menu .lang { align-self: flex-start; margin-top: 28px; }

/* ---------- Arabic / RTL ---------- */
:root { --display-ar: "IBM Plex Sans Arabic", "Archivo", sans-serif; --body-ar: "IBM Plex Sans Arabic", "Instrument Sans", sans-serif; }
[dir="rtl"] body { font-family: var(--body-ar); }
[dir="rtl"] .display, [dir="rtl"] .lede, [dir="rtl"] .hero__title, [dir="rtl"] .hero__now-name, [dir="rtl"] .figure__value,
[dir="rtl"] .stage__title, [dir="rtl"] .card__name, [dir="rtl"] .ms__when, [dir="rtl"] .spec dd, [dir="rtl"] .fact dd,
[dir="rtl"] .nav__brand, [dir="rtl"] .footer__mark, [dir="rtl"] .footer__news p, [dir="rtl"] .lang, [dir="rtl"] .form__head .display {
  font-family: var(--display-ar); font-stretch: 100%; letter-spacing: 0;
}
[dir="rtl"] .label { letter-spacing: .04em; text-transform: none; }
[dir="rtl"] .nav__brand { letter-spacing: .12em; }
[dir="rtl"] .hero__title { line-height: 1.1; }
[dir="rtl"] .display { line-height: 1.16; }
[dir="rtl"] .footer__mark { line-height: 1.1; padding-bottom: clamp(28px, 4vw, 56px); }
[dir="rtl"] .prose p, [dir="rtl"] .ms__what, [dir="rtl"] .panel__body p { line-height: 1.75; }

/* Direction-dependent details */
[dir="rtl"] .card__name { left: auto; right: clamp(18px, 2vw, 32px); }
[dir="rtl"] .btn > span[aria-hidden="true"], [dir="rtl"] .link-arrow > span[aria-hidden="true"],
[dir="rtl"] .nav__cta > span[aria-hidden="true"], [dir="rtl"] .hero__launch .arrow, [dir="rtl"] .row__arrow,
[dir="rtl"] .gallery__btn, [dir="rtl"] .next .display { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .next:hover .display { transform: scaleX(-1) translateX(24px); }
[dir="rtl"] .hero__dot i, [dir="rtl"] .swipe-progress i, [dir="rtl"] .gallery__progress i, [dir="rtl"] .row::before { transform-origin: right; }
[dir="rtl"] .ms--next::before { background: linear-gradient(270deg, var(--accent) 0 34%, var(--line) 34%); }
[dir="rtl"] .ms { padding: 40px 0 0 24px; }
[dir="rtl"] .ms__dot { left: auto; right: 0; }
[dir="rtl"] .lf::after { background: linear-gradient(270deg, rgb(10 12 11 / .68), rgb(10 12 11 / .05) 62%), linear-gradient(0deg, rgb(10 12 11 / .45), transparent 50%); }
[dir="rtl"] .lf__inset { right: auto; left: var(--pad); }
[dir="rtl"] .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.open .drawer__panel { transform: none; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .siteplan svg, [dir="rtl"] .num, [dir="rtl"] .dim span { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .figure + .figure { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .focus__col:last-child { padding-left: 0; padding-right: clamp(0px, 3vw, 48px); border-left: 0; border-right: 1px solid var(--basalt-line); }
[dir="rtl"] .fact:not(:nth-child(4n+1)) { padding-left: 20px; padding-right: 20px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .services li span:last-child, [dir="rtl"] .contact__list dd { text-align: right; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__intro { grid-column: 1 / span 6; }
  .hero__launch { grid-column: 7 / span 6; }
  .profile__label { grid-column: 1 / -1; margin-bottom: 20px; }
  .profile__statement { grid-column: 1 / -1; }
  .approach__img { grid-column: 1 / span 6; }
  .approach__body { grid-column: 7 / span 6; }
  .devs__intro, .devs__aside { grid-column: 1 / -1; }
  .row { grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 24px; }
  .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .siteplan { grid-column: 7 / span 6; }
  .duo__a { grid-column: 1 / span 7; }
  .duo__b { grid-column: 8 / span 5; }
  .cards .card { grid-column: span 6; }
  .cards .card--feature { grid-column: 1 / -1; grid-row: auto; }
  .card--feature .card__img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .card--side .card__img { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .ss__big { grid-column: 1 / span 7; }
  .ss__side { grid-column: 8 / span 5; }
  .spec-split .specs { grid-template-columns: 1fr; }
  .row__type { display: none; }
  .launch__media { grid-column: 1 / -1; min-height: 440px; }
  .launch__body { grid-column: 1 / span 9; }
  .enq__side, .form { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
  .footer__news { grid-column: 1 / -1; }
  .story__label { grid-column: 1 / -1; }
  .story__lede { grid-column: 1 / span 11; }
  .story__body { grid-column: 1 / span 6; }
  .spec__list { grid-column: 1 / -1; }
  .spec__time { grid-column: 1 / span 8; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
  .nav__toggle i { display: grid; gap: 5px; width: 22px; }
  .nav__toggle i::before, .nav__toggle i::after { content: ""; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
  body.menu-open .nav__toggle i::before { transform: translateY(3px) rotate(45deg); }
  body.menu-open .nav__toggle i::after { transform: translateY(-3px) rotate(-45deg); }
  .hero__intro, .hero__launch { grid-column: 1 / -1; }
  .hero__launch { margin-top: 28px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .approach__img, .approach__body { grid-column: 1 / -1; }
  .approach__img { aspect-ratio: 4 / 3; }
  .focus__col { grid-column: 1 / -1; }
  .focus__col:last-child { padding-left: 0; border-left: 0; padding-top: 64px; border-top: 1px solid var(--basalt-line); }
  .launch__body { grid-column: 1 / -1; }
  .spec__time { grid-column: 1 / -1; }
}

/* ---------- Phones: swipe rows ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__guides .grid { grid-template-columns: repeat(4, 1fr); }
  .hero__guides span:nth-child(n+5) { display: none; }
  .section-head { margin-bottom: 40px; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; contain: paint; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  .devlist {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
    scrollbar-width: none; contain: paint;
  }
  .devlist::-webkit-scrollbar { display: none; }
  .row {
    flex: none; width: 80vw; max-width: 340px; scroll-snap-align: start;
    grid-template-columns: 1fr; row-gap: 6px; padding: 0 0 18px; border-bottom: 1px solid var(--line);
  }
  .row__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 14px; background: var(--surface); }
  .row__img img { width: 100%; height: 100%; object-fit: cover; }
  .row__name { font-size: 28px; }
  .row__type { display: block; }
  .row__status { margin-top: 8px; }
  .row__arrow { display: none; }
  .swipe-progress { display: block; height: 1px; background: var(--line); margin-top: 22px; position: relative; overflow: hidden; }
  .swipe-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, .2)); transition: transform .15s linear; }

  .aperture { height: 180vh; }
  .aperture__meta { flex-direction: column; align-items: flex-start; }
  .aperture__meta .dim { width: 100%; }

  .launch__media { min-height: 0; aspect-ratio: 4 / 5; }
  .form { grid-template-columns: 1fr; }
  .form fieldset, .field--full, .form__foot { grid-column: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; contain: paint; }
  .chip { flex: none; }
  .form__foot .btn { width: 100%; }

  .footer__col { grid-column: span 6; }
  .criteria div, .spec__list div { grid-template-columns: 1fr; gap: 4px; }
  .services li { flex-direction: column; gap: 2px; }
  .services li span:last-child { text-align: left; }

  .facts {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 1px solid var(--ink);
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; contain: paint;
  }
  .facts::-webkit-scrollbar { display: none; }
  .fact, .fact:nth-child(even), .fact:not(:nth-child(4n+1)) { flex: none; width: 44vw; scroll-snap-align: start; padding: 20px 16px 22px 0; border-left: 0; border-right: 1px solid var(--line); margin-right: 16px; }
  .story__lede, .story__body { grid-column: 1 / -1; }
  .gallery__item { width: 84vw; }
  .gallery__btn { width: 42px; height: 42px; }
  .gallery__progress { width: 40px; }

  .process__track, .specs, .timeline, .duo {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
    scrollbar-width: none; contain: paint;
  }
  .process__track::-webkit-scrollbar, .specs::-webkit-scrollbar, .timeline::-webkit-scrollbar, .duo::-webkit-scrollbar { display: none; }
  .stage { flex: none; width: 74vw; scroll-snap-align: start; }
  .stage:nth-child(even) { margin-top: 0; }
  .spec { flex: none; width: 76vw; scroll-snap-align: start; }
  .ms { flex: none; width: 60vw; scroll-snap-align: start; }
  .duo figure, .duo__b { flex: none; width: 80vw; margin-top: 0; scroll-snap-align: start; }
  .duo__frame img { height: 100%; }
  .siteplan { grid-column: 1 / -1; }
  .figure__value { font-size: 36px; }
  .launch__inset { width: 40%; border-width: 5px; }
  .marquee img { height: 260px; }
  .marquee figure:nth-child(even) img { height: 190px; }

  .hero__bar { grid-template-columns: 1fr; gap: 18px; }
  .ss__big, .ss__side { grid-column: 1 / -1; }
  .ss__side { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
  .ss__small { width: 42%; }
  .ss__side .lede { flex: 1; min-width: 150px; font-size: 22px; }

  .panels, .cards {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; contain: paint;
  }
  .panels { height: 76svh; padding-inline: var(--pad); scroll-padding-inline: var(--pad); background: var(--ground); padding-block: 0; }
  .panels::-webkit-scrollbar, .cards::-webkit-scrollbar { display: none; }
  .panel { flex: none; width: 84vw; scroll-snap-align: start; }
  .panel__body { gap: 12px; }
  .panel__body .display { font-size: clamp(32px, 10vw, 44px); }
  .devs__top .display { font-size: clamp(38px, 11.5vw, 52px); }
  .devs__top { min-width: 0; }
  .devs__top .filters { max-width: 100%; }
  .contact__inner .display, .lf__inner .display { font-size: clamp(44px, 14vw, 64px); }
  .cards { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .cards .card { flex: none; width: 80vw; scroll-snap-align: start; margin-top: 0; }
  .cards .card__img { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .cards .card__name { font-size: 30px; }
  .devs__top .filters { flex-wrap: nowrap; }

  .lf { min-height: 88svh; }
  .lf__inset { top: 96px; bottom: auto; width: 34vw; outline-offset: 5px; }
  .contact { grid-template-columns: 1fr; }
  .contact__img { min-height: 56svh; }
  .contact__list { grid-template-columns: 1fr; }

  .spec-split__img { grid-column: 1 / -1; position: relative; top: 0; aspect-ratio: 4 / 3; }
  .spec-split .specs { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .rv { transform: none; opacity: 1; }
  .aperture { height: auto; }
  .aperture__sticky { position: relative; }
  .aperture.is-closed .aperture__text > .wrap > * { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none !important; }
}
