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

@font-face { font-family: "Albert Sans"; src: url("/fonts/albert-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/fonts/albert-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/fonts/albert-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1b2d6b;          /* deep Cube blue: dark bands, header, footer, text */
  --paper: #eef2f6;        /* page background */
  --card: #dde6ee;         /* cards */
  --white: #ffffff;
  --sky: #84c5e8;          /* logo light blue: accents on the dark blue */
  --cube: #3a96ca;         /* logo blue */
  --label: #22709f;        /* small labels on light backgrounds */
  --frost: #dfe5ec;        /* logo pale grey */
  --muted: #4a5a82;        /* secondary text on light */
  --font: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --corner: 60px;          /* the rounded bottom-right corner on cards and boxes */
  --width: 1280px;
  --pad: 80px;             /* page margin on desktop */
  --gap: 52px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
@media (max-width: 1149px) { :root { --pad: 40px; --gap: 32px; --corner: 40px; } }
@media (max-width: 749px)  { :root { --pad: 20px; --gap: 24px; --corner: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { display: block; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol { margin: 0; }
h1 { font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.18; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }
.wrap { max-width: calc(var(--width) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.third { margin-left: calc((100% + var(--gap)) / 3); }           /* text that starts at the second column, like the menu */
@media (max-width: 749px) { .third { margin-left: 0; } }
.label { display: block; font-size: 15px; color: var(--label); }
.on-ink .label, .ink .label, .split .label { color: var(--sky); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--cube); outline-offset: 3px; }
.ink { background: var(--ink); color: var(--paper); }
.round { border-bottom-right-radius: var(--corner); }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.sec-title { margin-bottom: clamp(32px, 5vw, 64px); }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }

/* ---------- Arrows, links and buttons ---------- */
.arr { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(5px); }
a:hover .arr.up, a:hover .arr.ne { transform: translate(3px, -3px); }
a:hover .arr.down { transform: translateY(4px); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 20px 32px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 20px; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ink .btn, .on-ink .btn { color: var(--sky); border-color: var(--sky); }
.ink .btn:hover, .on-ink .btn:hover { background: var(--sky); color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: var(--cube); border-color: var(--cube); }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--label); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; color: var(--paper); background: var(--ink); transition: background-color .35s, color .35s, box-shadow .35s; }
.header .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); align-items: center; padding-top: 44px; padding-bottom: 44px; transition: padding .45s var(--ease); }
.light-top .header { background: var(--paper); color: var(--ink); }
.scrolled .header { padding: 0; background: rgba(27, 45, 107, .97); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.scrolled .header .wrap { padding-top: 16px; padding-bottom: 16px; }
.logo { position: relative; z-index: 60; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; justify-self: start; }
.logo svg { width: 40px; height: 40px; flex: none; transition: transform .45s var(--ease); transform-origin: left center; }
.logo .word { transition: opacity .3s, transform .45s var(--ease); }
.logo small { font-size: 15px; font-weight: 400; opacity: .7; margin-left: 2px; letter-spacing: 0.02em; }
.scrolled .logo svg { transform: scale(.8); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav ul { list-style: none; padding: 0; display: flex; flex-wrap: nowrap; gap: 6px 20px; white-space: nowrap; }
.nav a { text-decoration: none; font-size: 20px; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .15s; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.nav .tel { font-size: 17px; opacity: .85; white-space: nowrap; }
@media (max-width: 1339px) { .nav .tel { display: none; } }
.burger { display: none; }
@media (max-width: 1149px) {
  .nav a { font-size: 18px; }
  .nav ul { gap: 6px 16px; }
  .nav .tel { display: none; }
}
@media (max-width: 899px) {
  .header .wrap { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
  .scrolled .header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 24px; gap: 11px; }
  .logo svg { width: 32px; height: 32px; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 60; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .2s; }
  .burger span { position: relative; }
  .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 { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 40px; padding: 110px var(--pad) 40px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; overflow-y: auto; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font-size: 30px; line-height: 1.35; }
  .nav .tel { display: inline; font-size: 20px; color: var(--sky); }
  .nav li { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity .3s; }
  .menu-open .nav li { opacity: 1; transform: none; }
  .menu-open .nav li:nth-child(2) { transition-delay: .04s; } .menu-open .nav li:nth-child(3) { transition-delay: .08s; }
  .menu-open .nav li:nth-child(4) { transition-delay: .12s; } .menu-open .nav li:nth-child(5) { transition-delay: .16s; }
  .menu-open .nav li:nth-child(6) { transition-delay: .2s; }
  .menu-open .header { color: var(--paper); }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* ---------- Home: top ---------- */
.hero { position: relative; }
.hero-photo { background: linear-gradient(var(--ink) 50%, transparent 50%); }
.hero-band { padding: clamp(24px, 6vw, 70px) 0 clamp(40px, 7vw, 100px); color: var(--paper); }
.hero h1 { max-width: 15em; }
.hero h1 .line { display: block; }
.stage { position: relative; aspect-ratio: 16 / 7.2; overflow: hidden; background: #0d1736; }
.stage .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.stage .slide.on { opacity: 1; }
.stage .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.stage .slide.on img, .stage .slide.was img { animation: drift 11s linear forwards; }
.stage .slide:nth-child(2n) img { animation-name: drift2; }
@keyframes drift  { from { transform: scale(1.08) translate3d(-1.2%, 0, 0); } to { transform: scale(1.14) translate3d(1.2%, -1%, 0); } }
@keyframes drift2 { from { transform: scale(1.14) translate3d(1%, -.8%, 0); } to { transform: scale(1.08) translate3d(-1%, .6%, 0); } }
.stage-cap { position: absolute; left: 24px; bottom: 20px; z-index: 2; display: flex; gap: 14px; align-items: center; color: var(--white); font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.stage-cap .bars { display: flex; gap: 6px; }
.stage-cap .bars i { display: block; width: 28px; height: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.stage-cap .bars i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.stage-cap .bars i.on::after { animation: bar 7s linear forwards; }
.stage-cap .bars i.done::after { transform: scaleX(1); }
@keyframes bar { to { transform: scaleX(1); } }
.ask { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 70px; padding-left: 70px; align-items: start; }
.ask-in { display: grid; grid-template-columns: 1fr auto; gap: var(--gap); align-items: stretch; }
.ask h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.ticker { position: relative; display: block; height: 76px; background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; border-radius: 2px; }
.ticker small { position: absolute; left: 22px; top: 12px; font-size: 13px; color: var(--label); }
.ticker .item { position: absolute; left: 22px; right: 22px; top: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 19px; transition: transform .6s var(--ease), opacity .4s; }
.ticker .item ~ .item { opacity: 0; }
.ticker .item.in-up { transform: translateY(0); opacity: 1; }
.ticker .item.out-up { transform: translateY(-120%); opacity: 0; }
.ticker .item.below { transform: translateY(120%); opacity: 0; }
.ticker .item .meta { color: var(--muted); font-size: 16px; }
@media (max-width: 1149px) {
  .ask { grid-template-columns: 1fr; padding: 40px; gap: 24px; }
}
@media (max-width: 749px) {
  .stage { aspect-ratio: 4 / 3; }
  .ask { padding: 28px 24px 36px; }
  .ask-in { grid-template-columns: 1fr; gap: 16px; }
  .ask .btn { justify-content: center; }
  .stage-cap { left: 14px; bottom: 12px; font-size: 13px; }
  .stage-cap .bars i { width: 18px; }
}

/* ---------- Intro text ---------- */
.intro p { font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.35; max-width: 26em; }
.intro .more { margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 19px; }

/* ---------- Cards (photo on top, card below with the rounded corner) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px var(--gap); }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card .pic { position: relative; aspect-ratio: 392 / 270; overflow: hidden; background: var(--card); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .pic img { transform: scale(1.04); }
.card .body { flex: 1; background: var(--card); border-bottom-right-radius: var(--corner); padding: 40px 40px 52px; }
.card .label { margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 18px; line-height: 1.5; }
.card .arr { margin-top: 14px; font-size: 18px; }
.card.plain .body { padding-top: 40px; }
.card.feature .body { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.card.feature .glyph { width: 74px; height: 74px; margin-bottom: 18px; }
@media (max-width: 1149px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 48px var(--gap); } .card .body { padding: 28px 28px 40px; } }
@media (max-width: 749px)  { .cards { grid-template-columns: 1fr; gap: 28px; } .card .body { padding: 24px 25px 34px; } }

/* ---------- Figures band (pictograms built from the Cube grid) ---------- */
.figures { padding: clamp(56px, 7vw, 96px) 0; }
.figures h2 { text-align: center; font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: clamp(40px, 5vw, 72px); }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px var(--gap); text-align: center; }
.fig svg { width: 76px; height: 76px; margin: 0 auto 22px; overflow: visible; }
.fig b { display: block; font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.fig span { display: block; font-size: 17px; max-width: 15em; margin: 0 auto; opacity: .9; }
.fig svg rect { transform-box: fill-box; transform-origin: center; }
.js .fig svg rect { opacity: 0; transform: translateY(14px) scale(.6); transition: opacity .5s, transform .7s var(--ease); }
.js .fig.in svg rect { opacity: 1; transform: none; }
@media (max-width: 899px) { .figs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split: dark box with text + photo, heading above (rounded at the outer corner) ---------- */
.split-head { margin-bottom: clamp(28px, 4vw, 54px); max-width: 30em; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom-right-radius: var(--corner); overflow: hidden; background: var(--ink); color: var(--paper); }
.split .txt { padding: 70px; display: flex; flex-direction: column; gap: 28px; }
.split .txt h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.2; }
.split .txt p { font-size: 20px; line-height: 1.45; }
.split .txt .btn { align-self: flex-start; margin-top: auto; }
.split .pic { position: relative; min-height: 420px; overflow: hidden; }
.split .pic img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.split.flip .pic { order: -1; }
.split + .split-head { margin-top: clamp(64px, 8vw, 110px); }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split .txt { padding: 36px 28px 44px; }
  .split .pic { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
}

/* steps in How it works */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(238,242,246,.22); font-size: 18px; line-height: 1.45; }
.steps li:last-child { border-bottom: 1px solid rgba(238,242,246,.22); }
.steps small { color: var(--sky); font-size: 15px; padding-top: 3px; }
.steps b { font-weight: 500; display: block; }

/* ---------- Latest assignments carousel ---------- */
.arrows { display: flex; gap: 11px; }
.arrows button { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; font: inherit; font-size: 16px; transition: background-color .2s, color .2s, opacity .2s; }
.arrows button:hover { background: var(--ink); color: var(--paper); }
.arrows button:disabled { opacity: .3; pointer-events: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.job .glyph { width: 46px; height: 46px; margin-bottom: 26px; }
.job .body { padding-top: 40px; display: flex; flex-direction: column; min-height: 330px; }
.job h3 { margin-bottom: 12px; }
.job .meta { font-size: 16px; color: var(--muted); }
.job .tags { margin-top: auto; padding-top: 22px; font-size: 15px; color: var(--muted); }
.job .closed { display: inline-block; margin-left: 8px; font-size: 13px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 99px; vertical-align: 3px; color: var(--muted); }
@media (max-width: 1149px) { .rail { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 749px)  { .rail { grid-auto-columns: 84%; gap: 16px; } .arrows { display: none; } .job .body { min-height: 280px; } }

/* ---------- Page top for inner pages (light) ---------- */
.page-top { padding: clamp(24px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.page-top h1 { max-width: 16em; }
.page-top p.sub { margin-top: 20px; font-size: 20px; max-width: 32em; }
.dark-top .page-top { background: var(--ink); color: var(--paper); }
.page-photo { position: relative; aspect-ratio: 16 / 6.5; overflow: hidden; }
.page-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.overlap { position: relative; }
.dark-top .overlap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--ink); z-index: -1; }
@media (max-width: 749px) { .page-photo { aspect-ratio: 4 / 3; } }

/* sidebar layout (Competence, FAQ): a dark box of links on the left, text on the right */
.side-layout { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); align-items: start; }
.side-box { position: sticky; top: 110px; padding: 34px 34px 40px; }
.side-box p { font-size: 19px; line-height: 1.35; margin-bottom: 26px; }
.side-box ul { list-style: none; padding: 0; }
.side-box li a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(238,242,246,.25); text-decoration: none; font-size: 17px; }
.side-box li:last-child a { border-bottom: 1px solid rgba(238,242,246,.25); }
.side-box li a:hover, .side-box li a.on { color: var(--sky); }
@media (max-width: 899px) {
  .side-layout { grid-template-columns: 1fr; }
  .side-box { position: static; }
}

/* Competence areas */
.area { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(27,45,107,.18); }
.area:last-child { border-bottom: 0; margin-bottom: 0; }
.area h2 { margin-bottom: 30px; }
.area .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.area h3 { font-size: 15px; color: var(--label); margin-bottom: 10px; }
.area ul { list-style: none; padding: 0; font-size: 18px; line-height: 1.6; }
@media (max-width: 749px) { .area .cols { grid-template-columns: 1fr 1fr; } .area .cols > div:last-child { grid-column: 1 / -1; } .area .cols ul.many { columns: 2; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 16px; border: 1px solid var(--sky); color: var(--paper); border-radius: 99px; font-size: 16px; }

/* FAQ */
.faq-group + .faq-group { margin-top: 72px; }
.faq-group h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid rgba(27,45,107,.2); }
.faq details:last-child { border-bottom: 1px solid rgba(27,45,107,.2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 1; transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { overflow: hidden; }
.faq .answer > div { padding: 0 0 26px; max-width: 38em; font-size: 18px; }
.faq .answer p + p, .faq .answer p + ul { margin-top: 12px; }
.faq .answer ul { padding-left: 20px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.person { background: var(--card); border-bottom-right-radius: var(--corner); padding: 34px 30px 40px; display: flex; flex-direction: column; }
.person .mono { width: 64px; height: 64px; margin-bottom: 26px; }
.person h3 { font-size: 21px; }
.person .role { color: var(--label); font-size: 15px; margin: 4px 0 16px; }
.person .ask-me { font-size: 17px; margin-bottom: 18px; }
.person .links { margin-top: auto; display: grid; gap: 4px; font-size: 16px; }
.person .links a { text-decoration: none; }
.person .links a:hover { text-decoration: underline; }
@media (max-width: 1149px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 749px) { .team { grid-template-columns: 1fr; gap: 20px; } }

/* Contact form */
.form-box { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 70px; }
.form-box .lines { margin-top: 26px; display: grid; gap: 6px; font-size: 19px; }
.form-box .lines a { text-decoration: none; }
.form-box .lines a:hover { color: var(--sky); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.contact-form label { display: grid; gap: 8px; font-size: 15px; color: var(--sky); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 0; border-radius: 2px; padding: 16px 18px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 2px; font-size: 17px; }
.notice.ok { background: var(--sky); color: var(--ink); }
.notice.err { background: #f3d7d7; color: #6b1b1b; }
@media (max-width: 1149px) { .form-box { grid-template-columns: 1fr; padding: 40px; } }
@media (max-width: 749px) { .form-box { padding: 30px 24px 40px; } .contact-form { grid-template-columns: 1fr; } }

/* Plain text pages */
.prose { max-width: 40em; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.prose p { margin-bottom: 12px; }

/* ---------- Footer, with the Cube blocks that build up at the bottom ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 6vw, 80px); overflow: hidden; margin-top: clamp(64px, 8vw, 110px); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); font-size: 19px; line-height: 1.5; }
.foot-grid h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.foot-grid h2 + p { margin-top: 18px; max-width: 18em; opacity: .85; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--sky); }
.foot-grid .col { display: grid; gap: 22px; align-content: start; }
.foot-grid .col div { display: grid; }
.blocks { position: relative; margin-top: clamp(48px, 7vw, 90px); }
.blocks svg { display: block; width: min(76%, 1100px); height: auto; }
.blocks g { transform-box: fill-box; }
.js .blocks g { transform: translateY(102%); transition: transform 1.2s var(--ease); }
.js .blocks.in g { transform: none; }
.foot-base { position: absolute; right: var(--pad); bottom: 28px; display: flex; gap: 22px; font-size: 15px; opacity: .8; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 749px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; font-size: 18px; }
  .foot-base { position: static; padding: 0 0 22px; }
  .blocks svg { width: 100%; }
}

/* ---------- Scroll reveals (only with JavaScript; reduced motion shows everything at once) ---------- */
.js .rise { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform 1s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .wipe { position: relative; }
.js .wipe::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: top; transition: transform 1.1s var(--ease); z-index: 2; pointer-events: none; }
.js .wipe.in::after { transform: scaleY(0); }
.js .ink .wipe::after, .js .split .wipe::after { background: var(--ink); }
.js .hero h1 .line { opacity: 0; transform: translateY(-60px); animation: drop .9s var(--ease) forwards; }
.js .hero h1 .line:nth-child(2) { animation-delay: .12s; }
.js .hero h1 .line:nth-child(3) { animation-delay: .24s; }
@keyframes drop { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .fig svg rect, .js .blocks g, .js .hero h1 .line { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .wipe::after { display: none; }
  .stage .slide img { animation: none !important; transform: scale(1.04) !important; }
  .stage .slide { transition: none; }
  .split .pic img, .page-photo img { transform: none !important; }
}
