:root {
  --bg: #060708;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f1e8;
  --muted: #b5ab9c;
  --dim: #766f65;
  --gold: #c9a765;
  --gold-soft: rgba(201, 167, 101, 0.16);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Barlow Condensed", Arial Narrow, var(--body);
  --body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(201, 167, 101, 0.13), transparent 28%),
    linear-gradient(250deg, rgba(255, 255, 255, 0.055), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 30%),
    #060708;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 1px 9px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 36px), 1420px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 7, 8, 0.62);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
  transition: top 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.scrolled {
  top: 10px;
  border-color: rgba(201, 167, 101, 0.32);
  background: rgba(6, 7, 8, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 167, 101, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.45rem;
  background: rgba(201, 167, 101, 0.09);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand small,
.eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(247, 241, 232, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  color: #090909;
  background: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.12);
  transform: translate3d(calc(var(--hero-x, 0) * -18px), calc(var(--hero-parallax, 0px) + (var(--hero-y, 0) * -14px)), 0) scale(1.08);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: -2;
  background:
    radial-gradient(circle at var(--spot-x, 68%) var(--spot-y, 48%), rgba(201, 167, 101, 0.24), transparent 20%),
    linear-gradient(90deg, rgba(6, 7, 8, 0.94) 0%, rgba(6, 7, 8, 0.72) 42%, rgba(6, 7, 8, 0.24) 100%),
    linear-gradient(0deg, #060708 0%, rgba(6, 7, 8, 0.18) 40%, rgba(6, 7, 8, 0.72) 100%);
}

.hero::after {
  z-index: -1;
  opacity: 0.32;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 9vw 9vw;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-light {
  position: absolute;
  right: -16vw;
  bottom: 20svh;
  z-index: -1;
  width: 62vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 207, 150, 0.86), transparent);
  box-shadow: 0 0 42px rgba(201, 167, 101, 0.42), 0 0 120px rgba(201, 167, 101, 0.18);
  transform: translate3d(calc(var(--hero-x, 0) * 38px), calc(var(--hero-y, 0) * 26px), 0);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(calc(100% - 44px), var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 150px 0 120px;
  transform: translate3d(calc(var(--hero-x, 0) * 12px), calc(var(--hero-y, 0) * 8px), 0);
}

.hero-title {
  max-width: 940px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7.4vw, 8.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 630px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.hero-panel {
  position: absolute;
  right: max(22px, calc((100vw - var(--max)) / 2));
  bottom: 92px;
  z-index: 4;
  width: min(350px, calc(100% - 44px));
  padding: 24px;
  border: 1px solid rgba(201, 167, 101, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 8, 0.54);
  backdrop-filter: blur(22px);
  --motion-x: calc(var(--hero-x, 0) * -20px);
  --motion-y: calc(var(--hero-y, 0) * -14px);
}

.hero-panel > span,
.match-results-head span {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel dl {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.brand-ticker {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100%;
  margin-top: -1px;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-top: 1px solid rgba(201, 167, 101, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, #060708 0%, rgba(6, 7, 8, 0.82) 14%, rgba(6, 7, 8, 0.82) 86%, #060708 100%),
    rgba(6, 7, 8, 0.92);
}

.brand-ticker::before,
.brand-ticker::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 12vw;
  pointer-events: none;
  content: "";
}

.brand-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #060708, transparent);
}

.brand-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #060708, transparent);
}

.ticker-track {
  display: flex;
  flex: 0 0 max-content;
  gap: clamp(28px, 4vw, 72px);
  min-width: max-content;
  color: rgba(247, 241, 232, 0.5);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.8vw, 7.2rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 0.8;
  white-space: nowrap;
  will-change: transform;
  animation: tickerSpin 42s linear infinite;
}

@keyframes tickerSpin {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[data-parallax-card] {
  will-change: transform;
}

[data-parallax-card]:not(.reveal) {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.reveal[data-parallax-card] {
  --motion-y: var(--parallax-y, 0px);
}

.editorial-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr) minmax(220px, 0.48fr);
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  width: min(calc(100% - 44px), var(--max));
  min-height: 760px;
  margin: 0 auto;
  padding: 120px 0 105px;
}

.editorial-intro::before {
  position: absolute;
  top: 9%;
  left: 36%;
  width: 1px;
  height: 78%;
  content: "";
  background: linear-gradient(transparent, rgba(201, 167, 101, 0.44), transparent);
}

.intro-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.intro-frame::after,
.rhythm-track figure::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(6, 7, 8, 0.45));
}

.intro-frame img,
.rhythm-track img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.06);
}

