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

@font-face { font-family: "Charis SIL"; src: url("/fonts/charis-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Charis SIL"; src: url("/fonts/charis-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1b1b1b;          /* headings */
  --text: #2d2d2d;         /* body text */
  --muted: #5c6670;        /* secondary text */
  --blue: #3a96ca;         /* Cube blue: buttons, squares, accents */
  --blue-dark: #1f6f9f;    /* links */
  --blue-light: #84c5e8;   /* logo light blue */
  --pale: #dfe5ec;         /* logo pale square */
  --navy: #061631;         /* button text, dark band */
  --tint: #e3f1f9;         /* the light blue band */
  --grey: #f3f5f7;         /* card backgrounds, footer */
  --line: #dcdfe3;         /* thin lines */
  --paper: #ffffff;
  --serif: "Charis SIL", Charter, "Bitstream Charter", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --width: 1340px;
  --gutter: clamp(16px, 3.5vw, 50px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(2.1rem, 4vw, 3.45rem); line-height: 1.18; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.25; }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 7vw, 100px) 0; }
.kicker { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 28px; }
.lead { font-size: 1.1rem; line-height: 1.75; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; background: var(--blue); color: var(--navy); font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--blue); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:hover::after { transform: translateX(4px) rotate(45deg); }
.btn.ext::after { width: 13px; height: 13px; border: 0; transform: none; background: currentColor; -webkit-mask: var(--ext) center / contain no-repeat; mask: var(--ext) center / contain no-repeat; }
.btn.ext:hover::after { transform: translate(2px, -2px); }
.btn.outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.btn.white:hover { background: var(--blue); border-color: var(--blue); color: var(--navy); }
:root { --ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9zM1 3h5v2H3v8h8v-3h2v5H1z'/%3E%3C/svg%3E"); }
.more { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.more::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--blue); border-top: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px) rotate(45deg); }

/* ---------- Cube squares (the logo's grid, used as the site's one graphic) ---------- */
.sq { display: grid; grid-template-columns: repeat(var(--cols, 3), var(--s, 80px)); gap: calc(var(--s, 80px) * .26); pointer-events: none; }
.sq i { display: block; width: var(--s, 80px); height: var(--s, 80px); background: var(--blue); }
.sq i.l { background: var(--blue-light); }
.sq i.p { background: var(--pale); }
.sq i.w { background: #fff; }
.sq i.o { background: transparent; }
.js .sq.anim i { transform: scale(0); transform-origin: 0 100%; }
.js .sq.anim.in i { transform: scale(1); transition: transform .7s var(--ease); }
.sq.anim.in i:nth-child(2) { transition-delay: .06s; } .sq.anim.in i:nth-child(3) { transition-delay: .12s; }
.sq.anim.in i:nth-child(4) { transition-delay: .18s; } .sq.anim.in i:nth-child(5) { transition-delay: .24s; }
.sq.anim.in i:nth-child(6) { transition-delay: .30s; } .sq.anim.in i:nth-child(7) { transition-delay: .36s; }
.sq.anim.in i:nth-child(8) { transition-delay: .42s; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.util { display: flex; justify-content: flex-end; gap: 26px; font-size: .85rem; height: 34px; align-items: flex-end; overflow: hidden; transition: height .3s var(--ease), opacity .3s; }
.util a { text-decoration: none; color: var(--text); }
.util a:hover { text-decoration: underline; }
.util b { font-weight: 700; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 24px; transition: height .3s var(--ease); }
.slim .util { height: 0; opacity: 0; }
.slim .bar { height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { display: flex; flex-direction: column; font-size: .7rem; letter-spacing: .22em; line-height: 1.25; font-weight: 700; padding-left: 11px; border-left: 1px solid var(--line); }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; text-decoration: none; font-size: 1.08rem; color: var(--ink); padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); 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); }
.head-cta { padding: 11px 18px; font-size: .95rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 9px; width: 26px; height: 2px; background: var(--ink); content: ""; transition: transform .25s, background .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -8px; }
.burger span::after { left: 0; 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); }
.drawer { display: none; }

@media (max-width: 980px) {
  .util, .nav, .head-cta { display: none; }
  .bar { height: 60px; }
  .burger { display: block; }
  .drawer { display: block; position: fixed; inset: 61px 0 0 0; background: #fff; padding: 12px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .menu-open .drawer { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .menu-open body { overflow: hidden; }
  .drawer ul { list-style: none; margin: 0 0 28px; padding: 0; }
  .drawer li { border-bottom: 1px solid var(--line); }
  .drawer li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 400 1.6rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
  .drawer li a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-top: 2px solid var(--blue); transform: rotate(45deg); }
  .drawer .contact-mini { margin-top: 24px; font-size: .95rem; display: grid; gap: 6px; }
  .drawer .contact-mini a { text-decoration: none; }
}

