/* ==========================================================================
   Mighty Lion Holdings — site stylesheet
   Palette: "Heritage Gold". Theme is resolved to a concrete dark/light value
   by assets/boot.js before first paint and written to <html data-theme>.

   UNITS: every size that carries type or space is expressed in rem (or a
   rem-anchored clamp), so the whole layout grows with the reader's browser
   font-size — not just the glyphs (WCAG 1.4.4). The only px left are hairline
   borders, focus-ring widths, the noise texture tile and the clip-rect
   screen-reader hacks, all of which should stay crisp at exactly one device
   pixel rather than scale.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --bg:  #0A0A0B;
  --sf:  #121213;
  --sf2: #1A1A1C;
  --bd:  #3E3B32;
  --bds: #6E6A5E;
  --fg:  #F1EBDE;
  --fm:  #ADA492;
  --ac:  #D9B863;
  --acf: #0A0A0B;
  --act: #E2C578;
  --fc:  #F0C96B;
  --inv: #F0938E;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Tenor Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ======================================================= type scale ====
     ONE KNOB. Everything textual on the site derives from --type-scale;
     change it here and the whole site resizes in proportion.

         --type-scale: 1      the shipped size
         --type-scale: 1.125  ~13% larger everywhere
         --type-scale: 0.9    ~10% smaller everywhere

     Sizes are rem-anchored so they honour the reader's browser font-size
     setting, with a vw term in the middle so they also flex with viewport
     width. The root font-size is deliberately never overridden. */
  --type-scale: 1;

  /*            step          320px -> 1440px   used for
     ------------------------------------------------------------------ */
  --fs-micro:   calc(var(--type-scale) * clamp(1.0000rem, 0.982rem + 0.089vw, 1.0625rem));  /* 16 -> 17  form labels, attribution */
  --fs-ui:      calc(var(--type-scale) * clamp(1.0625rem, 1.027rem + 0.179vw, 1.1875rem));  /* 17 -> 19  nav, footer, buttons, caps */
  --fs-body:    calc(var(--type-scale) * clamp(1.1875rem, 1.152rem + 0.179vw, 1.3125rem));  /* 19 -> 21  card + list copy */
  --fs-body-lg: calc(var(--type-scale) * clamp(1.3125rem, 1.259rem + 0.268vw, 1.5000rem));  /* 21 -> 24  main prose */
  --fs-h3:      calc(var(--type-scale) * clamp(1.5000rem, 1.393rem + 0.536vw, 1.8750rem));  /* 24 -> 30  card headings */
  --fs-lead:    calc(var(--type-scale) * clamp(1.6250rem, 1.411rem + 1.071vw, 2.3750rem));  /* 26 -> 38  hero subtitle */
  --fs-h2-sm:   calc(var(--type-scale) * clamp(1.7500rem, 1.571rem + 0.893vw, 2.3750rem));  /* 28 -> 38  service / aside headings */
  --fs-h2:      calc(var(--type-scale) * clamp(2.0000rem, 1.786rem + 1.071vw, 2.7500rem));  /* 32 -> 44  section headings */
  --fs-h1:      calc(var(--type-scale) * clamp(2.6250rem, 2.018rem + 3.036vw, 4.7500rem));  /* 42 -> 76  page headings */

  /* One measure for every content container on every page — header bar
     included, so the logo lines up with the content edge below it.
     80rem = 1280px at the default root size, and grows with it. */
  --content-max: 80rem;

  /* the shared page gutter, so every container indents identically */
  --gutter: clamp(1.125rem, 5vw, 2rem);

  /* line heights travel with the size band, not with each rule */
  --lh-tight: 1.18;
  --lh-snug:  1.35;
  --lh-body:  1.65;
  --lh-loose: 1.85;

  color-scheme: dark;
  background: var(--bg);
}

