/* Layout: dark engineering-sheet hero, a pinned scroll sequence (idea to part), then paper-toned content bands.
   Memorable moment: the pinned CAD -> prototype -> metal sequence. Everything else stays quiet. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --ink: #0e1418;
  --ink-2: #151d23;
  --paper: #ebeae5;
  --teal: #2fbfb0;
  --teal-deep: #17766c;
  --line-dark: rgba(235, 234, 229, 0.16);
  --line-light: rgba(14, 20, 24, 0.18);
  --muted-dark: rgba(235, 234, 229, 0.74);
  --muted-light: rgba(14, 20, 24, 0.74);
  --field: #ffffff;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
  --hdr: 76px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Montserrat", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --p: 0;
  --py: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 70; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- Header + scroll progress ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hdr); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.nav a:not(.btn) { text-decoration: none; font-size: 0.98rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--line-dark); }
.nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--teal); }
.nav .btn { padding: 10px 18px; font-size: 0.98rem; }

/* ---------- Buttons: bordered, animated ---------- */
.btn {
  --bg: var(--teal); --fg: var(--ink); --sweep: var(--paper); --fg-h: var(--ink); --ring: var(--paper);
  --ang: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  padding: 15px 28px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; color: var(--fg);
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              conic-gradient(from var(--ang), var(--ring) 0deg, transparent 90deg, transparent 180deg, var(--ring) 270deg, var(--ring) 360deg) border-box;
  transition: color .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep); transform: translateX(-102%); transition: transform .45s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--fg-h); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:active { transform: translateY(1px); }
.btn.ghost { --bg: transparent; --fg: currentColor; --sweep: var(--paper); --fg-h: var(--ink); background: none; border-color: currentColor; animation: none; }
.on-paper .btn { --bg: var(--ink); --fg: var(--paper); --sweep: var(--teal-deep); --fg-h: var(--paper); --ring: var(--teal); }
.on-paper .btn.ghost { --sweep: var(--ink); --fg-h: var(--paper); }
.cta-band .btn { --bg: var(--ink); --fg: var(--paper); --sweep: var(--paper); --fg-h: var(--ink); --ring: var(--paper); }
.btn.small { padding: 8px 14px; font-size: 0.88rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .btn:not(.ghost):not(.small) { animation: spin 5s linear infinite; }
}
@keyframes spin { to { --ang: 360deg; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted-dark); max-width: 56ch; }

