:root {
  --ink: #2b1718;
  --ink-soft: #624d4f;
  --paper: #f8f1e9;
  --paper-2: #efe2d5;
  --accent: #8e1831;
  --accent-2: #cf9e69;
  --deep: #541221;
  --line: rgba(43, 23, 24, .2);
  --display: Georgia, 'Times New Roman', serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.theme-thirteen {
  --ink: #171717;
  --ink-soft: #595959;
  --paper: #f2efe9;
  --paper-2: #ddd7ce;
  --accent: #111111;
  --accent-2: #b79768;
  --deep: #101010;
  --line: rgba(20, 20, 20, .2);
}

body.theme-stalybridge {
  --ink: #15284c;
  --ink-soft: #53617c;
  --paper: #fff8ea;
  --paper-2: #f2dfbd;
  --accent: #2154a5;
  --accent-2: #ed765f;
  --deep: #153b79;
  --line: rgba(21, 40, 76, .2);
}

body.theme-bristol {
  --ink: #263026;
  --ink-soft: #62695e;
  --paper: #f5eee4;
  --paper-2: #e6d7c4;
  --accent: #a8482e;
  --accent-2: #9d9b69;
  --deep: #283b31;
  --line: rgba(38, 48, 38, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }

.preview-bar {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  min-height: 40px; padding: 8px clamp(18px, 4vw, 64px); color: #fff7ef;
  background: var(--deep); border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent);
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.preview-bar span:last-child { opacity: .72; text-align: right; }

.site-header {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 86px; padding: 0 clamp(20px, 5vw, 76px);
  background: color-mix(in srgb, var(--paper) 91%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { text-decoration: none; font-family: var(--display); font-size: clamp(22px, 2.1vw, 32px); line-height: 1; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 5px; font: 800 10px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 42px); }
.desktop-nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 750; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: right .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-action { justify-self: end; text-decoration: none; border-bottom: 1px solid var(--accent); padding: 8px 0; font-weight: 800; font-size: 14px; }
.menu-button { display: none; justify-self: end; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }
.mobile-menu { display: none; }

.hero { min-height: calc(100svh - 126px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.25fr); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 8vw, 130px) clamp(26px, 6vw, 92px); background: var(--paper); }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font: 500 clamp(64px, 7vw, 124px)/.85 var(--display); letter-spacing: -.065em; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); font-weight: 500; }
.hero-lede { max-width: 580px; margin-bottom: 34px; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; padding: 13px 22px; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 850; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button.primary { color: var(--paper); background: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--paper-2); }
.hero-media { position: relative; min-height: 620px; overflow: hidden; background: var(--deep); }
.hero-media img { height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hero-media:hover img { transform: scale(1.035); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 38%); pointer-events: none; }
.concept-chip { position: absolute; right: 24px; bottom: 24px; z-index: 2; max-width: 240px; padding: 12px 15px; color: #fff; background: rgba(20,12,12,.68); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.section { padding: clamp(88px, 10vw, 160px) clamp(22px, 7vw, 110px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: end; gap: 50px; max-width: 1400px; margin: 0 auto 56px; }
.section h2 { margin-bottom: 0; font: 500 clamp(48px, 6vw, 96px)/.92 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.section-intro { margin-bottom: 4px; color: var(--ink-soft); font-size: 18px; }

.evidence {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 30%),
    var(--paper);
}
.evidence::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 38%, transparent);
  pointer-events: none;
}
.evidence-head { max-width: 980px; margin: 0 auto 52px; text-align: center; }
.evidence-head h2 { max-width: 920px; margin: 0 auto 24px; }
.evidence-head > p:last-child { max-width: 760px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 21px); }
.comparison-shell { position: relative; z-index: 1; max-width: 1320px; margin: auto; }
.compare-frame {
  --split: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid color-mix(in srgb, var(--accent-2) 88%, var(--ink));
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: 0 28px 80px rgba(38, 20, 18, .14);
  isolation: isolate;
  touch-action: pan-y;
}
.compare-frame--portrait { max-width: 820px; margin-inline: auto; aspect-ratio: 4 / 5; }
.compare-frame--square { max-width: 900px; margin-inline: auto; aspect-ratio: 1 / 1; }
.compare-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.compare-image-before { z-index: 2; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-label {
  position: absolute;
  top: 22px;
  z-index: 5;
  padding: 9px 14px;
  color: #fff;
  background: rgba(18, 14, 13, .72);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.compare-label--before { left: 22px; }
.compare-label--after { right: 22px; }
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 4;
  width: 2px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 1px rgba(30,20,20,.18);
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(20,10,10,.2);
  font-size: 19px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.compare-frame.is-dragging .compare-divider span { transform: translate(-50%, -50%) scale(1.08); }
.compare-range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 5px; }
.source-note { max-width: 920px; margin: 24px auto 0; color: var(--ink-soft); text-align: center; font-size: 14px; }
.source-note strong { color: var(--ink); }

.directions { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.direction-stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); max-width: 1400px; margin: auto; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 82%, white); box-shadow: 0 28px 80px rgba(38,20,18,.09); }
.direction-media { position: relative; min-height: 620px; overflow: hidden; background: var(--ink); }
.direction-media img { height: 100%; object-fit: cover; transition: opacity .25s ease, transform .8s ease; }
.direction-media.is-changing img { opacity: .35; transform: scale(1.025); }
.direction-number { position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: white; background: var(--accent); font: 600 19px/1 var(--display); }
.direction-controls { display: flex; flex-direction: column; }
.direction-tab { flex: 1; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; min-height: 150px; padding: 28px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background .25s ease, color .25s ease; }
.direction-tab:last-child { border-bottom: 0; }
.direction-tab:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.direction-tab[aria-pressed='true'] { color: var(--paper); background: var(--deep); }
.direction-tab .num { color: var(--accent-2); font: 500 24px/1 var(--display); }
.direction-tab strong { display: block; font: 500 clamp(25px, 2.3vw, 40px)/1 var(--display); }
.direction-tab small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; opacity: .72; }
.direction-tab .arrow { font-size: 22px; transform: translateX(0); transition: transform .25s ease; }
.direction-tab:hover .arrow { transform: translateX(5px); }

