/* Demo: interior design studio (fictional), with the Novotly tools on top.
   The site: ivory, warm ink, deep olive for actions and dark sections, brass for hairlines.
   Newsreader for headings, Satoshi for text. The Novotly layer (.nv-*) uses cool
   blue-gray and the Novotly blue, so a visitor always sees which part is the tool.
   Everything reads without JavaScript; motion comes from script.js and stops
   with prefers-reduced-motion. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #F5F1E9;
  --paper: #FBF9F4;
  --card: #FDFBF7;
  --tint: #ECE6DA;
  --ink: #24221D;
  --ink-2: #46423A;
  --muted: #69635A;
  --line: #DDD5C6;
  --line-2: #C6BCAA;
  --olive: #3B3F2F;
  --olive-2: #2B2E22;
  --olive-soft: #E9E8DD;
  --on-olive: #F3EFE5;
  --on-olive-2: #CBC8B6;
  --brass: #A2814F;
  --brass-2: #CDB083;
  --error: #A3342A;

  --nv: #2F6BFF;
  --nv-2: #1E54E6;
  --nv-ink: #0B1530;
  --nv-ink-2: #3D4866;
  --nv-bg: #EEF2F8;
  --nv-card: #FDFEFF;
  --nv-line: #DCE3EF;
  --nv-pink: #FF6FAE;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px; --s7: 64px; --s8: 96px; --s9: 144px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --bar-h: 44px;
  --r: 3px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--on-olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.start :focus-visible, .closing :focus-visible { outline-color: var(--brass-2); }
.wizard :focus-visible { outline-color: var(--olive); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s9) 0; }
.section--tint { background: var(--tint); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opt { font-family: var(--sans); font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r);
  background: var(--olive); color: var(--on-olive); text-decoration: none; cursor: pointer;
  font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--olive-2); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn--ghost:hover { background: var(--tint); }
.btn--ghost:hover .i { transform: translateX(-3px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff8ec; }
.btn--small { min-height: 46px; padding: 0 20px; font-size: .9375rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer; font-weight: 500; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 calc(50% + .8em); background-repeat: no-repeat;
}
.text-link .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }

/* ---------- Novotly demo layer: bar, notes, dock ---------- */
.nv-bar { position: relative; z-index: 60; height: var(--bar-h); background: var(--nv-ink); color: #DCE4FA; font-size: .875rem; line-height: 1.3; }
.nv-bar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.nv-bar-text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nv-bar-text b { color: #fff; font-weight: 500; }
.nv-bar-text > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-bar-actions { display: flex; align-items: center; gap: var(--s5); flex: none; }
.nv-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; transition: text-decoration-color .25s; }
.nv-link:hover { text-decoration-color: var(--nv-pink); }
.nv-mark { width: 22px; height: 22px; flex: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #7CC4FF, var(--nv) 55%, var(--nv-2)); color: #F7FAFF; }
.nv-mark svg { width: 100%; height: 100%; }

.nv-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s4);
  padding: 12px 14px; border-radius: 10px; background: var(--nv-ink); color: #E3E9FB;
  font-size: .875rem; line-height: 1.45; box-shadow: 0 10px 30px rgba(11, 21, 48, .18);
}
.nv-dot { width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; background: var(--nv-pink); box-shadow: 0 0 0 4px rgba(255, 111, 174, .22); }
.nv-note--card { position: absolute; left: 0; right: 0; top: 100%; margin-top: var(--s3); }
.nv-note--inline { box-shadow: none; }

