/* =========================================================================
   HUKI — Landing
   Built from Figma: Energy Intelligence › Landing (node 6737:17796)
   Figma colour variables and text styles are mapped to custom properties.
   ========================================================================= */

:root {
  /* --- Colour (Figma "colors/*" variables) --- */
  --brand:      #00d563;
  --dark:       #1b263a;
  --action:     #da567b;
  --white:      #ffffff;
  --gray:       #a0a0a0;
  --lightgray:  #dedede;
  --darkgray:   #4d4d4d;

  /* --- Accessible text variants (WCAG AA, >=4.5:1) for use on light/tint backgrounds ---
     The originals above stay unchanged for use as fills/backgrounds/decoration. --- */
  --brand-text:  #00863e;  /* --brand as body/label text on #fdfdfd (4.61:1, was 1.93:1) */
  --gray-text:   #737373;  /* --gray as body/label text on #fdfdfd (4.66:1, was 2.57:1) */
  --action-text: #cf2d5b;  /* --action as body/label text on #fdfdfd/#f2f8f5 (4.94/4.67:1, was 3.69:1) */
  --action-on-dark: #de6788; /* --action lightened for the flat --dark bg in .s-engagements (4.62:1, was 4.04:1) */

  /* --- One-off fills from the design (not variables in Figma) --- */
  --page:       #fdfdfd;  /* Landing background */
  --tint:       #f2f8f5;  /* qualifier panel */
  --cta-ink:    #0b0b0c;  /* "Give it 30 minutes." */
  --cta-body:   #3a3a3d;  /* CTA paragraph */

  /* --- Type --- */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- Spacing scale observed in the file --- */
  --s1: 4px;   --s2: 8px;   --s4: 16px;  --s5: 20px;
  --s6: 24px;  --s8: 32px;  --s10: 40px; --s12: 48px;
  --s16: 64px; --s20: 80px; --s28: 112px; --s32: 128px; --s40: 160px;

  --container: 1200px;
  --gutter: 24px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: var(--white);
  padding: 12px 16px; border-radius: 4px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lb { display: inline; }               /* designer's intentional line breaks */
.rule { height: 1px; background: var(--lightgray); width: 100%; }

/* ------------------------------------------------------------- type ---- */
/* Figma text styles, 1:1 */
.h1 { font-weight: 700; font-size: 64px; line-height: 72px; }
.h2 { font-weight: 800; font-size: 64px; line-height: .8; letter-spacing: .04em; }
.h3 { font-weight: 700; font-size: 28px; line-height: 32px; }
.h4 { font-weight: 900; font-size: 104px; line-height: 104px; letter-spacing: -.0365em; }
.h5 { font-weight: 800; font-size: 32px; line-height: 38px; }
.h6 { font-weight: 700; font-size: 24px; line-height: 28px; letter-spacing: -.0417em; }
.base  { font-weight: 500; font-size: 18px; line-height: 28px; }
.base2 { font-weight: 400; font-size: 16px; line-height: 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: .032em;
}
.eyebrow--action   { color: var(--action-text); }
.eyebrow--gray     { color: var(--gray-text); }
.eyebrow--darkgray { color: var(--darkgray); }
.eyebrow--brand    { color: var(--brand); }
/* Hero sits on a black scrim — the original --action pink already clears
   AA there (~5.4:1 against the near-black scrim), so keep it. */
.hero .eyebrow--action { color: var(--action); }
/* .s-engagements is a flat --dark navy fill (no scrim) — the base --action
   pink only reaches 4.04:1 here, just under AA, so use a lightened variant
   tuned specifically for this solid background (4.62:1). */
.s-engagements .eyebrow--action { color: var(--action-on-dark); }
.s-first30 .eyebrow--brand { color: var(--brand-text); }

/* ----------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  cursor: pointer;
}
.btn--brand        { background: var(--brand); color: var(--dark); }
.btn--brand:hover  { background: #00bd58; }
.btn--brand:active { background: #00a34c; }
.btn--dark         { background: var(--dark); color: var(--white); }
.btn--dark:hover   { background: #263352; }
.btn--dark:active  { background: #131a29; }
.btn--ghost-light        { color: var(--white); }
.btn--ghost-light:hover  { background: rgba(255,255,255,.12); }
.btn--ghost-light:active { background: rgba(255,255,255,.2); }
.btn--outline-light        { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover  { background: rgba(255,255,255,.14); }
.btn--outline-light:active { background: rgba(255,255,255,.22); }

/* text-only arrow button (qualifier + cards) */
.btn--text {
  padding: 0;
  border-radius: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--dark);
  /* Shrink to content width and pin left instead of stretching full-width
     and centering — matters wherever this sits in a stretch-aligned flex
     column (e.g. .qualifier__panel). Global fix, not a one-off override. */
  align-self: flex-start;
}
.btn--text:hover .btn__arrow { transform: translateX(4px); }
.btn--text:active .btn__arrow { transform: translateX(4px) translateY(1px); }
.btn__arrow { transition: transform .18s ease; }

