/* ============================================================
   Proctor Holdings — proctorhldg.com
   "Emerald Coast" — relaxed South-Alabama coastal design system
   Gulf emerald-teal · warm sand · sunset coral
   DM Serif Display + Mulish
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --sea:        hsl(184 64% 30%);
  --sea-700:    hsl(186 60% 23%);
  --sea-deep:   hsl(196 56% 11%);
  --surf:       hsl(178 54% 43%);
  --coral:      hsl(12 82% 63%);
  --coral-deep: hsl(10 66% 51%);
  --sand:       hsl(41 46% 95%);
  --shell:      hsl(42 56% 98%);
  --ink:        hsl(197 34% 16%);
  --ink-soft:   hsl(197 14% 39%);
  --ink-faint:  hsl(197 12% 55%);
  --line:       hsl(196 24% 86%);
  --line-soft:  hsl(196 30% 92%);
  --on-dark:    hsl(41 42% 95%);
  --on-dark-dim:hsl(190 20% 74%);

  --ff-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --ff-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --r: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 2px 8px hsl(196 50% 20% / .07);
  --shadow-md: 0 18px 40px -20px hsl(196 50% 20% / .30);
  --shadow-lg: 0 44px 80px -34px hsl(196 50% 18% / .46);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* gentle coastal wave, sand-coloured, for hero -> page transition */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C220,92 430,4 720,40 C1010,76 1230,18 1440,52 L1440,90 L0,90 Z' fill='%23f6f1e7'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--ff-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--coral); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--cream { background: var(--sand); }
.section--paper { background: var(--shell); }
.section--navy { background: var(--sea-deep); color: var(--on-dark); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.12;
  letter-spacing: 0; color: var(--ink); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--on-dark); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--coral-deep); display: inline-flex; align-items: center; gap: .65rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); display: inline-block; }
.section--navy .eyebrow { color: hsl(12 84% 70%); }
.section--navy .eyebrow::before { background: hsl(12 84% 70%); }

.h-display { font-size: clamp(2.7rem, 6.4vw, 5.3rem); }
.h-xl { font-size: clamp(2.15rem, 4.5vw, 3.5rem); }
.h-lg { font-size: clamp(1.7rem, 2.7vw, 2.3rem); }
.lead { font-size: clamp(1.13rem, 1.55vw, 1.32rem); color: var(--ink-soft); line-height: 1.62;
  font-weight: 400; }
.section--navy .lead { color: var(--on-dark-dim); }
.measure { max-width: 64ch; }
.measure-sm { max-width: 46ch; }
em.serif { font-family: var(--ff-display); font-style: italic; }
strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(42 56% 98% / .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 80px; }

/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none; position: relative;
  background: var(--sea); border-radius: 50% 50% 50% 4px;
  display: grid; place-items: center; box-shadow: 0 6px 14px -6px hsl(184 64% 26% / .7);
}
.brand-mark::before {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 14px; height: 14px; background: var(--coral); border-radius: 50%;
  border: 2.5px solid var(--shell);
}
.brand-mark span { font-family: var(--ff-display); color: #fff; font-size: 1.25rem;
  transform: translateY(-1px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--ff-display); font-weight: 400; font-size: 1.3rem;
  color: var(--ink); }
.brand-text small { font-size: .6rem; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink);
  position: relative; padding-block: .4rem; transition: color .2s var(--ease); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  width: 100%; background: var(--coral); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease); }
.nav a:not(.btn):hover { color: var(--sea); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]:not(.btn) { color: var(--sea); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--r-sm); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 22px; height: 2px; background: var(--sea);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: .94rem; letter-spacing: .01em;
  padding: .92rem 1.7rem; border-radius: 100px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease),
    box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px -12px hsl(12 82% 50% / .85); }
.btn--primary:hover { background: var(--coral-deep); transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px hsl(12 82% 48% / .9); }
.btn--navy { background: var(--sea); color: #fff; }
.btn--navy:hover { background: var(--sea-700); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--sea); background: transparent; }
.btn--ghost:hover { border-color: var(--sea); background: hsl(184 64% 30% / .06); transform: translateY(-2px); }
.btn--on-navy { border-color: hsl(190 30% 80% / .45); color: #fff;
  background: hsl(196 40% 30% / .25); backdrop-filter: blur(4px); }
