/* ==========================================================================
   HexaClicks redesign concept: "The open cell"
   The mark is a hexagon with one side open and a cursor in the gap.
   Open hexagon frames: hero + closing only. The comb: verticals only.
   ========================================================================== */

:root {
  /* palette: logo file + live site CSS, deepened for contrast */
  --graphite: #1C1F1C;      /* primary ink, dark bands */
  --cursor: #363636;        /* the logo cursor */
  --leaf: #2E7426;          /* links, focus on light (5.77:1 on white) */
  --lime: #A4DE02;          /* signal on dark only; fill behind graphite text */
  --chalk: #F2F4EF;         /* alternate ground, cool green-grey */
  --white: #FFFFFF;
  --slate: #5E645A;         /* secondary text on light */
  --line: #DADDD5;          /* hairlines */
  --mist: #E7EAE2;          /* photo tiles */
  --on-dark: #F2F4EF;
  --on-dark-2: #A9AFA4;     /* 7.3:1 on graphite */
  --line-dark: rgba(242, 244, 239, .14);
  --haze: #F3E4B6;          /* concept notice only */

  --display: "Urbanist", "Century Gothic", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.9rem, 1.4rem + 5.4vw, 6rem);
  --fs-h2: clamp(2.1rem, 1.35rem + 2.6vw, 3.6rem);
  --fs-h3: 1.375rem;
  --fs-lede: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(84px, 10vw, 150px);
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 0 rgba(28, 31, 28, .04), 0 18px 40px -22px rgba(28, 31, 28, .35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --masthead-h: 76px;

  /* the open cell, in % of a 733:860 box (the official mark: rounded corners, cursor at 65%) */
  --cell-closed: polygon(45.06% 2.47%, 47.53% 1.54%, 50.00% 1.24%, 52.47% 1.54%, 54.94% 2.47%, 95.06% 22.53%, 97.22% 23.92%, 98.76% 25.60%, 99.69% 27.59%, 100.00% 29.88%, 100.00% 70.12%, 99.69% 72.41%, 98.76% 74.40%, 97.22% 76.08%, 95.06% 77.47%, 54.94% 97.53%, 52.47% 98.46%, 50.00% 98.76%, 47.53% 98.46%, 45.06% 97.53%, 37.86% 93.93%, 37.86% 93.93%, 37.86% 93.93%, 37.86% 93.93%, 37.86% 93.93%, 21.50% 85.75%, 21.50% 85.75%, 21.50% 85.75%, 21.50% 85.75%, 21.50% 85.75%, 5.14% 77.57%, 5.14% 77.57%, 5.14% 77.57%, 5.14% 77.57%, 5.14% 77.57%, 2.31% 76.16%, 1.30% 75.35%, 0.58% 74.07%, 0.14% 72.33%, 0.00% 70.12%, 0.00% 29.88%, 0.31% 27.59%, 1.24% 25.60%, 2.78% 23.92%, 4.94% 22.53%);
  --cell-open:   polygon(45.06% 2.47%, 47.53% 1.54%, 50.00% 1.24%, 52.47% 1.54%, 54.94% 2.47%, 95.06% 22.53%, 97.22% 23.92%, 98.76% 25.60%, 99.69% 27.59%, 100.00% 29.88%, 100.00% 70.12%, 99.69% 72.41%, 98.76% 74.40%, 97.22% 76.08%, 95.06% 77.47%, 54.94% 97.53%, 52.47% 98.46%, 50.00% 98.76%, 47.53% 98.46%, 45.06% 97.53%, 38.81% 94.40%, 38.39% 94.14%, 38.10% 93.82%, 37.92% 93.44%, 37.86% 93.00%, 37.86% 53.52%, 37.80% 53.06%, 37.61% 52.84%, 37.30% 52.87%, 36.85% 53.14%, 5.95% 76.95%, 5.54% 77.19%, 5.11% 77.30%, 4.66% 77.27%, 4.20% 77.10%, 2.31% 76.16%, 1.30% 75.35%, 0.58% 74.07%, 0.14% 72.33%, 0.00% 70.12%, 0.00% 29.88%, 0.31% 27.59%, 1.24% 25.60%, 2.78% 23.92%, 4.94% 22.53%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: calc(var(--masthead-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font: 400 var(--fs-body)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--leaf); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--chalk { background: var(--chalk); }

.h2 { font-size: var(--fs-h2); }
.lede { font-size: var(--fs-lede); line-height: 1.55; }
.label { margin: 0 0 18px; font-family: var(--body); font-size: var(--fs-small); font-weight: 600; color: var(--leaf); }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--graphite); color: var(--white); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--graphite); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1.5px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--ink { --bg: var(--graphite); --fg: var(--white); }
.btn--lime { --bg: var(--lime); --fg: var(--graphite); }
.btn--quiet { --bg: transparent; --fg: var(--graphite); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { --bg: #000; }
  .btn--lime:hover { --bg: #B5EA22; }
  .btn--quiet:hover { border-color: var(--graphite); }
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- concept notice ---------- */
.concept { background: var(--haze); color: var(--graphite); font-size: .8125rem; }
.concept p { margin: 0; padding: 8px var(--gutter); text-align: center; line-height: 1.45; }
.concept a { color: inherit; font-weight: 600; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 32px; height: var(--masthead-h); }
.masthead__logo { flex: none; display: block; border-radius: 6px; }
.masthead__logo img { width: 148px; height: auto; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--graphite); font-weight: 500; text-decoration: none; border-radius: 999px;
  transition: background-color 180ms var(--ease-out);
}
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--graphite); border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--chalk); } }
.masthead__actions { display: flex; align-items: center; gap: 18px; }
.masthead__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.masthead__phone svg { width: 18px; height: 18px; color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .masthead__phone:hover span { text-decoration: underline; } }

