:root {
  --bg: #f4f1ea;
  --panel: #ffffff;
  --ink: #1c2226;
  --muted: #454e54;
  --rule: #c9c5b8;
  --copper: #8b4513;
  --copper-hover: #6f370f;
  --forest: #2c4a43;
  --band: #1b2a2c;
  --bandtext: #f3f1ea;
  --accent: #8b4513;
  --accent-ink: #fff;
  --gate: #f0ece0;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: Lato, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191b;
    --panel: #1d2326;
    --ink: #ecebe5;
    --muted: #a3adb2;
    --rule: #2f383c;
    --band: #0d1314;
    --bandtext: #f3f1ea;
    --accent: #b85a46;
    --copper: #b85a46;
    --copper-hover: #d16b55;
    --forest: #4a756b;
    --gate: #262d28;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #15191b;
  --panel: #1d2326;
  --ink: #ecebe5;
  --muted: #a3adb2;
  --rule: #2f383c;
  --band: #0d1314;
  --bandtext: #f3f1ea;
  --accent: #b85a46;
  --copper: #b85a46;
  --copper-hover: #d16b55;
  --forest: #4a756b;
  --gate: #262d28;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(rgba(139, 69, 19, 0.035) 1px, transparent 0),
    radial-gradient(rgba(27, 42, 44, 0.02) 1px, transparent 0);
  background-size: 12px 12px, 18px 18px;
  background-position: 0 0, 6px 6px;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  border-bottom: 2px solid var(--copper);
  padding-bottom: 1rem;
}

.brand {
  font: 500 clamp(1.9rem, 5vw, 2.9rem)/1.15 var(--serif);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.005em;
}

.tag {
  font: 400 1.2rem/1.5 var(--serif);
  color: var(--muted);
  margin: 0 0 1.5rem;
}

nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0 0.6rem;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a:focus-visible {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--copper);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  letter-spacing: -0.01em;
}

.sub {
  font: 400 1.3rem/1.4 var(--serif);
  color: var(--muted);
  margin: 1rem 0 0;
}

.lede {
  font: 500 clamp(1.3rem, 2.9vw, 1.7rem)/1.3 var(--serif);
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--copper);
  text-wrap: balance;
}

.prose {
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

/* Two-Column Hero Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 3.5rem;
  align-items: start;
}

/* Right-Hand Profile Column Stack */
.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0;
}

.portrait-img {
  width: 100%;
  height: auto;
  max-height: 270px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(139, 69, 19, 0.25);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

.sig {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  line-height: 1.35;
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
}

.sig strong {
  font: 600 1.1rem var(--serif);
  display: block;
  color: var(--ink);
}

.sig span {
  color: var(--muted);
  font-size: 0.88rem;
}

.linkedin-link {
  font-size: 0.85rem;
  color: var(--forest);
  text-decoration: none;
  margin-top: 0.15rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.linkedin-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Action CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--copper);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2);
}

.cta-button:hover {
  background-color: var(--copper-hover);
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  font-size: clamp(1.7rem, 3.7vw, 2.2rem);
  margin-bottom: 1.75rem;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.card h3 {
  font-size: 1.45rem;
}

.card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.card h3 a:hover {
  text-decoration-color: var(--copper);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

dl {
  margin: 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  margin-top: auto;
}

dt {
  font-weight: 700;
  margin-top: 0.6rem;
}

dd {
  margin: 0;
  color: var(--muted);
}

.intro {
  margin: -0.75rem 0 1rem;
  color: var(--muted);
}

/* Stage Cards with Copper Top Accent and Pill Badges */
.card.stage {
  border-top: 3px solid var(--copper);
}

.stage h3 {
  font-size: 1.45rem;
}

.stage h3 small {
  display: inline-block;
  font: 700 0.75rem var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--copper) 12%, transparent);
  color: var(--copper);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.run {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.5rem 0 0;
}

.stage ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.98rem;
}

.stage li {
  margin-bottom: 0.4rem;
}

.gate {
  background: var(--gate);
  border-left: 3px solid var(--copper);
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
  margin-top: auto;
  border-radius: 0 3px 3px 0;
}

.gate b {
  display: block;
  margin-bottom: 0.2rem;
}

.cta {
  background: var(--band);
  color: var(--bandtext);
  padding: 2.5rem;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 3rem;
  align-items: center;
}

.cta .btns {
  grid-column: 2;
  grid-row: 1/3;
  flex-direction: column;
}

.cta h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta p {
  margin: 0;
  opacity: 0.9;
}

.btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid var(--copper);
}

.btn.p {
  background: var(--copper);
  color: var(--accent-ink);
}

.btn.s {
  color: var(--bandtext);
  border-color: rgba(243, 241, 234, 0.5);
}

.btn:hover {
  filter: brightness(1.12);
}

footer {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 3.5rem;
}

