/* This file is loaded by construction-landing.html and by nothing else, and
   the demo pages deliberately ship without a shared reset — so this one has to
   set box-sizing itself. Without it `.btn-primary { width: 100% }` in the
   ≤560px block added its own `padding: 0 21px` on top of the full width and
   the hero CTA ran 18px past the right edge of a 375px screen: the primary
   call to action on the page, clipped, on the half of traffic that is mobile.
   Same trap waits for every padded form field.

   Checked before adding: only two rules in the file pair a width with any
   padding, and both are vertical-only, so nothing else moves. */
*,
*::before,
*::after { box-sizing: border-box; }

/* BuildNest 2026 redesign — kept separate so the showcase can evolve without altering other demos. */
:root {
  --bn-ink: #123d45;
  --bn-ink-strong: #082e36;
  --bn-paper: #f8f7f3;
  --bn-muted: #5f7072;
  --bn-line: #dce1de;
  --bn-gold: #c9922f;
  --bn-gold-dark: #a8731f;
  --bn-radius: 2px;
  --bn-max: 1280px;
}

html { background: var(--bn-paper); }
body {
  color: var(--bn-ink);
  background: var(--bn-paper);
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.bn-shell { width: min(var(--bn-max), calc(100% - 48px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(18, 61, 69, .12);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.bn-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { color: var(--bn-ink); font-family: "Noto Serif Thai", Georgia, serif; font-size: 1.74rem; font-weight: 600; letter-spacing: -.055em; }
.brand span { display: none; }
.bn-nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; color: var(--bn-ink); font-size: .91rem; font-weight: 600; }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; position: relative; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: 8px; left: 0; height: 1px; transform: scaleX(0); background: var(--bn-gold); transform-origin: right; transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta, .btn-primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: var(--bn-radius); padding: 0 21px; background: var(--bn-gold); color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 rgba(0,0,0,.11); transition: background .2s ease, transform .2s ease; }
.nav-cta:hover, .btn-primary:hover { background: var(--bn-gold-dark); transform: translateY(-1px); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--bn-line); border-radius: var(--bn-radius); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { width: 20px; height: 1px; display: block; background: var(--bn-ink); content: ""; transition: transform .2s ease; }
.nav-toggle::before { transform: translateY(-5px); }
.nav-toggle::after { transform: translateY(5px); }
.mobile-panel { display: none; }

.bn-hero { position: relative; min-height: 735px; overflow: hidden; color: #fff; background: var(--bn-ink-strong); }
.bn-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,32,38,.93) 0%, rgba(4,32,38,.81) 48%, rgba(4,32,38,.51) 100%); z-index: 1; }
.bn-hero::after { content: ""; position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 106px 106px; mask-image: linear-gradient(90deg, transparent 27%, #000 60%, transparent 100%); }
.bn-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: saturate(.72) contrast(1.04); }
.bn-hero-content { position: relative; z-index: 2; min-height: 735px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 60px; }
.bn-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #e1b051; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.bn-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.bn-copy { max-width: 640px; padding: 68px 0; }
.bn-copy h1, .bn-section-title { margin: 18px 0 20px; font-family: "Noto Serif Thai", Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
.bn-copy h1 { max-width: 620px; font-size: clamp(3rem, 5.7vw, 5.15rem); line-height: 1.05; }
.bn-copy p { max-width: 530px; margin: 0; color: rgba(255,255,255,.83); font-size: 1.05rem; }
.bn-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 35px; }
.bn-secondary { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.65); padding-bottom: 3px; }
.bn-secondary::after { content: "→"; margin-left: 11px; color: #e1b051; }
.bn-proof { position: relative; padding: 31px 31px 27px; border: 1px solid rgba(224, 239, 237, .44); background: rgba(4, 43, 50, .63); box-shadow: 0 24px 58px rgba(0,0,0,.16); backdrop-filter: blur(10px); }
.bn-proof::before, .bn-proof::after { content: ""; position: absolute; width: 38px; height: 38px; border-color: rgba(224, 239, 237, .75); border-style: solid; pointer-events: none; }
.bn-proof::before { top: -9px; left: -9px; border-width: 1px 0 0 1px; }
.bn-proof::after { right: -9px; bottom: -9px; border-width: 0 1px 1px 0; }
.bn-proof h2 { margin: 0 0 20px; color: #e1b051; font-size: 1.36rem; }
.bn-proof-item { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid rgba(224,239,237,.22); }
.bn-proof-item:first-of-type { border-top: 0; }
.bn-proof-num { color: #e1b051; font-family: Georgia, serif; font-size: 1.4rem; }
.bn-proof-item strong { display: block; font-size: .98rem; }
.bn-proof-item p { margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: .84rem; line-height: 1.55; }

.bn-section { padding: 118px 0; }
.bn-process { background: #fff; }
.bn-section-head { max-width: 670px; margin: 0 auto 58px; text-align: center; }
.bn-section-title { font-size: clamp(2.15rem, 3.3vw, 3.5rem); line-height: 1.18; }
.bn-section-head p { margin: 0; color: var(--bn-muted); }
.bn-process-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); }
.bn-process-item { min-height: 246px; padding: 33px 40px 28px; position: relative; }
.bn-process-item + .bn-process-item { border-left: 1px solid var(--bn-line); }
.bn-process-num { color: var(--bn-gold); font-family: Georgia, serif; font-size: 2.35rem; }
.bn-process-item h3 { margin: 30px 0 10px; font-size: 1.08rem; }
.bn-process-item p { max-width: 280px; margin: 0; color: var(--bn-muted); font-size: .91rem; }
.bn-process-item:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; background: #fff; color: var(--bn-ink); font-size: 1.1rem; }

.bn-feature { padding: 0; overflow: hidden; background: var(--bn-ink-strong); color: #fff; }
.bn-feature-grid { min-height: 548px; display: grid; grid-template-columns: 45% 55%; }
.bn-feature-copy { position: relative; padding: 95px clamp(28px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.bn-feature-copy::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000); }
.bn-feature-copy > * { position: relative; z-index: 1; }
.bn-feature-copy h2 { margin: 17px 0 19px; max-width: 440px; font-family: "Noto Serif Thai", Georgia, serif; font-size: clamp(2rem, 3.3vw, 3.35rem); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.bn-feature-copy p { max-width: 410px; margin: 0; color: rgba(255,255,255,.75); }
.bn-feature-points { display: flex; gap: 25px; margin-top: 37px; }
.bn-feature-points div { max-width: 102px; color: #e1b051; font-size: .78rem; font-weight: 700; }
.bn-feature-points span { display: block; margin-bottom: 8px; color: #fff; font-family: Georgia, serif; font-size: 1.7rem; }
.bn-feature-image { min-height: 380px; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.bn-contact { background: #fff; }
.bn-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 10vw, 150px); align-items: end; border-top: 1px solid var(--bn-line); padding-top: 80px; }
.bn-contact .bn-section-title { margin-bottom: 12px; }
.bn-contact-copy { margin: 0; color: var(--bn-muted); }
.bn-contact-links { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-start; }
.bn-contact-links a { min-width: 204px; }
.bn-footer { padding: 38px 0; background: var(--bn-ink-strong); color: rgba(255,255,255,.68); font-size: .82rem; }
.bn-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.bn-footer .brand { color: #fff; }
.bn-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .bn-shell { width: min(var(--bn-max), calc(100% - 32px)); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .mobile-panel { display: grid; max-height: 0; overflow: hidden; padding: 0 16px; background: #fff; transition: max-height .3s ease, padding .3s ease; }
  .mobile-panel.open { max-height: 310px; padding: 8px 16px 18px; border-top: 1px solid var(--bn-line); }
  .mobile-panel a { padding: 12px 0; border-bottom: 1px solid var(--bn-line); font-weight: 700; }
  .bn-hero, .bn-hero-content { min-height: auto; }
  .bn-hero-content { grid-template-columns: 1fr; gap: 0; padding: 74px 0 45px; }
  .bn-copy { padding: 0; }
  .bn-proof { max-width: 560px; }
  .bn-section { padding: 80px 0; }
  .bn-process-list, .bn-contact-grid { grid-template-columns: 1fr; }
  .bn-process-item + .bn-process-item { border-left: 0; border-top: 1px solid var(--bn-line); }
  .bn-process-item { min-height: auto; padding: 28px 16px; }
  .bn-process-item:not(:last-child)::after { right: auto; top: auto; bottom: -12px; left: 31px; transform: rotate(90deg); }
  .bn-feature-grid { grid-template-columns: 1fr; }
  .bn-feature-copy { min-height: 420px; }
  .bn-feature-image { min-height: 360px; }
  .bn-contact-grid { gap: 32px; padding-top: 50px; }
}

@media (max-width: 560px) {
  .bn-nav { min-height: 66px; }
  .brand { font-size: 1.5rem; }
  .bn-hero-content { padding-top: 58px; }
  .bn-copy h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); }
  .bn-copy p { font-size: .97rem; }
  .bn-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .btn-primary { width: 100%; }
  .bn-proof { padding: 22px; }
  .bn-proof-item { padding: 15px 0; }
  .bn-section-head { margin-bottom: 35px; }
  .bn-feature-points { gap: 14px; }
  .bn-contact-links { display: grid; }
  .bn-footer-inner { align-items: flex-start; flex-direction: column; }
}

/* ============================================================
   Sections added 2026-08-10. The page had four sections against
   802–1405 lines on its sibling demos, and three of its four nav
   links pointed at something other than what they named: #services
   led to the process list, #projects to a standards blurb with no
   projects in it, #about to the footer. Those ids now belong to
   real sections; the process and standards blocks kept their content
   and took honest ids (#process, #standards).

   Existing tokens only — no new colours, no new radius.
   ============================================================ */

/* ---- services ---- */
.bn-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bn-line);
  border: 1px solid var(--bn-line);
}

.bn-service {
  padding: 32px 28px 34px;
  background: var(--bn-paper);
}

.bn-service-num {
  display: block;
  margin-bottom: 14px;
  color: var(--bn-gold);
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.bn-service h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif Thai", serif;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--bn-ink-strong);
}

.bn-service p { margin: 0 0 16px; color: var(--bn-muted); font-size: 0.95rem; }

.bn-service ul { margin: 0; padding: 0; list-style: none; }

.bn-service li {
  position: relative;
  padding: 6px 0 6px 20px;
  border-top: 1px solid var(--bn-line);
  color: var(--bn-ink);
  font-size: 0.9rem;
}

.bn-service li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--bn-gold);
}

/* ---- projects ---- */
.bn-projects { background: #ffffff; }

/* Two columns, not auto-fit. Four cards at minmax(300px, 1fr) landed three-up
   at 1280px and left the fourth alone on a row of its own — the same orphan
   that #compare grew on the industry pages. Two-up also keeps each photo big
   enough to read, which four-up does not. */
.bn-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 820px) {
  .bn-project-grid { grid-template-columns: minmax(0, 1fr); }
}

.bn-project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bn-line);
  background: var(--bn-paper);
}

