/* =========================================================
   Portavia — rebuild
   Tokens per spec §1. Type sizes are the ones measured off the
   live site (Framer presets monjet / 1yryej1 / 12q7ivy / 17cdd8a),
   which §0.2 makes authoritative over the spec's estimates.
   ========================================================= */

:root {
  --bg:         #1B1D1C;
  --surface:    #333333;
  --lime:       #CFFF70;
  /* Lime is as bright as white, so it disappears as ink on the light ground.
     Anything using the accent as TEXT, a BORDER or a HAIRLINE reaches for
     --accent-ink; solid lime fills with dark ink on top stay lime in both. */
  --accent-ink: #CFFF70;
  --on-white-card: #1B1D1C;
  --text:       #FFFFFF;
  --text-muted: rgba(255, 255, 255, .72);
  --on-lime:    #1B1D1C;
  --white-card: #FFFFFF;
  --hairline:   rgba(255, 255, 255, .16);

  --font-display: "Antonio", "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --shell: 1120px;
  --gutter: 24px;

  --r-card: 16px;
  --r-img: 20px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="light"] {
  --bg:         #F4F4F2;
  --surface:    #FFFFFF;
  --text:       #1B1D1C;
  --text-muted: rgba(27, 29, 28, .68);
  --accent-ink: #52700F;
  --white-card: #1B1D1C;
  --on-white-card: #F4F4F2;
  --hairline:   rgba(27, 29, 28, .16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}
body.is-locked { overflow: hidden; }

/* height:auto is load-bearing — an <img> width/height attribute is a
   presentational hint for the CSS height too, so without this every image
   renders at its raw pixel height and aspect-ratio never gets a say. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 20px; z-index: 300;
  padding: 10px 18px; background: var(--lime); color: var(--on-lime); border-radius: var(--r-pill);
  transition: inset-block-start .25s var(--ease);
}
.skip-link:focus-visible { inset-block-start: 20px; }

/* readable by a screen reader, invisible on screen */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

/* ---------- grain (spec §1) ---------- */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  /* own compositor layer: a fixed overlay otherwise repaints on every
     scrolled frame, which is what makes scrolling feel heavy */
  transform: translateZ(0);
}

/* ---------- custom cursor (spec §2.2) ---------- */
.cursor {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 250;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent-ink);
  pointer-events: none; opacity: 0;
  transition: width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), opacity .2s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-lg { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
body.has-cursor, body.has-cursor * { cursor: none !important; }

/* =========================================================
   TYPE
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 700; font-size: 120px; line-height: 1.1;
  letter-spacing: -.03em; text-transform: uppercase;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 60px; line-height: 1.3;
  text-transform: uppercase;
}
.lead { font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 56ch; }
.label { color: var(--text-muted); }

/* mask reveal for the hero words (spec §4.1) */
.rv { display: block; overflow: hidden; }
.rv > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.is-ready .rv > span { transform: none; }
.rv:nth-child(1) > span { transition-delay: .05s; }

/* =========================================================
   NAV PILL (spec §2.3)
   ========================================================= */
.pill {
  position: fixed; inset-block-start: 20px; inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 28px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(5px);
  transition: background .3s var(--ease);
}
.pill__avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* the two states cross-fade rather than snapping (spec §2.3) */
.pill__open, .pill__status {
  display: flex; align-items: center; gap: 24px;
  transition: opacity .3s var(--ease), max-width .45s var(--ease), transform .3s var(--ease);
  overflow: hidden; white-space: nowrap;
}
.pill__open { max-width: 520px; }
.pill__status { max-width: 0; opacity: 0; gap: 8px; padding-inline-end: 0; transform: translateY(4px); }
.pill.is-compact .pill__open { max-width: 0; opacity: 0; transform: translateY(-4px); }
.pill.is-compact .pill__status { max-width: 260px; opacity: 1; padding-inline-end: 12px; transform: none; }

.pill__links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.pill__links a { color: var(--text-muted); }

/* label flips up to a lime copy on hover */
.nl {
  display: block; position: relative;
  transform: perspective(1200px); transform-origin: 50% 0%;
  transform-style: preserve-3d;
  transition: transform .42s var(--ease);
}
.nl__flip {
  position: absolute; inset-block-start: 0; inset-inline: 0;
  transform: rotateX(90deg); transform-origin: 50% 0%;
  color: var(--accent-ink);
}
.pill__links a:hover .nl { transform: perspective(1200px) rotateX(-90deg); }

.pill__cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 9px 22px; border-radius: var(--r-pill);
  background: var(--white-card); color: var(--bg); font-size: 15px;
  transition: color .3s var(--ease);
}
.pill__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--lime); transform: translateY(101%); transition: transform .38s var(--ease);
}
.pill__cta:hover { color: var(--on-lime); }
.pill__cta:hover::before { transform: none; }

