/* =========================================================
   Sections — only what is specific to each section.
   Shared structure (padding, heads, columns) lives in base.css;
   shared pieces (buttons, cards…) in components.css.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-bg-alt);
  padding: calc(var(--nav-top) + var(--logo-h) + var(--space-16)) var(--gutter) var(--space-24);
}
.hero__content {
  max-width: 1160px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 460fr) minmax(0, 622fr);
  column-gap: var(--space-20); align-items: center;
}
.hero__title { font-family: var(--font-display); font-weight: var(--fw-medium); line-height: var(--lh-heading); letter-spacing: -.01em; max-width: 460px; text-wrap: balance; }
.hero__sub { margin-top: var(--space-5); }
.hero__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Bento of selected work — sized off its own width so it scales as one piece */
.bento { container-type: inline-size; --swap: .35; }   /* intro start: how far each tile reaches towards its neighbour (1 = full swap) */
/* Intro start state, painted from the first frame so the collage is visible straight away;
   main.js eases the tiles to their real lengths and then drops .is-intro */
.js .bento.is-intro .tile { flex-grow: calc(var(--w) + (var(--pair) - var(--w)) * var(--swap)); }
.bento__row { display: flex; gap: 3.158cqw; height: 20.486cqw; }            /* 19.6 / 127.4 of 622 */
.bento__row + .bento__row { margin-top: 3.158cqw; }
.tile { position: relative; overflow: hidden; flex: var(--w) 1 0; min-width: 0; border-radius: 3.947cqw; background: var(--color-bg-alt); transform: translateZ(0); }
.tile--r1 { border-radius: 2.632cqw; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) { .hero__content { column-gap: var(--space-12); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
@media (max-width: 991px) {
  .hero { padding-top: calc(var(--nav-h) + var(--space-10)); padding-bottom: var(--space-18); }
  .hero__content { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 560px; }
  .hero__media { margin-top: var(--space-12); }
}
@media (max-width: 600px) {
  .hero { padding-bottom: var(--space-14); }
  .hero__btns .btn { flex: 1 1 0; --btn-h: 48px; }   /* two equal, easy-to-tap buttons */
}

/* ---------- Who We Are ---------- */
.who .section-head { margin-bottom: clamp(var(--space-14), 8.9vw, var(--space-32)); }
.who__lead { max-width: 79.76%; }                  /* 1056 of 1324 */
.who__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.who__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.who__note { max-width: 384px; }
@media (max-width: 991px) { .who__lead { max-width: none; } }
@media (max-width: 600px) { .who__btns { width: 100%; } .who__btns .btn { --btn-w: 100%; } }

/* ---------- Our Services (dark chapter) ---------- */
.services { overflow: clip; isolation: isolate; }
.services .section-head { padding-inline: var(--edge); }
.services__heading { max-width: 680px; }
.services__title { white-space: nowrap; }
.services__arrows { display: flex; gap: var(--space-2); flex: none; }
.services__glow { position: absolute; z-index: -1; max-width: none; pointer-events: none; }
.services__glow--1 { left: 59.72%; top: -180px; width: 1150px; height: 540px; }
.services__glow--2 { left: -420px; top: 450px; width: 1150px; height: 720px; }

.carousel {
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: -4px; }
.carousel__rail { display: flex; gap: var(--card-gap); width: max-content; padding-inline: var(--edge); }

/* Desktop with motion: the section pins to the screen and page scroll drives the rail sideways (main.js).
   Two rows — head · cards — fill the screen; the cards take all the height left over,
   so nothing floats in empty space whatever the window size. */
/* GSAP writes a pinned section's width in pixels; if a scrollbar appears later the page narrows but that
   number doesn't, so cap both the spacer and the section at the page width (main.js also re-measures) */
.pin-spacer { max-width: 100%; grid-template-columns: minmax(0, 1fr); }   /* the column follows the spacer, not the section inside it */
.services.is-pinned { max-width: 100% !important; }
.services.is-pinned {
  height: 100svh; min-height: 600px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  padding-block: calc(var(--nav-top) + var(--control-h) + var(--space-10)) var(--space-12);
}
.services.is-pinned .section-head { margin-bottom: var(--space-10); }
.carousel.is-pinned { display: flex; align-items: center; min-height: 0; overflow: visible; scroll-snap-type: none; }
.carousel.is-pinned .carousel__rail { height: 100%; max-height: 640px; }
.carousel.is-pinned .service-card { width: auto; height: 100%; aspect-ratio: 16 / 10; padding: clamp(var(--space-6), 2.2vw, var(--space-10)); }

@media (max-width: 600px) {
  .services__arrows { display: none; }
  #servicesCarousel { overflow: visible; scroll-snap-type: none; }
  #servicesCarousel .carousel__rail { flex-direction: column; width: auto; }
}

/* ---------- Our Projects ---------- */
.projects__title { max-width: 540px; }
/* room to breathe: a clear gutter between the two cards, and more again before the next row's images start */
.project-grid { display: flex; flex-direction: column; gap: clamp(var(--space-14), 5.6vw, var(--space-20)); }
.project-grid__row { display: grid; column-gap: var(--grid-gap); }
.project-grid__row--a { grid-template-columns: 543fr 766fr; }    /* narrow · wide */
.project-grid__row--b { grid-template-columns: 766fr 543fr; }    /* wide · narrow */
@media (max-width: 991px) {
  .project-grid, .project-grid__row { gap: var(--space-14); }   /* stacked: each card's text must read as its own, not the next image's */
  .project-grid__row--a, .project-grid__row--b { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- About Us ---------- */
.about__note { max-width: 448px; }
.about__media { position: relative; overflow: hidden; aspect-ratio: 1440 / 594; will-change: transform; }
.about__media-inner { position: absolute; inset: 0; }
.about__media img { position: absolute; left: 0; top: -51.39%; width: 100%; height: 181.57%; max-width: none; object-fit: cover; }
@media (max-width: 991px) {
  .about__media { aspect-ratio: 4 / 3; }
  .about__media img { top: -12%; height: 124%; }
}

/* ---------- Who We Serve ---------- */
.serve__aside { display: flex; flex-direction: column; align-items: flex-start; }
.serve__btn { position: sticky; top: calc(100svh - 88px); margin-top: var(--space-28); }   /* rides along the bottom of the screen */
@media (max-width: 991px) { .serve__btn { position: static; margin-top: var(--space-6); } }
@media (max-width: 600px) { .serve__btn { --btn-w: 100%; } }

/* ---------- Call to action ---------- */
.contact {
  overflow: hidden; isolation: isolate; will-change: transform;
  background:
    radial-gradient(38.46% 38.46% at 30.77% 76.92%, rgba(53, 68, 150, .6), rgba(53, 68, 150, 0)),
    radial-gradient(38.46% 38.46% at 80.77% 46.15%, rgba(109, 224, 243, .35), rgba(109, 224, 243, 0)),
    var(--indigo-deep);
}
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact__glass { position: absolute; left: 49.03%; top: 104px; width: 61.74%; max-width: none; height: auto; }
.contact__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: space-between; gap: var(--grid-gap);
  min-height: 429px; padding: var(--card-pad);
  border-radius: var(--shape-panel);
  background: rgba(10, 18, 48, .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* soft light that follows the pointer across the card (position set by main.js) */
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 60%), rgba(109, 224, 243, .14), transparent 65%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
}
.contact__card:hover::before { opacity: 1; }
.contact__title { max-width: 625px; }
.contact__aside { width: 368px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); }
@media (max-width: 1100px) { .contact__title { max-width: 520px; } }
@media (max-width: 991px) {
  .contact__card { flex-direction: column; min-height: 420px; gap: var(--space-24); }
  .contact__aside { width: 100%; max-width: 420px; }
  .contact__glass { left: 20%; top: auto; bottom: -30%; width: 110%; }
}
@media (max-width: 600px) { .contact__card { min-height: 0; gap: var(--space-12); } }

/* =========================================================
   Inner pages (about.html, services.html)
   ========================================================= */

/* ---------- About: hero — one very large title, nothing moves on load ---------- */
.ab-hero { background: var(--color-bg-alt); padding: calc(var(--nav-top) + var(--logo-h) + var(--space-28)) 0 var(--space-16); }
.ab-hero__title { font-family: var(--font-display); font-size: var(--fs-display-2xl); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -.035em; }

/* ---------- About: story — copy on the left, a tall team photo bleeding off the right edge ---------- */
.ab-story { background: var(--color-bg-alt); padding-bottom: var(--section-y); }
.ab-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-20); padding-inline-start: var(--edge); }
.ab-story__copy { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-24); max-width: 470px; padding-block: var(--space-2) var(--space-10); }
.ab-story__body { display: grid; gap: var(--space-4); max-width: 380px; }
.ab-story__media { position: relative; overflow: hidden; height: min(88svh, 820px, 55vw); }   /* never narrower than square, or the clip's final logo is cropped */
.ab-story__media-inner { position: absolute; inset: 0; }
.ab-story__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) {
  .ab-story__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-12); padding-inline: var(--gutter); }
  .ab-story__copy { max-width: none; gap: var(--space-8); padding-bottom: 0; }
  .ab-story__media { height: auto; aspect-ratio: 1; max-height: 70svh; }
}

