/* ==========================================================================
   Rockface Engineering Consultants Limited
   Field-log look: basalt ink on limestone paper, one cobalt accent, geological
   legend fills for each service line. Archivo (wide) for display, IBM Plex
   Sans for reading, IBM Plex Mono for labels, depths and figures.
   ========================================================================== */

:root {
  --basalt:    #16181a;
  --graphite:  #2a2e33;
  --iron:      #454b52;
  --slate:     #5b6169;
  --limestone: #f2efe7;
  --chalk:     #faf8f3;
  --sand:      #e2dacb;
  --sand-d:    #cfc5b1;
  --cobalt:    #2340c9;
  --cobalt-d:  #1a2f99;
  --cobalt-t:  #e3e7fa;
  --on-dark:   #ece8de;
  --on-dark-2: #a7abb1;

  /* strata, used by the sections and the legend swatches */
  --s-topsoil:   #5e5145;
  --s-laterite:  #c29a73;
  --s-sandstone: #d6c7a6;
  --s-shale:     #8a8279;
  --s-bedrock:   #57524d;

  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--basalt);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0 0 .5em;
  color: var(--basalt);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem); line-height: .98; }
h2 { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 680; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-d); }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { margin: 0 0 1em; padding-left: 1.2rem; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  margin: 0 0 1.1rem;
}
.kicker::before { content: ''; width: .6rem; height: .6rem; background: var(--cobalt); flex: none; }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--graphite); max-width: 62ch; }
.muted { color: var(--slate); }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--basalt); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3rem; padding: .7rem 1.35rem;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; border: 1.5px solid var(--cobalt); border-radius: 2px;
  background: var(--cobalt); color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { background: var(--cobalt-d); border-color: var(--cobalt-d); color: #fff; }
.btn:hover .icon { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--basalt); border-color: var(--basalt); }
.btn--line:hover { background: var(--basalt); border-color: var(--basalt); color: var(--limestone); }
.btn--light { background: var(--limestone); color: var(--basalt); border-color: var(--limestone); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--basalt); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(236, 232, 222, .5); }
.btn--ghost-light:hover { background: rgba(236, 232, 222, .08); border-color: var(--on-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 231, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--sand-d);
}
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The logo artwork as supplied (navy and orange lockup, white variant for dark grounds). */
.brand__logo { display: block; height: 52px; width: auto; }
.footer .brand__logo { height: 56px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: .55rem .85rem;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 560; font-size: .98rem;
  color: var(--graphite); text-decoration: none; position: relative;
}
.nav__link::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--basalt); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--basalt); }

.masthead__call {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .86rem; font-weight: 500; color: var(--basalt);
  text-decoration: none; padding: .55rem .9rem; border: 1px solid var(--basalt); border-radius: 2px;
}
.masthead__call:hover { background: var(--basalt); color: var(--limestone); }

.masthead.is-scrolled { box-shadow: 0 6px 24px -18px rgba(22, 24, 26, .5); }

@media (max-width: 859px) {
  .masthead__inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .6rem; }
  .masthead__call { margin-left: auto; padding: .5rem .7rem; }
  .masthead__call span { display: none; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: .55rem calc(-1 * var(--gutter)) 0; border-top: 1px solid var(--sand); }
  .nav__list { justify-content: space-between; padding: 0 calc(var(--gutter) - .85rem); }
  .nav__link { padding: .7rem .85rem; font-size: .95rem; }
  .nav__link::after { bottom: 0; }
}
.masthead__call { flex: none; white-space: nowrap; }
/* Five nav items plus the logo leave no room for the number at mid widths. */
@media (min-width: 860px) and (max-width: 1099px) {
  .masthead__call span { display: none; }
}
@media (max-width: 540px) {
  .nav__list { overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gutter) - .5rem); }
  .nav__list::-webkit-scrollbar { display: none; }
  .nav__link { padding: .7rem .5rem; font-size: .92rem; white-space: nowrap; }
  .nav__link::after { left: .5rem; right: .5rem; }
}
@media (max-width: 400px) {
  .brand__logo { height: 42px; }
}
@media (max-width: 380px) {
  .nav__link { padding: .7rem .36rem; font-size: .86rem; }
  .nav__link::after { left: .36rem; right: .36rem; }
}

/* --- sections ------------------------------------------------------------ */