:root[data-theme="light"] {
  --bg:  #FAF8F3;
  --sf:  #FFFFFF;
  --sf2: #F1ECE1;
  --bd:  #D3CAB5;
  --bds: #8D8370;
  --fg:  #17150F;
  --fm:  #57513F;
  --ac:  #6B5417;
  --acf: #FFFFFF;
  --act: #6B5417;
  --fc:  #8A6A19;
  --inv: #A3271C;

  color-scheme: light;
}

/* ---------------------------------------------------------------- reset -- */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--act); }
a:hover { color: var(--fg); }

/* focus ring stays in px: it should read as the same crisp outline at every
   text size rather than growing into a slab */
:focus-visible {
  outline: 3px solid var(--fc);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--ac); color: var(--acf); }

[aria-invalid="true"] {
  border-color: var(--inv) !important;
  box-shadow: 0 0 0 1px var(--inv);
}

/* Firefox / standard properties; Chromium uses the ::-webkit- block below */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--ac) transparent; }
}
::-webkit-scrollbar { width: 0.6875rem; height: 0.6875rem; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--bd); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ac) 62%, var(--bg) 38%);
  border: 2px solid var(--bg);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--ac); }
::-webkit-scrollbar-corner { background: var(--bg); }

/* ---------------------------------------------------------------- shell -- */
.shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

/* the document never scrolls — .scroll does — so scroll behaviour belongs
   here, and an anchored target needs headroom of its own (2.4.11) */
.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

main { position: relative; z-index: 2; flex: 1; }

.skip {
  position: absolute;
  left: 1rem;
  top: -6.25rem;
  z-index: 60;
  padding: 0.875rem 1.25rem;
  background: var(--ac);
  color: var(--acf);
  font-family: var(--sans);
  font-size: var(--fs-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--acf); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20256%20256%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%274%27%20stitchTiles%3D%27stitch%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27%20opacity%3D%270.4%27/%3E%3C/svg%3E");
  /* a fixed texture tile, not a layout dimension — stays in px */
  background-size: 200px 200px;
}

/* ------------------------------------------------------------- logo art --
   The original brushed-gold artwork: `logo-horizontal.png` is the full lockup
   (emblem + wordmark, 6.98:1) and `logo-emblem.png` is the mark alone
   (0.757:1). Both are gold on transparency, so they read on the dark and the
   light palette unchanged — no recolouring, no per-theme variants.

   Every instance carries width/height attributes pinning the intrinsic ratio,
   so nothing reflows while the images load. */
.lockup {
  display: block;
  width: 42.3125rem;   /* 97px tall at the design's hero scale */
  max-width: 100%;
  height: auto;
}

.mark { display: block; width: auto; }

/* ---------------------------------------------------------------- header -- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  flex: 0 0 auto;
}

.site-head .bar {
  max-width: var(--content-max);
  margin: 0 auto;
  /* ~72px tall on a phone, ~96px on a desktop, and taller again if the
     reader enlarges text */
  padding: clamp(0.875rem, 1.6vw, 1.625rem) clamp(0.875rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.625rem, 1.5vw, 1.25rem);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 0;
  text-decoration: none;
  flex: 0 1 auto;
}
.brand img {
  display: block;
  /* 34px tall on the narrowest phone up to ~45px on a desktop; max-width lets
     the flex item shrink instead of crowding the theme control and the burger */
  width: clamp(14.8125rem, 21vw, 19.1875rem);
  max-width: 100%;
  height: auto;
}

.site-head .row { display: none; }

.site-head .row a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fm);
}
.site-head .row a:hover { color: var(--act); }
.site-head .row a[aria-current="page"] { color: var(--fg); }

.tools { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

/* theme menu */
.tm { position: relative; display: flex; align-items: center; margin-left: 0.375rem; }
.tm svg { display: block; flex: 0 0 auto; }

#tmBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.625rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--act);
  cursor: pointer;
}
#tmBtn:hover { border-color: var(--bd); }
#tmBtn[aria-expanded="true"] { border-color: var(--bds); }

/* which trigger icon shows is driven by <html data-theme-mode>, set by boot.js
   in <head> — so it is correct on first paint, with no swap after hydration */