/* ---------- Work: a centred heading, then one column of large project images, each with its text beneath ---------- */
.work-hero { background: var(--color-bg-alt); padding: calc(var(--nav-top) + var(--logo-h) + var(--space-20)) 0 var(--space-16); text-align: center; }
.work-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.work-hero__inner h1 { max-width: 15em; }
.work-hero__inner .t-body-lg { max-width: 34em; }
.work { background: var(--color-bg-alt); padding: 0 var(--gutter) var(--section-y); }
.work__list { display: grid; gap: var(--space-16); max-width: 900px; margin-inline: auto; }
.work-card { display: block; color: var(--color-text); scroll-margin-top: var(--space-24); }
.work-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-2); }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 766 / 420; border-radius: var(--radius-md); }
.work-card__media .stage { position: absolute; inset: 0; aspect-ratio: auto; }
.work-card:hover .stage__zoom { transform: scale(1.03); }
.stage--centred .stage__zoom > * { margin-left: calc(111.5 * var(--u)); }   /* artwork drawn for a narrower card, centred in this one */
.work-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-top: var(--space-5); }
.work-card__body .tag-row { margin-top: var(--space-2); }

/* ---------- Contact: a small label on one side, large contact details on the other, then the map ---------- */
.ct-hero__note { margin-top: var(--space-6); }
.ct { background: var(--color-bg-alt); padding-block: var(--space-16) var(--section-y); }
.ct--map { padding-top: 0; }
.ct__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-20); align-items: start; }
.ct__label { display: grid; gap: var(--space-2); max-width: 22em; padding-top: var(--space-3); }
.ct__values { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-10); }
.ct__value { font-family: var(--font-display); font-size: clamp(32px, 5vw, 72px); line-height: 1.1; letter-spacing: -.03em; color: var(--color-text); }
a.ct__value { transition: color var(--dur-fast); }
a.ct__value:hover { color: var(--color-primary); }
.ct__links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-12); margin-top: var(--space-6); }
.ct__link { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--fs-h5, 24px); color: var(--color-text); }
.ct__link:hover { color: var(--color-primary); }
.ct__map { overflow: hidden; height: min(70svh, 620px); border-radius: var(--radius-md); background: var(--color-border); }
.ct__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 991px) {
  .ct__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }
  .ct__label { padding-top: 0; }
  .ct__map { height: 60svh; }
}

