/* PT GBT Mitra Konstruksi
   Layout: "lembar gambar kerja" — 12-col sheet, hairline rules, title-block panels in mono,
   black + gold brand, one bold moment (hero) and quiet everything else. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* color */
  --paper: #ffffff;
  --paper-2: #f3f2ee;
  --ink: #17160f;
  --ink-2: #4f4b41;
  --line: #e2ded3;
  --gold: #b08a2e;
  --gold-ink: #7b5e17;
  --night: #141311;
  --night-2: #1f1d1a;
  --night-line: #34312b;
  --on-night: #f0ece2;
  --on-night-2: #b9b2a2;
  --gold-on-night: #d9b965;
  --grid: rgba(217, 185, 101, 0.07);
  --shadow: 0 1px 2px rgba(20, 19, 17, 0.06), 0 8px 24px -12px rgba(20, 19, 17, 0.18);
  --wa: #1f8f4e;
  --wa-ink: #ffffff;
  --focus: #b08a2e;
  --danger: #b3261e;

  /* type */
  --font-display: "Fraunces", Cambria, Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.1rem, 1.5rem + 2.2vw, 3.15rem);

  /* layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --paper-2: #1a1916;
    --ink: #ece8de;
    --ink-2: #aea896;
    --line: #2e2b26;
    --gold: #c9a24a;
    --gold-ink: #d9b965;
    --night: #0b0a09;
    --night-2: #171513;
    --night-line: #2e2b26;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --wa: #23a058;
    --danger: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1a1916;
  --ink: #ece8de;
  --ink-2: #aea896;
  --line: #2e2b26;
  --gold: #c9a24a;
  --gold-ink: #d9b965;
  --night: #0b0a09;
  --night-2: #171513;
  --night-line: #2e2b26;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --wa: #23a058;
  --danger: #ff8a80;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: #17160f; }
.btn-gold:hover { background: var(--gold-on-night); color: #17160f; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-ink); }
.on-night .btn-line:hover { color: var(--gold-on-night); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(1.08); color: var(--wa-ink); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding-block: 8px 20px;
}
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px var(--gutter); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--gold-ink); }
.site-nav .nav-cta { margin: 12px var(--gutter) 0; display: inline-flex; }
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; align-items: center; gap: 28px; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a { padding: 8px 12px; font-size: 0.95rem; position: relative; }
  .site-nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin: 0; min-height: 42px; padding: 9px 18px; }
}

/* ---------- night sections & blueprint grid ---------- */
.on-night { background: var(--night); color: var(--on-night); }
.on-night .eyebrow { color: var(--gold-on-night); }
.on-night .lead, .on-night .muted { color: var(--on-night-2); }
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--gold-on-night); }
.hero .lead { font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-figure { margin: 0; min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }

/* dimension line: a drafting annotation above the photo */
.dim { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-on-night); margin-bottom: 12px; border-inline: 1px solid currentColor; padding-block: 1px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.dim span { white-space: nowrap; }
.hero-photo { aspect-ratio: 16 / 10; width: 100%; max-width: 100%; object-fit: cover; border: 1px solid var(--night-line); }

/* title block (like the corner block of a construction drawing) */
.tblock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; font-size: var(--fs-sm); }
.tblock > div { padding: 10px 14px; border-right: 1px solid var(--line); min-width: 0; }
.tblock > div:last-child { border-right: 0; }
.tblock dt, .tblock .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.tblock dd, .tblock .v { margin: 2px 0 0; font-weight: 500; line-height: 1.35; }
.on-night .tblock { border-color: var(--night-line); }
.on-night .tblock > div { border-color: var(--night-line); }
.on-night .tblock .k { color: var(--gold-on-night); }
@media (max-width: 560px) {
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .on-night .tblock > div:first-child { border-bottom-color: var(--night-line); }
}

