/* Phuket Soil
   Shared styles for the Thai (/) and English (/en/) pages.
   The page reads as a borehole: each band below the hero is one soil layer,
   so backgrounds darken from surface quartz down to granite bedrock. */

:root {
  /* Layer backgrounds, surface to bedrock */
  --quartz: #F3F4F1;
  --sand: #ECE8DF;
  --clay: #E2DCD0;
  --clayey-sand: #D8CFBE;
  --laterite-deep: #3A2620;
  --granite-deep: #2B3133;
  --granite-deeper: #242A2C;
  --bedrock: #1C2224;
  --bedrock-floor: #151A1C;

  --ink: #1C2427;
  --ink-muted: #4E5756;
  --mist: #EEF0EC;
  --mist-muted: #B4B9B5;
  --paper: #FAFAF7;
  --andaman: #0D5C6B;
  --andaman-deep: #08434E;
  --aqua: #8FD0D8;
  --aqua-light: #B9E3E8;

  --font-display: "Bai Jamjuree", "Anuphan", system-ui, sans-serif;
  --font-body: "Anuphan", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: 16px;
  --rail-w: 0px;
  --maxw: 1160px;
  --header-h: 64px;

  /* Light-layer tokens; dark layers override them below */
  --bg: var(--quartz);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --line: rgba(28, 36, 39, .16);
  --link: var(--andaman);
  --focus: var(--andaman);
  --cta-bg: var(--andaman);
  --cta-fg: #fff;
  --cta-hover: var(--andaman-deep);
  --error: #B3261E;

  /* Irregular geological contact between two layers */
  --contact: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9C70 5 140 12 230 8s170-6 250 1 170 7 250 0 180-6 270 2 130 3 200-2V18H0z'/%3E%3C/svg%3E");
  /* Feldspar and mica flecks for the granite layers */
  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='%23fff' fill-opacity='.07'%3E%3Ccircle cx='14' cy='22' r='1.1'/%3E%3Ccircle cx='61' cy='9' r='.7'/%3E%3Ccircle cx='97' cy='48' r='1.3'/%3E%3Ccircle cx='150' cy='31' r='.8'/%3E%3Ccircle cx='38' cy='88' r='.9'/%3E%3Ccircle cx='121' cy='102' r='1.2'/%3E%3Ccircle cx='170' cy='140' r='.7'/%3E%3Ccircle cx='72' cy='151' r='1'/%3E%3Ccircle cx='9' cy='166' r='.8'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.22'%3E%3Ccircle cx='33' cy='47' r='1.4'/%3E%3Ccircle cx='84' cy='29' r='1'/%3E%3Ccircle cx='132' cy='66' r='1.6'/%3E%3Ccircle cx='166' cy='92' r='1'/%3E%3Ccircle cx='57' cy='121' r='1.3'/%3E%3Ccircle cx='104' cy='162' r='1.1'/%3E%3Ccircle cx='147' cy='174' r='.9'/%3E%3Ccircle cx='18' cy='134' r='1'/%3E%3C/g%3E%3C/svg%3E");

  interpolate-size: allow-keywords;
}

[data-tone="dark"],
.menu-panel,
.action-bar {
  --fg: var(--mist);
  --fg-muted: var(--mist-muted);
  --line: rgba(238, 240, 236, .16);
  --link: var(--aqua);
  --focus: var(--aqua);
  --cta-bg: var(--aqua);
  --cta-fg: #0B2A30;
  --cta-hover: var(--aqua-light);
  --error: #F2A493;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--quartz);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--quartz);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html:lang(en) body { line-height: 1.6; }
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.3rem + 3.9vw, 4.375rem); line-height: 1.22; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 3rem); line-height: 1.26; }
h3 { font-size: 1.375rem; line-height: 1.4; font-weight: 600; }
html:lang(en) h1 { line-height: 1.06; letter-spacing: -.02em; }
html:lang(en) h2 { line-height: 1.12; letter-spacing: -.012em; }