/* ---------- About: our approach — three circles with Istinara where they all meet ---------- */
.venn { overflow-x: clip; }                          /* the circles start further apart than the page is wide on small screens */
.venn__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-20); align-items: center; }
.venn__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.venn__list { width: 100%; margin-top: var(--space-4); }
.venn__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.venn__row dd { margin: 0; }
.venn__art { position: relative; width: 100%; max-width: 620px; margin: 0; justify-self: end; }
.venn__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.venn__circle { fill: none; stroke: var(--indigo); stroke-width: 1.25; }
.venn__core { fill: var(--indigo); }
/* zero-size anchor: the word stays centred on its point, and the script is free to move it */
.venn__label { position: absolute; display: flex; align-items: center; justify-content: center; width: 0; height: 0; color: var(--indigo); font-weight: var(--fw-medium); white-space: nowrap; }
.venn__label--top { left: 50%; top: 18.5%; }
.venn__label--start { left: 26.5%; top: 78%; }
.venn__label--end { left: 73.5%; top: 78%; }
.venn__name { left: 50%; top: 54.2%; color: var(--white); }
@media (max-width: 991px) {
  .venn__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-12); }
  .venn__art { justify-self: center; }
}

/* ---------- About: company highlights (dark) — a statement, four figures, then a slow row of client logos ---------- */
.highlights { overflow: hidden; padding-bottom: var(--space-16); }
.highlights__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--grid-gap); }
.highlights__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.highlights__intro .t-h2 { max-width: 36rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--grid-gap); row-gap: var(--space-14); margin: 0; padding-top: var(--space-14); border-top: 1px solid var(--color-border); }
.stat { display: flex; flex-direction: column; gap: var(--space-3); }
.stat dd { margin: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -.03em; color: var(--color-text); }
.stat__label { max-width: 18rem; }
.logo-marquee { margin-top: var(--space-24); 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); }
.logo-marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.logo-marquee__set { display: flex; align-items: center; gap: var(--space-20); padding-inline-end: var(--space-20); }   /* the padding keeps the loop seamless */
.logo-marquee img { width: auto; height: 44px; max-width: 150px; object-fit: contain; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 991px) {
  .highlights__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-12); }
  .stats { row-gap: var(--space-10); }
  .logo-marquee { margin-top: var(--space-16); }
  .logo-marquee__set { gap: var(--space-12); padding-inline-end: var(--space-12); }
  .logo-marquee img { height: 34px; }
}