#tmBtn [data-tm-icon] { display: none; }
:root[data-theme-mode="system"] #tmBtn [data-tm-icon="system"],
:root[data-theme-mode="dark"]   #tmBtn [data-tm-icon="dark"],
:root[data-theme-mode="light"]  #tmBtn [data-tm-icon="light"] { display: block; }

#tmBtn .cv {
  display: block;
  width: 0.3125rem;
  height: 0.3125rem;
  border-right: 1.5px solid var(--fm);
  border-bottom: 1.5px solid var(--fm);
  transform: rotate(45deg);
  margin-top: -0.1875rem;
}

/* icon-only: each option is named by aria-label, so the menu collapses to a
   compact row of three 44x44 targets */
#tmMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4375rem);
  z-index: 60;
  display: flex;
  background: var(--sf);
  border: 1px solid var(--bds);
}
#tmMenu[hidden] { display: none; }
#tmMenu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--fm);
}
#tmMenu button + button { border-left: 1px solid var(--bd); }
#tmMenu button:hover { background: var(--bg); color: var(--fg); }
/* the selected option is marked by a bar and a tint as well as by colour, so
   the state is not carried by hue alone (WCAG 1.4.1) */
#tmMenu button[aria-checked="true"] {
  color: var(--act);
  background: color-mix(in oklab, var(--ac) 15%, transparent);
  box-shadow: inset 0 -2px 0 var(--ac);
}

/* burger — icon-only: the label is carried by aria-label, and the bars morph
   into a close mark so the open state is visible as well as announced */
#burger {
  --bar: 1.5px;
  --burger-h: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--bds);
  color: var(--fg);
  cursor: pointer;
}
#burger:hover { border-color: var(--ac); }
#burger i {
  position: relative;
  display: block;
  width: 1.125rem;
  height: var(--burger-h);
}
#burger i b {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--bar);
  background: var(--fg);
  transition: transform .22s ease, opacity .22s ease;
}
#burger i b:nth-child(1) { top: 0; }
#burger i b:nth-child(2) { top: calc(50% - var(--bar) / 2); }
#burger i b:nth-child(3) { bottom: 0; }
#burger[aria-expanded="true"] i b:nth-child(1) {
  transform: translateY(calc(var(--burger-h) / 2 - var(--bar) / 2)) rotate(45deg);
}
#burger[aria-expanded="true"] i b:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] i b:nth-child(3) {
  transform: translateY(calc(var(--burger-h) / -2 + var(--bar) / 2)) rotate(-45deg);
}

#panel { border-top: 1px solid var(--bd); background: var(--sf); }
#panel[hidden] { display: none; }
#panel nav {
  display: flex;
  flex-direction: column;
  padding: 0.375rem clamp(0.875rem, 4vw, 2.5rem) 0.875rem;
}
#panel nav a + a { border-top: 1px solid var(--bd); }
#panel nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 0.25rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fm);
}
#panel nav a[aria-current="page"] { color: var(--fg); }

@media (min-width: 62em) {
  .site-head .row { display: flex; align-items: center; gap: 0.125rem; }
  #burger { display: none !important; }
  #panel { display: none !important; }
}

/* ---------------------------------------------------------------- footer -- */
.site-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--bd);
  padding: clamp(1.5rem, 5vw, 2.125rem) var(--gutter);
  text-align: center;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1.625rem);
  margin: 0 0 clamp(0.75rem, 3vw, 1.125rem);
}
.site-foot nav a,
.site-foot nav span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.375rem;
  font-size: var(--fs-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fm);
}
.site-foot nav a:hover { color: var(--act); }
.site-foot nav span[aria-current="page"] { color: var(--act); }
.site-foot p {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: var(--lh-loose);
  letter-spacing: .08em;
  color: var(--fm);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.25rem, 3.4vw, 1.875rem);
  min-height: min(78vh, 42.5rem);
  padding: clamp(2.5rem, 7vw, 4.75rem) clamp(1.125rem, 5vw, 2.5rem);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 56% at 50% 44%, color-mix(in oklab, var(--ac) 8%, transparent) 0%, transparent 72%);
}