.nv-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; margin-top: var(--s3);
  border: 1px solid rgba(220, 228, 250, .35); border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
  font-weight: 500; font-size: .9375rem; text-decoration: none; transition: background-color .3s, border-color .3s;
}
.nv-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.nv-btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.nv-btn:hover .i { transform: translateX(3px); }
.nv-btn--solid { background: var(--nv-2); border-color: var(--nv-2); }
.nv-btn--solid:hover { background: #1843BD; border-color: #1843BD; }

.nv-dock {
  position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 12px;
  border-radius: 999px; background: var(--nv-ink); color: #fff; text-decoration: none; font-size: .9375rem;
  box-shadow: 0 14px 40px rgba(11, 21, 48, .3);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.nv-dock.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.nv-dock b { font-weight: 500; color: #9DBBFF; margin-right: 4px; }
.nv-dock .i { width: 18px; height: 18px; }
.nv-dock:hover { background: #142347; }

/* ---------- header ---------- */
.header { position: absolute; top: var(--bar-h); left: 0; right: 0; z-index: 50; color: var(--paper); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: var(--s5); }
.logo { font-family: var(--serif); font-size: 1rem; text-transform: uppercase; letter-spacing: .24em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.is-long-name .logo { letter-spacing: .12em; font-size: .9375rem; }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a { font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 0 18px; border: 1px solid currentColor; border-radius: var(--r); transition: background-color .3s, color .3s; }
.nav-cta:hover { background: var(--paper); color: var(--ink); }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .i { width: 26px; height: 26px; }
.i-close { display: none; }
.header.is-fixed { position: fixed; top: 0; background: rgba(245, 241, 233, .94); color: var(--ink); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); animation: headIn .5s var(--ease); transition: transform .45s var(--ease); }
.header.is-fixed .header-in { height: 68px; }
.header.is-fixed .nav-cta { background: var(--olive); color: var(--on-olive); border-color: var(--olive); }
.header.is-fixed .nav-cta:hover { background: var(--olive-2); }
.header.is-hidden { transform: translateY(-100%); }
@keyframes headIn { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--paper); overflow: hidden; background: #3a342c; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; transform-origin: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 22, 18, .55) 0%, rgba(25, 22, 18, .08) 30%, rgba(25, 22, 18, .1) 55%, rgba(25, 22, 18, .62) 100%), linear-gradient(90deg, rgba(25, 22, 18, .35), rgba(25, 22, 18, 0) 60%); }
.hero-grid {
  position: relative; min-height: max(660px, calc(100svh - var(--bar-h))); max-height: 1000px;
  display: grid; grid-template-columns: minmax(0, 1fr) 384px; align-items: end; gap: var(--s7);
  padding-top: 140px; padding-bottom: 104px;
}
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 4.3vw, 5.5rem); line-height: 1.02; max-width: 13ch; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; }
.hero-sub { margin-top: var(--s5); max-width: 40ch; font-size: 1.125rem; color: rgba(251, 249, 244, .9); }
.hero .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero .w > span { display: inline-block; }

.starter { position: relative; background: var(--paper); color: var(--ink); padding: 28px 28px 22px; border-radius: var(--r); box-shadow: 0 30px 80px rgba(20, 17, 13, .35); }
.starter-top { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.starter-time { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: .875rem; }
.starter-time .i { width: 16px; height: 16px; }
.starter-title { font-size: 1.875rem; margin: var(--s4) 0 var(--s4); }
.starter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.starter-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .3s, padding .4s var(--ease); }
.starter-list a:hover { background: var(--tint); padding-left: 12px; padding-right: 12px; }
.starter-list b { display: block; font-weight: 500; }
.starter-list small { display: block; font-size: .875rem; color: var(--muted); }
.starter-list .i { color: var(--olive); transition: transform .35s var(--ease); }
.starter-list a:hover .i { transform: translateX(4px); }
.starter-foot { margin-top: var(--s4); font-size: .875rem; color: var(--muted); }

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--s5); margin-bottom: var(--s7); }
.section-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.section-head p { color: var(--muted); max-width: 44ch; justify-self: end; }

/* ---------- work ---------- */
.frame { margin: 0; overflow: hidden; background: var(--tint); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-open:hover .frame img { transform: scale(1.03); }
.project--wide .frame { aspect-ratio: 16 / 9; }
.project--wide .project-cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s6); align-items: start; padding-top: var(--s5); border-top: 0; }
.project--wide .project-cap h3 { grid-row: span 2; }
.project-cap { padding-top: var(--s5); }
.project-cap h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.project-cap p { color: var(--ink-2); max-width: 52ch; }
.project-cap .text-link { margin-top: var(--s2); }
.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); }
.project-pair .frame { aspect-ratio: 4 / 3; }
.project-pair .project:nth-child(2) { margin-top: var(--s8); }
.project-pair .project-cap h3 { margin-bottom: var(--s3); }
.project-pair .project-cap p { margin-top: var(--s3); }

.specs { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.specs div { min-width: 0; }
.specs dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-size: .9375rem; }
.project--wide .specs { flex-direction: column; gap: var(--s3); }

/* ---------- start: the form ---------- */
.start { background: var(--olive); color: var(--on-olive); padding: var(--s9) 0; position: relative; }
.start-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s5); align-items: end; margin-bottom: var(--s7); }
.start-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.start-head p { color: var(--on-olive-2); max-width: 44ch; justify-self: end; }
.start-grid { display: grid; gap: var(--s5); }
.start-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); }
.start-demo .nv-note { margin: 0; max-width: 560px; }
.start-demo .nv-btn { margin: 0; }

.wizard { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 0 40px 100px rgba(15, 16, 10, .35); min-width: 0; overflow: hidden; }
.wz-main { padding: var(--s6) 48px var(--s5); min-width: 0; display: flex; flex-direction: column; min-height: 640px; }
.wz-main .wizard-body { flex: 1; }