/* ---------- About: why Istinara — the statement holds while three numbered cards stack on top of each other ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-20); }
.why__intro { align-self: start; position: sticky; top: calc(var(--nav-top) + var(--control-h) + var(--space-16)); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.why__intro .t-h3 { max-width: 30rem; }
.why__stack { display: flex; flex-direction: column; gap: 32svh; }
.why-card { height: min(62svh, 520px); min-height: 420px; }
.why-card__inner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  padding: var(--space-8); background: var(--color-bg-alt); border-radius: var(--shape-card);
  transform-origin: 50% 0;
}
.why-card__text { display: flex; flex-direction: column; gap: var(--space-4); max-width: 32rem; }
.why-card__num { align-self: flex-end; font-family: var(--font-display); font-size: clamp(88px, 11vw, 160px); font-weight: var(--fw-medium); line-height: .8; letter-spacing: -.05em; color: var(--color-primary); }
.why-card__shade { position: absolute; inset: 0; z-index: 2; background: var(--midnight); opacity: 0; pointer-events: none; }
@media (max-width: 991px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-12); }
  .why__intro { position: static; }
  .why__stack { gap: var(--card-gap); }
  .why-card { height: auto; min-height: 340px; }
}

/* ---------- About: our values (dark chapter) — on desktop the screen holds and the scroll steps through the five ---------- */
.vals-cycle { position: relative; }
.vals-tabs, .vals-progress { display: none; }
.vals-items { display: grid; gap: var(--space-16); }
.val { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-20); align-items: center; }
.val__art { display: grid; place-items: center; aspect-ratio: 1; width: 100%; }   /* drawn straight on the chapter's midnight */
.val__art svg { width: 82%; height: 82%; }
.val__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 30rem; }
.vals-cycle.is-cycling { height: calc(var(--n, 5) * 100svh); }
.vals-cycle.is-cycling .vals-cycle__stage {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--nav-top) + var(--control-h) + var(--space-8));
}
.vals-cycle.is-cycling .vals-cycle__stage > .container { width: 100%; }   /* full width inside the flex column */
.vals-cycle.is-cycling .vals-tabs { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); align-items: center; padding-bottom: var(--space-3); }
.vals-tab { justify-self: center; padding: var(--space-2) var(--space-1); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--color-text-subtle); transition: color var(--dur-fast); }
.vals-tab:hover, .vals-tab.is-active { color: var(--white); }
.vals-cycle.is-cycling .vals-progress { display: block; position: relative; height: 1px; background: var(--color-border); }
.vals-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), var(--sky)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.vals-progress::after { content: ""; position: absolute; top: -3px; left: calc(var(--p, 0) * 100% - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(109, 224, 243, .25); }
.vals-cycle.is-cycling .vals-items { position: relative; flex: 1; min-height: 0; width: 100%; display: block; }
.vals-cycle.is-cycling .val {
  position: absolute; inset: var(--space-10) var(--gutter) var(--space-12);
  grid-template-rows: minmax(0, 1fr);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base);
}
.vals-cycle.is-cycling .val.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-slow) var(--ease-out); }
.vals-cycle.is-cycling .val__art { width: min(100%, calc(100svh - 260px)); justify-self: start; }   /* square, as tall as the screen allows */
@media (max-width: 991px) {
  .val { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .val__art { max-width: 420px; }
}

/* the call to action grows in on a dark ground here, since the values chapter above is dark too */
.cta-ground { background: var(--midnight); }

/* ---------- Services: hero + the five services (dark) ----------
   Without motion (phones, reduced motion) this is a plain hero followed by a list.
   With .is-staged (desktop, main.js) the screen holds: three indigo columns slide away,
   the title shrinks to the top and each service slides up over the one before it. */
.sv-pin { position: relative; background: var(--color-bg); }
.sv-stage { position: relative; }
.sv-cols, .sv-lattice { position: absolute; inset: 0; pointer-events: none; }
.sv-cols { display: flex; height: 100svh; overflow: hidden; }
.sv-cols i { flex: 1; margin-inline-end: -1px; background: var(--indigo-deep); }
.sv-lattice {
  height: 100svh; opacity: .22;
  -webkit-mask-image: radial-gradient(300px at var(--mx, 78%) var(--my, 30%), #000 25%, transparent 100%);
  mask-image: radial-gradient(300px at var(--mx, 78%) var(--my, 30%), #000 25%, transparent 100%);
}
.sv-head { position: relative; }
.sv-head__inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding-block: 34svh var(--space-16); }
.sv-title { font-family: var(--font-display); font-size: var(--fs-display-2xl); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -.035em; transform-origin: 0 0; }
.sv-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--grid-gap); align-items: start; }
.sv-intro .eyebrow { padding-top: var(--space-2); }
.sv-intro .t-lead { max-width: 30rem; }

