/* Iyamam Engineering Consultancy - www.iyamam.in */
:root {
  --navy: #0f1f33;
  --navy-2: #172b45;
  --ink: #132236;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --bg: #f3f5f9;
  --card: #ffffff;
  --coral: #ee7149;
  --coral-ink: #a5431f;
  --coral-soft: #fff1eb;
  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(15, 31, 51, .06), 0 6px 20px rgba(15, 31, 51, .06);
}

*, *::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: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); }
a:hover { color: var(--coral); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { letter-spacing: .14em; font-size: 1.02rem; }
.brand-name span { font-size: .66rem; letter-spacing: .16em; color: #c5cfdc; text-transform: uppercase; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: #fff; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1); padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: #e6ebf2; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--coral); }
.site-nav .nav-cta { margin-top: 12px; border: 0; text-align: center; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent;
  font-size: .98rem; line-height: 1.2;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #e35f35; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; opacity: .5; }
@media (min-width: 900px) { .hero-media img { opacity: .9; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,31,51,.97) 0%, rgba(15,31,51,.88) 45%, rgba(15,31,51,.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 60px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 96px; padding-bottom: 104px; } }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #dbe3ee; max-width: 46ch; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(238,113,73,.14); color: #ffd9cb;
  border: 1px solid rgba(238,113,73,.45); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600;
  margin: 4px 0 24px;
}
.hero-strip { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #c5cfdc; font-size: .9rem; }
.hero-strip li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }

/* Page header (inner pages) */
.page-head { background: var(--navy); color: #fff; padding: 44px 0 40px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 60px; } }
.page-head h1 { color: #fff; }
.page-head p { color: #dbe3ee; max-width: 62ch; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .82rem; color: #9fb0c5; margin-bottom: 12px; }
.crumbs a { color: #c5cfdc; }

/* Sections */
.section { padding: 52px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .gap-lg { gap: 22px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.section-alt .card { box-shadow: none; background: var(--bg); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .num { display: block; color: var(--coral); font-weight: 800; font-size: .85rem; letter-spacing: .12em; margin-bottom: 8px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); border-color: var(--coral); color: inherit; }
.more { display: inline-block; margin-top: 12px; color: var(--coral-ink); font-weight: 600; font-size: .92rem; }

/* Delivery path */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: step; }
@media (min-width: 640px) { .path { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .path { grid-template-columns: repeat(6, 1fr); } }
.path li {
  counter-increment: step; background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 16px 18px;
  font-weight: 600; font-size: .96rem; position: relative;
}
.path li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--coral); font-size: .78rem; letter-spacing: .14em; margin-bottom: 6px; }
.path.light li { background: #fff; color: var(--navy); border: 1px solid var(--line); }

/* Chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--navy); }
.section-alt .chips li { background: var(--bg); border-color: transparent; }

/* Services */
.service { display: grid; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 320px 1fr; gap: 40px; padding: 40px 0; } }
.service h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.service .tag { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .ticks.two { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral-soft); box-shadow: inset 0 0 0 5px var(--coral);
}
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 0; list-style: none; scrollbar-width: thin; }
.jump a { white-space: nowrap; display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .9rem; }
.jump a:hover { border-color: var(--coral); }

/* Projects */
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.project figure { margin: 0; aspect-ratio: 4 / 3; background: var(--navy-2); }
.project figure img { width: 100%; height: 100%; object-fit: cover; }
.project .noimg { display: flex; align-items: center; justify-content: center; color: #9fb0c5; font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.project .body { padding: 20px 22px 24px; }
.project .cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--coral-ink); text-transform: uppercase; margin-bottom: 8px; }
.project .num { color: var(--muted); font-weight: 700; margin-right: 6px; }
.project p { color: var(--muted); }
.project .ticks { font-size: .94rem; }

/* Split */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 18px; }
.stat strong { font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--coral); line-height: 1; }
.stat span { color: var(--muted); font-weight: 600; max-width: 22ch; line-height: 1.35; }

/* Notes */
.note { border-left: 4px solid var(--coral); background: var(--coral-soft); padding: 16px 18px; border-radius: 0 10px 10px 0; color: var(--ink); }
.note p:last-child { margin: 0; }
.small { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .role { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--coral-ink); text-transform: uppercase; }
.contact-card address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.contact-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--navy); word-break: break-word; }
.contact-list a:hover { color: var(--coral-ink); }
.ico { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { stroke: currentColor; }

/* CTA band */
.cta { background: var(--navy); color: #fff; }
.cta .wrap { padding-top: 48px; padding-bottom: 52px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr auto; padding-top: 64px; padding-bottom: 64px; } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #dbe3ee; margin: 0; max-width: 60ch; }

/* Footer */
.site-foot { background: #0a1626; color: #9fb0c5; font-size: .92rem; }
.site-foot .wrap { padding-top: 44px; padding-bottom: 28px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: #dbe3ee; text-decoration: none; }
.site-foot a:hover { color: var(--coral); }
.site-foot .brand { margin-bottom: 12px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .84rem; }

/* WhatsApp floating button (phones) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 54px; height: 54px; border-radius: 50%;
  background: #1f9d55; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (min-width: 960px) { .wa-float { display: none; } }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-link { transition: none; } }

/* Home: inside-the-building scroll story with optional 3D model */
.b3d { background: var(--navy); color: #fff; padding: 52px 0 24px; }
.b3d-head h2 { color: #fff; }
.b3d-head p { color: #c5cfdc; max-width: 60ch; }
.b3d-grid { display: grid; position: relative; }
.b3d-visual {
  position: sticky; top: 64px; z-index: 2; height: 46vh; min-height: 270px; margin: 8px -16px 0;
  background: radial-gradient(ellipse at 55% 45%, #1f3a5c 0%, var(--navy) 72%); overflow: hidden;
}
.b3d-visual img, .b3d-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.b3d-visual img { object-fit: contain; transition: opacity .8s ease; }
.b3d-visual canvas { opacity: 0; transition: opacity .8s ease; display: block; }
.b3d.is-3d .b3d-visual canvas { opacity: 1; }
.b3d.is-3d .b3d-poster { opacity: 0; }
.b3d-ui { position: absolute; left: 12px; right: 12px; bottom: 10px; display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.b3d.is-3d .b3d-ui { display: flex; }
.b3d-explode {
  font: inherit; font-size: .82rem; font-weight: 600; color: #fff; background: rgba(15,31,51,.75);
  border: 1px solid rgba(238,113,73,.7); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.b3d-explode[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); }
.b3d-key { list-style: none; margin: 0; padding: 6px 12px; display: flex; gap: 10px; font-size: .74rem; color: #dbe3ee; background: rgba(15,31,51,.75); border-radius: 999px; }
.b3d-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.k-structure { background: #d5dde8; } .k-finishes { background: #efe9e1; } .k-mep { background: var(--coral); } .k-ceiling { background: #f7f9fc; opacity: .7; }
.b3d-caption { position: absolute; right: 12px; top: 8px; margin: 0; font-size: .7rem; color: #7f93ad; letter-spacing: .04em; }
.b3d-steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.b3d-step { min-height: 64vh; display: flex; align-items: flex-end; padding: 18px 0; }
.b3d-step:first-child { min-height: 48vh; }
.b3d-card {
  background: rgba(23,43,69,.94); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 20px 20px 18px; opacity: .5; transition: opacity .35s ease, border-color .35s ease; width: 100%;
}
.b3d-step.is-active .b3d-card { opacity: 1; border-color: rgba(238,113,73,.55); }
.b3d-card h3 { color: #fff; font-size: 1.2rem; }
.b3d-card p { color: #dbe3ee; margin: 0; }
.b3d-card .more { color: #ffb397; }
.b3d-num { display: block; color: var(--coral); font-weight: 800; font-size: .8rem; letter-spacing: .14em; margin-bottom: 6px; }
@media (min-width: 900px) {
  .b3d { padding: 80px 0 40px; }
  .b3d-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
  .b3d-visual { order: 2; height: calc(100vh - 96px); margin: 0; top: 80px; border-radius: 18px; }
  .b3d-steps { order: 1; }
  .b3d-step { min-height: 82vh; align-items: center; }
  .b3d-step:first-child { min-height: 60vh; align-items: flex-start; }
  .b3d-card { padding: 26px; }
}
/* poster capture mode (?poster) */
.b3d-still .site-head, .b3d-still .b3d-ui, .b3d-still .b3d-caption, .b3d-still .wa-float { display: none !important; }
.b3d-still .b3d-visual { position: fixed; inset: 0; width: 1200px; height: 900px; margin: 0; z-index: 99; border-radius: 0; }
@media (max-width: 899px) {
  .b3d-key { display: none; }
  .b3d-step { padding-bottom: 84px; }
}
.b3d-hero-still .site-head, .b3d-hero-still .b3d-ui, .b3d-hero-still .b3d-caption, .b3d-hero-still .wa-float { display: none !important; }
.b3d-hero-still .b3d-visual { position: fixed; inset: 0; width: 100vw; height: 100vh; margin: 0; z-index: 99; border-radius: 0; }

/* Home: cinematic hero, slim transparent header */
.page-home .site-head { position: fixed; left: 0; right: 0; top: 0; background: transparent; transition: background .3s ease, box-shadow .3s ease; }
.page-home .site-head.is-solid { background: rgba(15, 31, 51, .94); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
@supports (backdrop-filter: blur(8px)) { .page-home .site-head.is-solid { background: rgba(15, 31, 51, .8); backdrop-filter: blur(10px); } }
.site-head .wrap { min-height: 60px; }
.site-nav.open { top: 60px; }
.brand img { width: 30px; }
.hero-cine { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; background: #0a1626; }
.hero-cine .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 1; }
.hero-cine::after {
  background:
    linear-gradient(180deg, rgba(8,18,32,.55) 0%, rgba(8,18,32,0) 22%, rgba(8,18,32,.35) 55%, rgba(8,18,32,.92) 100%);
}
@media (min-width: 900px) {
  .hero-cine::after {
    background:
      linear-gradient(90deg, rgba(8,18,32,.9) 0%, rgba(8,18,32,.7) 34%, rgba(8,18,32,.15) 62%, rgba(8,18,32,0) 100%),
      linear-gradient(180deg, rgba(8,18,32,.5) 0%, rgba(8,18,32,0) 20%, rgba(8,18,32,0) 70%, rgba(8,18,32,.75) 100%);
  }
}
.hero-cine .hero-inner { padding-top: 120px; padding-bottom: 28px; }
.hero-cine h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 750;
  max-width: 13ch; margin-bottom: .45em; text-wrap: balance;
}
.hero-cine .lead { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d3dcea; margin-bottom: 28px; }
.hero-cine .eyebrow { letter-spacing: .22em; margin-bottom: 18px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.hero-stats {
  list-style: none; margin: 8px 0 0; padding: 22px 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px;
  border-top: 1px solid rgba(255,255,255,.16); position: relative; z-index: 1;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.hero-stats strong::after { content: ""; display: block; width: 22px; height: 2px; background: var(--coral); margin-top: 10px; }
.hero-stats span { color: #b8c4d4; font-size: .84rem; line-height: 1.35; max-width: 24ch; }
@media (min-width: 900px) {
  .hero-cine .hero-inner { padding-bottom: 40px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 28px 0 44px; }
}
/* calmer, more generous rhythm */
@media (min-width: 900px) { .section { padding: 104px 0; } .section-head { margin-bottom: 40px; } }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.5rem); letter-spacing: -.015em; }
.hero-cine > .wrap { padding-top: 0; padding-bottom: 0; }
.hero-cine > .wrap.hero-inner { padding-top: 120px; padding-bottom: 28px; }
@media (min-width: 900px) { .hero-cine > .wrap.hero-inner { padding-bottom: 40px; } }
.hero-cine > .wrap { width: 100%; }
@media (max-width: 899px) {
  .hero-cine::after { background: linear-gradient(180deg, rgba(8,18,32,.7) 0%, rgba(8,18,32,.62) 45%, rgba(8,18,32,.94) 100%); }
  .hero-cine .hero-media img { filter: saturate(.9) blur(1.5px); transform: scale(1.03); }
}
@media (min-width: 900px) {
  .hero-cine h1 { font-size: clamp(3rem, 5.4vw, 4.7rem); max-width: 18ch; margin-bottom: .4em; }
  .hero-cine > .wrap.hero-inner { padding-top: 104px; padding-bottom: 30px; }
  .hero-cine .lead { margin-bottom: 24px; }
  .hero-stats { padding: 22px 0 34px; }
}
.b3d-card .b3d-hint { margin-top: 12px; color: #ffb397; font-size: .88rem; font-weight: 600; }

/* ===== 2026-10-16: editorial type, scroll film, MEP plan, 3D explorer ===== */
:root { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif; --sand: #f6f2ec; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: inherit; font-weight: 400; }
.section-head h2 em, .cta h2 em { color: var(--coral-ink); }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); }

/* film */
.film { position: relative; background: #070d16; color: #fff; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-stage picture, .film-poster, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-poster { object-fit: cover; object-position: 50% 50%; }
.film-canvas { opacity: 0; transition: opacity .6s ease; }
.film.is-playing .film-canvas { opacity: 1; }
.film.is-stills .film-poster { transition: opacity .4s ease; }
.film-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,10,18,.78) 0%, rgba(5,10,18,.45) 34%, rgba(5,10,18,0) 62%),
              linear-gradient(180deg, rgba(5,10,18,.55) 0%, rgba(5,10,18,0) 18%, rgba(5,10,18,0) 72%, rgba(5,10,18,.7) 100%); }
.film-progress { position: absolute; right: 18px; top: 50%; height: 34vh; width: 2px; transform: translateY(-50%); background: rgba(255,255,255,.18); }
.film-progress span { display: block; width: 100%; height: 100%; background: var(--coral); transform-origin: top; transform: scaleY(0); }
.film-chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; }
.chap { min-height: 115vh; min-height: 115svh; display: flex; align-items: center; }
.chap .wrap { width: 100%; }
.chap-hero { min-height: 135vh; min-height: 135svh; align-items: flex-start; }
.chap-hero .wrap { padding-top: 110px; }
.chap-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; max-width: 15ch; margin-bottom: .4em; }
.chap-hero h1 em { display: block; color: #f4c2ad; }
.chap-hero .lead { color: #d3dcea; max-width: 50ch; font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 26px; }
.chap-hero .hero-stats { border-top-color: rgba(255,255,255,.18); margin-top: 34px; max-width: 980px; }
.scroll-cue { margin-top: 26px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #9fb0c5; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 46px; background: linear-gradient(#9fb0c5, transparent); margin: 10px 0 0 18px; }
.chap-card { max-width: 440px; padding: 26px 28px; border-radius: 16px; background: rgba(8,16,28,.62);
  border: 1px solid rgba(255,255,255,.1); opacity: .25; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
@supports (backdrop-filter: blur(8px)) { .chap-card { background: rgba(8,16,28,.45); backdrop-filter: blur(12px); } }
.chap.is-active .chap-card { opacity: 1; transform: none; }
.chap-card h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .35em; }
.chap-card h2 em { color: #f4c2ad; }
.chap-card p { color: #dbe3ee; margin: 0 0 12px; }
.chap-card .more { color: #ffb397; }
.chap-num { display: block; font-size: .72rem; letter-spacing: .24em; color: var(--coral); font-weight: 700; margin-bottom: 12px; }
@media (max-width: 899px) {
  .film-shade { background: linear-gradient(180deg, rgba(5,10,18,.55) 0%, rgba(5,10,18,.15) 30%, rgba(5,10,18,.25) 55%, rgba(5,10,18,.88) 100%); }
  .chap { align-items: flex-end; padding-bottom: 6vh; }
  .chap-hero { align-items: flex-end; }
  .chap-hero .wrap { padding-top: 0; padding-bottom: 4vh; }
  .chap-card { max-width: none; padding: 20px; }
  .film-progress { right: 8px; height: 22vh; }
}

/* plan */
.plan-section { background: var(--sand); }
.plan-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .plan-grid { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } }
.plan-tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) { .plan-tools { flex-direction: column; } }
.plan-chip { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: .92rem; padding: 10px 14px; border-radius: 999px;
  border: 1px solid #d8d2c8; background: #fff; color: var(--muted); cursor: pointer; text-align: left; }
.plan-chip i { width: 12px; height: 12px; border-radius: 3px; background: #c8ced6; flex: 0 0 12px; }
.plan-chip.is-on { color: var(--navy); border-color: var(--navy); }
.plan-chip[data-layer="hvac"].is-on i { background: #2f80c9; }
.plan-chip[data-layer="power"].is-on i { background: #d99a1e; }
.plan-chip[data-layer="water"].is-on i { background: #1f9d6b; }
.plan-chip[data-layer="fire"].is-on i { background: #d0342c; }
.plan-chip[data-layer="drain"].is-on i { background: #7b5a3c; }
.plan-info { flex-basis: 100%; margin-top: 10px; padding: 18px; background: #fff; border-radius: 12px; border: 1px solid #e7e0d5; }
.plan-info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: .3em; }
.plan-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.plan-figure { margin: 0; background: #fff; border-radius: 16px; border: 1px solid #e7e0d5; padding: 10px; overflow: hidden; }
.mep-plan { width: 100%; height: auto; display: block; }
.mep-plan .p-slab { fill: #faf8f5; stroke: #1c2a3d; stroke-width: 3; }
.mep-plan .p-col { fill: #1c2a3d; }
.mep-plan .p-core { fill: #e6e1d9; stroke: #9a9184; stroke-width: 1.5; }
.mep-plan .p-wet { fill: #eef1f3; stroke: #9aa5b1; stroke-width: 1; stroke-dasharray: 4 3; }
.mep-plan .p-desk { fill: #efe9e0; stroke: #d6cdbf; stroke-width: 1; }
.mep-plan .p-glaze { fill: none; stroke: #8fb3cf; stroke-width: 2; }
.mep-plan .p-label { font: 600 14px system-ui, sans-serif; fill: #6b6457; text-anchor: middle; letter-spacing: .1em; }
.mep-plan .p-note { font: 12px system-ui, sans-serif; fill: #8a8377; }
.plan-layer { transition: opacity .35s ease; }
.plan-layer.is-off { opacity: 0; }
.mep-plan:has(.plan-layer.is-focus) .plan-layer:not(.is-focus):not(.is-off) { opacity: .18; }
.m-hvac-duct { fill: rgba(47,128,201,.18); stroke: #2f80c9; stroke-width: 2; }
.m-hvac-shaft, .m-hvac-unit { fill: #2f80c9; }
.m-hvac-diff { fill: #fff; stroke: #2f80c9; stroke-width: 2; }
.m-hvac-flex { stroke: #2f80c9; stroke-width: 2; stroke-dasharray: 3 3; }
.m-chw { stroke: #1d4f80; stroke-width: 3; }
.m-pow-tray { stroke: #d99a1e; stroke-width: 5; stroke-linecap: round; }
.m-pow-feed { stroke: #d99a1e; stroke-width: 1.5; stroke-dasharray: 6 4; }
.m-pow-light { fill: #f6cd6b; }
.m-pow-riser, .m-pow-db { fill: #b27b0f; }
.m-wat { stroke: #1f9d6b; stroke-width: 3; }
.m-wat-riser, .m-wat-pt { fill: #1f9d6b; }
.m-fire-main { stroke: #d0342c; stroke-width: 4; }
.m-fire-br { stroke: #d0342c; stroke-width: 1.6; }
.m-fire-head { fill: #fff; stroke: #d0342c; stroke-width: 2; }
.m-fire-riser, .m-fire-hr { fill: #d0342c; }
.m-drn { stroke: #7b5a3c; stroke-width: 3; stroke-dasharray: 10 5; }
.m-drn-stack, .m-drn-rwp { fill: #7b5a3c; }

/* explorer */
.explorer { background: #0a1424; color: #fff; padding: 64px 0; }
@media (min-width: 900px) { .explorer { padding: 104px 0; } }
.explorer h2 { color: #fff; }
.explorer h2 em { color: #f4c2ad; }
.explorer .section-head p { color: #b8c4d4; }
.explorer-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .explorer-grid { grid-template-columns: 1fr 280px; gap: 32px; } }
.explorer-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 55% 45%, #1f3a5c 0%, #0a1424 75%); }
@media (min-width: 960px) { .explorer-visual { aspect-ratio: 16 / 10; } }
.explorer-visual img, .explorer-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.explorer-visual img { object-fit: cover; transition: opacity .6s ease; }
.explorer-visual canvas { opacity: 0; transition: opacity .6s ease; display: block; }
.explorer.is-3d .explorer-visual canvas { opacity: 1; }
.explorer.is-3d .explorer-poster { opacity: 0; }
.explorer-hint { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0c5; display: none; }
.explorer.is-3d .explorer-hint { display: block; }
.explorer-tools { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
@media (min-width: 960px) { .explorer-tools { flex-direction: column; flex-wrap: nowrap; } }
.ex-btn { font: inherit; font-size: .92rem; padding: 11px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: #dbe3ee; cursor: pointer; text-align: left; }
.ex-btn:hover { border-color: rgba(238,113,73,.6); }
.ex-btn.is-on { background: var(--coral); border-color: var(--coral); color: #fff; }
.explorer-note { color: #7f93ad; margin: 8px 0 0; }

@media (max-width: 899px) and (orientation: portrait) {
  .film-stage picture { top: 7%; height: 62%; }
  .film-stage picture .film-poster { height: 100%; }
  .film-stage::after { content: ""; position: absolute; left: 0; right: 0; top: calc(7% + 62% - 18%); height: 18%;
    background: linear-gradient(180deg, rgba(7,13,22,0), #070d16); pointer-events: none; }
}
.page-head h1 em { color: #f4c2ad; }

/* ===== MEP plan v2: coordination-drawing style ===== */
.plan-figure { background: #fbfaf8; padding: 6px; }
.mep-plan text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.mep-plan .a-grid { stroke: #9aa3ad; stroke-width: .8; stroke-dasharray: 14 4 2 4; }
.mep-plan .a-bubble { fill: #fff; stroke: #6b7684; stroke-width: 1; }
.mep-plan .a-bubble-t { font-size: 12px; font-weight: 600; fill: #3d4652; }
.mep-plan .a-floor { fill: #fff; stroke: none; }
.mep-plan .a-glaze { fill: none; stroke: #7d93a8; stroke-width: .8; }
.mep-plan .a-col { fill: #4a5462; }
.mep-plan .a-wall { fill: #c9ccd1; stroke: #6b7280; stroke-width: .8; }
.mep-plan .a-room { fill: #fff; stroke: #6b7280; stroke-width: .6; }
.mep-plan .a-lift { fill: #f3f4f6; stroke: #6b7280; stroke-width: .6; }
.mep-plan .a-shaft { fill: #eef0f3; stroke: #6b7280; stroke-width: .6; stroke-dasharray: 3 2; }
.mep-plan .a-thin { stroke: #a3a9b1; stroke-width: .5; fill: none; }
.mep-plan .a-part { stroke: #8a919a; stroke-width: 1.1; }
.mep-plan .a-fix { fill: #fff; stroke: #8a919a; stroke-width: .6; }
.mep-plan .a-glass { stroke: #8fa9c0; stroke-width: 1.4; }
.mep-plan .a-door { fill: none; stroke: #8a919a; stroke-width: .6; }
.mep-plan .a-furn { fill: #f6f5f2; stroke: #d3d0c9; stroke-width: .6; }
.mep-plan .a-label { font-size: 10px; letter-spacing: .14em; fill: #8a919a; font-weight: 600; }
.mep-plan .a-tiny { font-size: 7.5px; fill: #6b7280; text-anchor: middle; font-weight: 600; }

.mep-plan .m-duct { fill: rgba(37,99,163,.07); stroke: #2563a3; stroke-width: 1.1; }
.mep-plan .m-vav { fill: #fff; stroke: #2563a3; stroke-width: 1.1; }
.mep-plan .m-flex { stroke: #2563a3; stroke-width: .7; stroke-dasharray: 2 2; }
.mep-plan .m-diff { fill: #fff; stroke: #2563a3; stroke-width: 1; }
.mep-plan .m-diff-x { stroke: #2563a3; stroke-width: .6; }
.mep-plan .m-ret { fill: #fff; stroke: #4f7fb0; stroke-width: 1; }
.mep-plan .m-ret-x { stroke: #4f7fb0; stroke-width: .6; }
.mep-plan .m-tray { fill: rgba(176,112,10,.08); stroke: #b0700a; stroke-width: .9; }
.mep-plan .m-tray-r { stroke: #b0700a; stroke-width: .5; }
.mep-plan .m-db { fill: #b0700a; }
.mep-plan .m-light { fill: #fff; stroke: #b0700a; stroke-width: .9; }
.mep-plan .m-light-i { fill: rgba(176,112,10,.18); stroke: none; }
.mep-plan .m-feed { fill: none; stroke: #b0700a; stroke-width: .8; stroke-dasharray: 6 3; }
.mep-plan .m-cw { fill: none; stroke: #0f7a55; stroke-width: 1.3; }
.mep-plan .m-hw { fill: none; stroke: #0f7a55; stroke-width: 1.1; stroke-dasharray: 6 3; }
.mep-plan .m-w-pt { fill: #0f7a55; }
.mep-plan .m-f-riser { fill: #b42318; }
.mep-plan .m-f-main { fill: none; stroke: #b42318; stroke-width: 2; }
.mep-plan .m-f-br { stroke: #b42318; stroke-width: .9; }
.mep-plan .m-f-head { fill: #fff; stroke: #b42318; stroke-width: 1.1; }
.mep-plan .m-f-fhr { fill: #fff; stroke: #b42318; stroke-width: 1.2; }
.mep-plan .m-d { fill: none; stroke: #6b4a2e; stroke-width: 1.4; stroke-dasharray: 10 3 2 3; }
.mep-plan .m-d-stack, .mep-plan .m-d-rwp { fill: #fff; stroke: #6b4a2e; stroke-width: 1.6; }
.mep-plan .m-d-fd { fill: #fff; stroke: #6b4a2e; stroke-width: 1; }
.mep-plan .m-tag rect { fill: #fff; stroke-width: .8; }
.mep-plan .m-tag text { font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.mep-plan .m-tag.hv rect { stroke: #2563a3; } .mep-plan .m-tag.hv text { fill: #2563a3; }
.mep-plan .m-tag.pw rect { stroke: #b0700a; } .mep-plan .m-tag.pw text { fill: #b0700a; }
.mep-plan .m-tag.wt rect { stroke: #0f7a55; } .mep-plan .m-tag.wt text { fill: #0f7a55; }
.mep-plan .m-tag.fr rect { stroke: #b42318; } .mep-plan .m-tag.fr text { fill: #b42318; }
.mep-plan .m-tag.dr rect { stroke: #6b4a2e; } .mep-plan .m-tag.dr text { fill: #6b4a2e; }
.mep-plan .t-rule { stroke: #1c2a3d; stroke-width: 1.2; }
.mep-plan .t-title { font-size: 14px; font-weight: 700; letter-spacing: .08em; fill: #1c2a3d; }
.mep-plan .t-sub { font-size: 11px; fill: #6b7280; }
.mep-plan .t-small { font-size: 10px; fill: #3d4652; }
.mep-plan .t-sb1 { fill: #1c2a3d; } .mep-plan .t-sb2 { fill: #fff; stroke: #1c2a3d; stroke-width: .8; }
.mep-plan .t-north { fill: #1c2a3d; }
.plan-chip[data-layer="hvac"].is-on i { background: #2563a3; }
.plan-chip[data-layer="power"].is-on i { background: #b0700a; }
.plan-chip[data-layer="water"].is-on i { background: #0f7a55; }
.plan-chip[data-layer="fire"].is-on i { background: #b42318; }
.plan-chip[data-layer="drain"].is-on i { background: #6b4a2e; }
.plan-chip { border-radius: 8px; font-size: .88rem; }
.mep-plan:has(.plan-layer.is-focus) .plan-layer:not(.is-focus):not(.is-off) { opacity: .12; }
@media (max-width: 699px) {
  .plan-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan-figure .mep-plan { min-width: 680px; }
  .plan-figure::after { content: "Swipe to see the whole floor"; display: block; font-size: .75rem; color: #8a8377; padding: 6px 4px 2px; }
}
.projects-sub { grid-column: 1 / -1; margin: 28px 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.project figure.fit { background: #fff; }
.project figure.fit img { object-fit: contain; padding: 8px; }

/* ===== Calculators (/tools/) ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-toolbar { display: grid; gap: 12px; margin-bottom: 26px; }
@media (min-width: 900px) { .calc-toolbar { grid-template-columns: minmax(280px, 400px) 1fr; align-items: center; gap: 20px; } }
.calc-search { display: block; }
.calc-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid #cfd8e3; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") 14px 50%/18px no-repeat;
}
.calc-search input:focus { outline: 2px solid var(--coral); outline-offset: 2px; border-color: var(--coral); }
.calc-chips { padding: 0; }
.calc-chips li { display: contents; }
.calc-chips button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: inherit; font-size: .9rem; cursor: pointer; }
.calc-chips button:hover { border-color: var(--coral); }
.calc-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-group + .calc-group { margin-top: 34px; }
.calc-group h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.3rem; margin-bottom: 14px; }
.calc-group .badge-count { font-size: .82rem; color: var(--muted); font-weight: 600; }
button.calc-card { width: 100%; text-align: left; font: inherit; cursor: pointer; color: inherit; display: block; }
.calc-card h3 { margin-bottom: .3em; font-size: 1.05rem; }
.calc-card p { font-size: .93rem; }
.calc-note { margin-top: 24px; color: var(--muted); }
.calc-dialog { width: min(760px, calc(100% - 20px)); max-height: calc(100vh - 20px); border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(10, 22, 38, .35); }
.calc-dialog::backdrop { background: rgba(10, 22, 38, .55); }
.calc-dialog-body { padding: 22px 18px 26px; }
@media (min-width: 640px) { .calc-dialog-body { padding: 28px 32px 32px; } }
.calc-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.calc-dialog-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .2em; }
.calc-dialog-head .eyebrow { margin-bottom: 8px; }
.calc-desc { color: var(--muted); margin: 0; }
.calc-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.calc-close:hover { border-color: var(--coral); color: var(--coral-ink); }
.calc-form { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-form .full { grid-column: 1 / -1; } }
.calc-form label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc-form .unit { color: var(--muted); font-weight: 500; }
.calc-form .field-note { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.calc-form input, .calc-form select, .calc-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.calc-form textarea { min-height: 110px; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .9rem; resize: vertical; }
.calc-form input:focus, .calc-form select:focus, .calc-form textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.calc-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.calc-actions .btn { cursor: pointer; font: inherit; font-weight: 600; }
.calc-result { margin-top: 20px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.calc-result h3 { font-size: 1rem; margin-bottom: 8px; }
.calc-result table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc-result td { padding: 9px 2px; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc-result tr:last-child td { border-bottom: 0; }
.calc-result td:last-child { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; padding-left: 12px; }
.calc-result .small { margin: 10px 0 0; color: var(--muted); }
.calc-error { margin-top: 16px; background: #fdebe7; color: #8a2a1e; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.calc-meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.calc-meta summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.calc-meta p { margin: 10px 0 0; }
.calc-meta ul { margin: 8px 0 0; padding-left: 18px; }
.uc { background: var(--bg); border-radius: 18px; padding: 20px 18px 22px; max-width: 980px; }
@media (min-width: 640px) { .uc { padding: 26px 28px 28px; } }
.uc-form { display: grid; gap: 12px 10px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }
.uc-form .uc-q, .uc-form .uc-v { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .uc-form { grid-template-columns: 1.4fr .8fr 1fr auto 1fr; }
  .uc-form .uc-q, .uc-form .uc-v { grid-column: auto; }
}
.uc-form label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.uc-form input, .uc-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.uc-form input:focus, .uc-form select:focus, .uc-swap:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.uc-swap { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #cfd8e3; background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.uc-swap:hover { border-color: var(--coral); color: var(--coral-ink); }
.uc-result { margin: 18px 0 0; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.uc-result.is-error { font-size: 1rem; color: #8a2a1e; }
.uc-note { margin: 8px 0 0; color: var(--muted); }
.uc-more { margin-top: 16px; font-size: .95rem; }
.uc-more summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.uc-more table { width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 8px; }
.uc-more td { padding: 8px 2px; border-bottom: 1px solid var(--line); }
.uc-more tr:last-child td { border-bottom: 0; }
.uc-more td:last-child { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; padding-left: 12px; }