/* the side: the step's photo, then the answers so far */
.wz-side { background: var(--olive-2); color: var(--on-olive); display: flex; flex-direction: column; min-width: 0; }
.wz-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: #1f211a; }
.wz-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.wz-media img.is-on { opacity: 1; transform: none; }
.wz-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 21, 15, 0) 55%, rgba(20, 21, 15, .7)); }
.wz-cap { position: absolute; z-index: 1; left: var(--s5); right: var(--s5); bottom: var(--s4); font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--on-olive); }
.wz-brief { padding: var(--s5) var(--s5) var(--s6); }
html:not(.js) .wz-brief { display: none; }
.wz-brief-title { font-family: var(--serif); font-size: 1.375rem; padding-bottom: var(--s3); border-bottom: 1px solid rgba(243, 239, 229, .16); }
.wz-steps { list-style: none; margin: 0; padding: 0; }
.wz-steps button { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px var(--s3); align-items: center; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(243, 239, 229, .08); background: none; color: inherit; text-align: left; cursor: pointer; transition: opacity .3s; }
.wz-steps button:disabled { cursor: default; }
.wz-steps .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-olive-2); }
.wz-steps .v { grid-column: 2; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-steps .v.is-new { animation: briefIn .6s var(--ease); }
.wz-steps .v:empty { display: none; }
.wz-steps .d { grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(243, 239, 229, .35); position: relative; transition: background-color .3s, border-color .3s; }
.wz-steps .d::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 7px; border: solid var(--olive-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.wz-steps li.is-done .d { background: var(--brass-2); border-color: var(--brass-2); }
.wz-steps li.is-done .d::after { transform: rotate(45deg) scale(1); }
.wz-steps li.is-cur .d { border-color: var(--brass-2); box-shadow: 0 0 0 4px rgba(205, 176, 131, .18); }
.wz-steps li.is-cur .k { color: var(--on-olive); }
.wz-steps li:not(.is-done):not(.is-cur) button { opacity: .55; }
.wz-steps button:not(:disabled):hover .v, .wz-steps button:not(:disabled):hover .k { text-decoration: underline; text-underline-offset: 3px; }
@keyframes briefIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.wizard-top { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s6); }
.step-count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-name { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: #7A5E35; }
.progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); gap: 4px; }
.progress i { display: block; height: 3px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.progress i.is-on::after { transform: scaleX(1); }
.progress i.is-cur::after { background: var(--brass); }

.wizard-body { position: relative; }
.wstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .wizard.is-stepped .wstep { display: none; }
.js .wizard.is-stepped .wstep.is-current { display: block; animation: stepIn .55s var(--ease) both; }
.js .wizard.is-stepped .wstep.is-current.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.wstep + .wstep { margin-top: var(--s7); }
.js .wizard.is-stepped .wstep + .wstep { margin-top: 0; }
.wstep-title { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.1; padding: 0; margin-bottom: var(--s5); }
.wstep-title:focus { outline: none; }
.wstep-hint { color: var(--muted); margin: calc(-1 * var(--s3)) 0 var(--s5); max-width: 56ch; }
.group-label { font-weight: 500; margin: var(--s6) 0 var(--s3); }
.group-label:first-of-type { margin-top: 0; }
.error { color: var(--error); font-size: .875rem; min-height: 0; margin-top: var(--s2); }
.error:empty { margin: 0; }

/* inputs hidden but reachable */
.tile input, .chip input, .seg input, .scale input, .style input, .drop input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}

/* project tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.tile { position: relative; cursor: pointer; display: block; }
.tile-in { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.tile:hover .tile-in { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(36, 34, 29, .08); }
.tile-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-text { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.tile b { font-weight: 500; }
.tile small { color: var(--muted); font-size: .875rem; }
.tile input:checked + .tile-in { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); background: var(--olive-soft); }
.tile input:focus-visible + .tile-in { outline: 2px solid var(--olive); outline-offset: 3px; }
.tick { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(36, 34, 29, .25); display: flex; align-items: center; justify-content: center; transition: background-color .3s, border-color .3s; }
.tick svg { width: 16px; height: 16px; fill: none; stroke: var(--on-olive); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--ease) .05s; }
.tile input:checked + .tile-in .tick { background: var(--olive); border-color: var(--olive); }
.tile input:checked + .tile-in .tick svg { stroke-dashoffset: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; cursor: pointer; display: inline-block; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.chip input:checked + span { animation: pop .35s var(--ease); }
.chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }
.chk { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: border-color .3s, background-color .3s; }
.chk::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--olive); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.chip input:checked + span .chk { background: var(--on-olive); border-color: var(--on-olive); }
.chip input:checked + span .chk::after { transform: rotate(45deg) scale(1); }
.chip--inline { margin-top: var(--s3); }
@keyframes pop { 40% { transform: scale(1.05); } }

/* segmented goal */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 12px; background: var(--card); transition: background-color .3s, color .3s; line-height: 1.3; }
.seg label:hover span { background: var(--tint); }
.seg input:checked + span { background: var(--olive); color: var(--on-olive); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: -4px; }

/* budget scale: a thumb slides to the chosen range */
.scale { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.scale label { position: relative; z-index: 1; cursor: pointer; }
.scale label + label { border-left: 1px solid var(--line); }
.scale span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px; font-variant-numeric: tabular-nums; transition: color .35s; }
.scale input:checked + span { color: var(--on-olive); }
.scale input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: -4px; }
.scale-thumb { position: absolute; z-index: 0; top: -1px; bottom: -1px; left: -1px; width: calc(25% + 1px); background: var(--olive); border-radius: var(--r); opacity: 0; transform: translateX(calc(var(--i, 0) * (100% - 1px))); transition: transform .55s var(--ease), opacity .3s; }
.scale.has-value .scale-thumb { opacity: 1; }
.no-thumb .scale input:checked + span { background: var(--olive); }

