/* Aurelia Living
   Brand colours, exact from the logo: blue #242C83 and gold #C9AF69.
   Every other shade below is a tint or shade of those two. */
:root {
  --blue: #242C83;          /* brand blue: main surfaces, text on light */
  --gold: #C9AF69;          /* brand gold: accents, links, buttons */

  --indigo-950: #171C55;    /* footer: brand blue, deepest shade */
  --indigo-900: var(--blue);
  --indigo-800: #1D2470;    /* alternate sections: brand blue, one step darker */
  --indigo-600: #3B4499;    /* highlight: brand blue, lighter tint */
  --gold-hi: #E4D3A2;       /* brand gold, light tint (hover, sheen) */
  --gold-lo: #9C8447;       /* brand gold, dark shade (gradient edge) */
  --mist: #EEF0F8;          /* light sections: brand blue at 4% */
  --ink: var(--blue);
  --ink-soft: #4E5594;
  --on-dark: #F2F3FA;
  --on-dark-soft: rgba(242, 243, 250, .74);
  --line-dark: rgba(201, 175, 105, .3);
  --line-light: rgba(36, 44, 131, .16);

  --gold-grad: linear-gradient(115deg, #9C8447 0%, #C9AF69 38%, #E4D3A2 60%, #C9AF69 100%);

  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Albert Sans", system-ui, sans-serif;
  --f-brand: "Michroma", "Albert Sans", sans-serif;

  --fs-hero: clamp(2.6rem, 6.4vw, 6.25rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.3rem);

  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--indigo-900);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.005em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold-hi); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn-gold { background: var(--gold-grad); background-size: 160% 100%; color: var(--blue); box-shadow: 0 10px 30px -12px rgba(201, 175, 105, .6); }
.btn-gold:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(201, 175, 105, .45); color: var(--on-dark); backdrop-filter: blur(6px); background: rgba(15, 20, 66, .25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wide { width: 100%; }

.text-link {
  display: inline-block; font-weight: 600; text-decoration: none; color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 40% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(23, 28, 85, .78); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 64px; height: 43px; }
.brand-word {
  font-family: var(--f-brand); font-size: 1.08rem; letter-spacing: .22em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: .95rem; color: var(--on-dark-soft); transition: color .25s; }
.site-nav ul a:hover { color: var(--gold); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: transparent; border-radius: 50%; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--gold-hi); transition: transform .3s var(--ease); }
.nav-toggle .bars { top: 19px; }
.nav-toggle .bars::before { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--indigo-900); isolation: isolate; }
.hero[data-hero-video]:not([data-hero-video=""]) { background: var(--indigo-900) url("../assets/video/hero-poster.jpg") center / cover no-repeat; }
.hero-canvas, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 28, 85, .82) 0%, rgba(23, 28, 85, .35) 42%, rgba(23, 28, 85, 0) 70%),
    linear-gradient(0deg, rgba(23, 28, 85, .85) 0%, rgba(23, 28, 85, 0) 38%),
    linear-gradient(180deg, rgba(23, 28, 85, .55) 0%, rgba(23, 28, 85, 0) 22%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(72px, 13vh, 140px); }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.015em; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