/* ============================================================== NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,253,253,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--lightgray);
  box-shadow: 0 0 0 rgba(27,38,58,0);
  transition: box-shadow .25s ease, background-color .25s ease;
}
/* Elevation cue as the page scrolls — the navbar's animation. */
.navbar--scrolled { box-shadow: 0 4px 16px rgba(27,38,58,.08); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.navbar__left { display: flex; align-items: center; gap: var(--s12); }
.navbar__logo img { width: 128px; height: 40px; }
.navbar__logo { display: inline-flex; transition: opacity .18s ease; }
.navbar__logo:hover { opacity: .8; }
.navbar__nav { display: flex; align-items: center; gap: var(--s2); }
.navlink {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  color: var(--dark);
  white-space: nowrap;
  border-radius: 4px;
}
.navlink:hover { background: rgba(27,38,58,.06); }
/* Dead-link placeholders — not yet linkable, so no hover/focus affordance. */
.navlink--soon { opacity: .45; cursor: default; }

/* Nav CTA only appears once the hero has scrolled past — matches hukilp.html */
.navbar__cta {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.navbar__cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ========================================================= MOBILE STICKY CTA */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(253,253,253,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--lightgray);
  transform: translateY(110%);
  transition: transform .22s ease-out;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; }

/* ================================================================ HERO */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Scales with the viewport (monitor resolution) but is clamped between
     a usable floor and the Figma-designed ceiling. */
  height: 100vh;
  height: 100svh; /* avoids mobile browsers' address-bar chrome resizing this mid-scroll */
  min-height: 680px;
  max-height: 1024px;
  padding-block: var(--s32);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
}
.hero__inner { display: flex; gap: var(--s12); align-items: flex-start; }
.hero__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.hero__col--right { gap: var(--s12); }
.hero__title { color: var(--white); }
.hero__group { display: flex; flex-direction: column; gap: var(--s4); }
.hero__lede,
.hero__claim { color: var(--lightgray); }
.hero__claim { font-weight: 700; }
.hero__actions { display: flex; gap: var(--s6); flex-wrap: wrap; }

.metarow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: .032em;
  color: var(--gray);
}

/* ========================================== WHERE EXPERIENCE COMES FROM */
.s-aboutwork { padding-block: var(--s32); }
.s-aboutwork .container { display: flex; flex-direction: column; gap: var(--s2); }
.aboutwork__group {
  display: flex; flex-direction: column; gap: var(--s8);
  padding-block: var(--s6);
}
.aboutwork__logos { display: flex; gap: var(--s8); align-items: center; }
.logocard { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.logocard__head { display: flex; flex-direction: column; gap: var(--s2); }
.logocard__body { padding-top: var(--s4); }
.logocard__mark { width: 152px; height: 40px; }
.logocard__mark--text {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logocard__mark--text span {
  font-weight: 700; font-size: 24px; line-height: 28px;
  letter-spacing: -1px; color: var(--darkgray);
  white-space: nowrap;
}
.logocard__meta { color: var(--darkgray); }

.aboutwork__trusted { display: flex; flex-direction: column; gap: var(--s4); }
.trustedlist {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 24px;
  color: var(--darkgray);
}

/* =========================================================== QUALIFIER */
.s-qualifier { padding-block: var(--s16); }
.qualifier__panel {
  background: var(--tint);
  padding: var(--s12);
  display: flex; flex-direction: column; gap: var(--s6);
}
.qlist { display: flex; flex-direction: column; }
.qlist__item {
  display: flex; gap: var(--s6); align-items: center;
  padding-block: var(--s6);
  border-top: 1px solid var(--lightgray);
}
.qlist__item--last { border-bottom: 1px solid var(--lightgray); }
.qlist__num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 14px; line-height: 22px; letter-spacing: .032em;
  color: var(--darkgray); flex: none;
}
.qlist__text { flex: 1 1 0; min-width: 0; }

/* ==================================================== HOW EMBEDDING WORKS */
.s-mechanism { padding-top: var(--s16); }
.s-mechanism .container {
  display: flex; flex-direction: column; gap: var(--s6);
  padding-top: var(--s12);
}
.mlist { display: flex; flex-direction: column; }
.mlist__item {
  display: flex; align-items: flex-start;
  padding-block: var(--s8);
  border-top: 1px solid var(--lightgray);
}
.mlist__item--last { border-bottom: 1px solid var(--lightgray); }
.mlist__title { flex: 1 1 0; min-width: 0; padding-right: var(--s6); }
.mlist__body  { flex: 1 1 0; min-width: 0; color: var(--darkgray); }

/* ========================================================= FIRST 30 DAYS */
.s-first30 { padding-block: var(--s32); }
.first30__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s12); }