/* fields */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { margin-top: var(--s5); }
.field:first-child, .row .field { margin-top: 0; }
.row + .field { margin-top: var(--s5); }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field--short { max-width: 240px; margin-top: var(--s6); }
.input { display: block; width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font-size: 1.125rem; transition: border-color .25s, box-shadow .25s; }
.input:hover { border-bottom-color: var(--ink-2); }
.input:focus { outline: none; border-bottom-color: var(--olive); box-shadow: 0 1px 0 var(--olive); }
.input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
textarea.input { resize: vertical; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-size: 1rem; }
textarea.input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(59, 63, 47, .15); }
.field label { color: var(--muted); font-weight: 400; font-size: .9375rem; margin-bottom: 0; }

/* styles */
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.style { position: relative; cursor: pointer; }
.style > span { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--tint); transition: box-shadow .3s, transform .4s var(--ease); }
.style img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.style:hover img { transform: scale(1.05); }
.style b { display: block; padding: 10px 12px; font-weight: 500; font-size: .9375rem; background: var(--card); }
.style--text > span { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 160px; padding: 0; border: 1px dashed var(--line-2); background: var(--card); }
.style--text em { font-family: var(--serif); font-size: 1.375rem; padding: 0 12px; margin-top: auto; }
.style input:checked + span { box-shadow: 0 0 0 2px var(--olive); }
.style input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 4px; }
.style input:disabled + span { opacity: .45; cursor: not-allowed; }
.style input:disabled + span img { filter: grayscale(.6); }
.pick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(36, 34, 29, .25); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .875rem; font-weight: 500; color: var(--on-olive); transition: background-color .3s, transform .4s var(--ease); }
.style--text .pick { border-color: var(--line-2); background: transparent; }
.style input:checked + span .pick { background: var(--olive); border-color: var(--olive); transform: scale(1.08); }
.pick::after { content: attr(data-n); }

/* photos */
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.drop { position: relative; cursor: pointer; display: block; }
.drop-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; min-height: 150px; padding: var(--s5); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card); transition: border-color .3s, background-color .3s; }
.drop:hover .drop-in, .drop.is-over .drop-in { border-color: var(--olive); background: var(--olive-soft); }
.drop input:focus-visible + .drop-in { outline: 2px solid var(--olive); outline-offset: 3px; }
.drop-in .i { width: 28px; height: 28px; color: var(--olive); margin-bottom: 6px; transition: transform .4s var(--ease); }
.drop:hover .drop-in .i { transform: translateY(-3px); }
.drop-in b { font-weight: 500; }
.drop-in small { color: var(--muted); font-size: .875rem; }
.thumbs { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 76px; height: 76px; border-radius: var(--r); overflow: hidden; animation: thumbIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs span { position: absolute; left: 4px; bottom: 4px; font-size: .6875rem; line-height: 1.4; padding: 0 5px; border-radius: 2px; background: rgba(251, 249, 244, .9); }
@keyframes thumbIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* call: a grid of times, several can be picked */
.avail { display: grid; gap: 6px; }
.avail-head, .avail-row { display: grid; grid-template-columns: 84px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.avail-head span { font-size: .8125rem; font-weight: 500; text-align: center; line-height: 1.3; padding-bottom: 4px; }
.avail-head small { display: block; font-weight: 400; color: var(--muted); }
.avail-day { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.avail-day b { font-weight: 500; font-size: .9375rem; }
.avail-day small { color: var(--muted); font-size: .8125rem; }
.cell { position: relative; cursor: pointer; display: block; }
.cell input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cell span { display: block; height: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); position: relative; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.cell:hover span { border-color: var(--ink-2); background: var(--tint); }
.cell span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 12px; margin: -8px 0 0 -3px; border: solid var(--on-olive); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.cell input:checked + span { background: var(--olive); border-color: var(--olive); animation: pop .35s var(--ease); }
.cell input:checked + span::after { transform: rotate(45deg) scale(1); }
.cell input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.avail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s3); }
.avail-count { font-size: .9375rem; color: var(--muted); }
.avail-count b { color: var(--ink); font-weight: 500; }
.avail-foot .text-link { font-size: .9375rem; }

/* review */
.review { margin: 0; border-top: 1px solid var(--line); }
.review button { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; text-align: left; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; transition: background-color .3s, padding .4s var(--ease); animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.review button:hover { background: var(--tint); padding-left: 12px; padding-right: 12px; }
.review dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review .edit { font-size: .875rem; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* nav */
.form-status { color: var(--error); font-size: .9375rem; margin-top: var(--s4); }
.form-status:empty { display: none; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.enter-hint { margin-left: auto; font-size: .8125rem; color: var(--muted); }
kbd { font-family: var(--sans); font-size: .75rem; padding: 2px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--card); }
.wizard [data-submit] { display: none; }
.js .wizard.is-stepped [data-back] { visibility: visible; }
.js .wizard.is-first [data-back] { visibility: hidden; }
.js .wizard.is-last [data-next] { display: none; }
.js .wizard.is-last [data-submit] { display: inline-flex; }
.wizard.is-done .wizard-nav, .wizard.is-done .wizard-top, .wizard.is-done .wstep, .wizard.is-sending .wizard-nav, .wizard.is-sending .wstep { display: none !important; }
html:not(.js) .wizard [data-next], html:not(.js) .wizard [data-back], html:not(.js) .enter-hint { display: none; }
html:not(.js) .wizard [data-submit] { display: inline-flex; margin-left: auto; }

/* sending, then done */
.sending { padding: var(--s6) 0 var(--s4); }
.sending-title { font-family: var(--serif); font-size: 1.75rem; margin-bottom: var(--s5); }
.sending-list { list-style: none; margin: 0; padding: 0; }
.sending-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: .35; transition: opacity .4s; }
.sending-list li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s; background: center / 12px no-repeat; }
.sending-list li.is-ok { opacity: 1; }
.sending-list li.is-ok::before { background-color: var(--olive); border-color: var(--olive); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.done { padding: var(--s4) 0; }
.done:focus { outline: none; }
.done-ico svg { width: 56px; height: 56px; fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.done-ico circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 1s var(--ease) forwards; }
.done-ico path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); margin: var(--s5) 0 var(--s3); }
.done > p:not(.nv-note) { color: var(--ink-2); max-width: 52ch; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s5); }