.bn-project img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.bn-project-body { padding: 24px 24px 26px; }

.bn-project-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--bn-gold);
  color: var(--bn-gold-dark);
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bn-project h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif Thai", serif;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--bn-ink-strong);
}

.bn-project p { margin: 0 0 18px; color: var(--bn-muted); font-size: 0.93rem; }

.bn-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--bn-line);
}

.bn-project-meta dt {
  color: var(--bn-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.bn-project-meta dd {
  margin: 2px 0 0;
  color: var(--bn-ink-strong);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- about ---- */
.bn-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.bn-about-copy p { margin: 18px 0 0; color: var(--bn-muted); max-width: 56ch; }

.bn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  background: var(--bn-line);
  border: 1px solid var(--bn-line);
}

.bn-stats > div { padding: 18px 20px; background: var(--bn-paper); }
.bn-stats dt { color: var(--bn-muted); font-size: 0.78rem; }
.bn-stats dd {
  margin: 6px 0 0;
  font-family: "Noto Serif Thai", serif;
  font-size: 1.5rem;
  color: var(--bn-ink-strong);
}

.bn-about-figure { margin: 0; }
.bn-about-figure img { display: block; width: 100%; height: auto; }
.bn-about-figure figcaption {
  margin-top: 12px;
  color: var(--bn-muted);
  font-size: 0.85rem;
}

/* ---- coverage ---- */
.bn-coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-coverage-list li {
  padding: 9px 18px;
  border: 1px solid var(--bn-line);
  background: var(--bn-paper);
  color: var(--bn-ink);
  font-size: 0.93rem;
}

/* ---- faq ---- */
.bn-faq-list { border-top: 1px solid var(--bn-line); }

.bn-faq-item { border-bottom: 1px solid var(--bn-line); }

.bn-faq-item summary {
  padding: 20px 40px 20px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: "Noto Serif Thai", serif;
  font-size: 1.04rem;
  color: var(--bn-ink-strong);
}

.bn-faq-item summary::-webkit-details-marker { display: none; }

/* A plus that becomes a minus. Two bars, one rotated — no icon font, no SVG. */
.bn-faq-item summary::before,
.bn-faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--bn-gold);
  transition: transform 220ms ease;
}