.timeline { width: 552px; max-width: 100%; display: flex; flex-direction: column; gap: var(--s6); }
.timeline__item {
  position: relative;
  padding-left: 34px;
  padding-bottom: var(--s2);
  display: flex; flex-direction: column; gap: var(--s2);
}
.timeline__item--last { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 4px; top: 9px;
  width: 9px; height: 9px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.timeline__line {
  position: absolute; left: 8px; top: 28.5px; bottom: 13.5px;
  width: 1px; background: var(--lightgray);
}
.timeline__title { color: var(--dark); }
.timeline__body  { color: var(--darkgray); }

.first30__aside { display: flex; flex-direction: column; gap: var(--s6); flex: none; }
.first30__img { width: 453px; max-width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.first30__img img { width: 100%; height: 100%; object-fit: cover; }
.first30__caption {
  width: 453px; max-width: 100%;
  font-style: italic;
  font-size: 16px; line-height: 24px;
  color: var(--darkgray);
}

/* =========================================================== ENGAGEMENTS */
.s-engagements {
  background: var(--dark);
  padding-top: var(--s28);
  padding-bottom: var(--s40);
}
.s-engagements .container {
  display: flex; flex-direction: column; gap: var(--s6);
  padding-top: var(--s12);
}
.engagements__title { color: var(--white); }
.engagements__sub {
  font-size: 15px; line-height: 24px;
  color: var(--lightgray);
}
.engagements__grid { display: flex; align-items: stretch; }
.engcol {
  flex: 1 1 0; min-width: 0;
  padding-right: var(--s12);
  padding-block: var(--s8);
  display: flex; flex-direction: column; gap: var(--s4);
}
.engcol__head { display: flex; flex-direction: column; gap: var(--s1); }
.engcol__title { color: var(--white); }
.engcol__body {
  font-size: 14px; line-height: 23px;
  color: var(--lightgray);
}

/* ================================================================= ABOUT */
.s-about { padding-block: var(--s16); }
.s-about .container {
  display: flex; flex-direction: column; gap: var(--s6);
  padding-top: var(--s12);
}
.about__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s12); }
.about__card { width: 452px; max-width: 100%; display: flex; flex-direction: column; gap: var(--s6); flex: none; }
.about__portrait { height: 282px; overflow: hidden; }
.about__portrait img {
  width: 132.21%; height: 119.23%;
  margin-left: -11.28%; margin-top: -9.93%;
  object-fit: cover;
}
.about__id { display: flex; flex-direction: column; gap: var(--s1); }
.about__body { width: 552px; max-width: 100%; display: flex; flex-direction: column; gap: 15.3px; flex: none; }
.about__pull {
  font-style: italic;
  font-weight: 700; font-size: 28px; line-height: 38px;
}

/* ========================================================= HOW TO START */
.s-howtostart { padding-block: var(--s16); }
.s-howtostart .container {
  display: flex; flex-direction: column; gap: var(--s6);
  padding-top: var(--s12);
}
.cards { display: flex; align-items: stretch; border-top: 1px solid var(--lightgray); }
.card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: var(--s6);
  padding-block: var(--s10);
  padding-left: var(--s12);
  padding-right: 49px;
  border-right: 1px solid var(--lightgray);
}
.card:first-child { padding-left: 0; }
.card--last { border-right: 0; padding-right: 0; }
.card__head { display: flex; flex-direction: column; }
.card__sub { color: var(--darkgray); }
.card__body { display: flex; flex-direction: column; gap: var(--s5); flex: 1 1 auto; }
.card__approach { display: flex; flex-direction: column; }
.bullets { list-style: disc; padding-left: 1.5em; }
.bullets li { font-size: 16px; line-height: 24px; }
.card__foot {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--lightgray);
}

