/* =========================================================
   Tri-R Business Solutions
   Palette: Navy, Gold, White, Light Grey
   ========================================================= */

:root {
  --navy: #0B1F3A;
  --navy-2: #12305A;
  --navy-3: #1B3D6E;
  --gold: #C9A227;
  --gold-2: #E3C35A;
  --white: #FFFFFF;
  --grey: #F5F5F7;
  --grey-2: #E8E8ED;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;

  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Smooth scrolling between sections is handled in js/main.js (eased, Apple-style) */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow--gold { color: var(--gold-2); }
.h2 { font-size: clamp(32px, min(4.4vw, 7vh), 56px); font-weight: 700; }
.muted { color: var(--ink-2); }
.section--navy .muted { color: rgba(255,255,255,.55); }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 620px; }
.lead--light { color: rgba(255,255,255,.72); }
.gold-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease), color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(201,162,39,.6); }
.btn--gold:hover { background: var(--gold-2); box-shadow: 0 16px 40px -10px rgba(201,162,39,.7); }
.btn--ghost { color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--ghost span { transition: transform .3s var(--ease); }
.btn--ghost:hover span { transform: translateX(4px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  transition: height .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav.is-scrolled .nav__inner { height: 60px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); transition: color .4s; }
.logo__mark { width: auto; height: 34px; flex: none; transition: height .4s var(--ease); }
.nav.is-scrolled .logo__mark { height: 30px; }
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo__text span { font-weight: 500; opacity: .7; }
.nav.is-scrolled .logo { color: var(--navy); }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8);
  position: relative; transition: color .3s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink-2); }
.nav.is-scrolled .nav__links a:not(.btn):hover { color: var(--navy); }

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .4s var(--ease), background .4s;
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--navy); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 80% at 80% 0%, var(--navy-3) 0%, var(--navy) 55%);
  color: var(--white); overflow: hidden; padding: 100px 0 80px;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -250px; top: -200px;
  background: radial-gradient(circle, rgba(201,162,39,.28) 0%, rgba(201,162,39,0) 60%);
  filter: blur(20px); pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.hero__glow--book { right: auto; left: -300px; top: auto; bottom: -400px; }
@keyframes float { 50% { transform: translate(-60px, 40px) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
.hero__title { font-size: clamp(46px, min(6.6vw, 11vh), 88px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__sub { font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.72); max-width: 520px; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-in {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  animation: heroIn 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d) * .12s + .15s);
}
@keyframes heroIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* Ledger visual */
.ledger { position: relative; perspective: 1400px; }
.ledger__card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 22px 22px 18px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15);
  transform: rotateY(-12deg) rotateX(6deg);
  transition: transform .8s var(--ease);
  font-variant-numeric: tabular-nums;
}
.ledger__head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.ledger__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ledger__title { margin-left: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.ledger__row, .ledger__total {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px;
  font-size: 13.5px; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ledger__row span:not(:first-child), .ledger__total span:not(:first-child) { text-align: right; }
.ledger__row--head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); }
.ledger__row:not(.ledger__row--head) {
  opacity: 0; transform: translateX(-12px);
  animation: rowIn .7s var(--ease) forwards;
  animation-delay: calc(var(--r) * .15s + 1s);
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
.ledger__total { border-bottom: 0; font-weight: 700; font-size: 15px; color: var(--gold-2); padding-top: 14px; }
.ledger__status {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 12px 14px; border-radius: 12px; background: rgba(201,162,39,.12);
  font-size: 14px; font-weight: 600; color: var(--gold-2);
  opacity: 0; transform: translateY(8px);
}
.ledger.is-balanced .ledger__status { animation: rowIn .7s var(--ease) forwards; }
.check { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 63; stroke-dashoffset: 63; }
.check path { stroke-dasharray: 16; stroke-dashoffset: 16; }
.ledger.is-balanced .check circle { animation: draw .8s var(--ease) .1s forwards; }
.ledger.is-balanced .check path { animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ledger__chip {
  position: absolute; padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 8px;
  animation: bob 6s ease-in-out infinite;
}
.ledger__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ledger__chip--a { top: -18px; right: 6%; }
.ledger__chip--b { bottom: -20px; left: -4%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Statement: one full-screen section, lines animate in one after another ---------- */
.statement {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--white); padding: 90px 0;
}
.statement__lines {
  max-width: 1000px; text-align: center;
  font-size: clamp(28px, min(4.2vw, 6.6vh), 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15;
  color: var(--navy); display: grid; gap: .45em;
}
.statement__line { margin: 0; }
.statement__line em { font-style: normal; }
.statement__line .w {
  display: inline-block;
  opacity: 0; transform: translateY(.45em); filter: blur(10px);
  transition: opacity .56s var(--ease), transform .7s var(--ease), filter .56s var(--ease);
  /* --l = line number, --i = word number in that line */
  transition-delay: calc(var(--l) * 385ms + var(--i) * 42ms);
}
.statement__line .w.is-gold { color: var(--gold); }
.statement.is-in .w { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Next-section button ---------- */
.next-btn {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(11,31,58,.55);
  transition: transform .4s var(--ease), background .3s, opacity .4s;
}
.next-btn:hover { background: var(--gold-2); transform: translateY(-3px); }
.next-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.next-btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
  animation: nudge 2.4s var(--ease) infinite;
}
.next-btn.is-top svg { transform: rotate(180deg); animation: none; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 3px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, min(9vw, 12vh), 120px) 0; position: relative; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: var(--white); overflow: hidden; }
/* Full-screen sections: fill the screen with the content centred, so the arrow pages one section at a time */
.section--full {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: clamp(76px, 11vh, 110px); padding-bottom: clamp(40px, 7vh, 80px);
}
.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { text-align: center; }
.section__head--center .lead { margin: 22px auto 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Bento services ---------- */
/* 4 columns x 2 rows so all six services fit on one screen */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: 22px; padding: 26px;
  min-height: clamp(200px, 27vh, 250px); display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.tile.is-visible:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px -30px rgba(11,31,58,.35); }
.tile h3 { font-size: 21px; font-weight: 700; margin: auto 0 8px; padding-top: 22px; }
.tile p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tile__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grey); color: var(--navy);
}
.tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tile--wide, .bento .tile--gold { grid-column: span 2; }
#services .section__head { margin-bottom: clamp(28px, 4vh, 44px); }
.tile--navy { background: var(--navy); color: var(--white); }
.tile--navy p { color: rgba(255,255,255,.7); max-width: 460px; position: relative; z-index: 1; }
.tile--navy h3 { position: relative; z-index: 1; }
.tile--navy .tile__icon { background: rgba(255,255,255,.1); color: var(--gold-2); }
.tile__spark { position: absolute; right: 0; top: 18px; width: 48%; height: 72px; opacity: .9; }
.tile__spark svg { width: 100%; height: 100%; }
.spark {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 2.2s var(--ease) .4s;
}
.tile.is-visible .spark { stroke-dashoffset: 0; }

