/* ==========================================================================
   Broadstreet 2026: site stylesheet
   Tokens first; everything below is driven from them.
   ========================================================================== */

/* ---------- Type: licensed TradeGothic (client-owned files) + free companions ---------- */
@font-face { font-family: "TradeGothic Bold Condensed"; src: url("/fonts/tradegothic-bold-cond-20.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TradeGothic Condensed";      src: url("/fonts/tradegothic-cond-18.woff2") format("woff2");      font-weight: 400; font-display: swap; }
@font-face { font-family: "TradeGothic Extended";       src: url("/fonts/tradegothic-extended.woff2") format("woff2");     font-weight: 400; font-display: swap; }
@font-face { font-family: "TradeGothic Light";          src: url("/fonts/tradegothic-light.woff2") format("woff2");        font-weight: 300; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand palette, sampled from the live site */
  --ink: #0d1012;          /* header / footer black */
  --ink-2: #16191b;
  --slate: #405a63;        /* page background on Our Work + Contact */
  --slate-hi: #4f6c76;
  --slate-lo: #2e434a;
  --lime: #c5e376;         /* sector labels */
  --lime-band: #cbe083;    /* services band, values section */
  --lime-hot: #cee54e;     /* hover */
  --green: #97c93a;        /* headline accent */
  --green-rule: #a0c652;
  --olive: #c1d084;        /* slide links */
  --sky: #a8cdea;          /* "street" */
  --blue: #2460a7;         /* client login, closing line */
  --blue-line: #399cd3;    /* active nav underline */
  --paper: #ffffff;
  --text: #1b1f21;
  --muted: #5c666b;
  --faint: rgba(255, 255, 255, .14);

  --f-display: "TradeGothic Bold Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-cond: "TradeGothic Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-ext: "TradeGothic Extended", "Libre Franklin", system-ui, sans-serif;
  --f-light: "TradeGothic Light", "Libre Franklin", system-ui, sans-serif;
  --f-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-nav: "Roboto Condensed", "Arial Narrow", sans-serif;

  --hh0: 76px;             /* header height at rest (body offset) */
  --hh: var(--hh0);        /* live header height (sticky offsets) */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r: 7px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 7px 22px 2px rgba(0, 0, 0, .39);
  --shadow-hi: 0 14px 40px 4px rgba(0, 0, 0, .55);
}
html.is-scrolled { --hh: 60px; }
@media (max-width: 899px) { :root { --hh0: 64px; } html.is-scrolled { --hh: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0; padding-top: var(--hh0);
  font: 400 17px/1.6 var(--f-body); color: var(--text); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: var(--blue); color: var(--sky); font: 700 13px var(--f-body); text-transform: uppercase; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--sky);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.4em; border: 0; border-radius: 8px;
  background: var(--bg); color: var(--fg); cursor: pointer;
  font: 700 12.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px rgba(0, 0, 0, .35); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__out { font-size: .9em; transition: transform .3s var(--ease); }
.btn:hover .btn__out { transform: translate(2px, -2px); }
.btn--dark { --bg: #000; --fg: #fff; font-size: 14px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.btn--lime { --bg: var(--lime-hot); --fg: #111; }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .16); }

/* ---------- Site header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh);
  background: rgba(13, 16, 18, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: height .35s var(--ease), background-color .35s;
}
.site-head::after { /* brand hairline */
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 198, 82, .55) 20%, rgba(57, 156, 211, .55) 80%, transparent);
  opacity: 0; transition: opacity .35s;
}
html.is-scrolled .site-head { background: rgba(13, 16, 18, .94); }
html.is-scrolled .site-head::after { opacity: 1; }
.site-head__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); padding-inline: var(--gutter); }
.site-head__logo { flex: none; display: block; }
.site-head__logo img { width: 160px; transition: width .35s var(--ease); }
html.is-scrolled .site-head__logo img { width: 132px; }

.site-nav { flex: 1; }
.site-nav__list { position: relative; display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45em;
  padding: 9px 14px; border-radius: 999px;
  font: 700 16px/1 var(--f-nav); letter-spacing: .02em; text-transform: uppercase; color: #fff; text-decoration: none;
}
.site-nav__link i { opacity: .5; font-size: .92em; transition: opacity .25s, color .25s, transform .35s var(--ease); }
.site-nav__link:hover i { opacity: .9; transform: translateY(-1px); }
.site-nav__link span { position: relative; }
.site-nav__link span::after { /* active underline, as on the live site */
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--blue-line); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.site-nav__link.is-active span::after { transform: scaleX(1); }
.site-nav__link.is-active i { color: var(--green-rule); opacity: 1; }
.site-nav__glider { /* pill that glides to the hovered item */
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out), opacity .25s;
}
.btn--login { flex: none; }
.burger { display: none; }

