/* Shared styles for every page of the site. Layout: product-launch pages. Dark "showroom" chapters (film, highlights, landmarks, machinery) hand over to light
   chapters (how we work, promises) the way Apple pages alternate. Pinned chapters use a sticky 100svh stage whose
   scroll progress drives transforms; everything else fades up as it enters. With reduced motion, or without the
   script, every object sits at rest and the page reads top to bottom. The two looks are fixed by design, not by
   the viewer's theme. */
:root {
  --night: #000000;
  --night-2: #0C0D10;
  --night-line: #23262C;
  --day: #F4F5F7;
  --day-card: #FFFFFF;
  --day-line: #DADDE2;
  --ink: #121418;
  --fg: #F4F5F7;
  --muted-dark: #9AA0A9;
  --muted-light: #5D636C;
  --brand: #9ACD32;
  --brand-deep: #4B7A0E;
  --brand-hi: #D9EFA8;
  --ph-bg: #26340F;
  --ph-fg: #C9E68A;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hero: clamp(3rem, 8.4vw, 7rem);
  --h2: clamp(2.3rem, 6vw, 4.75rem);
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--fg); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.03; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.grad { background: linear-gradient(100deg, var(--brand-hi), var(--brand) 55%, #6FA81C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph { background: var(--ph-bg); color: var(--ph-fg); border-radius: 3px; padding: 0 0.3em; font-family: var(--font-mono); font-size: 0.88em; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid currentColor; font-size: 0.95rem; white-space: nowrap; transition: background-color 200ms, color 200ms, border-color 200ms; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #10180A; }
.btn.primary:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn:not(.primary):hover { color: var(--brand); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* Fade-up on entry (only for things below the fold when the page loads) */
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(40px); }

/* Navigation */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(0, 0, 0, 0.74); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); border-bottom: 1px solid var(--night-line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.6rem; }
.mark { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; margin-right: auto; white-space: nowrap; }
.mark { gap: 0.8rem; align-items: baseline; }
.mark .wm { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.035em; line-height: 1; }
.mark .wm b { font-weight: 800; color: var(--brand); }
.mark .sub { font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 420px) { .mark .sub { display: none; } }
.top nav ul { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0; font-size: 0.84rem; }
.top nav a { text-decoration: none; color: var(--muted-dark); }
.top nav a:hover { color: var(--fg); }
.top nav a[aria-current="page"] { color: var(--fg); }
.top .btn { padding: 0.35rem 0.9rem; font-size: 0.82rem; }
.top .signin { font-size: 0.84rem; text-decoration: none; color: var(--muted-dark); white-space: nowrap; }
.top .signin:hover { color: var(--fg); }
.top nav .only-menu { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; fill: none; }
@media (max-width: 480px) { .top .wrap > .btn { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .top .wrap { gap: 0.5rem; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #000; border-bottom: 1px solid var(--night-line); }
  .top.open nav { display: block; }
  .top nav .only-menu { display: block; }
  .top nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; font-size: 1.15rem; }
  .top nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--night-line); }
}

/* Page heading for inner pages */
.page-head { text-align: center; display: grid; justify-items: center; gap: 1rem; padding: clamp(4rem, 12svh, 8rem) var(--gutter) clamp(2rem, 6svh, 4rem); }
.page-head h1 { font-size: var(--hero); font-weight: 800; }
.page-head .lede { color: var(--muted-dark); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 42rem; }
.light .page-head .lede { color: var(--muted-light); }

/* Pinned chapters */
.pin { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.obj { position: absolute; pointer-events: none; }
.obj img, .obj video { mix-blend-mode: lighten; will-change: transform, opacity; height: 100%; width: auto; max-width: none; }
img.feathered, .feather img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }

/* Hero copy */
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 1.1rem; padding: clamp(4rem, 11svh, 7rem) var(--gutter) clamp(2.5rem, 6svh, 4rem); }
.hero-copy h1 { font-size: var(--hero); font-weight: 800; }
.hero-copy .lede { color: var(--muted-dark); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 40rem; }

