/* Cube IT AS — website stylesheet (draft 14).
   To change the look, start with the variables just below: colours, fonts, corners and page width.
   Everything else uses them. */

@font-face { font-family: "Raleway"; src: url("/fonts/raleway-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #1d3a70;        /* top of the page, dark sections (left side of the gradient) */
  --navy-deep: #192f50;   /* right side of the gradient, headings on white */
  --night: #04132b;       /* thin bar above the menu, footer */
  --blue: #1b76a8;        /* Cube blue, darkened for text and buttons */
  --cube: #3a96ca;        /* logo blue */
  --cube-light: #84c5e8;  /* logo light blue */
  --ink: #192f50;         /* headings */
  --text: #4a5870;        /* body text */
  --paper: #ffffff;
  --mist: #f4f8fc;        /* light sections */
  --chip: #dcecf6;        /* small labels */
  --line: #dfe7f0;
  --head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-s: 8px;
  --width: 1152px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--head); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 400; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: 1.35rem; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.mist { background: var(--mist); }
.eyebrow { font-family: var(--body); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); line-height: 1.6; }
.on-dark .eyebrow, .eyebrow.light { color: #fff; }
.lead { font-size: 1.1rem; max-width: 34rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--night); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--cube-light); outline-offset: 3px; }
.on-dark { color: #e6eef8; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.gradient { background-image: linear-gradient(101deg, var(--navy) 17%, var(--navy-deep) 94%); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 2px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-family: var(--body); font-size: 16px; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.btn.white:hover { background: var(--chip); border-color: var(--chip); }
.btn.outline { background: transparent; border-color: #fff; color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,.1); }
.btn.dark { background: #000; border-color: #000; color: #fff; min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn.dark:hover { background: var(--night); border-color: var(--night); }
.btn.small { min-height: 30px; padding: 4px 18px; font-size: 13px; text-transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-family: var(--body); font-size: 16px; text-decoration: none; }
.more::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px) rotate(45deg); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo svg { width: 34px; height: 34px; }
.logo span { font-family: var(--body); font-weight: 700; font-size: 14px; line-height: 1.05; letter-spacing: .14em; }

/* ---------- Thin bar above the menu ---------- */
.topbar { background: var(--night); color: #fff; font-family: var(--body); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; }
.topbar .right { display: flex; align-items: center; gap: 22px; }
.topbar .right > * + * { position: relative; }
.topbar .sep { width: 1px; height: 26px; background: rgba(255,255,255,.25); }
.topbar a.tick { color: #fff; text-underline-offset: 3px; }
.topbar .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cube-light); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(132,197,232,.7); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(132,197,232,.6); } 80%,100% { box-shadow: 0 0 0 9px rgba(132,197,232,0); } }

/* ---------- Menu ---------- */
.header { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s var(--ease), background-color .3s; }
.header.gradient { background-attachment: fixed; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; transition: height .3s var(--ease); }
.scrolled .header { box-shadow: 0 10px 30px rgba(4,19,43,.18); }
.scrolled .header .wrap { height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; font-family: var(--body); font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav .divider { width: 1px; height: 30px; background: rgba(255,255,255,.25); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .3s var(--ease), background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -8px; } .burger span::after { top: 8px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }
.nav .mobile-only { display: none; }

/* ---------- The thin lines in the margins ---------- */
.lines { position: absolute; inset: 6% calc(var(--gutter) * -0.1 - 0px) 6%; pointer-events: none; z-index: 0; display: flex; justify-content: space-between; max-width: calc(var(--width) + 2 * var(--gutter) + 120px); margin: 0 auto; left: 0; right: 0; padding: 0 calc(var(--gutter) / 2); }
.lines i { display: block; width: 2px; height: 200px; background: rgba(255,255,255,.28); transform-origin: top; will-change: transform; }
.lines i:last-child { align-self: flex-end; transform-origin: bottom; }
.lines.ink i { background: rgba(25,47,80,.35); width: 1.5px; }
.js .lines i { transform: translateY(var(--drift, 0px)) scaleY(0); transition: transform 1.4s var(--ease); }
.js .lines.in i { transform: translateY(var(--drift, 0px)) scaleY(1); }

/* ---------- Front page top ---------- */
.hero { position: relative; overflow: hidden; color: #e6eef8; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 552px); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); }
.hero h1 { color: #fff; margin: 14px 0 26px; }
.hero .eyebrow { color: #fff; }
.hero p.sub { font-size: 1.12rem; max-width: 28rem; color: #e6eef8; }
.hero .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); box-shadow: 0 30px 60px rgba(4,19,43,.35); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease; }
.stage img.on { opacity: 1; animation: drift 9s linear forwards; }
.stage img:first-child { opacity: 1; }
.js .stage[data-cycle] img:first-child:not(.on) { opacity: 0; }
.stage:not([data-cycle]) img { animation: drift 14s ease-out forwards; }
@keyframes drift { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.04) translate(-1.5%, -1%); } }
.stage .newest { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-s); background: rgba(255,255,255,.94); color: var(--ink); text-decoration: none; font-family: var(--body); font-size: 14px; line-height: 1.35; backdrop-filter: blur(6px); transition: transform .3s var(--ease); }
.stage .newest:hover { transform: translateY(-3px); }
.stage .newest small { display: block; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.stage .newest strong { display: block; font-family: var(--head); font-weight: 500; font-size: 17px; }
.stage .newest .arrow { margin-left: auto; font-size: 18px; color: var(--blue); }
.stage .dots { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.stage .dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.stage .dots i.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* sectors row */
.trust { position: relative; z-index: 1; padding-bottom: 56px; }
.trust p { font-family: var(--body); font-size: 18px; color: #fff; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 0; width: max-content; list-style: none; margin: 0; padding: 0; animation: slide 46s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 16px; padding-right: 48px; white-space: nowrap; font-family: var(--head); font-weight: 600; font-size: 23px; color: #fff; opacity: .92; }
.marquee li svg { width: 16px; height: 16px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- The Cube model (blue card with the animated drawing) ---------- */
.model-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 6vw, 80px); padding-top: clamp(36px, 5vw, 40px); padding-bottom: clamp(36px, 5vw, 40px); border-radius: var(--radius-s); background: var(--blue); color: #eaf5fb; }
.model-card h2 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.3rem); margin: 8px 0 26px; }
.model-card .eyebrow { color: #fff; font-weight: 700; letter-spacing: 0; }
.model-card p { font-size: 1.05rem; }
.model-card .more { color: #fff; margin-top: 26px; }
.model { margin: 0; position: relative; border-radius: var(--radius-s); overflow: hidden; background: linear-gradient(140deg, #0f2a4f, #04132b); aspect-ratio: 16 / 9.3; }
.model svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.model svg.tall { display: none; }
.model .t { font-family: var(--body); fill: #cfe3f2; font-size: 13px; }
.model .tb { font-family: var(--head); fill: #fff; font-size: 17px; font-weight: 500; }
.model .tag { font-family: var(--body); fill: #84c5e8; font-size: 11px; letter-spacing: .1em; }
.model .wire { stroke: rgba(132,197,232,.55); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; }
.model .doc { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.35); }
.model .row { fill: rgba(255,255,255,.18); }
.model .tickmark { fill: none; stroke: #84c5e8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.model .node { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.4); }
.model .pulse { fill: #84c5e8; }
.model .pulse { opacity: 0; }
.js .model.play .wire { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.model .mirror-row { transform-box: fill-box; transform-origin: left center; }
.js .model .mirror-row { transform: scaleX(0); }
.js .model .tickmark { stroke-dasharray: 20; stroke-dashoffset: 20; }
.js .model.play .mirror-row { animation: row 8s var(--ease) infinite; animation-delay: calc(var(--i) * .45s); }
.js .model.play .tickmark { animation: tick 8s var(--ease) infinite; animation-delay: calc(var(--i) * .45s + .3s); }
.js .model.play .pulse { animation: pulseL 8s ease-in-out infinite; }
.js .model.play .pulse.r { animation-name: pulseR; }
@keyframes row { 0% { transform: scaleX(0); } 12%, 82% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }
@keyframes tick { 0%, 8% { stroke-dashoffset: 20; } 16%, 82% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 20; } }
@keyframes pulseL { 0% { opacity: 0; transform: translateX(0); } 5% { opacity: 1; } 30% { opacity: 1; transform: translateX(var(--run)); } 36%, 100% { opacity: 0; transform: translateX(var(--run)); } }
@keyframes pulseR { 0%, 4% { opacity: 0; transform: translateX(0); } 9% { opacity: 1; } 34% { opacity: 1; transform: translateX(var(--run)); } 40%, 100% { opacity: 0; transform: translateX(var(--run)); } }
.model figcaption { position: absolute; left: 16px; bottom: 12px; font-family: var(--body); font-size: 12px; color: rgba(207,227,242,.75); }

/* ---------- Photo and text rows ---------- */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 450px); justify-content: space-between; align-items: center; gap: 48px; }
.feature + .feature { margin-top: clamp(64px, 8vw, 80px); }
.feature.flip { grid-template-columns: minmax(0, 450px) minmax(0, 560px); }
.feature.flip .frame { order: 2; }
.feature h2 { margin-bottom: 22px; }
.feature p { max-width: 24rem; }
.feature .more { margin-top: 40px; }
.frame { position: relative; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 560 / 394; background: var(--mist); }
.frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.js .frame { clip-path: inset(0 0 100% 0 round var(--radius-s)); transition: clip-path 1.2s var(--ease); }
.js .frame.in { clip-path: inset(0 0 0 0 round var(--radius-s)); }
.feature .lines { inset: -10% calc(var(--gutter) * -1) -10%; padding: 0; max-width: none; }

/* ---------- Why Cube cards ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head-row h2 { margin-top: 8px; font-size: clamp(1.9rem, 2.6vw, 2.25rem); }
.head-row p { max-width: 30rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; padding: 32px; border-radius: 4px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(25,47,80,.1); }
.card .fig { font-family: var(--head); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.4rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.card .fig small { font-size: .45em; font-weight: 400; margin-left: 4px; }
.card p.txt { margin-top: 24px; }
.card .who { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 32px; }
.card .who svg { width: 44px; height: 44px; flex: none; }
.card .who b { display: block; font-family: var(--body); font-size: 18px; color: var(--blue); }
.card .who span { font-size: 15px; }

/* ---------- Dark band ---------- */
.band { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 9vw, 110px) 0; }
.band .bg { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; opacity: .16; transform: translateY(var(--py, 0px)); mix-blend-mode: luminosity; }
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: clamp(2.2rem, 3.4vw, 3rem); color: #fff; }
.band p { max-width: 36rem; margin: 28px auto 0; color: #e6eef8; }
.band .btn { margin-top: 44px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 552px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how h2 { font-size: clamp(1.9rem, 2.6vw, 2.25rem); margin: 8px 0 22px; }
.checks { list-style: none; margin: 32px 0 40px; padding: 0; font-family: var(--body); font-size: 16px; color: var(--ink); }
.checks li { position: relative; padding-left: 30px; margin-top: 14px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 7px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.checks li b { display: block; }
.checks li span { color: var(--text); font-family: var(--head); font-size: 15px; }
.js .checks li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
.js .in .checks li, .js .checks.in li { opacity: 1; transform: none; }
.how .frame { aspect-ratio: 1; }

/* ---------- Assignments (cards) ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.job { display: flex; flex-direction: column; padding: 24px; border-radius: 4px; background: var(--mist); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.job:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(25,47,80,.1); }
.job .chip { align-self: flex-start; padding: 4px 14px; border-radius: 2px; background: var(--chip); color: var(--blue); font-family: var(--body); font-size: 13px; text-transform: uppercase; }
.job h3 { margin-top: 18px; color: var(--blue); text-transform: uppercase; font-size: 19px; line-height: 1.35; }
.job .meta { margin-top: 8px; font-size: 16px; }
.job .closed { display: inline-block; margin-left: 8px; font-family: var(--body); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); border: 1px solid var(--line); padding: 1px 8px; vertical-align: 3px; }
.job .more { margin-top: auto; padding-top: 28px; }

/* ---------- Contact band ---------- */
.reach { text-align: center; padding: clamp(72px, 8vw, 90px) 0; }
.reach h2 { color: #fff; font-size: clamp(2.2rem, 3.4vw, 3rem); }
.reach .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.reach .field { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1px solid #fff; border-radius: 2px; color: #fff; font-family: var(--body); font-size: 17px; text-decoration: none; transition: background .25s; }
.reach .field:hover { background: rgba(255,255,255,.1); }
.reach .note { margin-top: 26px; font-family: var(--body); font-size: 15px; color: #c9d7ea; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #c9d4e3; padding: 80px 0 40px; font-size: 17px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; }
.footer address { font-style: normal; margin-top: 26px; line-height: 1.6; }
.footer address a { display: block; color: #fff; font-family: var(--body); margin-top: 12px; }
.footer h4 { color: #fff; font-family: var(--head); font-weight: 600; font-size: 18px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer ul a { text-decoration: none; transition: color .2s; }
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-cta { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 48px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: #fff; }

/* ---------- Inner pages ---------- */
.page-top { position: relative; overflow: hidden; }
.page-top .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding-bottom: clamp(56px, 7vw, 88px); }
.page-top .stage { aspect-ratio: 1; }
.page-top.plain .hero-grid { grid-template-columns: 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips span { display: inline-block; padding: 6px 16px; border-radius: 2px; background: var(--chip); color: var(--blue); font-family: var(--body); font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.chips a:hover { background: var(--blue); color: #fff; }
.area { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.area h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.area .num { display: block; font-family: var(--body); font-size: 14px; color: var(--blue); letter-spacing: .08em; margin-bottom: 10px; }
.area .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.area h3 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 12px; }
.area ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.area li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.faq { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.faq:first-child { border-top: 0; }
.faq h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 24px; max-width: 42rem; }
.faq .answer p + p, .faq .answer ul { margin-top: 12px; }
.faq .answer ul { padding-left: 20px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; padding: 28px; border-radius: 4px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(25,47,80,.1); }
.person .initials { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(101deg, var(--navy), var(--navy-deep)); color: #fff; font-family: var(--body); font-weight: 700; letter-spacing: .06em; }
.person h3 { margin-top: 22px; font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--blue); }
.person .role { margin-top: 4px; }
.person .ask { margin-top: 14px; font-size: 15px; }
.person .links { margin-top: auto; padding-top: 20px; font-family: var(--body); font-size: 15px; }
.person .links a { display: block; color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-lines { display: grid; gap: 10px; margin-top: 32px; font-family: var(--body); }
.contact-lines a { color: var(--ink); font-size: 20px; text-underline-offset: 4px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: 4px; }
.contact-form label { display: grid; gap: 8px; font-family: var(--body); font-size: 15px; color: var(--ink); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #c8d4e2; border-radius: 2px; font: inherit; font-family: var(--head); font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,118,168,.18); }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 2px; font-family: var(--body); font-size: 15px; }
.notice.ok { background: #e2f3ea; color: #135c37; }
.notice.err { background: #fbe9e7; color: #8a2a1c; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--blue); }

/* ---------- Rise-in as sections come into view ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero .stage { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius)); animation: open 1.3s var(--ease) .35s forwards; }
@keyframes open { to { clip-path: inset(0 0 0 0 round var(--radius)); } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .topbar .hide-m { display: none; }
  .cards, .jobs { gap: 20px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .topbar { display: none; }
  .header .wrap, .scrolled .header .wrap { height: 72px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; background: linear-gradient(170deg, var(--navy), var(--navy-deep)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .menu-open body { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 18px 0; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav ul a::after { display: none; }
  .nav .divider { display: none; }
  .nav .btn { margin-top: 28px; min-height: 52px; }
  .nav .mobile-only { display: block; }
  .nav .mobile-only .btn { width: 100%; }
  .nav .mobile-only .btn.outline { margin-top: 12px; }
  .hero-grid, .page-top .hero-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .hero .buttons { flex-direction: column; margin-top: 36px; }
  .hero .buttons .btn { width: 100%; }
  .stage { max-width: 560px; }
  .page-top .stage { display: none; }
  .lines { display: none; }
  .marquee li { font-size: 19px; padding-right: 36px; }
  .model-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .model { aspect-ratio: 340 / 530; }
  .model svg.wide { display: none; }
  .model svg.tall { display: block; }
  .feature, .how, .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .frame { order: 0; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .cards, .jobs { grid-template-columns: 1fr; }
  .area, .faq { grid-template-columns: 1fr; gap: 24px; }
  .area .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cta { justify-content: flex-start; flex-wrap: wrap; }
  .area .cols { grid-template-columns: 1fr; }
  .stage .newest { left: 10px; right: 10px; bottom: 10px; }
}

/* ---------- Less motion when the visitor asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; }
  .marquee li[aria-hidden] { display: none; }
  .stage img, .stage img.on { animation: none; transform: none; }
  .js .model .mirror-row { transform: none; }
  .js .model .tickmark { stroke-dashoffset: 0; }
}
