/* Cube IT AS — draft 6, in the style of loopindustries.com (profile: playbooks/designs/loopindustries/DNA.md).
   Light grey page, white and photo cards with rounded corners, one blue, a grotesk at two weights. */

@font-face { font-family: "Geist"; src: url("../fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@property --r0 { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --bg: #f5f5f7;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5f6066;
  --hair: #b0b0b0;
  --line: #dcdce0;
  --blue: #1d6ea3;      /* Cube's blue, deepened for white text and links (5.5:1 on white) */
  --brand: #3a96ca;     /* Cube's logo blue, for large fields */
  --sky: #84c5e8;       /* Cube's light blue */
  --noise-a: #cfe8f6;
  --noise-b: #f3e3d8;
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: 2rem;
  --r: 8px;
  --r-card: 16px;
  --curve: cubic-bezier(0.2, 0.03, 0.02, 0.99);
  --out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400;
  line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--white); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-weight: 500; line-height: 1; letter-spacing: -0.025em; }
h1 { font-size: clamp(3rem, 6.6vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.02em; }
.mini { font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; line-height: 1.2; }
.big-text { font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 500; line-height: 1.17; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.4; color: var(--muted); max-width: 40rem; }

.wrap { padding: 0 var(--gutter); }
.section { padding-top: clamp(5rem, 11vw, 9rem); }

/* ---------- Buttons: blue block, text swaps upward with a drifting noise wash on hover ---------- */
.btn {
  --tile: 300px;
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem;
  width: fit-content; padding: .8rem 1.4rem; font-size: 1rem; font-weight: 500; line-height: 1.2;
  background: var(--blue); color: var(--white); overflow: hidden; clip-path: inset(0 round var(--r));
  transition: background-color .6s var(--curve); cursor: pointer; white-space: nowrap;
}
.btn::before { /* the label that rises in */
  content: attr(data-text); position: absolute; inset: 0; padding: inherit; display: flex; align-items: center;
  color: var(--blue); z-index: 2; clip-path: inset(100% 0 0 0); translate: 0 1rem; transition: all .6s var(--curve);
}
.btn::after { /* noise wash */
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--tile) * -1); left: calc(var(--tile) * -1); width: calc(100% + var(--tile)); height: calc(100% + var(--tile));
  background: linear-gradient(45deg, var(--noise-a), var(--noise-b));
  -webkit-mask-image: var(--noise, none); mask-image: var(--noise, none);
  -webkit-mask-size: var(--tile); mask-size: var(--tile);
  opacity: 0; transition: opacity .6s var(--curve); animation: drift 8s linear infinite paused;
}
.btn > span { position: relative; z-index: 2; display: block; transition: all .6s var(--curve); clip-path: inset(0); }
.btn i { position: relative; z-index: 2; width: 1em; height: 1em; font-style: normal; }
.btn i::before, .btn i::after { position: absolute; left: 50%; top: 50%; line-height: 1; transition: all .6s var(--curve) .08s; }
.btn i::before { content: "+"; translate: -50% -55%; clip-path: inset(0); }
.btn i::after { content: "\2197"; color: var(--blue); translate: -50% calc(-50% + 1rem); clip-path: inset(100% 0 0 0); }
.btn.out i::before { content: "\2197"; }
@media (hover: hover) {
  .btn:hover { background: #eef1f4; }
  .btn:hover::before { clip-path: inset(0); translate: 0 0; scale: .97; }
  .btn:hover > span { clip-path: inset(0 0 100% 0); translate: 0 -1rem; scale: .97; }
  .btn:hover::after { opacity: .65; animation-play-state: running; }
  .btn:hover i::before { clip-path: inset(0 0 100% 0); translate: -50% calc(-55% - 1rem); }
  .btn:hover i::after { clip-path: inset(0); translate: -50% -50%; }
}
@keyframes drift { to { transform: translate(var(--tile), var(--tile)); } }
.btn.big { font-size: clamp(1.1rem, 1.6vw, 1.5rem); padding: .75rem 1.25rem; }

.tbtn { /* text button: "Learn more  +" */
  display: inline-flex; align-items: center; gap: 1.2rem; padding: .9rem .2rem; color: var(--blue);
  font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.25rem);
}
.tbtn i { font-style: normal; display: inline-block; transition: transform .5s var(--curve); }
.tbtn:hover i { transform: rotate(90deg); }
.tbtn.out:hover i { transform: translate(3px, -3px); }