.tile--gold { background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: var(--navy); }
.tile--gold p { color: rgba(11,31,58,.78); }
.tile--gold .tile__icon { background: rgba(11,31,58,.1); color: var(--navy); }

/* ---------- Image slots ---------- */
.img-slot {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--grey), var(--grey-2));
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot--tall { aspect-ratio: 4 / 5; }
.img-slot--photo { aspect-ratio: 4 / 3; max-height: 70vh;box-shadow: 0 40px 80px -40px rgba(11,31,58,.45); }
.img-slot--photo img { object-position: 62% 50%; }
.img-slot--wide { aspect-ratio: 21 / 9; margin-bottom: clamp(56px, 7vw, 90px); }
.img-slot__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--ink-2); font-size: 15px; font-weight: 600;
  border: 2px dashed rgba(11,31,58,.15); border-radius: var(--radius);
}
.img-slot__placeholder svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.parallax > * { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); transition: transform .1s linear; }
.parallax > .img-slot__placeholder { transform: none; }

/* ---------- Feature ---------- */
.feature { padding: clamp(64px, min(9vw, 12vh), 120px) 0; background: var(--white); }
.feature.section--full { padding-top: clamp(76px, 11vh, 110px); padding-bottom: clamp(40px, 7vh, 80px); }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature__copy .h2 { margin-bottom: 26px; }

/* ---------- Software ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform {
  position: relative; border-radius: var(--radius); padding: 32px 30px; min-height: 180px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s, opacity 1s var(--ease);
}
.platform::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,39,.18), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.platform:hover::after { opacity: 1; }
.platform.is-visible:hover { transform: translateY(-6px); border-color: rgba(201,162,39,.45); }
.platform__name { font-size: clamp(28px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.platform__tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(201,162,39,.15); color: var(--gold-2);
}


/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.about__body .lead { margin-bottom: 34px; }
.about__body strong { color: var(--navy); }
.values { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
.values li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 16px; }
.values li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.values__k { color: var(--navy); font-weight: 700; }
.owner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--grey); border-radius: var(--radius-sm); max-width: 380px; }
.owner__avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 700; letter-spacing: .02em; }
.owner__name { font-weight: 700; color: var(--navy); }
.owner__role { font-size: 14px; color: var(--ink-2); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__line { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--grey-2); border-radius: 2px; }
/* Gold line fills from empty to full once the Process section is active (class added by js/main.js).
   Each step lights up as the line reaches it (--sd delay on each step). */