.services { color: var(--paper); background: linear-gradient(160deg, var(--deep), color-mix(in srgb, var(--deep) 78%, black)); }
.services .eyebrow { color: var(--accent-2); }
.services .section-intro { color: color-mix(in srgb, var(--paper) 74%, transparent); }
.service-layout { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr); gap: clamp(50px, 8vw, 120px); max-width: 1400px; margin: auto; align-items: start; }
.service-visual { position: sticky; top: 120px; }
.service-visual figure { margin: 0; overflow: hidden; border-radius: 48% 48% 8px 8px; border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent); }
.service-visual img { aspect-ratio: 4/5; object-fit: cover; transition: transform .8s ease; }
.service-visual figure:hover img { transform: scale(1.04); }
.service-visual figcaption { padding-top: 16px; color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 13px; }
.service-list { border-top: 1px solid rgba(255,255,255,.25); }
.service-item { border-bottom: 1px solid rgba(255,255,255,.25); }
.service-button { width: 100%; min-height: 132px; display: grid; grid-template-columns: 62px 1fr 48px; gap: 20px; align-items: center; padding: 24px 0; color: inherit; border: 0; background: transparent; text-align: left; cursor: pointer; }
.service-button .num { color: var(--accent-2); font: 500 22px/1 var(--display); }
.service-button strong { font: 500 clamp(32px, 3.5vw, 56px)/1.05 var(--display); }
.service-button .plus { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 22px; transition: transform .3s ease, background .3s; }
.service-button:hover .plus, .service-button[aria-expanded='true'] .plus { color: var(--deep); background: var(--accent-2); transform: rotate(45deg); }
.service-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.service-detail > div { overflow: hidden; }
.service-detail p { max-width: 700px; padding: 0 0 0 82px; color: color-mix(in srgb, var(--paper) 76%, transparent); font-size: 17px; }
.service-item.open .service-detail { grid-template-rows: 1fr; }
.service-item.open .service-detail p { padding-bottom: 30px; }

.booking { position: relative; overflow: hidden; color: var(--ink); background: var(--paper); }
.booking::before { content: ''; position: absolute; width: 560px; height: 560px; right: -240px; top: -180px; border: 1px solid var(--line); border-radius: 50%; }
.booking-panel { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1400px; margin: auto; border: 1px solid var(--line); background: rgba(255,255,255,.25); box-shadow: 0 32px 90px rgba(40,20,20,.08); }
.booking-copy { padding: clamp(42px, 6vw, 90px); }
.booking-copy h2 { margin-bottom: 24px; }
.booking-copy > p { max-width: 620px; color: var(--ink-soft); font-size: 18px; }
.booking-steps { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.booking-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.booking-steps span { color: var(--accent); font: 600 18px/1.3 var(--display); }
.booking-steps strong { font-size: 16px; }
.booking-action { display: flex; flex-direction: column; justify-content: flex-end; min-height: 610px; padding: clamp(36px, 5vw, 72px); color: white; background: var(--accent); }
.booking-action .roundel { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 0 auto auto; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font: 500 42px/1 var(--display); }
.booking-action h3 { max-width: 640px; margin: 80px 0 24px; font: 500 clamp(42px, 5vw, 74px)/.98 var(--display); letter-spacing: -.045em; }
.booking-action p { max-width: 580px; opacity: .82; font-size: 17px; }
.booking-action .button { margin-top: 18px; align-self: flex-start; color: var(--accent); background: white; border-color: white; }

.visit { padding-bottom: 0; background: var(--paper-2); }
.visit-card { position: relative; min-height: 640px; max-width: 1400px; margin: auto; overflow: hidden; background: var(--ink); }
.visit-card > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.visit-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,8,.78), rgba(10,8,8,.12) 70%); }
.visit-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 640px; max-width: 680px; padding: clamp(40px, 7vw, 96px); color: white; }
.visit-copy h2 { margin-bottom: 25px; }
.visit-copy address { margin-bottom: 28px; font-style: normal; font-size: 19px; }
.visit-copy .button { color: white; border-color: rgba(255,255,255,.7); }
.visit-copy .button:hover { color: var(--ink); background: white; }

