/* Kitchen Shop QLD: site styles.
   Colours come from their own logo and website (see DEMO-NOTES.md). The thread through the page is the
   shaker door: a frame with a recessed panel, drawn as a fine line set in from the edge of photos and cards. */

:root {
  --ink: #15191d;
  --ink-2: #2a3036;
  --muted: #565d64;
  --paper: #faf9f7;
  --white: #ffffff;
  --stone: #efece7;
  --stone-2: #e4e0d9;
  --line: #d9d4cc;
  --blue: #2b7bb9;        /* their website's blue */
  --blue-ink: #22679d;    /* the same blue, deepened so text passes AA */
  --cyan: #00b2e6;        /* "Quality Price Service" in their logo */
  --night: #0f1820;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: 16px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --panel-inset: clamp(8px, 1.3vw, 14px);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.62 var(--sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.18; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.narrow { max-width: 46rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 2px; }
.skip:focus { top: 12px; color: #fff; }

/* the "Quality | Price | Service" voice of their logo: small spaced capitals */
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55em;
  font: 650 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink);
  margin: 0 0 1.1rem;
}
.eyebrow .bar { width: 1px; height: 1em; background: currentColor; opacity: .5; }
.on-dark .eyebrow, .eyebrow.light { color: #9fdcf2; }

/* the shaker rail: two hairlines, used as a divider */
.rail { display: block; width: 56px; height: 7px; border-block: 1px solid var(--cyan); margin: 0 0 1.4rem; }
.center .rail { margin-inline: auto; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: var(--blue-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 22px; border: 1px solid var(--b); border-radius: 2px;
  background: var(--b); color: #fff; font: 650 .95rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; position: relative; transition: background .25s, color .25s, border-color .25s;
}
.btn::after { /* recessed panel line, shows on hover like a shaker door */
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.0); border-radius: 1px; transition: border-color .3s;
}
.btn:hover { background: #1b5784; border-color: #1b5784; color: #fff; }
.btn:hover::after { border-color: rgba(255,255,255,.45); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn--line-light { background: rgba(10,16,22,.18); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line-light:hover::after { border-color: rgba(0,0,0,.18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; text-decoration: none; color: var(--blue-ink); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow { color: #9fdcf2; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 50px; width: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { display: block; padding: 10px 10px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 520; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--blue-ink); }
.site-nav a[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--cyan); }
.head-call { display: none; }
@media (min-width: 1100px) { .head-call { display: inline-flex; min-height: 44px; } }

@media (max-width: 979px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: none; border: 1px solid var(--line); border-radius: 2px; font-weight: 600; font-size: .9rem; cursor: pointer;
  }
  .nav-toggle .bars { width: 16px; height: 10px; border-block: 1.5px solid currentColor; position: relative; }
  .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
  .js .site-nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100svh - 68px); overflow: auto; padding: 8px var(--gut) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
    box-shadow: 0 24px 40px -24px rgba(15,24,32,.35);
  }
  .js .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .js .site-nav ul { display: block; }
  .js .site-nav a { padding: 14px 2px; font-size: 1.08rem; border-bottom: 1px solid var(--stone); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--cyan); }
  html:not(.js) .site-head .wrap { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { width: 100%; }
  .brand img { height: 44px; }
}

/* ------------------------------------------------------------------ phone call bar */
.callbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: 68px; }
  .callbar {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(15,24,32,.4);
  }
  .callbar .btn { min-height: 50px; padding: 0 10px; font-size: .92rem; }
}

/* ------------------------------------------------------------------ hero (home) */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #e8e4de;
  min-height: min(100svh - 68px, 980px); display: grid; align-items: end;
}
@media (max-width: 899px) { .hero { min-height: calc(100svh - 68px - 68px); min-height: max(560px, calc(100svh - 136px)); } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__trace line { stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; fill: none; }
.hero::after { /* scrim so the words always read */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,14,20,.86) 0%, rgba(8,14,20,.62) 34%, rgba(8,14,20,.08) 66%, rgba(8,14,20,0) 100%);
}
@media (min-width: 900px) {
  .hero::after { background:
    linear-gradient(90deg, rgba(8,14,20,.74) 0%, rgba(8,14,20,.5) 34%, rgba(8,14,20,.08) 62%, rgba(8,14,20,0) 80%),
    linear-gradient(to top, rgba(8,14,20,.45) 0%, rgba(8,14,20,0) 40%); }
  .brand img { height: 56px; }
}
.hero__inner { padding: 0 0 clamp(28px, 6vw, 72px); }
@media (max-width: 599px) {
  .hero h1 { font-size: 1.95rem; margin-bottom: .4em; }
  .hero .eyebrow { margin-bottom: .7rem; }
  .hero .lede { font-size: .98rem; line-height: 1.5; margin-bottom: 1rem; }
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .btn { padding: 0 8px; font-size: .88rem; gap: .45em; }
  .hero__facts { font-size: .76rem; gap: 4px 12px; margin-top: .9rem; }
  .hero__caption { font-size: .62rem; top: 12px; }
}
.hero h1 { max-width: 15em; margin-bottom: .45em; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero .lede { color: rgba(255,255,255,.92); max-width: 34em; margin-bottom: 1.4rem; }
.hero .eyebrow { color: #bfe9f8; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 1.3rem 0 0; padding: 0; list-style: none; font-size: .84rem; color: rgba(255,255,255,.85); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--cyan); }
.hero__caption { position: absolute; right: var(--gut); top: 18px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(21,25,29,.62); background: rgba(255,255,255,.7); padding: 5px 9px; border-radius: 2px; }

/* the opening: their own kitchen, drawn as a designer would, then made real */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img { animation: hero-photo 3.6s var(--ease) both, hero-drift 26s 3.6s ease-in-out infinite alternate; transform-origin: 52% 48%; }
  .js .hero__trace line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-line .9s var(--ease) forwards, hero-line-out 1.4s 3.1s ease forwards; }
  .js .hero__trace g:nth-child(2) line { animation-delay: .27s, 3.1s; }
  .js .hero__trace g:nth-child(3) line { animation-delay: .39s, 3.1s; }
  .js .hero__trace g:nth-child(4) line { animation-delay: .51s, 3.1s; }
  .js .hero__trace g:nth-child(5) line { animation-delay: .63s, 3.1s; }
  .js .hero__trace g:nth-child(6) line { animation-delay: .75s, 3.1s; }
  .js .hero__trace g:nth-child(7) line { animation-delay: .87s, 3.1s; }
  .js .hero__trace g:nth-child(8) line { animation-delay: .99s, 3.1s; }
  .js .hero__trace g:nth-child(9) line { animation-delay: 1.11s, 3.1s; }
  .js .hero__trace g:nth-child(10) line { animation-delay: 1.23s, 3.1s; }
  .js .hero__trace g:first-child line { animation-delay: .15s, 3.1s; }
  .js .hero::after { animation: hero-scrim 3.4s var(--ease) both; }
}
.hero__trace { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .js .hero__trace { opacity: 1; } }
@keyframes hero-photo {
  0%, 30% { filter: grayscale(1) brightness(1.32) contrast(.42); opacity: .55; }
  100% { filter: none; opacity: 1; }
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, .5%); } }
@keyframes hero-line { to { stroke-dashoffset: 0; } }
@keyframes hero-line-out { to { opacity: 0; } }
@keyframes hero-scrim { 0%, 35% { opacity: .75; } 100% { opacity: 1; } }

