/* =============================================================
   Realvia Group — styles.css
   Archetype: Editorial Light (coastal limestone variant)
   Display: Playfair Display · Body: Manrope
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette — Realvia Group */
  --accent-100: #F0EBF8;
  --accent-200: #DCD0EE;
  --accent-300: #BFA9DF;
  --accent-400: #8E6DC0;
  --accent-500: #6B4A9E;
  --accent-600: #593C85;
  --accent-700: #472F6B;
  --accent-800: #35234F;
  --accent-900: #241738;
  --gray-100: #EDEDEF;
  --gray-200: #DCDCE0;
  --gray-300: #B9B9C1;
  --gray-500: #86868F;
  --gray-600: #6C6C75;
  --gray-700: #55555D;
  --gray-800: #3D3D44;
  --gray-900: #26262B;

  /* Semantic tokens */
  --bg:        #F4F3F6;
  --bg-2:      var(--accent-100);
  --paper:     #FAF9FB;
  --ink:       #17151C;
  --head:      var(--accent-900);
  --ink-2:     var(--gray-800);
  --mute:      var(--gray-600);
  --line:      rgba(23, 21, 28, 0.18);
  --line-2:    rgba(23, 21, 28, 0.09);
  --accent:    var(--accent-500);
  --accent-ink:var(--accent-600);
  --deep:      var(--accent-900);
  --deep-2:    var(--accent-800);
  --on-deep:   #F4F3F6;
  --on-deep-2: rgba(244, 243, 246, 0.74);
  --line-deep: rgba(244, 243, 246, 0.16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw:   1320px;
  --nav-h:  76px;
  --radius: 4px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--head);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