.intro-frame-large {
  grid-row: 1 / 3;
  min-height: 620px;
}

.intro-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: center;
  grid-row: 1 / 3;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(201, 167, 101, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 7, 8, 0.52);
  backdrop-filter: blur(22px);
}

.intro-copy h2 {
  margin-bottom: 24px;
  max-width: 100%;
  font-size: clamp(2.1rem, 2.95vw, 3.45rem);
  line-height: 0.92;
  text-wrap: balance;
}

.intro-frame-top {
  min-height: 255px;
  margin-top: 34px;
}

.intro-frame-bottom {
  min-height: 350px;
  margin-bottom: 28px;
}

.section {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding: 150px 0;
  perspective: 1400px;
  scroll-margin-top: 150px;
  transform-style: preserve-3d;
}

main > section:not(.hero):not(.brand-ticker) {
  position: relative;
  isolation: isolate;
  perspective: 1400px;
  transform-style: preserve-3d;
}

main > section:not(.hero):not(.brand-ticker)::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: calc(var(--section-opacity, 0) * 0.75);
  background:
    radial-gradient(ellipse at 18% var(--section-glow-y, 50%), rgba(201, 167, 101, 0.11), transparent 34%),
    radial-gradient(ellipse at 78% 45%, rgba(255, 255, 255, 0.035), transparent 30%);
  transform: translate3d(0, var(--section-float, 0px), 0);
  transition: opacity 0.25s linear;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

main > section:not(.hero):not(.brand-ticker)::after {
  position: absolute;
  top: clamp(52px, 9vw, 110px);
  left: 0;
  width: min(220px, 34vw);
  height: 1px;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: calc(var(--section-opacity, 0) * 0.75);
  background: linear-gradient(90deg, transparent, rgba(201, 167, 101, 0.58), transparent);
  transform: translate3d(var(--section-line-x, -40px), 0, 0) scaleX(var(--section-line-scale, 0.25));
  transform-origin: left;
}

.section-kicker span {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(201, 167, 101, 0.72);
  font-family: var(--display);
  font-size: clamp(2.55rem, 4.8vw, 5.2rem);
  line-height: 0.78;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 54px;
  align-items: end;
  margin-bottom: 54px;
}

.section-kicker,
.section-heading,
.matcher-grid,
.stock-grid,
.finance-grid,
.why-grid,
.about-grid,
.services-grid,
.rhythm-track {
  transform-style: preserve-3d;
  will-change: transform;
}

.section .section-kicker {
  --motion-x: var(--section-slide-small, 0px);
  --motion-y: var(--section-rise-small, 0px);
  --motion-z: var(--section-pop-small, 0px);
}

.section .section-heading {
  --motion-y: var(--section-rise, 0px);
  --motion-z: var(--section-pop, 0px);
  --motion-rx: var(--section-rx, 0deg);
}

.editorial-intro .intro-copy {
  --motion-x: var(--section-slide-small, 0px);
  --motion-y: var(--section-rise, 0px);
  --motion-z: var(--section-pop, 0px);
  --motion-ry: var(--section-ry-soft, 0deg);
}

.matcher-grid {
  transform: translate3d(var(--section-slide-small, 0px), var(--section-rise-small, 0px), 0) rotateX(var(--section-rx-soft, 0deg)) rotateY(var(--section-ry-soft, 0deg));
}

.stock-grid {
  transform: translate3d(var(--section-slide, 0px), var(--section-rise-small, 0px), 0) rotateY(var(--section-ry-soft, 0deg));
}

.finance-grid {
  transform: translate3d(0, var(--section-rise-small, 0px), 0) rotateX(var(--section-rx-soft, 0deg));
}