/* Hero film: a rounded card that opens to full bleed as you scroll */
#film { height: 200svh; }
#film .stage { display: grid; place-items: center; }
.film-frame { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #000; transform: scale(0.84); transform-origin: 50% 40%; will-change: transform, border-radius; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-frame::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.film-over { position: absolute; inset: auto 0 14svh; text-align: center; padding-inline: var(--gutter); z-index: 2; opacity: 0; }
.film-over h2 { font-size: var(--h2); }
.media-btn { position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(60, 63, 70, 0.72); backdrop-filter: blur(10px); display: grid; place-items: center; }
.media-btn:hover { background: rgba(90, 94, 102, 0.85); }
.media-btn svg { width: 16px; height: 16px; fill: var(--fg); }

/* Rise: the tower climbs as you scroll (video time follows scroll) */
#rise { height: 320svh; }
#rise .stage { display: grid; place-items: center; }
#rise video { position: absolute; left: 62%; top: 0; height: 100svh; width: auto; max-width: none; transform: translateX(-50%); mix-blend-mode: lighten; }
#rise .lines { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14svh; display: grid; z-index: 2; }
#rise .lines p { grid-area: 1 / 1; font-family: var(--font-display); font-weight: 700; font-size: var(--h2); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; opacity: 0; text-shadow: 0 2px 30px #000; }
@media (max-width: 700px) { #rise video { left: 50%; height: 80svh; top: 6svh; } }

/* Highlights carousel */
#highlights { padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
#highlights .row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
#highlights h2 { font-size: var(--h2); }
.carousel { position: relative; }
.track { display: flex; gap: 20px; transition: transform 900ms var(--ease); padding-inline: max(var(--gutter), calc((100vw - 72rem) / 2)); }
.slide { flex: none; width: min(72rem, calc(100vw - 2 * var(--gutter))); aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; position: relative; background: #000; transition: opacity 600ms; }
.slide video { position: absolute; right: -16%; bottom: 0; height: 100%; width: auto; max-width: none; }
.slide video.fade-x { right: -4%; bottom: 10%; height: 64%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.slide:not(.on) { opacity: 0.45; }
.slide img { position: absolute; right: 4%; bottom: 0; height: 92%; width: auto; max-width: none; mix-blend-mode: lighten; transition: transform 6s linear; }
.slide.on img { transform: scale(1.06); }
.slide .cap { position: absolute; left: clamp(1.25rem, 4vw, 3rem); top: clamp(1.25rem, 4vw, 3rem); max-width: min(26rem, 55%); font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; z-index: 1; }
.slide .cap b { color: var(--brand); font-weight: 600; display: block; font-family: var(--font-display); font-size: 1.35em; letter-spacing: -0.02em; }
.slide .cap a { font-size: 0.8em; color: var(--muted-dark); }
@media (max-width: 700px) { .slide { aspect-ratio: 4 / 5; } .slide .cap { max-width: none; right: 1.25rem; } .slide img { right: 50%; transform: translateX(50%); height: 70%; } .slide.on img { transform: translateX(50%) scale(1.06); } .slide video { right: 50%; transform: translateX(50%); height: 68%; } .slide video.fade-x { right: 50%; bottom: 8%; height: 50%; } }
.controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 1.75rem; }
.dots { display: flex; gap: 10px; align-items: center; background: rgba(60, 63, 70, 0.6); backdrop-filter: blur(10px); border-radius: 999px; padding: 0 18px; height: 44px; }
.dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(244, 245, 247, 0.45); position: relative; overflow: hidden; transition: width 500ms var(--ease); }
.dot.on { width: 48px; }
.dot i { position: absolute; inset: 0; width: 0; background: var(--fg); border-radius: inherit; }
.controls .media-btn { position: static; }

/* Statement */
#statement { height: 190svh; }
#statement .stage { display: grid; place-items: center; }
#statement p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; padding-inline: var(--gutter); }

/* Markets */
#markets { height: 680svh; }
#markets .head { position: absolute; top: clamp(4.5rem, 10svh, 6rem); left: 0; right: 0; z-index: 3; }
.market { position: absolute; inset: 0; margin: 0; }
.market .obj { right: 8vw; bottom: 0; height: 88svh; }
.market .obj.v { right: auto; left: 68vw; transform: translateX(-50%); }
.market figcaption { position: absolute; left: var(--gutter); top: 36svh; max-width: 30rem; display: grid; gap: 0.6rem; z-index: 2; }
.market h3 { font-size: var(--h2); }
.market .cities { font-family: var(--font-mono); color: var(--brand); font-size: 0.9rem; }
.market p:last-child { color: var(--muted-dark); font-size: 1.1rem; }
.market:not(:first-of-type) { opacity: 0; }
@media (max-width: 760px) {
  #markets .head { top: 5rem; }
  .market .obj { right: 50%; transform: translateX(50%); height: 52svh; }
  .market .obj.v { left: 50%; right: auto; transform: translateX(-50%); }
  .market figcaption { top: 17svh; right: var(--gutter); }
}

/* Industries */
.industry { height: 230svh; }
.industry .glow { position: absolute; left: -10vw; right: -10vw; top: -20svh; height: 60svh; -webkit-mask-image: linear-gradient(transparent 20%, #000 45%, #000 65%, transparent); mask-image: linear-gradient(transparent 20%, #000 45%, #000 65%, transparent); background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 45%, transparent), transparent); opacity: 0.25; pointer-events: none; }
.industry .title { position: absolute; top: clamp(4.5rem, 10svh, 6.5rem); left: 0; right: 0; text-align: center; display: grid; gap: 0.6rem; justify-items: center; padding-inline: var(--gutter); z-index: 3; }
.industry .label { color: var(--glow); }
.industry h2 { font-size: var(--h2); background: linear-gradient(180deg, #fff 20%, color-mix(in srgb, var(--glow) 80%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.industry .title p { color: var(--muted-dark); max-width: 36rem; font-size: 1.05rem; }
.industry .a { left: 50%; bottom: 0; height: 56svh; transform: translateX(-50%); }
/* The glow ends above the clips; feathered edges let any clip sit on the black without a visible frame. */
.industry .obj video { -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 88%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 14%, #000 88%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.industry .b { left: 3vw; bottom: 4svh; height: 36svh; }
.industry .c { right: 3vw; bottom: 4svh; height: 36svh; }
.industry .fly { left: 50%; top: 46svh; height: 26svh; transform: translateX(-50%); }
@media (max-width: 760px) {
  .industry .title { top: 5rem; }
  .industry .a { height: 44svh; }
  .industry .b, .industry .c { height: 22svh; }
  .industry .fly { height: 18svh; top: 40svh; }
}

/* Closer look: sideways cards with an Explore panel */
#closer { padding-block: clamp(4rem, 9vw, 7rem); }
#closer h2 { font-size: var(--h2); margin-bottom: 2rem; }
.scroller { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - 72rem) / 2)); padding-bottom: 4px; }
.scroller::-webkit-scrollbar { display: none; }
.card { flex: none; width: min(24rem, 78vw); height: min(34rem, 72svh); border-radius: 28px; background: var(--night-2); position: relative; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; padding: 1.75rem; }
.card .eyebrow { font-size: 0.85rem; color: var(--muted-dark); }
.card h3 { font-size: 1.6rem; margin-top: 0.4rem; position: relative; z-index: 1; }
.card .art { position: absolute; left: 0; right: 0; bottom: 0; height: 68%; display: grid; place-items: center; }
.card .art svg { width: 82%; height: 100%; overflow: visible; }
.card img { position: absolute; left: 50%; bottom: 0; height: 64%; width: auto; max-width: none; transform: translateX(-50%); mix-blend-mode: lighten; transition: transform 700ms var(--ease); }
.card:hover img { transform: translateX(-50%) scale(1.05); }
.plus { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fg); color: var(--night); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; z-index: 2; transition: transform 300ms var(--ease); }
.plus:hover { transform: scale(1.08); }
.paddles { display: flex; justify-content: flex-end; gap: 10px; margin-top: 1.25rem; }
.paddles button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(60, 63, 70, 0.72); font-size: 1.1rem; }
.paddles button:disabled { opacity: 0.35; cursor: default; }

dialog.panel { width: min(46rem, calc(100vw - 2 * var(--gutter))); max-height: 86svh; border: 0; border-radius: 28px; padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--night-2); color: var(--fg); }
dialog.panel::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); }
dialog.panel[open] { animation: rise 500ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
dialog.panel h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
dialog.panel p { color: var(--muted-dark); margin-bottom: 1rem; }
dialog.panel ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
dialog.panel .close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(90, 94, 102, 0.6); font-size: 1.2rem; }

