/* Cube IT AS — draft 16. One stylesheet for every page.
   Colours, type and spacing are the variables right below: change them here. */

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1f2830;        /* text on white */
  --muted: #56636f;      /* quiet text on white */
  --paper: #ffffff;
  --mist: #f3f6f8;       /* light boxes */
  --navy: #12324a;       /* header, page tops */
  --steel: #22506e;      /* "What we do" */
  --char: #232a30;       /* assignments, footer */
  --deep: #1b3c48;       /* "Why Cube" */
  --sky: #3a96ca;        /* Cube blue: accents on dark */
  --sky-ink: #2676ab;    /* Cube blue for small text on white */
  --line: #e2e7ec;       /* grid lines on white */
  --line-d: rgba(255, 255, 255, .13); /* grid lines on dark */
  --gut: 40px;           /* side margin */
  --font: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 450; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ===== The four-column grid and its hairlines ===== */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.lines { position: relative; }
.lines::before { content: ""; position: absolute; inset: 0 25%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; z-index: 0; }
.dark.lines::before, .lines.on-dark::before { border-color: var(--line-d); }
.lines > * { position: relative; z-index: 1; }

/* Section label: "—— ABOUT CUBE" */
.label { display: flex; align-items: center; gap: 20px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-ink); font-weight: 600; line-height: 1.2; }
.label::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; margin-left: calc(-1 * var(--gut)); transform-origin: left; }
.dark .label, .on-dark .label { color: var(--sky); }