.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.section--chalk { background: var(--chalk); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.section--chalk + .section, .section + .section--chalk { padding-top: var(--section-y); }

/* Drawing title block: rule, sheet number, label. */
.shead {
  display: flex; align-items: baseline; gap: 1rem;
  border-top: 1.5px solid var(--basalt); padding-top: .8rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.shead__idx { color: var(--basalt); font-weight: 500; }
.shead__end { margin-left: auto; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* --- home hero ----------------------------------------------------------- */

.hero { padding-top: clamp(2.25rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: 1.5rem 3rem; align-items: end; }
.hero h1 { margin: 0; max-width: 15ch; }
.hero h1 .quiet { display: block; color: var(--slate); font-weight: 520; font-stretch: 100%; font-size: .5em; letter-spacing: -.005em; margin-bottom: .55em; line-height: 1.15; }
.hero__aside { display: grid; gap: 1.5rem; }
.hero__aside .lead { margin: 0; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.xsection { margin-top: clamp(2rem, 5vw, 3.5rem); position: relative; }
.xsection svg { width: 100%; height: auto; }
.xsection__cap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
  padding: .7rem 0 0;
}
.xs-label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; fill: var(--basalt); }
.xs-label--dim { fill: var(--slate); }
.xs-layer { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; }
.xs-tick { font-family: var(--f-mono); font-size: 11px; fill: var(--basalt); }
.xs-leader { stroke: var(--basalt); stroke-width: 1; }
.xs-halo { paint-order: stroke; stroke: var(--limestone); stroke-width: 3.5px; stroke-linejoin: round; }
.l-topsoil   { fill: var(--s-topsoil); }
.l-laterite  { fill: var(--s-laterite); }
.l-sandstone { fill: var(--s-sandstone); }
.l-shale     { fill: var(--s-shale); }
.l-bedrock   { fill: var(--s-bedrock); }
.l-sky       { fill: var(--limestone); }
.l-water     { fill: var(--cobalt-t); }
.l-fill      { fill: #b9ab91; }
@media (max-width: 699px) {
  .xsection { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); overflow: hidden; }
  /* Crop to the river, borehole and embankment so the labels stay legible. */
  .xsection svg { width: 210%; max-width: none; margin-left: -66%; }
  .xs-layer, .xs-hide-sm { display: none; }
  .xsection__cap { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* The borehole is drilled once on load. */
.drill-core { stroke-dasharray: 230; stroke-dashoffset: 230; animation: drill 2.4s .4s var(--ease) forwards; }
.drill-tick { opacity: 0; animation: fadein .4s var(--ease) forwards; }
.d1 { animation-delay: .5s; } .d2 { animation-delay: .9s; } .d3 { animation-delay: 1.3s; }
.d4 { animation-delay: 1.7s; } .d5 { animation-delay: 2.1s; } .d6 { animation-delay: 2.5s; }
@keyframes drill { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .drill-core { animation: none; stroke-dashoffset: 0; }
  .drill-tick { animation: none; opacity: 1; }
}

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.5px solid var(--basalt); border-bottom: 1px solid var(--sand-d);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.facts > div { padding: 1rem 1rem 1rem 0; border-right: 1px solid var(--sand-d); }
.facts > div:nth-child(2n) { border-right: 0; padding-left: 1rem; }
.facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--sand-d); }
.facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: .3rem; }
.facts dd { margin: 0; font-family: var(--f-display); font-stretch: 110%; font-weight: 650; font-size: 1.05rem; }
.facts dd a { color: inherit; text-decoration: none; }
.facts dd a:hover { color: var(--cobalt); }
@media (max-width: 479px) { .facts dd { font-stretch: 96%; font-size: 1rem; } }
@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div, .facts > div:nth-child(2n) { padding: 1.1rem 1.25rem; border-right: 1px solid var(--sand-d); border-bottom: 0; }
  .facts > div:first-child { padding-left: 0; }
  .facts > div:last-child { border-right: 0; }
}

/* --- legend (service list) ---------------------------------------------- */

.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--basalt); }
.legend li { margin: 0; }
.legend__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: .4rem 1rem; align-items: center;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--sand-d);
  color: inherit; text-decoration: none; transition: background-color .2s var(--ease);
}
.legend__row:hover { background: var(--chalk); color: inherit; }
.legend__name { font-family: var(--f-display); font-stretch: 110%; font-weight: 680; font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); letter-spacing: -.01em; line-height: 1.15; transition: color .2s var(--ease); }
.legend__desc { grid-column: 2 / 4; color: var(--slate); font-size: .96rem; line-height: 1.5; }
.legend__go { grid-column: 3; grid-row: 1; color: var(--basalt); transition: transform .25s var(--ease), color .2s var(--ease); }
.legend__go .icon { width: 22px; height: 22px; }
.legend__row:hover .legend__name, .legend__row:hover .legend__go { color: var(--cobalt); }
.legend__row:hover .legend__go { transform: translateX(4px); }
.legend__row .swatch { grid-row: 1 / 3; align-self: start; margin-top: .15rem; }
@media (min-width: 760px) {
  .legend__row { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.35fr) 32px; gap: 1.5rem; padding: 1.35rem .5rem; }
  .legend__desc { grid-column: 3; }
  .legend__go { grid-column: 4; }
  .legend__row .swatch { grid-row: 1; align-self: center; margin-top: 0; }
}