.pill__status { font-size: 15px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #27d974; flex: none;
  box-shadow: 0 0 0 0 rgba(39, 217, 116, .5); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(39, 217, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 217, 116, 0); } }

.pill__burger { display: none; width: 34px; height: 34px; position: relative; }
.pill__burger span { position: absolute; inset-inline: 8px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
.pill__burger span:first-child { inset-block-start: 13px; }
.pill__burger span:last-child  { inset-block-start: 19px; }
.pill__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.pill__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 190; background: var(--bg);
  display: grid; place-content: center; text-align: center;
  opacity: 0; transition: opacity .25s var(--ease);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav nav { display: grid; gap: 18px; }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 42px; text-transform: uppercase; }

/* ---------- theme switch (spec §2.4) ---------- */
.switch {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 200;
  width: 46px; height: 24px; padding: 3px; display: flex;
  border-radius: var(--r-pill); background: var(--lime);
}
.switch__knob { width: 18px; height: 18px; border-radius: 50%; background: var(--on-lime); transition: transform .25s var(--ease); }
.switch[aria-pressed="true"] .switch__knob { transform: translateX(22px); }

/* =========================================================
   STAGE + 3D CARD (spec §3)
   ========================================================= */
.stage { position: relative; }

/* zero-height sticky rail: the card hangs off its centre line and
   stays pinned mid-viewport for the whole stage */
.stage__pin {
  position: sticky; inset-block-start: 50vh; height: 0; z-index: 5;
  perspective: 1200px;
  pointer-events: none;
}

.card3d {
  position: absolute; inset-block-start: 0; inset-inline-start: 50%;
  width: 280px; height: 390px; margin-block-start: -195px;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translateX(-50%)
    translateX(var(--dx, 0px))
    rotateY(var(--ry, 0deg))
    rotateX(var(--rx, 0deg))
    rotateZ(-4deg);
}
.card3d__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.card3d__face--back { transform: rotateY(180deg); }
.card3d__face img { width: 100%; height: 100%; object-fit: cover; }

