/* ==========================================================================
   Exquisitus — Aluminium, Shopfitting & Kitchens
   Design system + components.  Fonts: Inter Tight / Instrument Serif / JetBrains Mono
   ========================================================================== */

:root {
  /* brand — sampled from the Exquisitus logo and the brief */
  --navy-950: #06111d;
  --navy-900: #0b1e33;
  --navy-800: #12304d;
  --navy-700: #1f4f76;          /* Exquisitus logo navy */
  --navy-500: #4a77a0;
  --navy-200: #c9d7e4;
  --navy-100: #e6edf4;
  --navy-50:  #f2f6fa;
  --orange:   #f07818;          /* brand orange */
  --orange-600: #d4620b;
  --orange-300: #f8b27a;
  --orange-100: #fde6d3;
  --orange-50:  #fef4ec;
  --amber:    #f8c010;          /* Exquisitus "EX" amber */
  --cyan:     #12b8d8;          /* accent cyan */
  --cyan-50:  #eaf7fa;

  --ink:   #0d1722;
  --body:  #3d4756;
  --muted: #6b7584;
  --line:  #e3e6eb;
  --gray-50:  #f5f6f8;
  --gray-100: #eef0f3;
  --gray-200: #e2e5ea;
  --bg: #ffffff;

  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --nr: 22px;                   /* notch radius */
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --frame: 12px;                /* hero frame inset */
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em, .script { font-family: var(--script); font-style: normal; font-weight: 600; letter-spacing: -.005em; font-size: 1.16em; line-height: 1; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 99px; transform: translateY(-160%); transition: transform .3s; }
.skip:focus { transform: none; }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--mist { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,.72); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* --------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 500; color: var(--ink); letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--orange::before { background: var(--orange); }
.section--navy .eyebrow { color: #fff; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }

.display {
  font-size: clamp(3.4rem, 9.6vw, 9.4rem); line-height: .9; letter-spacing: -.045em; font-weight: 400;
}
.display em { letter-spacing: -.01em; color: var(--amber); }
.h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
.h2 em { letter-spacing: -.005em; color: var(--orange); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.15; }
.lede { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.38; color: var(--ink); letter-spacing: -.02em; }
.small { font-size: .9rem; line-height: 1.6; color: var(--muted); }
.tone-grad {
  background: linear-gradient(92deg, var(--navy-700) 0%, var(--orange) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* split-line reveal */
.split .ln { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.split .ln > span { display: inline-block; will-change: transform; }
.js .split .ln > span { transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * .09s + var(--d, 0s)); }
.js .split.is-in .ln > span { transform: none; }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }

/* clip reveal for images */
.js [data-clip] { clip-path: inset(18% 8% 0 8% round var(--r-lg)); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js [data-clip] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-clip].is-in img { transform: scale(1); }

/* scroll-fill paragraph */
[data-fill] .fw { color: var(--ink); transition: color .2s linear; }
.js [data-fill] .fw { color: #c3c9d2; }
.js [data-fill] .fw.on { color: var(--ink); }

/* --------------------------------------------------------------- buttons */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; gap: 14px; height: var(--h);
  padding: 0 6px 0 24px; border-radius: 99px; font-weight: 500; font-size: .95rem; white-space: nowrap;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  position: relative; isolation: isolate;
}
.btn .ar {
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; flex: none;
  transition: transform .5s var(--ease), background .4s var(--ease);
}
.btn .ar svg { width: 14px; height: 14px; }
.btn:hover .ar { transform: rotate(-45deg); background: var(--orange); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark .ar { background: #fff; color: var(--ink); }
.btn--dark:hover { background: var(--navy-800); }
.btn--dark:hover .ar { color: #fff; }
.btn--orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--orange .ar { background: #fff; color: var(--orange); }
.btn--orange:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn--orange:hover .ar { background: var(--ink); color: #fff; }
.btn--glass {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.btn--glass .ar { background: #fff; color: var(--ink); }
.btn--glass:hover { background: rgba(255,255,255,.26); }
.btn--sm { --h: 40px; font-size: .85rem; padding-left: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: .92rem; color: var(--ink);
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: gap .4s var(--ease), background-size .5s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover { gap: 18px; }
.link-arrow:hover svg { transform: translateX(2px); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 12px;
  background: #fff; font-size: .88rem; color: var(--ink); box-shadow: 0 1px 0 rgba(13,23,34,.04);
}
.pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--orange)); }

/* --------------------------------------------------------------- notch (concave tab) */
.notch { position: absolute; z-index: 4; background: var(--notch, #fff); }
.notch--top { top: -1px; border-radius: 0 0 var(--nr) var(--nr); }
.notch--bottom { bottom: -1px; border-radius: var(--nr) var(--nr) 0 0; }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--nr); height: var(--nr); pointer-events: none; }
.notch--top::before    { top: 0; right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--nr) - .6px), var(--notch, #fff) var(--nr)); }
.notch--top::after     { top: 0; left: 100%;  background: radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - .6px), var(--notch, #fff) var(--nr)); }
.notch--bottom::before { bottom: 0; right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--nr) - .6px), var(--notch, #fff) var(--nr)); }
.notch--bottom::after  { bottom: 0; left: 100%;  background: radial-gradient(circle at 100% 0, transparent calc(var(--nr) - .6px), var(--notch, #fff) var(--nr)); }
.notch--center { left: 50%; transform: translateX(-50%); }

/* image with a notched edge — used on project + case cards */
.nimg { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--gray-100); --nr: 16px; }
.nimg > img { width: 100%; height: 100%; object-fit: cover; }
.nimg .notch--top { height: 16px; width: 38%; left: var(--nx, 31%); }
.nimg .notch--bottom { height: 16px; width: 30%; left: var(--nx, 35%); }

/* --------------------------------------------------------------- preloader + page transition */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease-out) .1s;
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__in { display: grid; justify-items: center; gap: 26px; width: min(340px, 72vw); }
.loader__logo { width: 100%; opacity: 0; transform: translateY(14px); animation: ldIn .9s var(--ease-out) .1s forwards; }
.loader__bar { width: 100%; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--orange)); transform-origin: left; transform: scaleX(0); }
.loader__row { display: flex; justify-content: space-between; width: 100%; font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
@keyframes ldIn { to { opacity: 1; transform: none; } }
.no-loader .loader { display: none; }

.pt { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: grid; visibility: hidden; overflow: hidden; }
.pt.out { visibility: visible; }
.pt span { grid-area: 1/1; background: var(--navy-900); transform: translateY(100%); }
.pt span:nth-child(2) { background: var(--orange); }
.pt.out span { transition: transform .8s var(--ease-out); transform: translateY(0); }
.pt.out span:nth-child(2) { transition-delay: 0s; }
.pt.out span:nth-child(1) { transition-delay: .12s; }

/* --------------------------------------------------------------- top bar (sticky, appears after hero) */
.bar {
  position: fixed; top: 14px; left: 50%; z-index: 120; width: min(100% - 28px, 1080px);
  transform: translate(-50%, -140%); transition: transform .7s var(--ease-out);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px 8px 8px 22px; border-radius: 99px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 50px -20px rgba(11,30,51,.35);
}
.bar.show { transform: translate(-50%, 0); }
.bar__logo img { height: 26px; width: auto; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { padding: 9px 14px; border-radius: 99px; font-size: .9rem; color: var(--ink); transition: background .3s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: var(--gray-100); }

/* --------------------------------------------------------------- hero (notched frame) */
.hero { padding: var(--frame); position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  height: clamp(620px, calc(100svh - var(--frame) * 2), 980px); color: #fff; background: var(--navy-900);
}
.hero--page .hero__frame { height: clamp(520px, 74svh, 760px); }
.hero__slides, .hero__slides figure { position: absolute; inset: 0; margin: 0; }
.hero__slides figure { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slides figure.on { opacity: 1; z-index: 1; }
.hero__slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slides figure.on img { animation: kb 9s linear forwards; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,17,29,.55) 0%, rgba(6,17,29,0) 28%),
    linear-gradient(0deg, rgba(6,17,29,.82) 0%, rgba(6,17,29,.25) 42%, rgba(6,17,29,0) 62%),
    linear-gradient(90deg, rgba(6,17,29,.45) 0%, rgba(6,17,29,0) 55%);
}
.hero__frame > *:not(.hero__slides) { z-index: 3; }

.hero__brand { position: absolute; top: 26px; left: clamp(20px, 3vw, 38px); }
.hero__brand img { height: clamp(30px, 3vw, 40px); width: auto; }
.hero__brand small { display: block; margin-top: 6px; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.tabnav { --nr: 24px; height: 62px; padding: 0 30px; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.tabnav a { font-size: .9rem; color: var(--ink); position: relative; padding: 6px 0; }
.tabnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.tabnav a:hover::after, .tabnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.tabnav .menu-btn { display: none; }

.hero__cta { position: absolute; top: 18px; right: clamp(16px, 2.4vw, 30px); }
.hero__kicker { position: absolute; top: clamp(120px, 17vh, 170px); left: clamp(20px, 3vw, 38px); max-width: 34ch; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.86); }
.hero__kicker b { color: var(--amber); font-weight: 500; }

.hero__title { position: absolute; left: clamp(20px, 3vw, 38px); bottom: clamp(70px, 9vh, 96px); display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero__title h1 { color: #fff; }
.hero__title h1 .ln:nth-child(2) { padding-left: .02em; }
.hero__title .btn { margin-bottom: 1.1rem; }

.hero__caption {
  position: absolute; right: clamp(20px, 3vw, 38px); bottom: clamp(70px, 9vh, 96px); width: min(330px, 34vw);
  padding: 20px 22px; border-radius: 20px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.hero__caption .mono { color: var(--amber); }
.hero__caption h3 { color: #fff; font-size: 1.5rem; line-height: 1.05; margin: 8px 0 8px; }
.hero__caption p { font-size: .86rem; color: rgba(255,255,255,.8); line-height: 1.5; }
.hero__caption .cap { transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.hero__caption .cap.swap { opacity: 0; transform: translateY(10px); }
.hero__progress { margin-top: 16px; height: 2px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.hero__progress i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.hero__progress i.run { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }

.hero__dots { --nr: 18px; height: 34px; padding: 0 22px; display: flex; align-items: center; gap: 8px; }
.hero__dots button { width: 7px; height: 7px; border-radius: 99px; background: #c4c9d1; transition: width .5s var(--ease), background .4s; }
.hero__dots button.on { width: 26px; background: var(--ink); }

.hero__chip {
  position: absolute; left: clamp(20px, 3vw, 38px); bottom: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; color: rgba(255,255,255,.85);
}
.hero__chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(240,120,24,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(240,120,24,0); } 100% { box-shadow: 0 0 0 0 rgba(240,120,24,0); } }
.hero__scroll { position: absolute; right: clamp(20px, 3vw, 38px); bottom: 26px; font-size: .78rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 26px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* page hero variant: content + breadcrumbs */
.hero--page .hero__title { bottom: clamp(64px, 9vh, 90px); }
.crumbs { display: flex; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }
.hero--page .display { font-size: clamp(3rem, 8vw, 7.6rem); }
.hero--page .hero__lede { max-width: 42ch; color: rgba(255,255,255,.82); font-size: 1rem; margin-top: 22px; }
.hero__float { position: absolute; right: clamp(10px, 6vw, 110px); top: 50%; width: clamp(150px, 20vw, 280px); transform: translateY(-50%); filter: drop-shadow(0 40px 40px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; pointer-events: none; }

/* --------------------------------------------------------------- mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--navy-900); color: #fff; padding: 22px var(--gutter) 30px;
  display: flex; flex-direction: column; clip-path: circle(0 at calc(100% - 46px) 46px); visibility: hidden;
  transition: clip-path .9s var(--ease-out), visibility 0s .9s;
}
.menu.open { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; transition: clip-path .9s var(--ease-out), visibility 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 30px; width: auto; }
.menu__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.menu nav { margin-top: auto; display: grid; gap: 4px; }
.menu nav a { font-size: clamp(2.6rem, 12vw, 4.4rem); letter-spacing: -.04em; line-height: 1.08; display: flex; align-items: baseline; gap: 14px; color: #fff; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease-out); }
.menu nav a small { font-family: var(--mono); font-size: .75rem; color: var(--orange); letter-spacing: 0; }
.menu.open nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: .9rem; color: rgba(255,255,255,.65); }

/* --------------------------------------------------------------- about intro (two column statement) */
.statement { display: grid; grid-template-columns: minmax(180px, 1fr) 2.2fr; gap: 32px 64px; align-items: start; }
.statement .lede { max-width: 30ch; font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.3; }
.statement__meta { display: grid; gap: 22px; }
.statement__meta .small { max-width: 30ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 90px); }
.stat { padding: 26px 22px 0 0; display: grid; gap: 8px; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; font-weight: 400; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .4em; color: var(--orange); vertical-align: top; margin-left: 4px; position: relative; top: .3em; }
.stat > span { font-size: .88rem; color: var(--muted); max-width: 22ch; }

/* glass + 3D composition beside statement */
.glass-stack { position: relative; aspect-ratio: 1; width: min(100%, 300px); }
.glass-stack .obj { position: absolute; inset: 6% 4% auto auto; width: 74%; filter: drop-shadow(0 30px 26px rgba(11,30,51,.22)); animation: float 7s ease-in-out infinite; }
.glass-pane {
  position: absolute; border-radius: 20px; border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(11,30,51,.35), inset 0 1px 0 rgba(255,255,255,.8);
}
.glass-stack .glass-pane { left: 0; bottom: 4%; width: 64%; height: 58%; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.glass-stack .glass-pane b { font-size: 1.05rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.glass-stack .glass-pane span { font-size: .78rem; color: var(--body); }
@keyframes float { 50% { transform: translateY(-16px); } }
.hero__float { animation-name: floatC; }
@keyframes floatC { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 16px)); } }

/* --------------------------------------------------------------- section head */
.shead { display: grid; grid-template-columns: 1.1fr minmax(0, 420px) auto; gap: 28px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.shead--2 { grid-template-columns: 1fr minmax(0, 440px); }
.shead p { font-size: .92rem; color: var(--muted); line-height: 1.65; max-width: 46ch; }
.shead .eyebrow { margin-bottom: 22px; }
.section--navy .shead p { color: rgba(255,255,255,.62); }

/* --------------------------------------------------------------- service “society” cards (Teamway-style) */
.tw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tw-card {
  --tint: var(--gray-100); --c: var(--ink);
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--tint);
  min-height: 380px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start;
  isolation: isolate; transition: transform .7s var(--ease);
}
.tw-card:hover { transform: translateY(-4px); }
.tw-card .pill { margin-bottom: auto; }
.tw-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 48px; letter-spacing: -.03em; }
.tw-card p { margin-top: 14px; max-width: 34ch; font-size: .95rem; color: var(--body); }
.tw-card .link-arrow { margin-top: 28px; }
.tw-card .shape { position: absolute; z-index: -1; right: -2%; top: 50%; height: 108%; width: auto; transform: translateY(-50%); transition: transform 1.1s var(--ease); }
.tw-card:hover .shape { transform: translateY(-50%) translateX(-10px) rotate(-2deg); }
.tw-card--orange { --tint: #fbe9da; --c: var(--orange); }
.tw-card--gray   { --tint: #eeefef; --c: var(--ink); }
.tw-card--navy   { --tint: #e3eaf2; --c: var(--navy-700); }
.tw-card--cyan   { --tint: #e2f1f3; --c: var(--cyan); }
.tw-card--white  { --tint: #fff; }

/* --------------------------------------------------------------- recent projects cards */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.proj { display: grid; gap: 14px; }
.proj .nimg { aspect-ratio: 4 / 4.6; }
.proj .nimg img { transition: transform 1.2s var(--ease); }
.proj:hover .nimg img { transform: scale(1.06); }
.proj__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.proj__meta .eyebrow { font-size: .75rem; color: var(--muted); }
.proj__meta .eyebrow::before { background: var(--orange); }
.proj h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.proj .tag { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.proj .view {
  position: absolute; z-index: 5; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease);
}
.proj .view svg { width: 18px; height: 18px; }
.proj:hover .view { transform: scale(1) rotate(0); }

/* --------------------------------------------------------------- what we engineer — 3D objects */
.svc3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc3__item {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: var(--gray-50);
  padding: 30px 28px 32px; min-height: 420px; display: flex; flex-direction: column;
}
.svc3__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(120% 90% at 100% 0%, rgba(240,120,24,.28), transparent 55%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.svc3__item .num { font-family: var(--mono); font-size: .75rem; color: var(--muted); transition: color .4s; }
.svc3__item .icon {
  width: 150px; height: 150px; object-fit: contain; margin: 18px 0 auto -10px;
  filter: drop-shadow(0 22px 18px rgba(6,22,52,.22)) drop-shadow(0 4px 4px rgba(6,22,52,.12));
  animation: float 7s ease-in-out infinite; transition: transform .8s var(--ease), filter .8s var(--ease);
}
.svc3__item:nth-child(2) .icon { animation-delay: -2.3s; }
.svc3__item:nth-child(3) .icon { animation-delay: -4.6s; }
.svc3__item .icon-wrap { transition: transform .8s var(--ease); margin-bottom: auto; }
.svc3__item h3 { margin-top: 36px; transition: color .4s; }
.svc3__item p { margin-top: 10px; font-size: .92rem; color: var(--muted); max-width: 34ch; transition: color .4s; }
.svc3__item ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc3__item li { font-size: .74rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--body); transition: border-color .4s, color .4s; }
.svc3__item .link-arrow { margin-top: 24px; align-self: flex-start; transition: color .4s, gap .4s var(--ease); }
.svc3__item:hover::before, .svc3__item.is-hot::before { opacity: 1; }
.svc3__item:hover .num, .svc3__item.is-hot .num { color: var(--orange); }
.svc3__item:hover h3, .svc3__item.is-hot h3, .svc3__item:hover .link-arrow, .svc3__item.is-hot .link-arrow { color: #fff; }
.svc3__item:hover p, .svc3__item.is-hot p { color: rgba(255,255,255,.75); }
.svc3__item:hover li, .svc3__item.is-hot li { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.svc3__item:hover .icon-wrap, .svc3__item.is-hot .icon-wrap { transform: rotate(-12deg) scale(1.08); }
.svc3__item:hover .icon, .svc3__item.is-hot .icon { filter: drop-shadow(0 30px 26px rgba(0,0,0,.45)) drop-shadow(0 6px 6px rgba(0,0,0,.25)); }

/* --------------------------------------------------------------- services index (rows with reveal image) */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 70px 1.3fr 1.2fr 110px; gap: 22px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .4s, padding .6s var(--ease);
}
.row .n { font-family: var(--mono); font-size: .75rem; }
.row h3 { font-size: clamp(1.25rem, 2.3vw, 2rem); color: #a8b0bb; transition: color .4s, transform .6s var(--ease); }
.row p { font-size: .86rem; line-height: 1.5; max-width: 40ch; }
.row .go { justify-self: end; font-size: .8rem; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); opacity: .5; transition: opacity .4s; }
.row .go svg { width: 16px; transition: transform .4s var(--ease); }
.row:hover { color: var(--body); }
.row:hover h3 { color: var(--ink); transform: translateX(10px); }
.row:hover .go { opacity: 1; }
.row:hover .go svg { transform: rotate(-45deg); }
.row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.row:hover::after { transform: scaleX(1); }
.reveal-img {
  position: fixed; left: 0; top: 0; z-index: 60; width: 260px; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, scale .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(11,30,51,.45);
}
.reveal-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.reveal-img img.on { opacity: 1; }
.reveal-img.show { opacity: 1; }

/* --------------------------------------------------------------- feature band (full width notched image) */
.band { padding-inline: var(--frame); }
.band__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(560px, 86vh, 820px); color: #fff; isolation: isolate; display: flex; }
.band__frame > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.band__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,17,29,.85), rgba(6,17,29,.15) 55%), linear-gradient(90deg, rgba(6,17,29,.5), transparent 60%); }
.band__frame .notch--top { left: 50%; transform: translateX(-50%); width: min(44%, 520px); height: 30px; --nr: 22px; }
.band__frame .notch--bottom { left: 50%; transform: translateX(-50%); width: min(30%, 360px); height: 30px; --nr: 22px; }
.band__inner { margin-top: auto; width: 100%; padding: clamp(24px, 4vw, 54px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.band__inner h2 { color: #fff; }
.band__list { display: grid; gap: 10px; margin-top: 26px; }
.band__list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.88); }
.band__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.glass-card {
  border-radius: 22px; padding: 24px; width: min(380px, 100%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 60px -30px rgba(0,0,0,.5);
}
.glass-card .mono { color: var(--amber); }
.glass-card h3 { color: #fff; margin: 10px 0 10px; font-size: 1.5rem; }
.glass-card p { color: rgba(255,255,255,.78); font-size: .9rem; }
.glass-card .btn { margin-top: 20px; }

/* --------------------------------------------------------------- systems marquee (line drawings) */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 8px)); } }
.sys {
  width: 260px; flex: none; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 20px;
  display: grid; gap: 14px; transition: border-color .4s, transform .6s var(--ease), box-shadow .6s;
}
.sys:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(11,30,51,.35); }
.sys figure { margin: 0; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background:
  linear-gradient(var(--gray-100) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--gray-100) 1px, transparent 1px) 0 0 / 22px 22px, var(--gray-50); }
.sys figure img { width: 78%; height: 78%; object-fit: contain; }
.sys div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sys b { font-weight: 500; color: var(--ink); font-size: .98rem; }
.sys span { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

/* --------------------------------------------------------------- case studies */
.cases { border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.case p { margin-top: 14px; max-width: 46ch; font-size: .95rem; }
.case .btn { margin-top: 26px; }
.case .nimg { aspect-ratio: 16 / 10; }
.case .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.case .specs span { font-size: .75rem; padding: 6px 12px; border-radius: 99px; background: var(--gray-100); color: var(--ink); }

/* --------------------------------------------------------------- values orb (glassmorphism) */
.orbsec { overflow: hidden; }
.orbsec .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.orb-stage { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; display: grid; place-items: center; }
.orb-stage .blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .85; }
.orb-stage .blob.b1 { width: 58%; height: 58%; left: 4%; top: 10%; background: var(--orange); animation: drift 14s ease-in-out infinite; }
.orb-stage .blob.b2 { width: 50%; height: 50%; right: 2%; bottom: 8%; background: var(--navy-700); animation: drift 16s ease-in-out -5s infinite reverse; }
.orb-stage .blob.b3 { width: 34%; height: 34%; right: 18%; top: 4%; background: var(--cyan); opacity: .6; animation: drift 12s ease-in-out -3s infinite; }
@keyframes drift { 33% { transform: translate(8%, -6%) scale(1.05); } 66% { transform: translate(-6%, 6%) scale(.95); } }
.orb {
  position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), rgba(255,255,255,.14) 70%);
  border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 60px 80px -30px rgba(10,27,49,.35), inset -20px -30px 60px rgba(10,27,49,.10), inset 10px 14px 30px rgba(255,255,255,.5);
  display: grid; place-items: center; text-align: center; padding: 14%;
}
.orb .q { font-family: var(--script); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.02; color: var(--ink); }
.orb .mono { display: block; margin-top: 14px; color: var(--navy-700); }
.orb-mini {
  position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; right: 6%; top: 16%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--orange-300) 45%, var(--orange) 100%);
  box-shadow: 0 30px 40px -20px rgba(212,98,11,.6); animation: float 6s ease-in-out infinite;
}
.orb-mini.navy { right: auto; left: 8%; top: auto; bottom: 14%; width: 13%; background: radial-gradient(circle at 35% 30%, #fff, var(--navy-500) 45%, var(--navy-900) 100%); box-shadow: 0 30px 40px -20px rgba(11,30,51,.6); animation-delay: -3s; }
.values { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 34px; }
.value { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.value img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(11,30,51,.2)); transition: transform .7s var(--ease); }
.value:hover img { transform: rotate(-14deg) scale(1.1); }
.value h3 { font-size: 1.2rem; }
.value p { font-size: .9rem; color: var(--muted); margin-top: 6px; max-width: 48ch; }

/* --------------------------------------------------------------- CTA + footer */
.cta { padding-inline: var(--frame); }
.cta__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: #fff; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 70px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 620px; }
.cta__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,17,29,.92) 0%, rgba(11,30,51,.75) 50%, rgba(11,30,51,.35) 100%); }
.cta h2 { color: #fff; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .95; letter-spacing: -.045em; }
.cta p.small { color: rgba(255,255,255,.7); max-width: 44ch; margin-top: 22px; font-size: .98rem; }
.cta .glass-card { width: 100%; justify-self: end; max-width: 430px; }
.qform { display: grid; gap: 12px; margin-top: 14px; }
.qform label { display: grid; gap: 6px; font-size: .75rem; color: rgba(255,255,255,.7); }
.qform input, .qform select, .qform textarea {
  font: inherit; font-size: .95rem; color: #fff; width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .3s, background .3s;
}
.qform select option { color: var(--ink); }
.qform input::placeholder, .qform textarea::placeholder { color: rgba(255,255,255,.45); }
.qform input:focus, .qform select:focus, .qform textarea:focus { border-color: var(--orange); background: rgba(255,255,255,.12); }
.qform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qform .btn { justify-self: start; margin-top: 6px; }
.qform .note { font-size: .74rem; color: rgba(255,255,255,.55); }

.footer { padding: clamp(64px, 8vw, 110px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand img { width: min(260px, 70%); }
.footer__brand p { margin-top: 22px; max-width: 34ch; font-size: .92rem; color: var(--muted); }
.footer__brand .parent { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: .78rem; color: var(--muted); }
.footer__brand .parent img { width: 82px; }
.footer h4 { font-size: .8rem; font-family: var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer li a, .footer li { font-size: .95rem; color: var(--ink); }
.footer li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.footer li a:hover { background-size: 100% 1px; }
.footer__big { margin-top: clamp(60px, 8vw, 110px); font-size: clamp(2.4rem, 9.6vw, 10.6rem); line-height: .86; letter-spacing: -.055em; color: var(--ink); white-space: nowrap; overflow: hidden; max-width: 100%; padding-bottom: .06em; }
.footer__big em { color: var(--orange); }
.footer__bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.footer__bottom a:hover { color: var(--ink); }
.to-top { display: inline-flex; gap: 8px; align-items: center; }

/* --------------------------------------------------------------- inner page pieces */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split2--top { align-items: start; }
.tall-img { aspect-ratio: 4/5; }
.prose p + p { margin-top: 16px; }
.prose p { max-width: 58ch; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm .glass-card { width: 100%; max-width: none; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why__item { border-radius: var(--r-lg); padding: 26px; background: #fff; border: 1px solid var(--line); display: grid; gap: 40px; align-content: space-between; min-height: 230px; transition: border-color .4s, transform .6s var(--ease); }
.why__item:hover { border-color: var(--ink); transform: translateY(-4px); }
.why__item svg { width: 44px; height: 44px; }
.why__item h3 { font-size: 1.15rem; }
.why__item p { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* service detail blocks */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.svc-block:nth-of-type(even) .svc-block__media { order: 2; }
.svc-block__media { position: relative; }
.svc-block__media .nimg { aspect-ratio: 5/4; }
.svc-block__media .obj { position: absolute; width: 34%; right: -4%; bottom: -10%; z-index: 6; filter: drop-shadow(0 26px 22px rgba(11,30,51,.3)); animation: float 7s ease-in-out infinite; }
.svc-block:nth-of-type(even) .svc-block__media .obj { right: auto; left: -4%; }
.svc-block .num { font-family: var(--mono); font-size: .75rem; color: var(--orange); }
.svc-block h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-top: 14px; letter-spacing: -.035em; }
.svc-block p { margin-top: 16px; max-width: 48ch; }
.ticks { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ticks li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink); align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); transform: rotate(-45deg) translate(2px, -2px); }

.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sys-grid .sys { width: auto; }

/* --------------------------------------------------------------- charts */
.chart-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); position: relative; }
.chart-card header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.chart-card h3 { font-size: 1.25rem; }
.chart-card header p { font-size: .82rem; color: var(--muted); margin-top: 6px; max-width: 52ch; }
.chart-toggle { font-size: .75rem; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; transition: border-color .3s; }
.chart-toggle:hover { border-color: var(--ink); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 12px; }
.chart .lbl { fill: var(--ink); font-size: 13px; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--gray-200); stroke-width: 1; }
.chart .mk { transition: opacity .3s; }
.chart .hit { fill: transparent; cursor: default; }
.chart.hovering .mk:not(.hot) { opacity: .35; }
.chart-note { margin-top: 14px; font-size: .74rem; color: var(--muted); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--body); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.chart-table { width: 100%; border-collapse: collapse; font-size: .85rem; display: none; }
.chart-table th, .chart-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.chart-table th { font-weight: 500; color: var(--muted); font-size: .75rem; }
.chart-card.table-mode .chart { display: none; }
.chart-card.table-mode .chart-table { display: table; }
.tip {
  position: fixed; z-index: 80; pointer-events: none; padding: 10px 12px; border-radius: 12px; font-size: .8rem; color: var(--ink);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(11,30,51,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .2s;
  white-space: nowrap;
}
.tip.on { opacity: 1; }
.tip b { display: block; font-weight: 500; }
.tip span { color: var(--muted); }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --------------------------------------------------------------- map */
.map-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 560px; background: #e9ecef; isolation: isolate; }
.map { position: absolute; inset: 0; z-index: 0; }
.map-wrap .notch--top { left: 50%; transform: translateX(-50%); width: min(36%, 380px); height: 26px; --nr: 20px; z-index: 500; }
.map-card { position: absolute; z-index: 500; left: clamp(14px, 3vw, 30px); bottom: clamp(14px, 3vw, 30px); width: min(380px, calc(100% - 28px));
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 30px 60px -30px rgba(11,30,51,.45); }
.map-card h3 { color: var(--ink); }
.map-card p { color: var(--body); }
.map-card .mono { color: var(--orange); }
.map-card dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .86rem; }
.map-card dt { color: var(--muted); }
.map-card dd { margin: 0; color: var(--ink); }
.map-globe { position: absolute; z-index: 500; right: clamp(10px, 3vw, 40px); top: 40px; width: clamp(90px, 12vw, 160px); filter: drop-shadow(0 30px 30px rgba(11,30,51,.35)); animation: float 7s ease-in-out infinite; pointer-events: none; }
.leaflet-container { font-family: var(--font) !important; background: #eef0f2 !important; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
.pin { position: relative; width: 22px; height: 22px; }
.pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(11,30,51,.4); }
.pin::before, .pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.5px solid var(--orange); animation: ring 2.6s var(--ease) infinite; }
.pin::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button sup { font-family: var(--mono); font-size: .65rem; margin-left: 4px; opacity: .6; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.gallery .proj { grid-column: span 4; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.gallery .proj.wide { grid-column: span 8; }
.gallery .proj.wide .nimg { aspect-ratio: 16 / 10.6; }
.gallery .proj.hide { display: none; }
.gallery button.nimg { padding: 0; width: 100%; cursor: zoom-in; text-align: left; }

.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(6,17,29,.92); display: grid; grid-template-rows: 1fr auto; padding: clamp(14px, 3vw, 40px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; border-radius: 18px; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; padding-top: 16px; }
.lightbox__bar p { font-size: .9rem; color: rgba(255,255,255,.75); }
.lightbox__bar b { color: #fff; font-weight: 500; display: block; font-size: 1.1rem; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; transition: background .3s; }
.lightbox__nav button:hover { background: rgba(255,255,255,.12); }
.lightbox__nav svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.cinfo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cinfo a, .cinfo div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cinfo span { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; }
.cinfo b { font-weight: 400; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.cinfo a:hover b { color: var(--orange); }
.form-card { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); background: var(--navy-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.form-card::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -24%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(240,120,24,.45), transparent 65%); filter: blur(20px); }
.form-card h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.form-card > p { color: rgba(255,255,255,.65); margin-top: 12px; font-size: .92rem; }
.form-card .qform { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font-size: .84rem; color: rgba(255,255,255,.85); cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chips input:checked + label { background: var(--orange); border-color: var(--orange); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.form-ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .85rem; color: #fff; }
.form-ok.on { display: block; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 24px; max-width: 70ch; font-size: .95rem; }

/* custom cursor label for galleries */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 500; color: var(--ink); background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; transform: scale(0); transition: transform .45s var(--ease); }
.cursor.on { transform: scale(1); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .svc3 { grid-template-columns: 1fr 1fr; }
  .svc3__item:nth-child(3) { grid-column: span 2; }
  .row { grid-template-columns: 50px 1fr 90px; }
  .row p { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .sys-grid { grid-template-columns: repeat(3, 1fr); }
  .shead { grid-template-columns: 1fr 1fr; }
  .shead > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --frame: 8px; }
  .tabnav a { display: none; }
  .tabnav { padding: 0 18px; height: 54px; }
  .tabnav .menu-btn { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink); }
  .menu-btn .burger { width: 18px; height: 10px; position: relative; }
  .menu-btn .burger::before, .menu-btn .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
  .menu-btn .burger::before { top: 0; } .menu-btn .burger::after { bottom: 0; }
  .hero__cta .btn span.t { display: none; }
  .hero__cta .btn { padding: 0 5px; }
  .hero__caption { display: none; }
  .hero__kicker { top: 112px; }
  .hero__title { right: 20px; bottom: 74px; }
  .hero__float { display: none; }
  .bar nav { display: none; }
  .statement { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .tw-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid .proj:nth-child(3) { display: none; }
  .band__inner { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case .nimg { order: -1; }
  .orbsec .grid { grid-template-columns: 1fr; }
  .cta__frame { grid-template-columns: 1fr; }
  .cta .glass-card { justify-self: stretch; max-width: none; }
  .split2, .vm, .contact-grid, .charts2 { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-of-type(even) .svc-block__media { order: 0; }
  .gallery .proj, .gallery .proj.wide { grid-column: span 6; }
  .gallery .proj.wide .nimg { aspect-ratio: 4/4.6; }
  .shead, .shead--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc3 { grid-template-columns: 1fr; }
  .svc3__item:nth-child(3) { grid-column: auto; }
  .svc3__item { min-height: 0; }
  .svc3__item .icon { width: 116px; height: 116px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid .proj:nth-child(3) { display: grid; }
  .tw-card { min-height: 420px; }
  .tw-card .shape { height: 62%; top: auto; bottom: -6%; right: -10%; transform: none; opacity: .9; }
  .tw-card:hover .shape { transform: none; }
  .footer__top { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: 1fr 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .qform .row2 { grid-template-columns: 1fr; }
  .gallery .proj, .gallery .proj.wide { grid-column: span 12; }
  .cinfo a, .cinfo div { grid-template-columns: 1fr; gap: 4px; }
  .hero__chip { display: none; }
  .hero__scroll { display: none; }
  .map-wrap { min-height: 640px; }
  .map-globe { display: none; }
  .row { grid-template-columns: 36px 1fr 28px; gap: 12px; }
  .row .go span { display: none; }
  .band__frame .notch--top { width: 56%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* --------------------------------------------------------------- inner-page extras */
.hero__dots .mono { color: var(--ink); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.tw-card .shape-img { position: absolute; z-index: -1; right: -6%; bottom: -10%; width: min(58%, 300px); filter: drop-shadow(0 30px 26px rgba(11,30,51,.22)); transition: transform 1.1s var(--ease); }
.tw-card:hover .shape-img { transform: rotate(-10deg) scale(1.06); }
.tw-card--navy-deep { --tint: var(--navy-900); }
.tw-card--navy-deep h3 { color: #fff; } .tw-card--navy-deep p { color: rgba(255,255,255,.7); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; counter-reset: st; }
.step { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: st; content: "0" counter(st); font-family: var(--mono); font-size: .72rem; color: var(--orange); }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .86rem; color: var(--muted); }

.culture { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.culture li { padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.culture li b { color: var(--amber); font-family: var(--mono); font-weight: 400; font-size: .72rem; padding-top: 3px; }

.anchors { display: flex; flex-wrap: wrap; gap: 8px; }
.anchors a { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.anchors a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.note-card { border-radius: var(--r-lg); padding: 20px 22px; background: var(--orange-50); border: 1px solid var(--orange-100); font-size: .88rem; color: var(--body); display: flex; gap: 14px; align-items: flex-start; }
.note-card b { color: var(--ink); font-weight: 500; }
.note-card i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 6px; }

.proj .tag.own { color: var(--orange-600); }

@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .culture { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- QA fixes: grids + mobile composition */
.sys { min-width: 0; }
.sys-grid--2 { grid-template-columns: 1fr 1fr; }
.sys-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tw-card .pill { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .chart { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .chart svg { min-width: 600px; }
}
@media (max-width: 600px) {
  .hero__brand small { display: none; }
  .tw-card { min-height: 450px; }
  .tw-card .shape { height: 50%; top: -3%; bottom: auto; right: -10%; transform: none; }
  .tw-card .shape-img { width: 46%; top: 7%; bottom: auto; right: -5%; }
  .why__item { min-height: 0; gap: 26px; }
  .sys-grid--3 { grid-template-columns: 1fr 1fr; }
  .sys { padding: 14px; }
  .sys b { font-size: .88rem; }
}

/* --------------------------------------------------------------- final QA */
[id] { scroll-margin-top: 100px; }
.chart-card { min-width: 0; }
.charts2 > * { min-width: 0; }
@media (max-width: 900px) { .charts2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .tw-card .shape { -webkit-mask: linear-gradient(#000 62%, transparent 98%); mask: linear-gradient(#000 62%, transparent 98%); }
}

/* --------------------------------------------------------------- sticky bar resting state */
.bar { box-shadow: none; visibility: hidden; transition: transform .7s var(--ease-out), visibility 0s .7s; }
.bar.show { box-shadow: 0 18px 50px -20px rgba(11,30,51,.35); visibility: visible; transition: transform .7s var(--ease-out); }
.bar__menu { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100); place-items: center; flex: none; color: var(--ink); }
.bar__menu .burger { display: block; width: 16px; height: 9px; position: relative; }
.bar__menu .burger::before, .bar__menu .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.bar__menu .burger::before { top: 0; } .bar__menu .burger::after { bottom: 0; }

/* --------------------------------------------------------------- hover on desktop = .is-hot at screen centre on touch */
.js .tw-card.is-in:hover, .js .tw-card.is-in.is-hot { transform: translateY(-4px); transition-delay: 0s; }
.js .why__item.is-in:hover, .js .why__item.is-in.is-hot, .js .sys.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.tw-card.is-hot .shape { transform: translateY(-50%) translateX(-10px) rotate(-2deg); }
.tw-card.is-hot .shape-img { transform: rotate(-10deg) scale(1.06); }
.proj.is-hot .nimg img { transform: scale(1.06); }
.proj.is-hot .view { transform: scale(1) rotate(0); }
.case .nimg img { transition: transform 1.2s var(--ease); }
.case:hover .nimg img, .case.is-hot .nimg img { transform: scale(1.05); }
.row.is-hot { color: var(--body); }
.row.is-hot h3 { color: var(--ink); transform: translateX(10px); }
.row.is-hot .go { opacity: 1; }
.row.is-hot .go svg { transform: rotate(-45deg); }
.row.is-hot::after { transform: scaleX(1); }
.why__item.is-hot, .sys.is-hot { border-color: var(--ink); }
.js .sys.is-in.is-hot { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(11,30,51,.35); }
.value.is-hot img { transform: rotate(-14deg) scale(1.1); }
.btn.is-hot .ar { transform: rotate(-45deg); background: var(--orange); color: #fff; }
.link-arrow.is-hot { gap: 18px; }
.link-arrow.is-hot svg { transform: translateX(2px); }

/* floating row preview on touch: the desktop cursor image, parked above the active row */
.reveal-img.touch { left: auto !important; right: 16px; top: calc(50% - 200px) !important; width: min(52vw, 300px); transform: translateY(14px) scale(.92); transition: opacity .35s, transform .6s var(--ease-out); }
.reveal-img.touch.show { transform: none; }

/* --------------------------------------------------------------- mobile = desktop, converted */
@media (max-width: 900px) {
  .bar__menu { display: grid; }
  .bar { padding-left: 16px; gap: 8px; }
  .bar .btn { margin-left: auto; }
  .hero__float { display: block; top: 26%; right: 14px; width: clamp(104px, 28vw, 180px); }
}
@keyframes kbm { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (max-width: 700px) {
  body[data-page="home"] .hero__slides figure:nth-child(1) img { object-position: 74% 50%; }
  body[data-page="home"] .hero__slides figure:nth-child(4) img { object-position: 42% 50%; }
  .hero__slides img { transform: scale(1.07); }
  .hero__slides figure.on img { animation-name: kbm; }
  body[data-page="home"] .hero__title { bottom: 176px; gap: 14px; }
  body[data-page="home"] .hero__title .btn { margin-bottom: 0; }
  .hero__caption { display: block; left: 14px; right: 14px; width: auto; bottom: 48px; padding: 12px 16px 14px; border-radius: 16px; }
  .hero__caption h3 { font-size: 1.15rem; margin: 4px 0 0; }
  .hero__caption p { display: none; }
  .hero__progress { margin-top: 10px; }
  .hero__chip { display: inline-flex; left: 20px; bottom: 12px; font-size: .68rem; max-width: 34%; line-height: 1.2; }
  .hero__scroll { display: flex; bottom: 12px; right: 20px; font-size: .68rem; }
  .hero__scroll i { height: 18px; }
  body[data-page="home"] .hero__kicker { top: 96px; font-size: .86rem; max-width: 30ch; }
  .hero--page .hero__frame { height: clamp(560px, 86svh, 720px); }
  .hero--page .hero__title { right: 20px; bottom: 58px; }
  /* three-up project cards become a swipe rail: same cards */
  .proj-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .proj-grid::-webkit-scrollbar { display: none; }
  .proj-grid .proj, .proj-grid .proj:nth-child(3) { display: grid; flex: 0 0 82%; scroll-snap-align: center; }
  .row { grid-template-columns: 34px 1fr 26px; }
  .row p { display: block; grid-column: 2 / -1; grid-row: 2; margin-top: -14px; font-size: .8rem; }
  .map-globe { display: block; top: 34px; right: 12px; width: 76px; }
  .tw-card.is-hot .shape { transform: translateX(-8px) rotate(-3deg); }
  .display { font-size: clamp(3.3rem, 17vw, 5.4rem); }
  .band__frame { min-height: 640px; }
}

/* --------------------------------------------------------------- mobile polish */
.reveal-img.touch { width: min(40vw, 240px); top: calc(50% - 176px) !important; }
@media (max-width: 700px) {
  .head .btn, .section-head .btn, .proj-head .btn { align-self: flex-start; justify-self: start; width: fit-content; }
  .hero__chip { max-width: 92px; }
}
@media (max-width: 700px) {
  .shead .btn { justify-self: start; align-self: start; width: fit-content; }
  .hero__chip { max-width: 112px; font-size: .62rem; }
  .hero--page .hero__title { bottom: 76px; }
}
/* the lighter atrium photo needs more shade for white text */
.band__frame::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(11,30,51,.5), rgba(11,30,51,.72)); }

/* =============================================================== HOME HERO (hx): dark studio panel, notched corners, breakout object */
.hx { --hr: 30px; --hbg: var(--bg); position: relative; padding: 0 var(--frame) clamp(70px, 8vw, 120px); }
.hx__nav { display: flex; align-items: center; gap: 24px; height: 78px; padding: 0 clamp(8px, 2vw, 28px); }
.hx__logo img { height: 36px; width: auto; }
.hx__links { display: flex; gap: 6px; margin: 0 auto; }
.hx__links a { font-size: .88rem; color: var(--body); padding: 8px 14px; border-radius: 99px; transition: background .3s, color .3s; }
.hx__links a:hover, .hx__links a[aria-current] { color: var(--ink); background: var(--gray-100); }
.hx__menu { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gray-100); place-items: center; color: var(--ink); flex: none; }
.hx__menu .burger { display: block; width: 16px; height: 9px; position: relative; }
.hx__menu .burger::before, .hx__menu .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.hx__menu .burger::before { top: 0; } .hx__menu .burger::after { bottom: 0; }

.hx__panel {
  position: relative; border-radius: var(--hr); color: #fff; isolation: isolate;
  height: clamp(600px, calc(100svh - 96px), 840px);
  background: radial-gradient(120% 90% at 22% 85%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hx__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; }
.hx__slides { position: absolute; inset: 0 0 0 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%); }
.hx__slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hx__slides figure.on { opacity: 1; }
.hx__slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 9s linear; }
.hx__slides figure.on img { transform: scale(1); }
.hx__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(6,17,29,.75), transparent 38%), linear-gradient(270deg, rgba(6,17,29,.7), transparent 30%); }

.hx__copy { position: absolute; left: clamp(24px, 4vw, 64px); top: clamp(30px, 5vw, 64px); max-width: 640px; }
.hx__tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.hx__title { margin: 18px 0 30px; font-size: clamp(2.3rem, 4.5vw, 4.5rem); line-height: .98; font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; }
.hx__title b { font-weight: 500; color: var(--amber); }
.hx__cta { display: inline-flex; gap: 4px; align-items: stretch; height: 50px; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.hx__cta span { display: grid; place-items: center; padding: 0 26px; background: var(--orange); color: #fff; border-radius: 12px 4px 4px 12px; transition: background .4s; }
.hx__cta i { display: grid; place-items: center; width: 50px; background: var(--orange); color: #fff; border-radius: 4px 12px 12px 4px; transition: transform .5s var(--ease-out), background .4s; }
.hx__cta i svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.hx__cta:hover span, .hx__cta.is-hot span { background: var(--orange-600); }
.hx__cta:hover i, .hx__cta.is-hot i { background: #fff; color: var(--orange); transform: translateX(4px); }
.hx__cta:hover i svg, .hx__cta.is-hot i svg { transform: rotate(-45deg); }

.hx__stats { position: absolute; right: clamp(70px, 7vw, 110px); top: clamp(96px, 11vw, 140px); margin: 0; display: grid; gap: 22px; text-align: left; }
.hx__stats dt { font-size: .74rem; color: rgba(255,255,255,.62); }
.hx__stats dd { margin: 2px 0 0; font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }

.hx__vert { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 12px; }
.hx__vert i { width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); }

.hx__dots { position: absolute; left: clamp(24px, 4vw, 64px); bottom: 30px; display: flex; gap: 8px; }
.hx__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.35); transition: width .5s var(--ease), background .4s; }
.hx__dots button.on { width: 30px; background: var(--amber); }

/* notched corners: a page-coloured box in the panel corner with two concave fillets */
.hx__corner { position: absolute; background: var(--hbg); z-index: 3; }
.hx__corner::before, .hx__corner::after { content: ""; position: absolute; width: var(--hr); height: var(--hr); pointer-events: none; }
.hx__corner--tr { top: -1px; right: -1px; padding: 0 0 12px 12px; border-bottom-left-radius: var(--hr); }
.hx__corner--tr::before { right: 100%; top: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--hr) - .5px), var(--hbg) var(--hr)); }
.hx__corner--tr::after { top: 100%; right: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--hr) - .5px), var(--hbg) var(--hr)); }
.hx__corner--br { bottom: -1px; right: -1px; padding: 12px 0 0 12px; border-top-left-radius: var(--hr); }
.hx__corner--br::before { right: 100%; bottom: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--hr) - .5px), var(--hbg) var(--hr)); }
.hx__corner--br::after { bottom: 100%; right: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--hr) - .5px), var(--hbg) var(--hr)); }

.hx__pill { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); font-size: .8rem; color: var(--ink); transition: background .3s, border-color .3s; }
.hx__pill svg { width: 13px; height: 13px; transition: transform .4s var(--ease-out); }
.hx__pill:hover { background: var(--gray-50); border-color: var(--ink); }
.hx__pill:hover svg { transform: translate(2px, -2px); }

.hx__card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--gray-50); border: 1px solid var(--line); min-width: 280px; transition: transform .5s var(--ease-out), box-shadow .5s; }
.hx__card:hover, .hx__card.is-hot { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(11,30,51,.4); }
.hx__thumbs { display: flex; }
.hx__thumbs img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-50); }
.hx__thumbs img + img { margin-left: -12px; }
.hx__cardtxt { display: grid; line-height: 1.1; }
.hx__cardtxt b { font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.hx__cardtxt small { font-size: .74rem; color: var(--muted); }
.hx__cardgo { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .4s, transform .5s var(--ease-out); }
.hx__cardgo svg { width: 13px; height: 13px; }
.hx__card:hover .hx__cardgo, .hx__card.is-hot .hx__cardgo { background: var(--orange); transform: rotate(45deg); }

/* the breakout object: sits on the panel floor and spills over its bottom edge */
.hx__objwrap { position: absolute; z-index: 2; left: clamp(140px, 22vw, 340px); bottom: clamp(-120px, -8vw, -60px); width: clamp(300px, 34vw, 540px); pointer-events: none; }
.hx__obj { width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(6,17,29,.45)); animation: hxIn 1.6s var(--ease-out) .5s both, hxFloat 7s ease-in-out 2.1s infinite; }
@keyframes hxIn { from { opacity: 0; transform: translateY(90px) rotate(8deg) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hxFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }

@media (max-width: 1100px) {
  .hx__links { display: none; }
  .hx__quote { margin-left: auto; }
  .hx__menu { display: grid; }
  .hx__slides { left: 18%; }
}
@media (max-width: 760px) {
  .hx { --hr: 24px; padding-bottom: 70px; }
  .hx__nav { height: 66px; gap: 10px; padding: 0 6px; }
  .hx__logo img { height: 30px; }
  .hx__quote { padding-left: 14px; font-size: .78rem; }
  .hx__panel { height: auto; min-height: 700px; }
  .hx__slides { left: 0; -webkit-mask-image: none; mask-image: none; }
  .hx__media::after { background: linear-gradient(180deg, rgba(6,17,29,.94) 0%, rgba(6,17,29,.55) 42%, rgba(6,17,29,.35) 60%, rgba(6,17,29,.9) 100%); }
  .hx__copy { left: 20px; right: 20px; top: 28px; }
  .hx__title { font-size: clamp(1.9rem, 9.4vw, 2.6rem); margin: 14px 0 22px; }
  .hx__cta { height: 46px; } .hx__cta i { width: 46px; }
  .hx__stats { left: 20px; right: 20px; top: auto; bottom: 150px; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
  .hx__stats dd { font-size: 1.35rem; }
  .hx__vert { display: none; }
  .hx__dots { left: auto; right: 20px; top: auto; bottom: 236px; }
  .hx__corner--tr { display: none; }
  .hx__objwrap { left: -10px; bottom: -64px; width: 58vw; }
  .hx__card { min-width: 0; padding: 10px 12px; gap: 10px; }
  .hx__thumbs img { width: 30px; height: 30px; }
  .hx__thumbs img:nth-child(3) { display: none; }
  .hx__cardtxt b { font-size: 1.1rem; }
  .hx__cardtxt small { font-size: .66rem; }
  .hx__cardgo { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .hx__obj { animation: none; } .hx__slides img { transition: none; transform: none; } }
.hx__copy { max-width: 780px; }
.hx__title { color: #fff; font-size: clamp(2.2rem, 4vw, 4rem); }
@media (max-width: 760px) { .hx__title { font-size: clamp(1.7rem, 7.6vw, 2.4rem); } .hx__objwrap { left: 2px; } }
/* desktop: the extrusion sits on the navy, under the headline, clear of the photo */
.hx__objwrap { left: clamp(20px, 3vw, 52px); width: clamp(280px, 30vw, 460px); }
@media (max-width: 760px) {
  /* headline + button centred vertically in the panel */
  .hx__copy { top: 50%; transform: translateY(-50%); }
  .hx__dots { top: 26px; bottom: auto; }
  /* extrusion is static on phones */
  .hx__obj { animation: none; }
  .hx__objwrap { transform: none !important; }
}
@media (max-width: 760px) { .hx__objwrap { left: 2px; width: 52vw; bottom: -60px; } }

/* =============================================================== TEXTURE: corner patterns, one per surface type
   light ground -> dot matrix · dark ground -> drafting grid (shop-drawing paper) · accent tile -> diagonal hatch
   drawn as background layers, kept at the threshold of visibility and masked out from the top-right corner */
:root {
  --pat-dot: radial-gradient(circle at 1px 1px, rgba(13,23,34,.17) 1px, transparent 1.5px);
  --pat-dot-size: 14px 14px;
  --pat-grid: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px),
              linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  --pat-grid-size: 22px 22px, 22px 22px, 88px 88px, 88px 88px;
  --pat-hatch: repeating-linear-gradient(135deg, var(--hatch, rgba(13,23,34,.1)) 0 1px, transparent 1px 9px);
  --pat-mask: radial-gradient(farthest-side at 100% 0, #000 0%, rgba(0,0,0,.55) 50%, transparent 100%);
}
.svc3__item::after, .tw-card::after, .why__item::after, .chart-card::after, .form-card::after, .note-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 64%; height: 72%; pointer-events: none;
  border-top-right-radius: inherit; background-position: right top;
  -webkit-mask-image: var(--pat-mask); mask-image: var(--pat-mask);
  background-image: var(--pat-dot); background-size: var(--pat-dot-size);
}
/* "What we engineer": dots on the light card; the drafting grid surfaces as the card turns navy on hover / in view */
.svc3__item::after {
  z-index: -1;
  background-image: var(--pat-dot), var(--pat-grid);
  background-size: 14px 14px, var(--pat-grid-size);
  background-position: right top;
}
.tw-card::after { z-index: -2; }
.tw-card--orange, .tw-card--cyan { --hatch: color-mix(in srgb, var(--c) 22%, transparent); }
.tw-card--orange::after, .tw-card--cyan::after { background-image: var(--pat-hatch); background-size: auto; }
.tw-card--navy-deep::after, .form-card::after { background-image: var(--pat-grid); background-size: var(--pat-grid-size); }
.form-card::after { z-index: -1; }
.why__item, .note-card { position: relative; overflow: hidden; isolation: isolate; }
.why__item::after, .chart-card::after, .note-card::after { z-index: -1; width: 46%; height: 80%; }
.note-card { --hatch: rgba(240,120,24,.18); }
.note-card::after { background-image: var(--pat-hatch); background-size: auto; width: 34%; height: 100%; }
.chart-card { isolation: isolate; }
@media (max-width: 700px) { .svc3__item::after, .tw-card::after { width: 78%; height: 58%; } }

/* =============================================================== HERO v2: centred copy, faces, plain menu buttons */
.hx__copy { top: 50%; transform: translateY(-50%); }
.hx { padding-bottom: clamp(90px, 11vw, 170px); }
.hx__objwrap { width: clamp(250px, 25vw, 400px); bottom: clamp(-160px, -10vw, -90px); }
.hx__dots { top: 34px; bottom: auto; }
.hx__thumbs--faces img { width: 40px; height: 40px; }
.hx__thumbs--faces img + img { margin-left: -13px; }
/* menu buttons: no fill, no circle, just a clear burger */
.hx__menu, .bar__menu { background: none; border-radius: 0; width: 44px; height: 44px; }
.hx__menu .burger, .bar__menu .burger { width: 26px; height: 12px; }
.hx__menu .burger::before, .hx__menu .burger::after, .bar__menu .burger::before, .bar__menu .burger::after { height: 2px; border-radius: 2px; }
.hx__menu .burger::after, .bar__menu .burger::after { left: 8px; }

/* =============================================================== INNER PAGE HEROES (hx--page) */
.hx--page .hx__panel { height: auto; min-height: clamp(560px, calc(100svh - 120px), 720px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(70px, 7vw, 96px) clamp(24px, 4vw, 64px) clamp(84px, 8vw, 110px); }
.hx--page .hx__copy { position: relative; left: auto; top: auto; transform: none; max-width: 600px; }
.hx--page .hx__title { font-size: clamp(2.2rem, 4.4vw, 4.3rem); margin: 18px 0 20px; }
.hx__tag a { color: inherit; }
.hx__tag a:hover { color: #fff; }
.hx__lede { color: rgba(255,255,255,.72); max-width: 44ch; font-size: 1.02rem; line-height: 1.6; margin: 0 0 30px; }
.hx--page .hx__objwrap { left: 44%; width: clamp(170px, 15vw, 240px); bottom: clamp(-100px, -6vw, -60px); }
.hx--page .hx__obj { filter: drop-shadow(0 30px 30px rgba(6,17,29,.45)); }
.hx--services .hx__slides, .hx--contact .hx__slides { left: 38%; }

/* about: arched portrait window */
.hxp-arch { position: relative; margin: 0; justify-self: end; width: min(100%, 420px); aspect-ratio: 3 / 3.7; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hxp-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hxp-arch:hover img { transform: scale(1.05); }
.hxp-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,17,29,.75), transparent 45%); }
.hxp-arch figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font-family: var(--script); font-size: 1.9rem; line-height: 1; }
.hxp-arch figcaption .mono { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }

/* services: glass index over the facade */
.hxp-index { justify-self: end; width: min(100%, 420px); padding: 22px 22px 10px; border-radius: 22px; background: rgba(6,17,29,.42); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.hxp-index .mono { color: var(--amber); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.hxp-index ol { list-style: none; margin: 12px 0 0; padding: 0; }
.hxp-index a { display: grid; grid-template-columns: 34px 1fr 14px; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; transition: padding .4s var(--ease), color .3s; }
.hxp-index a span { font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.5); }
.hxp-index a svg { width: 12px; height: 12px; opacity: .4; transition: opacity .3s, transform .4s var(--ease-out); }
.hxp-index a:hover { padding-left: 6px; color: var(--amber); }
.hxp-index a:hover svg { opacity: 1; transform: translate(2px, -2px); }

/* projects: staggered mosaic */
.hxp-mosaic { position: relative; height: clamp(380px, 46vw, 540px); }
.hxp-mosaic figure { position: absolute; margin: 0; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hxp-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hxp-mosaic figure:hover img { transform: scale(1.06); }
.hxp-mosaic figure:nth-child(1) { left: 0; top: 8%; width: 58%; height: 56%; }
.hxp-mosaic figure:nth-child(2) { right: 0; top: 0; width: 38%; height: 42%; }
.hxp-mosaic figure:nth-child(3) { right: 6%; bottom: 0; width: 52%; height: 48%; border: 6px solid var(--navy-900); }

/* contact: glass card of direct lines */
.hxp-contact { justify-self: end; width: min(100%, 400px); max-width: none; display: grid; gap: 0; }
.hxp-contact .mono { text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; margin-bottom: 8px; }
.hxp-contact a { display: grid; grid-template-columns: 82px 1fr 14px; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.hxp-contact a span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.hxp-contact a b { font-weight: 500; font-size: 1rem; }
.hxp-contact a svg { width: 12px; height: 12px; transition: transform .4s var(--ease-out); }
.hxp-contact a:hover b { color: var(--amber); }
.hxp-contact a:hover svg { transform: translate(2px, -2px); }

@media (max-width: 900px) {
  .hx--page .hx__panel { grid-template-columns: 1fr; padding: 34px 20px 120px; gap: 30px; min-height: 0; }
  .hx--page .hx__copy { max-width: none; }
  .hxp-arch, .hxp-index, .hxp-contact { justify-self: stretch; width: 100%; }
  .hxp-arch { aspect-ratio: 4 / 3.4; border-radius: 200px 200px 22px 22px; }
  .hxp-mosaic { height: 72vw; max-height: 460px; }
  .hx--services .hx__slides, .hx--contact .hx__slides { left: 0; -webkit-mask-image: none; mask-image: none; }
  .hx--services .hx__media::after, .hx--contact .hx__media::after { background: linear-gradient(180deg, rgba(6,17,29,.92), rgba(6,17,29,.6) 50%, rgba(6,17,29,.85)); }
  .hx--page .hx__objwrap { left: 6px; width: 34vw; bottom: -50px; }
}
@media (max-width: 760px) {
  .hx__copy { top: 50%; }
  .hx--page .hx__copy { top: auto; transform: none; }
  .hx--page .hx__title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hx--page .hx__obj { animation: none; }
}
/* inner heroes: copy sits in the grid flow, never offset by the home hero's absolute insets */
.hx--page .hx__copy { inset: auto; }
/* tablet + phone: objects stay small and live in the panel's bottom padding, features are capped */
@media (max-width: 900px) {
  .hx--page .hx__panel { padding-bottom: 150px; }
  .hx--page .hx__objwrap { left: 12px; width: clamp(120px, 26vw, 180px); bottom: -56px; }
  .hxp-arch, .hxp-mosaic { justify-self: start; width: min(100%, 460px); }
  .hxp-index, .hxp-contact { width: min(100%, 560px); justify-self: start; }
}
@media (max-width: 400px) { .hx--page .hx__objwrap { width: 100px; left: 8px; } }
/* phone: faces card keeps the original 22+ card footprint so it lines up with the extrusion */
@media (max-width: 760px) {
  .hx:not(.hx--page) .hx__card { width: 209px; height: 53px; padding: 0 12px; gap: 10px; }
  .hx__thumbs--faces img { width: 30px; height: 30px; }
  .hx__thumbs--faces img + img { margin-left: -12px; }
  .hx__thumbs--faces img:nth-child(n+3) { display: none; }
  .hx:not(.hx--page) .hx__cardtxt b { font-size: 1.05rem; white-space: nowrap; }
  .hx:not(.hx--page) .hx__cardtxt small { white-space: nowrap; }
}