.part-exchange .px-tool,
.compare .compare-tool,
.enquiry .enquiry-inner {
  --motion-x: var(--section-slide-small, 0px);
  --motion-y: var(--section-rise-small, 0px);
  --motion-z: var(--section-pop-small, 0px);
  --motion-ry: var(--section-ry-soft, 0deg);
}

.why-grid {
  transform: translate3d(0, var(--section-rise-small, 0px), 0);
}

.why-item:nth-child(odd),
.service-card:nth-child(odd),
.stock-card:nth-child(odd) {
  --motion-y: var(--section-rise-small, 0px);
  --motion-z: var(--section-pop-small, 0px);
}

.why-item:nth-child(even),
.service-card:nth-child(even),
.stock-card:nth-child(even) {
  --motion-y: var(--section-rise, 0px);
  --motion-z: var(--section-pop-tiny, 0px);
}

.about-grid {
  transform: translate3d(var(--section-slide-small, 0px), 0, 0) rotateY(var(--section-ry-soft, 0deg));
}

.services-grid {
  transform: translate3d(0, var(--section-rise-small, 0px), 0) rotateX(var(--section-rx-soft, 0deg));
}

.rhythm-track {
  transform: translate3d(var(--section-slide-small, 0px), var(--section-rise-small, 0px), 0) rotateX(var(--section-rx-soft, 0deg));
}

h2,
h3,
blockquote {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h2 {
  max-width: 100%;
  font-size: clamp(2.35rem, 4.25vw, 4.85rem);
  line-height: 0.92;
  text-wrap: balance;
}

h3 {
  max-width: 100%;
  font-size: clamp(1.45rem, 1.95vw, 2.15rem);
  line-height: 0.94;
  text-wrap: balance;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: transparent;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.72s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary,
.btn-sm {
  border-color: rgba(201, 167, 101, 0.58);
  color: #090909;
  background: linear-gradient(135deg, #f7e5b8, #b9924c);
}

.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.68rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.matcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.matcher-image {
  grid-column: 1 / -1;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.matcher-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.06);
}

.budget-tool,
.match-results,
.stock-card,
.why-item,
.about-content,
.service-card,
.enquiry-inner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.028);
}

.budget-tool,
.match-results {
  padding: 24px;
}

.range-row,
.match-results-head,
.stock-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.range-row label,
.calculator-grid span,
.finance-readout span,
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: var(--muted);
}

.range-row label,
.calculator-grid span,
.finance-readout span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.range-row strong,
.finance-readout strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
}

input[type="range"] {
  width: 100%;
  margin: 26px 0;
  accent-color: var(--gold);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calculator-grid label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

textarea {
  min-height: 122px;
  padding-top: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 167, 101, 0.62);
}

.finance-readout {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.finance-readout strong {
  display: block;
  margin-top: 12px;
  color: var(--gold);
}

.match-results-head {
  margin-bottom: 16px;
}

.match-results-head small {
  color: var(--muted);
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(201, 167, 101, 0.24);
  border-radius: 8px;
  background: rgba(201, 167, 101, 0.08);
}

.match-card.is-over-budget {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.match-card img {
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
}

.match-card h3 {
  margin: 2px 0 4px;
  font-size: 1.45rem;
}

.match-card span,
.match-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.match-card button {
  border: 1px solid rgba(201, 167, 101, 0.38);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: transparent;
}

.tool-section {
  position: relative;
}

.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 18px;
  align-items: stretch;
}

.tool-panel,
.px-tool,
.compare-tool {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.028);
}

.tool-panel {
  padding: clamp(24px, 3vw, 36px);
}

.finance-controls {
  display: grid;
  gap: 18px;
}

.finance-controls label,
.compare-selectors label {
  display: grid;
  gap: 8px;
}

.finance-controls label > span,
.compare-selectors span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finance-controls label strong {
  color: var(--gold);
  font-weight: 800;
}

.quick-row,
.toggle-row,
.term-row {
  display: grid;
  gap: 8px;
}

.quick-row {
  grid-template-columns: repeat(4, 1fr);
}

.toggle-row {
  grid-template-columns: repeat(2, 1fr);
}

.term-row {
  grid-template-columns: repeat(4, 1fr);
}