.btn--on-navy:hover { border-color: #fff; background: hsl(196 40% 40% / .4); }
.btn--lg { padding: 1.08rem 2.1rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Hero (photo) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding-block: clamp(6rem, 13vw, 11rem) clamp(7rem, 12vw, 11rem);
  background-image:
    linear-gradient(176deg, hsl(196 56% 10% / .50) 0%, hsl(196 50% 12% / .30) 38%, hsl(196 58% 10% / .82) 100%),
    url("/static/img/coast-hero.jpg");
  background-size: cover; background-position: center 58%;
}
.hero::after { /* coastal wave into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(46px, 6vw, 88px);
  background: var(--wave) bottom/100% 100% no-repeat;
}
.hero-grid, .hero-glow { display: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow { color: hsl(40 60% 92%); }
.hero-eyebrow::before { background: var(--coral); }
.hero h1 { color: #fff; margin-top: 1.5rem; max-width: 16ch;
  text-shadow: 0 2px 30px hsl(196 60% 8% / .5); }
.hero h1 .accent { color: hsl(12 86% 72%); font-style: italic; }
.hero-lead { margin-top: 1.6rem; max-width: 52ch; color: hsl(40 40% 94%);
  font-size: clamp(1.12rem, 1.5vw, 1.32rem); text-shadow: 0 1px 16px hsl(196 60% 8% / .55); }
.hero .btn-row { margin-top: 2.3rem; }
.hero-meta { margin-top: 3.4rem; display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid hsl(40 40% 90% / .28); max-width: 680px; }
.hero-meta div { padding: 1.3rem 2rem 0 0; margin-right: 2rem;
  border-right: 1px solid hsl(40 40% 90% / .28); }
.hero-meta div:last-child { border-right: 0; margin-right: 0; }
.hero-meta dt { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: hsl(40 36% 86%); font-weight: 800; }
.hero-meta dd { font-family: var(--ff-display); font-size: 1.55rem; color: #fff; margin-top: .25rem; }

/* ---------- Page hero (interior, photo) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding-block: clamp(4.5rem,9vw,7rem) clamp(4.5rem,8vw,6.5rem);
  background-image:
    linear-gradient(172deg, hsl(196 56% 10% / .58) 0%, hsl(196 52% 12% / .42) 45%, hsl(196 58% 10% / .82) 100%),
    url("/static/img/coast-sky.jpg");
  background-size: cover; background-position: center 52%;
}
.page-hero::after { content: ""; position: absolute; left:0; right:0; bottom:-1px;
  height: clamp(40px,5vw,72px); background: var(--wave) bottom/100% 100% no-repeat; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-top: 1.1rem; max-width: 18ch;
  text-shadow: 0 2px 26px hsl(196 60% 8% / .5); }
.page-hero .lead { margin-top: 1.1rem; color: hsl(40 40% 94%); max-width: 56ch; }
.crumbs { font-size: .82rem; color: hsl(40 36% 86%); font-weight: 600; }
.crumbs a { color: hsl(40 36% 86%); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 72ch; }
.sec-head h2 { margin-top: 1rem; }
.sec-head .lead { margin-top: 1.1rem; }
.sec-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: end;
  max-width: none; }
.sec-head--split .lead { margin-top: 0; }

/* ---------- Prose ---------- */
.prose p { margin-top: 1.15rem; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; }
.prose .lead { color: var(--ink-soft); }
.section--navy .prose p { color: var(--on-dark-dim); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }

.card {
  background: var(--shell); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 2.1rem 1.95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-num { font-family: var(--ff-display); font-size: 1rem; color: var(--coral-deep);
  font-style: italic; }
.card h3 { font-size: 1.4rem; margin-top: .55rem; }
.card p { margin-top: .6rem; color: var(--ink-soft); font-size: .99rem; }

/* Value / principle card */
.value { padding: 1.9rem 1.7rem; background: var(--shell); border-radius: var(--r);
  border: 1px solid var(--line-soft); }
.value .idx { font-family: var(--ff-display); font-size: 2.4rem; color: var(--surf);
  line-height: 1; }
.value h3 { font-size: 1.28rem; margin-top: .5rem; }
.value p { margin-top: .5rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Company panels ---------- */
.company {
  display: grid; grid-template-columns: 210px 1fr auto; gap: 2rem; align-items: center;
  background: var(--shell); border: 1px solid var(--line-soft); border-left: 5px solid var(--sea);
  border-radius: var(--r); padding: 2.2rem 2.3rem;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.company:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.company--rehab { border-left-color: var(--coral); }
.company-id .tag { font-size: .7rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-faint); }
.company-id h3 { font-size: 1.6rem; margin-top: .3rem; }
.company-body p { color: var(--ink-soft); font-size: .99rem; }
.company-body .facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-size: .78rem; font-weight: 700; padding: .38rem .8rem; border-radius: 100px;
  background: hsl(184 64% 30% / .09); color: var(--sea-700); }
.chip--red { background: hsl(12 82% 63% / .14); color: var(--coral-deep); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 2.6rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--sea), var(--surf)); }
.t-item { position: relative; padding: 0 0 2.5rem 2.3rem; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content: ""; position: absolute; left: -2rem; top: 3px; transform: translateX(-1px);
  width: 15px; height: 15px; border-radius: 50%; background: var(--sand);
  border: 3px solid var(--sea); }
.t-item--soft::before { border-color: var(--ink-faint); }
.t-year { font-family: var(--ff-display); font-size: 1.4rem; color: var(--coral-deep);
  font-style: italic; }
.t-item h3 { font-size: 1.24rem; margin-top: .1rem; }
.t-item p { margin-top: .4rem; color: var(--ink-soft); font-size: .98rem; max-width: 56ch; }
.section--navy .t-item::before { background: var(--sea-deep); }
.section--navy .t-item h3 { color: #fff; }
.section--navy .t-item p { color: var(--on-dark-dim); }
.section--navy .timeline::before { background: linear-gradient(hsl(12 84% 66%), hsl(178 40% 40%)); }

/* ---------- Credential strip ---------- */
.creds { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--shell); box-shadow: var(--shadow-sm); }
.cred { padding: 1.9rem 1.6rem; border-right: 1px solid var(--line-soft); }
.cred:last-child { border-right: 0; }
.cred dt { font-size: .73rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 800; }
.cred dd { font-family: var(--ff-display); font-size: 1.8rem; color: var(--sea);
  margin-top: .35rem; line-height: 1.12; }
.cred dd small { display: block; font-family: var(--ff-body); font-size: .82rem;
  font-weight: 600; color: var(--ink-soft); margin-top: .35rem; letter-spacing: 0; }

/* ---------- License cards ---------- */
.license {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2.1rem 2rem 1.7rem; position: relative; overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.license:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.license::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--sea); }
.license--red::before { background: var(--coral); }
.license .lic-kind { font-size: .74rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); }
.license .lic-no { font-family: var(--ff-display); font-size: 2.2rem; color: var(--sea);
  margin-top: .25rem; }