/* ---------- Bands ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .lead { color: var(--muted-light); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 20px; color: var(--muted-light); }
.on-ink .section-head p { color: var(--muted-dark); }
.page-head { border-bottom: 1px solid var(--line-dark); padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px calc(var(--py) * -0.08px); }
.page-head h1 { font-size: clamp(1.9rem, 3.9vw, 2.8rem); max-width: 24ch; }
.page-head .lead { margin-top: 22px; }

/* ---------- Scroll reveal (CSS scroll timeline; visible without support) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 4% entry 38%; }
    .rv-l { animation: rvl linear both; animation-timeline: view(); animation-range: entry 4% entry 42%; }
  }
}
@keyframes rv { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes rvl { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line-dark); background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px calc(var(--py) * -0.12px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 42%, rgba(14,20,24,0.55) 70%, rgba(14,20,24,0.15) 100%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 26px; }
.drawing { width: 100%; height: auto; overflow: visible; transform: translateY(calc(var(--py) * -0.05px)); }
.drawing .dim { stroke: var(--paper); stroke-width: 1.2; fill: none; opacity: 0.85; }
.drawing .ext { stroke: var(--paper); stroke-width: 0.8; fill: none; opacity: 0.4; stroke-dasharray: 5 4; }
.drawing .dim-label { font-family: var(--font); font-size: 15px; fill: var(--paper); opacity: 0.85; }
.drawing .mark-teal { fill: var(--teal); }
.drawing .mark-paper { fill: var(--paper); }
.title-block { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border: 1px solid var(--line-dark); background: rgba(14,20,24,0.9); margin-bottom: clamp(28px, 4vw, 44px); }
.title-block > div { padding: 12px 16px; border-right: 1px solid var(--line-dark); min-width: 0; }
.title-block > div:last-child { border-right: 0; }
.title-block span { display: block; font-size: 0.74rem; color: var(--muted-dark); }
.title-block strong { font-weight: 600; font-size: 0.98rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions { animation: rise .9s var(--ease) both; }
  .hero .lead { animation-delay: .12s; }
  .hero .actions { animation-delay: .24s; }
  .drawing .dim { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .25s var(--ease) forwards; }
  .drawing .ext { opacity: 0; animation: fade-ext .6s 1.4s forwards; }
  .drawing .dim-label { opacity: 0; animation: fade .6s 1.5s forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 0.85; } }
@keyframes fade-ext { to { opacity: 0.4; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line-dark); background: var(--ink-2); }
.marquee .track { display: flex; width: max-content; }
.marquee .grp { display: flex; flex: none; }
.marquee span { padding: 18px 0; font-family: var(--head); font-weight: 600; font-size: 0.98rem; white-space: nowrap; color: var(--muted-dark); }
.marquee span::after { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--teal); margin: 0 30px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: mq 42s linear infinite; } }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { width: auto; flex-wrap: wrap; } .marquee .grp:last-child { display: none; } }

/* ---------- Scroll sequence: idea to part ---------- */
.scrub { background: var(--ink); border-bottom: 1px solid var(--line-dark); position: relative; }
.scrub-sticky { padding-block: clamp(56px, 8vw, 96px); }
.scrub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.scrub-head { grid-column: 1 / -1; max-width: 760px; }
.scrub-head p { margin-top: 18px; color: var(--muted-dark); }
.scrub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.scrub-steps li { padding: 28px 0 28px 26px; border-left: 3px solid var(--line-dark); transition: border-color .4s var(--ease), opacity .4s var(--ease); }
.scrub-steps li h3 { margin-bottom: 8px; }
.scrub-steps li p { margin: 0 0 12px; color: var(--muted-dark); }
.scrub-steps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scrub-steps ul li { padding: 5px 12px; border: 1px solid var(--line-dark); font-size: 0.9rem; border-left-width: 1px; }
.scrub-steps .step-img { margin-top: 18px; max-width: 360px; background: var(--ink); }
.scrub-steps .step-img img { width: 100%; height: auto; }
.scrub-steps .step-img small { display: block; padding-top: 6px; color: var(--muted-dark); font-size: 0.82rem; }
.scrub-media { display: none; position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 520px; justify-self: center; border: 1px solid var(--line-dark); background: var(--ink-2); overflow: hidden; }
.scrub-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.scrub-media img.on { opacity: 1; transform: none; }
.scrub-media .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-size: 0.85rem; color: var(--muted-dark); background: linear-gradient(transparent, rgba(14,20,24,0.9)); }
.scrub-line { display: none; }
/* pinned mode (JS adds .scrub-on on wide screens) */
.scrub.scrub-on { height: 330vh; }
.scrub.scrub-on .scrub-sticky { position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--hdr) - env(safe-area-inset-top, 0px)); min-height: 560px; display: flex; align-items: center; padding-block: 24px; }
.scrub.scrub-on .scrub-head { margin-bottom: 4px; }
.scrub.scrub-on .scrub-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.scrub.scrub-on .scrub-head p { margin-top: 10px; }
.scrub.scrub-on .scrub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-content: center; row-gap: 12px; }
.scrub.scrub-on .scrub-media { display: block; height: min(54vh, 520px); width: auto; max-width: 100%; aspect-ratio: 4 / 5; }
.scrub.scrub-on .step-img { display: none; }
.scrub.scrub-on .scrub-steps li { opacity: 0.4; padding-block: 14px; }
.scrub.scrub-on .scrub-steps li p, .scrub.scrub-on .scrub-steps li ul { display: none; }
.scrub.scrub-on .scrub-steps li.on { opacity: 1; border-left-color: var(--teal); }
.scrub.scrub-on .scrub-steps li.on p, .scrub.scrub-on .scrub-steps li.on ul { display: flex; }
.scrub.scrub-on .scrub-steps li.on p { display: block; }

