/* Cube IT AS: the whole look.
   Colours, font and corner radius are the variables just below. Change them here and every page follows. */
:root {
  --navy: #0d2b47;      /* headings, buttons, dark sections */
  --navy-2: #163c60;    /* a step lighter, for the film cards in the dark section */
  --blue: #3a96ca;      /* Cube blue, from the logo */
  --sky: #84c5e8;       /* light Cube blue: the squares in the illustrations */
  --mist: #dfe5ec;      /* the grey square in the logo */
  --cream: #f7f5ee;     /* the warm panels */
  --white: #ffffff;
  --text: #0d2b47;
  --muted: #5d6b79;
  --line: #e4e6e2;
  --r-lg: 40px;         /* big panels */
  --r: 20px;            /* cards */
  --r-sm: 8px;          /* buttons */
  --shadow: 0 24px 60px -24px rgba(13, 43, 71, .35);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --head: 96px;
}

@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding: 112px 0; }
.label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 19px; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); background: var(--navy); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; }
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--mist); }
.btn.outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.arrow-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; height: var(--head); background: rgba(255,255,255,.97); z-index: 50; transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 48px; width: min(1296px, 100% - 48px); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo svg { width: 38px; height: 38px; }
.logo span { font-weight: 800; font-size: 14px; line-height: 1.05; letter-spacing: .06em; }
.nav { display: flex; align-items: center; flex: 1; gap: 32px; }
.nav ul { display: flex; gap: 30px; flex: 1; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--navy); padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nav ul a:hover, .nav ul a[aria-current] { background-size: 100% 2px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .3s, background .3s; }
.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); }

main { padding-top: var(--head); }

