/* =========================================================
   Tom [Surname] Painting & Decorating — site styles
   Change the accent colour in one place: --accent below.
   ========================================================= */

@view-transition { navigation: auto; }

:root {
  --cream: #F6F2EA;
  --paper: #FFFFFF;
  --ink: #23211E;
  --ink-2: #4A463F;
  --muted: #5E5A53;
  --line: #E4DDCF;
  --line-2: #ECE6DA;
  --sand: #D9CBB4;
  --stone: #BFAE95;

  --accent: #2F5D46;        /* forest green — try #3D6585 (blue) or #A9553A (terracotta) */
  --accent-dark: #234836;
  --accent-soft: #CAD1C6;
  --accent-light: #A1B6AC;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 24px;
  --radius-lg: 40px;
  --wrap: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip:focus { top: 16px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--white { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--soft { background: var(--accent-soft); }

/* ---------- Type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1.05; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.section--dark .eyebrow { color: var(--accent-light); }
.section--soft .eyebrow { color: var(--ink); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 660px; display: flex; flex-direction: column; gap: 16px; }

/* brush underline drawn on scroll */
.brush { position: relative; display: inline-block; white-space: nowrap; }
.brush svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.brush path { fill: none; stroke: var(--accent-soft); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.1s var(--ease) .5s; }
.brush.is-in path, .is-in .brush path { stroke-dashoffset: 0; }
.brush > span { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg);
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.btn::before { /* paint fill from the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(35,33,30,.18); }
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { min-height: 58px; padding: 18px 32px; font-size: 18px; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--light { --bg: var(--cream); --fg: var(--ink); border-color: var(--cream); }
.btn--light::before { background: var(--accent-soft); }
.btn--light:hover { color: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: #fff; }
.btn--outline-light::before { background: #fff; }
.btn--outline-light:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,234,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .3s;
  view-transition-name: site-header;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(35,33,30,.05); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__chips { display: flex; gap: 3px; }
.logo__chips span { width: 10px; height: 28px; border-radius: 5px; background: var(--accent); transform-origin: bottom; }
.logo__chips span:nth-child(2) { background: var(--accent-soft); }
.logo__chips span:nth-child(3) { background: var(--ink); }
.logo:hover .logo__chips span { animation: chip .6s var(--ease) both; }
.logo:hover .logo__chips span:nth-child(2) { animation-delay: .07s; }
.logo:hover .logo__chips span:nth-child(3) { animation-delay: .14s; }
@keyframes chip { 0%{transform:scaleY(1)} 40%{transform:scaleY(.55)} 100%{transform:scaleY(1)} }
.logo__name { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.1; }
.logo__name small { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .12em; color: var(--muted); }
.nav { display: flex; gap: 30px; font-weight: 600; font-size: 16px; }
.nav a { position: relative; text-decoration: none; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 18px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: var(--ink); color: #fff; border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--accent); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 100px 28px 40px;
  clip-path: circle(0% at calc(100% - 48px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 40px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { color: #fff; text-decoration: none; font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); font-weight: 700; line-height: 1.2; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .45s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .5s; }
.menu-open { overflow: hidden; }
.menu-open .header { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .logo, .menu-open .header .logo__name small { color: #fff; }
.menu-open .burger { background: #fff; color: var(--ink); }

@media (max-width: 1020px) {
  .nav, .header__cta .phone, .header__cta .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 112px); }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); position: relative; }
.pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(1);opacity:.6} 80%,100%{transform:scale(2.6);opacity:0} }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--accent); flex: none; }

/* split-text headline */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split.is-in .w > span { transform: none; }

/* roller reveal image */
.roller { position: relative; border-radius: 28px 28px 28px 120px; overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(0 0 100% 0 round 28px 28px 28px 120px); transition: clip-path 1.4s var(--ease-in-out) .35s; }
.roller.is-in { clip-path: inset(0 0 0 0 round 28px 28px 28px 120px); }
.roller > * { transform: scale(1.15); transition: transform 2s var(--ease) .35s; }
.roller.is-in > * { transform: scale(1); }
.roller::after { /* the roller edge */
  content: ""; position: absolute; left: 0; right: 0; height: 18px; top: 0;
  background: linear-gradient(var(--accent), var(--accent-dark)); border-radius: 0 0 10px 10px;
  transform: translateY(-20px); transition: transform 1.4s var(--ease-in-out) .35s, opacity .3s 1.7s;
}
.roller.is-in::after { transform: translateY(calc(var(--h, 600px))); opacity: 0; }
.float-card { position: absolute; left: -20px; bottom: 36px; background: var(--paper); border-radius: 18px; padding: 14px 18px 14px 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 16px 40px rgba(35,33,30,.12); animation: bob 6s ease-in-out infinite; }
.float-card .chip { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); flex: none; }
.float-card strong { display: block; font-size: 15px; line-height: 1.3; }
.float-card span { color: var(--muted); font-size: 14px; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@media (max-width: 560px) { .float-card { left: 12px; bottom: 16px; } }

/* image placeholder — swap for <img> */
.ph { width: 100%; height: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #6E685E; font-weight: 600; font-size: 15px;
  background-color: #E7E0D3; background-image: repeating-linear-gradient(135deg, rgba(35,33,30,.05) 0 10px, transparent 10px 20px); }
.ph--dark { background-color: #3A3733; color: #A79F92; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
.media { border-radius: var(--radius); overflow: hidden; position: relative; }
.media img, .media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }

/* wavy section edge */
.wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* ---------- Scroll reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.split-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 72px); }
.split-row > .media { flex: 1 1 360px; min-width: 0; aspect-ratio: 1 / 1; border-radius: 50% 50% 28px 28px; }
.split-row > .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.copy p { font-size: 19px; color: var(--ink-2); }

/* ---------- Services ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(35,33,30,.10); }
.service { padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 18px; }
.service__chip { height: 130px; border-radius: 16px; background: var(--c, var(--accent)); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; }
.service__chip::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .14; transform: translateY(100%); transition: transform .6s var(--ease); border-radius: 50% 50% 0 0 / 30px 30px 0 0; }
.service:hover .service__chip::before { transform: translateY(0); border-radius: 0; }
.service__num { position: relative; background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.service__body { padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.service__body p { color: var(--muted); font-size: 16px; }

/* service detail rows (services page) */
.svc-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding-block: 48px; border-top: 1px solid var(--line); }
.svc-row:nth-child(even) { flex-direction: row-reverse; }
.svc-row .media { flex: 1 1 380px; aspect-ratio: 4 / 3; }
.svc-row .copy { flex: 1 1 420px; }
.svc-row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-row li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.svc-row li svg { color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; touch-action: pan-y; user-select: none; cursor: ew-resize; --pos: 50%; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer > * { width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: var(--pos); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; transition: transform .3s var(--ease); }
.ba:hover .ba__handle, .ba.is-drag .ba__handle { transform: scale(1.1); }
.ba__tag { position: absolute; top: 16px; background: rgba(35,33,30,.82); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.ba__tag--a { left: 16px; } .ba__tag--b { right: 16px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-before .ph { background-color: #9C9384; color: #23211E; justify-content: flex-end; padding: 32px; }
.ba-after .ph { background-color: var(--accent-soft); color: #23211E; justify-content: flex-start; padding: 32px; }

.projects { display: flex; flex-wrap: wrap; gap: 24px; }
.projects > figure { margin: 0; }
.projects__main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.projects__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.projects__side figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.projects__side .media { aspect-ratio: 4 / 3; }
.projects__side figure:hover .media > * { transform: scale(1.05); }
.cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.cap strong { font-family: var(--serif); font-size: 21px; }
.section--dark .cap span, .section--dark .muted { color: #CFC8BB; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.why > div { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; position: relative; }
.why > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
.why > div.is-in::before { transform: scaleX(1); }
.why svg { color: var(--accent); }
.why h3 { font-size: 22px; }
.why p { color: var(--muted); font-size: 16px; }

/* ---------- Reviews ---------- */
.review { margin: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; border: 0; }
.review svg { color: var(--accent); }
.review p { font-size: 18px; line-height: 1.55; color: #6E685E; font-style: italic; }
.review footer { margin-top: auto; font-weight: 700; }
.review footer span { font-weight: 500; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #C99A2E; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: s; }
.steps li { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.steps .num { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }

/* ---------- Areas marquee ---------- */
.areas { background: var(--paper); border: 1px solid var(--line-2); border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; padding-right: 12px; flex: none; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.chip-town { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; white-space: nowrap; }
.chip-town svg { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.cta__blob { position: absolute; right: -80px; top: -80px; width: 440px; height: 440px; opacity: .13; z-index: -1; animation: blob 18s ease-in-out infinite; }
.cta__blob--2 { right: auto; top: auto; left: -140px; bottom: -180px; width: 380px; height: 380px; animation-duration: 22s; animation-direction: reverse; }
@keyframes blob { 0%,100%{transform:rotate(0) scale(1)} 50%{transform:rotate(40deg) scale(1.08)} }
.cta__in { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.cta h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; }
.cta p { font-size: 20px; opacity: .92; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 600 16px var(--sans); color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.filter[aria-pressed="true"], .filter:hover { background: var(--ink); color: #fff; }
.gallery { columns: 3 300px; column-gap: 20px; }
.gallery .cap { flex-direction: column; gap: 2px; }
.gallery figure { margin: 0 0 28px; break-inside: avoid; display: flex; flex-direction: column; gap: 12px; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.gallery figure.is-out { opacity: 0; transform: scale(.94); }
.gallery figure[hidden] { display: none; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery .media.tall { aspect-ratio: 3 / 4; }
.gallery figure:hover .media > * { transform: scale(1.05); }
.gallery .tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; z-index: 1; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; }
.contact__aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.contact__form { flex: 2 1 520px; min-width: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.quick { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px 20px; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.quick:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(35,33,30,.08); }
.quick .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
.quick strong { display: block; } .quick span { color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 17px var(--sans); color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47,93,70,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.err { color: #B3261E; font-size: 14px; font-weight: 600; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 600; min-height: 44px; transition: border-color .25s, background .25s; }
.radios input { accent-color: var(--accent); width: 18px; height: 18px; min-height: 0; }
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 24px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .25s, background .25s; position: relative; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(47,93,70,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files li { background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-note { font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.form-success .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.form-success .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-sent .form { display: none; } .is-sent .form-success { display: flex; animation: pop .7s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #CFC8BB; font-size: 16px; }
.footer a:not(.btn) { color: #CFC8BB; text-decoration: none; transition: color .2s; }
.footer a:not(.btn):hover { color: #fff; }
.footer__stripes { display: flex; height: 8px; }
.footer__stripes span { flex: 3; background: var(--accent); transform-origin: left; }
.footer__stripes span:nth-child(2) { flex: 2; background: var(--accent-soft); }
.footer__stripes span:nth-child(3) { flex: 1; background: var(--sand); }
.footer__stripes span:nth-child(4) { flex: 2; background: var(--accent-light); }
.footer__in { padding-block: 80px 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer__brand { flex: 2 1 300px; display: flex; flex-direction: column; gap: 20px; }
.footer__brand .logo__name { color: var(--cream); font-size: 30px; }
.footer__brand .logo__name small { color: #CFC8BB; font-size: 13px; }
.footer__col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 12px; }
.footer__col h2 { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin-bottom: 4px; }
.footer__col a.strong { color: var(--cream); font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #3A3733; padding-top: 28px; font-size: 14px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
::view-transition-old(root) { animation: vt-out .45s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .split .w > span { opacity: 1; transform: none; }
  .roller { clip-path: none; }
  .marquee__track { animation: none; }
}
.menu-open .logo__chips span:first-child { background: #fff; }

/* ===== Custom inputs (patch) ===== */
.cselect { position: relative; }
.cselect select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cselect__btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  font: 400 17px var(--sans); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.cselect__btn:hover { border-color: #CFC6B5; }
.cselect__btn:focus-visible, .cselect.is-open .cselect__btn { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47,93,70,.14); }
.cselect__btn.is-placeholder .cselect__val { color: var(--muted); }
.cselect__chev { flex: none; color: var(--ink); transition: transform .4s var(--ease); }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }
.field.has-error .cselect__btn { border-color: #B3261E; }
.cselect__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 48px rgba(35,33,30,.16);
  max-height: 320px; overflow: auto; transform-origin: top center;
  opacity: 0; transform: translateY(-8px) scale(.97); visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.cselect.is-open .cselect__list { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.cselect.is-up .cselect__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.cselect__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: background .2s, color .2s, opacity .3s, transform .4s var(--ease);
}
.cselect.is-open .cselect__opt { opacity: 1; transform: none; transition-delay: 0s, 0s, calc(var(--i) * 30ms), calc(var(--i) * 30ms); }
.cselect__opt.is-active { background: var(--cream); }
.cselect__opt[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.cselect__opt .tick-ico { opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease); color: var(--accent); }
.cselect__opt[aria-selected="true"] .tick-ico { opacity: 1; transform: none; }
.cselect__swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-right: 10px; display: inline-block; vertical-align: -2px; }

/* custom checkbox + radios */
.check input[type=checkbox], .radios input[type=radio] {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; min-height: 0; flex: none; display: grid; place-content: center;
  border: 1.5px solid #B9B0A0; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.check input[type=checkbox] { width: 24px; height: 24px; min-width: 24px; border-radius: 7px; margin-top: 1px; }
.check input[type=checkbox]::before {
  content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease);
}
.check input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.check input[type=checkbox]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.radios input[type=radio] { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; }
.radios input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.radios input[type=radio]:checked { border-color: var(--accent); }
.radios input[type=radio]:checked::before { transform: scale(1); }
.check input:focus-visible, .radios input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(47,93,70,.2); }
.field.has-error .check input[type=checkbox] { border-color: #B3261E; }
