/* KP Space Decor — brand tokens from the KP logo (royal blue mark + gold window) */
:root {
  --blue: #1a12c8;
  --blue-deep: #110b94;
  --blue-tint: #eef0ff;
  --gold: #c9a24c;
  --gold-tint: #faf3e2;
  --ink: #12122b;
  --text: #24233a;
  --muted: #5f5e74;
  --line: #e4e2ea;
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --white: #fff;

  --sans: "Manrope", system-ui, sans-serif;

  --h1: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
  --h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  --space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 6px;
  --shadow: 0 18px 40px -24px rgba(18, 18, 43, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font: 400 1.0625rem/1.75 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 760px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* Type */
.label { display: inline-flex; align-items: center; gap: .7rem; font: 700 .875rem/1.4 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--blue); margin-bottom: 1rem; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h1 { font: 700 var(--h1)/1.1 var(--sans); }
.h2 { font: 700 var(--h2)/1.15 var(--sans); margin-bottom: .8rem; }
.h3 { font: 700 1.1rem/1.3 var(--sans); margin-bottom: .4rem; }
.h1 em, .h2 em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border: 1.5px solid transparent; border-radius: var(--radius); font: 700 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--white); }
.btn--outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-white:hover { background: var(--white); color: var(--blue); }
.btn--wa { background: #1faa59; color: var(--white); }
.btn--wa:hover { background: #178a48; }
.link { font-weight: 700; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link::after { content: "→"; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 74px; }
.logo img { width: 86px; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: .8rem; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Sections */
.section { padding: var(--space) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--blue-tint); }
.section--gold { background: var(--gold-tint); }
.section--dark { background: linear-gradient(135deg, var(--ink), var(--blue-deep)); color: rgba(255, 255, 255, .75); }
.section--dark .h2, .section--dark .h3 { color: var(--white); }
.section--dark .label, .section--dark .link { color: var(--gold); }
.section--dark .steps li { border-color: rgba(255, 255, 255, .18); }
.section--dark .steps p { color: rgba(255, 255, 255, .7); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }

/* Home hero: real KP photos full-screen, slow crossfade + zoom (driven by initHeroSlides) */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 74px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 18, 43, .95) 0%, rgba(18, 18, 43, .55) 45%, rgba(18, 18, 43, .1) 100%), linear-gradient(90deg, rgba(17, 11, 148, .5), transparent 65%); }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__slides img.is-active { opacity: 1; }
.hero__content { padding-top: 7rem; }
.hero__content > * { max-width: 700px; }
.hero .label { color: var(--gold); }
.hero .h1 { color: var(--white); font-size: clamp(2.5rem, 1.4rem + 4vw, 4.8rem); line-height: 1.04; letter-spacing: -.03em; }
.hero .h1 em { color: var(--gold); }
.hero .lead { margin: 1.4rem 0 2rem; color: rgba(255, 255, 255, .8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__meta { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 8vh, 5rem); padding: 1.4rem 0 1.6rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: rgba(255, 255, 255, .65); }
.hero__count b { color: var(--white); font-size: 1rem; }
.hero__bar { flex: 0 0 72px; height: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hero__bar span { display: block; height: 100%; background: var(--gold); animation: fill 8s linear; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.hero__caption { color: var(--white); font-weight: 700; }
.hero__pause { margin-left: auto; padding: .3rem 0; background: none; border: 0; color: inherit; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.hero__pause:hover { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .9s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .1s; }
  .hero__content > :nth-child(3) { animation-delay: .2s; }
  .hero__content > :nth-child(n+4) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .hero__bar { display: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Scrolling service band */
.ticker { overflow: hidden; background: var(--gold); color: var(--ink); padding: 1.1rem 0; }
.ticker__track { display: flex; width: max-content; font: 700 clamp(1rem, .85rem + .8vw, 1.45rem)/1 var(--sans); letter-spacing: -.01em; }
.ticker span { padding-right: 2.2rem; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 2.2rem; color: var(--blue-deep); font-size: .7em; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .ticker__track { animation: ticker 45s linear infinite; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Service tiles: full-image, text on a shade, no box */
.tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.tile { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; border-radius: var(--radius); color: var(--white); text-decoration: none; display: flex; align-items: flex-end; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 18, 43, .9), rgba(18, 18, 43, 0) 60%); }
.tile__body { padding: 1.6rem; }
.tile__no { font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--gold); }
.tile h3 { color: var(--white); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); margin: .4rem 0 .35rem; }
.tile p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.tile h3::after { content: "→"; display: inline-block; margin-left: .5rem; color: var(--gold); transition: transform .3s var(--ease); }
.tile:hover img { scale: 1.06; }
.tile:hover h3::after { transform: translateX(6px); }

/* Three-line how-to beside the estimate teaser */
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mini-steps li { counter-increment: m; display: flex; align-items: baseline; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(18, 18, 43, .14); font-size: 1.1rem; color: var(--text); }
.mini-steps li::before { content: counter(m, decimal-leading-zero); font-weight: 800; color: var(--gold); min-width: 2ch; }
.mini-steps b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; font-weight: 600; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: .45rem; }
.ticks--no li::before { content: "✕"; color: var(--muted); }

/* Inner page hero */
.page-hero { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); background: radial-gradient(circle at 90% 10%, rgba(201, 162, 76, .25), transparent 40%), linear-gradient(135deg, var(--ink), var(--blue-deep)); color: var(--white); }
.page-hero .h1 { color: var(--white); }
.page-hero .lead { margin-top: 1rem; color: rgba(255, 255, 255, .8); }
.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .6); margin-bottom: 1rem; }
.crumbs a { color: var(--gold); }