/* =================================================================== FAQ */
.s-faq { padding-block: var(--s16); }
.s-faq .container {
  display: flex; flex-direction: column; gap: var(--s6);
  padding-top: var(--s12);
}
.faq { display: flex; flex-direction: column; }
.faq__row { border-top: 1px solid var(--lightgray); }
.faq__row:last-child { border-bottom: 1px solid var(--lightgray); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
  padding-block: var(--s6);
  font-weight: 400; font-size: 22px; line-height: 28px;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.faq__icon::before,
.faq__icon::after {
  content: ""; position: absolute; background: var(--gray);
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after  { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .18s ease; }
.faq__row[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding-bottom: var(--s6); max-width: 800px; color: var(--darkgray); }

/* ============================================================= PORTFOLIO */
.s-portfolio { padding-block: var(--s32); }
.s-portfolio .container { display: flex; flex-direction: column; gap: var(--s12); }
.portfolio__title { color: var(--dark); }

.work {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start;
  padding: var(--s12);
  overflow: hidden;
  isolation: isolate;
}
.work--feature { min-height: 648px; background: var(--tint); }
.work--tile {
  flex: 1 1 0; min-width: 0;
  min-height: 584px;
  background: var(--lightgray);
}
.work__pair { display: flex; gap: var(--s12); align-items: stretch; }
.work__media { position: absolute; inset: 0; z-index: -1; }
.work__media img { width: 100%; height: 133.33%; object-fit: cover; object-position: top; }
.work__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0), #000); }

/* #cpms and #mobile-app now use a real photo (.work__media + .work__scrim,
   same structure as .work--feature) — these are just the fallback/loading
   colors, matching how .work--feature falls back to var(--tint). The
   top-to-bottom gradient itself lives in .work__scrim, so it's kept, not
   duplicated here. */
#cpms { background: #FAF5FF; }
#mobile-app { background: #F0F9FF; }

.badge {
  background: var(--brand);
  color: var(--dark);
  font-family: var(--font-mono); font-weight: 600;
  font-size: 14px; line-height: 22px; letter-spacing: .032em;
  padding: 6px 12px;
}
.work__foot {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s6);
}
.work__text { display: flex; flex-direction: column; gap: var(--s2); }
.work__arrow {
  font-weight: 700; font-size: 32px; line-height: 1;
  letter-spacing: -.025em;
  transition: transform .2s ease;
}
.work:hover .work__arrow { transform: translate(4px, -4px); }
.work--feature .work__foot,
.work--tile .work__foot { color: var(--white); }

/* ================================================================== CTA */
.s-cta { background: var(--brand); }
.s-cta .container {
  display: flex; flex-direction: column; gap: var(--s12);
  padding-block: var(--s32);
}
.cta__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s12); }
.cta__title { flex: 1 1 0; min-width: 0; color: var(--dark); }
.cta__panel {
  width: 452px; max-width: 100%; flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s6);
}
.cta__lead { color: var(--cta-ink); }
.cta__body { color: var(--cta-body); }
.cta__actions { display: flex; gap: var(--s6); flex-wrap: wrap; }
.cta__alt {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  font-size: 16px; line-height: 24px;
  color: var(--dark);
}
.cta__alt a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-underline-offset .18s ease;
}
.cta__alt a:hover { text-underline-offset: 5px; }

/* =============================================================== FOOTER */
.footer { background: var(--dark); padding-block: var(--s6); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.footer__brand { display: flex; align-items: center; gap: var(--s6); }
.footer__logo { display: inline-flex; transition: opacity .18s ease; }
.footer__logo:hover { opacity: .8; }
.footer__logo img { width: 128px; height: 40px; }
.footer__social { display: flex; align-items: center; gap: var(--s4); }
.footer__social a { display: inline-flex; color: var(--white); opacity: .75; transition: opacity .18s ease; }
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 18px; height: 18px; display: block; }
.footer__meta {
  font-weight: 500; font-size: 14px; line-height: 14px;
  color: var(--white);
}
.footer__meta a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   RESPONSIVE
   The Figma file has one desktop frame only, so every breakpoint below is
   an implementation decision — review and adjust.
   ========================================================================= */