em { font-style: italic; }
::selection { background: var(--accent-200); color: var(--accent-900); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .45s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); position: relative; }
.section-tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.bg-dune { background: var(--bg-2); }
.bg-paper { background: var(--paper); }
.bg-deep { background: var(--deep); color: var(--on-deep); }
.bg-deep h2, .bg-deep h3, .on-dark h2, .hero h1, .menu a, .contrast-col.usual h3 { color: var(--on-deep); }
html:not(.js) .js-only { display: none !important; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.bg-deep .kicker, .on-dark .kicker { color: var(--accent-300); }

.display-xl { font-size: clamp(2.5rem, 5.8vw, 5.4rem); line-height: 1.02; }
.display-l  { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.display-m  { font-size: clamp(1.75rem, 3.1vw, 2.75rem); }
.display-s  { font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.12; }
.display-xl em, .display-l em, .display-m em, .display-s em { color: var(--accent-ink); }
.bg-deep .display-l em, .bg-deep .display-m em, .on-dark em { color: var(--accent-300); }

.lede { font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.bg-deep .lede { color: var(--on-deep-2); }
.body-l { font-size: 1.075rem; color: var(--ink-2); }
.muted { color: var(--mute); }
.small { font-size: 13.5px; }
.num {
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--accent-ink); letter-spacing: .02em;
}

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.section-head .lede { margin-top: .25rem; }
@media (min-width: 960px) {
  .section-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap .35s var(--ease-out), color .25s;
}
.link-arrow:hover { gap: 1rem; color: var(--accent-ink); }
.bg-deep .link-arrow:hover, .on-dark .link-arrow:hover { color: var(--accent-300); }

/* =============================================================
   5. Components
   ============================================================= */

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--accent-900); --btn-fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: .95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--btn-bg); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--paper); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { --btn-bg: var(--on-deep); --btn-fg: var(--accent-900); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--paper); }
.bg-deep .btn-ghost, .on-dark .btn-ghost { --btn-fg: var(--on-deep); border-color: var(--line-deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.arrow { width: 16px; height: 16px; flex: none; }

/* ---- Brand logo ---- */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { height: 40px; width: auto; }
.brand-logo .logo-light { display: none; }
body.has-dark-hero .nav:not(.is-solid) .brand-logo .logo-dark,
.nav-open .nav .brand-logo .logo-dark, .footer .brand-logo .logo-dark { display: none; }
body.has-dark-hero .nav:not(.is-solid) .brand-logo .logo-light,
.nav-open .nav .brand-logo .logo-light, .footer .brand-logo .logo-light { display: block; }
.footer .brand-logo img { height: 44px; }
@media (max-width: 539px) { .brand-logo img { height: 28px; } }

/* ---- Brand wordmark (legacy) ---- */
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem; line-height: 1;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .01em;
}
.brand-mark { width: 26px; height: 26px; align-self: center; color: var(--accent); }
.brand small {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; opacity: .8;
}

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--ink);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
}
.nav.is-solid, body:not(.has-dark-hero) .nav {
  background: rgba(244, 243, 246, 0.94);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid, body:not(.has-dark-hero) .nav {
    background: rgba(244, 243, 246, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}
body.has-dark-hero .nav:not(.is-solid) { color: var(--on-deep); }
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-links { display: none; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.2rem); list-style: none; padding: 0; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500; letter-spacing: .02em; padding-block: .4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav .btn { min-height: 44px; padding: .7rem 1.2rem; font-size: 13.5px; }
body.has-dark-hero .nav:not(.is-solid) .btn { --btn-bg: var(--on-deep); --btn-fg: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .6rem 0;
}
.nav-toggle-lines { position: relative; width: 22px; height: 10px; }
.nav-toggle-lines::before, .nav-toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle-lines::before { top: 0; }
.nav-toggle-lines::after { top: 8px; }
.nav-open .nav-toggle-lines::before { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle-lines::after { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--deep); color: var(--on-deep);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out), opacity .3s, visibility 0s .7s;
}
.nav-open .menu { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease-out), opacity .3s, visibility 0s; }
.nav-open .nav { color: var(--on-deep) !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.menu ul { list-style: none; padding: 0; display: grid; gap: .3rem; }
.menu li a {
  font-family: var(--serif); font-size: clamp(2rem, 7.5vw, 2.8rem); line-height: 1.2;
  display: inline-flex; align-items: baseline; gap: 1rem;
}
.menu li a span { font-family: var(--sans); font-size: 12px; color: var(--accent-300); letter-spacing: .12em; }
.menu-foot { display: grid; gap: 1.2rem; font-size: 14px; color: var(--on-deep-2); }
html:not(.js) .menu { display: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .menu { display: none !important; }
}

/* ---- Image frames ---- */
.frame { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11 { aspect-ratio: 1 / 1; }
.caption { margin-top: .8rem; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }

/* ---- Cards ---- */
.card-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 720px) { .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.service-card { display: grid; gap: 1.1rem; }
.service-card .frame { aspect-ratio: 4 / 3; }
.service-card .frame img { transition: transform 1.2s var(--ease-out); }
.service-card:hover .frame img { transform: scale(1.05); }
.service-card h3 { font-size: 1.5rem; }
.service-card p { color: var(--ink-2); font-size: 15.5px; }

.feature { padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; }
.feature h3 { font-size: 1.41rem; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.bg-deep .feature { border-color: var(--line-deep); }
.bg-deep .feature p { color: var(--on-deep-2); }

/* ---- Tags ---- */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}

/* ---- Forms ---- */
.form-shell {
  background: var(--paper); border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  box-shadow: 0 40px 80px -40px rgba(36, 23, 56, 0.25), 0 0 0 1px var(--line-2);
}
.form-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.form-progress-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.form-progress-bar span {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, .333)); transition: transform .6s var(--ease-out);
}
.form-progress-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
html:not(.js) .form-progress { display: none; }

.form-step { border: 0; padding: 0; display: grid; gap: 1.75rem; min-width: 0; }
.form-step + .form-step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-2); }
html.js .is-stepped .form-step { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
html.js .is-stepped .form-step.is-current { display: grid; animation: stepIn .6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }
.form-step legend { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 1.95rem); line-height: 1.1; padding: 0; margin-bottom: .25rem; }
.form-step legend { float: left; width: 100%; }
.form-step legend + * { clear: both; }
.form-step legend + p { margin-top: -1rem; color: var(--mute); font-size: 15px; }