/* Round "learn more" link: a circle the arrow sits on */
.more { display: inline-flex; align-items: center; gap: 12px; position: relative; padding: 10px 0 10px 25px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--sky-ink); }
.more::before { content: ""; position: absolute; left: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 1px solid currentColor; border-radius: 50%; transition: width .5s var(--out), border-radius .5s var(--out); }
.more:hover::before { width: calc(100% + 18px); border-radius: 22px; }
.more .ar { transition: transform .4s var(--out); }
.more:hover .ar { transform: translateX(4px); }
.dark .more, .on-dark .more, .more.light { color: #fff; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 40px; background: var(--sky); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; transition: background .3s; }
.btn:hover { background: #2c86ba; }

/* ===== Header ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: 96px; color: #fff; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); transition: transform .5s var(--ease), background .4s, height .4s; }
.header.solid, .header.scrolled { background: rgba(16, 42, 60, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header.scrolled { height: 76px; }
.header.away { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 12px; padding-left: var(--gut); font-weight: 800; font-size: 15px; line-height: 1.02; letter-spacing: .08em; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; padding-left: var(--gut); height: 100%; }
.nav a { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.head-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding-right: var(--gut); }
.head-right .contact { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.portal-dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 15px; font-weight: 800; transition: background .3s, color .3s; }
.portal-dot:hover { background: var(--sky); color: #fff; }
.burger { display: none; }
.nav .phone-only { display: none; }

/* ===== Hero: the photo slider ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; color: #fff; overflow: hidden; background: var(--navy); }
.slides, .slide, .slide-img { position: absolute; inset: 0; }
.slide { overflow: hidden; clip-path: inset(0 0 0 100%); }
.slide.on { clip-path: inset(0); z-index: 2; }
.slide.was { clip-path: inset(0); z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-img { transform: scale(1.06); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,40,60,.62) 0%, rgba(14,40,60,.38) 38%, rgba(14,40,60,.5) 100%); }
.js .slide.on.enter { animation: wipe 1.3s var(--ease) both; }
.js .slide.on.enter .slide-img { animation: slideIn 1.3s var(--ease) both, drift 9s linear 1.3s both; }
.js .slide.on:not(.enter) .slide-img { animation: drift 9s linear both; }
.js .slide.was .slide-img { animation: slideOut 1.3s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes slideIn { from { transform: translateX(14%) scale(1.06); } to { transform: translateX(0) scale(1.06); } }
@keyframes slideOut { from { transform: translateX(0) scale(1.06); } to { transform: translateX(-12%) scale(1.06); } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.0) translateX(-1.2%); } }
.hero.lines::before { border-color: rgba(255,255,255,.16); z-index: 3; }
.hero-title { position: absolute; z-index: 4; left: 25%; width: 50%; top: 150px; padding-left: var(--gut); }
.hero-title h1 { font-size: clamp(46px, 5.3vw, 80px); line-height: 1.06; letter-spacing: -.018em; }
.hero-title h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title h1 .ln > span { display: block; }
.js .hero-title h1 .ln > span { transform: translateY(110%); transition: transform 1.2s var(--out); }
.js .ready .hero-title h1 .ln > span { transform: none; }
.js .ready .hero-title h1 .ln:nth-child(2) > span { transition-delay: .1s; }
.js .ready .hero-title h1 .ln:nth-child(3) > span { transition-delay: .2s; }
.hero-panel { position: absolute; z-index: 4; left: 0; bottom: 0; width: calc(25% + 120px); display: grid; grid-template-columns: 1fr 120px; background: rgba(15, 42, 62, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-text { padding: 40px var(--gut) 34px; border-right: 1px solid rgba(255,255,255,.16); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.captions { display: grid; }
.cap { grid-area: 1 / 1; font-size: 18px; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .8s var(--out); visibility: hidden; }
.cap.on { opacity: 1; transform: none; visibility: visible; transition-delay: .35s; }
.cap .more { margin-top: 18px; }
.ctrl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 0; }
.ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sky); color: var(--sky); display: grid; place-items: center; transition: background .3s, color .3s; }
.ctrl button:hover { background: var(--sky); color: #fff; }
.ctrl button.prev { opacity: .55; }
.fraction { font-size: 14px; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.progress { position: absolute; z-index: 4; left: calc(25% + 120px + 98px); bottom: 0; width: 1px; height: 64px; background: rgba(255,255,255,.2); }
.progress i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }
.progress.run i { animation: fill var(--dur, 7s) linear both; }
@keyframes fill { to { transform: scaleY(1); } }
.scroll-cue { position: absolute; z-index: 4; right: var(--gut); bottom: 34px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; opacity: .8; }
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(#fff 50%, rgba(255,255,255,.2) 50%); background-size: 1px 200%; animation: cue 2.2s linear infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ===== Page top on inner pages ===== */
.page-top { position: relative; min-height: 64vh; color: #fff; background: var(--navy); overflow: hidden; display: flex; align-items: flex-end; }
.page-top .bg { position: absolute; inset: -8% 0; }
.page-top .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,40,60,.66), rgba(14,40,60,.5)); }
.page-top.lines::before { border-color: rgba(255,255,255,.16); z-index: 2; }
.page-top .inner { position: relative; z-index: 3; width: 100%; padding: 170px 0 70px; }
.page-top .label { color: #8fcaee; margin-bottom: 26px; }
.page-top h1 { margin-left: 25%; padding-left: var(--gut); max-width: 50%; font-size: clamp(40px, 4.6vw, 68px); }
.page-top p.lead { margin: 22px 0 0 25%; padding-left: var(--gut); max-width: 40%; font-size: 20px; line-height: 1.55; opacity: .92; }

/* ===== Generic sections ===== */
.sec { padding: 120px 0; }
.dark { color: #fff; }
.steel { background: var(--steel); }
.char { background: var(--char); }
.deep { background: var(--deep); }
.mist { background: var(--mist); }
.col1 { grid-column: 1; padding: 0 var(--gut); }
.col23 { grid-column: 2 / 4; padding: 0 var(--gut); }
.col234 { grid-column: 2 / 5; padding: 0 var(--gut); }
.col4 { grid-column: 4; padding: 0 var(--gut); }

/* ===== About ===== */
.about .statement { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.26; letter-spacing: -.012em; font-weight: 500; }
.about .body { margin-top: 70px; max-width: 520px; font-size: 20px; line-height: 1.75; }
.about .pic { overflow: hidden; }
.about .pic img { width: 100%; height: 100%; object-fit: cover; }
.about .label-row { grid-column: 1; grid-row: 1; padding-left: var(--gut); padding-top: 14px; }
.about .col23 { grid-row: 1 / 3; }
.about .pic-r { grid-column: 4; grid-row: 1; margin: 0 var(--gut); aspect-ratio: 3 / 3.4; align-self: start; }
.about .pic-l { grid-column: 1; grid-row: 2; margin: 120px var(--gut) 0; aspect-ratio: 3 / 3.6; align-self: start; }
.figures { grid-column: 1 / 5; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > div { padding: 40px var(--gut) 44px; }
.figures b { display: flex; font-size: clamp(44px, 4.6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--sky-ink); white-space: nowrap; }
.figures > div > span { display: block; margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 230px; }
.pillars { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 64px var(--gut); padding: 100px var(--gut) 0; }
.pillars h3 { font-size: 26px; color: var(--sky-ink); margin-bottom: 18px; }
.pillars p { font-size: 18px; line-height: 1.75; }
.pillars .more { grid-column: 1 / -1; justify-self: start; }

/* Odometer digits (built by the script; the plain number shows without it) */
.odo { display: inline-flex; align-items: flex-start; overflow: hidden; line-height: 1; height: 1em; }
.odo > span { display: block; height: 1em; }
.odo .reel { display: block; height: 1em; overflow: hidden; }
.odo .reel > span { display: flex; flex-direction: column; transition: transform 2.2s var(--out); }
.odo .reel > span > span { height: 1em; display: block; }

/* ===== What we do: titles switch while you scroll ===== */
.svc { position: relative; }
.svc-inner { padding: 120px 0; }
.svc-icon { width: 136px; margin: 70px 0 0 auto; color: var(--sky); }
.svc-list { display: flex; flex-direction: column; }
.svc-item h3 { font-size: clamp(38px, 4vw, 60px); line-height: 1.12; letter-spacing: -.015em; }
.svc-item h3 button { text-align: left; color: inherit; transition: color .5s; }
.svc-item .desc { max-width: 430px; font-size: 18px; line-height: 1.7; margin: 26px 0 50px; }
.svc-item .desc .more { margin-top: 24px; }
.svc-item .pic { display: none; }
.svc-pics { position: relative; }
.svc-pics figure { margin: 0; position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.svc-pics figure.on { clip-path: inset(0); z-index: 2; }
.svc-pics figure.was { clip-path: inset(0); z-index: 1; }
.svc-pics img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--out); }
.svc-pics figure.on img { transform: scale(1); }
.svc-pics figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
/* No script, or a narrow screen: every item stands open with its own photo */
.svc-pics { display: none; }
.svc-item .pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 26px; }
.svc-item .pic img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1025px) {
  .js .svc { height: 290vh; }
  .js .svc-inner { position: sticky; top: 0; height: 100vh; min-height: 640px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .js .svc-inner > .col1 { padding-top: 130px; }
  .js .svc-inner > .col23 { padding-top: 150px; }
  .js .svc-item .pic { display: none; }
  .js .svc-item h3 button { color: rgba(255,255,255,.28); }
  .js .svc-item.on h3 button, .js .svc-item h3 button:hover { color: #fff; }
  .js .svc-item .desc { display: none; }
  .js .svc-descs { position: relative; margin-top: 46px; min-height: 230px; }
  .js .svc-descs .desc { position: absolute; inset: 0 auto auto 0; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .8s var(--out); visibility: hidden; display: block; }
  .js .svc-descs .desc.on { opacity: 1; transform: none; visibility: visible; transition-delay: .25s; }
  .js .svc-pics { display: block; grid-column: 4; margin: 200px 0 0 calc(-1 * var(--gut)); height: calc(100% - 200px); }
  .js .svc-count { position: absolute; left: var(--gut); bottom: 46px; font-size: 14px; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 16px; }
  .js .svc-count i { display: block; width: 90px; height: 1px; background: rgba(255,255,255,.2); position: relative; }
  .js .svc-count i::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.svc-count, .svc-descs { display: none; }
@media (min-width: 1025px) { .js .svc-count { display: flex; } .js .svc-descs { display: block; } }

/* ===== Sectors ===== */
.sectors .intro { padding-top: 0; }
.sectors .intro p { font-size: 17px; line-height: 1.75; margin-top: 40px; color: var(--muted); }
.sector-grid { grid-column: 2 / 5; display: grid; grid-template-columns: repeat(3, 1fr); }
.sector { padding: 0 var(--gut) 70px; }
.sector:nth-child(3n+2) { margin-top: 30px; }
.sector:nth-child(3n) { margin-top: 60px; }
.sector .head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--sky-ink); }
.sector .head svg { width: 50px; height: 50px; flex: none; }
.sector h3 { font-size: 24px; color: var(--sky-ink); }
.sector .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.sector .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.sector:hover .ph img { transform: scale(1.05); }
.sector p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.sector.ask { display: flex; flex-direction: column; }
.sector.ask .ph { display: grid; place-items: center; background: var(--mist); }
.sector.ask .ph svg { width: 42%; }
.sectors.lines::before { inset: 0 25% 0 25%; }
.sectors .vline { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }

/* ===== Assignments: the strip moves sideways while you scroll ===== */
.jobs { color: #fff; }
.jobs-inner { padding: 110px 0; }
.jobs-intro h2 { font-size: clamp(40px, 3.8vw, 56px); margin-top: 60px; }
.jobs-intro p { margin-top: 30px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.8); }
.jobs-intro .more { margin-top: 34px; }
.track-wrap { grid-column: 2 / 5; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.track { display: flex; gap: 0; padding-left: 0; will-change: transform; }
.job { flex: none; width: calc(25vw); padding: 0 var(--gut); display: block; }
.job .ph { aspect-ratio: 4 / 3.1; overflow: hidden; background: #2c343b; }
.job .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: filter .7s, transform 1.2s var(--out); }
.job:hover .ph img { filter: grayscale(0); transform: scale(1.04); }
.job h3 { font-size: 22px; margin-top: 24px; line-height: 1.3; }
.job .area { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.job .shut { display: inline-block; margin-left: 10px; padding: 2px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; color: rgba(255,255,255,.75); }
.job.all .ph { display: grid; place-items: center; background: var(--sky); filter: none; }
.job.all .ph strong { font-size: 64px; font-weight: 500; letter-spacing: -.02em; line-height: 1; text-align: center; }
.job.all .ph small { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.jobs-foot { grid-column: 2 / 5; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); margin-top: 70px; }
.jobs-foot a { display: block; text-align: center; padding: 22px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; transition: background .3s; }
.jobs-foot a:hover { background: rgba(255,255,255,.05); }
@media (min-width: 1025px) {
  .js .jobs.pin { height: var(--h, 260vh); }
  .js .jobs.pin .jobs-inner { position: sticky; top: 0; height: 100vh; min-height: 680px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-content: center; }
  .js .jobs.pin .jobs-intro { padding-top: 0; }
}

/* Skills marquee (moves with the direction you scroll) */
.marquee { overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line-d); color: rgba(255,255,255,.16); padding: 34px 0; font-size: clamp(44px, 6vw, 92px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.marquee .row { display: inline-flex; will-change: transform; }
.marquee .row span { padding-right: .6em; }
.marquee .row span b { color: rgba(58,150,202,.55); font-weight: 600; }

/* ===== How it works ===== */
.steps { grid-column: 2 / 5; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 70px; }
.step { padding: 0 var(--gut); }
.step .when { font-size: 19px; }
.step .when b { font-weight: 600; }
.step .art { margin-top: 22px; aspect-ratio: 4 / 2.6; background: var(--mist); display: grid; place-items: center; }
.step .art svg { width: 34%; overflow: visible; }
.step .art rect { fill: none; stroke: #c3ced8; stroke-width: .9; }
.step .art rect.f { stroke: none; fill: var(--c); transform-box: fill-box; transform-origin: center; }
.js .step .art rect.f { opacity: 0; transform: scale(.4); transition: opacity .5s, transform .8s var(--out); }
.js .step.in .art rect.f { opacity: 1; transform: none; }
.step p { margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.how .head p { margin-top: 40px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.how .head h2 { margin-top: 60px; font-size: clamp(30px, 2.6vw, 40px); }

/* ===== Why Cube ===== */
.why { color: #fff; overflow: hidden; }
.why .grid4 { align-items: stretch; }
.why .mark { padding: 110px var(--gut) 90px; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.why .mark svg { width: 120px; }
.why .mark span { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.why blockquote { margin: 0; padding: 110px var(--gut) 90px; }
.why blockquote p { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.32; letter-spacing: -.01em; font-weight: 500; }
.why blockquote .more { margin-top: 44px; }
.why .ph { grid-column: 4; position: relative; overflow: hidden; min-height: 520px; }
.why .ph img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }

/* ===== Footer ===== */
.footer { background: var(--char); color: #fff; }
.footer .top { padding: 110px 0 90px; }
.footer .big { grid-column: 1 / 3; padding: 0 var(--gut); font-size: clamp(34px, 3.2vw, 50px); line-height: 1.15; letter-spacing: -.015em; font-weight: 500; }
.footer .big .btn { margin-top: 40px; }
.footer .cols { grid-column: 1 / 5; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; }
.footer .cols > div { padding: 0 var(--gut); }
.footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); font-weight: 600; margin: 0 0 14px; }
.footer h4 + * + h4, .footer address + h4 { margin-top: 30px; }
.footer address, .footer li { font-style: normal; font-size: 16px; line-height: 1.75; }
.footer address a, .footer address span { display: block; }
.footer a:hover { color: var(--sky); }
.footer .base { background: var(--sky); color: #fff; display: flex; justify-content: space-between; gap: 20px; padding: 18px var(--gut); font-size: 13px; letter-spacing: .02em; }
.footer .base a { text-decoration: underline; text-underline-offset: 3px; }
.footer .base a:hover { color: #fff; opacity: .8; }

/* ===== Inner pages ===== */
.prose-row { padding: 110px 0; }
.prose { max-width: 680px; }
.prose h2 { font-size: 30px; margin: 54px 0 16px; }
.prose p + p { margin-top: 16px; }
.prose a:not(.btn) { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 3px; }
.side-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.side-nav a { color: var(--muted); padding-left: 16px; border-left: 2px solid transparent; transition: color .3s, border-color .3s; }
.side-nav a:hover, .side-nav a.on { color: var(--ink); border-color: var(--sky); }
.area { padding-bottom: 70px; margin-bottom: 70px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.area:last-child { border-bottom: 0; margin-bottom: 0; }
.area h2 { font-size: clamp(32px, 3vw, 46px); }
.area .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px var(--gut); margin-top: 34px; }
.area h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-ink); font-weight: 700; margin-bottom: 12px; }
.area li { font-size: 16px; line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { padding: 8px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; font-size: 15px; }
.faq-group + .faq-group { margin-top: 90px; }
.faq-group h2 { font-size: clamp(30px, 2.8vw, 42px); margin-bottom: 26px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 500; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 36px; height: 36px; border: 1px solid var(--sky-ink); color: var(--sky-ink); border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .4s var(--out), background .3s, color .3s; }
details[open] summary::after { transform: rotate(45deg); background: var(--sky-ink); color: #fff; }
.answer { padding: 0 60px 26px 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.answer p + p, .answer ul { margin-top: 12px; }
.answer ul { list-style: disc; padding-left: 20px; }
.team { grid-column: 2 / 5; display: grid; grid-template-columns: repeat(4, 1fr); }
.team.three { grid-template-columns: repeat(2, 1fr); }
.person { padding: 0 var(--gut) 40px; }
.person .initials { width: 100%; aspect-ratio: 1; background: var(--mist); display: grid; place-items: center; font-size: 46px; font-weight: 500; color: var(--sky-ink); letter-spacing: .02em; position: relative; overflow: hidden; }
.person .initials::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid #d3dce4; border-radius: 14%; transform: rotate(45deg); }
.person h3 { font-size: 20px; margin-top: 22px; }
.person .role { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-ink); margin-top: 6px; font-weight: 600; }
.person .links { margin-top: 14px; font-size: 15px; line-height: 1.8; }
.person .links a { display: block; color: var(--muted); }
.person .links a:hover { color: var(--sky-ink); }
.form-wrap { grid-column: 2 / 4; padding: 0 var(--gut); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gut); margin-top: 40px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 18px; letter-spacing: 0; text-transform: none; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); padding: 10px 0; border-radius: 0; transition: border-color .3s; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sky); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 18px; font-size: 16px; }
.notice.ok { background: rgba(58,150,202,.2); }
.notice.err { background: rgba(255,120,100,.16); }
.contact-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; font-size: 20px; }
.contact-lines a:hover { color: var(--sky); }

/* ===== Reveal on scroll ===== */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s, transform 1.2s var(--out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; }
.js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.js .wipe img { transform: scale(1.18); transition: transform 1.8s var(--out); }
.js .wipe.in { clip-path: inset(0); }
.js .wipe.in img { transform: scale(1); }
.js .label.rv::before { transform: scaleX(0); transition: transform 1s var(--out) .2s; }
.js .label.rv.in::before { transform: scaleX(1); }
[data-speed] { will-change: transform; }

/* ===== Tablet ===== */
@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .head-right .contact { display: none; }
}

/* ===== Phone and small tablet ===== */
@media (max-width: 1024px) {
  :root { --gut: 22px; }
  body { font-size: 17px; }
  .lines::before { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  .col1, .col23, .col234, .col4 { grid-column: 1; }
  .header { height: 70px; grid-template-columns: 1fr auto; }
  .header.scrolled { height: 64px; }
  .logo svg { width: 32px; height: 32px; }
  .burger { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 10px; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .4s var(--out), background .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .head-right { display: none; }
  .nav { position: fixed; inset: 70px 0 0; height: auto; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 0; padding: 20px var(--gut) 40px; transform: translateX(100%); transition: transform .6s var(--ease); overflow-y: auto; }
  .menu-open .nav { transform: none; }
  .nav a { font-size: 26px; text-transform: none; letter-spacing: -.01em; font-weight: 500; padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a::after { display: none; }
  .nav .phone-only { display: block; }
  .menu-open .header { background: var(--navy); transform: none; }

  .hero { min-height: 600px; }
  .hero-title { left: 0; width: 100%; top: 108px; padding: 0 var(--gut); }
  .hero-title h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .hero-panel { width: 100%; grid-template-columns: 1fr 74px; }
  .hero-text { padding: 26px var(--gut) 24px; min-height: 190px; }
  .cap { font-size: 16px; }
  .ctrl { gap: 10px; }
  .ctrl button { width: 38px; height: 38px; }
  .progress, .scroll-cue { display: none; }

  .page-top { min-height: 0; }
  .page-top .inner { padding: 130px 0 50px; }
  .page-top h1, .page-top p.lead { margin-left: 0; max-width: none; padding: 0 var(--gut); }
  .page-top .label { margin-bottom: 18px; }

  .sec { padding: 80px 0; }
  .about .label-row { grid-column: 1; grid-row: auto; margin-bottom: 30px; padding-top: 0; }
  .about .col23 { grid-row: auto; }
  .about .statement { font-size: 28px; }
  .about .pic-l, .about .pic-r { grid-column: 1; grid-row: auto; margin: 40px var(--gut) 0; aspect-ratio: 4 / 3; }
  .about .pic-r { display: none; }
  .about .body { margin-top: 40px; font-size: 18px; }
  .figures { grid-column: 1; grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .figures > div { padding: 28px var(--gut); }
  .figures > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .figures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .figures b { font-size: 40px; }
  .figures > div > span { font-size: 14px; }
  .pillars { grid-column: 1; grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .pillars h3 { font-size: 23px; margin-bottom: 10px; }

  .svc-inner { padding: 80px 0 30px; }
  .svc-icon { width: 90px; margin: 30px 0 40px; }
  .svc-item h3 { font-size: 34px; }
  .svc-item .desc { margin: 16px 0 60px; font-size: 17px; }

  .sector-grid { grid-column: 1; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .sector { padding: 0 calc(var(--gut) / 2) 40px; }
  .sector:nth-child(odd) { padding-left: var(--gut); }
  .sector:nth-child(even) { padding-right: var(--gut); }
  .sector:nth-child(n) { margin-top: 0; }
  .sector .head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sector .head svg { width: 40px; height: 40px; }
  .sector h3 { font-size: 18px; }
  .sector p { font-size: 14px; }
  .sectors .vline { display: none; }

  .marquee { padding: 22px 0; }
  .jobs-inner { padding: 70px 0; }
  .jobs-intro h2 { margin-top: 30px; }
  .track-wrap { grid-column: 1; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .track-wrap::-webkit-scrollbar { display: none; }
  .track { transform: none !important; padding-right: var(--gut); }
  .job { width: 78vw; padding: 0 0 0 var(--gut); scroll-snap-align: start; }
  .job h3 { font-size: 19px; }
  .jobs-foot { grid-column: 1; margin-top: 44px; }

  .steps { grid-column: 1; grid-template-columns: 1fr; row-gap: 50px; margin-top: 50px; }
  .how .head h2 { margin-top: 30px; }

  .why .mark { padding: 70px var(--gut) 0; flex-direction: row; align-items: center; }
  .why .mark svg { width: 70px; }
  .why blockquote { padding: 40px var(--gut) 60px; }
  .why blockquote p { font-size: 26px; }
  .why .ph { grid-column: 1; min-height: 320px; }

  .footer .top { padding: 80px 0 60px; }
  .footer .big { grid-column: 1; }
  .footer .cols { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 40px 0; margin-top: 60px; }
  .footer .base { flex-direction: column; gap: 4px; }

  .prose-row { padding: 70px 0; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
  .side-nav a { border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-size: 14px; }
  .area .cols { grid-template-columns: 1fr 1fr; }
  .team, .team.three { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .person { padding: 0 calc(var(--gut) / 2) 30px; }
  .person:nth-child(odd) { padding-left: var(--gut); }
  .person:nth-child(even) { padding-right: var(--gut); }
  .person .initials { font-size: 34px; }
  .person h3 { font-size: 17px; }
  .person .links { font-size: 13px; word-break: break-word; }
  .form-wrap { grid-column: 1; }
  .contact-form { grid-template-columns: 1fr; }
  summary { font-size: 18px; }
  .answer { padding-right: 0; }
}
@media (max-width: 420px) {
  .area .cols { grid-template-columns: 1fr; }
}

/* ===== Reduced motion: everything stands still and visible ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .wipe, .js .wipe img, .js .hero-title h1 .ln > span, .js .step .art rect.f { opacity: 1; transform: none; clip-path: none; }
  .slide.on .slide-img, .slide-img { transform: none; }
  [data-speed] { transform: none !important; }
}