.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--white); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; margin: auto; background: var(--graphite); border-radius: 2px; content: "";
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 1100px) { .masthead__phone span { display: none; } }
@media (max-width: 900px) {
  .nav, .masthead__phone, .masthead__actions > .btn { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .masthead__actions { margin-left: auto; }
  :root { --masthead-h: 68px; }
  .masthead__logo img { width: 132px; }
}

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--graphite); color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1) .14s, visibility 0s linear .7s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--masthead-h); }
.menu__head img { width: 132px; }
.menu__close { position: relative; width: 46px; height: 46px; border: 1.5px solid var(--line-dark); border-radius: 50%; background: none; cursor: pointer; }
.menu__close span::before, .menu__close span::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21.5px; height: 1.5px; background: var(--on-dark); }
.menu__close span::before { transform: rotate(45deg); }
.menu__close span::after { transform: rotate(-45deg); }
.menu__nav { flex: 1; display: flex; align-items: center; }
.menu__nav ul { display: grid; gap: 4px; }
.menu__nav a {
  display: block; padding: 6px 0;
  color: var(--on-dark); font: 700 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--display); letter-spacing: -.02em; text-decoration: none;
}
.menu__nav a[aria-current="page"] { color: var(--lime); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-bottom: 32px; }
.menu__foot a:not(.btn) { color: var(--on-dark-2); text-decoration: none; }
.menu__nav li, .menu__foot {
  opacity: 0; transform: translateY(26px);
  transition: opacity .2s, transform .2s;
}
.menu.is-open .menu__nav li, .menu.is-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s), transform .75s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s);
}
.menu :focus-visible { outline-color: var(--lime); }

/* ---------- the open cell (hero + closing) ---------- */
.cell { position: relative; aspect-ratio: 733 / 860; }
.cell__img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: var(--cell-open);
}
.cell__cursor { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--cursor); }
/* armed (JS, before the intro): closed cell, cursor waiting outside the gap */
.js .cell.is-armed .cell__img { clip-path: var(--cell-closed); }
.js .cell.is-armed .cell__cursor { opacity: 0; transform: translate(-9%, 7%); }
/* transitions live on the revealed state, so arming never animates backwards */
.js .cell.is-open .cell__img { clip-path: var(--cell-open); transition: clip-path 900ms var(--ease-in-out); }
.js .cell.is-open .cell__cursor { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out) 380ms, transform 900ms var(--ease-out) 380ms; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: clip; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-size: var(--fs-display); font-weight: 800; line-height: .96; letter-spacing: -.035em; text-wrap: initial; }
.hero__title .line { display: block; overflow: clip; padding-bottom: .14em; margin-bottom: -.14em; }   /* the clip has to clear the descenders (g, y, p): ink reaches 1.08em below the line top at this leading */
.hero__title .line > span { display: inline-block; }
.hero__lede { max-width: 34ch; margin: clamp(22px, 2.5vw, 32px) 0 0; font-size: var(--fs-lede); line-height: 1.5; color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__visual { position: relative; }
.cell--hero { width: min(100%, 540px); margin-left: auto; }

.proof {
  display: inline-flex; align-items: center; gap: 16px; max-width: 470px; margin-top: clamp(36px, 4vw, 56px);
  padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--graphite); text-decoration: none; background: var(--white);
  transition: border-color 200ms var(--ease-out);
}
.proof__img { flex: none; width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.proof__text { display: grid; gap: 4px; }
.proof__kicker { font-size: .8125rem; color: var(--slate); }
.proof__title { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .proof:hover { border-color: var(--graphite); } }

/* hero intro (JS): lines rise once the loader lifts */
.js .hero.is-armed .hero__title .line > span { transform: translateY(115%); }   /* far enough that letter tops stay below the taller clip */
.js .hero.is-armed :is(.hero__lede, .hero__actions, .proof) { opacity: 0; transform: translateY(14px); }
.js .hero.is-in .hero__title .line > span { transform: none; transition: transform 1s var(--ease-out) calc(var(--d, 0) * 1ms); }
.js .hero.is-in :is(.hero__lede, .hero__actions, .proof) { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) calc(var(--d, 0) * 1ms), transform .9s var(--ease-out) calc(var(--d, 0) * 1ms); }