/* ---------- Novotly: what the designer gets ---------- */
.nv-inbox, .nv-tools { background: var(--nv-bg); color: var(--nv-ink); }
.nv-inbox { padding: var(--s9) 0 var(--s8); }
.nv-tools { padding: 0 0 var(--s9); }
.nv-head { max-width: 760px; margin-bottom: var(--s7); }
.nv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--nv-card); border: 1px solid var(--nv-line); font-size: .875rem; font-weight: 500; margin-bottom: var(--s5); }
.nv-head h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.nv-head p { margin-top: var(--s4); color: var(--nv-ink-2); max-width: 56ch; }
.nv-head p b { font-weight: 500; color: var(--nv-ink); }
.nv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.nv-fine { margin-top: var(--s5); font-size: .875rem; color: var(--nv-ink-2); }

.mail { background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: 16px; box-shadow: 0 30px 70px rgba(11, 21, 48, .1); overflow: hidden; }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--nv-line); font-size: .8125rem; color: var(--nv-ink-2); }
.mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--nv-line); }
.mail-bar span { margin-left: 8px; }
.mail-head { padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--nv-line); }
.mail-from { display: flex; align-items: center; gap: 12px; }
.mail-from b { display: block; font-weight: 500; }
.mail-from small { display: block; font-size: .8125rem; color: var(--nv-ink-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #7CC4FF, var(--nv)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 500; flex: none; }
.mail-subject { margin-top: var(--s4); font-size: 1.1875rem; font-weight: 500; line-height: 1.35; }
.mail-body { padding: var(--s5); display: grid; gap: var(--s5); }
.score { display: grid; grid-template-columns: 64px auto 1fr; align-items: center; gap: var(--s4); padding: var(--s4); border-radius: 12px; background: #F2F6FF; }
.score-ring { width: 64px; height: 64px; transform: rotate(-90deg); grid-row: 1; grid-column: 1; }
.score-ring circle { fill: none; stroke-width: 5; stroke: #DCE6FF; }
.score-ring .score-fill { stroke: var(--nv); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--score, 86)); transition: stroke-dashoffset 1.4s var(--ease); }
.score-num { grid-row: 1; grid-column: 1; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num b { font-size: 1.25rem; font-weight: 500; }
.score-num small { display: block; font-size: .6875rem; color: var(--nv-ink-2); }
.score-label b { display: block; font-weight: 500; font-size: 1.0625rem; }
.score-label small { color: var(--nv-ink-2); font-size: .875rem; }
.score[data-level="mid"] .score-fill { stroke: #6B8BFF; }
.score[data-level="low"] .score-fill { stroke: #9AA7C4; }
.mail-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--nv-ink-2); margin-bottom: 6px; }
.mail-text { font-size: 1.0625rem; line-height: 1.6; }
.mail-text .tw { opacity: 0; transition: opacity .3s; }
.mail-text .tw.is-on { opacity: 1; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.reasons li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: #EAF7F0; color: #12573A; font-size: .875rem; }
.reasons li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312573A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.reasons li.is-neutral { background: #F1F3F8; color: var(--nv-ink-2); }
.reasons li.is-neutral::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4866' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.mail-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nv-line); border: 1px solid var(--nv-line); border-radius: 12px; overflow: hidden; }
.mail-facts div { background: var(--nv-card); padding: 12px 14px; min-width: 0; }
.mail-facts dt { font-size: .75rem; color: var(--nv-ink-2); }
.mail-facts dd { margin: 2px 0 0; font-weight: 500; font-size: .9375rem; overflow-wrap: anywhere; }
.mail-files { display: flex; gap: 8px; }
.mail-files:empty { display: none; }
.mail-files img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; }
.mail-cal { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #B9C9F2; color: var(--nv-ink-2); font-size: .9375rem; }
.mail-cal .i { color: var(--nv); }
.mail-cal b { color: var(--nv-ink); font-weight: 500; }

.nv-side { display: grid; gap: var(--s5); }
.board, .client-mail { background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: 16px; padding: var(--s5); box-shadow: 0 20px 50px rgba(11, 21, 48, .06); }
.board-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }
.board-title span { font-weight: 500; }
.board-title small { color: var(--nv-ink-2); font-size: .8125rem; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "what st"; gap: 2px var(--s3); padding: 12px 10px; border-top: 1px solid var(--nv-line); font-size: .9375rem; }
.board-list .b-name { grid-area: name; font-weight: 500; }
.board-list .b-what { grid-area: what; color: var(--nv-ink-2); font-size: .875rem; }
.board-list .tag { grid-area: tag; justify-self: end; }
.board-list .b-st { grid-area: st; justify-self: end; color: var(--nv-ink-2); font-size: .875rem; }
.board-list li.is-new { background: #F2F6FF; border-radius: 10px; border-top-color: transparent; }
.board-list li.is-new + li { border-top-color: transparent; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 500; background: #EEF1F7; color: var(--nv-ink-2); }
.tag--hot { background: #E3ECFF; color: #1B45B8; }
.tag--low { background: #F3F1EC; color: #6A5F4C; }
.cm-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--nv-ink-2); margin-bottom: var(--s3); }
.cm-subject { font-weight: 500; }
.cm-text { margin-top: 6px; color: var(--nv-ink-2); font-size: .9375rem; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.tool h3 { font-family: var(--sans); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; margin-top: var(--s5); }
.tool > p { margin-top: var(--s2); color: var(--nv-ink-2); }
.tool-vis { height: 196px; border-radius: 16px; background: var(--nv-card); border: 1px solid var(--nv-line); padding: var(--s5); display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; }
.t-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: .875rem; }
.t-day { color: var(--nv-ink-2); font-variant-numeric: tabular-nums; }
.t-msg { padding: 8px 12px; border-radius: 10px; background: #F2F6FF; display: inline-flex; align-items: center; gap: 6px; }
.t-row--ok .t-msg { background: #EAF7F0; color: #12573A; }
.t-msg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r-mail { padding: 12px 14px; border-radius: 12px; background: #F2F6FF; font-size: .9375rem; line-height: 1.45; }
.r-stars { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--nv-2); color: #fff; font-size: .875rem; font-weight: 500; }
.r-stars svg { width: 16px; height: 16px; fill: #fff; }
.tool-vis--drive { flex-direction: row; align-items: center; justify-content: space-between; }
.d-folder { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8125rem; color: var(--nv-ink-2); text-align: center; flex: none; width: 92px; }
.d-folder svg { width: 52px; height: 52px; fill: #DCE6FF; stroke: var(--nv); stroke-width: 1.2; }
.d-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--nv); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; width: 46%; height: 120px; }
.d-grid img { min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.d-grid img:first-child { grid-row: span 2; }

.offer { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding: var(--s6); border-radius: 20px; background: var(--nv-ink); color: #DCE4FA; }
.offer h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: #fff; }
.offer-text p { margin-top: var(--s3); max-width: 52ch; }
.offer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); justify-content: flex-end; }
.offer-price { width: 100%; text-align: right; color: #fff; }
.offer-price b { font-weight: 500; font-size: 1.5rem; }
.offer-price small { display: block; color: #9DBBFF; font-size: .875rem; }
.offer .nv-btn { margin-top: 0; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.frame--tall { aspect-ratio: 4 / 5; }
.studio-text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin-bottom: var(--s5); }
.studio-text p { color: var(--ink-2); max-width: 54ch; }
.studio-text p + p { margin-top: var(--s4); }
.specs--studio { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); gap: var(--s4) var(--s6); }

/* ---------- concept: design board and finished room ---------- */
.concept-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.concept-text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin-bottom: var(--s5); }
.concept-text p { color: var(--ink-2); max-width: 44ch; }
.concept-hint { margin-top: var(--s5); font-size: .9375rem; color: var(--muted) !important; }
.compare { position: relative; aspect-ratio: 16 / 10; user-select: none; -webkit-user-select: none; touch-action: pan-y; overflow: hidden; border-radius: var(--r); }
.compare-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-mood { position: absolute; inset: 0; background: #F3EEE6; clip-path: inset(0 calc(100% - var(--pos)) 0 0); display: grid; grid-template-columns: 1fr .85fr 1fr; grid-template-rows: 1fr auto; gap: 14px; padding: 56px 18px 18px; }
.mood-photo { overflow: hidden; border-radius: 2px; grid-row: 1 / span 2; box-shadow: 0 1px 2px rgba(36, 34, 29, .12); }
.mood-photo img { width: 100%; height: 100%; object-fit: cover; }
.mood-photo--a img { object-position: 8% 60%; }
.mood-photo--b img { object-position: 46% 85%; transform: scale(1.35); transform-origin: 46% 85%; }
.mood-photo--b { grid-column: 3; grid-row: 1 / span 2; }
.mood-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: 2; grid-row: 1; }
.mood-swatches li { background: var(--c); border-radius: 2px; position: relative; min-height: 0; box-shadow: 0 1px 2px rgba(36, 34, 29, .12); }
.mood-swatches span { position: absolute; left: 8px; bottom: 6px; font-size: .6875rem; line-height: 1.5; color: var(--ink); background: rgba(251, 249, 244, .88); padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.mood-note { grid-column: 2; grid-row: 2; font-family: var(--serif); font-style: italic; font-size: .875rem; color: var(--ink-2); line-height: 1.35; }
.compare-tag { position: absolute; top: 14px; padding: 4px 10px; font-size: .8125rem; border-radius: 999px; background: rgba(251, 249, 244, .92); color: var(--ink); pointer-events: none; }
.compare-tag--l { left: 14px; }
.compare-tag--r { right: 14px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.compare-handle .i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; padding: 11px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 4px 18px rgba(36, 34, 29, .22); transition: transform .3s var(--ease); }
.compare:hover .compare-handle .i { transform: scale(1.06); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare-handle .i { outline: 2px solid var(--olive); outline-offset: 3px; }

/* ---------- services and process ---------- */
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.offers li { padding: var(--s6) var(--s6) var(--s5) 0; display: flex; flex-direction: column; }
.offers li + li { padding-left: var(--s6); border-left: 1px solid var(--line); }
.offers h3 { font-size: 1.75rem; margin-bottom: var(--s3); }
.offers p { color: var(--ink-2); margin-bottom: var(--s4); }
.offers .text-link { margin-top: auto; align-self: flex-start; font-size: .9375rem; }
.process-title { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); margin: var(--s8) 0 var(--s6); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--brass); transform-origin: left; transform: scaleX(var(--line-p, 1)); }
.step { position: relative; padding-top: var(--s6); }
.step h4 { font-size: 1.375rem; margin-bottom: var(--s2); }
.step p { color: var(--ink-2); font-size: .9375rem; }
.dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--brass); }
.dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brass); }

/* ---------- quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; text-wrap: pretty; }
.quote figcaption { margin-top: var(--s4); color: var(--muted); font-size: .9375rem; }
.sample-note { margin-top: var(--s6); font-size: .8125rem; color: var(--muted); }

/* ---------- closing ---------- */
.closing { position: relative; color: var(--paper); overflow: hidden; background: #3a342c; }
.closing-media { position: absolute; inset: 0; margin: 0; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing-media::after { content: ""; position: absolute; inset: 0; background: rgba(25, 22, 18, .5); }
.closing-in { position: relative; padding: var(--s9) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); }
.closing p { margin: var(--s4) 0 var(--s6); color: rgba(251, 249, 244, .9); }

/* ---------- footer ---------- */
.footer { background: var(--olive-2); color: var(--on-olive-2); padding: var(--s8) 0 var(--s6); }
.footer-in { display: flex; justify-content: space-between; gap: var(--s6); align-items: flex-start; flex-wrap: wrap; }
.logo--footer { color: var(--on-olive); font-size: 1.125rem; margin-bottom: var(--s3); white-space: normal; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--on-olive); font-size: .9375rem; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(243, 239, 229, .15); font-size: .875rem; }
.footer-legal a { color: var(--on-olive); }

/* ---------- gallery dialog ---------- */
.gallery { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); display: none; flex-direction: column; }
.gallery[open] { display: flex; animation: gIn .5s var(--ease) both; }
.gallery::backdrop { background: rgba(36, 34, 29, .5); }
@keyframes gIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gallery-top, .gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--gutter); }
.gallery-top h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.gallery-meta { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.gallery-track { flex: 1; min-height: 0; display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-track figure { margin: 0; flex: 0 0 auto; height: 100%; scroll-snap-align: center; }
.gallery-track img { height: 100%; width: auto; max-width: calc(100vw - 2 * var(--gutter)); object-fit: cover; }
.gallery-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.gallery-arrows { display: flex; gap: var(--s2); }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .25s, border-color .25s; }
.icon-btn:hover { background: var(--tint); border-color: var(--muted); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); }
  .wizard { grid-template-columns: 290px minmax(0, 1fr); }
  .wz-main { padding: var(--s6) var(--s5) var(--s5); }
  .tools { gap: var(--s4); }
  .d-folder { width: 72px; }
}

@media (max-width: 900px) {
  .section { padding: var(--s8) 0; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: var(--s4); background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav a { font-family: var(--serif); font-size: 2rem; text-transform: none; letter-spacing: 0; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { font-family: var(--sans) !important; font-size: 1rem !important; margin-top: var(--s4); background: var(--olive); color: var(--on-olive); border-color: var(--olive); min-height: 52px !important; padding: 0 26px; }
  .menu-btn { display: inline-flex; }
  .header.is-open { color: var(--ink); }
  .header.is-open .nav { opacity: 1; visibility: visible; }
  .header.is-open .i-open { display: none; }
  .header.is-open .i-close { display: block; }
  .header.is-open:not(.is-fixed) { position: fixed; top: 0; }
  .header-in { height: 72px; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); padding-top: 132px; padding-bottom: var(--s6); min-height: 0; max-height: none; }
  .hero-text { min-height: calc(62svh - 132px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-media::after { background: linear-gradient(180deg, rgba(25, 22, 18, .5) 0%, rgba(25, 22, 18, .15) 22%, rgba(25, 22, 18, .42) 45%, rgba(25, 22, 18, .75) 100%); }
  .starter { max-width: 520px; padding: 24px 20px 18px; }
  .nv-note--card { position: static; }

  .section-head, .start-head { grid-template-columns: 1fr; margin-bottom: var(--s6); }
  .section-head p, .start-head p { justify-self: start; }
  .project--wide .project-cap { grid-template-columns: 1fr; gap: var(--s3); }
  .project--wide .specs { flex-direction: row; }
  .project--wide .project-cap h3 { grid-row: auto; }
  .project-pair { grid-template-columns: 1fr; gap: var(--s7); margin-top: var(--s7); }
  .project-pair .project:nth-child(2) { margin-top: 0; }

  .start { padding: var(--s8) 0; }
  .wizard { grid-template-columns: 1fr; }
  .wz-media { aspect-ratio: auto; height: 168px; }
  .wz-brief { display: none; }
  .wz-main { min-height: 0; }

  .nv-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; gap: var(--s6); }
  .offer { grid-template-columns: 1fr; padding: var(--s5); }
  .offer-cta { justify-content: flex-start; }
  .offer-price { text-align: left; }

  .studio-grid, .concept-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .frame--tall { aspect-ratio: 4 / 3; }
  .offers { grid-template-columns: 1fr; }
  .offers li, .offers li + li { padding: var(--s5) 0; border-left: 0; }
  .offers li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: var(--s5); padding-left: 32px; }
  .steps::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--line-p, 1)); }
  .step { padding-top: 0; }
  .dot { left: -32px; top: 6px; }
  .quotes-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .compare { aspect-ratio: 4 / 5; }
  .board-mood { grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr auto; padding: 52px 12px 12px; gap: 10px; }
  .mood-photo--a { grid-column: 1; grid-row: 1; }
  .mood-photo--b { grid-column: 2; grid-row: 1; }
  .mood-swatches { grid-column: 1 / span 2; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mood-swatches span { left: 4px; bottom: 4px; right: 4px; font-size: .625rem; padding: 0 4px; white-space: normal; }
  .mood-note { grid-column: 1 / span 2; grid-row: 3; }
  .gallery-track { flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; gap: var(--s3); padding-bottom: var(--s6); }
  .gallery-track figure { height: auto; flex: none; }
  .gallery-track img { width: 100%; height: auto; max-width: none; }
  .gallery-bottom { display: none; }
}

