/* ==========================================================================
   UpTime theme — main stylesheet
   Brand palette sampled from "Hang Gliding.png". Fonts are self-hosted (OFL) in ../fonts.
   To use your own fonts: replace the @font-face rules and the --font-* tokens.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-wght.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-wght.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-wght.woff2") format("woff2-variations"), url("../fonts/figtree-wght.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}


:root {
  /* Brand */
  --ink: #160F29;          /* near-black navy */
  --teal: #246A73;         /* deep teal (primary) */
  --teal-2: #368F8B;       /* lighter teal-green */
  --cream: #F3DFC1;        /* warm cream */
  --tan: #DDBEA8;          /* dusty tan */

  /* Neutrals (biased warm toward cream) */
  --paper: #FBF8F3;
  --paper-2: #F5EDE1;
  --line: #E4D9C8;
  --muted: #564F66;        /* secondary text on light */
  --on-dark: #F3DFC1;
  --on-dark-muted: #C8C1D6;
  --dark-2: #211A38;       /* raised surface on navy */

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cream); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark a:not(.btn) { color: var(--cream); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--teal-2); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.section--dark .lede { color: var(--on-dark-muted); }
.measure { max-width: 65ch; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.5rem; }

.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 760px; }
.section-head--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head--split > div { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; flex: none; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(22,15,41,.6); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(243,223,193,.6); color: var(--cream); background: transparent; }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(243,223,193,.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  font-weight: 700; text-decoration: none; color: var(--teal);
  display: inline-flex; align-items: center; gap: .4em;
}
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 54px; width: auto; }
@media (max-width: 560px) { .brand img { height: 44px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--teal); background: rgba(36,106,115,.08); }
.nav .btn[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav .btn { margin-left: 10px; min-height: 44px; padding-inline: 1.15rem; font-size: 0.95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 20px 30px -24px rgba(22,15,41,.4);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { display: block; padding: 14px 12px; border-radius: 10px; font-size: 1.1rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(120% 70% at 75% 115%, rgba(221,190,168,.55) 0%, rgba(221,190,168,0) 55%),
    radial-gradient(80% 60% at 15% 110%, rgba(54,143,139,.55) 0%, rgba(54,143,139,0) 60%),
    linear-gradient(180deg, #160F29 0%, #1B1C3A 38%, #1F3E55 70%, #246A73 100%);
}
.hero .wrap{
	max-width:1400px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: center; gap: 2rem;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(6rem, 4rem + 6vw, 9rem);
}
.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; max-width: 620px; position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cream); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.4em; overflow: visible; }
.hero__lede { font-size: var(--step-1); color: var(--on-dark-muted); max-width: 52ch; line-height: 1.55; }
.hero__stage { position: relative; aspect-ratio: 5 / 4; perspective: 900px; z-index: 1; }
.hero__glider {
  position: absolute; left: 4%; top: 6%; width: 92%;
  transform-style: preserve-3d; will-change: transform;
  filter: drop-shadow(0 30px 30px rgba(10, 6, 25, .45));
}
.hero__glider img { width: 100%; }
.hero__readout {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(243,223,193,.14);
  background: rgba(22,15,41,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__readout ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  padding-block: 14px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hero__readout li { display: inline-flex; align-items: center; gap: 10px; }
.hero__readout b { color: var(--cream); font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ED3B5; box-shadow: 0 0 0 0 rgba(94,211,181,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,211,181,.55); } 70% { box-shadow: 0 0 0 10px rgba(94,211,181,0); } 100% { box-shadow: 0 0 0 0 rgba(94,211,181,0); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 2.5rem; gap: 0; }
  .hero__stage { order: -1; max-width: 420px; width: 100%; margin: 0 auto; aspect-ratio: 5 / 3.6; }
  .hero__glider { top: 0; }
  .hero__readout li:nth-child(2), .hero__readout li:nth-child(3) { display: none; }
  .hero__readout li { gap: 8px; }
  .hero__readout ul { letter-spacing: 0.06em; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 120%, rgba(54,143,139,.45), transparent 60%),
    radial-gradient(50% 70% at 85% -20%, rgba(221,190,168,.18), transparent 60%);
}
.page-hero__swirl { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(520px, 60vw); opacity: .18; z-index: -1; color: var(--cream); pointer-events: none; }
.page-hero h1 { color: #fff; max-width: 16ch; font-size: var(--step-5); }
.page-hero .lede { color: var(--on-dark-muted); margin-top: 1.25rem; }
.page-hero .eyebrow { margin-bottom: 1.25rem; }
.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

/* ---------- Why it matters ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: why; }
.why-item { display: flex; flex-direction: column; gap: .9rem; padding-top: 1.5rem; }
.why-item__icon { width: 52px; height: 52px; color: var(--teal); }
.why-item h3 { font-size: 1.45rem; }
.why-item p { color: var(--muted); }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } .why-item { border-top: 2px solid var(--ink); } }

/* ---------- Stats band ---------- */
.stats { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.stats::after {
  /* Static Front Range ridgelines (same shapes as the hero). Fixed pixel scale so the peaks
     keep their proportions at any width; dark tints only, so the text contrast only improves. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/front-range.svg") center bottom / 3000px 260px no-repeat;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); position: relative; z-index: 1; }
.stat { display: flex; flex-direction: column; gap: .5rem; padding-left: 1.25rem; border-left: 1px solid rgba(243,223,193,.3); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 2.2vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; color: var(--cream); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .95rem; color: #E1EFEE; line-height: 1.4; max-width: 22ch; }
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }

/* ---------- Services cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(22,15,41,.55); border-color: var(--teal-2); color: var(--ink); }
.service-card__icon { width: 86px; height: 86px; border-radius: 16px; background: var(--paper-2); color: var(--teal); display: grid; place-items: center; transition: background-color .35s ease, color .35s ease; }
.service-card__icon svg { width: 50px; height: 50px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.service-card:hover .service-card__icon { background: var(--teal); color: var(--cream); }
.service-card:hover .service-card__icon svg { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.service-card .text-link { margin-top: .25rem; }
.service-card--flag::before {
  content: "Core service"; position: absolute; top: -11px; left: 1.5rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--cream); padding: 5px 10px; border-radius: 999px;
}
@media (max-width: 1040px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Care plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem 1.5rem 1.75rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.plan-card h3 { font-size: 1.3rem; }
.plan-card__price { font-size: var(--step--1); color: var(--muted); }
.plan-card__price span { font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-right: .25rem; }
.plan-card__lead { color: var(--muted); font-size: .98rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.plan-note { margin: 2rem 0 1.25rem; max-width: 60ch; color: var(--muted); font-size: .98rem; }
@media (max-width: 1040px) { .plan-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.work-card { display: flex; flex-direction: column; gap: 1.8rem; }
.work-card[hidden] { display: none; }
.shot {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 11; max-width: 100%;
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -40px rgba(22,15,41,.7);
}
.shot__bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: #EFE8DC; display: flex; align-items: center; gap: 6px; padding-inline: 12px; z-index: 2; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3C6B2; }
.shot__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: .68rem; color: #7A7186; letter-spacing: .04em; background: #fff; border-radius: 999px; padding: 2px 12px; }
.shot__img { position: absolute; top: 30px; left: 0; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: 50% 0%; transition: object-position 6s cubic-bezier(.45,.05,.35,1); }
.shot { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.shot__img { pointer-events: none; }
.shot:focus-visible .shot__img, .shot.is-pressed .shot__img { object-position: 50% 100%; }
@media (hover: hover) { .shot:hover .shot__img { object-position: 50% 100%; } }
.shot__hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(22,15,41,.85); color: var(--cream); padding: 6px 10px; border-radius: 999px;
  transition: opacity .3s ease;
}
.shot.is-pressed .shot__hint, .shot:focus-visible .shot__hint { opacity: 0; }
@media (hover: hover) { .shot:hover .shot__hint { opacity: 0; } }
.shot__hint--touch { display: none; }
@media (hover: none) { .shot__hint--hover { display: none; } .shot__hint--touch { display: inline; } }
.work-card__meta { display: flex; flex-direction: column; gap: .5rem; }
.work-card__meta h2, .work-card__meta h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.work-card__meta p { color: var(--muted); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* Board-style work visuals (branding / motion) */
.board { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; max-width: 100%; }
.board--brand { background: #fff; border: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto; }
.board--brand .board__logo { display: grid; place-items: center; padding: 6% 9%; }
.board--brand .board__logo img { width: 100%; max-width: 440px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.board--brand:hover .board__logo img { transform: scale(1.04); }
.board__swatches { display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; }
.board__swatches i { display: flex; align-items: flex-end; padding: 8px; font-family: var(--font-mono); font-style: normal; font-size: .6rem; letter-spacing: .06em; }
.board--motion { background: linear-gradient(180deg, #160F29 0%, #1F3E55 70%, #246A73 100%); }
.board--motion img { position: absolute; width: 62%; left: 19%; top: 14%; animation: glide 6s ease-in-out infinite; filter: drop-shadow(0 20px 20px rgba(0,0,0,.35)); }
.board--motion .board__wind { position: absolute; inset: 0; color: rgba(243,223,193,.35); }
.board--motion .board__wind path { stroke-dasharray: 60 240; animation: wind 4s linear infinite; }
.board--motion .board__wind path:nth-child(2) { animation-delay: -1.3s; }
.board--motion .board__wind path:nth-child(3) { animation-delay: -2.6s; }
.board__frames { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 4px; }
.board__frames i { width: 18px; height: 12px; border-radius: 2px; background: rgba(243,223,193,.25); animation: frame 1.2s steps(1) infinite; }
.board__frames i:nth-child(2) { animation-delay: .15s; } .board__frames i:nth-child(3) { animation-delay: .3s; } .board__frames i:nth-child(4) { animation-delay: .45s; }
.board__frames i:nth-child(5) { animation-delay: .6s; } .board__frames i:nth-child(6) { animation-delay: .75s; } .board__frames i:nth-child(7) { animation-delay: .9s; } .board__frames i:nth-child(8) { animation-delay: 1.05s; }
@keyframes glide { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(-3%, -5%) rotate(2deg); } }
@keyframes wind { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes frame { 0% { background: var(--cream); } 12% { background: rgba(243,223,193,.25); } }

/* Private work callout */
.private-note {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark);
}
.private-note__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(243,223,193,.1); display: grid; place-items: center; color: var(--cream); }
.private-note__icon svg { width: 26px; height: 26px; }
.private-note h3 { color: #fff; font-size: 1.35rem; margin-bottom: .35rem; }
.private-note p { color: var(--on-dark-muted); max-width: 60ch; }
@media (max-width: 760px) { .private-note { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.flight-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative; list-style: none; }
.flight-path::before {
  content: ""; position: absolute; left: 22px; right: calc(20% - 1rem - 22px); top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-2) 0 8px, transparent 8px 16px);
}
.flight-step { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.flight-step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--teal);
  position: relative; z-index: 1; margin-bottom: .5rem;
  transition: background-color .3s ease, color .3s ease;
}
.section--alt .flight-step__num { background: var(--paper-2); }
.flight-step:hover .flight-step__num { background: var(--teal); color: #fff; }
.flight-step__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.flight-step h3 { font-size: 1.25rem; }
.flight-step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) {
  .flight-path { grid-template-columns: 1fr; gap: 1.75rem; }
  .flight-path::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal-2) 0 8px, transparent 8px 16px); }
  .flight-step { padding-left: 68px; }
  .flight-step__num { position: absolute; left: 0; top: 0; }
}

/* Detailed process (process page) */
.phase { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); border-top: 1px solid var(--line); }
.phase:first-child { border-top: 0; padding-top: 0; }
.phase__head { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.phase__num { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; line-height: .9; color: var(--tan); letter-spacing: -0.05em; }
.phase__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.phase__head h2 { font-size: var(--step-3); }
.phase__body { display: flex; flex-direction: column; gap: 1.5rem; }
.phase__body > p { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.phase__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.phase__box { border-radius: var(--radius-sm); padding: 1.25rem 1.35rem; background: #fff; border: 1px solid var(--line); }
.phase__box h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.phase__box--you { background: var(--paper-2); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: .98rem; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F3DFC1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.section--dark .check-list li::before { background-color: var(--teal-2); }
@media (max-width: 860px) {
  .phase { grid-template-columns: 1fr; gap: 1.5rem; }
  .phase__head { position: static; }
  .phase__cols { grid-template-columns: 1fr; }
}

/* ---------- About teaser & about page ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--teal) 0%, var(--ink) 100%);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--cream); text-align: center; padding: 2rem; }
.portrait__placeholder img { width: 46%; height: auto; opacity: .95; }
.portrait__placeholder span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.portrait__tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); background: rgba(22,15,41,.72); padding: 10px 14px; border-radius: 10px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.timeline { list-style: none; display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.timeline b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--teal); line-height: 1.2; }
.timeline p { color: var(--muted); max-width: 55ch; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .about-split .portrait { max-width: 420px; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 1.75rem; border-radius: var(--radius); background: var(--dark-2); display: flex; flex-direction: column; gap: .75rem; }
.value svg { width: 36px; height: 36px; color: var(--teal-2); }
.value h3 { color: #fff; font-size: 1.3rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.tool-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tool-list li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.tool-list li.is-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Testimonials (placeholder) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote {
  margin: 0;
  display: flex; flex-direction: column; gap: 1.25rem; justify-content: space-between;
  padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px dashed #C9BBA5;
}
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: #8B8196; }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--tan); margin-bottom: .5rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: #8B8196; }
.quote figcaption i { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 1px dashed #C9BBA5; flex: none; }
.placeholder-flag { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9A5B2E; background: #FBEBDD; border: 1px solid #F0D2B8; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-dark); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.cta-band h2 { color: #fff; font-size: var(--step-4); }
.cta-band p { color: var(--on-dark-muted); font-size: var(--step-1); margin-top: 1rem; max-width: 46ch; }
.cta-band__art { position: relative; justify-self: end; width: min(360px, 100%); }
.cta-band__art img { width: 100%; animation: glide 7s ease-in-out infinite; }
.cta-band__side { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 100%, rgba(36,106,115,.7), transparent 65%); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__art { justify-self: center; width: 220px; } }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail__head { display: flex; flex-direction: column; gap: 1rem; }
.service-detail__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--teal); color: var(--cream); display: grid; place-items: center; }
.service-detail__icon svg { width: 34px; height: 34px; }
.service-detail__head h2 { font-size: var(--step-3); }
.service-detail__head .fit { font-size: .98rem; color: var(--muted); padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--paper-2); }
.service-detail__head .fit b { color: var(--ink); }
.service-detail__body { display: flex; flex-direction: column; gap: 1.5rem; }
.service-detail__body > p { font-size: var(--step-1); line-height: 1.55; }
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.service-detail__body h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } .included { grid-template-columns: 1fr; } }

.service-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.service-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(243,223,193,.3); color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s ease, border-color .2s ease; }
.service-jump a:hover { background: rgba(243,223,193,.1); border-color: var(--cream); color: #fff; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--teal); transition: transform .25s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--muted); max-width: 70ch; display: flex; flex-direction: column; gap: .75rem; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }
/* Questions under each service on the Services page */
.service-faq { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.service-faq .faq summary { font-size: 1.08rem; padding: 1.05rem 0; }
.service-faq .faq summary::after { font-size: 1.5rem; }
.service-faq .faq details > div { padding-bottom: 1.15rem; }

/* ---------- Work page filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.5rem; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 600 .95rem/1 var(--font-body); color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter span { font-family: var(--font-mono); font-size: .7rem; opacity: .7; margin-left: 6px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label, .fieldset legend { font-weight: 700; font-size: .95rem; }
.field .opt, .fieldset legend .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 10px;
  border: 1.5px solid #D9CDB9; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(36,106,115,.15); }
.field input[aria-invalid="true"] { border-color: #B4442F; }
.field .error { color: #B4442F; font-size: .85rem; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.fieldset legend { padding: 0; margin-bottom: .75rem; }
.fieldset .hint { font-size: .88rem; color: var(--muted); margin-top: -.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #D9CDB9; background: var(--paper); cursor: pointer; font-weight: 600; font-size: .93rem;
  transition: all .18s ease; user-select: none;
}
.chip label:hover { border-color: var(--teal); }
.chip input:checked + label { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + label { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-top: .5rem; border-top: 1px solid var(--line); }
.form__foot p { font-size: .88rem; color: var(--muted); max-width: 40ch; padding-top: 1rem; }
.form__foot .btn { margin-top: 1rem; }
.form-success { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1rem 0; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: var(--cream); display: grid; place-items: center; }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success h2 { font-size: var(--step-3); }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.aside-stack { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { border-radius: var(--radius); padding: 1.6rem; background: var(--paper-2); display: flex; flex-direction: column; gap: 1rem; }
.aside-card--dark { background: var(--ink); color: var(--on-dark); }
.aside-card--dark h3 { color: #fff; }
.aside-card h3 { font-size: 1.25rem; }
.next-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1rem; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: .96rem; color: var(--on-dark-muted); line-height: 1.5; }
.next-steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,223,193,.12); color: var(--cream); font-family: var(--font-mono); font-size: .8rem; }
.next-steps b { color: var(--cream); font-weight: 600; }
.contact-lines { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.contact-lines li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .98rem; }
.contact-lines svg { width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.contact-lines small { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-lines a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--teal); }
@media (max-width: 960px) { .aside-stack { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: #100A1F; color: var(--on-dark-muted); padding-top: clamp(3.5rem, 3rem + 2vw, 5rem); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: clamp(2.5rem, 1.5rem + 3vw, 5rem); row-gap: 2.5rem; padding-bottom: 3rem; } /* logo column takes the spare space; link columns size to their content with equal gaps */
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 34ch; }
.footer-brand .brand img { height: 64px; }
.footer-col h4 { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; font-size: .96rem; }
.footer-base { border-top: 1px solid rgba(243,223,193,.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer-base .status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(3, auto); justify-content: start; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: 2.5rem; } .footer-grid .footer-col:last-child { grid-column: 1 / -1; } } /* Explore hugs its links, Services gets the rest; Contact gets its own row */

/* ---------- Motion: reveal (content is visible at rest; JS adds a gentle rise) ---------- */
.js .reveal { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-below { transform: translateY(32px); }
.js .reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal.is-below { transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }


/* ==========================================================================
   WordPress additions
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Work media variants (image + video) */
.board--image, .board--video { display: block; background: var(--paper-2); border: 1px solid var(--line); }
.board--image img, .board--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
a.board--image:hover img { transform: scale(1.03); }
.board--video { /*background: var(--ink); border: 0;*/ }
.board--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--teal) 0%, var(--ink) 100%); color: var(--cream); font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.03em; padding: 2rem; text-align: center; }
.work-card__meta h3 a { color: inherit; text-decoration: none; }
.work-card__meta h3 a:hover { color: var(--teal); }
.work-card__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.work-empty { padding: 3rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Filters rendered as links (work with and without JS) */
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
a.filter[aria-current] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Single work post (case study) */
.case-media { margin-top: calc(-1 * clamp(2rem, 1.5rem + 3vw, 4rem)); position: relative; z-index: 2; }
.case-media .shot, .case-media .board { aspect-ratio: 16 / 9; box-shadow: 0 40px 60px -40px rgba(22,15,41,.6); }
.case-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 1.75rem; }
.entry-content { max-width: 98ch; font-size: 1.1rem; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: var(--step-3); margin-top: 2em; }
.entry-content h3 { font-size: var(--step-2); margin-top: 1.75em; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content video { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--teal-2); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.entry-content a { font-weight: 600; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.page-default .entry-content { margin-inline: auto; }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* 404 */
.not-found { text-align: left; }
.not-found .btn-row { margin-top: 2rem; }

/* ---------- Form plugins: inherit the quote-form look ---------- */
/* Works for Contact Form 7, Fluent Forms, WPForms, Gravity Forms: any plain inputs inside .plugin-form (the Contact page content). */
.plugin-form form { display: flex; flex-direction: column; gap: 1.5rem; }
.plugin-form form p { margin: 0; }
.plugin-form label { font-weight: 700; font-size: .95rem; }
.plugin-form input[type="text"], .plugin-form input[type="email"], .plugin-form input[type="tel"], .plugin-form input[type="url"], .plugin-form input[type="number"], .plugin-form select, .plugin-form textarea {
  display: block; width: 100%; min-height: 50px; margin-top: .45rem; padding: .75rem .95rem; border-radius: 10px;
  border: 1.5px solid #D9CDB9; background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.plugin-form textarea { min-height: 140px; resize: vertical; }
.plugin-form input:focus, .plugin-form select:focus, .plugin-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(36,106,115,.15); }
.plugin-form input[type="submit"], .plugin-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; font: 700 1rem/1 var(--font-body); cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.plugin-form input[type="submit"]:hover, .plugin-form button[type="submit"]:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
/* CF7 checkbox/radio groups as chips (see cf7-form-template.txt) */
.plugin-form .wpcf7-checkbox, .plugin-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .75rem; }
.plugin-form .wpcf7-list-item { margin: 0; }
.plugin-form .wpcf7-list-item label { position: relative; display: inline-flex; font-weight: 600; cursor: pointer; }
.plugin-form .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plugin-form .wpcf7-list-item-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D9CDB9; background: var(--paper); font-size: .93rem; transition: all .18s ease; }
.plugin-form .wpcf7-list-item label:hover .wpcf7-list-item-label { border-color: var(--teal); }
.plugin-form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--teal); border-color: var(--teal); color: #fff; }
.plugin-form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.plugin-form .uptime-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.plugin-form .uptime-hint { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.plugin-form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.plugin-form .wpcf7-not-valid { border-color: #B4442F !important; }
.plugin-form .wpcf7-not-valid-tip { color: #B4442F; font-size: .85rem; margin-top: .35rem; display: block; }
.plugin-form .wpcf7-response-output { margin: 0 !important; /*padding: 1rem 1.15rem !important;*/ border-radius: 10px; /*border: 1.5px solid var(--teal-2) !important;*/ background: white; }
.plugin-form .wpcf7 form.invalid .wpcf7-response-output { border-color: #B4442F !important; }
.plugin-form .wpcf7-spinner { margin: 0 0 0 12px; }
@media (max-width: 560px) { .plugin-form .uptime-row { grid-template-columns: 1fr; } }
.admin-note { padding: 1rem 1.25rem; border-radius: 10px; background: #FBEBDD; border: 1px solid #F0D2B8; color: #7A4520; font-size: .95rem; margin-bottom: 1.5rem; }
.quotes--live .quote { border-style: solid; border-color: var(--line); }
.quotes--live .quote blockquote { color: var(--ink); }
.quotes--live .quote figcaption { color: var(--muted); }
/* Live testimonials fill the row whether there are 2 or 3 of them. */
.quotes--live { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote figcaption .quote__avatar { width: 52px; height: 52px; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--teal); background: var(--paper-2) center / cover no-repeat; }
.quotes--live .quote figcaption .quote__avatar { border: 0; box-shadow: inset 0 0 0 1px rgba(22,15,41,.08); }
.quote figcaption .quote__avatar.has-image { color: transparent; }
.plugin-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plugin-form legend { padding: 0; font-weight: 700; font-size: .95rem; }

/* About: timeline roles + tool groups */
.timeline h3 { font-size: 1.15rem; margin: .2rem 0 .35rem; letter-spacing: -0.01em; }
.timeline h3 span { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.tool-group h3 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .85rem; }

/* Hero sprite sheet: 12 frames side by side. background-size makes one frame fill the box at any width;
   background-position-x steps 0% to 100% across frames (JS). Default = middle frame (6 of 0-11). */
.hero__stage { touch-action: pan-y; }
.hero__sprite { width: 100%; aspect-ratio: 1000 / 666; background-repeat: no-repeat; background-size: 1200% 100%; background-position: 54.5454% 0; }

/* Work single post: media gallery (images + video) */
.entry-content figure>video{
  max-height: calc(100vh - var(--header-h) - 4rem); /* leave some space for the header and a bit of margin */
}