.field { display: grid; gap: .5rem; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .field-row.two { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.field > label, .field-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.field-label .opt, .field > label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mute); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23241738' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(23, 21, 28, .3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px rgba(107, 74, 158, .2); }
.input:user-invalid, .select:user-invalid { border-color: #B4533A; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 500; background: var(--bg);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chip span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--mute);
  transition: background-color .3s, border-color .3s;
}
.chip:hover span { border-color: rgba(23, 21, 28, .35); }
.chip input:checked + span { background: var(--accent-900); color: var(--paper); border-color: var(--accent-900); }
.chip input:checked + span::before { background: var(--accent-300); border-color: var(--accent-300); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-actions .btn-back { font-size: 14px; font-weight: 600; color: var(--mute); padding: .5rem 0; }
.form-actions .btn-back:hover { color: var(--ink); }
.form-note { font-size: 12.5px; color: var(--mute); margin-top: 1.25rem; max-width: 52em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: left; gap: 1.2rem; }
.form-success svg { width: 56px; height: 56px; color: var(--accent); }
.form-success svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-sent .form-success { display: grid; animation: stepIn .7s var(--ease-out); }
.is-sent .form-success svg path { animation: draw 1s .2s var(--ease-out) forwards; }
.is-sent .form-body { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* ---- Details / FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.6rem; max-width: 46em; color: var(--ink-2); }

/* =============================================================
   6. Sections
   ============================================================= */
main { display: block; }

/* ---- Home hero ---- */
.hero {
  position: relative; min-height: min(100vh, 860px); min-height: min(100svh, 860px);
  display: grid; align-items: end;
  color: var(--on-deep); background: var(--deep);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: -40px 0 0 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform-origin: 60% 40%;
  animation: heroDrift 26s var(--ease-soft) infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 17, 44, .55) 0%, rgba(28, 17, 44, 0) 22%),
    linear-gradient(0deg, rgba(28, 17, 44, .88) 0%, rgba(28, 17, 44, .45) 40%, rgba(28, 17, 44, .05) 70%),
    linear-gradient(90deg, rgba(28, 17, 44, .45) 0%, rgba(28, 17, 44, 0) 60%);
}
.hero-inner {
  width: 100%; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 4rem);
  display: grid; gap: clamp(2rem, 4vw, 3rem);
}
.hero-copy { max-width: 60rem; display: grid; gap: 1.5rem; }
.hero .kicker { color: var(--accent-200); }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: 1.02; letter-spacing: -.02em; }
.hero-title em { color: var(--accent-200); }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(244, 243, 246, .86); max-width: 36em; }