.process__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 2px; transition: width 0s; }
.is-run .process__line span { width: 100%; transition: width 1.6s linear .2s; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 26px;
  background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 6px var(--grey), 0 10px 30px -10px rgba(11,31,58,.3);
  transition: background .5s, color .5s;
}
.is-run .step .step__num { background: var(--navy); color: var(--gold-2); transition-delay: var(--sd, 0s); }
.step:nth-child(2) { --sd: .25s; }
.step:nth-child(3) { --sd: .65s; }
.step:nth-child(4) { --sd: 1.05s; }
.step:nth-child(5) { --sd: 1.45s; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- Book a meeting (fits one screen) ---------- */
.book {
  min-height: 100vh; min-height: 100svh;
  padding: clamp(72px, 10vh, 96px) 0 clamp(16px, 3vh, 32px);
}
.book .container { position: relative; }
.book__head { text-align: center; margin-bottom: clamp(14px, 2.5vh, 24px); }
.book__head .eyebrow { margin-bottom: 10px; }
.book__title { font-size: clamp(26px, min(3.2vw, 5vh), 42px); font-weight: 700; }
.book__panel {
  background: var(--white); color: var(--ink); border-radius: 22px;
  overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.6);
  max-width: 980px; margin: 0 auto;
}
/* --cal-scale is set by js/main.js so the calendar shrinks to fit the screen height.
   Only a visual scale: the calendar's layout width never changes, so TidyCal can't flip between
   its wide and narrow layouts (that flip caused a resize loop / flicker). */
.booking-wrap { min-height: 420px; padding: 12px 12px 4px; }
@media (min-width: 760px) {
  /* Fixed layout width keeps TidyCal in its wide (side-by-side) layout; JS scales it to fit */
  .booking-wrap { width: 1080px; transform: scale(var(--cal-scale, 1)); transform-origin: top left; }
}
.booking-wrap:has(.cal-placeholder) { min-height: 0; padding: 0; }
.booking-wrap .tidycal-embed { min-width: 300px; }
/* While the visitor is scrolling, the calendar doesn't capture the wheel (re-enabled on mouse move) */
.wheel-mode iframe { pointer-events: none; }
.cal-placeholder {
  min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding: 48px 28px;
}
.cal-placeholder__icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--grey); color: var(--navy); }
.cal-placeholder__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cal-placeholder h3 { font-size: 28px; color: var(--navy); }
.cal-placeholder p { color: var(--ink-2); max-width: 460px; }
.cal-placeholder code { background: var(--grey); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: var(--navy); }
.book__alt { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 15px; }
.book__alt a { color: var(--gold-2); font-weight: 600; border-bottom: 1px solid rgba(227,195,90,.4); transition: border-color .3s; }
.book__alt a:hover { border-color: var(--gold-2); }

/* ---------- Footer ---------- */
.footer { background: #071528; color: rgba(255,255,255,.65); padding: 70px 0 30px; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { margin-top: 16px; max-width: 280px; }
.logo--light { color: var(--white); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--white); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a { transition: color .3s; word-break: break-word; }
.footer__col a:hover { color: var(--gold-2); }
.footer__legal { padding-top: 26px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 70px; }
  .ledger { max-width: 520px; }
  .ledger__card { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide, .bento .tile--gold { grid-column: span 2; }
  .feature__inner, .about__grid { grid-template-columns: 1fr; }
  .img-slot--tall { aspect-ratio: 4 / 3; }
  .img-slot--wide { aspect-ratio: 16 / 9; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .process__line { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px 24px 32px;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform: translateY(-100%); transition: transform .6s var(--ease);
    z-index: -1;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .logo { color: var(--navy); }
  .nav__links a:not(.btn) { color: var(--navy) !important; font-size: 22px; font-weight: 600; }
  .nav__links .btn { margin-top: 6px; }
  .logo__text span { display: none; }

  .bento, .platforms { grid-template-columns: 1fr; }
  .tile--wide, .bento .tile--gold { grid-column: auto; }
  .tile { min-height: 240px; padding: 30px; }
  .tile__spark { width: 80%; opacity: .5; }
  .process { grid-template-columns: 1fr; }
  .ledger__chip--b { left: 0; }
  .ledger__row, .ledger__total { font-size: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-in, .ledger__row, .statement__line .w { opacity: 1 !important; transform: none !important; filter: none !important; }
}