/* trust strip */
.trust { border-top: 1px solid var(--night-line); margin-top: clamp(40px, 5vw, 64px); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust li { padding: 18px 20px 18px 0; display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--on-night-2); }
.trust b { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-on-night); }
.trust span { color: var(--on-night); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: var(--fs-2xl); max-width: 22ch; }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gold-on-night); }
.crumbs a { text-decoration: none; color: var(--on-night-2); }
.crumbs a:hover { color: var(--gold-on-night); }
.crumbs [aria-current] { color: var(--on-night); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--paper-2); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head.split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 860px) { .section-head.split { grid-template-columns: 1fr auto; gap: 24px; } }
.section-head .link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--gold-ink); }
.section-head .link-more:hover { text-decoration: underline; }

/* stats: drafting scale bar */
.figures { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.figures li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.5vw, 28px); display: grid; gap: 6px; align-content: start; min-width: 0; }
.figures .n { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.figures .n sup { font-size: 0.45em; color: var(--gold-ink); vertical-align: super; margin-left: 2px; }
.figures .l { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 860px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* two-column text + media */
.split-2 { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-2 > * { min-width: 0; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1.1fr 1fr; } .split-2.rev { grid-template-columns: 1fr 1.1fr; } }
.prose { display: grid; gap: 16px; max-width: 65ch; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold) 50%, transparent 50%); }

.framed { margin: 0; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.framed figcaption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* services */
.services { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.service { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; align-content: start; }
.service .code { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold-ink); }
.service h3 { font-size: var(--fs-lg); }
.service p { color: var(--ink-2); font-size: 0.97rem; }
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .service { padding: 28px; border-right: 1px solid var(--line); }
}
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } .services.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* project cards */
.cards { list-style: none; display: grid; gap: clamp(20px, 2.5vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { min-width: 0; }
.card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-media { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: no-preference) { .card a:hover .card-media img { transform: scale(1.035); } }
.card-tag { position: absolute; left: 12px; top: 12px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--night); color: var(--gold-on-night); padding: 5px 9px; }
.card-body { padding-top: 16px; display: grid; gap: 6px; }
.card-body h3 { font-size: 1.28rem; }
.card a:hover h3 { color: var(--gold-ink); }
.card .tblock { margin-top: 10px; border-top: 1px solid var(--line); }
.card .tblock { grid-template-columns: 1.3fr 1fr; }
.card .tblock > div:first-child { grid-column: auto; border-right: 1px solid var(--line); border-bottom: 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; padding: 9px 16px; min-height: 40px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.year-group { display: grid; gap: 24px; }
.year-group + .year-group { margin-top: clamp(40px, 6vw, 72px); }
.year-label { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold-ink); }
.year-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year-label b { font-weight: 500; background: var(--night); color: var(--gold-on-night); padding: 6px 12px; font-variant-numeric: tabular-nums; }

/* process */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--night-line); }
.steps li { counter-increment: step; padding: 26px 0; border-bottom: 1px solid var(--night-line); display: grid; gap: 8px; min-width: 0; }
.steps li::before { content: "TAHAP " counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gold-on-night); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--on-night-2); font-size: 0.97rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--night-line); }
  .steps li { padding: 28px; border-right: 1px solid var(--night-line); }
}

/* regions */
.regions { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.regions li { border: 1px solid var(--line); padding: 8px 14px; font-size: var(--fs-sm); background: var(--paper); }
.regions li b { font-weight: 600; }

/* legal */
.legal-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc { border: 1px solid var(--line); background: var(--paper); padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.doc .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.doc .v { font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.doc p { color: var(--ink-2); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; background: var(--paper); }
table.data th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-on-night); background: var(--night); padding: 12px 14px; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
table.data td:first-child { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* org chart */
.org { display: grid; justify-items: center; gap: 0; padding-block: 8px; }
.org .node { border: 1px solid var(--line); background: var(--paper); padding: 12px 22px; text-align: center; font-weight: 600; font-size: var(--fs-sm); min-width: 180px; max-width: 100%; }
.org .node small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.org .node.top { background: var(--night); color: var(--on-night); border-color: var(--night); }
.org .node.top small { color: var(--gold-on-night); }
.org .stem { width: 1px; height: 26px; background: var(--gold); }
.org .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; padding-top: 26px; width: min(720px, 100%); }
.org .row::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 1px; background: var(--gold); }
.org .row > div { position: relative; display: grid; }
.org .row > div::before { content: ""; position: absolute; top: -26px; left: 50%; width: 1px; height: 26px; background: var(--gold); }
.org .row .node { min-width: 0; padding-inline: 10px; }
@media (max-width: 560px) { .org .row { grid-template-columns: 1fr; padding-top: 0; } .org .row::before, .org .row > div::before { display: none; } .org .row > div + div { margin-top: 10px; } }

/* vision */
.vision { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.25; font-weight: 500; max-width: 26ch; }
.vision::before { content: "“"; color: var(--gold-on-night); }
.vision::after { content: "”"; color: var(--gold-on-night); }
.missions { list-style: none; display: grid; gap: 18px; counter-reset: m; }
.missions li { counter-increment: m; display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--on-night-2); }
.missions li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-on-night); padding-top: 3px; border-top: 1px solid var(--gold-on-night); }