.corner {
  position: absolute;
  width: clamp(2.5rem, 8vw, 5rem);
  height: clamp(2.5rem, 8vw, 5rem);
}
.corner-tl { top: clamp(0.875rem, 4vw, 2.5rem); left: clamp(0.875rem, 4vw, 2.5rem); border-top: 1px solid var(--bds); border-left: 1px solid var(--bds); }
.corner-tr { top: clamp(0.875rem, 4vw, 2.5rem); right: clamp(0.875rem, 4vw, 2.5rem); border-top: 1px solid var(--bds); border-right: 1px solid var(--bds); }
.corner-bl { bottom: clamp(0.875rem, 4vw, 2.5rem); left: clamp(0.875rem, 4vw, 2.5rem); border-bottom: 1px solid var(--bds); border-left: 1px solid var(--bds); }
.corner-br { bottom: clamp(0.875rem, 4vw, 2.5rem); right: clamp(0.875rem, 4vw, 2.5rem); border-bottom: 1px solid var(--bds); border-right: 1px solid var(--bds); }

.hero h1 {
  margin: 0;
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.rule {
  position: relative;
  display: block;
  width: 3.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
}

.hero-sub {
  position: relative;
  margin: 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  letter-spacing: .02em;
  color: var(--fg);
  text-wrap: pretty;
}

.hero-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  padding-top: clamp(0.375rem, 2vw, 1.125rem);
  width: 100%;
  max-width: 41.25rem;
}

/* --------------------------------------------------------------- buttons -- */
.btn,
.btn-ghost {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.875rem;
  text-align: center;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn {
  background: var(--ac);
  color: var(--acf);
  border: none;
}
.btn:hover { filter: brightness(1.08); color: var(--acf); }
.btn:disabled { opacity: .55; cursor: progress; filter: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ac);
  color: var(--act);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ac) 12%, transparent); color: var(--act); }

/* -------------------------------------------------------------- sections -- */
.page-head {
  text-align: center;
  padding: clamp(2.75rem, 9vw, 5rem) var(--gutter) clamp(1.5rem, 5vw, 2.75rem);
}
.page-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: .06em;
  color: var(--fg);
  text-wrap: balance;
}
.page-head h1 em { font-style: normal; color: var(--act); }
.page-head .bar-rule {
  display: block;
  width: 3.75rem;
  height: 1px;
  background: var(--ac);
  margin: clamp(1.125rem, 4vw, 1.625rem) auto 0;
}

.section-h {
  margin: 0 0 clamp(1.25rem, 4vw, 1.875rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bd);
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  letter-spacing: .04em;
  color: var(--fg);
  text-align: center;
  text-wrap: balance;
}

/* ------------------------------------------------------- home: what we do -- */
.wwd {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.25rem) var(--gutter) clamp(3.375rem, 9vw, 5.75rem);
}
.wwd > .lede {
  margin: 0 auto clamp(1.625rem, 5vw, 2.5rem);
  max-width: 72ch;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--fm);
  text-align: center;
  text-wrap: pretty;
}
.wwd ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15.625rem, 100%), 1fr));
  gap: clamp(1.375rem, 4vw, 2.25rem);
}
.wwd li { display: flex; flex-direction: column; gap: 0.375rem; text-align: center; }
.wwd h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: .02em;
}
.wwd h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--act);
  text-decoration: none;
}
.wwd h3 a:hover { text-decoration: underline; text-underline-offset: 0.3125rem; color: var(--act); }
.wwd li p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--fm); text-wrap: pretty; }
.wwd > .outro {
  margin: clamp(1.75rem, 5vw, 2.625rem) auto 0;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fm);
  text-align: center;
  text-wrap: pretty;
}
/* Keep multi-word links off a line break so they don't split as
   "…you are working / on," — but only once there is room for it. Below 48em
   the phrase must be free to wrap, or it overflows at 320px and breaks under
   user text-spacing overrides (1.4.10, 1.4.12). */