@media (max-width: 600px) {
  :root { --bar-h: 48px; }
  .nv-bar { font-size: .8125rem; }
  .nv-bar-long, .nv-link--home { display: none; }
  .nv-bar-actions { gap: var(--s3); }
  .logo { font-size: .875rem; letter-spacing: .18em; }
  .is-long-name .logo { font-size: .8125rem; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 3.25rem); }
  .hero-sub { font-size: 1.0625rem; }
  .starter-title { font-size: 1.625rem; }

  .wizard { margin: 0 calc(-1 * var(--s1)); }
  .wz-main { padding: var(--s5) var(--s4) var(--s4); }
  .wz-media { height: 132px; }
  .wizard-top { margin-bottom: var(--s5); }
  .tiles { gap: var(--s2); }
  .tile-text { padding: 10px 12px 12px; }
  .tile b { font-size: .9375rem; }
  .tile small { font-size: .8125rem; line-height: 1.35; }
  .tick { top: 8px; right: 8px; width: 24px; height: 24px; }
  .avail-head, .avail-row { grid-template-columns: 58px repeat(3, minmax(0, 1fr)); gap: 5px; }
  .avail-head span { font-size: .75rem; }
  .avail-head small { font-size: .6875rem; }
  .cell span { min-height: 46px; }
  .seg { grid-template-columns: 1fr; }
  .seg label + label { border-left: 0; border-top: 1px solid var(--line-2); }
  .scale { grid-template-columns: 1fr 1fr; }
  .scale label:nth-child(3) { border-left: 0; }
  .scale label:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scale-thumb { display: none; }
  .scale input:checked + span { background: var(--olive); }
  .styles { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .style b { padding: 8px 10px; font-size: .875rem; }
  .style--text > span { min-height: 0; height: 100%; }
  .style--text em { font-size: 1.125rem; }
  .drops { grid-template-columns: 1fr; }
  .drop-in { min-height: 108px; }
  .row { grid-template-columns: 1fr; }
  .row .field + .field { margin-top: var(--s5); }
  .input, textarea.input { font-size: 16px; }
  .enter-hint { display: none; }
  .wizard-nav .btn:not(.btn--ghost) { flex: 1; }
  .review button { grid-template-columns: 1fr auto; gap: 2px var(--s3); }
  .review dt { grid-column: 1; }
  .review dd { grid-column: 1; }
  .review .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .mail-body, .mail-head { padding-left: var(--s4); padding-right: var(--s4); }
  .score { grid-template-columns: 56px 1fr; }
  .score-ring { width: 56px; height: 56px; }
  .mail-facts { grid-template-columns: 1fr; }
  .mail-files img { width: 30%; height: 64px; }
  .tool-vis { height: auto; min-height: 176px; }
  .nv-dock { left: 16px; right: 16px; justify-content: center; transform: translateY(140%); }
  .nv-dock.is-on { transform: none; }
  .footer-in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
.nowrap { white-space: nowrap; }
.is-long-city .hero h1 .nowrap { white-space: normal; }
@media (max-width: 600px) { .is-long-city .hero h1 { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 2.75rem); overflow-wrap: anywhere; } }
