/* =====================================================================
   Edinburgh Insurance Repairs - site styles (v20261014c)
   Concept: "the repair file" - sandstone paper, slate ink, rust accent,
   surveyor's-drawing linework, modernised with soft radii, depth and motion.
   Fraunces / IBM Plex Sans / IBM Plex Mono. Keep this file ASCII-only.
   ===================================================================== */
:root {
  --ink: #1b2129;
  --ink-2: #252d37;
  --ink-soft: #46505d;
  --muted: #6f7884;
  --paper: #fbf8f3;
  --stone: #f3ece1;
  --stone-2: #e9dfcf;
  --stone-3: #dccdb5;
  --rust: #c4532b;
  --rust-d: #a5421e;
  --rust-l: #f0a283;
  --rust-50: #fbeee7;
  --rule: rgba(27, 33, 41, .12);
  --rule-2: rgba(27, 33, 41, .5);
  --grid: rgba(27, 33, 41, .045);
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --lift: 0 1px 2px rgba(27, 33, 41, .05), 0 12px 32px -12px rgba(27, 33, 41, .18);
  --lift-lg: 0 2px 4px rgba(27, 33, 41, .04), 0 30px 60px -24px rgba(27, 33, 41, .3);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --container: 1220px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--rust-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.028em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); letter-spacing: -.022em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* labels */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-d); }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1.5px solid var(--ink); border-radius: 12px; font-family: var(--sans); font-weight: 600; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease; }