/* Illustrations (services) */
.ill { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .dim { stroke: #4A4E57; }
.ill .fill { fill: var(--brand); stroke: none; }
.ill .soft { fill: rgba(154, 205, 50, 0.12); }
.ill text { fill: var(--fg); stroke: none; font-family: var(--font-mono); font-size: 13px; }
.ill .big { font-family: var(--font-display); font-weight: 800; font-size: 40px; fill: var(--fg); }
.ill .pulse { animation: pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }
.ill .float { animation: float 5s ease-in-out infinite; }
.ill .float.d2 { animation-delay: -1.6s; } .ill .float.d3 { animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.ill .dash { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.ill .sweep { stroke-dasharray: 340; stroke-dashoffset: 340; animation: sweep 3.6s var(--ease) infinite; }
@keyframes sweep { 60%, 100% { stroke-dashoffset: 60; } }
.ill .grow { transform-box: fill-box; transform-origin: bottom; animation: grow 3.2s var(--ease) infinite alternate; }
.ill .grow.d2 { animation-delay: -0.8s; } .ill .grow.d3 { animation-delay: -1.6s; } .ill .grow.d4 { animation-delay: -2.4s; }
@keyframes grow { from { transform: scaleY(0.35); } }

/* Tiles linking to the other pages */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 16px; margin-top: 2.5rem; }
.tile { position: relative; display: grid; gap: 0.5rem; align-content: start; padding: 1.75rem; min-height: 13rem; border-radius: 24px; background: var(--night-2); text-decoration: none; overflow: hidden; transition: transform 500ms var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 1.6rem; }
.tile p { color: var(--muted-dark); }
.tile .go { margin-top: auto; color: var(--brand); font-weight: 600; }
.cta-band { text-align: center; display: grid; gap: 1.2rem; justify-items: center; padding-block: clamp(5rem, 11vw, 8rem); }
.cta-band h2 { font-size: var(--h2); }
.cta-band p { color: var(--muted-dark); max-width: 36rem; font-size: 1.1rem; }

/* Role lists */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 16px; margin-top: 2.5rem; text-align: left; width: 100%; }
.roles article { background: var(--night-2); border-radius: 22px; padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; border-top: 3px solid var(--tone, var(--brand)); }
.roles h3 { font-size: 1.3rem; }
.roles ul { margin: 0; padding-left: 1.1rem; color: var(--muted-dark); display: grid; gap: 0.25rem; }
.light .roles article { background: var(--day-card); box-shadow: 0 2px 14px rgba(18, 20, 24, 0.06); }
.light .roles ul { color: var(--muted-light); }

/* Services page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.jump a { text-decoration: none; font-size: 0.9rem; padding: 0.4rem 1rem; border-radius: 999px; background: var(--night-2); color: var(--muted-dark); transition: color 200ms, background-color 200ms; }
.jump a:hover { color: var(--fg); background: #1A1C21; }
.svc { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 3rem; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.svc.flip .svc-art { order: 2; }
.svc-art { position: relative; aspect-ratio: 6 / 5; display: grid; place-items: center; border-radius: 32px; background: radial-gradient(closest-side, rgba(154, 205, 50, 0.16), transparent), var(--night-2); }
.svc-art svg { width: 78%; height: auto; overflow: visible; }
.svc-art.photo { background: #000; }
.svc-art.photo img, .svc-art.photo video { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.svc-art.photo img.wide, .svc-art.photo video.wide { width: 118%; max-width: none; height: auto; -webkit-mask-image: radial-gradient(farthest-side, #000 75%, transparent); mask-image: radial-gradient(farthest-side, #000 75%, transparent); }
.svc-copy { display: grid; gap: 1rem; align-content: start; }
.svc-copy h2 { font-size: var(--h2); }
.svc-copy .lede { color: var(--muted-dark); font-size: 1.15rem; }
.svc-copy .lede b { color: var(--fg); font-weight: 600; }
.ticks { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231B1206' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.best { color: var(--muted-dark); padding-top: 0.6rem; border-top: 1px solid var(--night-line); }
.best span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-right: 0.5rem; }
.band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 32px; background: linear-gradient(135deg, #10170A, var(--night-2) 60%); }
.band .svc-art { background: none; }
#relocate .band { background: none; border: 0; padding-inline: 0; }
@media (max-width: 820px) { .svc-grid, .band { grid-template-columns: minmax(0, 1fr); } .svc.flip .svc-art { order: 0; } .svc-art { aspect-ratio: 4 / 3; } }
.compare-wrap { overflow-x: auto; margin-top: 2.5rem; border-radius: 24px; background: var(--night-2); }
.compare { width: 100%; min-width: 46rem; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.compare th, .compare td { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 1.15rem; }
.compare tbody th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 500; width: 9rem; }
.compare td { color: var(--muted-dark); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* How we work: steps light up as you scroll */
#steps { height: 520svh; }
.steps-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.step-panels { display: grid; }
.step { grid-area: 1 / 1; display: grid; gap: 0.9rem; align-content: center; opacity: 0; transform: translateY(30px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.step.on { opacity: 1; transform: none; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 10rem); line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--brand-hi), var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h2 { font-size: var(--h2); }
.step p { color: var(--muted-dark); font-size: 1.15rem; max-width: 34rem; }
.step .tag { justify-self: start; font-family: var(--font-mono); font-size: 0.78rem; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--night-line); color: var(--brand); }
/* One object per step, beside the words. */
.steps-grid:has(.step .step-obj) { grid-template-columns: minmax(0, 2.7fr) minmax(0, 0.6fr); }
.step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.step > * { grid-column: 1; }
.step .step-obj { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 100%; max-height: 66svh; object-fit: contain; -webkit-mask-image: radial-gradient(farthest-side, #000 58%, transparent 96%); mask-image: radial-gradient(farthest-side, #000 58%, transparent 96%); transform: scale(0.88) translateY(24px); transition: transform 900ms var(--ease); }
.step.on .step-obj { transform: none; }
.step:has(.step-obj) h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
@media (max-width: 820px) {
  .steps-grid:has(.step .step-obj) { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .step .step-obj { grid-column: 1; grid-row: auto; order: -1; width: auto; max-width: 70%; max-height: 26svh; justify-self: center; }
  .step .num { font-size: 3.6rem; }
}
.rail { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.2rem; display: grid; gap: 2.2rem; }
.rail::before, .rail::after { content: ""; position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--night-line); }
.rail::after { background: var(--brand); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.rail li { position: relative; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #4A4E57; transition: color 400ms; }
.rail li i { position: absolute; left: -2.2rem; top: 0.35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--night); border: 2px solid #4A4E57; transition: background-color 400ms, border-color 400ms; }
.rail li.on, .rail li.done { color: var(--fg); }
.rail li.on i, .rail li.done i { background: var(--brand); border-color: var(--brand); }
@media (max-width: 820px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2rem; }
  .rail { order: -1; display: flex; gap: 0; justify-content: space-between; padding: 0; }
  .rail::before, .rail::after { left: 0.6rem; right: 0.6rem; top: 0.55rem; bottom: auto; width: auto; height: 2px; }
  .rail::after { transform-origin: left; transform: scaleX(var(--fill, 0)); }
  .rail li { font-size: 0; display: grid; }
  .rail li i { position: relative; left: 0; top: 0; }
}

/* Sample shortlist entry */
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 820px) { .sample-grid { grid-template-columns: minmax(0, 1fr); } }
.sheet { margin: 0; border-radius: 28px; background: var(--day-card); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 30px 80px rgba(154, 205, 50, 0.12); display: grid; gap: 1rem; }
.sheet figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-light); }
.sheet figcaption span { background: var(--ph-bg); color: var(--ph-fg); border-radius: 3px; padding: 0 0.4em; margin-right: 0.4rem; }
.sheet .who { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sheet .who b { font-family: var(--font-display); font-size: 1.5rem; }
.sheet .fit { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; background: #E6F4EA; color: #1F6B35; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sheet li { display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem 0.75rem 2.6rem; border-radius: 14px; background: var(--day); position: relative; }
.sheet li::before { position: absolute; left: 0.9rem; top: 0.8rem; font-weight: 700; }
.sheet li.ok::before { content: "✓"; color: #1F6B35; }
.sheet li.miss { background: #FFF6E0; }
.sheet li.miss::before { content: "?"; color: var(--brand-deep); }
.sheet li b { font-weight: 600; font-size: 0.98rem; }
.sheet li small { color: var(--muted-light); font-family: var(--font-mono); font-size: 0.72rem; }
.sheet .foot { font-size: 0.85rem; color: var(--muted-light); border-top: 1px solid var(--day-line); padding-top: 0.8rem; }

/* Safeguards on dark */
.guards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 16px; margin-top: 2.5rem; }
.guards div { background: var(--night-2); border-radius: 22px; padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.guards svg { width: 32px; height: 32px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guards b { font-size: 1.05rem; }
.guards span { color: var(--muted-dark); font-size: 0.95rem; }
#safeguards .dims li { background: var(--night-2); border-color: var(--night-line); }
#safeguards .never { color: var(--muted-dark); margin-top: 1rem; }

/* Numbers */
#numbers { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
#numbers h2 { font-size: var(--h2); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.nums div { display: grid; gap: 0.4rem; justify-items: center; }
.nums small { font-size: 0.8rem; color: var(--muted-dark); }
.nums b { font-family: var(--font-display); font-weight: 800; white-space: nowrap; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.nums span { color: var(--muted-dark); max-width: 14rem; font-size: 0.95rem; }
@media (max-width: 760px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Light chapters */
.light { background: var(--day); color: var(--ink); }
.light .label { color: var(--brand-deep); }
.light .grad { background-image: linear-gradient(100deg, #7AAE1E, var(--brand-deep) 60%, #35590A); }
.light .btn.primary { color: #10180A; }
section.plain { padding-block: clamp(5rem, 11vw, 8rem); }
.center { text-align: center; display: grid; gap: 1.1rem; justify-items: center; }
.center h2 { font-size: var(--h2); }
.center > p { color: var(--muted-light); max-width: 40rem; font-size: 1.15rem; }

.steps { list-style: none; margin: 3rem 0 0; padding: 0; width: 100%; text-align: left; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 14rem); gap: 1.25rem; padding-block: 1.4rem; border-top: 1px solid var(--night-line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); color: var(--muted-dark); padding-top: 0.3rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted-dark); }
.steps .who { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-dark); padding-top: 0.4rem; }
.steps .key::before, .steps .key .who { color: var(--brand); }
@media (max-width: 720px) { .steps li { grid-template-columns: 2.4rem minmax(0, 1fr); } .steps .who { grid-column: 2; padding-top: 0; } }

.icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; margin-top: 3rem; text-align: left; width: 100%; }
.icons div { display: grid; gap: 0.6rem; align-content: start; }
.icons svg { width: 34px; height: 34px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icons b { font-size: 1.05rem; }
.icons span { color: var(--muted-light); font-size: 0.95rem; }
@media (max-width: 760px) { .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dims { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1rem 0 0; padding: 0; justify-content: center; }
.dims li { font-family: var(--font-mono); font-size: 0.78rem; border: 1px solid var(--day-line); border-radius: 999px; padding: 0.25rem 0.8rem; background: var(--day-card); }
.never { color: var(--muted-light); font-size: 0.95rem; max-width: 40rem; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; }

.why article { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 13rem; }
.why svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why b { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.why span { color: var(--muted-dark); font-size: 0.95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact h2 { font-size: var(--h2); }
.contact .lead { display: grid; gap: 1rem; }
.contact .lead p { color: var(--muted-dark); font-size: 1.1rem; }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.8rem 1.5rem; }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); padding-top: 0.2rem; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
footer.site { border-top: 1px solid var(--night-line); color: var(--muted-dark); font-size: 0.85rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; }

/* Reduced motion: no pinning, no autoplay; every object at rest. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  #film, #statement, #markets, .industry, #rise { height: auto; }
  #rise .stage { height: 90svh; }
  #rise .lines { position: relative; inset: auto; align-self: end; gap: 0.5rem; padding-bottom: 2rem; }
  #rise .lines p { grid-area: auto; opacity: 1; }
  .stage { position: relative; }
  #film .stage { height: 70svh; }
  .film-frame { transform: none; border-radius: 0; }
  .film-over { opacity: 1; }
  #markets .stage { height: auto; overflow: visible; padding-top: 9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; padding-inline: var(--gutter); }
  .market, .market:not(:first-of-type) { position: relative; opacity: 1; display: grid; gap: 1rem; }
  .market .obj { position: relative; right: auto; transform: none; height: 50svh; order: 2; }
  .market figcaption { position: relative; top: auto; left: auto; }
  .track, .slide img, .dot { transition: none; }
  #steps { height: auto; }
  .steps-grid { padding-block: 2rem; }
  .step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 2.5rem; }
  .step .num { font-size: 4rem; }
  .rail { display: none; }
  .ill * { animation: none !important; }
}

/* Markets: across the Emirates */
.emirates { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3rem; }
.emirate { margin: 0; display: grid; gap: 0.8rem; text-align: center; justify-items: center; }
.emirate .clip { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.emirate video { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.emirate .label { color: var(--brand); }
.emirate h3 { font-size: 1.7rem; }
.emirate p { color: var(--muted-dark); max-width: 22rem; }

/* Privacy and other long-form pages */
.prose { max-width: 46rem; margin-inline: auto; padding-bottom: clamp(4rem, 9vw, 7rem); }
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 0.8rem; }
.prose p, .prose li { color: var(--muted-dark); font-size: 1.05rem; line-height: 1.65; }
.prose p + p { margin-top: 0.8rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* Home: AI-powered hiring and the banking lead sector */
#ai .why article { min-height: 0; }
#banking .dims { justify-content: flex-start; }
#banking .dims li { background: var(--night-2); border-color: var(--night-line); }
/* Home: who does what, under the AI cards */
#ai .roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin-top: 16px; }
#ai .roles p { margin: 0; padding: 1.2rem 1.6rem; border-top: 1px solid var(--night-line); color: var(--muted-dark); font-size: 1.05rem; }
#ai .roles b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--brand); margin-bottom: 0.3rem; }
/* Home: the group behind the UAE firm */
#group { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; border-top: 1px solid var(--night-line); }
#group h2 { font-size: var(--h2); }
#group .lede { max-width: 46rem; margin: 1.2rem auto 0; }
#group .guard { margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 40rem; color: var(--muted-dark); font-size: 0.9rem; }
