/* ============================================================
   DDP Built-in Design — shared styles
   Palette: navy #1F4E79 · ink #17181A · muted #5C6167 · LINE #06C755
   Font: IBM Plex Sans Thai (Google Fonts)
   ============================================================ */

:root{
  --navy:#1F4E79;
  --navy-dark:#163A5B;
  --navy-soft:rgba(31,78,121,.08);
  --ink:#17181A;
  --body:#3a3d42;
  --muted:#5C6167;
  --line-green:#06C755;
  --line-green-dark:#05b04c;
  --bg-soft:#F7F7F5;
  --border:rgba(0,0,0,.09);
  --border-soft:rgba(0,0,0,.07);
  --border-input:rgba(0,0,0,.16);
  --radius:10px;
  --radius-btn:8px;
  --pad-x:clamp(20px,4.4vw,56px);
  --header-h:76px;
  --font:'IBM Plex Sans Thai',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--body);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{color:var(--navy-dark)}
h1,h2,h3{color:var(--ink);margin:0}
button{font-family:inherit}

.container{max-width:1280px;margin-inline:auto;padding-inline:var(--pad-x)}

/* ---------- kicker / section headers ---------- */
.kicker{
  font-size:11px;font-weight:600;letter-spacing:.24em;
  color:var(--navy);text-transform:uppercase;margin-bottom:8px;
}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:32px;flex-wrap:wrap}
.section-head h2{font-size:28px;font-weight:700}
.section-link{font-size:14px;font-weight:600;color:var(--navy);white-space:nowrap}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-weight:600;font-size:15.5px;line-height:1;
  padding:14px 24px;border-radius:var(--radius-btn);
  border:0;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .12s;
  text-align:center;
}
.btn:active{transform:translateY(1px)}
.btn .dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#fff;flex:none}
.btn-line{background:var(--line-green);color:#fff}
.btn-line:hover{background:var(--line-green-dark);color:#fff}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-dark);color:#fff}
.btn-outline{background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.btn-outline:hover{background:var(--navy-soft);color:var(--navy)}
.btn-outline-white{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.6)}
.btn-outline-white:hover{border-color:#fff;color:#fff}
.btn-sm{font-size:14px;padding:10px 18px;border-radius:6px}
.btn-sm .dot{width:8px;height:8px}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border-soft);
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--header-h);gap:24px;
}
.brand{display:flex;align-items:baseline;gap:10px;color:inherit}
.brand:hover{color:inherit}
.brand-name{font-size:24px;font-weight:700;letter-spacing:.04em;color:var(--ink)}
.brand-sub{font-size:11px;font-weight:500;letter-spacing:.22em;color:var(--navy);text-transform:uppercase}
.main-nav{display:flex;align-items:center;gap:32px;font-size:14.5px;color:var(--body)}
.main-nav a{color:var(--body);padding-bottom:2px;border-bottom:2px solid transparent;transition:color .15s}
.main-nav a:hover{color:var(--navy)}
.main-nav a.is-active{color:var(--navy);font-weight:600;border-bottom-color:var(--navy)}
.nav-phone{font-weight:600;color:var(--ink);white-space:nowrap}
.nav-phone:hover{color:var(--navy)}

/* hamburger */
.nav-toggle{
  display:none;flex-direction:column;gap:4px;padding:10px 4px;
  background:none;border:0;cursor:pointer;
}
.nav-toggle span{width:20px;height:2px;background:var(--ink);display:block;transition:transform .2s,opacity .2s,width .2s}
.nav-toggle span:last-child{width:14px}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){width:20px;transform:translateY(-6px) rotate(-45deg)}