@media (max-width: 960px) {
  /* the message first, then the cell, which steps to the right like the comb offset */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px;
    grid-template-areas: "title title" "lede lede" "actions actions" "proof visual";
  }
  .hero__copy { display: contents; }
  .hero__title { grid-area: title; }
  .hero__lede { grid-area: lede; }
  .hero__actions { grid-area: actions; }
  .hero__visual { grid-area: visual; margin-top: 48px; }
  .proof { grid-area: proof; align-self: end; margin-top: 0; }
  .cell--hero { width: 100%; max-width: 400px; margin: 0 0 0 auto; }
}
@media (max-width: 600px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "actions" "visual" "proof"; }
  .hero__visual { margin-top: 40px; }
  .cell--hero { width: 74%; }
  .proof { margin-top: 32px; }
}

/* ---------- recognition row ---------- */
.marks { border-block: 1px solid var(--line); }
.marks__list {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: center; justify-items: center;
  gap: 28px; padding-block: 30px;
}
.marks__list img { height: var(--h); width: auto; max-width: 100%; opacity: .7; }
@media (max-width: 1100px) { .marks__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; } }
@media (max-width: 560px) {
  .marks__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 34px; padding-block: 28px; }
  .marks__list li { flex: 0 0 calc((100% - 68px) / 3); display: grid; place-items: center; }
  .marks__list img { height: calc(var(--h) * .9); }
}

/* ---------- workplace (dark band) ---------- */
.workplace { position: relative; isolation: isolate; overflow: hidden; background: var(--graphite); color: var(--on-dark); padding-block: var(--section); }
.workplace__bg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 75%); mask-image: linear-gradient(90deg, transparent 18%, #000 75%);
}
.workplace .label { color: var(--lime); }
.workplace__head { max-width: 640px; }
.workplace__head .lede { margin-top: 22px; color: var(--on-dark-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line-dark); }
.facts__item { padding: 28px 24px 0 0; display: flex; flex-direction: column; }
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.facts dt { order: 2; margin-top: 10px; color: var(--on-dark-2); font-size: .9375rem; }
.facts dd { margin: 0; order: 1; font: 700 clamp(3rem, 2rem + 3vw, 4.75rem)/1 var(--display); letter-spacing: -.04em; }
.facts .plus { color: var(--lime); margin-left: .04em; }
.facts .facts__note { order: 3; margin-top: 14px; font: 400 var(--fs-small)/1.6 var(--body); letter-spacing: 0; color: var(--on-dark-2); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { padding: 24px 16px 24px 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .workplace__bg { -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .28; }
}

/* ---------- build your career ---------- */
.career__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.career__copy .h2 { margin-bottom: 32px; }
.career__copy p { max-width: 60ch; color: #3A3E39; }
.career__copy .btn { margin-top: 12px; }
/* two real office photos, overlapping on a diagonal like neighbouring cells */
.career__photos { position: relative; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: auto auto; padding-top: 8px; }
.career__photo { width: 100%; aspect-ratio: 14 / 15; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.career__photo--a { grid-column: 1 / span 6; grid-row: 1; }
.career__photo--b { grid-column: 5 / span 6; grid-row: 1; margin-top: 46%; box-shadow: 0 0 0 10px var(--white); }
.career__photos figcaption { grid-column: 1 / span 4; grid-row: 1; align-self: end; padding-right: 16px; font-size: var(--fs-small); line-height: 1.5; color: var(--slate); }
.pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(64px, 8vw, 112px);
}
.pillar { padding: 28px 28px 0 0; border-top: 1px solid var(--line); }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar__icon { width: 48px; height: 48px; margin-bottom: 22px; }
.pillar h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--slate); }
@media (max-width: 960px) {
  .career__grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 26px 20px 28px 0; }
  .pillar + .pillar { padding-left: 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) { .career__photos { max-width: 560px; } }