.swatch { width: 64px; height: 40px; border: 1px solid var(--basalt); display: block; flex: none; }
@media (min-width: 760px) { .swatch { width: 76px; height: 46px; } }
.swatch--sm { width: 36px !important; height: 24px !important; }
.sw-geotechnical { fill: #c7a47c; }
.sw-hydrology    { fill: #cdd5f3; }
.sw-tailings     { fill: #a39a86; }
.sw-drilling     { fill: #c08d68; }
.sw-mining       { fill: #5f5a55; }
.sw-processing   { fill: #a9aaaf; }
.sw-environmental{ fill: #bcc39a; }
.sw-construction { fill: #ddd6c6; }
.sw-gis          { fill: #eceffa; }
.sw-supply       { fill: #bdb5a7; }

/* --- core run: how we work ------------------------------------------------ */

.core { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: run; }
.core li { margin: 0; counter-increment: run; position: relative; padding: 0 0 2rem 3.25rem; }
.core li::before {
  content: '0' counter(run); position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--basalt);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--basalt); background: var(--limestone);
}
.core li::after { content: ''; position: absolute; left: 1.1rem; top: 2.2rem; bottom: 0; width: 1px; background: var(--sand-d); }
.core li:last-child::after { display: none; }
.core__bar { display: none; }
.core h3 { margin-bottom: .35rem; padding-top: .3rem; }
.core p { color: var(--slate); font-size: .97rem; }
@media (min-width: 900px) {
  .core { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .core li { padding: 0 1.5rem 0 0; }
  .core li::before { position: static; margin-bottom: 1rem; }
  .core li::after { display: none; }
  .core__bar { display: block; height: 22px; border: 1px solid var(--basalt); border-left-width: 0; margin-bottom: 1.25rem; }
  .core li:first-child .core__bar { border-left-width: 1px; }
  .core li { padding-right: 0; }
  .core li > :not(.core__bar) { padding-right: 1.5rem; }
}
.core__bar--1 { background: var(--s-laterite) url('../img/fill-hatch.svg'); }
.core__bar--2 { background: var(--s-sandstone) url('../img/fill-dots.svg'); }
.core__bar--3 { background: var(--s-shale) url('../img/fill-dash.svg'); }
.core__bar--4 { background: var(--s-bedrock) url('../img/fill-cross.svg'); }

/* --- dark band ------------------------------------------------------------ */

.band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--basalt); color: var(--on-dark); padding: var(--section-y) 0;
}
.band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../img/contours.svg') center / cover no-repeat; opacity: .55;
}
.band h2, .band h3 { color: #fff; }
.band .kicker { color: var(--on-dark-2); }
.band .kicker::before { background: #8ea0f0; }
.band p { color: var(--on-dark); }
.band a:not(.btn) { color: #fff; }
.band__grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.band + .section { padding-top: var(--section-y); }

.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(236, 232, 222, .25); }
.lines li { margin: 0; display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid rgba(236, 232, 222, .25); }
.lines .icon { width: 1.3rem; height: 1.3rem; color: #8ea0f0; }
.lines a, .lines strong { font-family: var(--f-display); font-stretch: 112%; font-weight: 650; font-size: 1.2rem; text-decoration: none; }
.lines a:hover { text-decoration: underline; }
.lines small { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }

/* --- people ------------------------------------------------------------- */

.people { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .people { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.person { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-top: 1.25rem; border-top: 1px solid var(--basalt); }
.person__tile {
  position: relative; width: 88px; height: 88px; display: grid; place-items: center;
  border: 1px solid var(--basalt); overflow: hidden;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.7rem; color: var(--basalt);
}
.person__tile svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.person__tile span { position: relative; z-index: 1; background: var(--limestone); padding: .05em .25em; line-height: 1.1; }
.person h3 { margin-bottom: .2rem; }
.person__contact { display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; font-family: var(--f-mono); font-size: .86rem; }
.person__contact .icon { width: 1rem; height: 1rem; color: var(--cobalt); flex: none; }
.person__contact a { color: var(--basalt); }
.person .person__role { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .8rem; }
.person p { color: var(--graphite); font-size: .98rem; }
.tags, .person__tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .9rem 0 0; }
.tags li, .person__tags li { margin: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; padding: .25rem .5rem; border: 1px solid var(--sand-d); background: var(--chalk); color: var(--graphite); }
@media (max-width: 480px) {
  .person { grid-template-columns: 1fr; }
}

/* --- call to action -------------------------------------------------------- */

.cta {
  display: grid; gap: 1.5rem 3rem; align-items: center;
  border: 1.5px solid var(--basalt); background: var(--chalk);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}
.cta::after {
  content: ''; position: absolute; right: -1.5px; top: -1.5px; width: 18px; height: 18px; background: var(--cobalt);
}
.cta h2 { margin-bottom: .35em; }
.cta p { color: var(--slate); max-width: 56ch; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }

/* --- inner page header ---------------------------------------------------- */

.phead { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.phead h1 { max-width: 20ch; font-size: clamp(2.05rem, 1.2rem + 3.3vw, 3.75rem); }
.phead .lead { margin-top: 1.25rem; }
.phead__strip { margin-top: clamp(2rem, 4vw, 3rem); height: 34px; border-top: 1.5px solid var(--basalt); border-bottom: 1px solid var(--basalt); display: flex; }
.phead__strip span { flex: 1; }
.phead__strip span:nth-child(1) { flex: 1.2; background: var(--s-topsoil); }
.phead__strip span:nth-child(2) { flex: 2.3; background: var(--s-laterite) url('../img/fill-hatch.svg'); }
.phead__strip span:nth-child(3) { flex: 3.1; background: var(--s-sandstone) url('../img/fill-dots.svg'); }
.phead__strip span:nth-child(4) { flex: 2.2; background: var(--s-shale) url('../img/fill-dash.svg'); }
.phead__strip span:nth-child(5) { flex: 1.6; background: var(--s-bedrock) url('../img/fill-cross.svg'); }
.phead__strip span + span { border-left: 1px solid var(--basalt); }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 1.5rem; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); text-decoration: underline; }
.crumbs [aria-current] { color: var(--basalt); }

.svc-id { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.svc-id .kicker { margin: 0; }
.svc-id .kicker::before { display: none; }

/* --- prose and capability lists ------------------------------------------ */

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--graphite); }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.4rem; margin: .45em 0; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .68em; width: .55rem; height: 1.5px; background: var(--basalt); }

.caps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0 2rem; counter-reset: cap; }
@media (min-width: 700px) { .caps { grid-template-columns: 1fr 1fr; } }
.caps li { counter-increment: cap; margin: 0; padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--sand-d); }
.caps li::before { content: counter(cap, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--cobalt); letter-spacing: .08em; margin-bottom: .45rem; }
.caps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.caps p { color: var(--slate); font-size: .95rem; margin: 0; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px dashed var(--sand-d); margin: 0; }
.checks li::before { content: ''; position: absolute; left: .15rem; top: 1.05rem; width: .7rem; height: .7rem; border: 1.5px solid var(--cobalt); }

/* --- service page layout -------------------------------------------------- */

.svc { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .svc { grid-template-columns: minmax(0, 1fr) 320px; gap: 4.5rem; } }
.svc__block + .svc__block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.svc__block > h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
.svc__block .log { margin-top: 1rem; }
.svc__note { font-size: .92rem; margin-top: .9rem; }

.roles { margin-top: .5rem; }
.role { padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--sand-d); }
.role h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.role > p { color: var(--slate); margin: 0 0 .6rem; max-width: 62ch; }

.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--basalt); margin-top: 1rem; font-size: .95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 1px dashed var(--sand-d); }
.spec thead th { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--sand-d); }
.spec tbody th { font-family: var(--f-display); font-stretch: 105%; font-weight: 650; color: var(--basalt); width: 30%; }
.spec td { color: var(--graphite); }
.spec--grid { min-width: 640px; }
.spec--grid tbody th { width: 22%; }

.aside { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: 100px; } }
.card { border: 1.5px solid var(--basalt); background: var(--chalk); padding: 1.4rem 1.4rem 1.5rem; }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card p { color: var(--slate); font-size: .95rem; }
.card .btn { width: 100%; margin-top: .9rem; }
.card--dark { background: var(--basalt); color: var(--on-dark); border-color: var(--basalt); }
.card--dark h2, .card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-2); }
.card__phone { display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .95rem; color: inherit; text-decoration: none; padding: .45rem 0; }
.card__phone .icon { color: #8ea0f0; }
.card__phone:hover { color: #fff; text-decoration: underline; }

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { margin: 0; border-top: 1px solid var(--sand-d); }
.svc-list a { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--graphite); text-decoration: none; font-size: .95rem; }
.svc-list a:hover { color: var(--cobalt); }
.svc-list a[aria-current] { color: var(--basalt); font-weight: 600; }
.svc-list .swatch { border-width: 1px; }

/* --- about ---------------------------------------------------------------- */

.pillars { display: grid; gap: 0; border-top: 1px solid var(--basalt); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillars > div { padding: 1.4rem 0; border-bottom: 1px solid var(--sand-d); }
@media (min-width: 800px) {
  .pillars > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 0; border-right: 1px solid var(--sand-d); }
  .pillars > div + div { padding-left: 1.5rem; }
  .pillars > div:last-child { border-right: 0; }
}
.pillars h3 { margin-bottom: .45rem; }
.pillars p { color: var(--slate); font-size: .97rem; }

.quote {
  margin: 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 3px solid var(--cobalt);
  font-family: var(--f-display); font-stretch: 104%; font-weight: 500; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.35; color: var(--basalt);
}
.quote cite { display: block; margin-top: 1rem; font-family: var(--f-mono); font-style: normal; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

/* --- contact ------------------------------------------------------------- */

.contact { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; } }

.dl { margin: 0; border-top: 1.5px solid var(--basalt); }
.dl > div { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .25rem .75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sand-d); }
.dl .icon { grid-row: 1 / 3; width: 1.35rem; height: 1.35rem; color: var(--cobalt); margin-top: .15rem; }
.dl dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.dl dd { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 620; font-size: 1.12rem; }
.dl dd a { color: var(--basalt); text-decoration: none; }
.dl dd a:hover { color: var(--cobalt); text-decoration: underline; }
.dl dd small { display: block; font-family: var(--f-body); font-stretch: 100%; font-weight: 400; font-size: .9rem; color: var(--slate); margin-top: .2rem; }