@media (max-width: 899px) {
  .site-nav, .site-head .btn--login { display: none; }
  .site-head__inner { justify-content: space-between; }
  .site-head__logo img { width: 138px; }
  html.is-scrolled .site-head__logo img { width: 124px; }
  .burger {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .06); cursor: pointer;
  }
  .burger__bars { position: relative; width: 22px; height: 16px; }
  .burger__bars span {
    position: absolute; left: 0; height: 2px; border-radius: 2px; background: #fff;
    transition: transform .4s var(--ease-out), opacity .2s, width .3s var(--ease);
  }
  .burger__bars span:nth-child(1) { top: 0; width: 22px; }
  .burger__bars span:nth-child(2) { top: 7px; width: 15px; background: var(--lime); }
  .burger__bars span:nth-child(3) { top: 14px; width: 22px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* mobile menu lives outside the header (header has backdrop-filter, which would trap position:fixed) */
.menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--hh) + 32px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 100% 0%, var(--slate-hi), var(--slate) 45%, var(--slate-lo));
  display: flex; flex-direction: column;
  clip-path: circle(0 at calc(100% - 38px) 32px); transition: clip-path .6s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150vmax at calc(100% - 38px) 32px); }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  display: flex; align-items: center; gap: .4em; padding: 10px 0; color: #fff; text-decoration: none;
  font: 700 clamp(40px, 12vw, 64px)/1 var(--f-display); text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(.12s + var(--i) * .06s);
}
.menu__link i { font-size: .45em; opacity: .5; width: 1.6em; }
.menu__link.is-active { color: var(--lime); }
.menu__login { align-self: flex-start; margin-top: 28px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out) .36s, transform .5s var(--ease-out) .36s; }
.menu.is-open .menu__link, .menu.is-open .menu__login { opacity: 1; transform: none; }
html.menu-open { overflow: hidden; }