/* ---------- section heads ---------- */
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head p { margin: 0; font-size: var(--fs-lede); line-height: 1.55; color: var(--slate); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 100px); align-items: end; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- verticals: the comb ---------- */
.comb-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.comb {
  container-type: inline-size;              /* cells measure against the comb, not themselves */
  position: relative; width: 100%;
  aspect-ratio: 100 / 86;                   /* 3 rows: h + 2 * .75h, h = w * 471/401 */
}
.comb__cell, .comb__cursor {
  --g: clamp(6px, 1.6cqw, 12px);            /* gap between cells */
  --w: calc((100cqw - 2 * var(--g)) / 3.5); /* cell width */
}
.comb__cell {
  /* odd rows (--o: 1) sit half a cell to the right: the comb offset */
  --x: calc(var(--c) * (var(--w) + var(--g)) + var(--o, 0) * (var(--w) + var(--g)) * .5);
  position: absolute; left: 0; top: 0;
  width: var(--w); height: calc(var(--w) * 1.1733); overflow: hidden;
  transform: translate(var(--x), calc(var(--r) * (var(--w) * 1.1733 * .75 + var(--g) * .87)));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  /* content sits high, clear of the door that opens at the lower left */
  padding: calc(var(--w) * .1) calc(var(--w) * .1) calc(var(--w) * .34);
  border: 0; background: var(--cell-bg, var(--white)); color: var(--graphite);   /* --cell-bg: a section can retint the resting cells */
  clip-path: var(--cell-closed);
  font: 600 clamp(.75rem, .55rem + .45vw, .9375rem)/1.2 var(--body); text-align: center;
  cursor: pointer;
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.comb__cell img { width: 38%; aspect-ratio: 1; }
.comb__cell .ic-light { display: none; }
.comb__cell[aria-selected="true"] .ic-dark { display: none; }
.comb__cell[aria-selected="true"] .ic-light { display: block; }
.comb__cell span { max-width: 11ch; }
.comb__cell[aria-selected="true"] {
  background: var(--graphite); color: var(--white);
  clip-path: var(--cell-open);
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out), clip-path 520ms var(--ease-in-out);
}
/* clip-path hides outlines, so focus shows inside the cell: a tint plus an underlined name */
.comb__cell:focus-visible { outline: none; background: #E4E9DD; }
.comb__cell:focus-visible span { text-decoration: underline 2px; text-underline-offset: 5px; }
.comb__cell[aria-selected="true"]:focus-visible { background: #000; }
.comb__cell[aria-selected="true"]:focus-visible span { color: var(--lime); }
@media (max-width: 900px) { .comb__cell:focus-visible img { outline: 2px solid var(--leaf); outline-offset: 6px; border-radius: 4px; } .comb__cell[aria-selected="true"]:focus-visible img { outline-color: var(--lime); } }
@media (hover: hover) and (pointer: fine) { .comb__cell[aria-selected="false"]:hover { background: #E4E9DD; } }
.comb__cursor {
  position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * 1.1733);
  fill: var(--lime); overflow: visible; pointer-events: none;
  transform: translate(var(--cx, 0), var(--cy, 0));
  transition: transform 520ms var(--ease-in-out);
}
.comb__panels { position: relative; }
.vpanel__icon { width: 64px; height: 64px; margin-bottom: 26px; }
.vpanel h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.4rem); margin-bottom: 16px; }
.vpanel p { max-width: 46ch; font-size: var(--fs-lede); line-height: 1.55; color: #3A3E39; }
.comb__cta { margin-top: 18px; }
/* without JS: no comb, the panels are a list */
html:not(.js) .comb { display: none; }
html:not(.js) .comb-wrap { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .vpanel { padding-block: 24px; border-top: 1px solid var(--line); }
.js .vpanel[hidden] { display: none; }
.js .vpanel.is-entering { animation: panel-in 300ms var(--ease-out); }
@keyframes panel-in { from { opacity: .2; filter: blur(2px); transform: translateY(6px); } }
@media (max-width: 700px) {
  .comb-wrap { grid-template-columns: minmax(0, 1fr); }
  .comb { max-width: 520px; }
}
@media (max-width: 900px) {
  .comb-wrap { gap: 36px; }
  .comb__cell span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comb__cell img { width: 46%; }
  .comb__panels { min-height: 300px; }
}

/* ---------- people ---------- */
.people__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.person__photo { aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.person__name { margin-top: 20px; font-size: var(--fs-h3); }
.person__role { margin: 6px 0 0; color: var(--slate); font-size: .9375rem; }
.person__bio { margin-top: 12px; }
.person__bio summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  color: var(--leaf); font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none;
}
.person__bio summary::-webkit-details-marker { display: none; }
.person__bio summary::after {
  content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform 240ms var(--ease-out);
}
.person__bio[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.person__bio p { margin: 8px 0 0; color: #3A3E39; font-size: .9875rem; }
@media (max-width: 1000px) { .people__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 520px) {
  .people__list { column-gap: 14px; row-gap: 36px; }
  .person__name { margin-top: 14px; font-size: 1.125rem; }
  .person__role { font-size: .875rem; }
}

/* ---------- programs ---------- */
.programs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.program { display: flex; flex-direction: column; }
.program__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.program__icon { width: 40px; height: 40px; margin: 26px 0 16px; }
.program h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.program p { margin: 0; color: #3A3E39; }
.programs__cta { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 960px) { .programs__list { grid-template-columns: minmax(0, 1fr); gap: 52px; } .program { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 28px; } .program__img { grid-row: 1 / span 3; } .program__icon { margin-top: 0; } }
@media (max-width: 640px) { .program { display: flex; } }

/* ---------- news ---------- */
.news__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 56px); }
.story--lead { grid-row: 1 / span 2; }
.story__link { display: block; color: var(--graphite); text-decoration: none; }
.story__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--mist); transition: transform 700ms var(--ease-out); }
.story:not(.story--lead) .story__img { aspect-ratio: 2.4 / 1; }
.story__meta { margin: 18px 0 8px; color: var(--slate); font-size: var(--fs-small); }
.story__meta time::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.story__title { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.story--lead .story__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.story__excerpt { margin: 14px 0 0; color: #3A3E39; max-width: 58ch; }
.story__more { display: inline-block; margin-top: 14px; color: var(--leaf); font-weight: 600; font-size: .9375rem; }
.story__link:hover .story__more { text-decoration: underline; }
.story__link { border-radius: var(--radius); }
.story__link .story__img-wrap { overflow: hidden; }
@media (max-width: 860px) { .news__grid { grid-template-columns: minmax(0, 1fr); } .story--lead { grid-row: auto; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); }
.faq__head p { margin-top: 20px; color: var(--slate); font-size: var(--fs-lede); line-height: 1.55; }
.faq__head { position: sticky; top: calc(var(--masthead-h) + 32px); align-self: start; }
.faq__groups { display: grid; gap: 48px; }
.faq__label { margin-bottom: 8px; font: 600 var(--fs-small)/1.4 var(--body); letter-spacing: 0; color: var(--leaf); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; display: block; padding: 22px 48px 22px 0;
  font: 600 1.125rem/1.4 var(--display); letter-spacing: -.005em; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--graphite); border-radius: 2px;
  transition: transform 300ms var(--ease-in-out);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { margin: 0; padding: 0 48px 24px 0; color: #3A3E39; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }

/* ---------- closing ---------- */
.closing__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.closing__title { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); font-weight: 800; letter-spacing: -.035em; }
.closing .lede { max-width: 40ch; margin: 26px 0 34px; color: var(--slate); }
.cell--closing { width: min(100%, 480px); margin-left: auto; }
@media (max-width: 860px) {
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .cell--closing { width: min(78%, 360px); margin: 8px auto 0 0; }
}

/* ---------- footer ---------- */
.footer { background: var(--graphite); color: var(--on-dark-2); padding-block: clamp(64px, 8vw, 104px) 40px; font-size: .9375rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: var(--lime); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 1.4fr)); gap: 40px; }
.footer__brand img { width: 164px; margin-bottom: 24px; }
.footer__brand p { max-width: 40ch; margin: 0; }
.footer__col h2 { margin-bottom: 16px; font: 600 var(--fs-small)/1.4 var(--body); letter-spacing: 0; color: var(--lime); }
.footer__col ul { display: grid; gap: 10px; color: var(--on-dark); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.footer__bottom p { margin: 0; }
.footer__cookie { padding: 0; border: 0; background: none; color: var(--on-dark); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.footer__concept { margin: 20px 0 0; max-width: 90ch; font-size: .8125rem; line-height: 1.6; }
.footer__concept a { text-decoration: underline; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--white);
}
.loader__stage { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: min(300px, 72vw); height: auto; overflow: visible; }
.loader__draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__cursor { opacity: 0; transform-box: fill-box; transform-origin: 95% 5%; }
.loader__pulse { opacity: 0; transform-box: fill-box; transform-origin: center; }
.loader__edge { position: absolute; left: 0; right: 0; top: 100%; width: 100%; height: 8vh; fill: var(--white); }
.loader.is-done { display: none; }

/* ---------- reduced motion: gentler, not zero ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .cell.is-armed .cell__cursor { transform: none; }
  .js .cell.is-open .cell__img { transition: none; }
  .js .hero.is-armed .hero__title .line > span { transform: none; opacity: 0; }
  .js .hero.is-in .hero__title .line > span { opacity: 1; transition: opacity .6s ease; }
  .js .hero.is-armed :is(.hero__lede, .hero__actions, .proof) { transform: none; }
  .comb__cell, .comb__cursor, .menu, .menu__nav li, .menu__foot { transition-duration: .01ms !important; }
  .js .vpanel.is-entering { animation: none; }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

/* ---------- page hero (careers, about, contact) ---------- */
.phero { padding-top: clamp(40px, 6vw, 96px); }
.phero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 100px); align-items: end; }
.phero__title { font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.6rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.phero__lede { margin: 26px 0 0; font-size: var(--fs-lede); color: var(--slate); }
.phero__aside p { margin: 0; font-size: var(--fs-lede); line-height: 1.55; color: #3A3E39; }
.phero__photo { margin: clamp(48px, 6vw, 88px) auto 0; }
.phero__photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.jumpcount {
  display: inline-flex; align-items: baseline; gap: 12px; margin-top: 28px; padding: 12px 20px 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--graphite); text-decoration: none; font-weight: 500;
  transition: border-color 200ms var(--ease-out);
}
.jumpcount__n { font: 800 1.5rem/1 var(--display); }
@media (hover: hover) and (pointer: fine) { .jumpcount:hover { border-color: var(--graphite); } }
@media (max-width: 860px) {
  .phero__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .phero__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- where are you now: three paths, the cursor marks each stop ---------- */
.paths__sub { margin: 14px 0 0; font-size: var(--fs-lede); color: var(--slate); }
.paths__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: none; }
.path { position: relative; padding-top: 40px; border-top: 1.5px solid var(--graphite); display: flex; flex-direction: column; }
.path__icon { width: 48px; height: 48px; margin-bottom: 22px; }
.path h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.path p { color: #3A3E39; flex: 1; }
.path__link { align-self: flex-start; margin-top: 8px; font-weight: 600; }
@media (max-width: 860px) { .paths__list { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* ---------- jobs board ---------- */
.jobs__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.jobs__search { position: relative; flex: 0 1 360px; }
.jobs__search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.jobs__search input {
  width: 100%; height: 52px; padding: 0 18px 0 46px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--graphite); font: 500 1rem var(--body);
  transition: border-color 200ms var(--ease-out);
}
.jobs__search input:focus { outline: none; border-color: var(--graphite); }
.jobs__search input:focus-visible { box-shadow: 0 0 0 3px rgba(46, 116, 38, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--graphite);
  font: 500 .9375rem/1 var(--body); cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.chip span { color: var(--slate); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.chip[aria-pressed="true"] span { color: var(--lime); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { border-color: var(--graphite); } }
.jobs__status { margin: 26px 0 10px; font-size: var(--fs-small); color: var(--slate); }
.joblist { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job[hidden] { display: none; }
.job__link {
  display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1.7fr) minmax(0, 1.5fr) minmax(0, 1.8fr) minmax(0, 1.5fr) 28px;
  align-items: center; gap: 20px; padding: 22px 8px 22px 4px;
  color: var(--graphite); text-decoration: none; border-radius: 6px;
  transition: background-color 180ms var(--ease-out);
}
.job__title { font: 600 1.1875rem/1.3 var(--display); letter-spacing: -.01em; }
.job__dept, .job__level, .job__where, .job__hours { font-size: .9375rem; color: #3A3E39; }
.job__dept { color: var(--leaf); font-weight: 600; }
.job__go { justify-self: end; width: 10px; height: 10px; margin-right: 6px; border: solid var(--graphite); border-width: 1.75px 1.75px 0 0; transform: rotate(45deg); opacity: .35; transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .job__link:hover { background: var(--white); }
  .job__link:hover .job__go { opacity: 1; transform: translateX(3px) rotate(45deg); }
}
.jobs__empty { padding: 32px 0; color: var(--slate); }
.linklike { padding: 0; border: 0; background: none; color: var(--leaf); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 960px) {
  .job__link { position: relative; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 20px 44px 20px 4px; }
  .job__title { flex: 1 0 100%; margin-bottom: 4px; }
  .job__dept, .job__level, .job__where, .job__hours { font-size: .875rem; }
  .job__go { position: absolute; right: 12px; top: 50%; margin-top: -5px; }
}

/* ---------- life at HexaClicks (dark band) ---------- */
.life { position: relative; isolation: isolate; overflow: hidden; background: var(--graphite); color: var(--on-dark); padding-block: var(--section); }
.life__bg { object-position: 30% 60%; -webkit-mask-image: linear-gradient(270deg, transparent 10%, #000 80%); mask-image: linear-gradient(270deg, transparent 10%, #000 80%); }
.life .label { color: var(--lime); }
.life__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.life__head .lede { margin-top: 20px; color: var(--on-dark-2); }
.life__list { display: grid; }
.life__list li {
  display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line-dark);
  font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.1 var(--display); letter-spacing: -.02em;
}
.life__list li:first-child { border-top: 1px solid var(--line-dark); }
.life__list svg { flex: none; width: 18px; height: 22px; color: var(--lime); transform: scaleX(-1); } /* mirrored: reads as a pointer */
@media (max-width: 860px) { .life__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- job page ---------- */
.btn--block { display: flex; width: 100%; }
.role__head { padding-top: clamp(32px, 5vw, 72px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--slate); }
.role__title { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.8rem); font-weight: 800; letter-spacing: -.035em; }
.role__lede { max-width: 46ch; margin: 20px 0 0; font-size: var(--fs-lede); color: var(--slate); }
.role__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.role__body section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.role__body h2 { font-size: 1.6rem; margin-bottom: 18px; }
.role__body p { max-width: 64ch; color: #3A3E39; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #3A3E39; max-width: 64ch; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 13px; background: var(--leaf);
  /* the logo cursor, mirrored so it reads as a pointer */
  clip-path: polygon(0 0, 100% 65%, 48% 70%, 14% 100%, 0 95%);
}
.role__aside { position: sticky; top: calc(var(--masthead-h) + 24px); }
.role__card { padding: 28px; border-radius: var(--radius); background: var(--chalk); }
.role__facts { display: grid; gap: 20px; margin: 0 0 26px; }
.role__facts dt { font-size: var(--fs-small); font-weight: 600; color: var(--leaf); }
.role__facts dd { margin: 4px 0 0; font-weight: 500; line-height: 1.5; }
.role__note { margin: 16px 0 0; font-size: var(--fs-small); color: var(--slate); line-height: 1.55; }
.role__more { padding-block: var(--section); }
.role__more h2 { font-size: 1.6rem; margin-bottom: 20px; }
.role__all { display: inline-block; margin-top: 24px; font-weight: 600; }
.applybar { display: none; }
@media (max-width: 900px) {
  .role__grid { grid-template-columns: minmax(0, 1fr); }
  .role__aside { position: static; order: -1; }
  .applybar {
    display: block; position: sticky; bottom: 0; z-index: 50; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
}

/* ==========================================================================
   COOKIE CONSENT
   Asks once, after the loader lifts. Reject sits beside Accept with the same weight;
   Cookie settings in the footer reopens it with the choices already open.
   ========================================================================== */
.consent {
  position: fixed;
  /* bottom right: over the hero photo rather than the quick form (was left: clamp(16px, 2.5vw, 32px)) */
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 90; /* under the header (100), so the full-screen menu covers it */
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite);
  box-shadow: 0 0 0 1px rgba(28, 31, 28, .08), 0 28px 56px -24px rgba(28, 31, 28, .45);
  /* resting state; leaving returns here, so it exits the way it came in */
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transform-origin: 100% 100%; /* rises out of its corner */
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease-out), transform 560ms var(--ease-drawer);
}
/* after a choice it fades out while sinking, unhurried, so it never feels snapped shut
   (it used to fall back to the resting state's 220/260ms and a 16px drop) */
.consent.is-leaving {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 440ms cubic-bezier(0.4, 0, 0.2, 1), transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* the content settles in just behind the card, a beat apart */
.consent__head,
.consent__text,
.consent__manage,
.consent__actions {
  opacity: 0;
  transform: translateY(8px);
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions),
.consent.is-leaving :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  opacity: 1;
  transform: none;
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  transition:
    opacity 360ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms),
    transform 480ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms);
}

.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* the HexaClicks mark settles in */
.consent__mark {
  flex: none;
  width: 18px;
  height: 21px;
  color: var(--cursor);
  opacity: 0;
  transform: scale(.6);
}
.consent.is-open .consent__mark,
.consent.is-leaving .consent__mark { opacity: 1; transform: none; }
.consent.is-open .consent__mark { transition: transform 720ms var(--ease-out) 150ms, opacity 280ms var(--ease-out) 150ms; }
.consent__title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; color: var(--graphite); }
.consent__title:focus { outline: none; } /* only ever focused by script, on reopen */
.consent__close {
  display: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -6px -10px -6px auto;
  border-radius: 50%;
  color: var(--slate);
  transition: background-color .2s, color .2s, transform 160ms var(--ease-out);
}
.consent.can-dismiss .consent__close { display: block; }
.consent__close:active { transform: scale(.92); }
.consent__close span,
.consent__close span::before {
  position: absolute;
  left: 11px;
  top: 17px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.consent__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }

.consent__text { margin: 0; font-size: .9375rem; line-height: 1.55; color: #3A3E39; }

.consent__manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--leaf);
  transition: color .2s;
}
.consent__manage svg { width: 12px; height: 12px; transition: transform 260ms var(--ease-in-out); }
.consent.is-expanded .consent__manage svg { transform: rotate(180deg); }

/* choices: the panel opens to its natural height, rows arrive one after another;
   closing is quicker and all together */
.consent__prefs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-in-out); }
.consent.is-expanded .consent__prefs { grid-template-rows: 1fr; transition-duration: 380ms; }
.consent__prefs-inner { min-height: 0; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.consent__row,
.consent__save {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.consent.is-expanded :is(.consent__row, .consent__save) {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms),
    transform 420ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms);
}
.consent__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.consent__label { font-size: 1rem; font-weight: 500; color: var(--graphite); }
label.consent__label { cursor: pointer; }
.consent__row p { grid-column: 1 / -1; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--slate); }
.consent__always { font-size: .875rem; font-weight: 500; color: var(--leaf); }
.consent__save { padding: 6px 0 4px; }