/* ---------- Stages / start options ---------- */
.defs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.defs div { padding-block: 26px; border-top: 1px solid var(--line-dark); min-width: 0; }
.on-paper .defs div { border-top-color: var(--line-light); }
.defs dt { font-family: var(--head); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; }
.defs dd { margin: 0; color: var(--muted-dark); max-width: 46ch; }
.on-paper .defs dd { color: var(--muted-light); }
.defs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Proof band ---------- */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.proof-item { border-top: 1px solid var(--line-dark); padding-top: 26px; min-width: 0; }
.proof-item .num { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(3rem, 8vw, 5.6rem); line-height: 1; color: var(--teal); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof-item p { margin: 12px 0 18px; color: var(--muted-dark); max-width: 36ch; }

/* ---------- Services detail ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-dark); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc > div:first-child { align-self: start; position: sticky; top: calc(var(--hdr) + 28px + env(safe-area-inset-top, 0px)); }
.svc h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.svc .intro { color: var(--muted-dark); margin-top: 16px; }
.svc dl { margin: 0; min-width: 0; }
.svc dl div { padding-block: 18px; border-top: 1px solid var(--line-dark); }
.svc dl div:first-child { border-top: 0; padding-top: 0; }
.svc dt { font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.svc dd { margin: 4px 0 0; color: var(--muted-dark); max-width: 54ch; }

/* ---------- Project cards ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); }
.case { display: grid; gap: 16px; align-content: start; min-width: 0; }
.case .media { overflow: hidden; border: 1px solid var(--line-light); background: var(--ink); aspect-ratio: 4 / 3; }
.case .media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.case:hover .media img { transform: scale(1.06); }
.case h3 { font-size: 1.25rem; }
.case h3 a { text-decoration: none; }
.case .sub { color: var(--muted-light); margin: 0; }
.stat-line { margin: 0; font-size: 0.98rem; }
.stat-line strong { font-family: var(--head); color: var(--teal-deep); font-size: 1.15rem; margin-right: 4px; }


/* ---------- Learn more link-buttons ---------- */
.more { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 4px; font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; color: var(--ink); padding: 11px 16px 11px 18px; border: 1.5px solid rgba(14, 20, 24, 0.55); border-radius: 10px; background: transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.more svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.more:hover, .more:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more:hover svg, .more:focus-visible svg { transform: translateX(4px); }
.on-ink .more { color: var(--paper); border-color: rgba(235, 234, 229, 0.5); }
.on-ink .more:hover, .on-ink .more:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Post (case study) ---------- */
.back { display: inline-block; margin-bottom: 26px; font-weight: 600; text-underline-offset: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); margin-top: 40px; max-width: 820px; }
.stat { border-top: 1px solid var(--line-dark); padding-block: 22px; min-width: 0; }
.stat strong { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted-dark); font-size: 0.98rem; max-width: 30ch; }
.post { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 28px + env(safe-area-inset-top, 0px)); }
.toc p { font-weight: 600; font-size: 0.85rem; margin: 0 0 10px; color: var(--muted-light); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-light); }
.toc button { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem; color: var(--muted-light); background: none; border: 0; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; cursor: pointer; }
.toc button:hover { color: var(--ink); }
.toc button.on { color: var(--ink); font-weight: 600; border-left-color: var(--teal-deep); }
.study { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); min-width: 0; }
.study section { min-width: 0; scroll-margin-top: calc(var(--hdr) + 28px + env(safe-area-inset-top, 0px)); }
.study h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 16px; }
.study p, .study li { color: var(--muted-light); }
.study p { max-width: 66ch; }
.study ul { margin: 0 0 1em; padding-left: 1.2em; max-width: 66ch; }
.study li { padding: 4px 0; }
.study strong { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 22px 0 0; max-width: 66ch; }
.facts div { border-top: 1px solid var(--line-light); padding-block: 12px; min-width: 0; }
.facts dt { font-size: 0.82rem; font-weight: 600; color: var(--muted-light); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.pull { border-left: 3px solid var(--teal-deep); padding: 4px 0 4px 20px; margin: 22px 0; font-family: var(--head); font-weight: 600; font-size: 1.15rem; line-height: 1.4; max-width: 46ch; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
.gallery.one { grid-template-columns: minmax(0, 420px); }
.gallery.full { grid-template-columns: minmax(0, 1fr); }
.shot { margin: 0; min-width: 0; }
.shot .frame { background: #fff; border: 1px solid var(--line-light); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.shot .frame.wide { aspect-ratio: 1536 / 633; background: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.shot .frame:hover img { transform: scale(1.04); }
.shot figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted-light); }
.table-wrap { overflow-x: auto; max-width: 100%; border-top: 1.5px solid var(--ink); }
.results { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 0.98rem; }
.results th, .results td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.results th { font-weight: 600; }
.results td { color: var(--muted-light); }
.results td:first-child { color: var(--ink); font-weight: 600; }
.table-note { font-size: 0.9rem; color: var(--muted-light); margin-top: 12px; }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line-light); padding-top: 28px; }
.next p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-light); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 20px 36px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--teal-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-light); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.office { padding-block: 18px; border-top: 1px solid var(--line-light); }
.office:first-child { border-top: 0; padding-top: 0; }
.office h3 { font-size: 1.1rem; margin-bottom: 4px; }
.office p { margin: 0; overflow-wrap: anywhere; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0; }
.copyline span { overflow-wrap: anywhere; user-select: all; }
form.quote { display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted-light); font-weight: 400; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--ink); border-radius: 0; padding: 12px 14px; width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus { border-color: var(--teal-deep); }
.field textarea { min-height: 150px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-note { font-size: 0.92rem; color: var(--muted-light); max-width: 52ch; margin: 0; }
.draft { display: grid; gap: 12px; border: 1.5px solid var(--ink); padding: 18px; background: var(--field); margin-top: 18px; }
.draft pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); font-size: 0.92rem; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: var(--ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding-block: 48px 36px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div { min-width: 0; }
.site-footer h3 { font-family: var(--head); font-size: 0.92rem; margin-bottom: 12px; color: var(--muted-dark); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; color: var(--muted-dark); overflow-wrap: anywhere; }
.logo-foot img { height: 40px; width: auto; margin-bottom: 14px; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 0.9rem; max-width: none; }

/* ---------- Lightbox ---------- */
dialog#lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog#lb::backdrop { background: rgba(14, 20, 24, 0.9); }
dialog#lb img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; background: #fff; }
dialog#lb button { position: absolute; top: -44px; right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .post { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .svc, .contact-grid, .scrub-grid { grid-template-columns: 1fr; }
  .svc > div:first-child { position: static; }
  .hero::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(14,20,24,0.7) 100%); }
  .drawing-wrap { max-width: 420px; }
  .defs, .defs.three, .cases, .proof, .gallery, .stats, .facts { grid-template-columns: 1fr; }
  .gallery.one { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 12px; }
  .brand img { height: 38px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav a:not(.btn) { font-size: 0.9rem; }
  .nav .btn { padding: 8px 12px; }
  .row { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr; }
  .title-block > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .title-block > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn::before { transition: none; } }
