/* =====================================================================
   Bachuma Industrial Park - site stylesheet
   Design authority: "Bachuma Industrial Park Style Guide" (v1, 2019)
     Gold  #AF924C   Brown #625144   Black #000000   Kraft backdrop #DAC6AB
     Type: Segoe UI family (Regular / Semi-bold / Bold); Helvetica, Arial, Geneva as alternates
   ===================================================================== */

:root {
  --gold: #AF924C;
  --gold-deep: #6F5824;      /* gold for small text on light backgrounds (AA contrast) */
  --gold-light: #CDB783;
  --brown: #625144;
  --brown-dark: #2B231D;
  --brown-mid: #473B31;
  --black: #000;
  --kraft: #DAC6AB;
  --kraft-light: #ECE0CC;
  --ivory: #F7F2E9;
  --paper: #fff;
  --ink: #2B231D;
  --muted: #6A5D52;
  --line: rgba(98, 81, 68, .22);
  --ok: #3F6B3A;
  --warn: #8A5A12;
  --err: #9B2C20;

  --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(43, 35, 29, .06), 0 10px 30px -12px rgba(43, 35, 29, .25);
  --header-h: 76px;

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44' viewBox='0 0 88 44'%3E%3Cpath d='M0 34 44 12l44 22' fill='none' stroke='%23AF924C' stroke-opacity='.10' stroke-width='7'/%3E%3C/svg%3E");
  --chevron-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44' viewBox='0 0 88 44'%3E%3Cpath d='M0 34 44 12l44 22' fill='none' stroke='%23AF924C' stroke-opacity='.075' stroke-width='6'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .27 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink);
  background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; color: var(--brown-dark); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--gold); color: #1d1814; padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(43, 35, 29, .96);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(175, 146, 76, .55);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-size: 1.25rem; letter-spacing: .16em; font-weight: 800; }