.license h3 { font-size: 1.18rem; margin-top: .85rem; }
.license p { font-size: .93rem; color: var(--ink-soft); margin-top: .45rem; }
.license dl { margin-top: 1rem; border-top: 1px solid var(--line-soft); padding-top: 1rem;
  display: grid; gap: .5rem; }
.license dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.license dl dt { color: var(--ink-faint); }
.license dl dd { font-weight: 700; text-align: right; }
.verify-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem;
  font-weight: 800; font-size: .88rem; color: var(--sea); text-decoration: none;
  border-bottom: 2px solid hsl(184 64% 30% / .28); padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease); }
.verify-link:hover { border-color: var(--coral); gap: .65rem; }
.verify-link::after { content: "↗"; }

/* ---------- Note box ---------- */
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--coral);
  background: hsl(12 82% 63% / .06); border-radius: var(--r-sm);
  padding: 1.5rem 1.7rem; font-size: .96rem; color: var(--ink-soft);
}
.note b { color: var(--ink); font-weight: 700; }

/* ---------- Feature (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem);
  align-items: center; }
.feature__media { position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem .9rem;
  background: linear-gradient(transparent, hsl(196 58% 9% / .82));
  color: hsl(40 40% 92%); font-size: .8rem; font-weight: 600; }

/* ---------- CTA band (photo) ---------- */
.cta-band {
  position: relative; color: #fff; overflow: hidden;
  background-image:
    linear-gradient(120deg, hsl(196 58% 11% / .92) 0%, hsl(186 60% 20% / .80) 55%, hsl(184 60% 26% / .68) 100%),
    url("/static/img/coast-calm.jpg");
  background-size: cover; background-position: center;
}
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr auto;
  gap: 2.5rem; align-items: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cta-inner p { color: hsl(40 38% 90%); margin-top: .7rem; max-width: 48ch; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,5vw,4.5rem);
  align-items: start; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--coral-deep); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; padding: .88rem 1.05rem; color: var(--ink);
  background: var(--shell); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 135px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sea);
  box-shadow: 0 0 0 4px hsl(184 64% 30% / .12);
}
.form-note { font-size: .85rem; color: var(--ink-faint); }
.form-status { font-size: .92rem; font-weight: 700; padding: .85rem 1.05rem; border-radius: var(--r-sm);
  display: none; }