.sv-rows { position: relative; }
.sv-row { position: relative; isolation: isolate; overflow: hidden; background: var(--color-bg); border-top: 1px solid var(--color-border); }
/* a short bright stretch of the top rule sits under the pointer */
.sv-row::before { content: ""; position: absolute; inset: -1px 0 auto; z-index: 1; height: 1px; background: radial-gradient(220px at var(--lx, 50%) 50%, var(--cyan), transparent); }
.sv-row__media { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: -1; width: 62%; opacity: .5; -webkit-mask-image: linear-gradient(to left, #000 20%, transparent); mask-image: linear-gradient(to left, #000 20%, transparent); }
.sv-row__media video { width: 100%; height: 100%; object-fit: cover; }
.sv-row--flip .sv-row__media video { transform: scaleX(-1); filter: hue-rotate(40deg); }   /* a re-used clip, mirrored and turned towards indigo so it reads as its own */
.sv-row__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--grid-gap); padding-block: var(--space-5) var(--space-8); }
.sv-row__name { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.sv-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 30rem; }
.sv-row__body .tag-row { margin-top: var(--space-2); }
.sv-row__num { justify-self: end; font-family: var(--font-display); font-size: clamp(56px, 6vw, 88px); font-weight: var(--fw-medium); line-height: .9; letter-spacing: -.05em; }
.sv-row__shade { position: absolute; inset: 0; z-index: 2; background: var(--midnight); opacity: 0; pointer-events: none; }