/* ---------- multi-page additions ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.cases.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cases.two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.err, .form-note.err a { color: #8a1c1c; }
.form-done { border: 1.5px solid var(--ink); background: var(--field); padding: 28px; border-radius: 14px; display: grid; gap: 10px; }
.form-done h2 { margin: 0; font-size: 1.5rem; }
.form-done p { margin: 0; }
.form-done:focus { outline: 3px solid var(--teal); outline-offset: 3px; }
button[disabled] { opacity: .65; cursor: progress; }

/* ---------- logo size, shorter pinned section ---------- */
:root { --hdr: 88px; }
.brand img { height: 60px; }
.logo-foot img { height: 56px; }
@media (max-width: 700px) { :root { --hdr: 72px; } .brand img { height: 46px; } .logo-foot img { height: 48px; } }
.scrub.scrub-on { height: 190vh; }
.scrub-steps li { cursor: pointer; }


/* ---------- ghost buttons: explicit colours per background ---------- */
.btn.ghost { --fg: var(--paper); --fg-h: var(--ink); --sweep: var(--paper); background: none; color: var(--fg); border-color: var(--fg); }
.on-paper .btn.ghost, .cta-band .btn.ghost { --fg: var(--ink); --fg-h: var(--paper); --sweep: var(--ink); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--fg-h); }