p { margin: 0 0 1em; max-width: 68ch; }
.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--fg-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--aqua); color: #0B2A30; }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --rail-w: 76px; }
  .container { width: min(100% - 2 * (var(--gutter) + var(--rail-w)), var(--maxw)); }
}

/* Let grid children shrink below their content width, so wide tables scroll inside .table-wrap */
.hero__grid > *, .svc-lead > *, .svc-grid > *, .spt-layout > *, .ground-grid > *,
.projects > *, .report > *, .faq > *, .quote > * { min-width: 0; }

.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: 16px; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--andaman);
  color: #fff;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.i {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--solid { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .i { width: 18px; height: 18px; }

.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--ghost {
  color: var(--fg);
  border-color: color-mix(in srgb, currentColor 32%, transparent);
}
.btn--ghost:hover { border-color: currentColor; }
.btn--quiet {
  color: var(--fg);
  background: color-mix(in srgb, currentColor 7%, transparent);
}
.btn--quiet:hover { background: color-mix(in srgb, currentColor 13%, transparent); }
.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  color: var(--fg);
  background-color: var(--hdr-bg, var(--quartz));
  border-bottom: 1px solid var(--hdr-line, rgba(28, 36, 39, .08));
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background-color: color-mix(in srgb, var(--hdr-bg, var(--quartz)) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
}
.site-header[data-tone="dark"] { --hdr-line: rgba(238, 240, 236, .08); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 32px; height: 32px; flex: none; }

.nav { display: none; }
.nav ul {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: .625rem 0;
  color: inherit;
  font-size: .9375rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.nav a:hover { background-size: 100% 1px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-left: auto;
}

.hdr-depth {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-inline: .5rem;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hdr-depth .i { width: 8px; height: 8px; color: var(--link); }

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  color: inherit;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.lang-link:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.header-cta { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-btn .i { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 379px) {
  .hdr-depth { display: none; }
}
@media (min-width: 640px) {
  .header-cta { display: inline-flex; margin-left: .375rem; }
}
@media (min-width: 1100px) {
  .hdr-depth { display: none; }
}
@media (min-width: 1280px) {
  .nav { display: block; margin-left: auto; }
  .header-actions { margin-left: 1.5rem; }
  .menu-btn { display: none; }
}

/* ---------- Mobile menu ---------- */

.menu-panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bedrock);
  color: var(--fg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s, transform .45s var(--ease-out), visibility 0s linear .45s;
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .45s var(--ease-out), visibility 0s;
}
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel ul a {
  display: block;
  padding: .875rem 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  text-decoration: none;
}
.menu-panel__actions { display: grid; gap: .75rem; }

/* ---------- Depth rail (desktop) ---------- */

.depth-rail { display: none; }

@media (min-width: 1100px) {
  .depth-rail {
    display: block;
    position: fixed;
    z-index: 30;
    left: 0;
    top: var(--header-h);
    bottom: 0;
    width: var(--rail-w);
    pointer-events: none;
  }
  /* Difference blending keeps the scale legible over light and dark layers */
  .rail-scale {
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    bottom: 200px;
    color: #fff;
    mix-blend-mode: difference;
  }
  .rail-scale::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: currentColor;
    opacity: .4;
  }
  .rail-tick {
    position: absolute;
    left: 32px;
    width: 4px;
    height: 1px;
    background: currentColor;
    opacity: .5;
  }
  .rail-tick--major { left: 28px; width: 8px; opacity: .85; }
  .rail-label {
    position: absolute;
    right: 52px;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    opacity: .9;
  }
  .rail-marker {
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    height: 0;
    color: var(--link);
    will-change: transform;
  }
  .rail-marker::before {
    content: "";
    position: absolute;
    left: 25px;
    top: -1px;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .rail-depth {
    position: absolute;
    left: 49px;
    top: -9px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .rail-unit {
    position: absolute;
    left: 49px;
    top: 6px;
    font-size: 10px;
    line-height: 1;
  }
  .rail-stratum {
    position: absolute;
    left: 26px;
    bottom: 28px;
    height: 160px;
    color: var(--fg);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: color .5s;
  }
}

/* ---------- Layer bands ---------- */

.band {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  background-color: var(--bg);
  color: var(--fg);
}
.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -17px;
  height: 18px;
  background-color: var(--bg);
  -webkit-mask: var(--contact) repeat-x 0 0 / 1200px 18px;
  mask: var(--contact) repeat-x 0 0 / 1200px 18px;
  pointer-events: none;
}
.band[data-tone="dark"] { background-image: var(--speckle); }

.band--sand { --bg: var(--sand); }
.band--clay { --bg: var(--clay); }
.band--clayey { --bg: var(--clayey-sand); }
.band--laterite { --bg: var(--laterite-deep); }
.band--granite { --bg: var(--granite-deep); }
.band--granite-deeper { --bg: var(--granite-deeper); }
.band--bedrock { --bg: var(--bedrock); }

.band__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}
.band__head h2 { margin-bottom: 1rem; }
.band__head .lede { margin: 0; }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  padding-bottom: clamp(4rem, 3rem + 5vw, 7.5rem);
}
.hero::before { content: none; }