.quick-row button,
.toggle-row button,
.term-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.quick-row button.is-active,
.toggle-row button.is-active,
.term-row button.is-active {
  border-color: rgba(201, 167, 101, 0.58);
  color: #090909;
  background: linear-gradient(135deg, #f7e5b8, #b9924c);
}

.finance-output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.finance-output > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finance-output > strong {
  display: block;
  margin: 18px 0 26px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 5.3rem);
  font-weight: 800;
  line-height: 0.9;
}

.breakdown {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.px-tool {
  padding: clamp(24px, 4vw, 46px);
}

.px-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.px-progress span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.px-progress span.is-active {
  border-color: rgba(201, 167, 101, 0.58);
  color: var(--gold);
}

.px-step {
  display: none;
}

.px-step.is-active {
  display: grid;
  gap: 14px;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.condition-grid label {
  cursor: pointer;
}

.condition-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.condition-grid span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.condition-grid input:checked + span {
  border-color: rgba(201, 167, 101, 0.58);
  color: var(--gold);
  background: rgba(201, 167, 101, 0.08);
}

.px-summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.px-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.px-summary strong {
  color: var(--text);
}

.tool-note {
  margin-top: 18px;
}

.px-actions,
.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

.compare-tool {
  padding: clamp(22px, 4vw, 42px);
}

.compare-selectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.compare-table td {
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table .spec-name {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.compare-table .is-best {
  color: var(--gold);
  background: rgba(201, 167, 101, 0.075);
  box-shadow: inset 3px 0 0 var(--gold);
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stock {
  position: relative;
}

.stock-atmosphere {
  position: absolute;
  top: 58px;
  right: -8vw;
  z-index: -1;
  width: min(520px, 38vw);
  height: 720px;
  overflow: hidden;
  border: 1px solid rgba(201, 167, 101, 0.16);
  border-radius: 8px;
  opacity: 0.2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 72%, transparent);
}

.stock-atmosphere img {
  height: 110%;
  object-fit: cover;
  filter: grayscale(0.2) saturate(0.8) contrast(1.18);
}

.stock-card {
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.stock-card.is-matched,
.stock-card:hover {
  border-color: rgba(201, 167, 101, 0.48);
  background:
    linear-gradient(145deg, rgba(201, 167, 101, 0.14), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.032);
}

.stock-card:hover {
  transform: translateY(-8px);
}

.stock-card-img {
  position: relative;
  aspect-ratio: 1.25;
  overflow: hidden;
}

.stock-card-img img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.04);
  transition: transform 0.7s var(--ease);
}

.stock-card:hover .stock-card-img img {
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.09);
}

.stock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #090909;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
}

.stock-card-body {
  padding: 22px;
}

.stock-year {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stock-card-body h3 {
  min-height: 58px;
  margin-bottom: 18px;
}

.stock-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.stock-card-specs span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
}

.stock-card-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stock-price {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
}

.why {
  width: 100%;
  max-width: none;
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(201, 167, 101, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.why-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-item,
.service-card {
  min-height: 250px;
  padding: 28px;
}

.why-item span,
.service-card span {
  display: block;
  margin-bottom: 48px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.8;
}

.why-item p,
.service-card p {
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.about-img,
.image-card {
  overflow: hidden;
  border-radius: 8px;
}

.about-img {
  position: relative;
  overflow: visible;
}

.about-img img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.03);
}

.about-float {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(201, 167, 101, 0.34);
  border-radius: 8px;
  background: rgba(6, 7, 8, 0.7);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.about-float img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.about-float-one {
  right: -38px;
  bottom: 44px;
  width: min(330px, 46%);
  height: 210px;
}

.about-float-two {
  top: 42px;
  left: 34px;
  width: min(260px, 38%);
  height: 170px;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.about-stats div {
  padding: 20px;
  background: rgba(6, 7, 8, 0.58);
}

.about-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 700;
}

.about-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.services-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  min-height: 310px;
}

.image-card {
  display: grid;
  grid-template-rows: 175px auto auto 1fr;
  gap: 0;
  padding: 0;
}

.image-card img {
  height: 175px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: translate3d(0, var(--image-scroll-y, 0px), 0) scale(1.06);
}

.image-card span,
.image-card h3,
.image-card p {
  margin-right: 26px;
  margin-left: 26px;
}

.image-card span {
  margin-top: 24px;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: clamp(1.45rem, 1.65vw, 1.88rem);
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: normal;
}

.service-card p {
  font-size: 0.92rem;
}

.image-rhythm {
  width: 100%;
  overflow: hidden;
  padding: 110px 0 150px;
}

.rhythm-track {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr 1.12fr 0.78fr 0.95fr;
  gap: 18px;
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  align-items: center;
}

.rhythm-track figure {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.rhythm-track figure:nth-child(1) {
  height: 420px;
  margin-top: 70px;
}

.rhythm-track figure:nth-child(2) {
  height: 300px;
}

.rhythm-track figure:nth-child(3) {
  height: 520px;
  margin-top: 42px;
}

.rhythm-track figure:nth-child(4) {
  height: 330px;
  margin-top: 118px;
}

.rhythm-track figure:nth-child(5) {
  height: 440px;
}

.enquiry-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 64px;
  align-items: end;
  padding: clamp(34px, 6vw, 78px);
}

.enquiry-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.enquiry-details a:first-child {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.enquiry-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-full {
  width: 100%;
}

.footer {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding: 64px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 44px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 18px;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h4 {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span,
.footer-bottom {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

.reveal {
  --reveal-y: 32px;
  --motion-x: 0px;
  --motion-y: 0px;
  --motion-z: 0px;
  --motion-rx: 0deg;
  --motion-ry: 0deg;
  --motion-scale: 1;
  opacity: 0;
  transform: translate3d(var(--motion-x), calc(var(--reveal-y) + var(--motion-y)), var(--motion-z)) rotateX(var(--motion-rx)) rotateY(var(--motion-ry)) scale(var(--motion-scale));
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  --reveal-y: 0px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1160px) {
  .editorial-intro {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .editorial-intro::before {
    display: none;
  }

  .intro-frame-large,
  .intro-copy {
    grid-row: auto;
  }

  .intro-copy {
    grid-column: 2;
  }

  .intro-frame-top,
  .intro-frame-bottom {
    min-height: 280px;
    margin: 0;
  }

  .stock-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .matcher-grid,
  .finance-grid,
  .section-heading,
  .about-grid,
  .enquiry-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(calc(100% - 44px), var(--max));
    margin: -90px auto 90px;
  }

  .stock-atmosphere {
    display: none;
  }

  .rhythm-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .rhythm-track figure:nth-child(n) {
    height: 320px;
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 24px);
    border-radius: 24px;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 7, 8, 0.94);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-content,
  .section,
  .footer,
  .hero-panel {
    width: calc(100% - 30px);
  }

  .hero-content {
    padding: 132px 0 90px;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5.8rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 4.35rem);
  }

  h3 {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  .intro-copy h2 {
    font-size: clamp(2.1rem, 9vw, 3.8rem);
  }

  .section {
    padding: 104px 0;
  }

  .editorial-intro {
    grid-template-columns: 1fr;
    width: calc(100% - 30px);
    padding: 82px 0 76px;
  }

  .intro-copy,
  .intro-frame-large,
  .intro-frame-top,
  .intro-frame-bottom {
    grid-column: 1;
  }

  .intro-frame-large {
    min-height: 430px;
  }

  .intro-frame-top,
  .intro-frame-bottom {
    min-height: 260px;
  }

  .calculator-grid,
  .compare-selectors,
  .stock-grid,
  .why-grid,
  .services-grid,
  .about-stats,
  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-row,
  .term-row,
  .condition-grid,
  .px-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .match-card img {
    height: 190px;
  }

  .about-img img {
    min-height: 420px;
  }

  .about-float {
    display: none;
  }

  .rhythm-track {
    display: flex;
    width: calc(100% - 30px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .rhythm-track::-webkit-scrollbar {
    display: none;
  }

  .rhythm-track figure:nth-child(n) {
    flex: 0 0 76vw;
    height: 340px;
    scroll-snap-align: start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .stock-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