.form { border: 1.5px solid var(--basalt); background: var(--chalk); padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.form h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.form__grid { display: grid; gap: 1rem 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.field label .opt { color: var(--slate); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--basalt);
  background: #fff; border: 1px solid var(--iron); border-radius: 2px; padding: .7rem .8rem; min-height: 3rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form__note { font-size: .88rem; color: var(--slate); margin: 0; max-width: 42ch; }

/* --- footer ---------------------------------------------------------------- */

.footer { background: var(--basalt); color: var(--on-dark-2); font-size: .95rem; }
.footer__strata { display: flex; height: 14px; }
.footer__strata span { flex: 1; }
.footer__strata span:nth-child(1) { background: var(--s-topsoil); flex: .8; }
.footer__strata span:nth-child(2) { background: var(--s-laterite) url('../img/fill-hatch.svg'); flex: 1.6; }
.footer__strata span:nth-child(3) { background: var(--s-sandstone) url('../img/fill-dots.svg'); flex: 2.4; }
.footer__strata span:nth-child(4) { background: var(--s-shale) url('../img/fill-dash.svg'); flex: 1.7; }
.footer__strata span:nth-child(5) { background: var(--s-bedrock) url('../img/fill-cross.svg'); flex: 1.1; }
.footer__grid { display: grid; gap: 2.25rem; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2.5rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer__brand p { margin-top: 1.1rem; max-width: 36ch; }
.footer__brand .mono { color: var(--on-dark); }
.footer__h { font-family: var(--f-mono); font-stretch: 100%; font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0 0 .5rem; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: var(--on-dark); }
.footer .brand:hover { color: #fff; text-decoration: none; }
.footer__contact li { display: flex; gap: .6rem; align-items: center; }
.footer__contact .icon { color: #8ea0f0; width: 1rem; height: 1rem; }
.footer__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .85rem; }
.footer__base::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(236, 232, 222, .14); }
.footer__base .mono { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* --- 404 ----------------------------------------------------------------- */

.lost { padding: clamp(3rem, 10vw, 7rem) 0 var(--section-y); }
.lost__code { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }

.phead__svc { display: block; margin-top: clamp(2rem, 4vw, 3rem); border-top: 1.5px solid var(--basalt); border-bottom: 1px solid var(--basalt); }

/* --- services catalogue --------------------------------------------------- */

.catalogue { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--basalt); }
.catalogue > li { margin: 0; display: grid; gap: 1rem 2rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--sand-d); }
.catalogue__id { display: flex; align-items: center; gap: 1rem; }
.catalogue__id .mono { color: var(--slate); }
.catalogue h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 0 0 .5rem; }
.catalogue h2 a { color: inherit; text-decoration: none; }
.catalogue h2 a:hover { color: var(--cobalt); }
.catalogue p { color: var(--slate); }
.catalogue ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.catalogue ul li { position: relative; padding-left: 1.3rem; margin: 0 0 .4rem; break-inside: avoid; color: var(--graphite); font-size: .96rem; }
.catalogue ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: .55rem; height: 1.5px; background: var(--basalt); }
.catalogue .more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-family: var(--f-display); font-stretch: 108%; font-weight: 650; text-decoration: none; }
.catalogue .more .icon { transition: transform .25s var(--ease); }
.catalogue .more:hover .icon { transform: translateX(3px); }
@media (min-width: 900px) {
  .catalogue > li { grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr); }
  .catalogue__id { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .catalogue ul { columns: 2; column-gap: 2rem; }
}
.lost .btn-row { margin-top: 1.75rem; }