.form-status.show { display: block; }
.form-status.ok { background: hsl(168 54% 38% / .14); color: hsl(178 60% 24%); }
.form-status.err { background: hsl(12 82% 63% / .15); color: var(--coral-deep); }

.contact-aside { background: var(--sea-deep); color: var(--on-dark); border-radius: var(--r);
  padding: 2.5rem; position: relative; overflow: hidden;
  background-image: linear-gradient(170deg, hsl(196 56% 13%), hsl(190 58% 9%)); }
.contact-aside h3 { color: #fff; font-size: 1.5rem; }
.contact-aside .ca-item { margin-top: 1.4rem; padding-top: 1.4rem;
  border-top: 1px solid hsl(190 30% 70% / .18); }
.contact-aside .ca-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-aside dt { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--on-dark-dim); font-weight: 800; }
.contact-aside dd { margin-top: .3rem; font-size: 1.02rem; }
.contact-aside dd a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-deep); color: var(--on-dark-dim);
  padding-block: clamp(3.5rem,6vw,5rem) 2rem; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.8rem; border-bottom: 1px solid hsl(190 30% 70% / .16); }
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { margin-top: 1.1rem; max-width: 40ch; }
.footer-col h4 { font-family: var(--ff-body); font-size: .76rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--on-dark-dim); font-weight: 800; }
.footer-col ul { list-style: none; margin-top: 1rem; display: grid; gap: .6rem; }
.footer-col a { text-decoration: none; color: var(--on-dark); transition: color .2s var(--ease); }
.footer-col a:hover { color: hsl(12 84% 70%); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem;
  padding-top: 1.8rem; font-size: .83rem; color: var(--on-dark-dim); }
.footer-bottom a { color: var(--on-dark-dim); }
.footer-bottom a:hover { color: hsl(12 84% 70%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease),
  transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* hero load-in */
.hero .reveal { opacity: 0; transform: translateY(28px); animation: rise .95s var(--ease) forwards; }
.hero .reveal[data-d="1"] { animation-delay: .12s; }
.hero .reveal[data-d="2"] { animation-delay: .26s; }
.hero .reveal[data-d="3"] { animation-delay: .40s; }
.hero .reveal[data-d="4"] { animation-delay: .54s; }
.hero .reveal[data-d="5"] { animation-delay: .68s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (scripting: none) { .hero .reveal { animation: none; opacity: 1; } }

/* ---------- 404 ---------- */
.error-page { min-height: 64vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--ff-display); font-size: clamp(5rem,16vw,11rem);
  color: var(--surf); line-height: .9; }

/* ---------- Misc ---------- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--sea); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--r-sm); }
.center { text-align: center; }
.mt-1{margin-top:1rem;} .mt-2{margin-top:2rem;} .mt-3{margin-top:3rem;}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .company { grid-template-columns: 1fr; gap: 1.3rem; }
  .creds { grid-template-columns: repeat(2,1fr); }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .cta-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--sand); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.5rem; transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-meta div { border-right: 0; padding-right: 0; margin-right: 0; flex: 1 1 44%; }
}
@media (max-width: 460px) {
  .creds { grid-template-columns: 1fr; }
  .cred { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .cred:last-child { border-bottom: 0; }
}
