/* NextZenLab. Tokens come from NextZenLab-Plan.md and NextZenLab-Style.md. */
:root {
  /* Brand colours sampled from the logo */
  --bg: #ffffff;
  --ink: #1a222c;
  --surface: #f6f9fb;
  --tint: #f0fafd;
  --border: #e2e8ee;
  --border-bright: #c3ced8;
  --text: #1a222c;
  --muted: #566372;
  --accent: #1cbce0; /* fills only: too light for text on white */
  --accent-ink: #0a7393; /* accent text, lines and icons on white */
  --accent-2: #1cbce0;
  --wall: #1a222c;
  --error: #7a0f22;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.08; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; }

a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px;
  background: var(--accent); color: var(--ink); font-weight: 600; border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.key { font-family: var(--font-mono); font-weight: 400; color: var(--accent-ink); font-size: 0.62em; vertical-align: 0.18em; letter-spacing: 0; }

/* Buttons: only the two from the style guide, plus the primary inverted for the sky blue section */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent;
  font: 500 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 180ms, border-color 180ms, color 180ms, transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #4bcde9; }
.btn-ghost { border-color: var(--border-bright); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c3744; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color 200ms, border-color 200ms; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 50px; }
.nav-desktop { display: flex; gap: 32px; margin-left: auto; }
.nav-desktop a { position: relative; font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 0; transition: color 160ms; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 200ms var(--ease), top 200ms var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span { top: 21px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Mobile menu: an overlay under the header. Rows go 0fr to 1fr so its height can animate. */
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  grid-template-rows: 0fr; visibility: hidden;
  background: var(--bg); box-shadow: 0 18px 32px -18px rgba(26, 34, 44, 0.28);
  transition: grid-template-rows 260ms var(--ease), visibility 0s linear 260ms;
}
.site-header.is-open .nav-mobile {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 420ms var(--ease), visibility 0s;
}
.nav-mobile-inner { min-height: 0; overflow: hidden; padding-inline: var(--gutter); }
.nav-mobile a {
  opacity: 0; transform: translateY(-10px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.site-header.is-open .nav-mobile a {
  opacity: 1; transform: none;
  transition: opacity 320ms ease, transform 420ms var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 40ms);
}
.nav-mobile a:nth-child(2) { --i: 1; }
.nav-mobile a:nth-child(3) { --i: 2; }
.nav-mobile a:nth-child(4) { --i: 3; }
.nav-mobile a:nth-child(5) { --i: 4; }
.nav-mobile a:nth-child(6) { --i: 5; }
.nav-mobile a:nth-child(7) { --i: 6; }
.nav-mobile a:first-child { margin-top: 8px; }
.nav-mobile a:last-child { margin-bottom: 20px; }
.nav-mobile a { display: block; padding: 14px 0; font: 600 22px/1.2 var(--font-display); letter-spacing: -0.03em; text-decoration: none; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { color: var(--accent-ink); border-bottom: 0; }

/* Hero */
.hero { position: relative; margin-top: -81px; padding-top: 81px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(28, 188, 224, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 188, 224, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 10%, transparent 75%);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: calc(100svh - 81px); padding-block: 32px 56px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 66px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.hero-lede { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { margin-top: 32px; font: 400 14px/1.4 var(--font-mono); color: var(--muted); }

.plan-wrap figcaption { min-height: 3em; margin-top: 10px; padding-inline: 5.7%; font-size: 15px; color: var(--muted); }

/* Floor plan */
.plan { width: 100%; height: auto; overflow: visible; }
.wall { fill: none; stroke: var(--wall); stroke-width: 5; stroke-dasharray: 1 1; }
.wall.outer { stroke-width: 10; stroke-linejoin: miter; }
.door path { fill: none; stroke: var(--muted); stroke-width: 1.25; opacity: 0.65; }
.room { cursor: pointer; text-decoration: none; outline: none; }
.room-fill { fill: transparent; transition: fill 200ms; }
.kit { fill: none; stroke: #8393ab; stroke-width: 1.5; transition: stroke 200ms; }
.room text { fill: var(--text); font: 600 23px var(--font-body); letter-spacing: -0.015em; transition: fill 200ms; }
.room .key { fill: var(--accent-ink); font: 400 15px var(--font-mono); }
.room:hover .room-fill, .room:focus-visible .room-fill { fill: rgba(28, 188, 224, 0.2); }
.room:hover .kit, .room:focus-visible .kit { stroke: var(--accent-ink); }
.room:hover text, .room:focus-visible text { fill: var(--accent-ink); }
.room:focus-visible .room-fill { stroke: var(--accent-ink); stroke-width: 2; }
.dim path { fill: none; stroke: var(--border-bright); stroke-width: 1; }
.dim text { fill: var(--muted); font: 400 13px var(--font-mono); stroke: var(--bg); stroke-width: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .wall { animation: draw 1.2s var(--ease) both; }
  .wall.outer { animation-duration: 1.7s; }
  .walls .wall:nth-child(2n) { animation-delay: 0.35s; }
  .walls .wall:nth-child(2n + 1):not(.outer) { animation-delay: 0.55s; }
  .door, .kit, .dim { animation: fade 0.8s ease 1.05s both; }
  .room text { animation: fade 0.7s ease 1.3s both; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-lede { animation-delay: 0.1s; }
  .hero-actions { animation-delay: 0.18s; }
  .hero-facts { animation-delay: 0.26s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Section head */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head p { max-width: 50ch; color: var(--muted); }

/* Services */
.services { padding-block: var(--section) 0; }
.services-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.services-side { position: sticky; top: 104px; }
.mini-plan { margin-bottom: 28px; }
.mini-plan .plan { pointer-events: none; }
.mini-plan .dim, .mini-plan .room text, .mini-plan .kit, .mini-plan .door { display: none; }
.mini-plan .wall { stroke-width: 8; stroke: var(--border-bright); animation: none; }
.mini-plan .wall.outer { stroke-width: 12; }
.mini-plan .room-fill { transition: fill 280ms; }
.mini-plan .room.is-active .room-fill { fill: var(--accent); }

.room-index { counter-reset: room; }
.room-index li { counter-increment: room; }
.room-index a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 15px; transition: color 160ms; }
.room-index a::before { content: counter(room); font: 400 12px var(--font-mono); width: 12px; color: var(--muted); }
.room-index a:hover { color: var(--text); }
.room-index a.is-active { color: var(--accent-ink); }
.room-index a.is-active::before { color: var(--accent-ink); }

.sheet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.sheet:first-child { border-top: 0; padding-top: 0; }
.sheet h3 .key { margin-right: 4px; }
.sheet-copy p { margin-top: 16px; max-width: 46ch; color: var(--muted); }
.sheet-copy ul { margin-top: 20px; }
.sheet-copy li { padding: 9px 0; font-size: 15.5px; border-top: 1px solid var(--border); }
.text-link { display: inline-block; margin-top: 22px; color: var(--accent-ink); font-weight: 500; font-size: 15.5px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.sheet-fig figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Mock screens: shared shell */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 14px; line-height: 1.4; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mock .muted { color: var(--muted); font-weight: 400; }
.fake-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; background: var(--accent); color: var(--ink); border-radius: 6px; font-weight: 500; }

/* E-commerce */
.cart b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; }
.shop-body { display: grid; grid-template-columns: 1fr 1fr; }
.shop-photo { display: grid; place-items: center; padding: 20px; background: #eef2f7; }
.shop-photo svg { width: min(100%, 130px); fill: none; stroke: var(--wall); stroke-width: 1.5; }
.shop-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.shop-info strong { font: 600 17px/1.25 var(--font-display); letter-spacing: -0.02em; }
.price { color: var(--muted); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; background: #d8cfc0; }
.swatches i:nth-child(2) { background: #5f6e87; }
.swatches i:nth-child(3) { background: #2b3648; }
.shop-info small { color: var(--muted); font-size: 13px; }

/* Interior */
.elevation { width: 100%; height: auto; }
.draw { fill: none; stroke: var(--wall); stroke-width: 1.5; stroke-linejoin: round; }
.draw.thick { stroke-width: 3; }
.draw.accent { stroke: var(--accent-ink); stroke-width: 2; }
.dim-line { fill: none; stroke: var(--border-bright); }
.elevation text { fill: var(--muted); font: 400 13px var(--font-mono); stroke: var(--bg); stroke-width: 10px; paint-order: stroke; }

/* Custom software */
.mock-table table { width: 100%; border-collapse: collapse; }
.mock-table td { padding: 13px 16px; border-top: 1px solid var(--border); }
.mock-table tr:first-child td { border-top: 0; }
.mock-table td:nth-child(2) { color: var(--muted); }
.mock-table td:last-child { text-align: right; }
.status { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12.5px; white-space: nowrap; background: #fdf1d8; color: #80530a; transition: background-color 300ms, color 300ms; }
.status.done { background: rgba(28, 188, 224, 0.16); color: var(--accent-ink); }
.status.open { background: var(--border); color: var(--muted); }

/* AI */
.mock-chat { display: flex; flex-direction: column; gap: 12px; padding: 20px; font-size: 15px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 12px; }
.ask { align-self: flex-end; background: var(--border); border-bottom-right-radius: 3px; }
.reply { border: 1px solid var(--border-bright); border-bottom-left-radius: 3px; }
.reply cite { display: block; margin-top: 8px; font: 400 12.5px var(--font-mono); color: var(--accent-ink); }
.step { font: 400 12.5px var(--font-mono); color: var(--muted); }

/* WordPress */
.publish { padding: 5px 12px; background: var(--accent-2); color: var(--ink); border-radius: 5px; font-size: 13px; }
.wp-body { display: grid; gap: 8px; padding: 16px; }
.wp-block { padding: 10px 14px; border: 1px solid var(--border); border-radius: 5px; }
.wp-block small { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.wp-block.selected { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.wp-block strong { font: 600 17px/1.25 var(--font-display); letter-spacing: -0.02em; }
.wp-image { display: block; height: 62px; border-radius: 3px; background: linear-gradient(120deg, #e3e8f0, #c3cddb); }
.wp-line { display: block; height: 7px; margin-top: 7px; background: var(--border-bright); border-radius: 4px; }
.wp-line.short { width: 62%; }

/* Shopify */
.mock-liquid { display: grid; grid-template-columns: minmax(0, 1fr); }
.mock-liquid pre { padding: 18px 20px; overflow: hidden; font: 400 13px/1.7 var(--font-mono); color: var(--accent-ink); white-space: pre-wrap; border-bottom: 1px solid var(--border); }
.mock-liquid code { font: inherit; font-variant-ligatures: none; }
.cart-card { padding: 14px 20px; }
.cart-card div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cart-card .discount { color: var(--accent-ink); }
.cart-card .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border-bright); font-weight: 600; }

/* UI/UX */
.mock-ux { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 20px); padding: 24px clamp(12px, 3vw, 28px); }
.phone { display: flex; flex: 1 1 0; flex-direction: column; gap: 10px; max-width: 170px; min-height: 236px; padding: 14px; border: 1.5px solid var(--border-bright); border-radius: 16px; }
.wire i { display: block; border: 1px dashed var(--muted); border-radius: 3px; }
.w-title { width: 62%; height: 16px; }
.w-box { flex: 1; }
.w-line { height: 8px; }
.w-line.s { width: 60%; }
.w-btn { height: 34px; }
.ux-arrow { flex: 0 0 auto; width: clamp(24px, 4vw, 44px); fill: none; stroke: var(--accent-ink); stroke-width: 2; }
.final { background: var(--bg); }
.final strong { font: 600 14px/1.2 var(--font-display); letter-spacing: -0.02em; }
.final small { color: var(--muted); font-size: 13px; }
.final .fake-btn { margin-top: auto; }
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cal i { aspect-ratio: 1; border-radius: 4px; background: var(--border); }
.cal i.on { background: var(--accent); }

/* One small result per mock, played once when it scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js .sheet:not(.is-seen) .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .js .sheet.is-seen .draw { stroke-dasharray: 1 1; animation: draw 1.3s var(--ease) both; }

  .js .sheet:not(.is-seen) .cart-count { transform: scale(0); }
  .js .cart-count { transition: transform 420ms cubic-bezier(0.34, 1.7, 0.64, 1) 350ms; }

  .js .sheet:not(.is-seen) .status.late { background: #fdf1d8; color: #80530a; }
  .js .status.late { transition-delay: 500ms; }

  .js .sheet:not(.is-seen) .step, .js .sheet:not(.is-seen) .reply { opacity: 0; transform: translateY(8px); }
  .js .step, .js .reply { transition: opacity 400ms ease, transform 400ms var(--ease); }
  .js .step { transition-delay: 250ms; }
  .js .reply { transition-delay: 800ms; }

  .js .sheet:not(.is-seen) .wp-block.selected { border-color: var(--border); box-shadow: none; }
  .js .wp-block.selected { transition: border-color 300ms 300ms, box-shadow 300ms 300ms; }

  .js .sheet:not(.is-seen) .discount { opacity: 0; }
  .js .discount { transition: opacity 400ms ease 450ms; }

  .js .sheet:not(.is-seen) .ux-arrow { opacity: 0; transform: translateX(-8px); }
  .js .sheet:not(.is-seen) .phone.final { opacity: 0; }
  .js .ux-arrow { transition: opacity 300ms ease 200ms, transform 300ms var(--ease) 200ms; }
  .js .phone.final { transition: opacity 500ms ease 450ms; }
}

/* Technology */
.technology { padding-block: var(--section); }
.tech-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 40px; padding-block: 28px; border-top: 1px solid var(--border); }
.tech-group:last-child { border-bottom: 1px solid var(--border); }
.tech-group h3 { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; }
.tech-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; }
.tech-items li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.tech-items img { flex: none; width: 24px; height: 24px; }

/* Long-term services */
.long-term { padding-block: var(--section); background: var(--tint); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.plan-card { padding-top: 22px; border-top: 3px solid var(--accent); }
.plan-card p { margin-top: 10px; color: var(--muted); max-width: 36ch; }
.plan-card ul { margin-top: 18px; }
.plan-card li { padding: 10px 0; font-size: 15.5px; border-top: 1px solid #d7e8ee; }
.long-term-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(40px, 5vw, 64px); }
.long-term-foot p { max-width: 62ch; color: var(--muted); }

/* Approach */
.approach { padding-block: var(--section); scroll-margin-top: 0; }
.steps-wrap { position: relative; }
.steps-line { height: 5px; background: var(--border); }
.steps-line span { display: block; height: 100%; background: var(--accent-ink); transform-origin: left; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 32px 32px 0 0; border-left: 0; }
.steps li::before { content: counter(step); display: block; margin-bottom: 16px; font: 400 14px var(--font-mono); color: var(--accent-ink); }
.steps h3 { font-size: 23px; }
.steps p { margin-top: 10px; color: var(--muted); max-width: 30ch; }

/* Work */
.work { padding-block: 0 var(--section); }
.work-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 16px 40px; align-items: baseline; padding-block: 32px; border-top: 1px solid var(--border); }
.work-list li:last-child { border-bottom: 1px solid var(--border); }
.work-list h3 { font-size: clamp(25px, 2.9vw, 38px); }
.work-list p { color: var(--muted); max-width: 48ch; }
.work-list span { font-size: 14px; color: var(--muted); text-align: right; }

/* About */
.about { padding-block: 0 var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px clamp(48px, 7vw, 112px); }
.about-lede { margin-top: 28px; max-width: 34ch; font: 400 clamp(20px, 2vw, 25px)/1.4 var(--font-display); letter-spacing: -0.025em; color: var(--text); }
.principles div { padding-block: 20px; border-top: 1px solid var(--border); }
.principles dt { font: 600 18px/1.3 var(--font-display); letter-spacing: -0.02em; }
.principles dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* Contact: the page's single full switch to the brand sky blue */
.contact { background: var(--accent); color: var(--ink); padding-block: clamp(72px, 9vw, 128px); scroll-margin-top: 72px; }
.contact :focus-visible { outline-color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 112px); }
.contact h2 { font-size: clamp(36px, 4.8vw, 64px); letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.contact-grid > div > p { margin-top: 24px; font-size: 18px; }
.contact-links { margin-top: 16px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 17px; font-weight: 500; text-underline-offset: 4px; }

fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(26, 34, 44, 0.55); border-radius: 20px; font-size: 15px; font-weight: 500; transition: background-color 140ms, color 140ms; }
.chips label:hover span { background: rgba(26, 34, 44, 0.09); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.field label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 15px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid transparent; border-radius: 6px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 14px; font-weight: 500; }
.field-error:empty { display: none; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { padding-block: clamp(48px, 6vw, 72px) 28px; background: var(--ink); color: #fff; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-about { margin-top: 18px; max-width: 36ch; font-size: 15px; color: #b6c1cc; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 36px clamp(24px, 4vw, 56px); align-items: start; }
.site-footer .brand img { height: 64px; }
.footer-title { margin-bottom: 12px; font: 600 15px/1.4 var(--font-display); letter-spacing: -0.02em; }
.site-footer address { font-style: normal; font-size: 15px; color: #b6c1cc; }
.footer-links a, .social-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; text-decoration: none; transition: color 160ms; }
.footer-links a:hover, .social-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: #b6c1cc; text-align: center; }

/* Tablet */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-side { display: none; }
  .sheet:first-child { border-top: 1px solid var(--border); padding-top: clamp(48px, 6vw, 80px); }
}

@media (max-width: 960px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile { display: grid; }
  /* Still scrolls on very short screens, but no scrollbar shows while the height animates. */
  .nav-mobile-inner { max-height: calc(100dvh - 80px); overflow-y: auto; scrollbar-width: none; }
  .nav-mobile-inner::-webkit-scrollbar { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 48px 40px; gap: 40px; }
  .section-head, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .work-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .work-list span { text-align: left; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-card p { max-width: 60ch; }
  .tech-group { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .steps-line { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 24px 0; border-top: 1px solid var(--border); }
  .steps li::before { margin-bottom: 8px; }
  .steps p { max-width: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .plan-wrap figcaption { padding-inline: 0; }
  .brand img { height: 42px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .brand img { height: 56px; }
  .tech-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .dim { display: none; }
  .hero .room text { font-size: 28px; }
  .hero .room .key { font-size: 19px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}
