/* Ziemba Exteriors: Seam & Batten.
   The page is built like the exteriors they install: graphite and warm ivory walls ruled by thin vertical seams on a
   twelve-batten grid, paired seam ribs between rows, and electric orange used only as whole panels that slide into
   alignment (the hero headline panel, a selected planner part, the closing call band). Barlow Condensed for the big
   set lines, Manrope for reading and controls. */

:root {
  --graphite: #171A1B; --graphite-2: #202426; --graphite-3: #2C3134; --night: #0E1011;
  --ivory: #F3F0E8; --ivory-2: #EAE5D9; --ivory-3: #DCD5C5; --paper: #FBF9F4;
  --orange: #FF5A1F; --orange-press: #EE4A10;
  --steel: #9AA1A4; --steel-ink: #555D61;
  --on-dark-soft: #C3C6C3;
  --seam-d: rgba(243, 240, 232, .075); --seam-l: rgba(23, 26, 27, .085);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --frame: 1360px; --gut: 16px; --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header: 64px;
  --focus: var(--orange);
  /* a standing seam rib in section: dark fold, lit edge, shadow. Used between rows and at every band change. */
  --rule-l: linear-gradient(var(--graphite) 0 2px, #A9AFB1 2px 3px, transparent 3px) top left / 100% 3px no-repeat;
  --band-l: linear-gradient(var(--graphite) 0 4px, #7E8689 4px 6px, #E2E5E5 6px 7px, transparent 7px) top left / 100% 7px no-repeat;
  --band-d: linear-gradient(#5E6669 0 2px, #D4D8D9 2px 4px, #8A9295 4px 5px, #3A4043 5px 7px, transparent 7px) top left / 100% 7px no-repeat;
}
@media (min-width: 600px) { :root { --gut: 32px; } }
@media (min-width: 960px) { :root { --header: 84px; } }
@media (min-width: 1200px) { :root { --gut: 48px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--graphite); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-color: var(--steel-ink) var(--ivory-2); scroll-padding-top: calc(var(--header) + 12px); }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ivory); color: var(--graphite); font: 450 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2.5px; }
a[href^="tel:"] { white-space: nowrap; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3, dt { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--graphite); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--orange); color: var(--graphite); padding: 12px 18px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.frame { width: min(100% - 2 * var(--gut), var(--frame)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* seams: thin vertical lines on the twelve-batten grid, aligned to the page frame */
.seamed { position: relative; isolation: isolate; }
.seamed::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; pointer-events: none;
  left: max(var(--gut), (100% - var(--frame)) / 2); right: max(var(--gut), (100% - var(--frame)) / 2);
  background: linear-gradient(to right, var(--seam) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%;
  border-right: 1px solid var(--seam);
}
@media (min-width: 960px) { .seamed::before { background-size: calc(100% / 12) 100%; } }

/* type */
.h1, .h2, .h3, .brand, .record, .close-phone, .part-name, .notes-label, .sheet-title, dt {
  font-family: var(--display); text-transform: uppercase; font-kerning: normal;
}
.h1 { font-weight: 800; font-size: min(6rem, 17.2cqi); line-height: .86; letter-spacing: -.004em; }
.h1 span { display: block; }
.h2 { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .9; letter-spacing: -.004em; text-wrap: pretty; max-width: 15ch; }
.h3 { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: .95; letter-spacing: .005em; }
.record { font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: .045em; }
.h2 + p { margin-top: 1.1rem; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.35em;
  border: 2px solid transparent; border-radius: 10px; font: 750 1rem/1.1 var(--sans); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0 1.05em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--graphite { background: var(--graphite); color: var(--ivory); }
.btn--graphite:hover { background: #000; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); }
.btn--orange { background: var(--orange); color: var(--graphite); }
.btn--orange:hover { background: var(--orange-press); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.btn--ivory { background: var(--ivory); color: var(--graphite); }
.btn--ivory:hover { background: #fff; }
.btn--line, .btn--line-dark { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--line:hover, .btn--line-dark:hover { background: var(--graphite); color: var(--ivory); }
.btn--line-ivory { background: transparent; color: var(--ivory); border-color: rgba(243, 240, 232, .55); }
.btn--line-ivory:hover { border-color: var(--ivory); background: rgba(243, 240, 232, .08); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border-radius: 10px;
  border: 1px solid rgba(243, 240, 232, .32); background: transparent; color: inherit; cursor: pointer; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--ivory); background: rgba(243, 240, 232, .08); }
.icon-btn--dark { border-color: rgba(23, 26, 27, .35); }
.icon-btn--dark:hover { border-color: var(--graphite); background: rgba(23, 26, 27, .06); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header); background: var(--graphite); color: var(--ivory);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: rgba(243, 240, 232, .16); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.header-in { height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: .22em; min-height: 44px; font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; text-decoration: none; white-space: nowrap; margin-right: auto; color: var(--ivory); }
.brand:hover { text-decoration: none; }
.brand-b { color: var(--orange); }
.nav { display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; border-radius: 8px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.hdr-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 4px; font-weight: 750; text-decoration: none; white-space: nowrap; border-radius: 10px; }
.hdr-phone span { display: none; }
.hdr-phone .ic { color: var(--orange); }
.hdr-cta { display: none; }
@media (min-width: 600px) { .hdr-phone span { display: inline; } .hdr-phone { padding: 0 8px; } }
@media (min-width: 760px) { .brand { font-size: 1.75rem; } .header-in { gap: 14px; } .hdr-phone { padding: 0 16px; border: 1.5px solid rgba(243, 240, 232, .45); } .hdr-phone:hover { border-color: var(--ivory); } }
@media (min-width: 1120px) { .nav { display: block; } .menu-btn { display: none; } .brand { margin-right: 8px; } .nav { margin-right: auto; } }

/* ------------------------------------------------------------------ hero */
.hero { --seam: var(--seam-d); background: var(--graphite); color: var(--ivory); padding: 12px 0 40px; }
.hero.seamed::before { top: 0; }
.hero-grid { display: grid; grid-template-areas: 'photo' 'panel'; }
.hero-photo { grid-area: photo; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); background: var(--graphite-3); margin-bottom: -44px; }
.hero-photo .record {
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 7px 11px; background: var(--graphite); color: var(--ivory);
  border-radius: 8px; font-size: .9rem;
}
.hero-seam { display: none; }
.hero-panel { grid-area: panel; position: relative; z-index: 1; background: var(--orange); color: var(--graphite); border-radius: var(--radius); --focus: var(--graphite); }
.hero-panel-in { container-type: inline-size; padding: 26px 22px 20px; display: flex; flex-direction: column; height: 100%; }
.hero-copy { margin-top: 20px; }
.hero-lede { font-size: 1.125rem; line-height: 1.5; font-weight: 600; margin: 0 0 20px; max-width: 36ch; }
.hero .acts .btn { flex: 1 1 100%; }
.hero-call { margin: 16px 0 0; font-weight: 650; }
.hero-call a { font-weight: 800; }
.hero-desc {
  margin: 22px 0 0; padding-top: 12px; max-width: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(var(--graphite) 0 2px, rgba(255, 255, 255, .5) 2px 3px, transparent 3px) top / 100% 3px no-repeat;
}
@media (min-width: 600px) {
  .hero .acts .btn { flex: 0 0 auto; }
  .hero-panel { margin-inline: 24px; }
  .hero-panel-in { padding: 32px 32px 24px; }
}
@media (min-width: 960px) {
  .hero { padding: 28px 0 72px; }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; align-items: stretch; }
  .hero-panel { grid-column: 1 / 7; grid-row: 1; margin: 0 0 44px; }
  .hero-panel-in { padding: clamp(28px, 3vw, 44px); justify-content: space-between; }
  .hero-copy { margin-top: 28px; }
  .hero-seam { display: block; grid-column: 7 / 8; grid-row: 1; padding: 22px clamp(8px, 1vw, 16px); }
  .hero-seam img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
  .hero-photo { grid-column: 8 / 13; grid-row: 1; margin-top: 44px; }
  .hero-photo img { margin-bottom: 0; aspect-ratio: 4 / 5; height: 100%; max-height: calc(100svh - var(--header) - 120px); min-height: 520px; object-position: 50% 50%; }
  .hero-photo .record { top: auto; bottom: 12px; }
}

/* ------------------------------------------------------------------ services */
.services { background: var(--band-l), var(--ivory); padding: clamp(72px, 10vw, 136px) 0; }
.svc-grid { display: grid; gap: 40px; }
.svc-head p { font-size: 1.125rem; max-width: 40ch; }
.svc-head .btn { margin-top: 8px; }
.rib { background: linear-gradient(var(--graphite) 0 2px, rgba(255, 255, 255, .8) 2px 3px, transparent 3px) top left / 100% 3px no-repeat; }
.svc { position: relative; padding: 22px 0 26px; background: var(--rule-l); }
.svc:last-child { box-shadow: inset 0 -2px 0 var(--graphite); }
.svc p { margin: 10px 0 0; max-width: 54ch; }
.svc .svc-rec { color: var(--steel-ink); font-size: .98rem; }
.svc-note { margin: 0; font-size: .95rem; color: var(--steel-ink); max-width: 64ch; }
@media (min-width: 760px) {
  .svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; padding: 26px 0 30px 0; }
  .svc .h3 { grid-row: 1 / span 2; padding-right: 8px; }
  .svc p:first-of-type { margin-top: 2px; }
}
@media (min-width: 960px) {
  .svc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
  .svc-head { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--header) + 40px); }
  .svc-list, .svc-note { grid-column: 6 / 13; }
}
/* the hovered row is the one active element: its seam rib turns orange, drawn left to right */
.svc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
@media (hover: hover) { .svc:hover::before { transform: scaleX(1); } }

/* ------------------------------------------------------------------ selected work */
.work { --seam: var(--seam-d); background: var(--band-d), var(--graphite); color: var(--ivory); padding: clamp(72px, 10vw, 136px) 0; }
.work-head { display: grid; gap: 4px; margin-bottom: 40px; }
.work-head p { color: var(--on-dark-soft); max-width: 46ch; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.work-item--wide { grid-column: span 2; }
.work-item--wide .work-img img { aspect-ratio: 2 / 1; }
.work-item .record { font-size: .9rem; }
.work-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--graphite-3); }
.work-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s var(--ease); }
.work-img:hover img { transform: scale(1.035); }
.work-item figcaption { margin-top: 12px; padding-top: 10px; color: var(--on-dark-soft); background: linear-gradient(rgba(243, 240, 232, .32) 0 1px, transparent 1px) top / 100% 1px no-repeat; }
@media (min-width: 600px) {
  .work-grid { gap: 28px 20px; }
  .work-item .record { font-size: 1rem; }
}
@media (min-width: 960px) {
  .work-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 52px; }
  .work-head .h2 { grid-column: 1 / 7; }
  .work-head p { grid-column: 8 / 13; margin: 0; }
  .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .work-item { grid-column: span 3; }
  .work-item--wide { grid-column: span 6; }
  .work-img img, .work-item--wide .work-img img { aspect-ratio: auto; height: clamp(300px, 29vw, 420px); }
}
.work-item:nth-child(1) img { object-position: 50% 18%; }
.work-item:nth-child(3) img { object-position: 40% 50%; }
.work-item:nth-child(6) img { object-position: 50% 20%; }