/* --- photographs (optional; only present once generated) ----------------- */

.phead__photo { margin: clamp(2rem, 4vw, 3rem) 0 0; border: 1.5px solid var(--basalt); border-bottom: 0; background: var(--sand); }
.phead__photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.phead__photo + .phead__svc { margin-top: 0; }

/* --- projects ----------------------------------------------------------- */

.project { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 960px) { .project { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: start; } }
.project__fig { margin: 0; }
.project__fig img { display: block; width: 100%; height: auto; border: 1.5px solid var(--basalt); background: #fff; }
.project__fig figcaption { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-top: .7rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.project__fig figcaption span:first-child { color: var(--basalt); font-weight: 500; }
.project .facts { margin-top: 0; margin-bottom: 1.25rem; }
/* Half-width column: keep the facts in the narrow-screen 2 x 2 grid at every size. */
@media (min-width: 800px) {
  .project .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project .facts > div { padding: 1rem 1rem 1rem 0; border-right: 1px solid var(--sand-d); }
  .project .facts > div:nth-child(2n) { border-right: 0; padding-left: 1rem; }
  .project .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--sand-d); }
}
.project h3 { font-size: 1.08rem; margin: 1.5rem 0 .4rem; }

.project__next { margin-top: clamp(3rem, 7vw, 5rem); }

.gallery { display: grid; gap: 1rem; margin-top: clamp(1.25rem, 3vw, 2rem); }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--basalt); background: var(--sand); }
.gallery figcaption { padding-top: .55rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__tall { grid-column: 3; grid-row: 1 / span 2; }
  .gallery__tall img { flex: 1; aspect-ratio: auto; min-height: 0; }
}

.log { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--basalt); }
.log th { text-align: left; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); padding: .8rem 1rem .6rem 0; border-bottom: 1px solid var(--sand-d); }
.log td { padding: .7rem 1rem .7rem 0; border-bottom: 1px dashed var(--sand-d); vertical-align: top; color: var(--graphite); }
.log td:first-child { width: 5.5rem; white-space: nowrap; font-family: var(--f-mono); font-size: .85rem; color: var(--basalt); padding-top: .8rem; }

.plate { margin: 0; }
.plate img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border: 1.5px solid var(--basalt); background: var(--sand); }
.plate figcaption { display: flex; gap: 1rem; padding-top: .7rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.plate figcaption span:first-child { color: var(--basalt); font-weight: 500; }

@media (max-width: 699px) {
  .phead__photo img, .plate img { aspect-ratio: 4 / 3; }
}