.bn-faq-item summary::after { transform: rotate(90deg); }
.bn-faq-item[open] summary::after { transform: rotate(0deg); }

.bn-faq-item p {
  margin: 0;
  padding: 0 40px 22px 0;
  color: var(--bn-muted);
  max-width: 72ch;
}

/* ---- contact form ---- */
.bn-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bn-field { display: flex; flex-direction: column; gap: 6px; }
.bn-field-wide { grid-column: 1 / -1; }

.bn-field label {
  color: var(--bn-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.bn-field input,
.bn-field select,
.bn-field textarea {
  padding: 11px 13px;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  background: #ffffff;
  color: var(--bn-ink-strong);
  font: inherit;
  font-size: 0.95rem;
}

.bn-field textarea { resize: vertical; }

.bn-field input:focus-visible,
.bn-field select:focus-visible,
.bn-field textarea:focus-visible {
  outline: 2px solid var(--bn-gold);
  outline-offset: 1px;
}

.bn-form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bn-form-note { margin: 0; color: var(--bn-muted); font-size: 0.88rem; }
.bn-form-note a { color: var(--bn-ink-strong); font-weight: 600; }

.bn-form-status:empty { display: none; }
.bn-form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-left: 1px solid var(--bn-gold);
  background: var(--bn-paper);
  color: var(--bn-ink);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .bn-about-grid { grid-template-columns: minmax(0, 1fr); }
  .bn-form { grid-template-columns: minmax(0, 1fr); }
}