/* ---------- file upload ---------- */
.upload { display: grid; gap: 8px; min-width: 0; }
.upload .lbl { font-weight: 600; font-size: 0.95rem; }
.upload .hint { font-size: 0.85rem; color: var(--muted-light); font-weight: 400; }
.dropzone { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; border: 1.5px dashed var(--ink); background: var(--field); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.dropzone strong { text-decoration: underline; text-underline-offset: 3px; }
.dropzone small { color: var(--muted-light); font-size: 0.85rem; max-width: 46ch; }
.dropzone:hover, .dropzone.over { background: #f4fbfa; border-color: var(--teal-deep); }
.upload:focus-within .dropzone { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: var(--field); border: 1px solid var(--line-light); font-size: 0.92rem; }
.file-list li span { overflow-wrap: anywhere; min-width: 0; }
.file-list button { font: inherit; font-size: 0.85rem; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 4px 6px; flex: none; }
.file-list button:hover { color: var(--teal-deep); }

/* ---------- 3D viewer ---------- */
.viewer { margin: 22px 0 6px; }
.viewer-stage { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 38%, #1b262d, var(--ink) 72%); border-radius: 14px; overflow: hidden; display: grid; place-items: end center; touch-action: pan-y; }
.viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.viewer-stage .btn { position: relative; margin-bottom: 22px; z-index: 2; }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline-offset: -3px; }
.viewer-canvas.grab { cursor: grabbing; }
.viewer.is-live .viewer-poster, .viewer.is-live .viewer-stage .btn { display: none; }
.viewer-bar { display: none; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.viewer.is-live .viewer-bar { display: flex; }
.viewer-status { font-size: 0.9rem; color: var(--muted-light); }
.viewer:not(.is-live) .viewer-bar { display: flex; }
.viewer:not(.is-live) .viewer-bar [data-reset], .viewer:not(.is-live) .viewer-bar [data-auto] { display: none; }
@media (max-width: 700px) { .viewer-stage { aspect-ratio: 4 / 3.4; } }
.viewer-hint { font-size: 0.9rem; color: var(--muted-light); margin: 8px 0 0; }
/* ---------- Store link: highlighted pill with NEW badge + pulse (paste at the very end of styles.css) ---------- */
.nav a[href$="store/"]:not(.btn) {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: var(--teal); font-weight: 600; padding: 5px 14px; border: 1.5px solid var(--teal); border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav a[href$="store/"]:not(.btn)::after {
  content: "NEW"; font-size: 0.62rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
  background: var(--teal); color: var(--ink); padding: 3px 6px; border-radius: 999px;
}
.nav a[href$="store/"]:not(.btn):hover, .nav a[href$="store/"]:not(.btn):focus-visible {
  background: var(--teal); color: var(--ink); border-color: var(--teal);
}
.nav a[href$="store/"]:not(.btn):hover::after, .nav a[href$="store/"]:not(.btn):focus-visible::after { background: var(--ink); color: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .nav a[href$="store/"]:not(.btn) { animation: storePulse 2.6s ease-out infinite; }
}
@keyframes storePulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 191, 176, .55); }
  70%  { box-shadow: 0 0 0 11px rgba(47, 191, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 176, 0); }
}

/* Phone header: links on one row, "Send Us Your Part" as a full-width button underneath */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav a:not(.btn) { font-size: 0.88rem; }
  .nav a[href$="store/"]:not(.btn) { padding: 4px 10px; gap: 6px; }
  .nav .btn { order: 9; flex: 1 1 100%; text-align: center; padding: 11px 14px; }
}