/* ---------- Footer: services band + base ---------- */
.site-foot { position: relative; z-index: 1; background: var(--ink); color: #fff; }
.services {
  background: var(--lime-band);
  box-shadow: inset 0 2px 22px 2px rgba(0, 0, 0, .3);
  padding: 10px var(--gutter);
}
.services__list {
  display: grid; grid-template-columns: repeat(8, minmax(0, 135px)); justify-content: center;
  margin: 0 auto; padding: 0; list-style: none;
}
.services__list li:first-child .services__card { border-left: 1px solid rgba(0, 0, 0, .1); }
.services__card {
  display: flex; flex-direction: column; height: 100%; color: #111; text-decoration: none;
  border-right: 1px solid rgba(0, 0, 0, .1); transition: background-color .25s;
}
.services__icon {
  display: grid; place-items: center; height: 74px; font-size: 32px; color: rgba(0, 0, 0, .69);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.services__icon i { transition: transform .45s var(--ease-out), color .25s; }
.services__label {
  flex: 1; display: grid; place-items: center; min-height: 80px; padding: 8px 10px; text-align: center;
  background: rgba(0, 0, 0, .05); font: 400 14px/1.2 var(--f-cond); transition: background-color .25s;
}
.services__card:hover .services__label, .services__card:focus-visible .services__label { background: var(--lime-hot); }
.services__card:hover .services__icon i { transform: translateY(-4px) scale(1.12); color: #000; }
@media (max-width: 899px) {
  .services__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services__card { border: 1px solid rgba(0, 0, 0, .08); }
  .services__icon { height: 60px; font-size: 26px; }
  .services__label { min-height: 64px; font-size: 13px; }
}
.site-foot__base { padding-top: clamp(28px, 5vh, 44px); }
.site-foot__address {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px;
  margin: 0; padding: 0 16px; font: 400 17px/1.3 var(--f-cond); color: #fff; text-align: center;
}
.site-foot__address i { font-style: normal; opacity: .5; padding: 0 .2em; }
.wordmark { font: 400 21px/1 var(--f-ext); letter-spacing: -.01em; text-decoration: none; color: #fff; }
.wordmark span + span { color: var(--sky); }

/* ───────── ATG branding footer (shared house block) ─────────
   Portable: set the three --atg-foot-* tokens per site; nothing else changes. */
.atg-foot {
  --atg-foot-fg: var(--paper, #fff);
  --atg-foot-muted: rgba(255, 255, 255, .69);
  --atg-foot-line: var(--faint, rgba(255, 255, 255, .14));
  text-align: center; color: var(--atg-foot-fg);
  border-top: 1px solid var(--atg-foot-line);
  padding: clamp(36px, 6vh, 56px) 16px calc(clamp(28px, 5vh, 44px) + var(--dock-space, 0px));
  transition: padding .5s ease;
}
.atg-foot__copy { margin: 0; font-size: clamp(15px, 1vw + 8px, 18px); font-weight: 500; }
.atg-foot__credit {
  margin: 2.25vh 0 0; font-family: system-ui, sans-serif; font-size: 90%; font-weight: 400;
  text-transform: lowercase; color: #eee;
}
.atg-foot__brand { display: inline-block; margin-left: .14rem; text-transform: lowercase; }
.atg-foot__brand a { color: var(--atg-foot-fg); text-decoration: none; }
.atg-foot__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atg-foot__brand::after {
  /* external-link mark as a masked SVG so it takes the text colour; swap to FA ("\f14c") on sites that load the kit */
  content: ""; display: inline-block; width: .74em; height: .74em; margin-left: .3rem; vertical-align: -.04em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atg-foot__brand b { font-weight: 700; }
.atg-foot__tag-link { display: inline-block; margin-top: 1.5vh; border-radius: 50%; }
.atg-foot__tag {
  display: inline-block; vertical-align: middle; border-radius: 50%;
  filter: grayscale(100%); transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}
.atg-foot__tag-link:hover .atg-foot__tag,
.atg-foot__tag-link:focus-visible .atg-foot__tag { filter: grayscale(0%); transform: scale(1.25); }
.atg-foot__tag-link:focus-visible { outline: 2px solid var(--atg-foot-fg); outline-offset: 6px; }
.site-foot .atg-foot { margin-top: clamp(24px, 4vh, 36px); }

/* ---------- Scroll reveal (enhancement only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HOME: banner slideshow with adjacent slides
   ========================================================================== */
.page--home { background: #000; }
.hero {
  --slide-w: min(84vw, 1560px);
  --gap: 1vw;
  position: relative; overflow: hidden; background: #000;
  height: clamp(460px, calc(100svh - var(--hh0) - 164px), 860px);
  touch-action: pan-y; user-select: none;
}
.hero__track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero__slide {
  position: absolute; top: 0; bottom: 0; left: 50%; width: var(--slide-w); margin-left: calc(var(--slide-w) / -2);
  overflow: hidden; background: #111;
  transform: translateX(calc(var(--d, 0) * (var(--slide-w) + var(--gap))));
  transition: transform .9s var(--ease-out), filter .9s var(--ease-out);
  filter: brightness(.45) saturate(.8);
}
.hero__slide.is-active { filter: none; }
.hero__slide.is-far { visibility: hidden; }
.hero__slide.no-anim { transition: none; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1.0); }
.hero__caption {
  position: absolute; left: clamp(20px, 3vw, 48px); bottom: clamp(56px, 9vh, 96px);
  width: min(560px, calc(100% - 40px)); padding: 2em 3em; border-radius: 6px;
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out) .25s, transform .7s var(--ease-out) .25s;
}
.hero__slide.is-active .hero__caption { opacity: 1; transform: none; }
.no-js .hero__caption { opacity: 1; transform: none; }
.hero__title { font: 400 clamp(22px, 2.2vw, 32px)/1.2 var(--f-ext); color: #fff; margin-bottom: .75em; }
.hero__link {
  display: inline; color: var(--olive);
  font: 400 clamp(16px, 1.4vw, 21px)/1.3 var(--f-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .25s;
}
.hero__link:hover { color: var(--lime-hot); }
.hero__link i { display: inline-block; margin-left: .3em; font-size: .8em; transition: transform .3s var(--ease); }
.hero__link:hover i { transform: translateX(4px); }
.hero__controls {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 18px; padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; font-size: 20px; transition: background-color .25s, transform .3s var(--ease);
}
.hero__arrow:hover { background: rgba(255, 255, 255, .14); }
.hero__arrow--prev:hover { transform: translateX(-2px); }
.hero__arrow--next:hover { transform: translateX(2px); }
.hero__dots { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* each dot sits in an <li>; without this the 3px bar rides the li's text baseline and drops below centre */
.hero__dots li { display: flex; }
.hero__dot { position: relative; width: 22px; height: 3px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .28); cursor: pointer; overflow: hidden; }
.hero__dot::before { content: ""; position: absolute; inset: -10px 0; } /* bigger hit area */
.hero__dot span { position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active { width: 36px; transition: width .4s var(--ease-out); }
.hero__dot.is-active span { animation: hero-progress var(--hero-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }
@media (max-width: 899px) {
  .hero { --slide-w: 88vw; height: clamp(480px, 74svh, 680px); }
  .hero__caption { left: 14px; right: 14px; width: auto; bottom: 74px; padding: 1.3em 1.5em; }
}
.no-js .hero__track { display: flex; overflow-x: auto; }
.no-js .hero__slide { position: relative; left: 0; margin: 0; flex: none; transform: none; filter: none; }

/* ==========================================================================
   WHO WE ARE
   ========================================================================== */
.about-hero {
  position: relative; color: #fff; padding: clamp(64px, 11vh, 120px) 0;
  background: radial-gradient(90% 120% at 15% 10%, #536f79 0%, var(--slate) 45%, #33484f 100%);
  box-shadow: inset 0 2px 22px 12px rgba(0, 0, 0, .3);
}
.about-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-hero__hello { text-align: center; }
.about-hero__hello h1 { font: 700 clamp(110px, 13vw, 188px)/.86 var(--f-display); letter-spacing: .01em; }
.about-hero__we { display: flex; align-items: center; justify-content: center; gap: .4em; margin-top: .45em; font: 700 clamp(34px, 3.6vw, 50px)/1 var(--f-display); }
.about-hero__we::before, .about-hero__we::after { content: ""; width: 1.1em; height: 3px; background: var(--green); }
.about-hero__word { display: block; margin-top: .18em; font: 400 clamp(52px, 5.6vw, 80px)/1 var(--f-ext); letter-spacing: -.02em; }
.about-hero__word span + span { color: var(--sky); }
.about-hero__tag { margin: .8em 0 0; font: 700 clamp(17px, 1.5vw, 21px)/1 var(--f-nav); letter-spacing: .02em; color: var(--green); }
.about-hero__statement {
  margin: 0; padding-left: 1em; border-left: 3px solid var(--green-rule);
  font: 300 clamp(26px, 2.5vw, 36px)/1.32 var(--f-light); color: #fff;
}
.about-hero__statement em { font-style: normal; color: var(--green); }
@media (max-width: 899px) { .about-hero__grid { grid-template-columns: 1fr; } }

/* Our Story: photo band fading into a deep-slate timeline */
.story { --story-bg: #1e2b30; position: relative; }
.story__band { position: relative; height: clamp(360px, 62vh, 620px); overflow: hidden; }
.story__bg { position: absolute; inset: -8% 0; background: url("/images/about/backstory.webp") center / cover no-repeat; will-change: transform; }
.story__band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 43, 48, 0) 35%, rgba(30, 43, 48, .7) 75%, var(--story-bg)); }
.story__head { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px); z-index: 1; }
.story__head h2 { font: 700 clamp(64px, 8vw, 128px)/1 var(--f-display); color: #fff; text-transform: uppercase; }
.story__head em { font-style: normal; color: var(--green); }
.story__time { background: var(--story-bg); color: #e6ecee; padding: 8px 0 clamp(64px, 10vh, 110px); box-shadow: inset 0 -2px 22px 2px rgba(0, 0, 0, .3); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); }
.timeline__step { position: relative; padding: 34px 24px 0 0; font-size: 15.5px; line-height: 1.62; }
.timeline__step::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--story-bg); box-shadow: inset 0 0 0 3px var(--green); }
.timeline__step p { margin: 0; }
.timeline__yr { font: 700 clamp(30px, 2.6vw, 40px)/1 var(--f-display); color: var(--green); }
.timeline__step .timeline__k { margin: .45em 0 .9em; font: 400 13px/1.2 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: rgba(230, 236, 238, .62); }
.timeline__step.is-key::before { background: var(--green); }
.timeline__step.is-key strong { color: var(--green); font-size: 1.06em; }
@media (max-width: 899px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .2); margin-top: 24px; }
  .timeline__step { padding: 0 0 30px 26px; }
  .timeline__step::before { top: 6px; left: -7px; }
}

.values { background: var(--lime-band); padding: clamp(56px, 9vh, 100px) 0; color: #111; }
.values h2 { font: 700 clamp(40px, 4vw, 52px)/1 var(--f-display); margin-bottom: .45em; }
.values__intro { max-width: 860px; font-size: 18px; }
.accordion { margin: 32px 0 0; padding: 0; list-style: none; }
.accordion__item { margin-bottom: 1vh; border: 1px solid rgba(0, 0, 0, .2); transition: background-color .3s, border-color .3s; }
.accordion__item.is-open { background: rgba(255, 255, 255, .5); border-color: var(--lime); }
.accordion__btn {
  display: flex; align-items: center; gap: 18px; width: 100%; min-height: 60px; padding: 0 1.3vw; border: 0; background: none; cursor: pointer; text-align: left;
  font: 700 16px/1.2 var(--f-nav); text-transform: uppercase; color: #111;
}
.accordion__plus { position: relative; flex: none; width: 20px; height: 20px; }
.accordion__plus::before, .accordion__plus::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 1.5px; background: #222; transition: transform .45s var(--ease-out); }
.accordion__plus::after { transform: rotate(90deg); }
.is-open .accordion__plus::after { transform: rotate(0deg); }
.is-open .accordion__plus::before { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 1.3vw 0 calc(1.3vw + 38px); max-width: 860px; }
.accordion__panel p:last-child { padding-bottom: 1.2em; }
.no-js .accordion__panel { grid-template-rows: 1fr; }

.difference { background: #fff; padding: clamp(56px, 9vh, 110px) 0 0; color: #111; }
.difference__grid { display: grid; gap: clamp(32px, 5vh, 56px); }
/* desktop: body copy flows in two columns (the lede spans both); closing line + logo share a row below */
.difference__text { columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.difference__text p { break-inside: avoid; }
.difference__lede { column-span: all; max-width: 900px; }
.difference__end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 4vh, 40px); border-top: 1px solid rgba(0, 0, 0, .1); }
.difference__end .difference__media { justify-self: end; width: min(100%, 520px); }
.difference h2 { font: 700 clamp(40px, 4vw, 52px)/1 var(--f-display); margin-bottom: .6em; }
.difference__lede { font: 300 clamp(22px, 2vw, 28px)/1.35 var(--f-light); margin-bottom: 1em; }
.difference__media img { border-radius: var(--r); }
.difference__close { margin: 0; font: 700 clamp(24px, 2.2vw, 30px)/1.25 var(--f-body); color: var(--blue); }
/* full bleed, sitting on the section's bottom edge */
.cows { margin-top: clamp(40px, 6vh, 72px); line-height: 0; }
.cows img { display: block; width: 100%; border-radius: 0; }
@media (max-width: 899px) {
  .difference__text { columns: 1; }
  .difference__end { grid-template-columns: 1fr; gap: 28px; padding-top: 0; border-top: 0; }
  .difference__end .difference__media { justify-self: stretch; width: auto; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  min-height: calc(100svh - var(--hh0) - 164px); display: flex; align-items: center; padding: clamp(56px, 10vh, 110px) 0;
  background: radial-gradient(90% 120% at 15% 10%, #536f79 0%, var(--slate) 45%, #33484f 100%);
  box-shadow: inset 0 2px 22px 12px rgba(0, 0, 0, .3); color: #e6ecee;
}
/* desktop: Say Hello + details on the left, form on the right, a hairline between.
   The DOM order (intro, form, details) is the phone order, so the form is never pushed below the fold. */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  grid-template-areas: "intro form" "info form"; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px); align-items: start;
}
.contact__intro { grid-area: intro; padding: 0 clamp(24px, 3vw, 44px) clamp(28px, 4vh, 44px) 0; border-right: 1px solid rgba(255, 255, 255, .16); }
.contact__aside { grid-area: info; align-self: stretch; padding-right: clamp(24px, 3vw, 44px); border-right: 1px solid rgba(255, 255, 255, .16); }
.contact__form { grid-area: form; }
.contact__hello { width: min(100%, 380px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.contact__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact__info li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 16px; line-height: 1.5; }
.contact__info i { color: var(--green); font-size: 18px; margin-top: 4px; }
.contact__info b { display: block; margin-bottom: 4px; font: 400 13px/1.2 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: rgba(230, 236, 238, .65); }
.contact__info a { color: inherit; text-decoration: underline; text-decoration-color: rgba(160, 198, 82, .6); text-underline-offset: 4px; transition: color .25s; }
.contact__info a:hover { color: var(--lime); }
.contact__h { margin: 0 0 .55em; font: 700 clamp(56px, 6vw, 96px)/1 var(--f-display); text-transform: uppercase; color: #fff; }
.contact__h em { font-style: normal; color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; font: 400 15px/1.2 var(--f-cond); color: #fff; }
.field label small { opacity: .6; font: 400 13px var(--f-body); margin-left: .35em; }
fieldset.field { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px;
  background: rgba(13, 16, 18, .28); color: #fff; font: 400 16px/1.4 var(--f-body);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: rgba(13, 16, 18, .4); border-color: var(--lime); box-shadow: 0 0 0 4px rgba(197, 227, 118, .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ffb3a7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .btn--dark { --bg: var(--lime-hot); --fg: #111; min-width: 180px; margin-top: 6px; }
.contact__form .btn--dark:hover { color: #000; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: 15px; }
.form-status.is-ok { color: var(--lime); }
.form-status.is-err { color: #ffd2c9; }
/* thank-you state: the form is swapped for the graphic from the original /thanks page */
.contact__thanks { display: grid; justify-items: start; gap: clamp(24px, 4vh, 40px); padding: clamp(24px, 6vh, 72px) 0; outline: none; }
.contact__thanks[hidden], .contact__panel[hidden] { display: none; }
.contact__thanks img { width: min(100%, 440px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.contact__thanks.is-in img { animation: thanks-in .9s var(--ease-out) both; }
.contact__thanks.is-in .contact__again { animation: thanks-in .9s var(--ease-out) .25s both; }
.contact__grid.is-thanked { align-items: center; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "info"; grid-template-rows: auto; }
  .contact__intro { padding: 0 0 20px; border-right: 0; }
  .contact__hello { width: min(80%, 220px); }
  .contact__aside { margin-top: 32px; padding: 28px 0 0; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   OUR WORK: floating palette + stage
   ========================================================================== */
.page--our-work { background: var(--slate); }
.work-title {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: clamp(14px, 2.5vh, 28px) 0 clamp(32px, 2.5vh, 40px); color: #fff;
}
.work-title h1 { grid-column: 2; }
.work-title .case__pager { grid-column: 3; justify-self: end; }
.work-title h1 { display: inline-flex; align-items: center; gap: .3em; font: 700 clamp(40px, 4vw, 56px)/1 var(--f-display); text-transform: uppercase; }
.work-title h1 i { font-size: .82em; opacity: .5; }
.work-title h1 em { font-style: normal; color: var(--green); }

/* overflow: clip (not hidden) keeps sticky children working while stopping the backdrop's
   negative-margin box from spilling over the footer */
.work { position: relative; isolation: isolate; overflow: clip; padding-bottom: clamp(48px, 8vh, 96px); }
.work__layout { padding-top: 20px; }
/* sticky backdrop: the active case's image, blurred and saturated, sits behind the stage */
.work__backdrop {
  position: sticky; top: var(--hh); z-index: -1;
  height: calc(100svh - var(--hh)); margin-bottom: calc(-1 * (100svh - var(--hh)));
  overflow: hidden; pointer-events: none;
}
.work__bd {
  position: absolute; inset: -10%; background: var(--slate) center / cover no-repeat;
  filter: blur(42px) saturate(1.6) brightness(.62); transform: scale(1.1);
  opacity: 0; transition: opacity 1s var(--ease);
}
.work__bd.is-on { opacity: 1; }
.work__backdrop::after { /* brand tint + vignette keeps every case on-palette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 60% 40%, transparent 30%, rgba(13, 16, 18, .55) 100%),
    linear-gradient(180deg, rgba(64, 90, 99, .55), rgba(64, 90, 99, .15) 30%, rgba(46, 67, 74, .7));
}
.work__layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding-inline: clamp(12px, 2vw, 32px) var(--gutter); }

/* the palette */
.palette {
  --t: clamp(64px, calc((100svh - var(--hh) - 60px) / 15 - 8px), 84px);
  position: sticky; top: calc(var(--hh) + 20px); align-self: start; z-index: 5;
}
.palette__list {
  display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; list-style: none;
  max-height: calc(100svh - var(--hh) - 40px); overflow-y: auto; overscroll-behavior: auto;
  scrollbar-width: none; scroll-behavior: smooth;
  border-radius: calc(var(--t) * .3 + 10px);
  background: rgba(30, 38, 42, .55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .35);
}
.palette__list::-webkit-scrollbar { display: none; }
/* soft fade at whichever edge has more thumbnails beyond it */
.palette__list.can-down { -webkit-mask: linear-gradient(#000 calc(100% - 48px), transparent); mask: linear-gradient(#000 calc(100% - 48px), transparent); }
.palette__list.can-up { -webkit-mask: linear-gradient(transparent, #000 48px); mask: linear-gradient(transparent, #000 48px); }
.palette__list.can-up.can-down { -webkit-mask: linear-gradient(transparent, #000 48px calc(100% - 48px), transparent); mask: linear-gradient(transparent, #000 48px calc(100% - 48px), transparent); }
.palette__item { position: relative; flex: none; }
.palette__btn {
  position: relative; display: block; width: var(--t); height: var(--t); border-radius: calc(var(--t) * .22);
  transition: transform .35s var(--ease-out);
}
.palette__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.palette__btn::after { /* active ring */
  content: ""; position: absolute; inset: -4px; border-radius: calc(var(--t) * .22 + 4px);
  box-shadow: 0 0 0 2px var(--lime); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .4s var(--ease-out);
}
.palette__btn[aria-current="true"]::after { opacity: 1; transform: none; }
.palette__btn:focus-visible { outline: none; }
.palette__btn:focus-visible::after { opacity: 1; transform: none; box-shadow: 0 0 0 2px #fff; }
/* dock magnification */
@media (hover: hover) {
  .palette__item:hover .palette__btn { transform: scale(1.1); z-index: 2; }
  .palette__item:hover + .palette__item .palette__btn,
  .palette__item:has(+ .palette__item:hover) .palette__btn { transform: scale(1.04); }
}
.palette__tip {
  position: absolute; left: calc(100% + 14px); top: var(--tip-y, 50%); z-index: 6; width: max-content; max-width: 260px;
  padding: 8px 12px; border-radius: 8px; pointer-events: none;
  background: rgba(13, 16, 18, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .3s var(--ease-out);
}
.palette__tip b { display: block; font: 400 11px/1.3 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.palette__tip span { display: block; font: 400 15px/1.25 var(--f-ext); color: #fff; text-transform: lowercase; }
.palette__tip.is-on { opacity: 1; transform: translate(0, -50%); }

/* a case */
.cases-col, .cases { min-width: 0; }
.case { min-width: 0; padding-bottom: clamp(48px, 8vh, 80px); }
.js .case:not(.is-active) { display: none; }
.case__head { flex: none; margin: 0 0 clamp(14px, 2vh, 22px); }
.case__sector { margin: 0 0 .5em; font: 400 clamp(13px, 1vw, 15px)/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.case__title { font: 400 clamp(30px, 3.4vw, 56px)/.98 var(--f-ext); letter-spacing: -.025em; text-transform: lowercase; color: #fff; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.case__pager { flex: none; display: flex; align-items: center; gap: 8px; }
.case__step {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: background-color .25s, transform .3s var(--ease), color .25s;
}
.case__step:hover { background: var(--lime-hot); color: #111; }
.case__step--prev:hover { transform: translateX(-2px); }
.case__step--next:hover { transform: translateX(2px); }
.case__num { min-width: 64px; text-align: center; font: 400 15px/1 var(--f-cond); letter-spacing: .1em; color: rgba(255, 255, 255, .75); }
.case__num b { font-weight: 400; color: #fff; font-size: 1.25em; }

.case__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.case__pin {
  position: sticky; top: calc(var(--hh) + 20px); min-width: 0;
  display: flex; flex-direction: column; max-height: calc(100svh - var(--hh) - 40px);
}
.case__media { flex: 0 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.frame {
  position: relative; display: block; flex: 0 1 auto; min-height: 180px; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: #111; box-shadow: var(--shadow-hi);
}
.frame__fill { /* blur-fill: the image's own colours fill the frame, so any aspect ratio sits naturally */
  position: absolute; inset: -12%; background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.5) brightness(.75); transform: scale(1.1);
  transition: opacity .6s var(--ease);
}
.frame__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: contrast(1.04) saturate(1.06);
  opacity: 0; transform: scale(1.015); transition: opacity .55s var(--ease), transform .9s var(--ease-out);
}
.frame__img.is-on { opacity: 1; transform: none; }
.no-js .frame__img:first-of-type { opacity: 1; }
.frame__zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 15px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none;
}
.frame:hover .frame__zoom { opacity: 1; transform: none; }
/* video case: same frame, but a div (it holds its own buttons) and no zoom cursor */
.frame--video { cursor: default; }
.frame--video video.frame__img { object-fit: contain; background: transparent; }
.vctl { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 8px; }
.vctl__btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.vctl__btn:hover { background: var(--lime-hot); color: #111; transform: scale(1.06); }
.strip { flex: none; display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.strip__btn {
  position: relative; flex: none; width: 84px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: #111; opacity: .6; transition: opacity .25s, transform .3s var(--ease-out);
}
.strip__btn img { width: 100%; height: 100%; object-fit: cover; }
.strip__btn:hover { opacity: .9; transform: translateY(-2px); }
.strip__btn[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--lime); }

.case__card {
  min-width: 0; padding: clamp(24px, 3vw, 44px); border-radius: var(--r);
  background: rgba(255, 255, 255, .84); color: var(--text); box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.48;
  min-height:75vh;
}
.case__card::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 22px; background: var(--green-rule); border-radius: 3px; }
.case__card > p:first-of-type { font-size: 1.12em; line-height: 1.6; color: #111; }
.case__card ul { columns: 2; gap: 24px; margin: 0 0 1em; padding-left: 1.1em; }
.case__card li::marker { color: var(--green-rule); }
.case__next {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 16px 18px; border-radius: 8px;
  background: #f1f3f2; color: #111; text-decoration: none; transition: background-color .25s;
}
.case__next small { display: block; font: 400 12px/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case__next span { font: 400 17px/1.2 var(--f-ext); text-transform: lowercase; }
.case__next i { transition: transform .3s var(--ease); }
.case__next:hover { background: var(--lime-hot); }
.case__next:hover i { transform: translateX(4px); }

/* case change choreography */
.case.is-entering .case__sector, .case.is-entering .case__title, .case.is-entering .case__media, .case.is-entering .case__card {
  animation: case-in .8s var(--ease-out) both;
}
.case.is-entering .case__title { animation-delay: .05s; }
.case.is-entering .case__media { animation-delay: .1s; }
.case.is-entering .case__card { animation-delay: .16s; }
@keyframes case-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.cases.is-leaving { opacity: 0; transform: translateY(-8px); filter: blur(4px); transition: opacity .18s, transform .18s, filter .18s; }

/* lightbox */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 11, .92); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .3s var(--ease); }
.lightbox img { max-width: min(94vw, var(--nw, 2400px)); max-height: 86svh; width: auto; height: auto; border-radius: 6px; box-shadow: var(--shadow-hi); }
.lightbox__close, .lightbox__arrow {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; transition: background-color .25s;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow--prev { left: 18px; } .lightbox__arrow--next { right: 18px; }
.lightbox__close:hover, .lightbox__arrow:hover { background: var(--lime-hot); color: #111; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 14px var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@keyframes fade-in { from { opacity: 0; } }

/* Our Work: tablet */
@media (max-width: 1099px) {
  .case__grid { grid-template-columns: 1fr; }
  .case__pin { position: static; max-height: none; }
}
/* Our Work: phone. the palette becomes a horizontal dock pinned to the bottom of the viewport */
@media (max-width: 759px) {
  .work__layout { display: flex; flex-direction: column; padding-inline: var(--gutter); gap: 0; }
  .palette {
    --t: 54px; order: 2; position: sticky; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); align-self: center;
    max-width: 100%; margin-top: 8px;
  }
  .palette__tip { display: none; }
  .palette__list, .palette__list.can-up, .palette__list.can-down {
    flex-direction: row; max-height: none; max-width: calc(100vw - 2 * var(--gutter)); overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 8px 10px; border-radius: 24px;
    -webkit-mask: none; mask: none;
  }
  .palette__item { scroll-snap-align: center; }
  .work-title { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .work-title h1, .work-title .case__pager { grid-column: 1; }
  .work-title .case__pager { justify-self: stretch; justify-content: space-between; }
  .case__card ul { columns: 1; }
}

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