.line-reveal { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-reveal > span { display: block; }
html.js .line-reveal > span { transform: translateY(105%); animation: lineUp 1.3s var(--ease-out) forwards; }
html.js .line-reveal:nth-child(2) > span { animation-delay: .12s; }
html.js .line-reveal:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
html.js .fade-up { opacity: 0; animation: fadeUp 1.2s var(--ease-out) forwards; animation-delay: var(--d, .5s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Composer (signature) ---- */
.composer {
  background: rgba(244, 243, 246, 0.97); color: var(--ink);
  border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  display: grid; gap: 1.25rem; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.composer-label { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.composer-sentence {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.05vw, 1.7rem); line-height: 1.6;
  color: var(--ink);
}
.slot { position: relative; display: inline-block; white-space: nowrap; }
.slot select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--serif); font-style: italic; font-size: inherit; font-weight: 500; line-height: 1.2;
  color: var(--accent-ink); background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(107, 74, 158, .5); border-radius: 0;
  padding: 0 1.25em 0 .1em; cursor: pointer; max-width: 100%;
  transition: border-color .3s, color .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23593C85' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .15em center; background-size: .5em auto;
}
.slot select:hover, .slot select:focus { border-bottom-color: var(--ink); color: var(--ink); outline: none; }
.slot select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.composer .btn { justify-self: start; }
@media (min-width: 1100px) {
  .composer { grid-template-columns: 1fr auto; gap: 1rem 3rem; }
  .composer-label { grid-column: 1 / -1; }
  .composer .btn { justify-self: end; }
}

.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  font-size: 13px; color: rgba(244, 243, 246, .7);
}
.hero-foot a { border-bottom: 1px solid rgba(244, 243, 246, .35); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.hero-foot a:hover { color: var(--on-deep); border-color: var(--on-deep); }
.scroll-cue { display: none; align-items: center; gap: .8rem; }
.scroll-cue i { width: 1px; height: 36px; background: rgba(244, 243, 246, .35); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--on-deep); animation: cue 2.4s var(--ease-soft) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (min-width: 720px) { .scroll-cue { display: inline-flex; } }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(1.75rem, 4vw, 3.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
.page-hero-copy { display: grid; gap: 1.5rem; }
.page-hero-copy .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .75rem; }
.page-hero .frame { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: 1.05fr 1fr; }
  .page-hero .frame { aspect-ratio: 4 / 5; }
}
.page-hero .frame-wide { aspect-ratio: 21 / 9; margin-top: clamp(2.5rem, 5vw, 4rem); }

.crumbs { display: flex; gap: .6rem; font-size: 12.5px; color: var(--mute); letter-spacing: .04em; }
.crumbs a:hover { color: var(--ink); }

/* ---- Statement ("Real estate should be personal") ---- */
.statement-grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
@media (min-width: 960px) { .statement-grid { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.statement-copy { display: grid; gap: 1.75rem; }
.asks { list-style: none; padding: 0; margin-top: 1rem; border-top: 1px solid var(--line); }
.asks li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.asks li strong { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.2; }
.asks li strong + span { display: block; color: var(--mute); font-size: 14.5px; }
.statement-figure { position: relative; }
.statement-figure .frame { aspect-ratio: 4 / 5; }
.statement-figure .quote {
  position: absolute; left: clamp(-3rem, -4vw, -1rem); bottom: 2rem; max-width: 17rem;
  background: var(--paper); padding: 1.3rem 1.4rem; border-radius: var(--radius);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.3;
  box-shadow: 0 24px 50px -24px rgba(36, 23, 56, .35);
}
@media (max-width: 959px) { .statement-figure .quote { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; } }

/* ---- Steps (home short + buy detailed) ---- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .steps.row { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.step { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .7rem; align-content: start; }
@media (min-width: 960px) {
  .steps.row .step { padding: 2rem 2rem 0 0; border-bottom: 0; border-top: 1px solid var(--line); position: relative; }
  .steps.row .step::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--accent);
    transition: width 1.2s var(--ease-out);
  }
  .steps.row .step.is-revealed::before { width: 100%; }
  .steps.row .step:nth-child(2)::before { transition-delay: .15s; }
  .steps.row .step:nth-child(3)::before { transition-delay: .3s; }
  .steps.row .step:nth-child(4)::before { transition-delay: .45s; }
}
.step h3 { font-size: 1.54rem; }
.step p { color: var(--ink-2); font-size: 15.5px; max-width: 30em; }

/* Buy page — sticky process */
.process { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) {
  .process { grid-template-columns: .9fr 1.1fr; }
  .process-aside { position: sticky; top: calc(var(--nav-h) + 3rem); align-self: start; }
}
.process-aside { display: grid; gap: 1.5rem; }
.process-track { position: relative; }
.process-list { list-style: none; padding: 0; }
.process-track::before { content: ""; position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.process-line { position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(0); }
html:not(.js) .process-line { display: none; }
.process-item {
  position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.process-item:last-child { padding-bottom: 0; }
.process-dot {
  position: relative; z-index: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--mute);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.process-item.is-active .process-dot { background: var(--accent-900); color: var(--paper); border-color: var(--accent-900); }
.process-body { display: grid; gap: .8rem; padding-top: .35rem; }
.process-body h3 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.process-body p { color: var(--ink-2); max-width: 34em; }
.process-body ul { padding-left: 1.1rem; color: var(--ink-2); font-size: 15px; display: grid; gap: .3rem; }
.process-body li::marker { color: var(--accent); }

/* ---- Contrast (why different) ---- */
.contrast { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .contrast { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.contrast-col { border-radius: 6px; padding: clamp(1.75rem, 3.5vw, 2.75rem); display: grid; gap: 1.25rem; align-content: start; }
.contrast-col.usual { border: 1px solid var(--line-deep); }
.contrast-col.ours { background: var(--on-deep); color: var(--ink); }
.contrast-col h3 { font-size: 1.67rem; }
.contrast-col ul { list-style: none; padding: 0; display: grid; }
.contrast-col li { padding: .95rem 0; border-top: 1px solid var(--line-deep); display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: baseline; }
.contrast-col.ours li { border-color: var(--line); }
.contrast-col.usual li { color: var(--on-deep-2); }
.contrast-col li svg { width: 14px; height: 14px; transform: translateY(2px); }
.contrast-col.usual svg { color: rgba(244, 243, 246, .4); }
.contrast-col.ours svg { color: var(--accent-ink); }
.contrast-col.ours .kicker { color: var(--accent-ink); }
.bg-deep .contrast-col.ours h3 { color: var(--head); }

/* ---- Split band (invest) ---- */
.split-band { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split-band { grid-template-columns: 1fr 1fr; } .split-band.flip > :first-child { order: 2; } }
.split-band .frame { aspect-ratio: 4 / 3; }
.split-copy { display: grid; gap: 1.5rem; }
.list-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.bg-deep .tag { border-color: var(--line-deep); color: var(--on-deep-2); }

/* ---- Opportunities (brief-first cards) ---- */
.opps { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 720px) { .opps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .opps { grid-template-columns: repeat(4, 1fr); } }
.opp { display: grid; gap: 1.1rem; align-content: start; }
.opp-brief {
  font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.3; color: var(--ink-2);
  padding-left: 1rem; border-left: 1px solid var(--accent); min-height: 5.2em;
}
.opp .frame { aspect-ratio: 4 / 5; }
.opp .frame img { transition: transform 1.4s var(--ease-out), filter .8s; }
.opp:hover .frame img { transform: scale(1.06); }
.opp-meta { display: grid; gap: .35rem; }
.opp-meta h3 { font-size: 1.36rem; line-height: 1.12; }
.opp-meta p { font-size: 14px; color: var(--mute); }
.opp .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(244, 243, 246, .92); border-color: transparent; color: var(--ink); }

/* ---- Markets ---- */
.markets { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) { .markets { grid-template-columns: 1fr 1fr; align-items: start; } }
.markets-stage { display: none; }
@media (min-width: 960px) {
  .markets-stage { display: block; position: sticky; top: calc(var(--nav-h) + 2rem); aspect-ratio: 4 / 5; }
  .markets-stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out);
  }
  .markets-stage img.is-active { opacity: 1; transform: scale(1); }
  .markets-stage figcaption {
    position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
    background: rgba(244, 243, 246, .94); color: var(--ink); padding: .55rem .9rem; border-radius: var(--radius);
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  }
}
.market-list { list-style: none; padding: 0; border-top: 1px solid var(--line-deep); }
.market {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: baseline;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line-deep); cursor: default;
  transition: padding-left .5s var(--ease-out);
}
.market h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); transition: color .4s; }
.market .coast { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-300); }
.market p { grid-column: 1 / -1; color: var(--on-deep-2); font-size: 15px; max-width: 36em; }
.market .m-img { grid-column: 1 / -1; margin-top: .9rem; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.market .m-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .market .m-img { display: none; }
  .market.is-active { padding-left: 1rem; }
  .market.is-active h3 { color: var(--accent-200); }
}
.markets-more { margin-top: 1.5rem; color: var(--on-deep-2); font-size: 14.5px; }

