:root {
  --purple: #38215e;
  --purple-deep: #22123d;
  --purple-ink: #1a0f2e;
  --green: #0f7232;
  --green-bright: #17a34a;
  --paper: #f7f5f1;
  --tint: #efebf5;
  --line: #e2dde9;
  --text: #2a2236;
  --muted: #6b6478;
  --white: #fff;
  --radius: 4px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--purple); letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 600 .78rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #7ee2a0; }

.btn {
  display: inline-block;
  font: 600 .95rem/1 var(--body);
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: #0b5c28; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* top bar + header */
.topbar { background: var(--purple-ink); color: #cfc6dc; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: #7ee2a0; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--purple); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--green); transition: right .25s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.nav__cta { padding: .8rem 1.2rem; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--purple); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(86vh, 760px); background: var(--purple); }
.hero__copy {
  color: #e8e2f2;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  /* left edge lines up with .wrap content (the logo): centred 1200px column + its 24px gutter */
  padding-left: max(var(--gutter), calc((100vw - var(--sbw, 0px) - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 100%, #4a2d7a 0%, transparent 60%), var(--purple);
}
.hero__copy > :not(.hero__stripes) { position: relative; z-index: 1; }

/* Animated ribbons on the logo's roof angle, drawn by script.js on a canvas (no layer seams) */
.hero__stripes {
  /* Bleeds 6px past the panel so the canvas's own edge pixels are always clipped off-screen,
     and fades out over that bleed so a ribbon never ends in a bright seam at the panel edge */
  position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px);
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent), linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent), linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  mask-composite: intersect;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 4.6vw, 4.1rem); text-transform: uppercase; font-weight: 600; max-width: 14ch; }
.hero__lead { font-size: 1.08rem; max-width: 52ch; color: #d8d0e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.hero__media { position: relative; overflow: hidden; margin-left: -1px; } /* same 1px overlap against the purple panel */
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: 0; bottom: 2.5rem;
  background: var(--white); padding: 1rem 1.4rem 1rem 1.2rem;
  border-left: 5px solid var(--green); text-decoration: none;
  display: grid; gap: .2rem; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
/* Hover: the white panel slides right while the card's own green edge widens to fill the gap.
   One property (the border) drives both, so the green stays anchored to the photo edge and never lags or shrinks. */
.hero__tag { --slide: 56px; transition: border-left-width .6s var(--ease-io), box-shadow .6s var(--ease-io); }
.hero__tag:hover, .hero__tag:focus-visible { border-left-width: calc(5px + var(--slide)); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.hero__tag:focus-visible { outline: 2px solid #7ee2a0; outline-offset: 3px; }
.hero__tag-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero__tag-title { font-family: var(--display); font-size: 1.15rem; color: var(--purple); }

/* stats */
/* Overlap the hero by 1px: at fractional display scaling (e.g. 125%) a hairline of white page could show between them */
.stats { background: var(--green); color: var(--white); position: relative; margin-top: -1px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 2rem 1rem; border-left: 1px solid rgba(255,255,255,.2); display: grid; gap: .3rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1; }
.stat__label { font-size: .85rem; color: #d3f0dc; }

/* accreditations */
.accred { padding: 2.2rem 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.accred__title { text-align: center; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.4rem; }
.marquee {
  overflow: hidden; padding: 6px 0;
  /* logos fade out by the content line (where the logo and text start): fully gone at that line,
     fully visible --fade inside it, nothing shown in the side margins */
  --edge: max(var(--gutter), calc((100vw - var(--sbw, 0px) - var(--wrap)) / 2 + var(--gutter)));
  --fade: min(120px, 12vw);
  -webkit-mask-image: linear-gradient(90deg, transparent var(--edge), #000 calc(var(--edge) + var(--fade)), #000 calc(100% - var(--edge) - var(--fade)), transparent calc(100% - var(--edge)));
  mask-image: linear-gradient(90deg, transparent var(--edge), #000 calc(var(--edge) + var(--fade)), #000 calc(100% - var(--edge) - var(--fade)), transparent calc(100% - var(--edge)));
}
/* Spacing lives on each logo (not `gap`) so the two copies are exactly equal and -50% loops seamlessly */
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee__track img { height: 64px; width: auto; margin-right: 3.5rem; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s, transform .25s; }
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.1); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--purple-deep); color: #d8d0e6; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__intro { font-size: 1.1rem; color: var(--muted); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34,18,61,.1); border-color: transparent; }
.service img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.service__body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; position: relative; }
.service__num { font-family: var(--display); font-size: .9rem; color: var(--green); font-weight: 600; display: block; margin-bottom: .4rem; }
.service h3 { font-size: 1.25rem; text-transform: uppercase; }
.service p { font-size: .93rem; color: var(--muted); }
details { margin-top: auto; border-top: 1px solid var(--line); padding-top: .8rem; }
summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--purple); list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--green); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details ul { margin: .7rem 0 0; padding: 0; list-style: none; font-size: .88rem; }
details li { padding: .25rem 0 .25rem 1rem; position: relative; }
details li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 2px; background: var(--green); }

.sectors { margin-top: 3rem; display: flex; gap: 1.5rem; align-items: baseline; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line); }
.sectors__label { font-family: var(--display); text-transform: uppercase; color: var(--purple); font-size: 1.05rem; }
.sectors ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.sectors li { background: var(--tint); color: var(--purple); font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; }

/* featured */
.featured { background: var(--purple-ink); color: #d8d0e6; padding: clamp(4rem, 9vw, 7rem) 0; }
.featured__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: center; }
.featured h2 { color: var(--white); }
.featured__facts { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.featured__facts li { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.15); display: grid; grid-template-columns: 110px 1fr; gap: 1rem; color: var(--white); }
.featured__facts span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #9f93b5; padding-top: .2rem; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic__a { grid-row: span 2; }
.mosaic__b { }
.mosaic__c, .mosaic__d { display: none; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project__img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project__img img { transform: scale(1.04); }
.project__img--logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.project__img--logo img { width: 60%; height: auto; object-fit: contain; }
.project__body { padding-top: 1.3rem; }
.project__tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.project h3 { margin-top: .4rem; font-size: 1.5rem; text-transform: uppercase; }
.project p { color: var(--muted); }

.clients { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.clients span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.clients ul { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; list-style: none; margin: 0; padding: 0; }
.clients li { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; color: var(--purple); opacity: .85; }

/* quotes */
.quotes { background: var(--green); color: var(--white); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.quotes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.quote { margin: 0; position: relative; padding-top: 3.2rem; }
.quote::before { content: "“"; position: absolute; top: -1.2rem; left: -.2rem; font: 600 6rem/1 var(--display); color: rgba(255,255,255,.3); }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1.2rem; line-height: 1.55; font-weight: 500; }
.quote figcaption { font-size: .9rem; color: #d3f0dc; display: grid; }
.quote figcaption strong { color: var(--white); font-size: 1rem; }

/* about */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
.about__main > p:not(.eyebrow) { font-size: 1.05rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.pillar { border-top: 3px solid var(--green); padding-top: 1.2rem; }
.pillar h3 { text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: .95rem; }
.about__aside { background: var(--purple); color: var(--white); padding: 2.2rem; border-radius: var(--radius); }
.about__aside h3 { color: var(--white); text-transform: uppercase; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .6rem 0 .6rem 1.9rem; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; font-size: .95rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 14px; height: 8px; border-left: 2px solid #7ee2a0; border-bottom: 2px solid #7ee2a0; transform: rotate(-45deg); }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; background: var(--tint); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--green); }
.person h3 { text-transform: uppercase; margin-bottom: .2rem; }
.person__role { color: var(--green); font-weight: 700; font-size: .88rem; margin-bottom: .8rem; }
.person p:last-child { color: var(--muted); font-size: .92rem; }

/* training */
.training { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.chips li { border: 1px solid rgba(255,255,255,.2); padding: .4rem .8rem; border-radius: 999px; font-size: .82rem; color: #ece6f6; }
.tech { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 2.2rem; border-radius: var(--radius); }
.tech h3 { text-transform: uppercase; font-size: 1.5rem; }
.tech__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
/* matches the section's eyebrow label exactly */
.tech h4 { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #7ee2a0; margin-bottom: 1rem; }
.tech ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.tech li { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact__list { margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact__list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: .2rem; }
.contact__list dd { margin: 0; font-size: 1.05rem; color: var(--purple); font-weight: 600; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--green); }
.form { background: var(--paper); padding: 2.4rem; border-radius: var(--radius); display: grid; gap: 1.1rem; border-top: 4px solid var(--purple); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--purple); transition: color .2s; }
.form label:focus-within { color: var(--green); }
/* Thin purple outline at rest; on focus a thicker green edge (inset shadow, so nothing shifts) with a soft purple halo */
.form input, .form select, .form textarea {
  font: 400 1rem var(--body); padding: .8rem .9rem; width: 100%;
  border: 1px solid rgba(56, 33, 94, .28); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(56, 33, 94, .55); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green), 0 0 0 4px rgba(56, 33, 94, .12);
}
.form input:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
/* Service dropdown: where the browser allows styling the list (Chromium's base-select), use the brand
   green for the highlighted option instead of the system blue; other browsers keep their native list */
@supports (appearance: base-select) {
  .form select, .form select::picker(select) { appearance: base-select; }
  .form select { display: flex; align-items: center; cursor: pointer; }
  .form select::picker-icon { color: var(--purple); transition: rotate .25s var(--ease-io); }
  .form select:open::picker-icon { rotate: 180deg; }
  .form select:open { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 0 0 4px rgba(56, 33, 94, .12); }
  .form label:has(select:open) { color: var(--green); }
  .form select::picker(select) {
    margin-top: 6px; padding: 6px; border: 1px solid rgba(56, 33, 94, .28); border-radius: var(--radius);
    background: var(--white); box-shadow: 0 18px 40px rgba(34, 18, 61, .16);
  }
  .form option { padding: .65rem .8rem; border-radius: 3px; color: var(--text); cursor: pointer; transition: background .15s, color .15s; }
  .form option:checked { background: rgba(15, 114, 50, .1); color: var(--green); font-weight: 600; }
  .form option:hover, .form option:focus-visible { background: var(--green); color: var(--white); outline: none; }
  .form option::checkmark { color: currentColor; }
}
.form .btn { justify-self: start; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; }

/* footer */
.footer { background: var(--purple-ink); color: #b9afc9; padding: 4.5rem 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer img { height: 56px; width: auto; margin-bottom: 1.2rem; }
.footer h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #7ee2a0; }
.footer__base { display: flex; justify-content: space-between; padding-top: 1.4rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* Soft shadow under the header and each coloured band: darkest at the centre of the screen,
   feathering out (eased, many stops) towards the sides and downwards */
.stats, .featured, .quotes, .section--dark { position: relative; z-index: 2; }
.header::after, .stats::after, .featured::after, .quotes::after, .section--dark::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 44px; pointer-events: none;
  background: radial-gradient(62% 100% at 50% 0%,
    rgba(26, 15, 46, 0.5) 0%,
    rgba(26, 15, 46, 0.44) 10%,
    rgba(26, 15, 46, 0.36) 20%,
    rgba(26, 15, 46, 0.28) 30%,
    rgba(26, 15, 46, 0.2) 40%,
    rgba(26, 15, 46, 0.135) 50%,
    rgba(26, 15, 46, 0.085) 60%,
    rgba(26, 15, 46, 0.05) 70%,
    rgba(26, 15, 46, 0.025) 80%,
    rgba(26, 15, 46, 0.01) 90%,
    rgba(26, 15, 46, 0) 100%);
}

/* lightbox */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; }
.lightbox-lock, .lightbox-lock body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  background: rgba(20, 11, 36, .94); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; } /* otherwise display:grid would keep the closed overlay over the page, blocking clicks */
.lightbox__stage { margin: 0; height: 100vh; height: 100dvh; padding: 4vh 0 2vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-width: 0; }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100dvh - 4vh - 2vh - 3.5rem); object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.985); transition: opacity .3s ease, transform .3s ease;
}
.lightbox__stage img.is-loaded { opacity: 1; transform: none; }
.lightbox figcaption { display: flex; gap: 1.2rem; align-items: baseline; color: #d8d0e6; font-size: .92rem; }
.lightbox__count { font-family: var(--display); color: #7ee2a0; letter-spacing: .08em; }
.lightbox button {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox button:hover { background: var(--green); border-color: var(--green); }
.lightbox button:focus-visible { outline: 2px solid #7ee2a0; outline-offset: 3px; }
.lightbox__nav { justify-self: center; }
.lightbox__nav--prev:hover { transform: translateX(-2px); }
.lightbox__nav--next:hover { transform: translateX(2px); }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 44px !important; height: 44px !important; z-index: 1; }
.lightbox__close svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__stage { padding: 64px 12px 90px; }
  .lightbox__stage img { max-height: calc(100dvh - 180px); }
  .lightbox__nav { position: absolute; bottom: 22px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { left: calc(50% + 12px); }
}

/* scroll animations: a gentle ease-in-out, slightly slow */
:root { --ease-io: cubic-bezier(.45, 0, .2, 1); }
.reveal { opacity: 0; transition: opacity 1.2s var(--ease-io), transform 1.2s var(--ease-io); transition-delay: var(--delay, 0ms); }
.reveal--up { transform: translateY(10px); }
.reveal--left { transform: translateX(-8px); }
.reveal--right { transform: translateX(10px); }
.reveal--pop { transform: scale(.96); transition-duration: .8s; }
.reveal--zoom { transform: scale(.985); }
.reveal--zoom img { transform: scale(1.04); transition: transform 1.9s var(--ease-io); transition-delay: var(--delay, 0ms); }
.reveal--zoom.is-in img { transform: scale(1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--line { opacity: 1; }
.reveal--line::before { width: 0; transition: width 1s var(--ease-io) .2s; }
.reveal--line.is-in::before { width: 28px; }

/* service and project photos ease in as their card appears */
.service.reveal img, .project.reveal .project__img img { transform: scale(1.04); transition: transform 1.7s var(--ease-io); transition-delay: var(--delay, 0ms); }
.service.reveal.is-in img, .project.reveal.is-in .project__img img { transform: scale(1); }

/* hero entrance on page load */
.hero__copy > :not(.hero__stripes) { animation: rise 1.4s var(--ease-io) both; }
.hero__copy > :nth-child(2) { animation-delay: .15s; }
.hero__copy > :nth-child(3) { animation-delay: .32s; }
.hero__copy > :nth-child(4) { animation-delay: .5s; }
.hero__tag { animation: slideIn 1.3s var(--ease-io) .8s both; }
.hero__media img { transform: scale(1.04); will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } }

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-bright)); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .hero__tag { animation: none; }
  .hero__media img { transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* responsive */
@media (min-width: 1100px) {
  .mosaic { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 220px 220px; }
  .mosaic__b { grid-column: span 2; }
  .mosaic__c, .mosaic__d { display: block; }
}
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .featured__grid, .about, .training, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(34,18,61,.1);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; }
  .hero__media { height: 340px; margin-left: 0; margin-top: -1px; } /* photo sits under the text; overlap the seam vertically instead */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.4rem 1rem; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .stat:first-child { padding-left: 1rem; grid-column: span 2; border-top: 0; }
  .projects, .quotes__grid, .pillars { grid-template-columns: 1fr; }
  .quotes__grid { gap: 3rem; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .topbar__inner { font-size: .78rem; }
  .services, .team, .tech__cols, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px; }
  .mosaic__a { grid-row: auto; grid-column: span 2; }
  .mosaic__b { grid-column: span 2; }
  .form { padding: 1.5rem; }
  .footer__base { flex-direction: column; gap: .6rem; }
  .clients li { font-size: 1.15rem; }
}