.btn::after { content: ""; width: 15px; height: 15px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--rust); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-line { background: rgba(255, 255, 255, .5); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--rust-d); border-color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rust-l); outline-offset: 3px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #b7bec7; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #d6dbe1; text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.top-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.top-area { display: inline-flex; align-items: center; gap: 8px; }
.top-area::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 3px rgba(196, 83, 43, .3); }
.top-links .hot { color: var(--rust-l); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .82); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--rule); transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { background: rgba(251, 248, 243, .94); box-shadow: 0 10px 30px -18px rgba(27, 33, 41, .35); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-name small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 500; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 8px 12px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s ease, background .2s ease; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--stone); }
.nav .btn { margin-left: 12px; padding: 11px 16px; font-size: .92rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.graph { position: relative; background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.hero { position: relative; overflow: hidden; padding: 60px 0 130px; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 83, 43, .16), rgba(196, 83, 43, 0)); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(251, 248, 243, 0), var(--paper)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.lead { font-size: 1.17rem; color: var(--ink-soft); max-width: 590px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 36px; }

/* hero slides (rotating statements) */
.hero-slides { position: relative; max-width: 560px; background: rgba(255, 253, 249, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px 16px; box-shadow: var(--lift); }
.slides-track { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-soft); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.slide strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.slide.active, .no-js .slide:first-child { opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s ease .25s, transform .45s var(--ease) .25s; }
.slide-dots { display: flex; gap: 8px; margin-top: 14px; }
.slide-dots button { position: relative; flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--stone-2); cursor: pointer; overflow: hidden; }
.slide-dots button span { position: absolute; inset: 0; background: var(--rust); transform: scaleX(0); transform-origin: left; }
.slide-dots button.active span { animation: fill var(--slide-ms, 5600ms) linear forwards; }
.slide-dots button.done span { transform: scaleX(1); }
.hero-slides.paused .slide-dots button.active span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* the drawing sheet */
.drawing { position: relative; margin: 0; background: #fffdf9; border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 20px 20px 0; box-shadow: 14px 14px 0 var(--stone-3), var(--lift-lg); overflow: hidden; }
.drawing svg { display: block; width: 100%; height: auto; }
.pin-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.pin-pulse.d2 { animation-delay: .65s; } .pin-pulse.d3 { animation-delay: 1.3s; } .pin-pulse.d4 { animation-delay: 1.95s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.legend { list-style: none; counter-reset: pin; margin: 0; padding: 14px 0 16px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.legend li { counter-increment: pin; display: flex; gap: 10px; align-items: baseline; }
.legend li::before { content: counter(pin); flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--rust); color: #fff; font-family: var(--mono); font-size: .7rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; transform: translateY(4px); }
.legend strong { color: var(--ink); font-weight: 600; }
.drawing figcaption { margin: 0 -20px; display: grid; grid-template-columns: 1.6fr 1fr .8fr; border-top: 1.5px solid var(--ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--stone); }
.drawing figcaption span { padding: 10px 14px; }
.drawing figcaption span + span { border-left: 1px solid var(--ink); }

/* ---------- promo (floats over the hero edge) ---------- */
.promo-wrap { position: relative; z-index: 3; margin-top: -78px; }
.promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 30px; padding: 28px 32px; border-radius: var(--r-lg); background: var(--ink); color: #c2c9d1; box-shadow: var(--lift-lg); overflow: hidden; position: relative; }
.promo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 0% 0%, rgba(196, 83, 43, .35), transparent 70%); pointer-events: none; }
.promo > * { position: relative; }
.promo-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--rust); display: flex; align-items: center; justify-content: center; color: #fff; }
.promo-icon svg { width: 30px; height: 30px; }
.promo h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; letter-spacing: -.01em; }
.promo p { margin: 0; font-size: 1rem; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.tight-top { padding-top: 80px; }
.section.stone { background: var(--stone); }
.section.dark { background: var(--ink); color: #b9c0c9; }
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark .eyebrow { color: var(--rust-l); }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 52px; }
.head-split h2 { margin: 14px 0 0; }
.head-split > p { margin: 0; color: var(--ink-soft); font-size: 1.07rem; }
.section.dark .head-split > p { color: #b9c0c9; }

/* approach: three feature boxes */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--lift-lg); }
.feature-art { position: relative; height: 170px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--rule); background-color: var(--stone); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }
.feature-art svg { width: 150px; height: 120px; transition: transform .4s var(--ease); }
.feature:hover .feature-art svg { transform: scale(1.05) rotate(-1.5deg); }
.feature-art .tag { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--rust-d); }
.feature-body { padding: 24px 26px 28px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature h3 .sub { display: block; margin-top: 6px; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust-d); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* damage register (services) */
.register { border-top: 1.5px solid var(--ink); }
.reg-row { position: relative; display: grid; grid-template-columns: 56px 92px 1fr 1.35fr; gap: 12px 26px; align-items: start; padding: 26px 18px; border-bottom: 1px solid var(--rule); transition: background .25s ease, transform .25s var(--ease); }
.reg-row:hover { background: #fffdf9; box-shadow: var(--lift); transform: translateX(4px); }
.reg-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--stone); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.reg-icon svg { width: 24px; height: 24px; }
.reg-row:hover .reg-icon { background: var(--rust); color: #fff; }
.reg-row .code { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .12em; color: var(--rust-d); padding-top: 13px; }
.reg-row h3 { margin: 0; padding-top: 8px; }
.reg-row p { margin: 0 0 8px; color: var(--ink-soft); }
.reg-row p.typ { margin: 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); }

/* typical work carousel */
.carousel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.carousel-head h2 { margin: 14px 0 0; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s ease, color .2s ease, opacity .2s ease; }
.carousel-nav button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.carousel-nav button.prev::before { transform: scaleX(-1); }
.carousel-nav button:hover { background: var(--ink); color: var(--paper); }
.carousel-nav button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 22px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.job { scroll-snap-align: start; display: flex; flex-direction: column; background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.job:hover { transform: translateY(-5px); box-shadow: var(--lift-lg); }
.job-art { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink); background: var(--stone-2); }
.job-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(27, 33, 41, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 33, 41, .06) 1px, transparent 1px); background-size: 18px 18px; }
.job-art svg { position: relative; width: 46%; height: auto; transition: transform .45s var(--ease); }
.job:hover .job-art svg { transform: scale(1.08); }
.job:nth-child(4n+1) .job-art { background: #e9dfcf; }
.job:nth-child(4n+2) .job-art { background: #f4dfd3; }
.job:nth-child(4n+3) .job-art { background: #dfe4e6; }
.job:nth-child(4n+4) .job-art { background: #ece5d2; }
.job-art .no { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-soft); }
.job-body { padding: 20px 22px 24px; }
.job h3 { font-size: 1.15rem; margin-bottom: 8px; }
.job p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
.carousel-note { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

/* process timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 46px; }
.timeline::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, rgba(243, 236, 225, .32) 0 1px, transparent 1px 12px) left bottom / 100% 7px no-repeat, linear-gradient(rgba(243, 236, 225, .5), rgba(243, 236, 225, .5)) left bottom / 100% 1px no-repeat; }
.tstep { position: relative; padding-right: 28px; }
.tstep::before { content: ""; position: absolute; top: -44px; left: 0; width: 13px; height: 13px; border-radius: 3px; background: var(--rust); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--ink); }
.tstep .num { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-l); }
.tstep h3 { margin: 10px 0; }
.tstep p { margin: 0; font-size: .98rem; }

/* why us: tabs + counters */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.why h2 { margin-top: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 26px 0 0; background: var(--stone); border-radius: 14px; border: 1px solid var(--rule); width: max-content; max-width: 100%; }
.tabs button { padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--ink-soft); cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fffdf9; color: var(--ink); box-shadow: var(--lift); }
.tab-panels { margin-top: 26px; }
.tab-panel { animation: panelIn .4s var(--ease); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.4rem; }
.tab-panel p { color: var(--ink-soft); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 10px; border-radius: 999px; background: #fffdf9; border: 1px solid var(--rule); font-size: .92rem; color: var(--ink); }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; background: var(--rust) center / 11px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); box-shadow: none; }
.note-panel { position: relative; background: var(--stone); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 46px 38px 34px; margin-top: 40px; }
.note-panel .big { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--ink); letter-spacing: -.012em; margin-bottom: 30px; padding-right: 60px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-2); }
.counters p { margin: 0; padding: 18px 12px 16px 0; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.counters p:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
.counters p:nth-last-child(-n+2) { border-bottom: 0; }
.counters strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1.05; color: var(--rust-d); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; top: -54px; right: -26px; width: 124px; height: 124px; animation: spin 36s linear infinite; filter: drop-shadow(0 10px 18px rgba(165, 66, 30, .3)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* who we help */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.client { position: relative; padding: 40px 38px 42px; background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.client:hover { transform: translateY(-4px); box-shadow: var(--lift-lg); }
.client + .client { background: var(--ink); color: #b9c0c9; border-color: var(--ink); }
.client + .client::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 83, 43, .35), transparent); pointer-events: none; }
.client + .client h3 { color: var(--paper); }
.client .tab { display: inline-block; margin-bottom: 18px; padding: 5px 10px; border-radius: 999px; background: var(--rust-50); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-d); }
.client + .client .tab { background: rgba(240, 162, 131, .14); color: var(--rust-l); }
.client h3 { font-size: 1.6rem; }
.client ul { list-style: none; margin: 18px 0 0; padding: 0; }
.client li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); }
.client + .client li { border-top-color: rgba(243, 236, 225, .14); }
.client li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 12px; height: 1.5px; background: var(--rust); }

