/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/aeonikarabic-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/aeonikarabic-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik Mono Pro";
  src: url("../fonts/aeonikmonopro-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1e1e1e;
  --ink-2: #323232;
  --muted: #808080;
  --muted-2: #999;
  --line: #e5e5e5;
  --surface: #f6f6f6;
  --white: #fff;
  --lime: #d4fa70;
  --lime-soft: #dff887;
  --lime-wash: #fbfff0;
  --sans: "Aeonik Arabic", "Helvetica Neue", Arial, sans-serif;
  --mono: "Aeonik Mono Pro", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 40px;
  --edge: 10px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 160px); }
.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  line-height: .96;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.h-xl {
  font-weight: 400;
  font-size: 72px;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.h-lg {
  font-weight: 400;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -.04em;
}
.lead {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 5px 19px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 500;
  font-size: 24px;
  line-height: .96;
  letter-spacing: -.04em;
  text-decoration: none;
  transition: border-color .3s, box-shadow .3s;
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--lime);
  transition: background .3s;
}
.btn__icon svg { width: 22px; height: 22px; fill: var(--ink); transition: transform .6s var(--ease); }
.btn:hover { border-color: #ccc; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.btn:hover .btn__icon svg { transform: rotate(90deg); }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid #ccc;
  border-radius: 11px;
  font-weight: 500;
  font-size: 16px;
  line-height: .96;
  letter-spacing: -.04em;
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
.btn-sm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.btn-sm:hover { background: var(--lime); border-color: var(--lime); }
.btn-sm:hover svg { transform: translateX(3px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 500;
  font-size: 16px;
  line-height: .96;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; fill: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 23px var(--gutter) 20px;
  transition: padding .5s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin-inline: auto;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: max-width .6s var(--ease), padding .6s var(--ease), background .4s, border-color .4s;
}
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 20px; line-height: 1.16; letter-spacing: -.03em; }
.nav__links a { text-decoration: none; position: relative; transition: color .2s; }
.nav__links a:not(.nav__cta)::before {
  content: "✦";
  position: absolute;
  left: -14px;
  top: 50%;
  font-size: 11px;
  transform: translateY(-50%) scale(0);
  transition: transform .3s var(--ease);
}
.nav__links a.is-active:not(.nav__cta)::before { transform: translateY(-50%) scale(1); }
.nav__links a:not(.nav__cta):hover { color: var(--muted); }
/* old Framer button: white 4px ring with a thin outline around the lime fill */
.nav__cta {
  position: relative;
  z-index: 0;
  padding: 12px 11px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  background: var(--white);
  font-weight: 500;
  line-height: .96;
}
.nav__cta::before { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 6px; background: var(--lime); transition: background .2s; }
.nav__cta:hover::before { background: #c6ee5c; }
.nav.is-scrolled { padding-top: 12px; }
.nav.is-scrolled .nav__inner {
  max-width: 800px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 240px;
  padding-bottom: 28px;
  overflow: hidden;
}
/* the old Framer hero: one huge mapo star with a lime-to-white gradient, mostly off-canvas */
.hero__glow {
  position: absolute;
  left: 381px;
  top: -678px;
  width: 2191px;
  height: 2191px;
  background: url("../img/hero-star.svg") no-repeat center / 100% 100%;
  pointer-events: none;
}
.hero__content { position: relative; width: 100%; }
.hero__title {
  font-weight: 400;
  font-size: 90px;
  line-height: 1.111;
  letter-spacing: -.04em;
  margin-bottom: 15px;
}
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(6px); animation: rise .9s var(--ease) forwards; }
.hero__title .w:nth-child(2) { animation-delay: .06s; }
.hero__title .w:nth-child(3) { animation-delay: .12s; }
.hero__title .w:nth-child(4) { animation-delay: .18s; }
.hero__title .w:nth-child(6) { animation-delay: .24s; }
.hero__title .w:nth-child(7) { animation-delay: .30s; }
.hero__title .w:nth-child(8) { animation-delay: .36s; }
.hero__dot { width: .24em; height: .24em; border-radius: 50%; background: var(--ink); margin-left: .14em; vertical-align: .19em; }
.hero__dots { margin-left: .14em; vertical-align: -.02em; }
.hero__dots svg { width: .72em; height: .72em; fill: var(--ink); }
.hero .lead { margin-bottom: 48px; max-width: 790px; font-size: 22px; line-height: 30px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.hero__spots { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 16px; line-height: .96; letter-spacing: -.03em; color: rgba(30,30,30,.6); }
.hero__spots svg { width: 14px; height: 14px; }

.ticker { position: relative; width: 100%; display: flex; align-items: center; gap: 24px; margin-top: 64px; }
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track img { width: auto; flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- About ---------- */
.about { padding-top: 201px; padding-bottom: 0; }
.work { padding-top: 179px; padding-bottom: 171px; }
.about__grid { display: grid; grid-template-columns: 55.45% 1fr; gap: 40px 0; align-items: start; }
.about .h-lg { margin-bottom: 32px; max-width: 640px; }
.about .stats { align-self: stretch; }
.about .lead { margin-bottom: 32px; max-width: 610px; }
.stats { padding-top: 48px; }
.stats li { display: flex; gap: 24px; align-items: flex-start; padding-block: 28px 36px; }
.stats img { margin-top: 18px; }
.stats strong { display: block; font-weight: 400; font-size: 48px; letter-spacing: -.02em; line-height: 1.2; color: #000; margin-bottom: 4px; }
.stats li > div > span { font-size: 20px; line-height: .96; letter-spacing: -.03em; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--edge);
  padding: 0 var(--edge);
}
.services-wrap { --svc-top: 198px; position: relative; padding-top: var(--svc-top); }
.svc-arrow, .show-phone { display: none; }
/* Flip cards: both faces turn 180° on the Y axis (0.6s, same curve as the Framer original) */
.svc {
  position: relative;
  height: 215px;
  perspective: 1200px;
  cursor: pointer;
  border-radius: 5px;
  --face-bg: var(--white);
  --face-fg: #000;
  --face-line: var(--line);
}
.svc--lime { --face-bg: var(--lime); --face-line: var(--lime); }
.svc--dark { --face-bg: var(--ink); --face-fg: var(--white); --face-line: var(--ink); }
.svc__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--face-line);
  border-radius: 5px;
  background: var(--face-bg);
  color: var(--face-fg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transition: transform .6s cubic-bezier(.44, 0, .56, 1);
}
.svc__face--back { transform: rotateY(180deg); }
.svc.is-flipped .svc__face--front { transform: rotateY(180deg); }
.svc.is-flipped .svc__face--back { transform: rotateY(0deg); }
@media (hover: hover) {
  .svc:hover .svc__face--front { transform: rotateY(180deg); }
  .svc:hover .svc__face--back { transform: rotateY(0deg); }
}
.svc__icon { height: 40px; width: auto; }
.svc h3 { font-weight: 400; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.svc p { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }

/* ---------- Work / reviews ---------- */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 48px; }
.work .h-lg { margin-bottom: 32px; }
.work .lead { max-width: 720px; }
.carousel-nav { display: flex; gap: 8px; }
.arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); transition: opacity .2s, transform .2s; }
.arrow svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:disabled { opacity: .25; cursor: default; }
.arrow:not(:disabled):hover { transform: scale(1.06); }