/* Cards */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__body p { color: var(--muted); font-size: .93rem; margin: 0; }
.card__body .link { margin-top: auto; padding-top: .7rem; font-size: .9rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.6rem/1 var(--sans); color: var(--gold); margin-bottom: 1rem; }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .6s var(--ease); }
.steps li:hover::after { width: 100%; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Detailed process (how-it-works page) */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.timeline > li { counter-increment: t; display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; padding-bottom: 2.4rem; position: relative; }
.timeline > li::before { content: counter(t); width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font: 700 1.2rem/1 var(--sans); }
.timeline > li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 58px; bottom: 6px; width: 2px; background: var(--line); }
.timeline h3 { font: 700 1.25rem/1.3 var(--sans); margin: .5rem 0 .5rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1rem; }
.facts div { background: var(--bg-soft); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; }
.facts b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .25rem; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Services page: sub-nav */
.subnav { position: sticky; top: 74px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; }
.subnav a { flex: none; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1rem; padding: .5rem 1rem; border-radius: 999px; background: var(--bg-soft); }
.subnav a:hover { background: var(--blue-tint); color: var(--blue); }

/* Layout idea cards with diagram */
.idea { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.idea svg { width: 100%; height: 140px; padding: .6rem; background: var(--bg-soft); border-radius: 10px; margin-bottom: .5rem; }
.idea dl { margin: .4rem 0 0; display: grid; gap: .45rem; font-size: 1rem; }
.idea dt { font-weight: 700; color: var(--ink); }
.idea dd { margin: 0; color: var(--muted); }
.plan-wall { fill: none; stroke: #b9b7c6; stroke-width: 2; }
.plan-counter { fill: #cfd2ff; stroke: var(--blue); stroke-width: 1.5; }
.plan-island { fill: var(--gold-tint); stroke: var(--gold); stroke-width: 1.5; }
.plan-label { font: 600 7px var(--sans); fill: var(--muted); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-soft); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.compare tbody th { color: var(--ink); white-space: nowrap; }
.compare tr:last-child > * { border-bottom: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 250px); gap: 1rem; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .frame, .gallery img { height: 100%; }
.gallery img { width: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.gallery figure:hover img { scale: 1.06; }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.1rem 1rem; background: linear-gradient(0deg, rgba(18, 18, 43, .88), transparent); font-size: .85rem; color: rgba(255, 255, 255, .75); }
.gallery figcaption b { display: block; color: var(--white); font-size: 1rem; }

/* Estimator */
.estimate { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.calc { background: var(--white); padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.calc fieldset[hidden] { display: none; }
.calc legend { font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .65rem 1.05rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.seg label:hover span { border-color: var(--blue); }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc__out { background: var(--blue-tint); border-radius: 12px; padding: 1.2rem 1.3rem; margin: .4rem 0 1.2rem; }
.calc__out span { font-size: .8rem; font-weight: 700; color: var(--blue); }
.calc__out strong { display: block; font: 800 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.2 var(--sans); color: var(--ink); margin: .2rem 0; }
.calc__out small { color: var(--muted); font-size: .82rem; }
.tiers { display: grid; gap: .9rem; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; background: var(--white); }
.tier h3 { font: 700 1.1rem/1.3 var(--sans); }
.tier ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.person { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.2rem; }
.person__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; background: var(--blue-tint); display: grid; place-items: center; font: 700 2rem/1 var(--sans); color: var(--blue); }
.person h3 { font: 700 1.15rem/1.3 var(--sans); }
.person .role { color: var(--blue); font-weight: 700; font-size: .85rem; margin: .2rem 0 .6rem; }
.todo { display: inline-block; background: #fff4d6; color: #7a5a00; border: 1px dashed #d9b44a; border-radius: 6px; padding: .1rem .45rem; font-size: .75rem; font-weight: 700; }

/* CTA band */
.cta { border-image: linear-gradient(120deg, var(--blue-deep), var(--blue)) fill 0 / / 0 100vmax; color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: var(--white); font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.8rem)/1.15 var(--sans); letter-spacing: -.02em; }
.cta p { color: rgba(255,255,255,.8); margin: .5rem 0 0; }
.cta__btns { display: flex; gap: .7rem; flex-wrap: wrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font: 400 1.5rem/1 var(--sans); color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.enquiry label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--ink); }
.enquiry .full { grid-column: 1 / -1; }
.enquiry input, .enquiry select, .enquiry textarea { font: 400 .95rem/1.4 var(--sans); color: var(--text); background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .85rem; transition: border-color .2s; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 0; border-color: var(--blue); background: var(--white); }
.enquiry__err { margin: 0; min-height: 1.2em; color: #b42318; font-size: .88rem; font-weight: 600; }

/* Consultation popup (built in js/main.js) */
html:has(.modal[open]) { overflow: hidden; }
.modal { width: min(40rem, 100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 20px; overflow: hidden; color: var(--text); box-shadow: 0 40px 100px -30px rgba(18, 18, 43, .6); }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(18, 18, 43, .55); backdrop-filter: blur(4px); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.6rem 1.2rem; background: var(--blue-deep); color: var(--white); }
.modal__head .label { color: var(--gold); margin: 0; }
.modal__head h2 { margin: .5rem 0 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); color: var(--white); }
.modal__close { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.modal__close:hover { background: rgba(255, 255, 255, .12); }
.modal__bar { height: 4px; background: var(--line); }
.modal__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.modal__body { border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; background: var(--bg-soft); }
.modal__body input, .modal__body textarea { background: var(--white); box-shadow: 0 6px 16px -12px rgba(18, 18, 43, .35); }
/* Multi-select option boxes with a tick in the corner */
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: flex-end; min-height: 78px; padding: .8rem 2rem .8rem .9rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); font-size: .9rem; font-weight: 700; line-height: 1.3; color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -12px rgba(18, 18, 43, .35); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.choice span::before { content: ""; position: absolute; top: .65rem; right: .65rem; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--white) center / 12px no-repeat; transition: background-color .2s, border-color .2s; }
.choice span:hover { border-color: var(--blue); transform: translateY(-2px); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-tint); }
.choice input:checked + span::before { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal legend .muted { font-weight: 500; }
.modal__nav [hidden] { display: none; }
.modal [data-step] { display: none; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal [data-step].is-current { display: grid; }
.modal fieldset { border: 0; padding: 0; margin: 0; }
.modal legend { font-weight: 700; color: var(--ink); font-size: .88rem; margin-bottom: .6rem; }
.modal__done .lead { margin: 0; }
.modal__nav { display: flex; gap: .6rem; justify-content: flex-end; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .45s var(--ease); }
  .modal[open]::backdrop { animation: fade-in .3s ease; }
  .modal [data-step].is-current { animation: step-in .4s var(--ease); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }
@media (max-width: 600px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal [data-step] { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .modal__nav .btn { flex: 1; }
}
.info { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info li { background: var(--bg-soft); border-radius: 12px; padding: 1rem 1.2rem; }
.info b { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .2rem; }
.info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.map { width: 100%; height: 260px; border: 0; border-radius: 12px; margin-top: 1rem; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 3.5rem 0 1.5rem; font-size: .92rem; margin-top: var(--space); }
/* Pages ending in a full section already have bottom padding; skip the extra gap. */
main:has(> .section:last-child) + .footer, main:has(> :last-child > .cta) + .footer { margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo { background: var(--white); padding: .4rem .6rem; border-radius: 8px; width: 110px; margin-bottom: 1rem; }
.footer h3 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer a { display: block; color: inherit; text-decoration: none; padding: .2rem 0; }
.footer a:hover { color: var(--white); }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .8rem; }

/* Floating WhatsApp + lightbox */
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.wa:hover { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,12,30,.92); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1.5rem; color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox p { margin: 0; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: 50%; cursor: pointer; }

/* Gentle reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .nav { gap: 1.1rem; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) {
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav { position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: .5rem 1rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"] { border-color: var(--line); }
  .nav .btn { display: flex; margin-top: 1rem; color: var(--white); border: 0; }
  .split, .estimate, .contact, .grid--3, .team { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .tile { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1061px) { .nav .btn { display: none; } }
@media (max-width: 600px) {
  .grid--4, .steps, .facts, .enquiry { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: span 1; }
  .tiles { grid-template-columns: 1fr; }
  .hero__meta { white-space: nowrap; padding-right: 64px; } /* room for the WhatsApp button */
  .hero__note { display: none; }
  .hero__bar { flex-basis: 40px; }
  .timeline > li { grid-template-columns: 44px 1fr; gap: 1rem; }
  .timeline > li::before { width: 40px; height: 40px; font-size: 1rem; }
  .timeline > li:not(:last-child)::after { left: 19px; top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Editorial concepts are separate from the real-project gallery. */
.editorial-photo{margin:0}.editorial-photo img{display:block;width:100%;height:auto;object-fit:cover}.editorial-photo figcaption{font-size:.95rem;color:var(--muted);margin-top:.6rem}.timeline .editorial-photo{margin:1.5rem 0}

/* Clear reference imagery, readable planning notes and real client content. */
.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}
.layout-reference{padding:0;overflow:hidden;gap:0}.layout-reference>h3,.layout-reference>.reference-fit,.layout-reference>dl,.layout-reference>.plan-toggle{margin-left:1.5rem;margin-right:1.5rem}.layout-reference>h3{margin-top:1.25rem}.layout-reference>.reference-fit{margin-top:.5rem;margin-bottom:.8rem;color:var(--text)}.layout-reference>dl{font-size:1rem;line-height:1.75;gap:.5rem;margin-bottom:1.25rem}.layout-reference dt{margin-top:.35rem}.layout-reference dd{color:var(--text)}
.reference-photo{margin:0}.reference-photo img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.reference-photo figcaption{font-size:.9375rem;line-height:1.6;color:var(--muted);padding:.65rem 0}.layout-reference .reference-photo figcaption{padding:.65rem 1.5rem;border-bottom:1px solid var(--line)}.section-detail{margin-top:2.5rem}.plan-toggle{border-top:1px solid var(--line);padding:1rem 0}.plan-toggle summary{cursor:pointer;font-size:1rem;font-weight:600;color:var(--blue)}.plan-toggle svg{height:180px;margin-top:1rem}.planning-note{font-size:1rem;line-height:1.75;max-width:75ch;margin:1.5rem 0 0;color:var(--text)}
.readable-list{padding-left:1.3rem}.readable-list li{margin-bottom:1rem}.ambience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 3rem}.ambience-grid article{border-top:1px solid var(--line);padding-top:1.5rem}.ambience-grid h3{margin:.6rem 0}.detail-number{color:var(--blue);font-size:1rem;font-weight:700}.ambience-grid p{max-width:60ch;color:var(--text)}
.client-stories-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem}.empty-state{border-top:1px solid var(--line);padding-top:1.25rem;margin-top:1.25rem;color:var(--muted)}.client-projects figure{margin:1.5rem 0}.client-projects img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}.client-projects figcaption{font-size:1rem;margin-top:.75rem}.client-projects figcaption b{display:block}.client-quote{margin:1.5rem 0;padding:1.5rem 0;border-top:1px solid var(--line)}.client-quote p{font-size:1.125rem;line-height:1.7}.client-quote footer{font-size:1rem;color:var(--muted)}
.steps p,.card__body p,.facts div,.tier ul,.enquiry label,.modal legend{font-size:1rem}.facts b,.info b{font-size:.9rem;letter-spacing:.02em;text-transform:none}.gallery figcaption{font-size:1rem;color:var(--white)}.footer__base{font-size:.9375rem}.hero .lead,.page-hero .lead{color:var(--white)}
@media(max-width:760px){.reference-grid,.ambience-grid,.client-stories-grid{grid-template-columns:1fr}.reference-grid{gap:1.5rem}.layout-reference>h3,.layout-reference>.reference-fit,.layout-reference>dl,.layout-reference>.plan-toggle{margin-left:1.1rem;margin-right:1.1rem}.layout-reference .reference-photo figcaption{padding-inline:1.1rem}.hero .h1{font-size:clamp(2rem,8vw,3.2rem);line-height:1.12}.hero__meta{gap:.6rem}.subnav a{font-size:.95rem}}

.nav a,.header__actions .btn{white-space:nowrap}

/* Shared logo treatment: the same asset and box in header and footer. */
.logo img,.footer__logo{display:block;box-sizing:border-box;width:104px;height:64px;max-width:none;padding:6px 8px;object-fit:contain;background:var(--white);border-radius:var(--radius)}
.logo{flex:none}.brand-statement{padding:clamp(1.5rem,3vw,2.25rem);gap:.75rem}.brand-statement .label{margin-bottom:.25rem}.brand-statement .h2{font-size:clamp(1.5rem,1.15rem + 1vw,2rem);line-height:1.25}.brand-statement p{color:var(--text);font-size:1.0625rem;line-height:1.8;margin:0}.brand-statement p+p{margin-top:.35rem}

/* Project journey: six connected milestones, source how-it-works.html. */
.process-intro{max-width:760px;margin-bottom:2rem}
.process-jump{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:2rem 0 4rem}
.process-jump a{display:flex;flex-direction:column;gap:8px;padding:18px 14px;border:1px solid var(--line);border-radius:6px;background:var(--white);font-weight:600;color:var(--ink);text-decoration:none}
.process-jump a:hover,.process-jump a:focus-visible{border-color:var(--blue);color:var(--blue)}
.process-jump span{color:var(--blue);font-size:.85rem;font-weight:800}
.project-timeline{position:relative}
.project-timeline::before{content:"";position:absolute;top:26px;bottom:26px;left:50%;width:2px;background:var(--gold);transform:translateX(-50%)}
.project-timeline>li{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);gap:0;padding:0 0 36px;align-items:start;scroll-margin-top:110px}
.project-timeline>li:last-child{padding-bottom:0}
.project-timeline>li::before{grid-column:2;grid-row:1;justify-self:center;z-index:1;width:52px;height:52px;outline:8px solid var(--bg-soft);content:counter(t,decimal-leading-zero);font-size:1rem}
.project-timeline>li:not(:last-child)::after{display:none}
.project-timeline .timeline-card{grid-column:1;grid-row:1;background:var(--white);border:1px solid var(--line);border-top:3px solid var(--gold);padding:28px;border-radius:6px;min-width:0}
.project-timeline>li:nth-child(even) .timeline-card{grid-column:3}
.project-timeline .timeline-phase{font-size:.85rem;color:var(--blue);font-weight:700;margin:0 0 12px}
.project-timeline h3{margin:0 0 14px;font-size:1.35rem;line-height:1.4}
.project-timeline .facts{grid-template-columns:1fr;gap:16px;padding-top:16px;margin-top:20px;border-top:1px solid var(--line)}
.project-timeline .facts div{padding:0;border:0}
.project-timeline .facts b{margin-bottom:3px;color:var(--ink)}
.project-timeline .editorial-photo img{height:220px;border-radius:6px}
.project-timeline>li:target .timeline-card{border-color:var(--blue)}
@media(max-width:900px){
 .process-jump{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:3rem}
 .project-timeline::before{left:26px;transform:none}
 .project-timeline>li{grid-template-columns:72px minmax(0,1fr)}
 .project-timeline>li::before{grid-column:1}
 .project-timeline .timeline-card,.project-timeline>li:nth-child(even) .timeline-card{grid-column:2}
}
@media(max-width:600px){
 .process-jump{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .process-jump a{padding:14px;font-size:.94rem}
 .project-timeline>li{grid-template-columns:50px minmax(0,1fr);padding-bottom:24px}
 .project-timeline::before{left:17px}
 .project-timeline>li::before{width:36px;height:36px;justify-self:start;outline-width:5px;font-size:.8rem}
 .project-timeline .timeline-card{padding:20px 16px}
 .project-timeline h3{font-size:1.18rem}
 .project-timeline .editorial-photo img{height:175px}
}

/* Restored client work and archived WordPress reviews. */
.client-stories-grid{grid-template-columns:1fr;gap:3.5rem}
.client-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.client-projects figure{margin:1rem 0 0;min-width:0}
.client-projects img{display:block;height:auto}
.client-projects figcaption{color:var(--muted);line-height:1.7}
.client-projects figcaption b{color:var(--ink);margin-bottom:6px}
.client-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.client-quote{padding:24px;background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);margin:0;align-self:start}
.client-quote p{font-size:1rem;white-space:pre-line}
.client-quote footer{color:var(--ink);font-weight:700}
.client-rating{display:block;color:var(--blue);letter-spacing:3px;font-size:1.1rem}
.client-review-meta{display:block;color:var(--muted);font-size:.875rem;margin-top:5px}
#client-photos,#client-testimonials{scroll-margin-top:110px}
@media(max-width:1000px){.client-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.client-projects,.client-quotes{grid-template-columns:1fr}.client-quote{padding:20px}}
.footer__address{font-style:normal;font-size:1rem;line-height:1.75;margin-bottom:16px}.footer .footer__phones{margin:0 0 10px;font-size:1rem;line-height:1.8}.footer .footer__phones a{display:inline;white-space:nowrap}.footer a[href^="mailto:"]{overflow-wrap:anywhere}

/* Client photo enlargement, keyboard and touch friendly. */
.client-photo-open{display:block;position:relative;width:100%;padding:0;border:0;background:var(--bg-soft);border-radius:var(--radius);cursor:zoom-in;overflow:hidden}
/* Match the design-ideas lightbox while keeping native dialog focus/Escape support. */
.photo-viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1.5rem;border:0;border-radius:0;background:transparent;color:var(--white);overflow:auto}
.photo-viewer[open]{display:grid;place-items:center;align-content:center;gap:1rem}
.photo-viewer::backdrop{background:rgba(12,12,30,.92)}
.photo-viewer__toolbar,.photo-viewer__controls{display:contents}
.photo-viewer__toolbar strong{display:none}
.photo-viewer__controls [data-close]{position:absolute;top:1rem;right:1rem;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:none;color:var(--white);font-size:1.8rem;line-height:1;cursor:pointer;z-index:1}
.photo-viewer__stage{display:contents}
.photo-viewer__stage img{max-width:100%;max-height:80vh;width:auto;height:auto;border-radius:8px}
.photo-viewer__caption{margin:0;text-align:center}

/* Client requested automatic hero/banner motion across browsers; OS preferences unchanged. */
@media(prefers-reduced-motion:reduce){.motion-enabled .hero__slides img{transition:opacity 1.4s ease !important}.motion-enabled .ticker__track{animation:ticker 45s linear infinite !important}}

.motion-paused .ticker__track{animation-play-state:paused !important}