/* facts list */
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); padding-top: 4px; }
.facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* project detail */
.project-hero img { width: 100%; max-height: 640px; object-fit: cover; border: 1px solid var(--line); }
.project-meta { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .project-meta { grid-template-columns: 1.3fr 1fr; } }
.unit-list { list-style: none; border-top: 1px solid var(--line); }
.unit-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.unit-list .q { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--gold-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scope-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-tags li { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold-ink); padding: 6px 10px; }
.gallery { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--paper-2); cursor: zoom-in; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .note { position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--night); color: var(--gold-on-night); padding: 4px 8px; }
.pager { display: grid; gap: 16px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 28px; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } .pager .next { text-align: right; } }
.pager a { text-decoration: none; display: grid; gap: 4px; }
.pager small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.pager span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10, 9, 8, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 16px 24px; max-width: 1400px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: #d9d3c4; text-align: center; }
.lb-btn { position: fixed; background: rgba(20, 19, 17, 0.7); color: #f0ece2; border: 1px solid #4a463e; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--font-mono); font-size: 1.4rem; color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* contact */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.15fr 1fr; } }
.form { display: grid; gap: 18px; border: 1px solid var(--line); background: var(--paper); padding: clamp(20px, 3vw, 36px); min-width: 0; }
.form .row2 { display: grid; gap: 18px; }
@media (min-width: 620px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field label span { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--gold); }
.form-note { font-size: var(--fs-sm); color: var(--ink-2); }
.form-error { font-size: var(--fs-sm); color: var(--danger); font-weight: 600; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.contact-list .v { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* CTA band */
.cta-band { padding-block: clamp(56px, 7vw, 96px); }
.cta-band .wrap { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 22ch; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-actions .alt { font-size: var(--fs-sm); color: var(--on-night-2); }
.cta-actions .alt a { color: var(--on-night); }

/* footer */
.site-footer { background: var(--night-2); color: var(--on-night-2); padding-block: 64px 28px; font-size: var(--fs-sm); }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 40ch; }
.foot-brand img { width: 96px; }
.site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-on-night); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: var(--gold-on-night); }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 52px;
  background: var(--wa); color: var(--wa-ink); border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { color: var(--wa-ink); filter: brightness(1.08); }
.wa-float .t { display: none; }
@media (min-width: 720px) { .wa-float .t { display: inline; } }

/* 404 */
.notfound { padding-block: clamp(80px, 12vw, 160px); }
.notfound .wrap { display: grid; gap: 20px; justify-items: start; }
.notfound .code { font-family: var(--font-mono); color: var(--gold-on-night); letter-spacing: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* check marker (why / commitment / documents) */
.tick { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--gold); color: var(--gold-ink); }
.tick svg { width: 16px; height: 16px; }
.services.why .service { gap: 12px; }
.services.why .tick { margin-bottom: 4px; }
.commit-list, .doc-list { list-style: none; border-top: 1px solid var(--line); display: grid; column-gap: 32px; }
.commit-list li, .doc-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.commit-list li > span:last-child, .doc-list li > span:last-child { padding-top: 2px; }
.commit-list li { font-size: 1.02rem; }
@media (min-width: 760px) { .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .doc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