.site-footer { color: color-mix(in srgb, var(--paper) 90%, white); background: var(--deep); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; max-width: 1400px; margin: auto; padding: 44px clamp(22px, 7vw, 110px); }
.footer-mark { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent); border-radius: 50%; font: 500 22px/1 var(--display); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { text-decoration: none; font-weight: 750; font-size: 14px; }
.footer-note { justify-self: end; max-width: 440px; margin: 0; text-align: right; font-size: 12px; opacity: .66; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }

.batch-home { min-height: 100vh; padding: clamp(40px, 7vw, 110px); color: #f8f2e9; background: #14251f; }
.batch-home h1 { max-width: 1100px; }
.batch-home p { max-width: 760px; color: rgba(255,255,255,.72); font-size: 18px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 1200px; margin-top: 60px; }
.demo-link { display: flex; min-height: 240px; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); text-decoration: none; transition: transform .25s, background .25s; }
.demo-link:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.demo-link small { text-transform: uppercase; letter-spacing: .15em; color: #d6a75e; }
.demo-link strong { font: 500 clamp(34px, 4vw, 54px)/1 var(--display); }

@media (max-width: 900px) {
  .preview-bar { min-height: 36px; font-size: 10px; }
  .preview-bar span:last-child { display: none; }
  .site-header { min-height: 70px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .desktop-nav, .header-action { display: none; }
  .menu-button { display: block; }
  .menu-open .menu-button span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: 106px 0 0; z-index: 29; display: flex; flex-direction: column; gap: 8px; padding: 26px 20px; color: var(--paper); background: var(--deep); transform: translateX(100%); transition: transform .3s ease; }
  .menu-open .mobile-menu { transform: none; }
  .mobile-menu a { padding: 17px 6px; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; font: 500 32px/1 var(--display); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 62px 20px 42px; }
  h1 { font-size: clamp(58px, 17vw, 78px); }
  .hero-lede { font-size: 17px; }
  .hero-media { min-height: 440px; order: 2; }
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.36)); }
  .concept-chip { left: 16px; right: auto; bottom: 16px; }
  .section { padding: 76px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .section h2 { font-size: clamp(48px, 14vw, 66px); }
  .section-intro { font-size: 16px; }
  .evidence::before { inset: 10px; }
  .evidence-head { margin-bottom: 30px; text-align: left; }
  .evidence-head h2 { margin-left: 0; }
  .evidence-head > p:last-child { margin-left: 0; font-size: 16px; }
  .compare-frame, .compare-frame--wide { aspect-ratio: 4 / 3; border-radius: 18px; }
  .compare-frame--portrait { aspect-ratio: 4 / 5; }
  .compare-frame--square { aspect-ratio: 1 / 1; }
  .compare-label { top: 12px; padding: 7px 10px; font-size: 10px; }
  .compare-label--before { left: 12px; }
  .compare-label--after { right: 12px; }
  .compare-divider span { width: 46px; height: 46px; font-size: 16px; }
  .source-note { margin-top: 18px; text-align: left; font-size: 13px; }
  .direction-stage { grid-template-columns: 1fr; }
  .direction-media { min-height: 460px; }
  .direction-controls { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; }
  .direction-tab { min-width: 86%; min-height: 142px; scroll-snap-align: start; grid-template-columns: 42px 1fr 28px; padding: 22px 18px; border-bottom: 0; border-right: 1px solid var(--line); }
  .direction-tab strong { font-size: 28px; }
  .service-layout { grid-template-columns: 1fr; gap: 38px; }
  .service-visual { position: relative; top: auto; }
  .service-visual figure { border-radius: 42% 42% 6px 6px; }
  .service-visual img { aspect-ratio: 4/3; }
  .service-button { min-height: 104px; grid-template-columns: 42px 1fr 42px; gap: 12px; }
  .service-button strong { font-size: clamp(29px, 8vw, 38px); }
  .service-detail p { padding-left: 54px; font-size: 16px; }
  .booking-panel { grid-template-columns: 1fr; }
  .booking-copy { padding: 42px 22px; }
  .booking-action { min-height: 460px; padding: 32px 22px; }
  .booking-action .roundel { width: 82px; height: 82px; font-size: 31px; }
  .booking-action h3 { margin-top: 58px; font-size: 50px; }
  .visit { padding: 60px 0 0; }
  .visit-card, .visit-copy { min-height: 550px; }
  .visit-card::after { background: linear-gradient(180deg, rgba(10,8,8,.15), rgba(10,8,8,.84) 78%); }
  .visit-copy { justify-content: flex-end; padding: 28px 20px 36px; }
  .footer-inner { grid-template-columns: auto 1fr; padding: 30px 20px; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .footer-note { grid-column: 1 / -1; justify-self: stretch; text-align: left; }
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-media { min-height: 390px; }
  .direction-media { min-height: 400px; }
  .direction-tab { min-width: 92%; }
  .service-button strong { font-size: 28px; }
  .booking-action h3 { font-size: 46px; }
  .compare-frame--wide { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