/* switch: the thumb slides across and stretches a little while pressed */
.consent__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: #C9CEC4;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.consent__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 31, 28, .3);
  transition: transform 220ms var(--ease-out), width 160ms var(--ease-out);
}
.consent__switch:checked { background: var(--graphite); }
.consent__switch:checked::before { transform: translateX(18px); }
.consent__switch:active::before { width: 24px; }
.consent__switch:checked:active::before { transform: translateX(14px); }
.consent__switch:focus-visible { outline-offset: 2px; border-radius: 13px; }

.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent__actions .btn { min-height: 46px; padding: 10px 14px; }

@media (hover: hover) and (pointer: fine) {
  .consent__manage:hover { color: var(--graphite); }
  .consent__close:hover { background: var(--mist); color: var(--graphite); }
}

/* phones: a sheet that comes up from the bottom edge and goes back down there */
@media (max-width: 600px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px 20px 20px;
    transform: translateY(calc(100% + 24px));
    transform-origin: 50% 100%;
    transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out);
  }
  /* the sheet sinks back below the edge it came from, fading as it goes */
  .consent.is-leaving { transform: translateY(calc(100% + 24px)); }
  .consent__title { font-size: 1.25rem; }
}

/* reduced motion: gentler, not zero. Everything still fades; nothing travels */
@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent :is(.consent__head, .consent__text, .consent__manage, .consent__actions, .consent__mark, .consent__row, .consent__save) { transform: none !important; }
  .consent__prefs,
  .consent.is-expanded .consent__prefs { transition: none; }
}
.consent__close, .consent__manage { border: 0; background: none; cursor: pointer; }
.consent .btn { font-size: .9375rem; }
.consent :focus-visible { outline-color: var(--leaf); }