/* ------------------------------------------------------------------ inner page hero */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,14,20,.88), rgba(8,14,20,.45) 55%, rgba(8,14,20,.2)); }
.page-hero .wrap { padding: clamp(120px, 22vw, 240px) 0 clamp(36px, 6vw, 72px); }
.page-hero h1 { max-width: 16em; }
.page-hero .lede { color: rgba(255,255,255,.9); }
.page-hero .eyebrow { color: #bfe9f8; }
.page-hero--plain { background: var(--stone); color: var(--ink); }
.page-hero--plain::after { display: none; }
.page-hero--plain .wrap { padding: clamp(48px, 9vw, 110px) 0 clamp(28px, 5vw, 56px); }
.page-hero--plain .lede { color: var(--ink-2); }
.page-hero--plain .eyebrow { color: var(--blue-ink); }
.crumbs { font-size: .82rem; margin-bottom: 1rem; color: inherit; opacity: .85; }
.crumbs a { color: inherit; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(56px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.section--night { background: var(--night); color: #e9eef2; }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .muted { color: #aab5bf; }
.section-head { display: grid; gap: 4px 40px; margin-bottom: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; align-items: end; } }
.section-head h2 { margin-bottom: .25em; }
.section-head p { margin: 0; max-width: 36em; }

/* the shaker panel: a fine line set in from the edge of a picture or card */
.panel { position: relative; overflow: hidden; background: var(--stone-2); }
.panel::after {
  content: ""; position: absolute; inset: var(--panel-inset); pointer-events: none;
  border: 1px solid rgba(255,255,255,.62); transition: inset .7s var(--ease), border-color .5s;
}
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.panel:hover::after, .card:hover .panel::after { inset: calc(var(--panel-inset) + 5px); border-color: rgba(255,255,255,.9); }
a.panel:hover img, .card:hover .panel img { transform: scale(1.035); }
.panel--light::after { border-color: rgba(21,25,29,.16); }

/* ------------------------------------------------------------------ swipe rows */
.swipe {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 2px var(--gut) 18px; margin-inline: calc(var(--gut) * -1); scroll-padding-inline: var(--gut);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.swipe > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 700px) { .swipe { grid-auto-columns: 46%; gap: 16px; } }
@media (min-width: 1100px) { .swipe { grid-auto-columns: calc((100% - 48px) / 3.25); margin-inline: 0; padding-inline: 0; } }
.swipe-nav { display: none; gap: 8px; }
@media (min-width: 1100px) { .js .swipe-nav { display: flex; } }
.swipe-nav button { width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 2px; cursor: pointer; font-size: 1.1rem; }
.swipe-nav button:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ room tabs + work row (home) */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 18px; padding: 0 var(--gut); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; border-radius: 2px;
  font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink-2);
}
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-pressed="true"] .muted { color: #b8c3cc; }
.tab:not([aria-selected="true"]):not([aria-pressed="true"]):hover { border-color: var(--ink); }
html:not(.js) .tabs { display: none; }
html:not(.js) [role="tabpanel"][hidden] { display: block; }
html:not(.js) [role="tabpanel"] + [role="tabpanel"] { margin-top: 24px; }
.panel-label { display: none; }
html:not(.js) .panel-label { display: block; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.work { margin: 0; }
.work .panel { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .work .panel { aspect-ratio: 4 / 4.4; } }
.work figcaption { padding: 12px 14px 14px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.work figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--ink); margin-bottom: 2px; }
[role="tabpanel"].is-in .work { animation: rise .7s var(--ease) both; }
[role="tabpanel"].is-in .work:nth-child(2) { animation-delay: .07s; }
[role="tabpanel"].is-in .work:nth-child(3) { animation-delay: .14s; }
[role="tabpanel"].is-in .work:nth-child(n+4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ plan teaser (home) */
.teaser { display: grid; gap: 18px; align-items: center; }
.teaser__text .lede { margin-bottom: 0; }
@media (min-width: 960px) {
  .teaser { grid-template-columns: 1fr 1.15fr; grid-template-areas: "text plan" "ctrl plan"; gap: 0 64px; align-items: end; }
  .teaser__text { grid-area: text; } .teaser__plan { grid-area: plan; align-self: center; } .teaser__controls { grid-area: ctrl; align-self: start; }
}
.shape-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 1.2rem; }
@media (min-width: 960px) { .shape-pick { margin-top: 1.4rem; } }
.shape-pick button {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; min-height: 92px;
  border: 1px solid var(--line); background: #fff; border-radius: 2px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
.shape-pick button svg { width: 44px; height: 44px; }
.shape-pick button svg path, .shape-pick button svg rect { fill: none; stroke: currentColor; stroke-width: 2; }
.shape-pick button[aria-pressed="true"] { border-color: var(--blue-ink); color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.teaser__plan { position: relative; background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3.3; }
.teaser__plan::after { content: ""; position: absolute; inset: var(--panel-inset); border: 1px solid var(--stone-2); pointer-events: none; }
.teaser__plan svg { width: 100%; height: 100%; }
.teaser__plan .tb { position: absolute; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px 12px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ steps (drawing to done) */
.step { background: #fff; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; height: 100%; }
.step .panel { aspect-ratio: 4 / 3; }
.step .panel.panel--light { background: #fff; }
.step__body { padding: 18px 18px 20px; }
.step__no { font: 650 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; display: block; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.drawn { width: 100%; height: 100%; }
.drawn * { vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------------ swatches */
.swatch { margin: 0; }
.swatch .panel { aspect-ratio: 1; }
.swatch figcaption { padding-top: 10px; font-size: .9rem; color: var(--ink-2); }
.swatch figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.08rem; color: var(--ink); }
.swipe--swatch { grid-auto-columns: 44%; }
@media (min-width: 700px) { .swipe--swatch { grid-auto-columns: 23%; } }
@media (min-width: 1100px) { .swipe--swatch { grid-auto-columns: calc((100% - 80px) / 6); } }

/* ------------------------------------------------------------------ proof */
.proof { display: grid; gap: 36px; }
@media (min-width: 960px) { .proof { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; } }
blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.3; margin-bottom: .8em; }
.quote p::before { content: "\201C"; color: var(--cyan); margin-right: .05em; }
.quote p::after { content: "\201D"; color: var(--cyan); }
.quote footer { font-size: .9rem; color: var(--muted); }
.section--night .quote footer { color: #aab5bf; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.facts li { background: var(--night); padding: 18px 16px; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; line-height: 1.05; margin-bottom: 6px; }
.facts span { font-size: .84rem; color: #b8c3cc; line-height: 1.4; display: block; }
.section:not(.section--night) .facts { background: var(--line); border-color: var(--line); }
.section:not(.section--night) .facts li { background: #fff; }
.section:not(.section--night) .facts b { color: var(--ink); }
.section:not(.section--night) .facts span { color: var(--muted); }

/* ------------------------------------------------------------------ contact block */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-lines { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.contact-lines li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-lines span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.contact-lines a { font-weight: 600; }
.on-dark .contact-lines, .section--night .contact-lines { border-color: rgba(255,255,255,.16); }
.section--night .contact-lines li { border-color: rgba(255,255,255,.16); }
.section--night .contact-lines span { color: #a9b5bf; }
.section--night .contact-lines a { color: #fff; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); position: relative; }
.form::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--stone); pointer-events: none; }
.form > * { position: relative; z-index: 1; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .86rem; font-weight: 650; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9b3aa; border-radius: 2px; background: #fff; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--blue-ink); }
.field-2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .field-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status:empty { display: none; }

/* ------------------------------------------------------------------ prose + content blocks */
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--flip > :first-child { order: 2; } }
.split .panel { aspect-ratio: 4 / 3.2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border: 1px solid var(--blue-ink); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 6px var(--cyan); }
.cols-3 { display: grid; gap: 14px; }
@media (min-width: 800px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.cols-2 { display: grid; gap: 14px; }
@media (max-width: 799px) {
  .swipe-sm { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 14px; scroll-padding-inline: var(--gut); scrollbar-width: thin; }
  .swipe-sm > * { scroll-snap-align: start; }
  .swipe-sm .reveal { opacity: 1; transform: none; }
}
.cols-2 > *, .cols-3 > *, .split > *, .lib-grid > *, .contact-grid > *, .proof > * { min-width: 0; }
@media (min-width: 800px) { .cols-2 { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .panel { aspect-ratio: 16 / 10.5; }
.card__body { padding: 20px 20px 22px; }
.card__body p { color: var(--ink-2); margin-bottom: .8em; }
.card__body :last-child { margin-bottom: 0; }
a.card:hover h3 { color: var(--blue-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); padding: 6px 11px; border-radius: 2px; font-size: .86rem; background: #fff; }
.section--stone .chips li { background: var(--paper); }

/* process columns (services) */
.process { counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process > div { background: #fff; padding: 24px 22px 26px; }
.process h3 { display: flex; align-items: baseline; gap: 10px; }
.process h3::before { counter-increment: s; content: "0" counter(s); font: 650 .75rem/1 var(--sans); letter-spacing: .14em; color: var(--blue-ink); }
.process ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); }
.process li { padding-left: 16px; position: relative; }
.process li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; border-top: 1px solid var(--cyan); }

/* areas */
.areas { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.areas li { padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; font-size: .9rem; }
.section:not(.section--night) .areas li { border-color: var(--line); background: #fff; }

/* ------------------------------------------------------------------ gallery page */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
html:not(.js) .filters { display: none; }
.grid-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .grid-gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .grid-gallery { grid-template-columns: repeat(4, 1fr); } }
.gitem { margin: 0; }
.gitem[hidden] { display: none; }
.gitem button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.gitem .panel { aspect-ratio: 1; }
.gitem.wide { grid-column: span 2; }
.gitem.wide .panel { aspect-ratio: 2 / 1; }
@media (max-width: 759px) { .gitem.wide .panel { aspect-ratio: 2 / 1.1; } }
.gitem figcaption { font-size: .82rem; color: var(--ink-2); padding: 7px 1px 4px; line-height: 1.4; }
.gitem.in-anim { animation: rise .5s var(--ease) both; }
.lightbox { border: 0; padding: 0; max-width: min(1200px, 100vw - 24px); width: 100%; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(8,12,16,.92); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100svh - 150px); object-fit: contain; background: #000; }
.lightbox figcaption { padding: 12px 4px; font-size: .95rem; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lightbox button { min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; border-radius: 2px; cursor: pointer; font-size: 1rem; padding: 0 14px; }
.lightbox button:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ finishes library */
.lib-nav { position: sticky; top: 68px; z-index: 20; background: rgba(250,249,247,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.lib-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lib-nav ul::-webkit-scrollbar { display: none; }
.lib-nav a { display: block; white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; background: #fff; }
.lib-nav a.is-here { background: var(--ink); color: #fff; border-color: var(--ink); }
.lib-group { padding-block: clamp(44px, 7vw, 90px); border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.lib-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.mat { background: #fff; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.mat__swatch { aspect-ratio: 16 / 9; }
@media (max-width: 759px) {
  .mat { grid-template-columns: 92px 1fr; grid-template-rows: none; align-items: start; }
  .mat__swatch { aspect-ratio: auto; height: 100%; min-height: 120px; --panel-inset: 6px; }
  .mat__swatch.drawn-bg { padding: 8px; }
  .mat__swatch.drawn-bg svg { width: 70px; height: auto; }
  .mat__body { padding: 14px 14px 16px; }
  .mat__body h3 { font-size: 1.2rem; }
  .mat__body p { font-size: .9rem; margin-bottom: .7em; }
  .mat dl { font-size: .84rem; gap: 4px; padding-top: 8px; }
  .lib-group { padding-block: 36px; }
}
.mat__swatch.drawn-bg { background: #fff; display: grid; place-items: center; padding: 18px; }
.mat__body { padding: 18px 20px 20px; }
.mat__body h3 { margin-bottom: .3em; }
.mat__body p { color: var(--ink-2); font-size: .96rem; }
.mat dl { margin: 0; display: grid; gap: 8px; font-size: .9rem; border-top: 1px solid var(--stone); padding-top: 12px; }
.mat dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); font-weight: 650; }
.mat dd { margin: 0 0 4px; color: var(--ink-2); }
.mat .seen { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: .86rem; text-decoration: none; }
.mat .seen img { width: 64px; height: 48px; object-fit: cover; }
.illus-note { font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ CTA band */
.cta-band { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: 18px; padding-block: clamp(44px, 7vw, 84px); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band h2 { margin: 0 0 .2em; color: #fff; }
.cta-band p { margin: 0; color: #b8c3cc; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: #0b1117; color: #c4ccd3; font-size: .92rem; }
.site-foot .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-logo { display: inline-block; background: #fff; padding: 10px 14px; margin-bottom: 14px; position: relative; }
.foot-logo::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--stone-2); pointer-events: none; }
.foot-logo img { height: 64px; width: auto; }
.site-foot h2 { font: 650 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8fd6f0; margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: #97a3ad; }
.foot-legal a { color: #c4ccd3; }
.credit { margin-left: auto; }
@media (max-width: 899px) { .credit { margin-left: 0; width: 100%; } }

/* ------------------------------------------------------------------ reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .09s; } .js .reveal.d2 { transition-delay: .18s; } .js .reveal.d3 { transition-delay: .27s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* small utilities (the security policy allows no inline styles) */
.sm-only { display: none; }
@media (max-width: 599px) { .sm-only { display: inline; } .sm-hide { display: none; } }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 10px; } .mt-l { margin-top: 28px; }
.h-sm { font-size: 1.6rem; }
.illus-note { padding: 18px 0 0; }
.swatch-mix { display: grid; grid-template-columns: 1fr 1fr; }
.swatch-mix img { width: 100%; height: 100%; object-fit: cover; }
.drawn-bg { display: grid; place-items: center; background: #fff; height: 100%; }
.drawn-bg svg { max-height: 100%; width: auto; max-width: 100%; }
.card .panel.drawn-bg svg { width: 100%; height: 100%; }
.mat__swatch img { width: 100%; height: 100%; object-fit: cover; }
.panel.contain img { object-fit: contain; background: #fff; padding: 6%; }
.panel.top img { object-position: 50% 22%; }
.about-team { aspect-ratio: 4 / 3; }
html:not(.js) .teaser__plan, html:not(.js) .shape-pick { display: none; }

/* 404 */
.notfound { min-height: 60svh; display: grid; align-items: center; }
.notfound svg { max-width: 360px; width: 100%; margin-bottom: 24px; }

@media print {
  .site-head, .callbar, .site-foot, .cta-band { display: none !important; }
  body { padding: 0; background: #fff; }
}