.nowrap { text-underline-offset: 0.25rem; }
@media (min-width: 48em) {
  .nowrap { white-space: nowrap; }
}

@media (max-width: 53.74em) {
  .wwd ul { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- services -- */
.svc-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 8vw, 4.5rem);
  container: mlhpage / inline-size;
}
.svc-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 1px;
  background: transparent;
}
.svc {
  position: relative;
  grid-row: span 3;
  background: var(--sf);
  outline: 1px solid var(--bd);
  padding: clamp(1.625rem, 4vw, 2.625rem) clamp(1.25rem, 3vw, 2.125rem);
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  gap: 0.875rem;
  transition: background .3s ease;
}
.svc > .svc-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--ac);
  pointer-events: none;
  transition: height .4s ease;
}
.svc:hover,
.svc:focus-within {
  background: color-mix(in srgb, var(--sf) 95%, var(--ac) 5%);
  outline-color: var(--ac);
}
.svc:hover > .svc-bar,
.svc:focus-within > .svc-bar { height: 100%; }

.svc .mark { align-self: flex-start; height: 2.5rem; }
.svc h2 {
  align-self: end;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-snug);
  letter-spacing: .02em;
  color: var(--act);
  text-wrap: balance;
}
.svc p {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fm);
  text-wrap: pretty;
}

@container mlhpage (max-width: 50em) {
  .svc-row { grid-template-columns: 1fr; grid-template-rows: none; }
  .svc-row > .svc { grid-row: auto; grid-template-rows: auto auto auto; }
}

.industries {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.875rem, 8vw, 5.125rem) var(--gutter) clamp(3rem, 9vw, 5.5rem);
}
.industries h2 {
  margin: 0 0 clamp(1.125rem, 4vw, 1.75rem);
  padding-bottom: 1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  letter-spacing: .04em;
  color: var(--fg);
  border-bottom: 1px solid var(--bd);
  text-align: center;
  text-wrap: balance;
}
.industries ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* a 20rem track keeps the six industries at 3+3 on the 80rem measure rather
     than an uneven 4+2, and steps down to 2+2+2 then one per row */
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
}
.industries li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 1.0625rem 1.25rem;
  background: var(--bg);
  font-size: var(--fs-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fm);
}
.industries .outro {
  margin: clamp(1.875rem, 5vw, 2.75rem) auto 0;
  max-width: 72ch;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fm);
  text-align: center;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- about -- */
.about-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 9vw, 5.5rem);
  display: grid;
  /* stacked on narrow screens, copy over mark */
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
/* two thirds copy, one third mark. An em breakpoint so the split only kicks in
   while there is genuinely room for it, even at enlarged text sizes. */
@media (min-width: 48em) {
  .about-grid { grid-template-columns: 2fr 1fr; }
}
.about-copy { display: flex; flex-direction: column; gap: clamp(1.125rem, 4vw, 1.625rem); }
.about-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: .02em;
  color: var(--fg);
  text-wrap: pretty;
}
.about-copy p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--fm);
  max-width: 64ch;
  text-wrap: pretty;
}
.about-copy blockquote {
  margin: clamp(0.5rem, 2vw, 1rem) 0 0;
  padding: clamp(1.125rem, 4vw, 1.625rem) clamp(1.25rem, 4vw, 1.875rem);
  border-left: 2px solid var(--ac);
  background: color-mix(in oklab, var(--ac) 5%, transparent);
}
.about-copy blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--act);
  max-width: none;
}
.about-copy blockquote footer {
  margin-top: 0.875rem;
  font-size: var(--fs-micro);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fm);
}
.about-art { display: flex; align-items: center; justify-content: center; }
/* width-driven so the mark actually fills the third it has been given, instead
   of sitting small in the middle of it; capped so it never dwarfs the copy */
.about-art .mark { width: min(100%, 15rem); height: auto; }