/* ---- Marquee band ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.2rem; background: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.7rem); white-space: nowrap;
  padding-inline: 1.6rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3.2rem;
}
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- About band (home) ---- */
.about-band { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .about-band { grid-template-columns: 1fr 1fr; } }
.about-band .frames { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: end; }
.about-band .frames .frame:first-child { aspect-ratio: 4 / 5; }
.about-band .frames .frame:last-child { aspect-ratio: 3 / 4; margin-bottom: -2.5rem; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: .5rem; }
.principles div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.principles strong { font-weight: 600; }
.principles span { color: var(--mute); display: block; font-size: 14.5px; }

/* ---- Final CTA ---- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; color: var(--on-deep); background: var(--deep); }
.cta-final-media { position: absolute; inset: 0; z-index: -2; }
.cta-final-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28, 17, 44, .92) 0%, rgba(28, 17, 44, .7) 55%, rgba(28, 17, 44, .4) 100%); }
.cta-final-inner { display: grid; gap: 2rem; max-width: 46rem; }
.cta-final .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; }
.contact-list .field-label { color: var(--mute); }
.contact-list a, .contact-list p { font-family: var(--serif); font-size: 1.41rem; line-height: 1.25; }
.contact-list a { transition: color .3s; }
.contact-list a:hover { color: var(--accent-ink); }

/* ---- Credits ---- */
.credits-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.credits-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); display: grid; gap: .2rem; }
.credits-list strong { color: var(--ink); font-weight: 600; }
.credits-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.credits-list a:hover { text-decoration-color: currentColor; }