/* mobile drawer */
.drawer-overlay{
  position:fixed;inset:0;background:rgba(15,20,28,.45);z-index:70;
  opacity:0;pointer-events:none;transition:opacity .22s;
}
.drawer-overlay.is-open{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(320px,86vw);z-index:71;
  background:#fff;box-shadow:-8px 0 40px rgba(0,0,0,.14);
  transform:translateX(105%);transition:transform .26s cubic-bezier(.22,.8,.32,1);
  display:flex;flex-direction:column;padding:22px 24px 28px;overflow-y:auto;
}
.drawer.is-open{transform:translateX(0)}
.drawer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.drawer-close{background:none;border:0;font-size:26px;line-height:1;color:var(--ink);cursor:pointer;padding:4px 8px}
.drawer-nav{display:flex;flex-direction:column;gap:4px;margin-bottom:28px}
.drawer-nav a{
  font-size:17px;font-weight:500;color:var(--ink);
  padding:12px 10px;border-radius:8px;
}
.drawer-nav a:hover{background:var(--bg-soft)}
.drawer-nav a.is-active{color:var(--navy);font-weight:600;background:var(--navy-soft)}
.drawer-cta{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.drawer-note{font-size:12.5px;color:var(--muted);text-align:center;margin-top:12px;line-height:1.7}

/* ---------- hero: 3D scrollytelling (home) ----------
   โครงสร้าง: .hero3d-wrap สูง 400vh → ภายในมีกล่อง sticky สูงหนึ่งจอ
   ฉาก 3D (Three.js) เล่นตามระยะสกรอลล์ · .is-static = โหมดสำรอง
   (ไม่มี WebGL / โหลด CDN ไม่ได้ / prefers-reduced-motion) แสดงภาพนิ่งแทน */
.hero3d-wrap{position:relative}
html.js .hero3d-wrap{height:400vh}
html.js .hero3d-wrap.is-static{height:auto}
.hero3d-sticky{
  position:sticky;top:var(--header-h);
  height:calc(100vh - var(--header-h));
  height:calc(100dvh - var(--header-h));
  overflow:hidden;
}
html:not(.js) .hero3d-sticky,.is-static .hero3d-sticky{position:static;height:auto;overflow:visible}
.hero3d-grid{
  display:grid;grid-template-columns:440px 1fr;height:100%;
  max-width:1280px;margin-inline:auto;
}
html:not(.js) .hero3d-grid,.is-static .hero3d-grid{height:auto;align-items:stretch}
.hero3d-copy{
  display:flex;flex-direction:column;justify-content:center;gap:22px;
  padding-left:var(--pad-x);
}
html:not(.js) .hero3d-copy,.is-static .hero3d-copy{padding-block:64px}
.hero3d-copy h1{font-size:40px;line-height:1.28;font-weight:700;text-wrap:pretty}
.hero3d-copy p{margin:0;font-size:16px;line-height:1.75;color:var(--muted);max-width:380px;text-wrap:pretty}
.hero3d-ctas{display:flex;gap:12px;margin-top:6px;flex-wrap:wrap}
.stage-rail{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px;max-width:420px}
.stage-step{
  border-top:2px solid rgba(31,78,121,.25);padding-top:11px;opacity:.48;
  transition:opacity .35s,border-color .35s;
}
.stage-step.is-on{border-top-color:var(--navy);opacity:1}
.stage-num{font-size:10.5px;font-weight:600;color:var(--navy);letter-spacing:.1em;margin-bottom:5px;white-space:nowrap}
.stage-title{font-size:12.5px;font-weight:600;color:var(--ink);line-height:1.4}
.hero3d-media{padding:32px var(--pad-x) 32px 48px;min-width:0}
.hero3d-canvas{
  position:relative;width:100%;height:100%;
  border-radius:var(--radius);overflow:hidden;background:#F4F3F0;
}
html:not(.js) .hero3d-canvas,.is-static .hero3d-canvas{height:auto;aspect-ratio:16/11}
.hero3d-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero3d-canvas canvas{position:absolute;inset:0}
.hero3d-cue{
  position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;
  pointer-events:none;transition:opacity .3s;z-index:2;
}
html:not(.js) .hero3d-cue,.is-static .hero3d-cue{display:none}
.cue-pill{
  display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.93);border:1px solid rgba(0,0,0,.08);
  border-radius:99px;padding:9px 18px;font-size:12.5px;font-weight:500;color:var(--muted);
  box-shadow:0 4px 16px rgba(15,20,28,.07);
}
.cue-arrow{display:inline-block;color:var(--navy);font-weight:600;animation:cueBob 1.6s ease-in-out infinite}
@keyframes cueBob{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* ---------- generic sections ---------- */
.section{padding:64px 0}
.section-border-top{border-top:1px solid var(--border-soft)}
.section-soft{background:var(--bg-soft)}

/* ---------- service cards (home) ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.svc-card{
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  background:#fff;color:inherit;display:flex;flex-direction:column;
  transition:box-shadow .2s,transform .2s;
}
.svc-card:hover{box-shadow:0 10px 30px rgba(15,20,28,.1);transform:translateY(-3px);color:inherit}
.svc-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.svc-card-body{padding:18px 20px 20px}
.svc-card-title{font-size:16.5px;font-weight:600;color:var(--ink);margin-bottom:4px}
.svc-card-desc{font-size:13px;color:var(--muted);line-height:1.6}

/* ---------- portfolio (home teaser) ---------- */
.pf-teaser-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:20px}
.pf-tile{position:relative;border-radius:var(--radius);overflow:hidden;display:block;color:#fff}
.pf-tile:hover{color:#fff}
.pf-tile img{width:100%;height:100%;min-height:340px;object-fit:cover;transition:transform .35s ease}
.pf-tile:hover img{transform:scale(1.03)}
.pf-tile-caption{
  position:absolute;left:0;right:0;bottom:0;padding:40px 22px 18px;
  background:linear-gradient(transparent,rgba(15,20,28,.72));
}
.pf-tile-title{font-size:16px;font-weight:600}
.pf-tile-sub{font-size:12.5px;opacity:.85}

/* placeholder tiles */
.tile-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  border-radius:var(--radius);border:1.5px dashed rgba(31,78,121,.35);
  background:repeating-linear-gradient(45deg,#f2f2ef 0 14px,#ebebe7 14px 28px);
  min-height:340px;
}
.tile-placeholder .ph-label{
  font:500 11.5px ui-monospace,Menlo,monospace;color:var(--navy);
  text-align:center;line-height:1.7;
}

/* ---------- process ---------- */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.process-step{border-top:2px solid rgba(31,78,121,.25);padding-top:18px}
.process-step.is-first,.process-step.is-solid{border-top-color:var(--navy)}
.process-num{font-size:12px;font-weight:600;color:var(--navy);letter-spacing:.12em;margin-bottom:6px}
.process-title{font-size:16.5px;font-weight:600;color:var(--ink);margin-bottom:6px}
.process-desc{font-size:13.5px;line-height:1.7;color:var(--muted)}

/* ---------- CTA band ---------- */
.cta-band{background:var(--navy)}
.cta-band .container{
  padding-top:56px;padding-bottom:56px;
  display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
}
.cta-band.cta-compact .container{padding-top:44px;padding-bottom:44px}
.cta-title{font-size:24px;font-weight:700;color:#fff;margin-bottom:6px}
.cta-band.cta-compact .cta-title{font-size:20px;margin-bottom:0}
.cta-sub{font-size:14.5px;color:rgba(255,255,255,.75)}
.cta-actions{display:flex;gap:12px;flex-shrink:0;flex-wrap:wrap}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border-soft);background:#fff}
.site-footer .container{
  padding-top:36px;padding-bottom:36px;
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  font-size:13px;color:var(--muted);flex-wrap:wrap;
}
.footer-brand{display:flex;align-items:baseline;gap:8px}
.footer-brand .brand-name{font-size:17px}
.footer-brand .brand-sub{font-size:10px;letter-spacing:.2em}
.footer-links{display:flex;gap:16px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--navy)}

/* ---------- page head (portfolio / services / contact) ---------- */
.page-head{padding-block:56px 0}
.page-head h1{font-size:34px;font-weight:700;margin-bottom:10px}
.page-head .lead{margin:0 0 28px;font-size:15px;color:var(--muted);max-width:620px;line-height:1.7}

/* ---------- filter chips ---------- */
.filter-row{display:flex;gap:10px;margin-bottom:36px;flex-wrap:wrap}
.chip{
  font-size:13.5px;padding:9px 18px;border-radius:99px;
  border:1px solid rgba(0,0,0,.14);color:var(--body);background:#fff;
  cursor:pointer;transition:background .15s,color .15s,border-color .15s;
}
.chip:hover{border-color:var(--navy);color:var(--navy)}
.chip.is-active{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:600}

/* ---------- portfolio grid ---------- */
.pf-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
  padding-bottom:56px;align-items:stretch;
}
.pf-card{
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;color:inherit;background:#fff;
  transition:box-shadow .2s,transform .2s;
}
a.pf-card:hover{box-shadow:0 10px 30px rgba(15,20,28,.1);transform:translateY(-3px);color:inherit}
.pf-card img{width:100%;aspect-ratio:16/11;object-fit:cover;flex:1;min-height:0}
.pf-card-body{padding:16px 18px}
.pf-card-title{font-size:15.5px;font-weight:600;color:var(--ink)}
.pf-card-sub{font-size:12.5px;color:var(--muted);margin-top:3px}
.pf-grid .tile-placeholder{min-height:300px;height:auto}
.pf-card.is-hidden,.tile-placeholder.is-hidden{display:none}