/* --------------------------------------------------------------- contact -- */
.contact-lede {
  margin: 0 auto clamp(1.75rem, 6vw, 3rem);
  max-width: 52ch;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--fm);
}
.contact-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 9vw, 5.5rem);
  display: grid;
  /* stacked on narrow screens, aside above the form */
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3.75rem);
  align-items: start;
}
/* one third aside, two thirds form — the aside comes first in the markup */
@media (min-width: 48em) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}
.contact-aside { display: flex; flex-direction: column; gap: clamp(1.25rem, 4vw, 1.875rem); }
.contact-aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2-sm);
  letter-spacing: .03em;
  color: var(--fg);
  text-wrap: balance;
}
.contact-aside p { margin: 0; font-size: var(--fs-body-lg); line-height: var(--lh-body); color: var(--fm); max-width: 38ch; }
.contact-aside .mark {
  align-self: flex-start;
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
  height: 9.375rem;
  opacity: .5;
}

form.contact { display: flex; flex-direction: column; gap: 1.125rem; }
.field { display: flex; flex-direction: column; gap: 0.4375rem; }
.field label {
  font-size: var(--fs-micro);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--fm);
}
.field label .req { color: var(--act); }
.field input,
.field textarea {
  padding: 0 0.875rem;
  background: var(--sf2);
  border: 1px solid var(--bds);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  border-radius: 0;
}
.field input { min-height: 3rem; }
.field textarea { padding: 0.75rem 0.875rem; line-height: var(--lh-body); resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--ac); }
/* no opacity here: dimming --fm drops the placeholder under 4.5:1 */
.field input::placeholder,
.field textarea::placeholder { color: var(--fm); opacity: 1; }

/* clip-rect offscreening: the 1px box is the idiom, not a layout size */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-status { display: flex; flex-direction: column; gap: 0.625rem; }
.form-error {
  margin: 0;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--ac);
  background: var(--sf2);
  font-size: var(--fs-body);
  color: var(--fg);
  max-width: 64ch;
}
.form-sent {
  margin: 0 auto;
  padding: clamp(1.125rem, 4vw, 1.625rem);
  border: 1px solid var(--bds);
  text-align: center;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--act);
  max-width: 64ch;
}
/* padding-inline only, so the vertical padding that lets a long label wrap
   is inherited from .btn rather than zeroed out */
form.contact .btn { align-self: flex-start; padding-inline: 2rem; }

/* ------------------------------------------------------------------- 404 -- */
.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.125rem, 3vw, 1.75rem);
  min-height: min(70vh, 38.75rem);
  padding: clamp(2.5rem, 7vw, 4.75rem) clamp(1.125rem, 5vw, 2.5rem);
}
.nf .mark { height: 7.5rem; opacity: .5; }
.nf h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: .06em;
  color: var(--fg);
}
.nf p { margin: 0; max-width: 46ch; font-size: var(--fs-body-lg); line-height: var(--lh-loose); color: var(--fm); }

/* ------------------------------------------------------------ animations -- */
@keyframes mlhRise {
  from { opacity: 0; transform: translateY(0.875rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mlhReveal {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

main > section { animation: mlhRise .9s ease both; }
main > section > h1,
main > section > h2,
main > section > .page-head { animation: mlhRise .9s ease .05s both; }
main > section > p { animation: mlhRise .9s ease .3s both; }
main > section > div:nth-of-type(1) { animation: mlhRise .9s ease .12s both; }
main > section > div:nth-of-type(2) { animation: mlhRise .9s ease .3s both; }
main > section > div:nth-of-type(3) { animation: mlhRise .9s ease .45s both; }
main > section.hero > div:nth-of-type(1) { animation-delay: .55s; }
main > section.hero .lockup { animation: mlhReveal 1.1s ease both; }

.svc { animation: mlhRise .8s ease both; }
.svc:nth-child(2) { animation-delay: .18s; }
.svc:nth-child(3) { animation-delay: .32s; }

[data-leaving] {
  opacity: 0 !important;
  transform: translateY(-0.625rem);
  transition: opacity .26s ease, transform .26s ease;
}

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

/* -------------------------------------------------------------- utility -- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