.reviews {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 80px var(--gutter) 8px;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 clamp(290px, 25vw, 360px);
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.review::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.1); border-radius: inherit; pointer-events: none; }
.review__top {
  height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 32px;
  background: var(--surface);
}
.review__logo { height: 40px; width: auto; max-width: 75%; object-fit: contain; object-position: left; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: .96;
  color: var(--ink-2);
  text-transform: uppercase;
}
.status > :not(.status__plus) { padding: 6px 4px; }
.status--past { padding: 9px 10px; }
.status__plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--lime); }
.status__plus svg { width: 10px; height: 10px; fill: var(--ink); }
.status__active { padding-left: 10px !important; padding-right: 8px !important; border-left: 1px solid var(--line); color: rgba(50,50,50,.5); }
.review__body { padding: 24px; }
.person { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.person img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font-weight: 500; font-size: 18px; line-height: 1.2; }
.person span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 16px; line-height: 1.2; text-transform: uppercase; color: rgba(0,0,0,.4); }
.review__body p { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }

/* ---------- Panels ---------- */
.panel {
  margin: 0 var(--edge);
  border-radius: 5px;
  padding: 40px;
}
.panel--dark { background: var(--ink); color: var(--white); }
.panel--lime { background: var(--lime); }

.different { padding-top: 60px; min-height: 624px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.different .muted { color: #808080; }
.different__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.different__msg { width: min(545px, 100%); height: auto; }
.different__logo { width: 174px; height: auto; flex: none; }

/* ---------- Pricing ---------- */
.pricing { padding-top: 180px; padding-bottom: 180px; }
.pricing .h-xl { margin-bottom: 48px; }
.tabs { margin: 120px var(--edge) 0; }
.tabs__list { display: flex; align-items: flex-end; }
.tabs__list [role="tab"] {
  padding: 20px 40px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--muted);
  border-radius: 0 var(--radius) 0 0;
  background: var(--white);
  transition: color .2s, background .2s;
}
.tabs__list [role="tab"][aria-selected="true"] { padding-block: 24px; color: var(--ink); background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; }
.tabs__list [role="tab"]:not([aria-selected="true"]):hover { color: var(--ink); }
.tabs__panel { background: var(--surface); padding: 48px 40px 16px; border-radius: 0 var(--radius) var(--radius) var(--radius); }
.tabs__panel > p { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.with { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; margin-bottom: 24px; }
.avatars { display: inline-flex; padding: 2px; border-radius: 30px; background: var(--white); }
.avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; }
.avatars img + img { margin-left: -10px; }
.steps { margin-top: 11px; }
.steps > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px 80px; padding-block: 40px 32px; align-items: center; }
.steps > div + div { border-top: 1px solid var(--line); margin-top: 9px; }
.steps dt { font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.steps dd { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { padding: 8px; border-radius: 12px; background: rgba(0,0,0,.05); font-weight: 500; font-size: 16px; line-height: .96; letter-spacing: -.03em; }

/* ---------- CTA timeline ---------- */
.cta { min-height: 549px; padding-block: 80px; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; }
.timeline { display: grid; grid-template-columns: 90px minmax(0, 720px); gap: 8px 48px; align-items: center; font-family: var(--mono); font-size: 16px; line-height: .96; text-transform: uppercase; }
.timeline__row { display: flex; gap: 4px; }
.bar { display: block; flex: 0 1 var(--w); min-width: 0; padding: 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; transform-origin: left; }
.bar--dark { background: var(--ink); color: var(--white); }
.bar--outline { box-shadow: inset 0 0 0 .5px var(--ink); }
.cta.is-in .bar { animation: grow 1s var(--ease) both; }
.cta.is-in .timeline__row:first-of-type .bar:nth-child(2) { animation-delay: .25s; }
.cta.is-in .timeline__row:first-of-type .bar:nth-child(3) { animation-delay: .45s; }
.cta.is-in .bar--outline { animation-duration: 2s; }

/* ---------- Team ---------- */
.team { padding-top: 179px; padding-bottom: 38px; }
.team .rule { margin-top: 120px; }
.team__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 120px; }
.team__logos { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 20px 32px; max-width: 452px; }
.team__logos img { width: auto; opacity: .85; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; background: var(--surface); }
.member h3 { font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -.03em; padding-inline: 8px; }
.member .role { font-family: var(--mono); font-size: 16px; line-height: 1.2; letter-spacing: -.04em; text-transform: uppercase; margin: 6px 0 22px; padding-inline: 8px; }
.member p:last-child { font-size: 18px; line-height: 1.2; letter-spacing: -.03em; color: rgba(0,0,0,.6); padding-inline: 8px; }

/* ---------- Friends collage ---------- */
.friends { position: relative; overflow: hidden; height: 800px; display: grid; place-items: center; margin-top: 143px; border-radius: 4px; }
.friends__title { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.friends__board { position: absolute; inset: 0; }
.q { position: absolute; height: auto; border-radius: 6px; transition: transform .5s var(--ease); animation: q-float 3.5s ease-in-out infinite alternate; }
.q:hover { z-index: 3; transform: scale(1.03); }
/* sizes and positions measured from the old Framer layout (800px board from 1200px up) */
.q--mason   { width: 33%; left: 2.8%; top: 7.3%;  animation-delay: -.6s; }
.q--steve   { width: 36%; left: 38%;  top: 3%;    animation-delay: -2.6s; }
.q--simon   { width: 37%; left: 63%;  top: 21.6%; animation-delay: -1.2s; }
.q--shan    { width: 35%; left: 2.8%; top: 59.5%; animation-delay: -3.2s; }
.q--joumana { width: 27%; left: 73%;  top: 47%;   animation-delay: -1.8s; }
.q--carla   { width: 52%; left: 4.2%; top: 79.8%; animation-delay: -2.3s; }
@media (max-width: 1199px) {
  /* Framer's 810–1199px variant: shorter 655px board */
  .friends { height: 655px; }
  .q--mason   { left: 2.9%; top: 8.9%; }
  .q--steve   { top: 3.7%; }
  .q--simon   { left: 64.2%; top: 26.4%; }
  .q--shan    { left: 2.9%; top: 60.5%; }
  .q--joumana { left: 74.2%; top: 57.4%; }
  .q--carla   { left: 4.9%; top: 80.8%; }
}
@keyframes q-float { from { translate: 0 -6px; } to { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .q { animation: none; } }

/* ---------- Roles ---------- */
.roles { padding-top: 179px; padding-bottom: 106px; }
.roles .h-lg { margin-bottom: 116px; }
.roles__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 50px 49px; border-top: 1px solid var(--line); }
.roles__list li:last-child { border-bottom: 1px solid var(--line); }
.roles__list h3 { font-weight: 400; font-size: 40px; letter-spacing: -.04em; line-height: 1; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(200deg, var(--lime-wash), #fff 55%); padding-top: 80px; }
.contact__inner { text-align: center; }
.contact .h-xl { margin-bottom: 48px; }
.madlib { max-width: 760px; margin-inline: auto; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.madlib p, .madlib fieldset { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; margin: 0 0 16px; padding: 0; border: 0; }
.madlib legend { float: left; margin-right: 8px; padding: 0; }
.madlib input[type="text"], .madlib input[type="email"] {
  /* matches the old Framer field: flat 1px underline, square ends, no focus change */
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  width: 211px;
  padding: 2px 8px 8px 20px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  background: transparent;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}
.madlib input::placeholder { color: rgba(30,30,30,.5); }
.madlib input:focus { outline: none; }
.madlib input[aria-invalid="true"] { border-bottom-color: #d33; }
#f-email { width: 333px; }
.choices { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 500; font-size: 16px; line-height: .96; letter-spacing: -.03em; transition: background .2s, border-color .2s; }
.choices input:checked + span { background: var(--lime); border-color: var(--lime); }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.madlib p:first-child { margin-bottom: 11px; }
.madlib fieldset { margin-bottom: 19px; }
.madlib .btn { margin-top: 29px; }
.madlib #contact-status, .madlib .contact__fallback { display: block; font-size: 16px; line-height: 1.5; margin: 16px 0 0; }
.contact__fallback a { text-decoration: underline; }
.contact__fallback a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #f6f4ef; padding: 40px var(--gutter) 60px; }
.contact { padding-bottom: 168px; }
.footer__links { display: flex; justify-content: flex-end; gap: 75px; margin-bottom: 157px; font-size: 24px; line-height: .96; letter-spacing: -.05em; }
.footer__links li + li { margin-top: 12px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__mark { width: 100%; height: auto; max-width: 1360px; margin-inline: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-up { opacity: 0; animation: rise .9s .45s var(--ease) forwards; }

@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* =========================================================
   Tablet (810–1439px): Framer's middle breakpoint
   ========================================================= */
@media (max-width: 1439px) {
  .h-xl { font-size: 58px; line-height: 1.2; }
  .different .h-xl { font-size: 72px; line-height: 1.1; }
  .h-lg { font-size: 48px; }
  .about .h-lg { font-size: 60px; }
  .hero__title { font-size: 72px; line-height: 84px; margin-bottom: 16px; }
  .hero__title br { display: none; }
  .hero__title { max-width: 780px; }
  .hero { padding-top: 206px; padding-bottom: 20px; }
  .about__grid { grid-template-columns: 62.2% 1fr; }
  .about .lead { max-width: 580px; }
  .stats { padding-top: 63px; }
  .work { padding-bottom: 101px; }
  .cta { min-height: 530px; }
  .roles__list h3 { font-size: 32px; }
  .roles { padding-bottom: 134px; }
  .roles .h-lg { margin-bottom: 112px; }
}

/* Framer's 810–1199px variant: one-column about, two-column cards, 12px edge on the reviews */
@media (max-width: 1199px) {
  .hero { padding-top: 226px; }
  .about__grid { display: flex; flex-direction: column; gap: 0; }
  .about__grid > div { display: contents; }
  .about .h-lg { max-width: none; }
  .about .lead { max-width: none; margin-bottom: 20px; }
  .about .stats { order: 1; padding-top: 0; }
  .about .btn { order: 2; align-self: flex-start; margin-top: 15px; }
  .stats li { gap: 38px; }
  .stats li + li { border-top: 1px solid var(--line); }
  .services-wrap { --svc-top: 177px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(1) { order: 0; } .svc:nth-child(6) { order: 1; } .svc:nth-child(2) { order: 2; }
  .svc:nth-child(3) { order: 3; } .svc:nth-child(5) { order: 4; } .svc:nth-child(4) { order: 5; }
  .work .container { padding-inline: 12px; }
  .reviews { padding-inline: 16px; scroll-padding-inline: 16px; padding-top: 89px; }
  .tabs { margin-top: 144px; }
  .cta { padding-bottom: 56px; }
  .cta .h-xl { max-width: 780px; }
  .team { padding-top: 205px; }
  .team__head { flex-direction: column; gap: 24px; margin-bottom: 98px; }
  .team__logos { justify-content: flex-start; }
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 56px 18px; }
  .different { min-height: 788px; }
  .different__foot { flex-direction: column; align-items: flex-start; gap: 55px; }
  .different__msg { width: min(545px, 100%); }
}

/* =========================================================
   Phone (≤ 809px): Framer's phone breakpoint
   ========================================================= */
@media (max-width: 809px) {
  :root { --gutter: 12px; --edge: 12px; }
  .panel { padding: 24px; }
  .tabs__panel { padding: 32px 24px 16px; }
  .steps > div { grid-template-columns: 1fr; gap: 23px; padding-block: 24px; }
  .stats { padding-top: 0; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team__head { flex-direction: column; }
  .team__logos { justify-content: flex-start; max-width: none; }
  /* headings that ran on as one line on the old phone layout */
  .pricing .h-xl br, .team .h-lg br, .roles .h-lg br { display: none; }
  .pricing { padding-block: 121px 112px; }
  .work { padding-bottom: 125px; }
  .friends { padding: 0; }
  .cta { margin-inline: 10px; padding: 32px 24px; }
  .hide-phone { display: none; }
  .h-xl, .different .h-xl { font-size: 48px; line-height: 1.1; letter-spacing: -.06em; }
  .different .h-xl { letter-spacing: -.05em; }
  .h-lg, .about .h-lg { font-size: 48px; }
  .hero__title { font-size: 48px; line-height: 1.1; letter-spacing: -.06em; max-width: 340px; }
  .stats strong { font-size: 40px; }
  .member h3 { font-size: 28px; }
  .roles__list h3 { font-size: 28px; }
  .nav { padding: 12px var(--gutter); }
  .nav .nav__inner, .nav.is-scrolled .nav__inner {
    max-width: none;
    padding: 8px 8px 8px 12px;
    background: rgba(255, 255, 255, .95);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
  }
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 40px; height: 36px; }
  .nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 22px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .5s var(--ease), visibility .5s;
  }
  .nav.is-open .nav__links { max-height: 360px; visibility: visible; }
  .nav__links a { padding: 12px 4px; }
  .nav__links a:first-child { margin-top: 12px; }
  .nav__links a:not(.nav__cta)::before { display: none; }
  .nav__cta { margin-top: 8px; text-align: center; padding: 12px !important; }

  .hero { min-height: 0; padding-top: 100px; }
  .hero__title { margin-bottom: 10px; }
  .hero .lead { margin-bottom: 30px; }
  .about { padding-top: 171px; }
  /* old phone order: heading, text, stats, then the button */
  .about__grid { display: flex; flex-direction: column; gap: 0; }
  .about__grid > div { display: contents; }
  .about .lead { margin-bottom: 21px; }
  .services-wrap { --svc-top: 120px; }
  .work { padding-top: 119px; }
  .reviews { padding-top: 59px; }
  .about .stats { order: 1; }
  .about .btn { order: 2; align-self: flex-start; margin-top: 12px; }
  .stats li { gap: 38px; }
  .hero__title br { display: none; }
  .ticker { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 49px; }
  .marquee { width: 100%; }
  .marquee__track { gap: 32px; }
  .marquee__track img { height: 22px !important; }


  .show-phone { display: inline; }
  .stats li + li { border-top: 1px solid var(--line); }

  .work__head { flex-direction: column; align-items: flex-start; padding-bottom: 32px; }
  .carousel-nav { display: none; }
  .review { flex-basis: min(84vw, 360px); }

  .different { min-height: 655px; padding-top: 24px; }
  .different { overflow: hidden; }
  .different__foot { flex-direction: column; align-items: flex-start; gap: 51px; }

  .tabs__list [role="tab"] { flex: 1; padding: 16px; font-size: 24px; }

  .cta { min-height: 465px; gap: 48px; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .timeline__label:not(:first-child) { margin-top: 17px; }
  .bar { flex-basis: var(--wp); }

  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .team { padding-top: 148px; }
  .team__head { gap: 20px; margin-bottom: 90px; }
  .friends { margin-top: 120px; }
  .roles { padding-top: 121px; padding-bottom: 116px; }
  .roles .h-lg { margin-bottom: 148px; }
  .team__logos { gap: 24px; }
  .team__logos img[alt="SafetyCulture"] { height: 28px; }

  .roles__list li { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; }

  /* Center the phone form, including wrapped rows and field text. */
  .madlib { text-align: center; }
  .madlib p, .madlib fieldset { justify-content: center; gap: 8px 16px; margin-bottom: 16px; }
  .madlib input[type="text"], .madlib input[type="email"] { text-align: center; padding-inline: 8px; }
  .madlib p:first-child { margin-bottom: 18px; }
  .madlib legend { float: none; width: 100%; margin: 0 0 10px; }
  #f-email { width: 177px; }
  .madlib .btn { display: flex; width: max-content; margin: 16px auto 0; }
  .contact { padding-bottom: 120px; }
  .footer { padding: 60px 20px 24px; }
  .footer__links { flex-direction: column; align-items: center; text-align: center; gap: 26px; margin-bottom: 120px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .fade-up, .hero__title .w { opacity: 1; transform: none; filter: none; }
}

/* Tablet (600–809px): keep the wide collage and put the dark panel footer back in one row */
@media (min-width: 600px) and (max-width: 809px) {
  .different__foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .different__msg { width: min(545px, 70%); }
}

/* Phone (≤ 599px): the old phone collage */
@media (max-width: 599px) {
  /* old phone layout: a swipeable row of 340px cards with round arrows */
  .services { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; padding-inline: 12px; scrollbar-width: none; overflow-y: hidden; }
  .services::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 340px; scroll-snap-align: start; }
  .svc:nth-child(1) { order: 0; } .svc:nth-child(6) { order: 1; } .svc:nth-child(5) { order: 2; }
  .svc:nth-child(2) { order: 3; } .svc:nth-child(3) { order: 4; } .svc:nth-child(4) { order: 5; }
  .svc-arrow { display: grid; place-items: center; position: absolute; top: calc(var(--svc-top) + 93px); width: 29px; height: 29px; border-radius: 50%; background: rgba(0,0,0,.2); }
  .svc-arrow[hidden] { display: none; }
  .svc-arrow svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .svc-arrow--prev { left: 32px; }
  .svc-arrow--next { left: 341px; }
  .friends { height: 839px; }
  .q--steve   { width: 82%; left: 18%; top: 3.3%; }
  .q--mason   { width: 97%; left: 1.7%; top: 16%; }
  .q--simon   { display: none; }
  .q--shan    { width: 96%; left: 2%; top: 57.3%; }
  .q--carla   { width: 98%; left: 2%; top: 71.4%; }
  .q--joumana { width: 63%; left: 37%; top: 79.6%; }
}

/* Tablet (600–1199px): two columns in About — heading, text and button left, stats right */
@media (min-width: 600px) and (max-width: 1199px) {
  .about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .about__grid > div { display: block; }
  .about .lead { margin-bottom: 32px; }
  .about .stats { padding-top: 48px; }
  .about .btn { margin-top: 0; }
}