/* ---- Footer ---- */
.footer { background: var(--deep); color: var(--on-deep); padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line-deep); }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 1.5rem; align-content: start; }
.footer-brand p { color: var(--on-deep-2); max-width: 26em; font-size: 15px; }
.footer h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-300); margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: 15px; }
.footer ul a { color: var(--on-deep-2); transition: color .3s; }
.footer ul a:hover { color: var(--on-deep); }
.footer-bottom { padding-top: 2rem; display: grid; gap: 1rem; font-size: 12.5px; color: rgba(244, 243, 246, .55); }
@media (min-width: 960px) { .footer-bottom { grid-template-columns: 1fr auto; } }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--on-deep); }

/* ---- Misc layouts ---- */
.two-col { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col.wide-left { grid-template-columns: 1.2fr .8fr; } }
@media (min-width: 960px) { .two-col.form-section { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.two-col.form-section { align-items: start; }
.stack { display: grid; gap: 1.5rem; align-content: start; }
.check-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.check-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: baseline; color: var(--ink-2); }
.check-list svg { width: 14px; height: 14px; color: var(--accent-ink); transform: translateY(2px); }
.bg-deep .check-list li { color: var(--on-deep-2); }
.bg-deep .check-list svg { color: var(--accent-300); }
.disclaimer {
  font-size: 13.5px; color: var(--mute); border-left: 1px solid var(--accent); padding-left: 1rem; max-width: 52em;
}
.bg-deep .disclaimer { color: var(--on-deep-2); }

.types { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
@media (min-width: 720px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .8rem; align-content: start; transition: background-color .5s var(--ease-out); }
.type:hover { background: var(--paper); }
@media (min-width: 1100px) { .type-wide { grid-column: span 2; } }
.type h3 { font-size: 1.5rem; }
.type p { color: var(--ink-2); font-size: 15px; }
.type .num { font-size: 1rem; }

/* =============================================================
   7. Effects (reveals)
   ============================================================= */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensive: never let split/reveal conflicts hide text */
.reveal[data-split] { opacity: 1; transform: none; }

html.js [data-clip] { clip-path: inset(4% 3% 4% 3%); transition: clip-path .8s var(--ease-out); }
html.js [data-clip] img { transform: scale(1.06); transition: transform 1s var(--ease-out); }
html.js [data-clip].is-revealed { clip-path: inset(0 0 0 0); }
html.js [data-clip].is-revealed img { transform: scale(1); }
html.js .service-card:hover [data-clip].is-revealed img { transform: scale(1.05); }

/* =============================================================
   8. Responsive fine-tuning
   ============================================================= */
@media (max-width: 539px) {
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .composer-sentence { font-size: 1.18rem; line-height: 1.75; }
  .slot { white-space: normal; }
  .slot select { max-width: 100%; white-space: normal; }
  .composer .btn { width: 100%; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .form-actions .btn { width: 100%; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .about-band .frames .frame:last-child { margin-bottom: 0; }
}

/* =============================================================
   9. Reduced motion — intrusive effects only
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: scale(1.04); }
  .marquee-track { animation-duration: 140s; }
  .scroll-cue i::after { animation: none; }
}

/* =============================================================
   10. Off-market landing page (off-market.html)
   ============================================================= */
.lp-nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lp-phone { display: none; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
@media (min-width: 720px) { .lp-phone { display: inline; } }
@media (max-width: 539px) { .lp-nav .btn { padding: .6rem .9rem; font-size: 12.5px; min-height: 40px; } .lp-nav .btn .arrow { display: none; } }

/* Hero */
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--deep); color: var(--on-deep);
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(7rem, 12vw, 10rem);
}
.lp-hero-media { position: absolute; inset: 0; z-index: -2; }
.lp-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 26s var(--ease-soft) infinite alternate; }
.lp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 17, 44, .94) 0%, rgba(28, 17, 44, .78) 45%, rgba(28, 17, 44, .45) 100%),
    linear-gradient(0deg, rgba(28, 17, 44, .9) 0%, rgba(28, 17, 44, 0) 40%);
}
.lp-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1100px) { .lp-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.lp-hero-copy { display: grid; gap: 1.6rem; }
.lp-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(191, 169, 223, .14); border: 1px solid rgba(191, 169, 223, .35);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-200);
}
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #7FD6A3; box-shadow: 0 0 0 0 rgba(127, 214, 163, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 214, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 214, 163, 0); } }
.lp-title { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.06; letter-spacing: -.02em; color: var(--on-deep); }
.lp-title em { color: var(--accent-300); }
.lp-sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(244, 243, 246, .86); max-width: 34em; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.lp-hero .btn-ghost { --btn-fg: var(--on-deep); border-color: var(--line-deep); }
.lp-proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: 14px; color: rgba(244, 243, 246, .82); }
.lp-proof li { display: inline-flex; align-items: center; gap: .5rem; }
.lp-proof svg { width: 14px; height: 14px; color: var(--accent-300); }