.soon {
  padding: 5rem 0;
  min-height: 40vh;
}

.soon p {
  color: var(--muted);
}

/* Inner Pages */
.page-title {
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  margin: 3rem 0 1.75rem;
}

.page section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.page .prose {
  max-width: none;
}

.photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.photos figure {
  margin: 0;
}

.ph {
  aspect-ratio: 1/1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px dashed var(--muted);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

.photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
}

.photos figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.photo-note {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.confidential {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
  max-width: 46rem;
}

.contact-form label {
  font-weight: 700;
  margin-top: 0.75rem;
}

.contact-form input, .contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 11rem;
  resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 1rem;
  font: 700 1rem var(--sans);
  cursor: pointer;
}

.emergency {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.emergency p {
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.qr-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.qr-item {
  text-align: center;
}

.qr-box {
  width: 160px;
  background: #ffffff;
  padding: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.qr-box img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-label {
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Services */
.jump {
  display: flex;
  gap: 0.6rem 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.5rem;
}

.jump a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.jump a:hover {
  text-decoration-color: var(--ink);
}

#architecture, #inspections, #verification {
  scroll-margin-top: 1.5rem;
}

.page h3.sub {
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  font-weight: 600;
  margin: 3.5rem 0 0.9rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}


.page .part-intro {
  font: 500 clamp(1.35rem, 2.8vw, 1.7rem)/1.35 var(--serif);
  color: var(--ink);
  margin: -0.5rem 0 1rem;
}

.deliver {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.deliver li {
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
}

.deliver b {
  display: block;
}

/* Borderless Outer Table Container */
.tablewrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-top: 1.25rem;
}

.tablewrap:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 60rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

th:last-child, td:last-child {
  border-right: 0;
}

thead th {
  background: var(--band);
  color: var(--bandtext);
  font-weight: 700;
  border-bottom: 2px solid var(--rule);
}

tbody th {
  font-weight: 700;
  width: 12rem;
}

tbody tr:last-child th, tbody tr:last-child td {
  border-bottom: 0;
}

td.na {
  color: var(--muted);
}

.sr {
  position: absolute;
  left: -9999px;
}

.note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.engage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.engage h4 {
  font: 500 1.5rem/1.2 var(--serif);
  margin: 0;
}

.engage .kicker {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.95rem;
  margin: -0.5rem 0 0;
}

.engage dl {
  border-top: 0;
  padding-top: 0;
  margin: 0;
  font-size: 1rem;
}

.engage dt {
  margin-top: 1rem;
}

.engage dd {
  color: var(--ink);
  margin: 0.2rem 0 0;
}

.engage dd ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.engage dd li {
  margin-bottom: 0.3rem;
}

.cta-end {
  margin-top: 3rem;
}

.sub-nav {
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
}

.sub-nav a {
  text-transform: capitalize;
}

.section-subheading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.heading-deliverables, .heading-engagement {
  font-size: 1.75rem;
  font-weight: 700;
}

.heading-alignment {
  font-size: 1.5rem;
  font-weight: 700;
  border-left: 4px solid var(--ink);
  padding-left: 0.5rem;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.deliverables-grid ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.alignment-table {
  width: 100%;
  border-collapse: collapse;
}

.alignment-table th, .alignment-table td {
  padding: 1rem;
  vertical-align: top;
}

.alignment-table .col-mekong {
  background-color: var(--panel);
}

.alignment-table .col-plant {
  background-color: var(--gate);
}

.deliver-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.deliver-cols .deliver {
  display: block;
  margin: 0;
  padding: 0;
}

.deliver-cols .deliver li {
  margin-bottom: 1.5rem;
}

.tablewrap tbody tr > :nth-child(n+4) {
  background: color-mix(in srgb, var(--copper) 7%, transparent);
}

.tablewrap thead th:nth-child(n+4) {
  background: var(--copper);
  color: #ffffff;
}

.tablewrap tr > :nth-child(4) {
  border-left: 3px solid var(--copper);
}

/* Responsive Overrides */
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .cta { padding: 1.75rem; grid-template-columns: 1fr; }
  .cta .btns { grid-column: 1; grid-row: auto; flex-direction: row; }
  .hero { padding-top: 2rem; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .deliver { grid-template-columns: 1fr; }
  .deliver-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-profile {
    max-width: 270px;
  }
}

@media (max-width: 640px) {
  .engage { grid-template-columns: 1fr; }
}
section {
  border-top: 2px solid var(--ink);
}


.photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.section-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-with-sidebar {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.sidebar-photos {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sidebar-photos figure {
  margin: 0;
}

.sidebar-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(139, 69, 19, 0.25);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

/* Unified Page Layout with Continuous Image Sidebar */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 270px;
  }
}

.about-layout .sidebar-photos {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  .about-layout .sidebar-photos {
    position: sticky;
    top: 2rem;
  }
}