/* ---------- Hero: a cream panel, a navy block and a rounded film card ---------- */
.hero { position: relative; padding-bottom: 40px; overflow-x: clip; }
.hero-panel { background: var(--cream); width: 80%; border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 120px 0 128px; min-height: 640px; display: flex; align-items: center; }
.hero-copy { width: min(620px, 100%); margin-left: max(24px, calc((100vw - var(--wrap)) / 2)); }
.hero h1 { font-size: clamp(38px, 4.2vw, 58px); color: var(--navy); }
.hero .sub { margin-top: 26px; font-size: 19px; max-width: 34em; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art { position: absolute; top: 60px; right: 0; width: 40%; height: 540px; }
.hero-block { position: absolute; inset: 0; background: var(--navy); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.film-card { position: absolute; left: -9%; top: 60px; width: min(440px, 76%); aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy-2); }
.film-card video, .film-card img { width: 100%; height: 100%; object-fit: cover; }
.film-tag { position: absolute; right: 5%; bottom: 44px; max-width: 150px; color: #fff; text-align: right; line-height: 1.35; }
.film-tag b { display: block; margin-bottom: 6px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.film-tag span { font-size: 14px; opacity: .8; }
.newest { position: absolute; left: calc(-9% + 24px); bottom: -10px; z-index: 2; display: grid; gap: 2px; width: 300px; padding: 18px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; }
.newest small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.newest small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.18); }
.newest strong { font-size: 18px; }
.newest span { font-size: 14px; color: var(--muted); }

/* ---------- Skills strip (moves slowly sideways) ---------- */
.strip { padding: 56px 0 8px; overflow: hidden; }
.strip p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.strip-track { display: flex; width: max-content; gap: 64px; animation: strip 60s linear infinite; }
.strip-track span { font-size: 30px; font-weight: 700; color: #a9b1b9; letter-spacing: -.03em; white-space: nowrap; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Approach (centred text) ---------- */
.approach { text-align: center; padding: 96px 0 104px; }
.approach h2 { font-size: clamp(34px, 3.4vw, 46px); color: var(--navy); }
.approach p { margin: 24px auto 0; max-width: 820px; font-size: 19px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; text-align: left; }
.facts div { background: var(--cream); border-radius: var(--r); padding: 26px 26px 24px; }
.facts b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.035em; color: var(--navy); line-height: 1.1; }
.facts span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Sectors: sticky title on the left, cards on the right ---------- */
.sectors-band { background: linear-gradient(var(--cream), #fdfcf9); padding: 112px 0 96px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.sticky { position: sticky; top: calc(var(--head) + 48px); }
.split h2 { font-size: clamp(38px, 4.2vw, 56px); color: var(--navy); }
.split .sticky p { margin-top: 22px; max-width: 26em; font-size: 18px; }
.split .sticky .btn { margin-top: 32px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(13,43,71,.35); display: flex; flex-direction: column; text-decoration: none; }
.card .pic { aspect-ratio: 1 / 1.04; overflow: hidden; }
.card .pic img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.card .foot { padding: 22px 22px 24px; }
.card h3 { font-size: 21px; color: var(--navy); }
.card p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.card.ask { background: var(--navy); color: #fff; justify-content: space-between; padding: 26px; }
.card.ask h3 { color: #fff; }
.card.ask p { color: rgba(255,255,255,.78); }
.card.ask .arrow-link { margin-top: 16px; display: inline-block; color: #fff; }
.card.ask svg { width: 92px; height: 92px; }
.center { text-align: center; margin-top: 56px; }

/* ---------- Feature rows: text on one side, an illustration on the other ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; padding: 120px 0; }
.feature.flip { grid-template-columns: 1.1fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); }
.feature-text > p { margin-top: 20px; font-size: 18px; }
.points { margin-top: 28px; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points i { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; color: var(--navy); }
.points b { display: block; font-size: 17px; }
.points span { font-size: 15.5px; color: var(--muted); line-height: 1.55; display: block; margin-top: 2px; }
.feature-text .btn { margin-top: 32px; }

/* The illustrations are built from plain HTML boxes so they stay sharp and can be edited. Layers move at different speeds (data-speed). */
.art { position: relative; aspect-ratio: 1 / .9; }
.art > * { position: absolute; }
.stripes { width: 30%; height: 34%; background: repeating-linear-gradient(var(--navy) 0 4px, transparent 4px 11px); }
.slab { background: var(--navy); border-radius: 0; }
.disc { border-radius: 50%; background: var(--navy); }
.sq { width: 15%; aspect-ratio: 1; background: var(--sky); border-radius: 4px; }
.sq.pale { background: var(--mist); }
.window { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.window .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.window .bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.window img { width: 100%; height: calc(100% - 34px); object-fit: cover; }
.chip-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; font-size: 13px; color: var(--muted); }
.chip-card b { display: block; color: var(--navy); font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.chip-card.dark { background: var(--blue); color: rgba(255,255,255,.85); }
.chip-card.dark b { color: #fff; }
.bars { display: flex; align-items: end; gap: 5px; height: 40px; margin-top: 10px; }
.bars i { width: 12px; background: var(--sky); border-radius: 3px 3px 0 0; }
.bars i:last-child { background: var(--blue); }
.ring { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--blue) 0 95%, var(--mist) 0); display: grid; place-items: center; margin: 0 auto 8px; }
.ring::after { content: "95%"; width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--navy); }
.chip-card.center-text { text-align: center; }

/* The phone in "Work with Cube" */
.phone { width: 46%; aspect-ratio: 9 / 18.5; background: #fff; border-radius: 34px; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.phone .ph-top { padding: 14px 12px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.phone .ph-top svg { width: 22px; height: 22px; }
.phone .ph-top b { font-size: 12px; letter-spacing: .04em; }
.phone .ph-top span { margin-left: auto; font-size: 10px; color: var(--muted); }
.phone ul { padding: 10px; display: grid; gap: 8px; }
.phone li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; }
.phone li small { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.phone li b { display: block; font-size: 12px; line-height: 1.3; margin-top: 2px; }
.phone li span { font-size: 10px; color: var(--muted); }
.phone li.hot { background: var(--cream); border-color: transparent; }

/* ---------- The dark scene: requests fly in and are checked ---------- */
.scene { position: relative; height: 220vh; background: var(--navy); color: #fff; }
.scene-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: calc(var(--head) + 32px) 24px 64px; }
.scene h2 { font-size: clamp(32px, 3.4vw, 46px); text-align: center; position: relative; z-index: 3; }
.scene .say { position: relative; z-index: 3; }
.stage { position: relative; width: min(1100px, 100%); }
.check-window { position: absolute; left: 50%; top: 50%; width: min(400px, 82vw); transform: translate(-50%, -50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 46px 28px 26px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 2; }
.check-window::before { content: ""; position: absolute; top: 18px; left: 22px; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 15px 0 rgba(255,255,255,.4), 30px 0 rgba(255,255,255,.4); }
.check-window ol { display: grid; gap: 12px; }
.check-window li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.check-window li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); flex: none; font-style: normal; font-size: 14px; }
.check-window .match { margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff; color: var(--navy); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.check-window .match span { font-size: 13px; font-weight: 600; color: var(--blue); }
.req { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 18px; border-radius: 16px; background: linear-gradient(140deg, var(--blue), var(--navy-2) 120%); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); white-space: nowrap; font-weight: 600; font-size: 15px; will-change: transform, opacity; }
.req small { display: block; font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .04em; }
.scene .say { max-width: 760px; text-align: center; font-size: clamp(19px, 1.8vw, 24px); font-weight: 400; line-height: 1.5; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px; border-radius: var(--r); background: var(--cream); }
.steps small { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.steps h3 { font-size: 21px; color: var(--navy); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Latest assignments ---------- */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.row-head h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); }
.row-head p { max-width: 34em; color: var(--muted); }
.jobs { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.job:hover { background: var(--cream); border-color: transparent; transform: translateX(4px); }
.job-area { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.job h3 { font-size: 19px; color: var(--navy); }
.job .meta { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.job .open { font-weight: 600; font-size: 15px; white-space: nowrap; }
.closed { display: inline-block; margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--mist); color: var(--muted); vertical-align: middle; }

/* ---------- Coffee call to action ---------- */
.coffee { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.coffee h2 { font-size: clamp(32px, 3.4vw, 46px); color: var(--navy); }
.coffee p { margin: 18px auto 0; max-width: 34em; font-size: 18px; }
.coffee .btns { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; padding: 80px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1fr minmax(320px, 470px); gap: 64px; align-items: start; }
.footer .logo { color: #fff; }
.footer .slogan { margin-top: 22px; font-size: 16px; }
.footer address { font-style: normal; margin-top: 18px; display: grid; gap: 4px; font-size: 15px; color: rgba(255,255,255,.82); }
.footer address b { color: #fff; }
.footer address a { text-decoration: none; }
.footer address a:hover { text-decoration: underline; }
.foot-links { border: 1px solid rgba(255,255,255,.18); border-radius: 16px; overflow: hidden; }
.foot-links a { display: flex; align-items: center; gap: 16px; padding: 17px 22px; text-decoration: none; font-weight: 600; font-size: 15px; border-top: 1px solid rgba(255,255,255,.14); transition: background .2s; }
.foot-links li:first-child a { border-top: 0; }
.foot-links a:hover { background: rgba(255,255,255,.06); }
.foot-links svg { width: 22px; height: 22px; flex: none; opacity: .9; }
.foot-links a::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.7); }
.foot-base a { text-decoration: none; }
.foot-base a:hover { text-decoration: underline; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding-bottom: 24px; overflow-x: clip; }
.page-hero .hero-panel { min-height: 480px; padding: 96px 0 104px; width: 78%; }
.page-hero h1 { font-size: clamp(36px, 4vw, 54px); color: var(--navy); }
.page-hero .hero-copy p:not(.label) { margin-top: 20px; font-size: 19px; max-width: 30em; }
.page-hero .hero-copy .label { margin-bottom: 16px; }
.page-hero .hero-art { top: 48px; height: 420px; width: 38%; }
.page-hero .film-card { width: min(360px, 74%); top: 48px; aspect-ratio: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips span { padding: 9px 16px; border-radius: 99px; background: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); }
.chips a:hover { background: var(--navy); color: #fff; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px; margin-top: 24px; }
.area h2 { font-size: 30px; color: var(--navy); }
.cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; margin-top: 24px; }
.cols h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.cols li { font-size: 16px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.cols ul.many { columns: 2; column-gap: 24px; }
.cream { background: var(--cream); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro h2 { font-size: clamp(28px, 2.8vw, 38px); color: var(--navy); }
.big { font-size: 22px; line-height: 1.55; }

.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.faq h2 { font-size: 30px; color: var(--navy); }
.faq details { background: var(--cream); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.answer { padding: 0 24px 22px; color: #2c4058; }
.answer p + p, .answer p + ul { margin-top: 10px; }
.answer ul { list-style: disc; padding-left: 20px; }
.page-plain { padding-top: 64px; }
.page-plain h1 { font-size: clamp(36px, 4vw, 54px); color: var(--navy); }
.prose { max-width: 760px; }
.prose h1 { margin: 12px 0 28px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; color: var(--navy); }
.prose p { margin-bottom: 12px; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { background: var(--cream); border-radius: var(--r); padding: 28px 24px; }
.initials { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; letter-spacing: .02em; margin-bottom: 20px; }
.person h3 { font-size: 20px; color: var(--navy); }
.person .role { color: var(--blue); font-weight: 600; font-size: 15px; }
.person .ask { margin-top: 10px; font-size: 15px; color: var(--muted); }
.person .links { margin-top: 14px; display: grid; gap: 2px; font-size: 15px; }
.person .links a { text-decoration: none; font-weight: 600; }
.person .links a:hover { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.form-grid h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); }
.contact-lines { margin-top: 28px; display: grid; gap: 6px; font-size: 18px; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-form { background: #fff; border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.notice.ok { background: #e5f4ec; color: #145c36; }
.notice.err { background: #fdecea; color: #8a1c12; }

/* ---------- Gentle reveal (only when the script runs, never with reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-block { transform: translateX(30%); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .film-card { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .9s .25s, transform 1.1s .25s cubic-bezier(.2,.7,.2,1); }
.js .newest { opacity: 0; transform: translateY(20px); transition: opacity .8s .6s, transform .8s .6s cubic-bezier(.2,.7,.2,1); }
.js .loaded .hero-block, .js.loaded .hero-block { transform: none; }
.js.loaded .film-card, .js.loaded .newest { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-block, .js .film-card, .js .newest { opacity: 1 !important; transform: none !important; transition: none !important; }
  .strip-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px 40px; padding: 0 24px; }
  .strip-track [aria-hidden] { display: none; }
  .scene { height: auto; }
  .scene-pin { position: relative; height: auto; min-height: 100vh; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 20px; }
  .header .wrap { gap: 28px; }
  .hero-panel { width: 100%; border-radius: 0; padding: 72px 0 300px; min-height: 0; }
  .hero-copy { margin-left: 24px; margin-right: 24px; width: auto; max-width: 640px; }
  .hero-art { position: relative; top: auto; width: calc(100% - 24px); margin: -240px 0 0 auto; height: 480px; }
  .film-card { left: 24px; top: 40px; width: min(400px, 62%); }
  .newest { left: auto; right: 24px; bottom: 30px; }
  .film-tag { display: none; }
  .page-hero .hero-panel { width: 100%; padding: 64px 0 260px; min-height: 0; }
  .page-hero .hero-art { position: relative; width: calc(100% - 24px); margin: -200px 0 0 auto; top: auto; height: 380px; }
  .page-hero .film-card { left: 24px; top: 32px; width: min(320px, 60%); }
  .split, .feature, .feature.flip, .intro, .form-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-text { order: 0; }
  .sticky { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .art { max-width: 620px; width: 100%; margin: 0 auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 820px) {
  :root { --head: 72px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--head) 0 auto; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 28px; box-shadow: 0 20px 30px -20px rgba(13,43,71,.3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
  .nav .btn { margin-top: 20px; justify-content: center; }
  .logo svg { width: 34px; height: 34px; }
  .section { padding: 80px 0; }
  .hero-panel { padding: 56px 0 250px; }
  .hero .sub { font-size: 17px; }
  .hero-art { height: 420px; margin-top: -200px; }
  .film-card { left: 16px; width: calc(100% - 56px); max-width: 360px; top: 28px; }
  .newest { right: 16px; bottom: -6px; width: min(300px, calc(100% - 40px)); }
  .strip-track span { font-size: 24px; }
  .approach { padding: 72px 0 80px; }
  .approach p { font-size: 17px; }
  .facts { gap: 12px; margin-top: 44px; }
  .facts div { padding: 20px 18px; }
  .facts b { font-size: 28px; }
  .sectors-band { padding: 80px 0 72px; }
  .cards { gap: 14px; }
  .card .foot { padding: 14px 14px 16px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 13.5px; }
  .card.ask { padding: 18px; }
  .card.ask svg { width: 56px; height: 56px; }
  .feature { padding: 80px 0; }
  .scene { height: 200vh; }
  .scene-pin { padding: calc(var(--head) + 24px) 16px 40px; }
  .req { font-size: 13px; padding: 10px 13px; border-radius: 12px; }
  .chip-card { padding: 10px 11px; font-size: 11px; border-radius: 10px; line-height: 1.35; }
  .chip-card b { font-size: 19px; }
  .ring { width: 50px; height: 50px; }
  .ring::after { width: 38px; height: 38px; font-size: 12px; }
  .bars { height: 24px; gap: 3px; }
  .bars i { width: 7px; }
  .window .bar { height: 24px; }
  .window img { height: calc(100% - 24px); }
  .phone { border-width: 5px; border-radius: 24px; }
  .phone li { padding: 7px 8px; }
  .phone li b { font-size: 10.5px; }
  .phone li span, .phone li small { font-size: 8px; }
  .check-window { padding: 40px 16px 18px; }
  .check-window li { font-size: 15px; padding: 10px 12px; }
  .job { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .job .open { display: none; }
  .coffee { padding: 88px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero .hero-panel { padding: 48px 0 220px; }
  .page-hero .hero-art { height: 340px; margin-top: -180px; }
  .page-hero .film-card { width: calc(100% - 72px); max-width: 300px; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .area { padding: 24px 20px; }
  .team { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; }
  .steps small { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card .pic { aspect-ratio: 1 / 1.1; }
}
.page-hero .film-tag { max-width: 210px; }
.page-hero .film-tag b { font-size: 28px; }