/* Featured deal card */
.lp-featured {
  display: block; background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.lp-featured:hover { transform: translateY(-6px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6); }
.lp-featured-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.lp-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.lp-featured:hover .lp-featured-media img { transform: scale(1.05); }
.lp-featured-body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .6rem; }
.lp-featured h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.lp-new {
  position: absolute; top: 1rem; right: 1rem; padding: .35rem .7rem; border-radius: 999px;
  background: #7FD6A3; color: #0F2E1D; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

/* Deal badges + cards */
.deal-badge {
  position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .75rem; border-radius: 999px; background: var(--accent-900); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.deal-badge svg { width: 12px; height: 12px; color: var(--accent-300); }
.deal-loc { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); }
.deal-specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 0; font-size: 14px; color: var(--ink-2); }
.deal-specs li + li::before { content: "·"; margin: 0 .55rem; color: var(--gray-300); }
.deal-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.deal-price { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--head); display: grid; gap: .3rem; }
.deal-price small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.lp-deals { position: relative; z-index: 2; margin-top: clamp(-5rem, -8vw, -3.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.lp-deals-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem;
  background: var(--bg); border-radius: 10px 10px 0 0; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 2rem;
}
.lp-filter { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; background: var(--gray-100); border-radius: 999px; }
.lp-filter button { padding: .55rem 1.1rem; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background-color .3s, color .3s; }
.lp-filter button:hover { color: var(--head); }
.lp-filter button.is-active { background: var(--accent-900); color: var(--paper); }

.deal-grid {
  display: grid; gap: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--bg); padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); border-radius: 0 0 10px 10px;
}
@media (min-width: 720px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .deal-grid { grid-template-columns: repeat(3, 1fr); } }
.deal {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line-2), 0 20px 40px -28px rgba(36, 23, 56, .35);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.deal:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line-2), 0 34px 60px -30px rgba(36, 23, 56, .45); }
.deal[hidden] { display: none; }
.deal-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.deal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.deal:hover .deal-media img { transform: scale(1.06); }
.deal-body { padding: 1.3rem 1.35rem 1.25rem; display: grid; gap: .65rem; flex: 1; align-content: start; }
.deal h3 { font-size: 1.4rem; line-height: 1.15; }
.deal-hl { display: flex; gap: .55rem; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.deal-hl svg { width: 13px; height: 13px; flex: none; color: var(--accent-500); transform: translateY(1px); }
.deal-foot { margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line-2); align-items: center; }
.deal .deal-cta { min-height: 44px; padding: .65rem 1rem; font-size: 13px; }
.deal-lock { display: flex; align-items: center; gap: .45rem; font-size: 12.5px; color: var(--mute); }
.deal-lock svg { width: 13px; height: 13px; }
.deal-more {
  background: var(--accent-900); color: var(--on-deep); padding: clamp(1.75rem, 3vw, 2.5rem);
  justify-content: center; gap: 1rem;
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(142, 109, 192, .45), transparent 60%);
}
.deal-more h3 { color: var(--on-deep); font-size: 1.7rem; }
.deal-more p { color: var(--on-deep-2); font-size: 15px; }
.deal-more .btn { align-self: flex-start; }
.deal-more-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(191, 169, 223, .16); color: var(--accent-300); }
.deal-more-icon svg { width: 22px; height: 22px; }
.lp-note { margin-top: 1.25rem; font-size: 12.5px; color: var(--mute); max-width: 60em; }