.sv-pin.is-staged { height: calc(200svh + var(--n, 5) * 50svh); }
.sv-pin.is-staged .sv-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sv-pin.is-staged .sv-head { position: absolute; inset: 0; }
.sv-pin.is-staged .sv-rows { position: absolute; inset: 0; pointer-events: none; }
.sv-pin.is-staged .sv-row { position: absolute; inset: 21svh 0 0; pointer-events: auto; }   /* all in the same place: each one fully covers the last */
.sv-pin.is-staged .sv-row__grid { height: calc(100% - 1px); }

@media (max-width: 991px) {
  .sv-cols i { margin: 0; }
  .sv-head__inner { min-height: 0; justify-content: flex-start; gap: var(--space-14); padding-block: calc(var(--nav-h) + var(--space-16)) var(--space-14); }
  .sv-intro { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  /* no screen to hold here: each service is a clear band of video with its text below on solid colour, always readable */
  .sv-row__media {
    position: relative; inset: auto; z-index: auto; width: 100%; aspect-ratio: 21 / 9; opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .sv-row__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); padding-block: var(--space-2) var(--space-12); }
  .sv-row__num { justify-self: start; order: -1; font-family: var(--font-sans); font-size: var(--fs-label); line-height: var(--lh-lead); letter-spacing: 0; color: var(--cyan); font-variant-numeric: tabular-nums; }
  .sv-row__name { font-size: var(--fs-h2); }
}
@media (max-width: 600px) { .sv-row__media { aspect-ratio: 16 / 9; } }

/* ---------- Services: statement — one sentence on white ---------- */
.sv-statement { display: grid; place-items: center; min-height: 80svh; background: var(--color-bg); padding-block: var(--section-y); text-align: center; }
.sv-statement .t-h1 { max-width: 56rem; margin-inline: auto; }
@media (max-width: 991px) { .sv-statement { min-height: 0; } .sv-statement .t-h1 { text-wrap: balance; } }

/* ---------- Services: who we serve — the button rides along beside the list ---------- */
.sv-sectors__head { display: flex; flex-direction: column; gap: var(--space-8); padding-bottom: var(--space-12); margin-bottom: var(--space-12); border-bottom: 1px solid var(--color-border); }
.sv-sectors__title { max-width: 720px; }
.sv-sectors__aside { display: flex; flex-direction: column; align-items: flex-start; }
.sv-sectors__aside .t-body-lg { max-width: 30rem; }
.sv-sectors__btn { position: sticky; top: calc(100svh - 88px); margin-top: var(--space-28); }
@media (max-width: 991px) { .sv-sectors__btn { position: static; margin-top: var(--space-6); } }
@media (max-width: 600px) { .sv-sectors__title { text-wrap: balance; } .sv-sectors__btn { --btn-w: 100%; } }