/* Brand name leads; the tagline sits smaller beneath it */
.hero-title .line:first-child { font-size: clamp(3rem, 8.6vw, 8.25rem); line-height: 1; padding-bottom: .16em; }
.hero-title .line:nth-child(2) { font-size: clamp(1.6rem, 3.6vw, 3.4rem); line-height: 1.1; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); filter: drop-shadow(0 2px 22px rgba(23, 28, 85, .55)); text-wrap: balance; }
.hero-title .line:nth-child(2) > span {
  transition-delay: .14s;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.is-ready .hero-title .line > span { transform: none; }
.hero-lead { max-width: 46ch; font-size: var(--fs-lead); color: var(--on-dark-soft); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-lead, .hero-actions { opacity: 0; transform: translateY(14px); transition: opacity 1s .5s, transform 1s .5s var(--ease); }
.is-ready .hero-lead, .is-ready .hero-actions { opacity: 1; transform: none; }

.hero-status {
  position: absolute; right: var(--gutter); bottom: clamp(72px, 13vh, 140px);
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px 18px;
  font-size: .88rem; color: var(--on-dark-soft);
}
.status-track { grid-column: 1 / -1; width: 220px; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.status-track span { position: absolute; inset: 0; background: var(--gold-hi); transform-origin: left; transform: scaleX(0); }
.status-replay { background: none; border: 0; padding: 0; color: var(--gold); font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.status-replay.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Section rhythm ---------- */
.about, .build, .process, .promise, .areas, .faq, .consult { padding-block: var(--section); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p { font-size: var(--fs-lead); color: var(--on-dark-soft); margin: 0; }

/* Gold construction rule, echoing the logo's overshooting lines */
.rule { position: absolute; height: 1px; background: var(--gold); opacity: .55; }
.rule-a { left: 0; right: 30%; bottom: 0; }

/* ---------- About (light) ---------- */
.about { background: var(--mist); color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.statement { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.1; color: var(--blue); }
.about-body { font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); max-width: 46ch; }
.about-body .text-link { color: var(--blue); margin-top: 8px; }

/* ---------- What we build ---------- */
.build { background: var(--indigo-900); }
.build-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.build-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 220px; gap: 24px 56px; align-items: baseline;
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-dark); position: relative;
}
.build-item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.build-item:hover::before, .build-item:focus-within::before { transform: scaleX(1); }
.build-item h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.build-item p { margin: 0; color: var(--on-dark-soft); max-width: 52ch; }
.build-item .text-link { justify-self: end; }

/* ---------- Process ---------- */
.process { background: linear-gradient(180deg, var(--indigo-900) 0%, var(--indigo-800) 100%); overflow: hidden; padding-top: calc(var(--section) * .45); }
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 28px;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--indigo-900);
  font-family: var(--f-display); font-size: 1.15rem; color: var(--gold);
}
.step h3 { font-size: 1.45rem; margin-bottom: 12px; }
.step p { color: var(--on-dark-soft); font-size: .98rem; margin: 0; }
/* line runs through the markers and overshoots the edge, like the logo */
.steps-line { position: absolute; top: 22px; left: 0; right: calc(-1 * var(--gutter)); height: 1px; background: var(--line-dark); }
.steps-line span { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Promise ---------- */
.promise { background: var(--indigo-800); }
.promise-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 110px); }
.promise-grid h2 { max-width: 12ch; }
.promise-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0; }
.promise-list > div { padding: 28px 0 32px; border-top: 1px solid var(--line-dark); }
.promise-list dt { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 10px; color: var(--gold); }
.promise-list dd { margin: 0; color: var(--on-dark-soft); }

/* ---------- Areas ---------- */
.areas { background: var(--mist); color: var(--ink); }
.areas .section-head h2 { color: var(--blue); }
.areas .section-head p { color: var(--ink-soft); }
.areas .section-head { margin-bottom: 48px; }
.areas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
.areas-list li { padding: 24px 0 28px; border-top: 1px solid var(--line-light); }
.areas-list h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--blue); }
.areas-list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 920px) { .areas-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .areas-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--indigo-900); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-family: var(--f-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--gold-hi);
  transition: transform .35s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq summary:hover { color: var(--gold); }
.faq details p { color: var(--on-dark-soft); max-width: 60ch; padding-bottom: 26px; margin: 0; }

/* ---------- Consultation ---------- */
.consult { background: radial-gradient(120% 80% at 100% 0%, var(--indigo-600) 0%, var(--indigo-800) 45%, var(--indigo-900) 100%); }
.consult-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.consult-intro { position: sticky; top: 120px; }
.consult-intro h2 { margin-bottom: 22px; }
.consult-intro > p { font-size: var(--fs-lead); color: var(--on-dark-soft); max-width: 40ch; }
.consult-alt a { color: var(--gold); }
.consult-mark { width: 180px; height: 120px; margin-top: 56px; opacity: .9; }