/* Role switch form */
.role-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: .3rem; background: var(--gray-100); border-radius: 999px; margin-bottom: 2rem; }
.role-switch label { position: relative; }
.role-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.role-switch span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .6rem; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; transition: background-color .3s, color .3s;
}
.role-switch input:checked + span { background: var(--accent-900); color: var(--paper); }
.role-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.5rem; }
.role-panel + .role-panel { margin-top: 1.5rem; }
html.js .role-panel[data-role-panel]:not(.is-active) { display: none; }
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent-500); }
.lp-access { background: linear-gradient(180deg, var(--bg) 0%, var(--accent-100) 100%); }

/* Sticky mobile CTA */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(244, 243, 246, .96); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -18px rgba(36, 23, 56, .3);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.lp-sticky .btn { width: 100%; }
.lp-sticky.is-visible { transform: none; }
@media (min-width: 960px) { .lp-sticky { display: none; } }
@media (max-width: 959px) { body.lp .footer { padding-bottom: 6rem; } }

@media (prefers-reduced-motion: reduce) {
  .lp-hero-media img { animation: none; }
  .lp-pill i { animation: none; }
}
html.js .deal.is-revealed:hover { transform: translateY(-6px); }

@media (min-width: 720px) {
  .deal-more { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2rem; }
  .deal-more h3 { grid-column: 2; }
  .deal-more p { grid-column: 2; margin-top: -.5rem; max-width: 46em; }
  .deal-more .deal-more-icon { grid-row: 1 / span 2; }
  .deal-more .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 719px) {
  .lp-deals-head { padding-inline: 1rem; }
  .deal-grid { padding-inline: .75rem; }
  .lp-filter { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lp-filter button { padding: .5rem .85rem; font-size: 13px; white-space: nowrap; }
}
@media (min-width: 960px) { .footer-top.lp-footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }

/* =============================================================
   11. Legal pages (terms.html, privacy.html) + footer legal links
   ============================================================= */
.legal-updated { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.legal { display: grid; gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal-toc { background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 1.5rem 1.75rem; }
.legal-toc ol { margin-top: .75rem; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; font-size: 14.5px; }
.legal-toc li { padding: .2rem 0; break-inside: avoid; }
.legal-toc a { color: var(--accent-600); }
.legal-toc a:hover { text-decoration: underline; }
.legal section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: .9rem; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: .85rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal li::marker { color: var(--accent-500); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.consent a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