/* ---------- Services: our projects — a row of large cards with arrows ---------- */
.sv-projects__head { margin-bottom: var(--space-8); }
.sv-projects__head .eyebrow { padding-top: var(--space-2); }
.sv-projects__arrows { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.sv-card {
  --card-h: 420;                                     /* design height: the artwork is scaled from it */
  position: relative; isolation: isolate; overflow: hidden;
  flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-10);
  width: 380px; min-height: calc(var(--card-h) * 1px); padding: var(--space-6);
  background: var(--white); color: var(--color-text); border-radius: var(--shape-card); scroll-snap-align: start;
  transition: color var(--dur-fast);
}
/* on hover the project's artwork fills the card; a dark veil keeps the text readable over it */
.sv-card__art { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.sv-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 48, .94) 0%, rgba(10, 18, 48, .6) 30%, rgba(10, 18, 48, .08) 48%, rgba(10, 18, 48, .08) 58%, rgba(10, 18, 48, .9) 76%, rgba(10, 18, 48, .96) 100%); }
.sv-card__art .stage { position: absolute; left: 50%; top: 0; translate: -50% 0; width: calc(var(--sw) * var(--card-h) / 420 * 1px); height: 100%; aspect-ratio: auto; }
.sv-card:hover, .sv-card:focus-visible { color: var(--white); }
.sv-card:hover .sv-card__art, .sv-card:focus-visible .sv-card__art { opacity: 1; }
.sv-card:hover .text-subtle, .sv-card:focus-visible .text-subtle { color: var(--frost); }
.sv-card__title { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-medium); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.sv-card__foot { display: flex; flex-direction: column; gap: var(--space-2); }
/* touch screens have no hover, so the artwork is simply always there */
@media (hover: none) {
  .sv-card { color: var(--white); }
  .sv-card__art { opacity: 1; }
  .sv-card .text-subtle { color: var(--frost); }
}
@media (max-width: 600px) {
  .sv-card { --card-h: 360; width: 80vw; }
  .sv-projects__arrows { display: none; }            /* swiping does this on a phone */
}

/* ---------- Footer ---------- */
.footer { background: var(--color-bg); color: var(--color-text-muted); padding-block: var(--space-12); }
.footer a { transition: color var(--dur-fast); }
.footer a:hover { color: var(--color-text); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--grid-gap); }
/* links carry their own padding instead of a gap, so each one is a comfortable target (30px) at the same spacing */
.footer__group { display: flex; flex-direction: column; align-items: flex-start; }
.footer__group a { padding-block: var(--space-1); }
.footer__head { margin-bottom: var(--space-4); color: var(--color-text-subtle); font-weight: var(--fw-semibold); }
.footer .underline-link { display: inline-block; padding-block: var(--space-1); }
.footer__mid { margin-top: var(--space-24); align-items: end; }
.footer__logo { width: 150px; height: 136px; object-fit: contain; }
.footer__about { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__about p:first-child { max-width: 544px; }
.legal { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--color-bg-alt); font-size: var(--fs-caption); }
.legal__note { color: var(--color-text-subtle); }
.legal__links { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); grid-template-columns: 974fr 314fr; column-gap: 0; }
.legal__right { display: flex; gap: var(--space-14); }
.legal__links { padding-top: var(--space-3); }
.legal__links a { display: inline-block; padding-block: var(--space-1); }
@media (max-width: 991px) {
  .footer__mid { margin-top: var(--space-14); row-gap: var(--space-8); }
  .legal__links { grid-template-columns: 1fr; row-gap: var(--space-1); }
  /* touch screens: roomier targets (38px), tighter overall */
  .footer .underline-link, .footer__group a { padding-block: var(--space-2); }
  .footer__head { margin-bottom: var(--space-1); }
}
@media (max-width: 600px) {
  .footer__logo { width: 110px; height: 100px; }
  .legal__right { gap: var(--space-6); }
}

/* =========================================================
   Project pages (project-*.html): one case study each.
   A narrow reading column for the story, wide artwork between the chapters.
   ========================================================= */
.cs { background: var(--color-bg-alt); }
.cs-col { max-width: calc(760px + 2 * var(--gutter)); }
.cs-wide { max-width: calc(1216px + 2 * var(--gutter)); }