/* insurer directory */
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.directory a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 20px 20px; text-decoration: none; color: var(--ink); background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease; }
.directory a:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: var(--rule-2); }
.directory .idx { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.directory .nm { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; transition: color .2s ease; }
.directory .nm img { display: block; max-height: 30px; width: auto; }
.directory a:hover .nm { color: var(--rust-d); }
.directory .go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust-d); }
.directory .go::after { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--arrow-out) center / contain no-repeat; mask: var(--arrow-out) center / contain no-repeat; transition: transform .2s var(--ease); }
.directory a:hover .go::after { transform: translate(2px, -2px); }
.disclaimer { margin: 28px 0 0; max-width: 780px; padding-left: 16px; border-left: 3px solid var(--rust); font-size: .9rem; color: var(--muted); }

/* advice cards */
.advice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide { display: flex; flex-direction: column; background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.guide:hover { transform: translateY(-5px); box-shadow: var(--lift-lg); }
.guide-top { position: relative; padding: 22px 24px; min-height: 120px; display: flex; align-items: flex-end; justify-content: space-between; background: var(--ink); color: var(--rust-l); overflow: hidden; }
.guide-top::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(243, 236, 225, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 236, 225, .07) 1px, transparent 1px); background-size: 18px 18px; }
.guide-top .q { position: relative; font-family: var(--serif); font-size: 4.4rem; line-height: .8; font-weight: 600; color: var(--rust); }
.guide-top .label { position: relative; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.guide-body { padding: 22px 24px 26px; }
.guide h3 { font-size: 1.2rem; margin-bottom: 10px; }
.guide p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area { padding: 30px 28px 30px; background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.area h3 { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; margin-bottom: 12px; }
.area h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 5px var(--rust-50); flex: 0 0 auto; }
.area p { color: var(--ink-soft); margin-bottom: 0; }
.towns { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-soft); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side h2 { margin-top: 14px; }
.faq-side p { color: var(--ink-soft); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--r); padding: 0 22px; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details[open] { box-shadow: var(--lift); border-color: var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.16rem; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: background .25s ease, border-color .25s ease, transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); border-color: var(--rust); background: linear-gradient(#fff, #fff) center / 12px 1.5px no-repeat, var(--rust); }
.faq details p { color: var(--ink-soft); padding: 0 40px 22px 0; margin: 0; }

/* good hands band */
.hands { position: relative; overflow: hidden; background: var(--rust); color: #fff; padding: 84px 0; }
.hands::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.hands .container { position: relative; }
.hands-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hands h2 { color: #fff; margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hands-head p { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #ffe1d4; }
.points { list-style: none; counter-reset: pt; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.points li { counter-increment: pt; position: relative; padding: 22px 20px 24px; border-radius: var(--r); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-weight: 500; line-height: 1.4; transition: background .25s ease, transform .25s var(--ease); }
.points li:hover { background: rgba(255, 255, 255, .17); transform: translateY(-3px); }
.points li::before { content: "0" counter(pt); display: block; margin-bottom: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: #ffd2bf; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact h2 { margin-top: 14px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding: 14px 16px 14px 46px; border-radius: var(--r); background: rgba(255, 253, 249, .8); border: 1px solid var(--rule); color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--rust) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checks li strong { color: var(--ink); }
.form-sheet { background: #fffdf9; border: 1.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; background: var(--ink); color: #b7bec7; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.sheet-head h3 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; color: var(--paper); }
.sheet-body { padding: 26px 26px 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2129' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); background-color: #fff; box-shadow: 0 0 0 4px var(--rust-50); }
.form-sheet .btn { width: 100%; justify-content: center; }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; }
.form-msg.ok { background: #e8f4ec; color: #1f6b43; }
.form-msg.err { background: #fbeae4; color: #8a2f12; }

/* footer */
.site-footer { background: var(--ink); color: #9ea7b2; padding: 74px 0 28px; font-size: .96rem; }
.foot-mark { margin: 0 0 46px; padding-bottom: 34px; border-bottom: 1px solid rgba(243, 236, 225, .14); font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: -.03em; color: var(--paper); }
.foot-mark span { color: var(--rust-l); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-l); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d3d8de; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(243, 236, 225, .14); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer-legal p { margin: 0; max-width: 780px; }

/* scroll reveal (only when JS has run) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 0; padding-top: 0; }
  .timeline::before { display: none; }
  .tstep { padding-top: 28px; border-top: 1px solid rgba(243, 236, 225, .3); }
  .tstep::before { top: -7px; }
  .directory { grid-template-columns: repeat(2, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 44px) / 3); }
  .points { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .topbar .top-area { display: none; }
  .topbar .container { justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--lift-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s; }
  .nav.open { transform: translateY(8px); opacity: 1; visibility: visible; transition: opacity .25s ease, transform .25s var(--ease), visibility 0s; }
  .nav a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .nav a:not(.btn):hover { background: transparent; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .hero { padding: 44px 0 120px; }
  .hero-grid, .why, .contact-grid, .faq-wrap, .head-split { grid-template-columns: 1fr; }
  .head-split { gap: 16px; margin-bottom: 40px; }
  .faq-side { position: static; }
  .promo { grid-template-columns: auto 1fr; }
  .promo .btn { grid-column: 1 / -1; justify-self: start; }
  .features, .advice { grid-template-columns: 1fr; max-width: 640px; }
  .reg-row { grid-template-columns: 48px 1fr; }
  .reg-row .code { grid-column: 2; grid-row: 1; padding-top: 0; }
  .reg-row .reg-icon { grid-row: 1 / span 2; }
  .reg-row h3 { grid-column: 2; padding-top: 0; }
  .reg-row > div:last-child { grid-column: 2; }
  .carousel { grid-auto-columns: calc((100% - 22px) / 2); }
  .clients { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .note-panel { margin-top: 56px; }
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .top-links { gap: 14px; }
  .top-links li:not(.keep) { display: none; }
  .hero-slides { padding: 16px; }
  .legend { grid-template-columns: 1fr; }
  .drawing { padding: 14px 14px 0; box-shadow: 8px 8px 0 var(--stone-3), var(--lift); }
  .drawing figcaption { margin: 0 -14px; grid-template-columns: 1fr 1fr; }
  .drawing figcaption span:first-child { grid-column: 1 / -1; }
  .drawing figcaption span:nth-child(2) { border-left: 0; border-top: 1px solid var(--ink); }
  .drawing figcaption span:nth-child(3) { border-top: 1px solid var(--ink); }
  .promo { grid-template-columns: 1fr; padding: 24px 22px; }
  .promo .btn { grid-column: auto; }
  .reg-row { padding: 22px 6px; gap: 8px 16px; }
  .reg-row:hover { transform: none; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .carousel { grid-auto-columns: 82%; }
  .timeline { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 auto; padding: 10px 12px; }
  .stamp { width: 96px; height: 96px; top: -44px; right: -6px; }
  .note-panel { padding: 42px 22px 22px; }
  .note-panel .big { padding-right: 34px; }
  .counters strong { font-size: 2.1rem; }
  .client { padding: 30px 22px; }
  .directory { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-sheet { box-shadow: 8px 8px 0 var(--ink); }
  .sheet-body { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide-dots button.active span { transform: scaleX(1); }
}