/* ---------- Article pages (price, Phang Nga) ---------- */

.page-hero { padding-top: clamp(2rem, 1.25rem + 3vw, 4.5rem); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.page-hero::before { content: none; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
.page-hero .lede { margin-bottom: 2rem; }
.page-hero .hero__actions { margin-bottom: 0; }

.crumbs { margin-bottom: 1.75rem; color: var(--fg-muted); font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: inherit; }

.prose { max-width: 46rem; }
/* On a container, keep the container's width and left edge; only its children get the reading measure */
.container.prose { max-width: none; }
.container.prose > * { max-width: 46rem; }
.prose > h2 { margin: clamp(3rem, 2rem + 2.5vw, 4.5rem) 0 1rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.prose > h2:first-child { margin-top: 0; }
.prose > ul:not([class]) { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose > ul:not([class]) li { margin-bottom: .45rem; }

.factors { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.factors li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.factors li:last-child { border-bottom: 1px solid var(--line); }
.factors h3 { margin-bottom: .35rem; font-size: 1.1875rem; }
.factors p { margin: 0; color: var(--fg-muted); }

.prose .ref-table { margin: 1.5rem 0 .75rem; }
.prose .ref-table td:first-child { width: auto; font-family: var(--font-body); }
.prose .ref-table td:last-child, .prose .ref-table th:last-child { text-align: right; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.table-note { color: var(--fg-muted); font-size: .875rem; }

.prose .gallery { margin: 2rem 0 0; }
.prose .worklist { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .prose .worklist { grid-template-columns: 1fr; }
}

.cta-band .band__head { margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.notfound { display: grid; align-items: center; min-height: 100vh; }
.notfound::before { content: none; }
.notfound h1 { margin-bottom: 1.25rem; }
.notfound .lede { margin-bottom: .75rem; }
.notfound .hero__actions { margin: 2rem 0 0; }

.hero__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
.hero__copy { container-type: inline-size; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .phrase { display: block; }
/* Thai has no word spaces, so size the headline to keep each phrase on one line */
html:lang(th) .hero h1 { font-size: clamp(2rem, 10cqi, 4.375rem); }
.hero .lede { margin-bottom: 2.25rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 38rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--fg-muted); font-size: .8125rem; line-height: 1.45; }
.facts dd {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero__log { position: relative; margin: 0; }
.log {
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 560;
  max-height: 74vh;
  overflow: visible;
}
.log text {
  font-family: var(--font-display);
  font-size: 11px;
  fill: var(--fg-muted);
}
.log .log-title { font-size: 12px; fill: var(--fg); }
.log-axis line { stroke: var(--fg); stroke-opacity: .45; }
.log-grid line { stroke: var(--fg); stroke-opacity: .12; stroke-dasharray: 2 3; }
.log-frame { fill: none; stroke: var(--fg); stroke-opacity: .55; }
.log-surface { stroke: var(--fg); stroke-width: 1.25; }
.log-water line { stroke: var(--andaman); stroke-dasharray: 4 3; }
.log-water path { fill: var(--andaman); }
.log .log-water text { fill: var(--andaman); }
.rig-frame { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: round; }
.rig-guide { stroke: var(--fg); stroke-opacity: .5; }
.rig-anvil { fill: var(--fg); }
.rig-hammer { fill: var(--andaman); transform-box: fill-box; }
.log.is-driving .rig-hammer { animation: hammer .34s cubic-bezier(.55, 0, 1, .45) infinite; }
@keyframes hammer {
  0%, 100% { transform: translateY(-4px); }
  45%, 60% { transform: translateY(12px); }
}
.log-bore-halo { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.log-bore { stroke: var(--quartz); stroke-width: 2; stroke-linecap: round; }
.log-line { fill: none; stroke: var(--andaman); stroke-width: 2; stroke-linejoin: round; }
.log-pt {
  fill: var(--quartz);
  stroke: var(--andaman);
  stroke-width: 2;
  opacity: 0;
  transform: scale(.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .25s, transform .4s var(--ease-out);
}
.log-pt.is-on { opacity: 1; transform: none; }
.log .log-refusal { fill: var(--fg); opacity: 0; transition: opacity .3s; }
.log .log-refusal.is-on { opacity: 1; }
.log-core { opacity: 0; transition: opacity .5s; }
.log-core.is-on { opacity: 1; }
.log-core path { fill: none; stroke: var(--fg); }
.log .log-core text { fill: var(--fg); }

.log__readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.log__readout > div { display: grid; gap: .1rem; }
.log__stratum { grid-column: 1 / 3; }
.log__k { color: var(--fg-muted); font-size: .75rem; line-height: 1.4; }
.log__v {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.log__replay { grid-column: 3; justify-self: end; align-self: center; }

/* ---------- Services ---------- */

.svc-lead {
  display: grid;
  gap: 2.5rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .svc-lead { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4.5rem; }
}
.svc-lead h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
}
.svc-lead h4 {
  margin: 2rem 0 .75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.svc-icon { width: 44px; height: 44px; margin-bottom: 1.25rem; color: var(--andaman); }
.svc-icon * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.includes {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.includes li { position: relative; padding-left: 1.5rem; }
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--andaman);
  border-radius: 1px;
}

.spec { display: grid; margin: 0; align-self: start; }
.spec div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 40%) 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--fg-muted); font-size: .875rem; line-height: 1.5; }
.spec dd { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.45; }

.svc-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.svc-grid h3 { margin-bottom: .75rem; }
.svc-grid p { margin: 0; }
.svc-grid .std { margin-top: 1rem; color: var(--fg-muted); font-size: .875rem; line-height: 1.6; }

/* ---------- SPT explained ---------- */

.spt-layout { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 1000px) {
  .spt-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
}

.seq {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seq;
}
.seq li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  counter-increment: seq;
}
.seq li::before {
  content: counter(seq);
  grid-row: span 2;
  color: var(--andaman);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.1;
}
.seq h3 { margin-bottom: .3rem; font-size: 1.125rem; }
.seq p { margin: 0; color: var(--fg-muted); }

.spt-widget {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 250, 247, .6);
}
@media (min-width: 560px) {
  .spt-widget { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; }
}
.spt-widget h3 { margin-bottom: .35rem; }
.spt-widget__intro { margin: 0; color: var(--fg-muted); font-size: .9375rem; }
.spt-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 260 / 400;
  margin-inline: auto;
  overflow: visible;
}
.spt-svg text { font-family: var(--font-display); font-size: 12px; fill: var(--fg-muted); }
.spt-surface { stroke: var(--fg); stroke-width: 1.25; }
.spt-hole { fill: #F2EDE2; stroke: rgba(28, 36, 39, .3); }
.spt-guide { stroke: var(--fg); stroke-opacity: .45; stroke-width: 1.5; }
.spt-rod { stroke: var(--fg); stroke-width: 3; }
.spt-spoon { fill: #A3ABAD; stroke: var(--fg); }
.spt-anvil { fill: var(--fg); }
.spt-hammer { fill: var(--andaman); }
.spt-dim { stroke: var(--fg-muted); fill: none; }
.spt-seg { fill: none; stroke: var(--fg); stroke-opacity: .4; }
.spt-seg-fill { fill: var(--andaman); }
.spt-seg-fill.is-seat { fill: var(--fg-muted); fill-opacity: .45; }

.spt-count { width: 100%; margin: 1.25rem 0 1rem; border-collapse: collapse; }
.spt-count th, .spt-count td {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.spt-count th { font-family: var(--font-display); font-weight: 500; line-height: 1.3; }
.spt-count th small {
  display: block;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 400;
}
.spt-count td {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.spt-result {
  min-height: 3.4em;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.5;
}
.spt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.spt-actions .btn { padding-inline: .75rem; }
.spt-actions .btn--primary { grid-column: 1 / -1; }

.n-ref {
  display: grid;
  gap: 2rem 3rem;
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}
.n-ref h3 { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .n-ref { grid-template-columns: 1fr 1fr; }
}
.ref-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ref-table caption {
  padding-bottom: .5rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
}
.ref-table th, .ref-table td {
  padding: .6rem 1rem .6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.ref-table thead th { color: var(--fg-muted); font-size: .8125rem; font-weight: 500; }
.ref-table td:first-child {
  width: 40%;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.n-ref__note { grid-column: 1 / -1; margin: 0; color: var(--fg-muted); font-size: .8125rem; }

/* ---------- Phuket ground ---------- */

.ground-grid { display: grid; gap: 3.5rem; }
@media (min-width: 900px) {
  .ground-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.ground-card figure { margin: 0 0 1.5rem; }
.ground-card h3 { margin-bottom: .25rem; }
.ground-card .area { margin: 0 0 .9rem; color: var(--fg-muted); font-size: .875rem; }
.ground-card p:last-child { margin: 0; }
.mini { width: 100%; max-width: 240px; height: auto; aspect-ratio: 220 / 250; overflow: visible; }
.mini text { font-family: var(--font-display); font-size: 10px; fill: var(--fg-muted); }
.mini .mini-note { fill: var(--fg); font-size: 10.5px; }
.mini-grid line { stroke: var(--fg); stroke-opacity: .12; stroke-dasharray: 2 3; }
.mini-frame { fill: none; stroke: var(--fg); stroke-opacity: .5; }
.mini-boulder { fill: #8A8E90; stroke: var(--ink); stroke-width: .75; }
.mini-water line { stroke: var(--andaman); stroke-dasharray: 3 3; }
.mini-water path { fill: var(--andaman); }
.mini-line {
  fill: none;
  stroke: var(--andaman);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
.mini-pt { fill: var(--clayey-sand); stroke: var(--andaman); stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.mini.is-drawn .mini-line { stroke-dashoffset: 0; }
.mini.is-drawn .mini-pt { opacity: 1; }
.ground-caption { margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; color: var(--fg-muted); font-size: .8125rem; }

/* ---------- Process and projects ---------- */

.process {
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li { position: relative; padding-left: 3.5rem; counter-increment: step; }
.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.2rem;
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}
.process h3 { margin-bottom: .5rem; font-size: 1.1875rem; }
.process p { margin: 0; color: var(--fg-muted); font-size: .96875rem; }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
  .process li { padding-left: 0; padding-top: 4.25rem; }
  .process li::before { top: 0; }
  .process li::after {
    content: "";
    position: absolute;
    left: 2.75rem;
    right: -1.5rem;
    top: 1.25rem;
    height: 1px;
    background: var(--line);
  }
  .process li:last-child::after { content: none; }
}

.projects { margin-top: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.projects__head { max-width: 46rem; }
.projects__head h2 { margin-bottom: 1rem; }
.projects__head .lede { margin: 0; }

/* Justified rows: each photo grows by its aspect ratio, so photos in a row share one height */
.gallery {
  --gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
  display: grid;
  gap: calc(var(--gap) * 1.75);
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 clamp(3.5rem, 2.5rem + 3vw, 5rem);
}
.gallery__row { display: flex; gap: var(--gap); }
.shot { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.shot__img {
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 3px;
  background: rgba(238, 240, 236, .06);
}
.shot__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: .65rem; color: var(--fg-muted); font-size: .875rem; line-height: 1.45; }
.shot__title { display: block; color: var(--fg); font-family: var(--font-display); font-weight: 500; }

@media (max-width: 899px) {
  /* Phones and small tablets swipe through the photos instead */
  .gallery {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .gallery__row { display: contents; }
  .shot { flex: 0 0 auto; width: min(calc(300px * min(var(--ar), 1.1)), 86vw); scroll-snap-align: start; }
  .shot__img { aspect-ratio: auto; height: 300px; }
}

.worklist__title { margin-bottom: 1rem; font-size: 1.125rem; }
.worklist {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .worklist { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}
.worklist li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.worklist__name { line-height: 1.45; }
.worklist__meta { grid-column: 1; color: var(--fg-muted); font-size: .875rem; line-height: 1.5; }
.worklist__year {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Report ---------- */

.report { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
@media (min-width: 1040px) {
  .report { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
}
.report .band__head { margin-bottom: 0; }
.report-list { margin: 2.25rem 0 0; padding: 0; list-style: none; }
.report-list li { padding: .75rem 0; border-top: 1px solid var(--line); }
.report-list li:last-child { border-bottom: 1px solid var(--line); }
.signers { margin-top: 2rem; }
.signers__k { margin: 0 0 .75rem; color: var(--fg-muted); font-size: .875rem; }
.signers ul { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.signers li { display: grid; gap: .1rem; }
.signers__name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.signers__lic { color: var(--fg-muted); font-size: .875rem; line-height: 1.5; }

.doc {
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --line: rgba(28, 36, 39, .14);
  margin: 0;
  padding: clamp(1rem, .75rem + 1.5vw, 2rem);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.5;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25);
}
.doc__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ink);
}
.doc__title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.doc__brand { color: var(--ink-muted); font-family: var(--font-display); font-weight: 500; }
.doc__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.5rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 600px) {
  .doc__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.doc__meta dt { color: var(--ink-muted); font-size: .75rem; }
.doc__meta dd { margin: 0; font-weight: 500; }
.doc-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.doc-table th, .doc-table td {
  padding: .55rem .75rem .55rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.doc-table thead th { color: var(--ink-muted); font-size: .75rem; font-weight: 500; border-bottom-color: var(--ink); }
.doc-table td:first-child { font-family: var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc__sign {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .75rem;
}
.doc__sign strong { display: block; color: var(--ink); font-size: .8125rem; font-weight: 500; }

.sw {
  display: inline-block;
  width: 30px;
  height: 16px;
  vertical-align: middle;
  border: 1px solid rgba(28, 36, 39, .45);
  background-color: var(--sw);
  background-image: var(--pat);
}
.sw--fill { --sw: #8C8273; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 3l2 2M5 1l2 2M4 6l2 1' stroke='%231C2427' stroke-opacity='.5' fill='none'/%3E%3C/svg%3E"); }
.sw--sand { --sw: #D9CCB0; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cg fill='%231C2427' fill-opacity='.55'%3E%3Ccircle cx='2' cy='2' r='.8'/%3E%3Ccircle cx='6' cy='6' r='.8'/%3E%3C/g%3E%3C/svg%3E"); }
.sw--clay { --sw: #A89C88; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 2.5h4M4 6.5h3' stroke='%231C2427' stroke-opacity='.55'/%3E%3C/svg%3E"); }
.sw--clayey { --sw: #C7B48F; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 2.5h4' stroke='%231C2427' stroke-opacity='.55'/%3E%3Ccircle cx='5.5' cy='6' r='.8' fill='%231C2427' fill-opacity='.55'/%3E%3C/svg%3E"); }
.sw--residual { --sw: #9A5A3C; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2 .5v3M.5 2h3' stroke='%23fff' stroke-opacity='.6'/%3E%3Ccircle cx='6' cy='6' r='.8' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E"); }
.sw--granite { --sw: #6E7173; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2 .5v3M.5 2h3M6 4.5v3M4.5 6h3' stroke='%23fff' stroke-opacity='.6'/%3E%3C/svg%3E"); }
.sw--rock { --sw: #4A5052; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M.5 1l1.5 2 1.5-2M6 4.5v3M4.5 6h3' stroke='%23fff' stroke-opacity='.6' fill='none'/%3E%3C/svg%3E"); }

.nbar {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 6px;
  margin-right: .5rem;
  vertical-align: middle;
  background: rgba(28, 36, 39, .1);
}
.nbar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--n) / 50 * 100%);
  background: var(--andaman);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
  .faq .band__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; margin-bottom: 0; }
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  opacity: .7;
  transition: transform .35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 1.5rem; color: var(--fg-muted); max-width: 62ch; }
.faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ---------- Quote ---------- */

.quote { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 1040px) {
  .quote { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
}

.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.field > label, .field legend { font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.req { color: var(--aqua); }
.hint { margin: 0; color: var(--fg-muted); font-size: .8125rem; line-height: 1.5; }

.input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid rgba(238, 240, 236, .24);
  border-radius: 8px;
  background: rgba(238, 240, 236, .04);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: rgba(238, 240, 236, .42); }
.input:hover { border-color: rgba(238, 240, 236, .42); }
.input:focus {
  outline: none;
  border-color: var(--aqua);
  background: rgba(238, 240, 236, .07);
  box-shadow: 0 0 0 3px rgba(143, 208, 216, .25);
}
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEF0EC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
select.input option { color: var(--ink); background: var(--paper); }
.field-error { margin: 0; color: var(--error); font-size: .875rem; }

.checks { margin: 0; padding: 0; border: 0; min-width: 0; }
.checks legend { margin-bottom: .35rem; padding: 0; }
.checks label {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  cursor: pointer;
}
.checks input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--aqua); }
@media (min-width: 640px) {
  .checks__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { margin: 0; max-width: 42ch; color: var(--fg-muted); font-size: .8125rem; }
.form-status { margin: 0; padding: .875rem 1rem; border-radius: 8px; font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status[data-kind="success"] { background: rgba(143, 208, 216, .14); color: var(--aqua-light); }
.form-status[data-kind="error"] { background: rgba(242, 164, 147, .12); color: var(--error); }
.form-status[data-kind="info"] { background: rgba(238, 240, 236, .08); color: var(--fg); }
.botcheck { display: none; }

.contact h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.contact-list { display: grid; margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .i { grid-row: span 2; margin-top: .2rem; color: var(--aqua); }
.contact-k { color: var(--fg-muted); font-size: .8125rem; line-height: 1.5; }
.contact-v { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.contact-v a { color: var(--fg); text-decoration: none; }
.contact-v a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom));
  background: var(--bedrock-floor);
  color: var(--fg);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid .brand { margin-bottom: .75rem; }
.footer-grid p { color: var(--fg-muted); max-width: 36ch; }
.footer-h { margin-bottom: .75rem; font-size: 1rem; font-weight: 600; }
.site-footer ul { display: grid; margin: 0; padding: 0; list-style: none; }
.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--fg-muted);
  text-decoration: none;
}
.site-footer ul a:hover { color: var(--fg); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 959px) {
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Mobile action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(28, 34, 36, .94);
  border-top: 1px solid rgba(238, 240, 236, .1);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .action-bar {
    background: rgba(28, 34, 36, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}
.action-bar a.is-primary { background: var(--cta-bg); color: var(--cta-fg); }
@media (min-width: 960px) {
  .action-bar { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