/* ---------- Hero: back link, name, summary, facts, then the main artwork ---------- */
.cs-hero { padding-top: calc(var(--nav-top) + var(--logo-h) + var(--space-16)); }
.cs-back { margin-bottom: var(--space-10); }
.cs-title { font-family: var(--font-display); font-size: var(--fs-display-xl); font-weight: var(--fw-medium); line-height: var(--lh-heading); letter-spacing: -.03em; }
.cs-summary { margin-top: var(--space-5); color: var(--color-text-muted); }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-6); margin: var(--space-10) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.cs-meta dt { font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--color-accent-text); }
.cs-meta dd { margin: var(--space-2) 0 0; font-size: var(--fs-body); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.cs-meta dd span { display: block; }
.cs-meta dd span + span { margin-top: var(--space-1); }
.cs-hero > .cs-wide { margin-top: var(--space-16); }

/* ---------- Artwork: drawn on a 1216 x 684 canvas (600 x 600 when square); --u is one canvas px at any width ---------- */
.cs-media { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--shape-card); container-type: inline-size; --u: calc(100cqw / var(--cw, 1216)); }
.cs-media--square { aspect-ratio: 1; --cw: 600; }
.cs-media__inner { position: absolute; inset: 0; }
.cs-item { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); rotate: calc(var(--r, 0) * 1deg); }
.cs-item img { width: 100%; height: auto; }
.cs-phone { overflow: hidden; background: #000; border: calc(5 * var(--u)) solid #0e0b1e; border-radius: calc(30 * var(--u)); box-shadow: var(--shadow-device); }
.cs-window { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border-radius: calc(12 * var(--u)); box-shadow: var(--shadow-float); }
.cs-tile { overflow: hidden; border-radius: calc(16 * var(--u)); box-shadow: var(--shadow-float); }
.cs-render { filter: drop-shadow(0 calc(30 * var(--u)) calc(40 * var(--u)) rgba(17, 22, 43, .22)); }
.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }

/* ---------- Chapters: number, heading, text; artwork follows ---------- */
.cs-chapter { padding-top: var(--section-y); }
.cs-chapter__num { display: block; margin-bottom: var(--space-4); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.cs-text { display: grid; gap: var(--space-5); margin-top: var(--space-6); font-size: var(--fs-h5); line-height: var(--lh-body); color: var(--color-text-muted); }
.cs-text .check-list { gap: var(--space-4); }
.cs-text .check-list li { font-size: inherit; font-weight: var(--fw-medium); color: var(--color-text); }
.cs-chapter > .cs-wide { margin-top: var(--space-16); }

/* ---------- Request flow (Ticketing System): the four stages, written out ---------- */
.cs-flow-panel { padding: clamp(var(--space-8), 5vw, var(--space-20)); border-radius: var(--shape-card); color: var(--white); }
.cs-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap); }
.cs-flow li { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-5); border: 1px solid var(--midnight-line); border-radius: var(--shape-card); background: rgba(19, 28, 66, .6); }
.cs-flow__num { font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--cyan); font-variant-numeric: tabular-nums; }
.cs-flow__name { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-tight); }
.cs-flow__note { font-size: var(--fs-body-sm); color: var(--frost); }
.cs-flow__foot { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-8); color: var(--frost); }
.cs-flow__foot::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(109, 224, 243, .25); }

/* ---------- Next project ---------- */
.cs-next { padding-block: var(--section-y); }
.cs-next__link { display: grid; justify-items: start; gap: var(--space-4); padding-top: var(--space-10); border-top: 1px solid var(--color-border); color: var(--color-text); }
.cs-next__title { font-family: var(--font-display); font-size: var(--fs-display-xl); font-weight: var(--fw-medium); line-height: var(--lh-heading); letter-spacing: -.03em; transition: color var(--dur-fast); }
.cs-next__link > .arr { color: var(--color-primary); }
.cs-next__link:hover .cs-next__title { color: var(--color-primary); }
.cs-next__link:hover > .arr { transform: translateX(6px); }

@media (max-width: 991px) {
  .cs-hero { padding-top: calc(var(--nav-h) + var(--space-14)); }
  .cs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cs-hero > .cs-wide, .cs-chapter > .cs-wide { margin-top: var(--space-10); }
  .cs-gallery, .cs-flow { grid-template-columns: minmax(0, 1fr); }
}