@media (max-width: 1024px) {
  .h1 { font-size: 48px; line-height: 56px; }
  .h2 { font-size: 44px; }
  .h4 { font-size: 68px; line-height: 70px; }

  .lb { display: none; }

  .hero { padding-block: var(--s20); }
  .hero__inner { flex-direction: column; gap: var(--s10); }

  .first30__inner { flex-direction: column; }
  .first30__aside { width: 100%; }
  .first30__img, .first30__caption { width: 100%; }

  .engagements__grid { flex-wrap: wrap; }
  .engcol { flex: 1 1 45%; }

  .about__grid { flex-direction: column; }
  .about__card, .about__body { width: 100%; }

  .cards { flex-direction: column; }
  .card {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--lightgray);
  }
  .card--last { border-bottom: 0; }

  .cta__grid { flex-direction: column; }
  .cta__panel { width: 100%; }
}

@media (max-width: 900px) {
  .navbar__inner { flex-wrap: wrap; padding-block: var(--s4); row-gap: var(--s2); }
  .navbar__left { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .navbar__nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .navbar__nav::-webkit-scrollbar { display: none; }
  .navbar__right { flex: 1 1 100%; }
  .navbar__right .btn { width: 100%; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .h1 { font-size: 38px; line-height: 46px; }
  .h2 { font-size: 34px; line-height: .95; }
  .h3 { font-size: 24px; line-height: 30px; }
  .h4 { font-size: 46px; line-height: 50px; }
  .h5 { font-size: 26px; line-height: 32px; }
  .base { font-size: 17px; line-height: 27px; }

  .s-aboutwork, .s-first30, .s-portfolio { padding-block: var(--s20); }
  .s-qualifier, .s-about, .s-howtostart, .s-faq { padding-block: var(--s10); }
  .s-mechanism { padding-top: var(--s10); }
  .s-mechanism .container,
  .s-about .container,
  .s-howtostart .container,
  .s-faq .container { padding-top: var(--s6); }
  .s-engagements { padding-top: var(--s16); padding-bottom: var(--s20); }
  .s-engagements .container { padding-top: var(--s6); }
  .s-cta .container { padding-block: var(--s20); }

  .aboutwork__logos { flex-direction: column; align-items: stretch; gap: var(--s6); }
  .trustedlist { justify-content: flex-start; gap: var(--s4) var(--s6); }

  .qualifier__panel { padding: var(--s6); }
  .qlist__item { align-items: flex-start; gap: var(--s4); }

  .mlist__item { flex-direction: column; gap: var(--s4); padding-block: var(--s6); }
  .mlist__title { padding-right: 0; }

  .engcol { flex: 1 1 100%; padding-right: 0; padding-block: var(--s6); }

  .faq__q { font-size: 18px; line-height: 26px; align-items: flex-start; }

  .work { padding: var(--s6); }
  .work--feature { min-height: 420px; }
  .work--tile { min-height: 360px; }
  .work__pair { flex-direction: column; gap: var(--s6); }
  .work__foot { flex-direction: row; align-items: flex-end; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .footer__brand { gap: var(--s4); }

  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 420px) {
  .h1 { font-size: 32px; line-height: 40px; }
  .h4 { font-size: 38px; line-height: 42px; }
  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }
}

/* ============================================================= MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 38, 58, .55);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--page);
  border-radius: 8px;
  padding: var(--s12);
  box-shadow: 0 24px 64px rgba(11, 11, 12, .24);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: var(--s6);
  right: var(--s6);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
  color: var(--darkgray);
  cursor: pointer;
}
.modal__close:hover { background: rgba(27, 38, 58, .06); }
.modal__title { margin-bottom: var(--s2); padding-right: var(--s10); }
.modal__intro { color: var(--darkgray); margin-bottom: var(--s6); }
.modal__form { display: flex; flex-direction: column; gap: var(--s2); }
.modal__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-top: var(--s4);
}
.modal__label:first-child { margin-top: 0; }
.modal__input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--lightgray);
  border-radius: 4px;
  background: var(--white);
  color: var(--dark);
}
.modal__textarea { resize: vertical; min-height: 96px; font-family: var(--font); }
.modal__turnstile { margin-top: var(--s4); }
.modal__submit { margin-top: var(--s6); }
.modal__submit[disabled] { opacity: .6; cursor: default; }
.modal__status {
  font-size: 14px;
  margin: var(--s2) 0 0;
  min-height: 1.2em;
  color: var(--darkgray);
}
.modal__status[data-state="error"] { color: var(--action-text); }
.modal__status[data-state="success"] { color: var(--brand-text); }

@media (max-width: 420px) {
  .modal__dialog { padding: var(--s6); }
}