/* the "Hi" badge rides along with the card but stays flat (spec §3) */
.hi {
  position: absolute; inset-block-start: 0; inset-inline-start: 50%;
  width: 84px; height: 84px; margin: 108px 0 0 -178px;
  display: grid; place-items: center; gap: 0;
  border-radius: 50%; background: var(--lime); color: var(--on-lime);
  transform: translateX(var(--dx, 0px));
  will-change: transform;
}
.hi__hand { font-size: 22px; line-height: 1; filter: grayscale(1) brightness(0); }
.hi__txt { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.hi--static { position: static; margin: 0; transform: none; }

/* mobile-only stand-ins for the disabled card (spec §5) */
.stage__static { display: none; border-radius: var(--r-img); }

/* =========================================================
   HERO (spec §4.1)
   ========================================================= */
.hero { min-height: 100vh; display: grid; align-items: center; padding-block: 140px 80px; }
.hero__inner { display: flex; align-items: center; }
.hero__left  { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.hero__right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero__gap   { flex: 0 0 300px; }
.hero__label { font-family: var(--font-display); font-size: 32px; font-weight: 400; text-transform: uppercase; line-height: 1.3; align-self: flex-start; }
.hero__sub   { color: var(--text-muted); text-align: right; max-width: 34ch; align-self: flex-end; margin-block-start: 8px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: 120px; position: relative; z-index: 2; }
.head { margin-block-end: 56px; }
.head .lead { margin-block-start: 16px; }
.section__more { margin-block-start: 48px; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: var(--r-pill);
  border: 1px solid var(--accent-ink); color: var(--accent-ink);
  font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.btn-pill:hover { background: var(--lime); color: var(--on-lime); }

.tag {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--lime); color: var(--on-lime);
  font-size: 14px;
}
.tag--outline { background: none; border: 1px solid var(--accent-ink); color: var(--accent-ink); }

/* ---------- services (spec §4.2) ---------- */
.service__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.service__col .lead { margin-block-start: 16px; }

.acc-list { margin-block-start: 40px; }
.acc { border-block-end: 1px solid var(--hairline); transition: border-color .3s var(--ease); }
.acc__btn {
  position: relative; width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding-block: 20px; text-align: left;
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  line-height: 1.3; text-transform: uppercase;
  transition: color .28s var(--ease);
}
.acc__btn:hover, .acc__btn[aria-expanded="true"] { color: var(--accent-ink); }
.acc__n { color: var(--text-muted); }
.acc__btn:hover .acc__n, .acc__btn[aria-expanded="true"] .acc__n { color: inherit; }
.acc.is-open { border-block-end-color: var(--accent-ink); }

.acc__ico {
  width: 12px; height: 12px; flex: none; justify-self: end;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-block-end: 4px;
  transition: transform .3s var(--ease);
}
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(-135deg); margin-block: 4px 0; }

/* hover thumb that trails the pointer (spec §4.2) */
.acc__thumb {
  position: absolute; inset-block-start: 50%; inset-inline-end: 60px; z-index: 3;
  width: 170px; height: 110px; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0;
  transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px))) scale(.85) rotate(-8deg);
  transition: opacity .28s var(--ease), transform .45s var(--ease);
}
.acc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc__btn:hover .acc__thumb {
  opacity: 1;
  transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px))) scale(1) rotate(-5deg);
}

/* Explicit height rather than the 0fr/1fr grid trick: with
   min-height:0 the automatic minimum collapses to zero and 1fr has
   no free space to distribute, so the row only ever grew to the
   padding. JS measures the content and writes --h. */
.acc__panel { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.acc.is-open .acc__panel { height: var(--h, auto); }
.acc__panel ul { display: grid; gap: 8px; padding-block-end: 22px; color: var(--text-muted); }
.acc__panel li { position: relative; padding-inline-start: 18px; }
.acc__panel li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 12px; width: 7px; height: 1px; background: var(--accent-ink); }
.acc__panel p { padding-block-end: 22px; color: var(--text-muted); max-width: 52ch; }

/* ---------- about (spec §4.3) ---------- */
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.about__col .lead { margin-block-start: 16px; }

.counters { display: flex; flex-wrap: wrap; gap: 48px; margin-block: 48px; }
.counters li { display: grid; gap: 2px; }
.counters__n {
  font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.counters__l { font-size: 14px; color: var(--text-muted); }

.about__contact { display: grid; gap: 8px; margin-block-end: 32px; }
.about__contact a { border-block-end: 1px solid transparent; transition: border-color .25s var(--ease); }
.about__contact a:hover { border-block-end-color: var(--accent-ink); }

.about__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 50%; transition: border-color .25s var(--ease), color .25s var(--ease); }
.socials a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- projects (spec §4.4) ---------- */
/* The covers stack rather than queue: every card pins just under the nav and
   the next one slides over it. JS eases the covered card down a few percent so
   the pile reads as depth. */