/* ------------------------------------------------------------------ planner: a wall of battens */
.plan { --seam: var(--seam-l); background: var(--band-l), var(--ivory); padding: clamp(72px, 10vw, 136px) 0; }
.plan-head { margin-bottom: 36px; }
@media (min-width: 960px) { .plan-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; } .plan-head .h2 { grid-column: 1 / 8; } .plan-head p { grid-column: 8 / 13; margin: 0; } }
.plan-head .h2 { max-width: 17ch; }
.plan-head p { font-size: 1.125rem; max-width: 48ch; }
.planner { display: grid; gap: 28px; }
.parts { border: 0; margin: 0; padding: 0; min-width: 0; }
.parts-legend { padding: 0; margin-bottom: 12px; font-weight: 750; font-size: .95rem; }
/* each part is a batten: a tall panel with its project photo, a foot carrying the name and a seam mark.
   Picked, an orange panel slides up over the foot and the seam mark folds shut. */
.part-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.part {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; cursor: pointer; isolation: isolate;
  border: 2px solid var(--graphite); border-radius: 10px; background: var(--graphite);
  outline: 2px solid transparent; outline-offset: 0; transition: outline-color .2s, outline-offset .25s var(--ease), transform .3s var(--ease);
}
.part input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.part-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite-3); }
.part-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.part-photo--plain { background: repeating-linear-gradient(to right, var(--graphite-2) 0 22px, #3A4044 22px 24px, var(--graphite-2) 24px 25px); }
.part-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; flex: 1; min-height: 62px; padding: 10px 10px 10px 12px; background: var(--paper); color: var(--graphite); }
.part-fill { position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.part-name { flex: 1; min-width: 0; font-weight: 700; font-size: 1.08rem; line-height: 1.02; letter-spacing: .02em; }
.part-mark { display: grid; place-items: center; width: 44px; height: 36px; flex: none; color: var(--graphite); }
.seam-mark { width: 40px; height: 34px; }
.seam-mark .sm-lock { opacity: 0; stroke-dasharray: 60; stroke-dashoffset: 60; transition: opacity .2s, stroke-dashoffset .55s var(--ease); }
.seam-mark .sm-open { transition: opacity .2s; }
.part:hover .part-photo img { transform: scale(1.04); }
.part:hover { transform: translateY(-2px); }
.part:has(input:checked) { outline-color: var(--graphite); outline-offset: 3px; }
.part input:checked ~ .part-foot .part-fill { transform: scaleY(1); }
.part input:checked ~ .part-foot .sm-open { opacity: 0; }
.part input:checked ~ .part-foot .sm-lock { opacity: 1; stroke-dashoffset: 0; }
.part:has(input:focus-visible) { outline: 3px solid var(--graphite); outline-offset: 3px; box-shadow: 0 0 0 8px rgba(255, 90, 31, .35); }
.part--plain { grid-column: span 2; flex-direction: row; background: transparent; border-style: dashed; }
.part--plain .part-photo { display: none; }
.part--plain .part-foot { min-height: 56px; background: transparent; }
.pick-count { margin: -8px 0 0; min-height: 0; font-weight: 700; }
.pick-count:empty { display: none; }
.pick-count a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; }
.part-views { display: grid; gap: 0; align-content: start; min-width: 0; }
.part-empty { padding: 20px 0 0; background: var(--rule-l); }
.part-empty > p { margin: 0; max-width: 52ch; color: var(--steel-ink); font-weight: 600; }
.part-view { display: none; gap: 18px; padding: 22px 0 26px; background: var(--rule-l); }
.pv-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--ivory-3); }
.pv-photo figcaption { margin-top: 10px; color: var(--steel-ink); font-size: .95rem; }
.pv-text p { margin: 12px 0 0; max-width: 52ch; }
.pv-quote { font-weight: 650; font-size: 1.08rem; }
.rec-d { display: block; margin-top: 4px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; color: var(--steel-ink); }
/* each checked part shows its view (pure CSS, so it works without the script; the script adds .is-on for older browsers) */
.planner:has(#pt-siding:checked) #pv-siding, .planner:has(#pt-shakes:checked) #pv-shakes,
.planner:has(#pt-eavestroughs:checked) #pv-eavestroughs, .planner:has(#pt-soffit:checked) #pv-soffit,
.planner:has(#pt-roofing:checked) #pv-roofing, .planner:has(#pt-porch:checked) #pv-porch,
.planner:has(#pt-unsure:checked) #pv-unsure, .part-view.is-on { display: grid; }
.planner:has(.part input:checked) .part-empty, .part-empty.is-off { display: none; }
.plan-details { display: grid; gap: 16px; align-content: start; }
.field label { display: block; margin-bottom: 6px; font-weight: 750; font-size: .95rem; }
.opt { font-weight: 500; color: var(--steel-ink); }
.field input, .field textarea, .plan-notes textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--graphite); border-radius: 10px;
  background: var(--paper); color: var(--graphite); font-weight: 550; caret-color: var(--orange-press);
}
.field textarea, .plan-notes textarea { resize: vertical; line-height: 1.5; }
::placeholder { color: #6A7276; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible, .plan-notes textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.plan-notes { --focus: var(--orange); background: var(--graphite); color: var(--ivory); border-radius: var(--radius); padding: 24px 20px; }
.notes-label { display: block; font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: .95; margin-bottom: 14px; }
.plan-notes textarea { min-height: 128px; background: var(--ivory); border-color: var(--ivory); font-size: 1.05rem; }
.plan-notes textarea::placeholder { color: #5E6569; }
.hint { margin: 10px 0 18px; font-size: .95rem; color: var(--on-dark-soft); }
.copy-btn { display: none; }
.acts--notes .btn { flex: 1 1 100%; }
.js .copy-btn { display: inline-flex; }
.copy-status { margin: 12px 0 0; min-height: 1.6em; font-weight: 700; }
.copy-status:empty { margin: 0; min-height: 0; }
.copy-status.is-ok { color: #FFB08F; }
.plan-send { margin: 14px 0 0; }
.plan-send a { display: inline-flex; align-items: center; min-height: 44px; }
.plan-fine { margin: 6px 0 0; font-size: .95rem; color: var(--on-dark-soft); padding-top: 14px; border-top: 1px solid rgba(243, 240, 232, .18); max-width: none; }
@media (min-width: 600px) {
  .part-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .part-photo { aspect-ratio: 3 / 4; }
  .part--plain { grid-column: span 2; flex-direction: column; background: var(--graphite); border-style: solid; }
  .part--plain .part-photo { display: block; width: auto; aspect-ratio: auto; flex: 1; min-height: 120px; }
  .part--plain .part-foot { background: var(--paper); }
  .part-view { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .plan-details { grid-template-columns: 1fr 1fr; }
  .plan-notes { padding: 32px; }
  .acts--notes .btn { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  .planner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
  .parts, .pick-count, .part-views { grid-column: 1 / -1; }
  .part-view { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; align-items: center; }
  .pv-photo img { aspect-ratio: 16 / 10; }
  .pv-text .h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
  .pv-text p { font-size: 1.125rem; max-width: 46ch; }
  .plan-details { grid-column: 1 / 5; grid-template-columns: 1fr; align-self: start; }
  .plan-notes { grid-column: 5 / 13; }
}
@media (min-width: 960px) {
  .part-list { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .part-photo { aspect-ratio: 9 / 14; }
  .part--plain { grid-column: auto; }
  .part--plain .part-photo { min-height: 0; aspect-ratio: 9 / 14; flex: none; }
  .part-foot { align-items: flex-start; flex-direction: column; justify-content: space-between; min-height: 104px; }
  .part-mark { align-self: flex-end; }
}

/* ------------------------------------------------------------------ about */
.about { --seam: var(--seam-d); background: var(--band-d), var(--graphite); color: var(--ivory); padding: clamp(72px, 10vw, 136px) 0; }
.about-grid { display: grid; gap: 36px; }
.bio { margin: 26px 0; padding: 0; }
.bio p { font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.3; max-width: 30ch; margin: 0; }
.bio footer { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-soft); }
.about-text > p { max-width: 50ch; color: var(--on-dark-soft); }
.about-text .about-place { text-wrap: balance; margin-top: 24px; color: var(--ivory); font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; max-width: 24ch; }
.about-photo img { width: 100%; max-width: 440px; border-radius: var(--radius); background: var(--graphite-3); }
.about-photo figcaption { margin-top: 12px; color: var(--on-dark-soft); }
.posts ul { margin-top: 16px; }
.posts li { padding: 16px 0 18px; background: linear-gradient(rgba(243, 240, 232, .3) 0 1px, transparent 1px) top / 100% 1px no-repeat; }
.posts li p { margin: 0; font-size: 1.05rem; font-weight: 600; max-width: 46ch; }
.posts .rec-d { color: var(--on-dark-soft); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
  .about-text { grid-column: 1 / 7; grid-row: 1; }
  .about-photo { grid-column: 8 / 12; grid-row: 1; align-self: start; margin-top: 48px; }
  .posts { grid-column: 1 / 13; grid-row: 2; }
  .posts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}

/* ------------------------------------------------------------------ service area + questions */
.area { background: var(--band-l), var(--ivory); padding: clamp(72px, 10vw, 136px) 0; }
.area-grid { display: grid; gap: 44px; }
.area-copy { margin: 18px 0 22px; font-size: 1.125rem; max-width: 40ch; }
.faq-title { margin-bottom: 8px; }
.qa { padding: 20px 0 22px; background: var(--rule-l); }
.qa dt { font-weight: 800; font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.05; letter-spacing: .01em; }
.qa dd { margin-top: 8px; }
.qa dd p { margin: 0; max-width: 60ch; }
.qa dd a { font-weight: 750; }
@media (min-width: 960px) {
  .area-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .area-text { grid-column: 1 / 6; }
  .faq { grid-column: 7 / 13; }
}

/* ------------------------------------------------------------------ closing call band */
.close { background: linear-gradient(var(--graphite) 0 3px, var(--orange-press) 3px 4px, transparent 4px) top left / 100% 4px no-repeat, var(--orange); color: var(--graphite); padding: clamp(64px, 9vw, 120px) 0; --focus: var(--graphite); }
.close-in { display: grid; gap: 18px; justify-items: start; }
.close .h2 { max-width: 16ch; }
.close-phone { font-weight: 800; font-size: clamp(3.4rem, 16vw, 8.5rem); line-height: .9; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.close-phone:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: .12em; }
.close .acts { margin-top: 8px; }
@media (min-width: 960px) {
  .close-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .close .h2 { grid-column: 1 / 6; }
  .close-phone { grid-column: 6 / 13; justify-self: end; font-size: clamp(3.4rem, 10.6vw, 8.5rem); }
  .close .acts { grid-column: 6 / 13; justify-self: end; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: var(--ivory); padding: 56px 0 24px; }
.footer-in { display: grid; gap: 32px; }
.foot-id .brand--foot { font-size: 2rem; margin: 0 0 12px; color: var(--ivory); }
.foot-id p { color: var(--on-dark-soft); margin: 0 0 10px; }
.foot-id p a { color: var(--ivory); font-weight: 750; display: inline-flex; min-height: 44px; align-items: center; }
.soc-list { display: flex; gap: 10px; margin-top: 8px; }
.soc { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(243, 240, 232, .28); border-radius: 10px; color: var(--ivory); }
.soc:hover { border-color: var(--orange); color: var(--orange); }
.soc .ic { width: 20px; height: 20px; }
.foot-nav ul { display: grid; gap: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: 40px; padding-top: 14px; border-top: 1px solid rgba(243, 240, 232, .16); font-size: .95rem; color: var(--on-dark-soft); }
.foot-base p { margin: 0; }
.foot-base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); }
.foot-base .kcredit { gap: 8px; color: var(--on-dark-soft); text-decoration: none; }
.foot-base .kcredit:hover { color: var(--ivory); }
.kcredit__logo { height: 15px; width: auto; flex: none; margin-bottom: 1px; }
@media (min-width: 760px) {
  .footer-in { grid-template-columns: 1fr 1fr; }
  .foot-nav ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ------------------------------------------------------------------ 404 */
.nf { --seam: var(--seam-d); background: var(--graphite); color: var(--ivory); padding: clamp(64px, 12vw, 160px) 0; }
.nf-in { container-type: inline-size; }
.nf .h1 { color: var(--ivory); font-size: min(6rem, 15cqi); }
.nf p { margin: 24px 0; font-size: 1.125rem; color: var(--on-dark-soft); max-width: 44ch; }
.nf .btn--graphite { background: var(--orange); color: var(--graphite); }
.nf .btn--line { color: var(--ivory); border-color: rgba(243, 240, 232, .55); }

/* ------------------------------------------------------------------ dialogs */
dialog { border: 0; padding: 0; color: var(--graphite); background: var(--ivory); border-radius: 14px; max-width: min(580px, 100vw - 24px); width: 100%; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(10, 12, 13, .74); }
.sheet { padding: 22px 20px 24px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-title { font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.4rem); line-height: .92; }
.sheet-lede { margin: 14px 0 18px; }
.sheet-lede a { font-weight: 800; }
.form { display: grid; gap: 14px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .sheet { padding: 28px; } }
.kf-sent { padding: 22px; border-radius: var(--radius); background: var(--graphite); color: var(--ivory); }
.kf-sent:focus { outline: 3px solid var(--orange); outline-offset: 3px; }
.kf-sent p { margin: 0; }
.kf-sent-h { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase; margin-bottom: 8px !important; }
.kf-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FBE3D9; color: #8A1F08; font-weight: 700; border: 2px solid #8A1F08; }
.kf-error a { color: inherit; }
.menu-sheet { --focus: var(--orange); background: var(--graphite); color: var(--ivory); margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw; border-radius: 0; padding: 14px 20px 24px; display: none; }
.menu-sheet[open] { display: flex; flex-direction: column; }
.menu-sheet .sheet-head { align-items: center; }
.brand--sheet { font-size: 1.5rem; }
.menu-list { margin-top: 18px; }
.menu-list a { display: flex; align-items: center; min-height: 56px; font-family: var(--display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(243, 240, 232, .14); }
.menu-list a:hover { color: var(--orange); }
.menu-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.lightbox { --focus: var(--orange); background: var(--graphite); color: var(--ivory); max-width: min(980px, 100vw - 24px); padding: 60px 16px 16px; }
.lightbox-x { position: absolute; top: 8px; right: 8px; }
.lightbox-fig img { width: auto; max-width: 100%; max-height: calc(100dvh - 210px); margin: 0 auto; border-radius: var(--radius); }
.lightbox-fig figcaption { margin: 14px auto 0; max-width: 60ch; color: var(--on-dark-soft); text-align: center; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }

/* ------------------------------------------------------------------ motion: panels slide into alignment, once */
@media (prefers-reduced-motion: no-preference) {
  @keyframes panel-in { from { transform: translate3d(-48px, 0, 0); clip-path: inset(0 100% 0 0 round 12px); } to { transform: none; clip-path: inset(0 0 0 0 round 12px); } }
  @keyframes seam-in { from { transform: translate3d(0, -36px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes view-in { from { transform: translate3d(-28px, 0, 0); opacity: 0; } to { transform: none; opacity: 1; } }
  .motion .hero-panel { animation: panel-in .85s var(--ease) .08s both; }
  .motion .hero-seam { animation: seam-in .9s var(--ease) .3s both; }
  .motion .part-view { animation: view-in .55s var(--ease) both; }
  .motion .reveal { transition: transform .75s var(--ease), opacity .75s var(--ease), clip-path .9s var(--ease), background-size .9s var(--ease); }
  .motion .reveal:not(.in) { opacity: 0; transform: translate3d(0, 36px, 0); }
  .motion .part-list.reveal:not(.in) { opacity: 1; transform: none; }
  .motion .part-list.reveal .part { transition: transform .7s var(--ease) calc(var(--i, 0) * 60ms), opacity .7s var(--ease) calc(var(--i, 0) * 60ms), outline-color .2s, outline-offset .25s var(--ease); }
  .motion .part-list.reveal:not(.in) .part { opacity: 0; transform: translate3d(0, 56px, 0); }
  .motion .work-item.reveal { transition-delay: calc(var(--i, 0) % 3 * 70ms); }
  .motion .svc.reveal:not(.in) { opacity: 1; transform: none; background-size: 0 3px; }
  .motion .svc.reveal:not(.in) > * { opacity: 0; transform: translate3d(-16px, 0, 0); }
  .motion .svc.reveal > * { transition: opacity .6s var(--ease) .15s, transform .6s var(--ease) .15s; }
  .motion .close-in.reveal:not(.in) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
  .motion .close-in.reveal { clip-path: inset(0 0 0 0); }
}