/* ---------- Header: a white bar and a separate blue button, sticky with a 1rem gap ---------- */
.header { position: sticky; top: 1rem; z-index: 900; padding: 0 var(--gutter); margin-top: 1rem; }
.nav { display: flex; gap: 1rem; align-items: stretch; }
.bar {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border-radius: var(--r); padding: 0 1rem; min-height: 3.6rem;
}
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.menu { display: flex; gap: 1.5rem; list-style: none; font-size: .95rem; }
.menu a { position: relative; padding-bottom: 4px; }
.menu a::after { content: ""; position: absolute; left: auto; right: 0; bottom: 0; width: 0; border-bottom: 1px solid var(--ink); transition: width .5s var(--curve); }
.menu a:hover::after, .menu a[aria-current="page"]::after { left: 0; right: auto; width: 100%; }
.nav > .btn { align-self: stretch; }
.burger { display: none; width: 2.4rem; height: 2.4rem; border-radius: var(--r); background: var(--blue); color: var(--white); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 14px; height: 1.5px; background: currentColor; position: relative; transition: all .4s var(--curve); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.open .burger span { background: transparent; }
.open .burger span::before { top: 0; transform: rotate(45deg); }
.open .burger span::after { top: 0; transform: rotate(-45deg); }
.drawer { display: none; }

/* ---------- Hero: a film inside a rounded card; on first load it fills the screen, then settles ---------- */
.hero { position: relative; height: calc(100svh - 5.6rem); min-height: 560px; margin-top: 1rem; padding: 0 var(--gutter); }
.hero-inner {
  position: relative; height: 100%; border-radius: var(--r); overflow: hidden; color: var(--white);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 2rem;
  background: #1b2a35;
}
.hero-inner > video, .hero-inner > .poster, .hero-inner > .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-inner > video { opacity: 0; transition: opacity .8s var(--curve); }
.hero-inner > video.on { opacity: 1; }
.hero-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.3) 0%, rgba(10,14,20,.42) 40%, rgba(10,14,20,.78) 100%); z-index: 1; }
.hero h1 { position: relative; z-index: 2; max-width: 11.5em; font-size: clamp(3rem, 6.4vw, 6.2rem); }
.hero-side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: min(22rem, 34%); flex-shrink: 0; }
.hero-side .btn { width: 100%; }
.post-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  min-height: 11rem; padding: 1rem; border-radius: var(--r); overflow: hidden; color: var(--white);
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18); transition: background-color .5s var(--curve);
}
.post-card:hover { background: rgba(255,255,255,.2); }
.post-card h3 { font-size: 1.35rem; line-height: 1.08; }
.post-card .meta { font-size: .8rem; opacity: .85; margin-top: .4rem; }
.post-card .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .7rem; }
.post-card .tags span { font-size: .7rem; padding: .2rem .45rem; border-radius: 4px; background: rgba(255,255,255,.16); }
.dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #5fd18b; margin-right: .4rem; box-shadow: 0 0 0 0 rgba(95,209,139,.6); animation: ping 2.2s infinite; vertical-align: .05em; }
@keyframes ping { 70% { box-shadow: 0 0 0 .5rem rgba(95,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(95,209,139,0); } }

/* The intro: JS adds .intro to <html> before paint when the page opens at the top */
.intro .hero-inner { position: fixed; z-index: 1000; border-radius: 0; top: 0; left: 0; width: 100vw; height: 100vh; }
.intro .header, .intro .hero-side, .intro .hero h1 { opacity: 0; }
.intro body { overflow: hidden; }
.hero-inner.settling { transition: top 1s var(--out), left 1s var(--out), width 1s var(--out), height 1s var(--out), border-radius 1s var(--out); }
.rise { animation: rise .8s var(--out) both; }
.drop { animation: drop .8s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (hidden only once JS has started: html.js) ---------- */
.js .fiu { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--out), transform .8s var(--out); transition-delay: var(--d, .2s); }
.js .fiu.in { opacity: 1; transform: none; }
.js .group > .fiu:nth-child(2) { --d: .4s; } .js .group > .fiu:nth-child(3) { --d: .6s; } .js .group > .fiu:nth-child(4) { --d: .8s; }
.js .lines .ln { display: block; opacity: 0; transform: translateY(1rem); clip-path: inset(0 0 100% 0); transition: opacity .8s var(--out), transform .8s var(--out), clip-path .8s var(--out); }
.js .lines.in .ln { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
.js .blur-in { opacity: 0; filter: blur(1rem); transition: opacity .8s var(--out), filter .8s var(--out); }
.js .blur-in.in { opacity: 1; filter: none; }

/* ---------- Intro: statement + blue field ---------- */
.intro-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 3rem; align-items: end; }
.intro-grid .mini { margin-bottom: 1.2rem; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--hair); }
.figures div { padding: 1.1rem 1rem 0 0; }
.figures b { display: block; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.figures span { display: block; font-size: .85rem; color: var(--muted); margin-top: .5rem; max-width: 12rem; }
.field {
  position: relative; border-radius: var(--r); overflow: hidden; color: var(--white); padding: 2rem;
  background: radial-gradient(120% 90% at 85% 10%, #5fb1dc 0%, var(--brand) 38%, #1f6f9f 100%);
  aspect-ratio: 1.45; display: flex; flex-direction: column; justify-content: space-between;
}
.field .cube { width: 34%; max-width: 9rem; }
.field .num { font-size: clamp(3.6rem, 7.6vw, 7rem); font-weight: 500; letter-spacing: -0.05em; line-height: .85; }
.field .cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.field .cap span { font-size: 1.05rem; line-height: 1.15; max-width: 12rem; border-top: 1px solid rgba(255,255,255,.7); padding-top: .5rem; }
.cube rect { transition: fill .5s var(--curve), opacity .5s var(--curve); }

/* ---------- Carousels ---------- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.cnav { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.cnav button { width: 2rem; height: 2rem; border-radius: 6px; border: 1px solid var(--hair); color: var(--hair); display: grid; place-items: center; transition: all .4s var(--curve); }
.cnav button.on { border-color: var(--blue); color: var(--blue); }
.cnav button.on:hover { background: var(--blue); color: var(--white); }
.cnav.hidden { visibility: hidden; }
.track-wrap { overflow: hidden; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.track { display: flex; gap: 1rem; will-change: transform; cursor: grab; touch-action: pan-y; }
.track:active { cursor: grabbing; }

.sector { flex: 0 0 min(66vw, 46rem); }
.sector .ph { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #c9d3da; }
.sector .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--curve); }
.sector:hover .ph img { transform: scale(1.0); }
.sector .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62)); }
.sector .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.25rem; color: var(--white); }
.sector h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); margin-bottom: .45rem; }
.sector p { font-size: .9rem; max-width: 34rem; opacity: .92; }

.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2rem; align-items: start; }
.steps-grid h2 { max-width: 6em; }
.steps-grid .lead { margin-top: 1.2rem; font-size: 1rem; max-width: 22rem; }
.step {
  flex: 0 0 clamp(15rem, 23vw, 20rem); min-height: 22rem; background: var(--white); border-radius: var(--r);
  padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.step small { display: block; font-size: 1.25rem; color: var(--hair); margin-bottom: .35rem; }
.step h3 { font-size: 1.4rem; line-height: 1.1; }
.step p { font-size: .9rem; color: #3a3b40; }

/* ---------- Big photo cards with a blur that clears around the pointer ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pcard {
  --mx: 50%; --my: 50%; --r0: 0px;
  position: relative; display: block; border-radius: var(--r-card); overflow: hidden; color: var(--white);
  aspect-ratio: 1.12; isolation: isolate; background: #22303a; transition: --r0 .9s var(--curve);
}
.pcard:hover { --r0: 300px; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .blur { filter: blur(14px); transform: scale(1.08); opacity: 0; transition: opacity .7s var(--curve);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r0) - 60px), #000 var(--r0));
  mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r0) - 60px), #000 var(--r0)); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #141b22; opacity: .45; transition: opacity .6s ease; }
.pcard:hover::before { opacity: .3; }
.pcard:hover .blur { opacity: 1; }
.pcard .body { position: absolute; inset: 0; z-index: 2; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.pcard h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); max-width: 8em; }
.pcard p { font-size: .95rem; max-width: 30rem; }
.pcard .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .7rem; opacity: .85; }
.arrow { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: var(--r); background: var(--blue); overflow: hidden; display: grid; place-items: center; z-index: 3; }
.arrow::before { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: bottom left; transform: scale(0); transition: transform .6s cubic-bezier(.58,.01,.44,1); }
.arrow span, .arrow::after { position: relative; font-size: 1.15rem; line-height: 1; transition: transform .6s cubic-bezier(.3,.01,.15,1.01); }
.arrow::after { content: "\2197"; position: absolute; color: var(--blue); transform: translate(-150%, 150%); }
.pcard:hover .arrow::before { transform: scale(1); }
.pcard:hover .arrow span { transform: translate(150%, -150%); }
.pcard:hover .arrow::after { transform: none; }

/* ---------- Assignments list (from the portal) ---------- */
.list { border-top: 1px solid var(--hair); }
.item { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.2rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--hair); transition: opacity .3s; }
.item:hover { opacity: .75; }
.item .tile { aspect-ratio: 1; border-radius: var(--r); display: flex; flex-direction: column; justify-content: space-between; padding: .6rem; color: var(--white); font-size: .7rem; line-height: 1.1; background: var(--c, var(--blue)); }
.item .tile svg { width: 18px; height: 18px; }
.item h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.1; margin-bottom: .45rem; }
.item .meta { font-size: .85rem; color: var(--muted); }
.item .skills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.item .skills span { font-size: .72rem; padding: .18rem .5rem; border-radius: 4px; background: var(--white); color: #333; }
.item .tbtn { padding-top: 0; }
.closed { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 4px; margin-left: .4rem; vertical-align: .15em; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(6rem, 12vw, 10rem); padding: 3rem var(--gutter) 1.5rem; background: var(--bg); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.4fr; gap: 2rem; font-size: .85rem; }
.foot-grid h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hair); font-weight: 400; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; display: grid; gap: .6rem; }
.foot-grid a:hover { color: var(--blue); }
.foot-grid address { font-style: normal; display: grid; gap: .8rem; }
.fcard { aspect-ratio: 1.6; }
.fcard h2 { font-size: 2rem; }
.foot-base { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 4rem; }
.foot-base .word { font-size: clamp(2.6rem, 8vw, 7.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: .8; }
.foot-base .small { display: flex; gap: 2.5rem; font-size: .72rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; margin: 1rem var(--gutter) 0; border-radius: var(--r); overflow: hidden; min-height: 26rem; height: 56svh; color: var(--white); display: flex; align-items: flex-end; padding: 2rem; background: #1b2a35; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.2), rgba(10,14,20,.68)); }
.page-hero > div { position: relative; z-index: 2; }
.page-hero p { margin-top: 1rem; max-width: 34rem; font-size: 1.1rem; opacity: .92; }
.page-plain { padding-top: 5rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab { padding: .6rem 1rem; border-radius: var(--r); background: var(--white); font-size: .95rem; transition: all .4s var(--curve); }
.tab[aria-selected="true"] { background: var(--blue); color: var(--white); }
.panel { background: var(--white); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2.5rem); }
.panel[hidden] { display: none; }
.panel.swap { animation: rise .6s var(--out) both; }
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 2rem; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cols h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 400; color: var(--muted); padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.cols ul { list-style: none; columns: 2; column-gap: 1rem; font-size: .95rem; }
.cols li { padding: .25rem 0; break-inside: avoid; }
.cols .one ul { columns: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips span { padding: .5rem .8rem; border-radius: var(--r); background: var(--white); font-size: .95rem; }

.acc { border-top: 1px solid var(--hair); }
.acc details { border-bottom: 1px solid var(--hair); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { font-style: normal; color: var(--blue); flex-shrink: 0; transition: transform .5s var(--curve); }
.acc details[open] summary i { transform: rotate(45deg); }
.acc .ans { padding: 0 0 1.6rem; max-width: 46rem; color: #34353a; display: grid; gap: .8rem; }
.acc .ans ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2rem; margin-top: 4rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.person { background: var(--white); border-radius: var(--r); padding: 1.2rem; display: flex; flex-direction: column; gap: 2.5rem; justify-content: space-between; min-height: 15rem; }
.person .mono { width: 3rem; height: 3rem; border-radius: var(--r); background: var(--bg); display: grid; place-items: center; font-weight: 500; color: var(--blue); }
.person h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.person .role { font-size: .85rem; color: var(--muted); }
.person .ask { font-size: .9rem; margin-top: .8rem; }
.person .links { display: grid; gap: .25rem; font-size: .9rem; }
.person .links a { color: var(--blue); }
.person .links a:hover { text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; }
form.contact { background: var(--white); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.fld { display: grid; gap: .35rem; font-size: .8rem; color: var(--muted); }
.fld.full { grid-column: 1 / -1; }
.fld input, .fld textarea { font: inherit; font-size: 1rem; color: var(--ink); border: 0; border-bottom: 1px solid var(--hair); padding: .55rem 0; background: transparent; border-radius: 0; transition: border-color .3s; }
.fld textarea { min-height: 8rem; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: .8rem 1rem; border-radius: var(--r); background: #e7f3fa; color: #123; font-size: .95rem; }
.notice.err { background: #fbeaea; }
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5rem; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 1100px) {
  .menu { display: none; }
  .nav > .btn { display: none; }
  .burger { display: grid; }
  .drawer { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + .5rem); background: var(--white); border-radius: var(--r); padding: 1rem; opacity: 0; transform: translateY(-.5rem); pointer-events: none; transition: all .4s var(--curve); }
  .open .drawer { opacity: 1; transform: none; pointer-events: auto; }
  .drawer ul { list-style: none; display: grid; }
  .drawer li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .drawer .btn { margin-top: 1rem; width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 1rem; }
  .hero { height: calc(100svh - 5rem); min-height: 600px; }
  .hero-inner { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 1rem; gap: 1.2rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .hero-side { width: 100%; }
  .post-card { min-height: 0; gap: 1rem; }
  .intro-grid, .steps-grid, .duo, .faq-grid, .form-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .sector { flex-basis: 86vw; }
  .sector .ph { aspect-ratio: 4 / 5; }
  .step { flex-basis: 78vw; min-height: 17rem; }
  .pcard { aspect-ratio: 4 / 5; }
  .item { grid-template-columns: 4.5rem 1fr; }
  .item .tbtn { grid-column: 2; }
  .cols { grid-template-columns: 1fr; }
  form.contact { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .row-head { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .team, .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