.projects__list { display: block; }
.pcard {
  position: sticky; display: block; margin-block-end: 28px;
  border-radius: var(--r-img); overflow: hidden;
  transform: scale(var(--s, 1)); transform-origin: 50% 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .55);
  will-change: transform;
}
.pcard:nth-child(1) { inset-block-start: 108px; }
.pcard:nth-child(2) { inset-block-start: 126px; }
.pcard:nth-child(3) { inset-block-start: 144px; }
.pcard:nth-child(4) { inset-block-start: 162px; }
.pcard img { width: 100%; height: 600px; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover img { transform: scale(1.03); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.pcard__body {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  display: grid; justify-items: center; gap: 14px;
  padding: 40px; text-align: center;
}
.pcard__title { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.pcard__body p { max-width: 60ch; color: rgba(255,255,255,.8); }

/* ---------- testimonials (spec §4.5) ---------- */
.clients__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcard, .scard { border-radius: var(--r-card); padding: 28px; display: grid; gap: 20px; align-content: space-between; }
.tcard { background: var(--surface); }
.stars { display: flex; gap: 5px; }
.tcard > .tag { justify-self: start; }
.stars span {
  width: 15px; height: 15px; background: var(--lime);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.tcard blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; }
.tcard figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tcard figcaption span { display: grid; }
.tcard figcaption b { font-weight: 600; }
.tcard figcaption small { font-size: 14px; color: var(--text-muted); }

.scard { align-content: start; gap: 10px; }
.scard--white { background: var(--white-card); color: var(--on-white-card); }
.scard--lime  { background: var(--lime); color: var(--on-lime); }
.scard__lead { font-size: 16px; opacity: .78; }
.scard__n { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1; margin-block-start: 10px; font-variant-numeric: tabular-nums; }
.scard__l { font-size: 14px; opacity: .78; }

/* ---------- faq (spec §4.6) ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: start; }
.faq__head { position: sticky; inset-block-start: 120px; }
.faq__head .lead { margin-block-start: 16px; }
.acc-list--faq { margin-block-start: 0; border-block-start: 1px solid var(--hairline); }
.acc-list--faq .acc__btn { font-size: 24px; }

/* ---------- insights (spec §4.7) ---------- */
.insights__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bcard { display: grid; gap: 14px; align-content: start; }
.bcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-img); transition: transform .6s var(--ease); }
.bcard:hover img { transform: scale(1.02); }
.bcard__meta { display: flex; align-items: center; gap: 14px; }
.bcard__meta time { font-size: 14px; color: var(--text-muted); }
.bcard__title { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.2; text-transform: uppercase; }
.bcard p { color: var(--text-muted); }

/* ---------- contact (spec §4.8) ---------- */
.contact__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.contact__media { position: relative; display: flex; justify-content: center; }
.portrait { width: 320px; border-radius: var(--r-card); overflow: hidden; transform: rotate(-4deg); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contact__media .hi--static {
  position: absolute;
  inset-block-start: auto;          /* .hi sets top:0, which would beat bottom */
  inset-block-end: -18px;
  inset-inline-start: 6%;
  margin: 0;
}
.contact__body .lead { margin-block-start: 16px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block-start: 36px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 20px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface); border: 0; border-radius: var(--r-pill);
  outline: 2px solid transparent; transition: outline-color .25s var(--ease);
}
.field textarea { border-radius: var(--r-card); resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline-color: var(--accent-ink); }
.field.has-error input, .field.has-error textarea, .field.has-error .select { outline-color: #ff5a3c; }
.field__err { font-size: 13px; color: #ff8a72; }

.select { position: relative; border-radius: var(--r-pill); }
.select select { appearance: none; cursor: pointer; }
.select__ico {
  position: absolute; inset-block-start: 50%; inset-inline-end: 22px;
  width: 9px; height: 9px; margin-block-start: -6px; pointer-events: none;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}
.btn-pill--submit { width: max-content; }
.btn-pill--submit[disabled] { opacity: .6; pointer-events: none; }
.form__hint { font-size: 14px; color: var(--text-muted); margin-block-start: 12px; }
.form__note { font-size: 14px; color: var(--text-muted); margin-block-start: 12px; }
.form__note.is-ok { color: var(--accent-ink); }

/* ---------- footer (spec §4.9) — full lime, dark text ---------- */
.footer { background: var(--lime); color: var(--on-lime); padding-block: 56px 32px; position: relative; z-index: 2; }
.footer__row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-block-end: 32px; }
.footer .label { color: rgba(27, 29, 28, .6); }
.footer a { border-block-end: 1px solid transparent; transition: border-color .25s var(--ease); }
.footer a:hover { border-block-end-color: var(--on-lime); }
.footer__social { display: flex; align-items: center; gap: 14px; }
.socials--dark a { border-color: rgba(27, 29, 28, .28); }
.socials--dark a:hover { border-color: var(--on-lime); color: var(--on-lime); }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-block-start: 24px; border-block-start: 1px solid rgba(27, 29, 28, .25); font-size: 14px;
}
.footer__bar small { font-size: inherit; }
.footer__by { display: inline-flex; align-items: center; gap: 8px; }
.footer__by img { width: 24px; height: 24px; border-radius: 50%; }

/* ---------- section reveal (spec §2.5) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE (spec §5)
   ========================================================= */
@media (max-width: 1023px) {
  .display { font-size: 96px; }
  .h2 { font-size: 48px; }
  .pcard__title { font-size: 36px; }
  .hero__gap { flex-basis: 200px; }
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; }
  .service__inner, .about__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .faq__head { position: static; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .section { padding-block: 80px; }

  /* the 3D card is off; each section carries its own static image */
  .stage__pin { display: none; }
  .stage__static { display: block; width: 100%; max-width: 340px; margin: 32px auto 0;
                   aspect-ratio: 3 / 4; object-fit: cover; }

  .cursor { display: none; }
  .pill__open { display: none; }
  .pill.is-compact .pill__status { max-width: 0; opacity: 0; padding-inline-end: 0; }
  .pill__burger { display: block; }

  .display { font-size: 48px; }
  .h2 { font-size: 32px; }
  .hero { min-height: auto; padding-block: 120px 60px; }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__left, .hero__right { align-items: flex-start; }
  .hero__gap { display: none; }
  .hero__label { font-size: 24px; }
  .hero__sub { text-align: left; align-self: flex-start; }

  .acc__btn { font-size: 22px; }
  .acc-list--faq .acc__btn { font-size: 18px; }
  .acc__thumb { display: none; }

  .counters { gap: 28px; }
  .counters__n { font-size: 42px; }

  /* no stacking on small screens — the cards simply follow one another */
  .pcard { position: relative; inset-block-start: auto; transform: none;
           margin-block-end: 20px; box-shadow: none; }
  .pcard img { height: 380px; }
  .pcard__body { padding: 24px; }
  .pcard__title { font-size: 28px; }

  .clients__grid, .insights__grid { grid-template-columns: 1fr; }
  .scard__n { font-size: 56px; }
  .bcard__title { font-size: 24px; }

  /* the switch sits dead centre on desktop; on a phone that lands it on top
     of whatever is mid-screen, so tuck it into the corner instead */
  .switch { inset-inline-start: auto; inset-inline-end: 16px; inset-block-end: 16px;
           transform: none; width: 52px; height: 30px; }
  .switch__knob { width: 24px; height: 24px; }
  .switch[aria-pressed="true"] .switch__knob { transform: translateX(22px); }

  /* tap targets: inline links in running text are only ~21px tall */
  .about__contact a, .footer__row a:not(.socials a) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .about__contact p, .footer__row p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

  .portrait { width: 260px; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* =========================================================
   REDUCED MOTION (spec §6) — no 3D, no count-up, no cursor
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rv > span { transform: none; }
  .cursor { display: none; }
  .card3d { transform: translateX(-50%) rotateZ(-4deg); }
}