/* ---------- project detail ---------- */
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:16px}
.breadcrumb .sep{margin:0 6px;color:rgba(0,0,0,.3)}
.breadcrumb .current{color:var(--ink);font-weight:500}
.project-title{font-size:34px;font-weight:700;margin-bottom:14px}
.project-meta{display:flex;gap:36px;font-size:13.5px;color:var(--muted);margin-bottom:32px;flex-wrap:wrap}
.meta-label{
  display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--navy);font-weight:600;margin-bottom:3px;
}
.project-tags{display:none;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.tag{
  font-size:11.5px;padding:5px 11px;border-radius:99px;
  background:var(--navy-soft);color:var(--navy);font-weight:500;
}
.project-hero img{width:100%;aspect-ratio:21/10;object-fit:cover;border-radius:12px}
.gallery-section{padding-block:48px 8px}
.gallery-section h2{font-size:21px;font-weight:700;margin-bottom:20px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.gallery-grid a{display:block;border-radius:var(--radius);overflow:hidden}
.gallery-grid img{
  width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);
  cursor:zoom-in;transition:transform .3s ease,box-shadow .3s ease;
}
.gallery-grid a:hover img{transform:scale(1.02);box-shadow:0 8px 26px rgba(15,20,28,.16)}

/* ---------- lightbox ---------- */
.lightbox{
  position:fixed;inset:0;z-index:100;background:rgba(10,14,20,.92);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;transition:opacity .2s;
}
.lightbox.is-open{opacity:1;pointer-events:auto}
.lightbox img{
  max-width:min(92vw,1400px);max-height:82vh;object-fit:contain;
  border-radius:6px;box-shadow:0 20px 80px rgba(0,0,0,.5);
}
.lb-caption{
  position:absolute;left:0;right:0;bottom:22px;text-align:center;
  color:rgba(255,255,255,.85);font-size:13.5px;padding:0 60px;
}
.lb-counter{
  position:absolute;top:20px;left:24px;color:rgba(255,255,255,.6);
  font:500 12px ui-monospace,Menlo,monospace;letter-spacing:.08em;
}
.lb-btn{
  position:absolute;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  color:#fff;cursor:pointer;border-radius:50%;width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;
  transition:background .15s;
}
.lb-btn:hover{background:rgba(255,255,255,.2)}
.lb-close{top:16px;right:20px}
.lb-prev{left:20px;top:50%;transform:translateY(-50%)}
.lb-next{right:20px;top:50%;transform:translateY(-50%)}

/* ---------- services page ---------- */
.price-list{display:flex;flex-direction:column;gap:16px;padding-bottom:48px}
.price-row{
  display:grid;grid-template-columns:220px 1fr auto;gap:24px;align-items:center;
  border:1px solid var(--border);border-radius:12px;padding:20px;background:#fff;
  scroll-margin-top:calc(var(--header-h) + 16px);
}
.price-row img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px}
.price-row-title{font-size:18px;font-weight:700;color:var(--ink);margin-bottom:6px}
.price-row-desc{font-size:13.5px;line-height:1.75;color:var(--muted)}
.price-tag{text-align:right;padding-right:8px;white-space:nowrap}
.price-from{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.price-value{font-size:22px;font-weight:700;color:var(--navy)}
.price-unit{font-size:13px;font-weight:500;color:var(--muted)}

.materials-note{margin:0 0 26px;font-size:14px;color:var(--muted)}
.materials-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.material-card{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.material-card img{width:100%;aspect-ratio:1;object-fit:cover}
.material-code{padding:9px 11px;font:500 11px ui-monospace,Menlo,monospace;color:var(--body)}

/* ---------- contact page ---------- */
.contact-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;padding-block:56px}
.contact-form h1{font-size:32px;font-weight:700;margin-bottom:10px}
.contact-form .lead{margin:0 0 28px;font-size:14.5px;color:var(--muted);line-height:1.7}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column}
.field-full{grid-column:1/-1}
.field label{font-size:13px;font-weight:600;color:var(--body);margin-bottom:6px}
.field input,.field select,.field textarea{
  font-family:inherit;font-size:14px;color:var(--ink);
  border:1px solid var(--border-input);border-radius:var(--radius-btn);
  padding:12px 14px;background:#fff;width:100%;
  transition:border-color .15s,box-shadow .15s;
  appearance:none;-webkit-appearance:none;
}
.field textarea{min-height:108px;resize:vertical;line-height:1.6}
.field input::placeholder,.field textarea::placeholder{color:rgba(0,0,0,.35)}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(31,78,121,.12);
}
.field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C6167' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:36px;
}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#C64533}
.field-error{display:none;font-size:12px;color:#C64533;margin-top:5px}
.field.has-error .field-error{display:block}

.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.file-label{
  display:inline-flex;align-items:center;gap:10px;
  border:1.5px dashed rgba(0,0,0,.22);border-radius:var(--radius-btn);
  padding:11px 16px;font-size:13.5px;color:var(--muted);cursor:pointer;
  transition:border-color .15s,color .15s;max-width:100%;
}
.file-label:hover{border-color:var(--navy);color:var(--navy)}
.file-label input{display:none}
.form-actions .btn-navy{margin-left:auto;font-size:15px;padding:13px 28px}
.form-note{grid-column:1/-1;font-size:12px;color:var(--muted)}

.form-success{
  display:none;border:1px solid rgba(6,150,80,.3);background:#F2FBF6;
  border-radius:12px;padding:26px;line-height:1.7;
}
.form-success.is-visible{display:block}
.form-success h2{font-size:19px;color:#0B7A43;margin-bottom:8px}
.form-success p{margin:0 0 14px;font-size:14px;color:var(--body)}
.success-summary{
  background:#fff;border:1px solid var(--border);border-radius:8px;
  padding:14px 16px;font-size:13px;white-space:pre-wrap;color:var(--body);
  margin-bottom:16px;line-height:1.8;
}
.success-actions{display:flex;gap:10px;flex-wrap:wrap}

.contact-side{display:flex;flex-direction:column;gap:16px}
.side-card{border:1px solid var(--border);border-radius:12px;padding:24px}
.side-card.soft{background:var(--bg-soft)}
.side-card-title{font-size:16px;font-weight:700;color:var(--ink);margin-bottom:16px}
.side-card .stack{display:flex;flex-direction:column;gap:10px}
.side-card .btn{font-size:15px;padding:13px}
.qr-row{display:flex;gap:14px;margin-top:16px;align-items:center}
.qr-box{
  width:86px;height:86px;flex:none;border-radius:8px;
  border:1.5px dashed rgba(31,78,121,.35);
  background:repeating-linear-gradient(45deg,#f2f2ef 0 10px,#ebebe7 10px 20px);
  display:flex;align-items:center;justify-content:center;
  font:500 9.5px ui-monospace,Menlo,monospace;color:var(--navy);
  text-align:center;line-height:1.5;overflow:hidden;
}
.qr-box img{width:100%;height:100%;object-fit:cover}
.qr-note{font-size:13px;color:var(--muted);line-height:1.7}
.area-text{font-size:13.5px;color:var(--muted);line-height:1.8}
.area-text strong{color:var(--ink);font-weight:500}
.map-box{
  border-radius:12px;border:1.5px dashed rgba(31,78,121,.35);
  background:repeating-linear-gradient(45deg,#f2f2ef 0 14px,#ebebe7 14px 28px);
  min-height:150px;display:flex;align-items:center;justify-content:center;
  font:500 11px ui-monospace,Menlo,monospace;color:var(--navy);overflow:hidden;
}
.map-box iframe{width:100%;height:100%;min-height:220px;border:0;display:block}

/* ---------- mobile sticky action bar ---------- */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  display:none;grid-template-columns:1fr 1fr;gap:10px;
  padding:12px 14px calc(16px + env(safe-area-inset-bottom,0px));
  background:rgba(255,255,255,.96);border-top:1px solid rgba(0,0,0,.1);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.mobile-bar .btn{min-height:48px;font-size:14.5px;border-radius:9px;padding:10px 12px}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(16px);
  background:var(--ink);color:#fff;font-size:13.5px;line-height:1.55;
  padding:12px 18px;border-radius:10px;box-shadow:0 12px 34px rgba(0,0,0,.28);
  opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;
  z-index:110;max-width:min(420px,88vw);text-align:center;
}
.toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- reveal on scroll (gated behind html.js so no-JS users see content) ---------- */
html.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
html.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .reveal{opacity:1;transform:none;transition:none}
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1120px){
  .hero3d-grid{grid-template-columns:1fr 1.1fr}
  .hero3d-copy h1{font-size:34px}
}

@media (max-width:1023px){
  :root{--header-h:64px}
  .main-nav{display:none}
  .nav-toggle{display:flex}
  .mobile-bar{display:grid}
  body{padding-bottom:86px}
  .site-header .container{height:64px}
  .brand-name{font-size:20px}
  .brand-sub{font-size:9.5px;letter-spacing:.18em}

  /* hero 3D: stack copy on top, canvas fills the rest; clear the bottom bar */
  html.js .hero3d-wrap{height:340vh}
  html.js .hero3d-wrap.is-static{height:auto}
  .hero3d-grid{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .hero3d-copy{padding:18px var(--pad-x) 0;gap:10px;justify-content:flex-start}
  .hero3d-copy h1{font-size:26px;line-height:1.32}
  .hero3d-copy p{font-size:14px;line-height:1.7}
  .hero3d-media{padding:14px var(--pad-x) 96px}
  html:not(.js) .hero3d-media,.is-static .hero3d-media{padding-bottom:24px}
  html:not(.js) .hero3d-copy,.is-static .hero3d-copy{padding-block:28px 0}
  .stage-rail{margin-top:8px;gap:10px;max-width:none}
  .hero3d-cue{bottom:12px}

  .svc-grid{grid-template-columns:repeat(2,1fr)}
  .pf-teaser-grid{grid-template-columns:1fr 1fr}
  .pf-teaser-grid .pf-tile:first-child{grid-column:1/-1}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .pf-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .materials-grid{grid-template-columns:repeat(4,1fr)}
  .contact-layout{grid-template-columns:1fr;gap:40px}
  .price-row{grid-template-columns:180px 1fr;gap:18px}
  .price-tag{grid-column:2;text-align:left;padding-right:0}
  .cta-band .container{flex-direction:column;align-items:flex-start}
}

@media (max-width:680px){
  .section{padding:44px 0}
  .section-head{margin-bottom:18px}
  .section-head h2{font-size:19px}
  .page-head{padding-top:36px}
  .page-head h1{font-size:26px}
  .project-title{font-size:23px;line-height:1.35}

  /* hero 3D compact: sticky bottom bar takes over the CTAs (per mockup 1f) */
  .hero3d-ctas{display:none}
  .hero3d-copy .kicker{font-size:10px;letter-spacing:.22em}
  .stage-num{font-size:9.5px}
  .stage-title{font-size:11px}
  .hide-mobile{display:none !important}

  .svc-grid{gap:12px}
  .svc-card-body{padding:10px 12px}
  .svc-card-title{font-size:13.5px}
  .svc-card-desc{font-size:11px}

  .pf-teaser-grid{grid-template-columns:1fr;gap:14px}
  .pf-tile img{min-height:0;aspect-ratio:16/10}
  .tile-placeholder{min-height:180px}
  .pf-grid{grid-template-columns:1fr;gap:16px}
  .process-grid{grid-template-columns:1fr;gap:20px}

  .cta-band .container{padding-top:28px;padding-bottom:32px;gap:16px}
  .cta-title{font-size:17px;margin-bottom:4px}
  .cta-band.cta-compact .cta-title{font-size:17px}
  .cta-sub{font-size:12.5px}
  .cta-actions{width:100%;flex-direction:column}
  .cta-actions .btn{width:100%}

  .site-footer .container{flex-direction:column;align-items:flex-start;gap:10px}

  .project-meta{gap:14px 24px;margin-bottom:22px}
  .project-tags{display:flex}
  .project-hero img{aspect-ratio:16/10;border-radius:10px}
  .gallery-section{padding-block:30px 4px}
  .gallery-section h2{font-size:18px;margin-bottom:12px}
  .gallery-grid{grid-template-columns:1fr;gap:12px}
  .gallery-grid img{aspect-ratio:16/10}

  .price-row{grid-template-columns:1fr;padding:16px}
  .price-row img{aspect-ratio:16/9}
  .price-tag{grid-column:auto;text-align:left;padding-right:0}
  .materials-grid{grid-template-columns:repeat(3,1fr);gap:10px}

  .form-grid{grid-template-columns:1fr}
  .form-actions .btn-navy{margin-left:0;width:100%}
  .file-label{width:100%;justify-content:center}
  .contact-layout{padding-block:36px 44px}

  .lb-btn{width:40px;height:40px}
  .lb-prev{left:8px}
  .lb-next{right:8px}
}