/* ---------- Home hero: photos that cross-fade, text on the light side ---------- */
.hero { position: relative; height: clamp(520px, 41vw, 640px); overflow: hidden; background: #dfe8ef; }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 60%); transform: scale(1.08); }
.hero .slide.on img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.1) translateX(0); } to { transform: scale(1.02) translateX(-1.2%); } }
.hero .slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.86) 30%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 62%); }
.hero .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-text { max-width: 600px; }
.hero h1 { font-size: clamp(2.3rem, 3.9vw, 3.45rem); }
.hero .sub { margin-top: 22px; font-size: 1.12rem; max-width: 33rem; color: var(--text); }
.hero .btn { margin-top: 34px; }
.hero .sq { position: absolute; z-index: 2; --s: clamp(46px, 5.2vw, 82px); --cols: 4; right: 6%; bottom: 13%; }
.hero-ctrl { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - var(--width)) / 2 + var(--gutter))); bottom: 26px; display: flex; align-items: center; gap: 10px; }
.hero-ctrl .bars { display: flex; gap: 8px; }
.hero-ctrl .bars button { width: 46px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-ctrl .bars button::before, .hero-ctrl .bars button::after { content: ""; position: absolute; left: 0; top: 8px; height: 3px; width: 100%; background: rgba(27,27,27,.18); }
.hero-ctrl .bars button::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero-ctrl .bars button.done::after { transform: scaleX(1); }
.hero-ctrl .bars button.on::after { animation: fill var(--t, 7s) linear forwards; }
.paused .hero-ctrl .bars button.on::after { animation-play-state: paused; }
.paused .hero .slide.on img { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-ctrl .pause { width: 30px; height: 30px; border: 1px solid rgba(27,27,27,.35); background: rgba(255,255,255,.7); cursor: pointer; position: relative; padding: 0; }
.hero-ctrl .pause::before, .hero-ctrl .pause::after { content: ""; position: absolute; top: 9px; width: 3px; height: 10px; background: var(--ink); }
.hero-ctrl .pause::before { left: 10px; } .hero-ctrl .pause::after { left: 15px; }
.paused .hero-ctrl .pause::before { left: 11px; width: 0; height: 0; background: none; border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.paused .hero-ctrl .pause::after { display: none; }
.js .hero-text > * { opacity: 0; transform: translateY(18px); }
.js .loaded.hero-text > * { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s var(--ease); }
.loaded.hero-text > :nth-child(2) { transition-delay: .12s; } .loaded.hero-text > :nth-child(3) { transition-delay: .24s; }

@media (max-width: 820px) {
  .hero { height: auto; background: var(--grey); }
  .hero .wrap { height: auto; padding-top: 34px; padding-bottom: 34px; }
  .hero .slides { position: relative; height: 62vw; min-height: 230px; order: 2; }
  .hero .slides::after { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero .wrap { order: 1; }
  .hero h1 { font-size: 1.95rem; }
  .hero .sub { font-size: 1rem; margin-top: 14px; }
  .hero .btn { margin-top: 24px; }
  .hero .sq { --s: 30px; --cols: 4; right: 16px; bottom: 18px; top: auto; }
  .hero-ctrl { bottom: auto; top: 14px; left: 14px; }
  .hero-ctrl .bars button { width: 30px; }
}

/* ---------- Three doors under the hero ---------- */
.trio-sec { padding-top: 44px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door { text-decoration: none; display: block; }
.ph { position: relative; overflow: hidden; background: var(--grey); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.door .ph { aspect-ratio: 16 / 9.4; }
.door h3 { margin-top: 22px; }
.door p { margin-top: 12px; }
.door:hover .ph img, .card:hover .ph img { transform: scale(1.045); }
.door:hover h3, .card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ph .sq { position: absolute; --s: 22px; --cols: 3; }
.ph .sq.br { right: 16px; bottom: 16px; }
.ph .sq.tl { left: 16px; top: 16px; }
.tag { position: absolute; top: 0; right: 0; background: #fff; font-size: .85rem; padding: 4px 10px; color: var(--ink); }

/* A photo that is uncovered as it scrolls in (a white cover slides away) */
.js .uncover .ph::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: right; transition: transform 1s var(--ease); z-index: 2; }
.js .uncover.in .ph::after { transform: scaleX(0); }
.js .uncover .ph img { transform: scale(1.12); }
.js .uncover.in .ph img { transform: scale(1); transition: transform 1.4s var(--ease); }
.js .uncover.in:hover .ph img { transform: scale(1.045); transition-duration: 1.1s; }

/* Fade and rise */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s var(--ease); }
.js .stagger > .reveal.in:nth-child(2) { transition-delay: .1s; }
.js .stagger > .reveal.in:nth-child(3) { transition-delay: .2s; }
.js .stagger > .reveal.in:nth-child(4) { transition-delay: .3s; }

/* ---------- Key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.figures div { border-top: 1px solid var(--ink); padding-top: 18px; }
.figures b { display: block; font: 400 clamp(2.3rem, 3.6vw, 3.2rem)/1.05 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 10px; color: var(--muted); font-size: .98rem; }
.figures .bar-line { display: block; height: 3px; width: 0; background: var(--blue); margin-top: 16px; transition: width 1.4s var(--ease); }
.figures .in .bar-line { width: 44px; }

/* ---------- Photo and text side by side ---------- */
.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split .ph { aspect-ratio: 5 / 4.4; }
.split .ph img { height: 118%; position: relative; top: -9%; will-change: transform; }
.split h2 { margin-bottom: 24px; }
.split .lead { margin-bottom: 28px; }
.points { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.points b { color: var(--ink); }

/* ---------- The light blue band ---------- */
.band { background: var(--tint); padding: clamp(40px, 5vw, 64px) clamp(24px, 4.5vw, 64px); position: relative; overflow: hidden; }
.band h2 { font: 700 clamp(1.6rem, 2.5vw, 2.15rem)/1.25 var(--sans); }
.band .h-sub { font: 400 clamp(1.4rem, 2.4vw, 2.15rem)/1.3 var(--sans); color: var(--ink); margin-top: 4px; max-width: 46rem; }
.steps { list-style: none; margin: 44px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: rgba(6,22,49,.12); }
.steps::after { content: ""; position: absolute; left: 0; top: 19px; height: 2px; width: 100%; background: var(--navy); transform-origin: left; transform: scaleX(var(--p, 1)); }
.steps li { position: relative; }
.steps .n { z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; background: var(--tint); border: 2px solid var(--navy); color: var(--navy); font-weight: 700; font-size: .9rem; position: relative; transition: background .3s, color .3s; }
.steps li.on .n { background: var(--navy); color: #fff; }
.steps h3 { font: 700 1.05rem/1.35 var(--sans); margin: 18px 0 8px; }
.steps p { font-size: .97rem; }
.band .sq { position: absolute; right: clamp(24px, 4.5vw, 64px); top: clamp(36px, 5vw, 60px); --s: 22px; --cols: 3; }

/* ---------- Sector cards (featured layout) ---------- */
.cards { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--grey); text-decoration: none; }
.card .ph { aspect-ratio: 16 / 9.2; }
.card.big { grid-row: span 1; }
.card.big .ph { aspect-ratio: auto; height: 100%; min-height: 300px; flex: 1; }
.card .body { padding: 20px 18px 30px; }
.card h3 { font-size: clamp(1.3rem, 1.7vw, 1.65rem); }
.card p { margin-top: 10px; font-size: .98rem; }
.cards.row2 { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.card.ask { background: var(--tint); justify-content: space-between; }
.card.ask .body { padding: 28px 24px; }
.card.ask .sq { --s: 26px; --cols: 3; margin: 28px 24px 0; }

/* ---------- Latest assignments ---------- */
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.job { background: var(--grey); padding: 22px 20px 26px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid transparent; transition: border-color .25s, background .25s; }
.job:hover { border-top-color: var(--blue); background: #eaeef2; }
.job .field { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-dark); }
.job h3 { font-size: 1.35rem; overflow-wrap: anywhere; }
.job .meta { font-size: .92rem; color: var(--muted); }
.job .state { margin-top: auto; padding-top: 10px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.job .state.closed { color: var(--muted); font-weight: 400; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Night call to action ---------- */
.night { position: relative; overflow: hidden; background: var(--navy); }
.night .bg { position: absolute; inset: -12% 0; }
.night .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; will-change: transform; }
.night .wrap { position: relative; padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.night .box { background: #fff; max-width: 560px; padding: clamp(28px, 3.5vw, 48px); }
.night .box p { margin: 16px 0 22px; }
.night .phone { display: block; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--serif); color: var(--ink); text-decoration: none; margin-bottom: 26px; }
.night .phone:hover { color: var(--blue-dark); }
.night .buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page top (inner pages) ---------- */
.page-top { background: var(--grey); }
.page-top .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 360px; gap: 0; padding-right: 0; max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--width)) / 2 + var(--gutter))); }
.page-top .txt { padding: 54px 48px 54px 0; display: flex; flex-direction: column; justify-content: center; }
.crumb { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.crumb a { color: var(--muted); }
.page-top p.intro { margin-top: 18px; font-size: 1.1rem; max-width: 34rem; }
.page-top .ph { min-height: 300px; }
.page-top .ph img { position: absolute; inset: 0; }
.page-top .ph .sq { left: -1px; bottom: 28px; right: auto; --s: 30px; --cols: 3; }
.plain-top { padding: 54px 0 10px; }

/* ---------- Competence ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips span { padding: 9px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: .95rem; color: var(--ink); transition: background .2s, color .2s; }
.chips a:hover { background: var(--ink); color: #fff; }
.area { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; }
.area .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.area h4 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.area ul { list-style: none; margin: 0; padding: 0; font-size: .98rem; line-height: 1.85; }
.area ul.many { columns: 2; column-gap: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 40px 0 56px; }
.faq + .faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 400 1.3rem/1.35 var(--serif); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq summary:hover { color: var(--blue-dark); }
.faq .answer { padding: 0 40px 26px 0; display: grid; gap: 12px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.js .faq details[open] .answer { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person { background: var(--grey); padding: 26px 22px 28px; display: flex; flex-direction: column; }
.person .sq { --s: 12px; --cols: 3; margin-bottom: 26px; }
.person h3 { font-size: 1.4rem; }
.person .role { font-weight: 700; color: var(--ink); margin-top: 4px; }
.person .ask { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.person .links { display: grid; gap: 4px; margin-top: 18px; font-size: .95rem; }
.person .links a { color: var(--blue-dark); text-decoration: none; }
.person .links a:hover { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); }
.contact-lines { display: grid; gap: 6px; margin-top: 26px; font-size: 1.05rem; }
.contact-lines a { color: var(--ink); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 13px 14px; border: 1px solid #8a9199; border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; }
.notice.ok { background: var(--tint); color: var(--navy); }
.notice.err { background: #fdeceb; color: #8a1c13; }

/* ---------- Prose (privacy, 404) ---------- */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 26px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose a { color: var(--blue-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--grey); border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 100px); }
.footer.flush { margin-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 40px 0 30px; border-bottom: 1px solid #cfd4d9; }
.foot-links a { text-decoration: none; font-size: 1.08rem; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 24px 0 48px; font-size: .9rem; color: var(--text); }
.foot-base .legal { display: grid; gap: 14px; }
.foot-base .small { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.foot-base a { color: var(--text); text-decoration: none; }
.foot-base a:hover { text-decoration: underline; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .trio, .figures, .split, .cards, .cards.row2, .form-grid, .area, .area .cols, .faq { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .trio { gap: 40px; }
  .card.big .ph { aspect-ratio: 16 / 10; height: auto; min-height: 0; flex: none; }
  .cards { gap: 22px; } .cards.row2 { margin-top: 22px; }
  .points li { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin: 30px 0; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .steps h3 { margin: 8px 0 4px; }
  .steps li p { grid-column: 2; }
  .band .sq { display: none; }
  .jobs { grid-template-columns: 1fr; gap: 14px; }
  .night .box { max-width: none; }
  .page-top .wrap { grid-template-columns: 1fr; padding-right: var(--gutter); padding-left: var(--gutter); }
  .page-top .txt { padding: 34px 0 28px; }
  .page-top .ph { min-height: 220px; margin: 0 calc(var(--gutter) * -1); }
  .area { gap: 18px; padding: 34px 0; }
  .faq { gap: 18px; padding: 28px 0 40px; }
  .team { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .foot-base { grid-template-columns: 1fr; }
  .foot-links { gap: 12px 22px; }
  .foot-links a { font-size: 1rem; }
}

/* ---------- Reduced motion: everything in its end state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-text > *, .js .sq.anim i, .js .uncover .ph img { opacity: 1 !important; transform: none !important; }
  .js .uncover .ph::after { display: none; }
  .hero .slide img { transform: none; }
}