.consult-form { display: grid; gap: 26px; }
.consult-form fieldset { border: 0; margin: 0; padding: 0; }
.consult-form legend, .field label { font-size: .95rem; color: var(--on-dark-soft); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 18px; border: 1px solid rgba(201, 175, 105, .3); border-radius: 999px;
  font-size: .95rem; transition: background-color .25s, border-color .25s, color .25s;
}
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--gold-hi); border-color: var(--gold); color: var(--indigo-950); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; }
.field label { display: block; }
.optional { color: rgba(242, 243, 250, .45); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--on-dark);
  background: rgba(23, 28, 85, .35); border: 1px solid rgba(201, 175, 105, .22); border-radius: 10px;
  padding: 14px 16px; transition: border-color .25s, background-color .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-hi) 50%), linear-gradient(135deg, var(--gold-hi) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(23, 28, 85, .55); }
.field ::placeholder { color: rgba(242, 243, 250, .38); }
.field.has-error input, .chips.has-error span { border-color: #FF9C8A; }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; padding: 14px 16px; border-radius: 10px; background: rgba(255, 156, 138, .12); color: #FFC9BE; font-size: .95rem; }
.form-fine { margin: -8px 0 0; font-size: .85rem; color: rgba(242, 243, 250, .5); text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-success { grid-column: 2; padding: 56px 0; }
.form-success:focus { outline: none; }
.success-mark { width: 120px; height: 80px; margin-bottom: 28px; }
.form-success h3 { font-size: var(--fs-h2); margin-bottom: 16px; }
.form-success p { font-size: var(--fs-lead); color: var(--on-dark-soft); max-width: 44ch; }
.form-success .preview-note { font-size: .95rem; color: var(--gold); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-950); padding: clamp(72px, 10vw, 120px) 0 36px; overflow: hidden; }
.footer-word {
  font-family: var(--f-brand); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  font-size: clamp(1.2rem, calc((100vw - 2 * var(--gutter)) / 13.4), 5.8rem); line-height: 1; margin: 0 0 56px;
  /* pinstriped letters, after the inline lines in the logo's wordmark */
  background:
    repeating-linear-gradient(180deg, transparent 0 2px, rgba(23, 28, 85, .92) 2px 4px),
    var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 40px 64px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.footer-tag { font-family: var(--f-display); font-size: 1.5rem; margin: 0; }
.footer-place { margin: 8px 0 0; color: var(--on-dark-soft); font-size: .95rem; }
.site-footer nav { display: grid; grid-template-columns: auto auto; gap: 10px 40px; }
.site-footer nav a, .footer-contact a { text-decoration: none; color: var(--on-dark-soft); transition: color .25s; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-legal { margin: 56px 0 0; font-size: .85rem; color: rgba(242, 243, 250, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav ul { gap: 22px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 44px 76px; position: relative; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .steps-line { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .steps-line span { transform-origin: top; transform: scaleY(var(--p, 0)); }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 28px;
    padding: 28px var(--gutter) 36px; background: rgba(23, 28, 85, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 1.2rem; font-family: var(--f-display); color: var(--on-dark); }
  .site-header.menu-open { background: rgba(23, 28, 85, .97); }
  .about-grid, .promise-grid, .faq-grid, .consult-grid { grid-template-columns: 1fr; }
  .build-item { grid-template-columns: 1fr; gap: 14px; }
  .build-item .text-link { justify-self: start; }
  .consult-intro { position: static; }
  .consult-mark { display: none; }
  .form-success { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-word { font-size: .86rem; letter-spacing: .14em; }
  .brand-mark { width: 50px; height: 34px; }
  .hero-content { bottom: 120px; }
  .hero-shade { background: linear-gradient(0deg, rgba(23, 28, 85, .94) 0%, rgba(23, 28, 85, .8) 48%, rgba(23, 28, 85, .15) 78%, rgba(23, 28, 85, .5) 100%); }
  .hero-status { left: var(--gutter); right: var(--gutter); bottom: 36px; grid-template-columns: 1fr auto; }
  .status-track { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .promise-list, .field-row { grid-template-columns: 1fr; }
  .site-footer nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* No WebGL: a still brand-coloured backdrop */
.hero.no-webgl { background: radial-gradient(90% 70% at 75% 40%, var(--indigo-600) 0%, var(--indigo-800) 45%, var(--indigo-950) 100%); }