.brand-text i { font-style: normal; font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-light); margin-top: .35em; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.nav a:not(.btn) { color: #f1e8d8; text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .02em; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: #fff; border-bottom-color: var(--gold); }
.nav-signout { margin: 0; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: inherit; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1.1; letter-spacing: .02em; transition: background .18s, color .18s, border-color .18s, transform .18s; min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.075rem; min-height: 54px; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; min-height: 40px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #1d1814; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #1d1814; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(205, 183, 131, .8); }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: #1d1814; }
.btn-outline-dark { background: transparent; color: var(--brown-dark); border-color: var(--brown); }
.btn-outline-dark:hover { background: var(--brown); color: #fff; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brown); color: var(--brown-dark); }
.btn small { font-weight: 500; opacity: .8; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--brown-dark); overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 40%; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(43, 35, 29, .94) 0%, rgba(43, 35, 29, .78) 45%, rgba(43, 35, 29, .35) 100%),
    linear-gradient(0deg, rgba(43, 35, 29, .85) 0%, rgba(43, 35, 29, 0) 40%);
}
.hero-media { z-index: -2; filter: sepia(.35) saturate(.85) contrast(1.02); }
.hero-in { padding-block: clamp(4.5rem, 12vh, 8.5rem) clamp(7rem, 15vh, 10rem); max-width: var(--wrap); }
.hero-in > * { max-width: 46rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold); flex: none; }
.eyebrow-dark { color: var(--gold-deep); }
.section-kraft .eyebrow-dark { color: var(--brown-dark); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: .55em; }
.hero-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #eadfcc; line-height: 1.55; max-width: 38rem; margin-bottom: 2rem; }
.hero-cta { margin: 0 0 2.6rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; }
.hero-facts li { border-left: 3px solid var(--gold); padding-left: .9rem; display: grid; }
.hero-facts b { font-size: 1.35rem; letter-spacing: -.01em; }
.hero-facts span { font-size: .85rem; color: #d8cbb4; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 64px); background: var(--ivory); clip-path: polygon(0 100%, 50% 0, 100% 100%); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.section-tint { background: var(--kraft-light); }
.section-dark { background: var(--brown-dark); color: #e8dcc6; background-image: var(--chevron-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-kraft { background-color: var(--kraft); background-image: var(--grain), var(--chevron); background-blend-mode: multiply, normal; }
.section-head { max-width: 44rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: #cdbfa8; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lead-text { font-size: 1.2rem; color: var(--brown-dark); line-height: 1.6; }
.split-media { margin: 0; position: relative; }
.split-media::before { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border: 2px solid var(--gold); z-index: 0; border-radius: var(--radius); }
.split-media picture, .split-media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); filter: sepia(.18) saturate(.92); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; position: relative; z-index: 1; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: var(--paper); padding: 1.9rem 1.6rem 1.7rem; border-top: 4px solid var(--gold); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
.card h3 { font-size: 1.2rem; margin-bottom: .55em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; background: var(--brown-dark); color: var(--gold-light); border-radius: 50%; margin-bottom: 1.1rem; }
.card-ico .ico { width: 1.45rem; height: 1.45rem; }

/* snapshot */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 2.5rem; background: rgba(205, 183, 131, .28); border: 1px solid rgba(205, 183, 131, .28); }
.stat { background: var(--brown-dark); padding: 1.7rem 1.6rem; }
.stat dt { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: .6rem; }
.stat dd { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 600; color: #fff; }
.chips-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: .9rem; }
.chips { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1px solid rgba(205, 183, 131, .55); padding: .45rem .95rem; border-radius: 999px; font-size: .92rem; color: #f1e8d8; }
.portal-hint { display: flex; gap: .7rem; align-items: flex-start; color: #cdbfa8; margin: 0; font-size: 1rem; }
.portal-hint a { color: var(--gold-light); font-weight: 600; }
.portal-hint .ico { margin-top: .25rem; color: var(--gold); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-intro p { color: var(--brown-dark); }
.mail-line { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; margin: 1.4rem 0 !important; }
.mail-line a { color: var(--brown-dark); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.mail-line .ico { color: var(--gold-deep); width: 1.5rem; height: 1.5rem; }
.small { font-size: .92rem; color: var(--brown); }
.contact-form, .form-card { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); border-top: 4px solid var(--brown); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; color: var(--brown-dark); }
.req { color: var(--err); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9a998; border-radius: var(--radius);
  padding: .8rem .9rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
input:hover, select:hover, textarea:hover { border-color: var(--brown); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(175, 146, 76, .35); }
.field-invalid input, .field-invalid textarea, .field-invalid select { border-color: var(--err); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--brown); flex: none; }
.form-actions { display: flex; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.alert { padding: .85rem 1rem; border-radius: var(--radius); font-weight: 600; margin-bottom: 1.2rem; border-left: 4px solid; }
.alert-ok { background: #edf4ea; border-color: var(--ok); color: #254021; }
.alert-error { background: #fbeceb; border-color: var(--err); color: #6d1d14; }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - var(--header-h) - 260px); display: grid; place-items: center; padding: 3rem var(--gutter); background-color: var(--kraft); background-image: var(--grain), var(--chevron); background-blend-mode: multiply, normal; }
.login-card { width: min(100%, 27rem); background: #fff; padding: 2.4rem 2rem 2rem; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.login-card > img { margin: 0 auto 1rem; width: 108px; }
.login-card h1 { font-size: 1.8rem; margin-bottom: .4em; }
.login-lead { color: var(--muted); font-size: 1rem; }
.login-card form { text-align: left; margin-top: 1.4rem; }
.login-card .field { margin-bottom: 1.1rem; }
.pw-row { position: relative; }
.pw-row input { padding-right: 4.6rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: var(--brown); cursor: pointer; padding: .5rem .6rem; }
.login-help, .login-back { font-size: .92rem; color: var(--muted); margin: 1.2rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-dark); color: #cdbfa8; padding-top: 3.4rem; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; }
.foot-brand img { width: 88px; margin-bottom: 1rem; }
.foot-brand p { max-width: 24rem; font-size: .96rem; }
.foot-col h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .96rem; }
.site-footer a { color: #e8dcc6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid rgba(205, 183, 131, .22); padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .88rem; }
.legal p { margin: 0; }

/* ---------- inner page banner ---------- */
.page-banner { background: var(--brown-dark) var(--chevron-dark); color: #fff; padding-block: clamp(2.4rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 4px solid var(--gold); position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: .35em; }
.page-banner .lead { color: #dccfb8; font-size: 1.15rem; max-width: 46rem; margin-bottom: 1rem; }
.page-banner-lg { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.crumbs { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.confid { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #e8dcc6; border: 1px solid rgba(205, 183, 131, .5); padding: .35rem .8rem; border-radius: 999px; }
.confid .ico { color: var(--gold); }

/* ---------- portal ---------- */
.portal-layout { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.6rem 4.5rem; align-items: start; }
.portal-side { position: sticky; top: calc(var(--header-h) + 1.2rem); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); padding: 1.1rem .7rem; box-shadow: var(--shadow); }
.side-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; padding: 0 .7rem; margin-bottom: .6rem; }
.portal-side ul { list-style: none; padding: 0; margin: 0; }
.portal-side a { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; text-decoration: none; color: var(--brown-dark); font-size: .95rem; font-weight: 600; border-radius: var(--radius); line-height: 1.25; }
.portal-side a .ico { color: var(--gold-deep); }
.portal-side a:hover { background: var(--kraft-light); }
.portal-side a[aria-current="page"] { background: var(--brown-dark); color: #fff; }
.portal-side a[aria-current="page"] .ico { color: var(--gold-light); }
.portal-content { background: #fff; padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); border-radius: var(--radius); min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.4rem; padding-bottom: .55rem; position: relative; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 3px; background: var(--gold); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; color: var(--brown); }
.prose p, .prose li { max-width: 70ch; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--gold); clip-path: polygon(0 100%, 50% 0, 100% 100%, 50% 62%); transform: rotate(90deg); }
.two-col { columns: 2; column-gap: 2.4rem; } .two-col li { break-inside: avoid; }
.source { font-size: .85rem; color: var(--muted); font-style: italic; }
.note { background: var(--kraft-light); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; font-size: .92rem; color: var(--brown-dark); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 2.4rem; max-width: none !important; }
.pull { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 5px solid var(--gold); background: var(--ivory); font-size: 1.15rem; line-height: 1.55; color: var(--brown-dark); font-weight: 600; }
.figure { margin: 2rem 0; }
.figure img { width: 100%; border-radius: var(--radius); filter: sepia(.18) saturate(.92); }
.figure figcaption { margin-top: .6rem; }
.film { margin: 1.4rem 0 2rem; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 4px solid var(--gold); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0 .6rem; }
.gallery .figure { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--brown-dark); color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; border: 0; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--brown-dark); }
tbody tr:nth-child(even) { background: #faf6ee; }
tbody tr:last-child > * { border-bottom: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.badge-done { background: #e3efde; color: #25511f; }
.badge-part { background: #f6ecd0; color: #6b4d08; }
.badge-wip { background: #e6e9f2; color: #2c3d73; }
.badge-pend { background: #f3dfdb; color: #7a2418; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.4rem; }
.kpis-inline { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin-block: 1.2rem; }
.kpi { background: var(--brown-dark); color: #e8dcc6; padding: 1.2rem 1.2rem 1.1rem; border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.kpi dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: .45rem; }
.kpi dd { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
.kpi small { display: block; margin-top: .5rem; font-size: .8rem; line-height: 1.4; color: #cdbfa8; }
.portal-home-wrap { padding-block: 2.6rem 4rem; }
.section-title { font-size: 1.6rem; margin-bottom: 1.3rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1rem; }
.tile { display: flex; flex-direction: column; background: #fff; padding: 1.6rem; text-decoration: none; color: inherit; border-top: 4px solid var(--gold); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 2px 4px rgba(43, 35, 29, .08), 0 18px 36px -14px rgba(43, 35, 29, .35); }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--muted); font-size: .96rem; flex: 1; }
.tile-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--gold-deep); font-size: .92rem; }

.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0; }
.facility { border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 1.3rem 1.4rem 1rem; background: #fffdf9; border-radius: 0 var(--radius) var(--radius) 0; }
.facility h3 { margin: 0 0 .8rem; font-size: 1.1rem; color: var(--brown-dark); display: flex; align-items: center; gap: .6rem; }
.facility h3 .ico { color: var(--gold-deep); width: 1.4rem; height: 1.4rem; }
.facility ul { margin: 0; padding-left: 1.1rem; font-size: .96rem; }
.facility li { margin-bottom: .4rem; }

.timeline { list-style: none; padding: 0 0 0 1.8rem; margin: 1.4rem 0; border-left: 3px solid var(--gold); }
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.8rem - 9px); top: .25rem; width: 15px; height: 15px; background: var(--brown-dark); border: 3px solid var(--gold); border-radius: 50%; }
.timeline h3 { margin: 0 0 .4rem; color: var(--brown-dark); }
.timeline h3 small { font-weight: 600; font-size: .85rem; color: var(--gold-deep); margin-left: .6rem; letter-spacing: .05em; }
.timeline .mini { font-size: .9rem; color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.2rem 0 2rem; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; align-items: center; background: var(--ivory); padding: .9rem 1.1rem; border-radius: var(--radius); max-width: none; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brown-dark); color: var(--gold-light); font-weight: 800; }
.steps li span { color: var(--muted); font-size: .94rem; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; background: var(--brown-dark); color: #e8dcc6; padding: 1.6rem 1.8rem; border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 2rem; }
.cta-band h3 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin: 1.2rem 0; }
.pillar { padding: 1.3rem; background: var(--ivory); border-radius: var(--radius); border-top: 3px solid var(--gold); }
.pillar h3 { margin: 0 0 .4rem; color: var(--brown-dark); font-size: 1.08rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.people { display: grid; gap: 1.3rem; margin: 1.2rem 0 1.6rem; }
.person { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: #fffdf9; }
.avatar { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--brown-dark); color: var(--gold-light); font-size: 2.2rem; font-weight: 800; letter-spacing: .04em; border: 3px solid var(--gold); }
.person h3 { margin: 0 0 .15rem; font-size: 1.35rem; color: var(--brown-dark); }
.person-title { font-weight: 700; color: var(--gold-deep); margin-bottom: .2rem; }
.person-also { color: var(--muted); font-size: .95rem; }
.pending { color: var(--muted); font-style: italic; }
.empty-state { display: flex; gap: .8rem; align-items: flex-start; background: var(--ivory); padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px dashed #b9a998; color: var(--brown); }
.docs { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .8rem; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; max-width: none !important; }
.doc-ico { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--brown-dark); color: var(--gold-light); border-radius: var(--radius); }
.doc h3 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--brown-dark); }
.doc p { margin: 0; color: var(--muted); font-size: .92rem; }
.doc-off .doc-ico { background: #cfc3b3; color: #fff; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1rem; }
.c-card { background: var(--ivory); padding: 1.4rem; border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.c-card h3 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--brown-dark); }
.c-card p { margin: 0 0 .25rem; font-weight: 600; }
.c-card a { color: var(--brown-dark); }
.prose .form-card { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--brown); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pager a { display: grid; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--brown-dark); font-weight: 700; max-width: 48%; }
.pager a:hover { border-color: var(--gold); background: var(--ivory); }
.pager small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pager-next { margin-left: auto; text-align: right; }
.legal-wrap { padding-block: 2.6rem 4.5rem; }
.legal-wrap .prose { max-width: 50rem; margin-inline: auto; background: #fff; padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); border-radius: var(--radius); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brown-dark); padding: .6rem var(--gutter) 1.4rem; border-bottom: 3px solid var(--gold);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid rgba(205, 183, 131, .2); font-size: 1.05rem; }
  .nav .btn, .nav-signout .btn { margin-top: 1rem; width: 100%; }
  .nav-signout { width: 100%; }
  html:not(.js) .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: .5rem 0; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { max-width: 36rem; }
  .portal-layout { grid-template-columns: minmax(0, 1fr); padding-top: 1.6rem; }
  .portal-side { min-width: 0; }
  .portal-side { position: static; padding: .6rem; border-top-width: 3px; }
  .portal-side .side-label { display: none; }
  .portal-side ul { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
  .portal-side li { flex: none; }
  .portal-side a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .facility-grid, .pillars, .cols-2, .gallery { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards, .kpis, .tiles, .stats, .form-grid { grid-template-columns: 1fr; }
  .split-media::before { inset: .7rem -.5rem -.7rem .7rem; }
  .brand-text i { letter-spacing: .26em; }
  .brand img { width: 44px; }
  .hero-in { padding-block: 3.5rem 6.5rem; }
  .hero-facts { gap: 1rem 1.6rem; }
  .two-col { columns: 1; }
  .person { grid-template-columns: 1fr; text-align: left; }
  .avatar { width: 5.5rem; height: 5.5rem; font-size: 1.7rem; }
  .doc { grid-template-columns: auto 1fr; }
  .doc .btn { grid-column: 1 / -1; }
  .pager { flex-direction: column; } .pager a { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .portal-content { padding: 1.2rem; }
  th, td { padding: .65rem .7rem; }
}

/* ---------- print (portal pages become clean briefing documents) ---------- */
@media print {
  .site-header, .portal-side, .pager, .nav-toggle, .skip-link, .form-card, .cta-band, .hero-edge, .site-footer .foot-col { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-banner { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .page-banner h1, .page-banner .lead, .crumbs, .confid { color: #000 !important; }
  .portal-layout { display: block; padding: 0; }
  .portal-content { box-shadow: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  table, .facility, .kpi { break-inside: avoid; }
  .kpi { background: #fff; color: #000; border: 1px solid #000; } .kpi dd, .kpi dt, .kpi small { color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
}
