/* iMedia — site styles */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE7E0;
  --ink: #151514;
  --ink-2: #45423C;
  --muted: #67635B;
  --faint: #8A857B;
  --rule: #D9D5CC;
  --rule-strong: #151514;
  --accent: #3CBDFF;         /* neon light blue: large type, marks, rules, active states; 8.7:1 on ink */

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --gap: clamp(16px, 2vw, 32px);
  --space: clamp(112px, 14vw, 208px);
  --head-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(2.5rem, 1.25rem + 4.6vw, 5.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem);
  line-height: 1.46;
  letter-spacing: -.012em;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 34ch;
}
.p-meta, .disc-label, .sec-head, .area-idx, .p-idx, .product-idx,
.facts dt, .ph-tag, .footer-label, .field label, .consent-title {
  font-size: .75rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.mark { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Underline that draws in on hover — in the accent */
.nav a, .link-down, .facts a, .footer-nav a, .footer-end a, .menu-foot a, .contact-note a {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease);
}
.nav a:hover, .link-down:hover, .facts a:hover, .footer-nav a:hover, .footer-end a:hover, .menu-foot a:hover,
.contact-note a:hover {
  background-size: 100% 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  display: inline-flex; align-items: baseline;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -.035em; line-height: 1;
}
.wm-i { position: relative; display: inline-block; }
.wm-dot {
  position: absolute; left: 50%; top: -.005em;
  width: .25em; height: .25em; transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  transition: transform .6s var(--ease);
}
.wordmark:hover .wm-dot { transform: translateX(-50%) translateY(-.08em); }

.nav { display: flex; gap: clamp(20px, 2.4vw, 40px); font-size: .9375rem; font-weight: 500; }
.nav a { padding-block: 4px; }

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; margin-right: -10px; padding: 0 10px;
  border: 0; background: none;
  font: 500 .9375rem/1 var(--font); cursor: pointer;
}
.menu-btn-icon { position: relative; width: 18px; height: 8px; }
.menu-btn-icon::before, .menu-btn-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--accent);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-btn-icon::before { top: 0; }
.menu-btn-icon::after { top: 100%; transform: translateY(-100%); }
.menu-btn[aria-expanded="true"] .menu-btn-icon::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon::after { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--head-h) 0 0; z-index: 40;
  background: var(--paper);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-inner { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 40px; min-height: 100%; }
.menu-inner > a {
  font-size: clamp(2.25rem, 10vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15;
  padding-block: 10px; border-bottom: 1px solid var(--rule);
}
.menu-inner > .menu-small { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; padding-block: 18px 0; border-bottom: 0; }
.menu-inner > button.menu-small { padding-top: 10px; color: var(--ink); }
.menu-foot { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 1rem; }
.menu-foot span { color: var(--muted); }
.menu-foot .menu-tag { margin-top: 10px; color: var(--accent); }
.js .menu.is-open .menu-inner > * { animation: menu-in .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 40ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(24px, 4vw, 48px); }
.hero .wrap {
  min-height: calc(100svh - var(--head-h));
  display: flex; flex-direction: column;
  padding-bottom: clamp(32px, 5vw, 64px);
}
/* The headline is always exactly two lines: each line is unbreakable, and the size is
   derived from the available width (first line = 8.62em in this font, +4% margin). */
.hero-title-box { margin-top: auto; container-type: inline-size; }
.hero-title {
  padding-top: clamp(72px, 14vh, 200px);
  font-size: min(8.5rem, 10.1vw, calc(11.1vw - 5px));
  font-size: min(8.5rem, 11.1cqi);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .line > span { display: block; }
.hero-title .line--accent { color: var(--accent); }
.title-dot { color: var(--accent); }
.nowrap { white-space: nowrap; }
/* moves to the next line as one unit; splits inside only if it can't fit on a line of its own */
.keep { display: inline-block; }
.hero-foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
  margin-top: clamp(32px, 4.5vw, 64px);
}
.hero-lead {
  grid-column: 1 / span 6;
  font-size: clamp(1.125rem, .98rem + .55vw, 1.4375rem);
  line-height: 1.5; letter-spacing: -.012em;
  color: var(--ink-2); max-width: 40ch; text-wrap: pretty;
}
.hero-links {
  grid-column: 8 / -1;
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: end; gap: 4px 32px;
}
.link-down { font-weight: 500; padding-block: 6px; display: inline-flex; gap: .45em; white-space: nowrap; }
.link-down .arrow { display: inline-block; color: var(--accent); transition: transform .5s var(--ease); }
.link-down:hover .arrow { transform: translateY(3px); }

/* ---------- Sections ---------- */

.section { padding-top: var(--space); }
.sec-head {
  position: relative;
  display: flex; justify-content: space-between;
  padding-top: 14px;
  margin-bottom: clamp(48px, 7vw, 112px);
  color: var(--muted);
}
.sec-head::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--rule-strong);
  transform-origin: left;
}
.sec-head::after { /* accent lead-in on every section rule */
  content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 3px; border-radius: 3px; background: var(--accent);
  transform-origin: left;
}
.sec-num { color: var(--muted); font-variant-numeric: tabular-nums; }

.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  align-items: end;
}
.split > :first-child { grid-column: 1 / span 7; }
.split > :last-child { grid-column: 8 / -1; }

/* ---------- Experience ---------- */

.exp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.exp-figure { grid-column: 1 / span 6; }
.exp-title { position: sticky; top: calc(var(--head-h) + 40px); font-weight: 600; }
.big-num {
  display: block;
  font-size: clamp(8.5rem, 1rem + 22vw, 21rem);
  line-height: .8;
  letter-spacing: -.075em;
  margin-left: -.05em;
  font-variant-numeric: lining-nums;
}
.big-num .plus { color: var(--accent); letter-spacing: 0; }
.exp-years {
  display: block; max-width: 17ch;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.375rem);
  line-height: 1.2; letter-spacing: -.03em;
  text-wrap: balance;
}
.disciplines { grid-column: 8 / -1; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); padding-top: 6px; }
.disc-label { color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.disc-group.is-focus .disc-label { color: var(--ink); }
.disc-group li {
  position: relative;
  font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.045em;
  padding-block: .14em .1em;
  border-top: 1px solid var(--rule);
}
.disc-group li:last-child { border-bottom: 1px solid var(--rule); }
.d-text { display: inline-block; }
.disc-group li::before { /* active marker */
  content: ""; position: absolute; left: 0; top: .61em; /* on the title line */
  width: .2em; height: .2em;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0); transform-origin: center;
}
/* Spotlight: each item brightens near the reading line and fades after it passes (--p); the one at the line
   slides in with the marker (--a). JS eases both every frame, so no CSS transitions here. */
.js .disciplines[data-ready] .d-text { opacity: calc(.24 + .76 * var(--p, 0)); transform: translateX(calc(.42em * var(--a, 0))); }
.js .disciplines[data-ready] li::before { transform: scale(var(--a, 0)); }
/* Supporting text: opens once when its item reaches the reading line and stays readable (it is outside the
   dimmed title); closed texts take no space */
.d-note { display: grid; margin-top: .5rem; padding-bottom: .2rem; max-width: 40ch; font-size: .9375rem; font-weight: 400; line-height: 1.45; letter-spacing: 0; color: var(--ink); }
.d-note > span { min-height: 0; overflow: hidden; }
.js .disciplines[data-ready] .d-note { grid-template-rows: 0fr; margin-top: 0; padding-bottom: 0; opacity: 0;
  transition: grid-template-rows .7s var(--ease), margin-top .7s var(--ease), padding-bottom .7s var(--ease), opacity .6s ease .1s; }
.js .disciplines[data-ready] li.is-seen .d-note { grid-template-rows: 1fr; margin-top: .5rem; padding-bottom: .2rem; opacity: 1; }
.js .disciplines.no-anim .d-note { transition: none; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- What we do ---------- */

.what .split { margin-bottom: clamp(64px, 8vw, 128px); }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: var(--gap); }
.area { border-top: 1px solid var(--rule-strong); padding-top: 18px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.area-idx { color: var(--muted); }
.area h3 {
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.5rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.045em;
}
.area > p { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.5; max-width: 28ch; color: var(--ink-2); }
.area-list { margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.area-list li { padding-block: 9px; border-top: 1px solid var(--rule); }

/* ---------- Products ---------- */

.products .split { margin-bottom: clamp(56px, 7vw, 112px); }
.product-list { display: flex; flex-direction: column; gap: clamp(96px, 12vw, 184px); }
.product {
  --product-gap: clamp(32px, 4vw, 56px); /* same space above the intro (from the rule) as below it (to the image) */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--product-gap);
  align-items: end;
  padding-top: var(--product-gap);
  border-top: 1px solid var(--rule-strong);
}
.product-title { grid-column: 1 / span 6; align-self: stretch; display: flex; flex-direction: column; }
.product-idx { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.product-name {
  margin-top: clamp(40px, 6vw, 96px);
  font-size: clamp(3.25rem, 1.2rem + 5vw, 6.5rem);
  font-weight: 600; line-height: .98; letter-spacing: -.05em;
  margin-left: -.04em;
  text-wrap: balance;
}
.product-full { margin-top: 18px; font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; }
.product-text { grid-column: 8 / -1; display: flex; flex-direction: column; padding-bottom: 4px; }
.product-desc { color: var(--ink-2); max-width: 40ch; text-wrap: pretty; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; }
.facts--compact { margin-top: 28px; }
.cta {
  align-self: flex-start;
  margin-top: 28px; padding-block: 6px;
  font-weight: 500; font-size: 1.0625rem;
  display: inline-flex; gap: .4em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  transition: background-size .5s var(--ease);
}
.cta:hover { background-size: 0 2px; background-position: 100% 100%; }
.arrow-ne { display: inline-block; transition: transform .5s var(--ease); }
.soon { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.0625rem; color: var(--ink-2); }
.cta:hover .arrow-ne { transform: translate(3px, -3px); }

/* One large visual per product: a real screenshot of the product's own site */
.product-visual { grid-column: 1 / -1; }
/* each visual is a contained surface (no border): rounded corners and a soft shadow set it apart from the page */
.pv-frame {
  position: relative; overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 16px);
  background: var(--pv-bg, var(--paper-2));
  box-shadow: 0 32px 64px -30px rgb(21 21 20 / .38);
}
.pv-frame picture { display: block; aspect-ratio: 16 / 10; }
.pv-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.8s var(--ease); }

/* ---------- Work ---------- */

.work .split { margin-bottom: clamp(64px, 8vw, 128px); }
.work-intro { display: flex; flex-direction: column; gap: 18px; }
.small-note { color: var(--muted); font-size: .9375rem; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 40ch; }

/* two-column editorial zig-zag (left, right, left, right): every project the same size and 16:11 frame;
   the right column sits a little lower */
.projects {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 96px); row-gap: clamp(72px, 8vw, 128px);
  align-items: start;
}
.project:nth-child(even) { margin-top: clamp(96px, 11vw, 184px); }

.frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--tone, var(--paper-2));
  border-radius: 2px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }

.frame-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(16px, 2vw, 28px);
  box-shadow: inset 0 0 0 1px rgb(21 21 20 / .06);
}
.ph-tag { color: rgb(21 21 20 / .42); font-variant-numeric: normal; }
.ph-name {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
  font-weight: 600; line-height: .95; letter-spacing: -.045em;
  color: rgb(21 21 20 / .16);
}

.gallery { position: absolute; inset: 0; }
.gallery-track {
  display: flex; gap: 10px; height: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; transition: opacity .6s var(--ease); }
.gallery-slide:not(.is-current) img { opacity: .55; }
/* The frame is a true 16:11 of the full project width; each slide fills the whole frame, so the 16:11 image shows
   complete, exactly as composed (no peek, no hidden edges). */
.gallery-slide picture { display: block; width: 100%; height: 100%; }
.gallery-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.gallery-progress { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.gallery-progress span { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: var(--ink); transition: width .6s var(--ease); }
.gallery-count { font-size: .75rem; letter-spacing: .07em; font-variant-numeric: tabular-nums; color: var(--muted); }
.gallery-btn { display: none; }
.js .gallery-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; cursor: pointer;
  font-size: .875rem; line-height: 1; transition: border-color .3s ease, background-color .3s ease;
}
.gallery-btn:hover { border-color: var(--ink); }
.gallery-btn[disabled] { opacity: .35; cursor: default; }

.caption { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 12px; margin-top: 20px; }
.p-idx { color: var(--muted); padding-top: .35em; }
.caption h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.caption p { margin-top: 6px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.caption .p-meta { margin-top: 14px; color: var(--muted); }
/* where the work was done: a quiet note under the tags, not part of the description */
.caption .p-credit { margin-top: 6px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }

/* ---------- Facts (definition rows) ---------- */

.facts > div {
  display: grid; grid-template-columns: minmax(7.5rem, 32%) 1fr; gap: 16px;
  padding-block: 12px; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); padding-top: .3em; }
.facts dd { font-weight: 500; }
.facts--compact > div { grid-template-columns: 6.5rem 1fr; padding-block: 10px; }
.facts--compact dd { font-size: .9375rem; }

/* ---------- Company ---------- */

.company { padding-bottom: var(--space); }
.company-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.company-grid > .h2 { grid-column: 1 / span 5; }
.company-body { grid-column: 7 / -1; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }
.statement {
  font-size: clamp(1.375rem, 1rem + 1.25vw, 2.125rem);
  line-height: 1.32; letter-spacing: -.025em;
  text-wrap: pretty;
}

/* ---------- Footer + contact ---------- */

.site-footer {
  background: var(--ink); color: var(--paper);
  padding-top: clamp(80px, 11vw, 168px); padding-bottom: 32px;
}
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-label { color: rgb(243 241 236 / .6); display: flex; align-items: center; gap: 8px; }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.contact-intro { grid-column: 1 / span 5; }
.contact-title {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: clamp(2.5rem, 1.25rem + 4.6vw, 5.75rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.042em;
}
.contact-note { margin-top: 24px; max-width: 34ch; color: rgb(243 241 236 / .72); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.contact-note a { color: var(--paper); }

.contact-form { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); align-content: start; }
.field { position: relative; display: flex; flex-direction: column; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { color: rgb(243 241 236 / .6); transition: color .3s ease; }
.field input, .field textarea {
  width: 100%;
  margin-top: 6px; padding: 10px 0 12px;
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid rgb(243 241 236 / .28);
  color: var(--paper);
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.4; letter-spacing: -.01em;
  transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 7.5em; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
/* Browser autofill: Chrome and Safari paint a light box with dark text; autofilled fields keep the form's look.
   (separate rules per pseudo-class, so a browser that lacks one still applies the other) */
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--paper); caret-color: var(--paper);
  box-shadow: 0 0 0 100px var(--ink) inset; transition: background-color 100000s ease 0s;
}
.field input:-webkit-autofill:focus, .field textarea:-webkit-autofill:focus { box-shadow: 0 0 0 100px var(--ink) inset, 0 1px 0 0 var(--accent); }
.field input:autofill, .field textarea:autofill { -webkit-text-fill-color: var(--paper); box-shadow: 0 0 0 100px var(--ink) inset; filter: none; }
.field input:autofill:focus, .field textarea:autofill:focus { box-shadow: 0 0 0 100px var(--ink) inset, 0 1px 0 0 var(--accent); }
.field:focus-within label { color: var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: #FF8A73; }
.field-error { margin-top: 8px; color: #FF8A73; font-size: .875rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.send {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px 0 24px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 2px;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -.005em;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s var(--ease);
}
.send .arrow { display: inline-block; transition: transform .5s var(--ease); }
.send:hover { background: #1FAAF0; }
.send:hover .arrow { transform: translateX(4px); }
.send:active { transform: translateY(1px); }
.send[disabled] { opacity: .6; cursor: progress; }
.site-footer .send:focus-visible { outline-color: var(--paper); }
.form-status { grid-column: 1 / -1; margin-top: 18px; min-height: 1.5em; color: rgb(243 241 236 / .8); }
.form-status a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.form-done { grid-column: 1 / -1; padding-top: 22px; }
.form-done p:first-child { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.form-done p + p { margin-top: 12px; color: rgb(243 241 236 / .72); }
.contact-form.is-sent > :not(.form-done) { display: none; }
/* after sending, the confirmation sits vertically centred against the intro on the left */
.contact-form.is-sent { align-self: center; }
.contact-form.is-sent .form-done { padding-top: 0; }

.contact-short { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.contact-short .contact-title { margin-top: 0; }

.footer-grid {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main end" "tag tag";
  align-items: baseline; gap: 6px 24px; line-height: 1.3;
  margin-top: clamp(72px, 10vw, 160px); padding-top: 18px;
  border-top: 1px solid rgb(243 241 236 / .16);
  font-size: .9375rem; color: rgb(243 241 236 / .7);
}
.footer-main { grid-area: main; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.footer-grid .wordmark { color: var(--paper); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.footer-nav a { color: var(--paper); }
.footer-end { grid-area: end; text-align: right; }
.footer-end a { color: var(--accent); }
/* one line, sized to fit the narrowest phones */
.footer-tag { grid-area: tag; color: var(--accent); white-space: nowrap; font-size: .625rem; }
/* the since-2009 line: uppercase in the system monospace (no extra font download) */
.footer-tag, .menu-tag { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.menu-tag { font-size: .625rem; }
.link-btn { padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--accent); }

/* ---------- Analytics consent (shown only when analytics is configured) ---------- */

.consent {
  position: fixed; left: var(--pad); bottom: 20px; z-index: 60;
  width: min(420px, calc(100vw - 2 * var(--pad)));
  padding: 22px 22px 20px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  box-shadow: 0 24px 60px rgb(21 21 20 / .18);
}
.consent[hidden] { display: none; }
.consent-text { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }
.consent-text a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent-actions button {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 2px; background: transparent;
  font-weight: 500; font-size: .9375rem; cursor: pointer;
}
.consent-actions button:hover { background: var(--ink); color: var(--paper); }

/* ---------- Motion (JS only; disabled for reduced motion) ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .sec-head[data-reveal] { opacity: 1; transform: none; }
.js .sec-head[data-reveal] > span { opacity: 0; transition: opacity .8s ease .35s; }
.js .sec-head[data-reveal]::before { transform: scaleX(0); transition: transform 1.4s var(--ease-in-out); }
.js .sec-head[data-reveal]::after { transform: scaleX(0); transition: transform .8s var(--ease) .9s; }
.js .sec-head.is-in > span { opacity: 1; }
.js .sec-head.is-in::before, .js .sec-head.is-in::after { transform: scaleX(1); }

.js .hero-title .line > span { transform: translateY(105%); }
.js.is-loaded .hero-title .line > span { transform: none; transition: transform 1.25s var(--ease) var(--d, 0s); }

.js .frame img { transform: scale(1.06); }
.js .project.is-in .frame img { transform: none; }
.js .product-visual[data-reveal] img { transform: scale(1.04); }
.js .product-visual.is-in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .sec-head[data-reveal] > span, .js .hero-title .line > span, .js .frame img, .js .product-visual img { opacity: 1; transform: none; }
  .js .sec-head[data-reveal]::before, .js .sec-head[data-reveal]::after { transform: none; }
}

/* ---------- Privacy page ---------- */

.legal { padding-top: clamp(48px, 8vw, 120px); padding-bottom: var(--space); }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.legal-head { grid-column: 1 / span 4; }
.legal-head .h2 { position: sticky; top: calc(var(--head-h) + 32px); }
.legal-body { grid-column: 6 / span 6; max-width: 64ch; }
.legal-body h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 48px; scroll-margin-top: calc(var(--head-h) + 24px); }
.legal-body p, .legal-body ul { margin-top: 14px; color: var(--ink-2); }
.legal-body ul { list-style: none; }
.legal-body li { padding-left: 18px; position: relative; margin-top: 6px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }
.legal-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.legal-meta { color: var(--muted); margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rule); }

/* ---------- Responsive ---------- */

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-links { grid-column: 7 / -1; }
}

@media (max-width: 1023px) {
  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
  .split .lead { max-width: 40ch; }

  .hero-lead { grid-column: 1 / -1; }
  .hero-links { grid-column: 1 / -1; margin-top: 36px; }

  .exp-figure { grid-column: 1 / -1; }
  .exp-title { position: static; }
  .disciplines { grid-column: 1 / -1; margin-top: clamp(56px, 8vw, 96px); }
  .disc-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .disc-label { grid-column: 1 / span 3; padding-top: 1.1em; align-self: start; }
  .disc-group ul, .disc-group .exp-note { grid-column: 4 / -1; }

  .areas { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 56px; }
  .area { grid-row: auto; grid-template-rows: none; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .area-idx { grid-column: 1 / span 3; padding-top: .8em; }
  .area h3, .area > p, .area-list { grid-column: 4 / -1; }
  .area h3 { margin-top: 0; }


  .product-title, .product-text { grid-column: 1 / -1; }
  .product-desc { max-width: 44ch; }
  .product .facts--compact { max-width: 520px; }

  .company-grid > .h2, .company-body { grid-column: 1 / -1; }

  .contact-intro, .contact-form { grid-column: 1 / -1; }

  .legal-head, .legal-body { grid-column: 1 / -1; }
  .legal-head .h2 { position: static; margin-bottom: 48px; }
}

@media (max-width: 767px) {
  :root { --head-h: 60px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero .wrap { min-height: 0; }
  /* Phones: the headline goes big and may wrap (4 lines on most phones); two lines from tablet width up */
  .hero-title { padding-top: clamp(80px, 16svh, 160px); font-size: clamp(3.25rem, 15.5vw, 5.5rem); line-height: 1.06; }
  .hero-title .line { white-space: normal; }
  .hero-title .line > span { text-wrap: balance; }
  .h2, .contact-title { line-height: 1.08; }
  .product-name { line-height: 1.04; }
  .lead, .hero-lead { line-height: 1.52; }
  .statement { line-height: 1.38; }
  .exp-years { line-height: 1.24; }
  .disc-group li { line-height: 1.14; }

  .disc-group { display: block; }
  .disc-label { padding-top: 0; }

  .area { display: flex; flex-direction: column; }
  .area h3 { margin-top: 28px; }

  .projects { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .project:nth-child(even) { margin-top: 0; }
  .caption { grid-template-columns: 2.5rem 1fr; }

  .pv-frame { border-radius: 12px; }
  .pv-frame picture { aspect-ratio: 2 / 3; }
  .hero-links { justify-content: flex-start; }
  .areas .area:first-child { border-top: 0; } /* no rule under the section intro */
  /* products on phones: intro, then the image, then category, platforms and link; no rules between products */
  .product-list { gap: 64px; }
  .product-list .product { border-top: 0; row-gap: 0; padding-top: 0; }
  .product-text { display: contents; }
  .product-title { order: 1; }
  .product-desc { order: 2; grid-column: 1 / -1; margin-top: 24px; }
  .product-visual { order: 3; margin-top: 32px; }
  .product .facts { order: 4; grid-column: 1 / -1; margin-top: 28px; }
  .product .cta, .product .soon { order: 5; grid-column: 1 / -1; justify-self: start; margin-top: 22px; }

  .contact-form { grid-template-columns: 1fr; }
  /* tighter contact form on phones (inputs stay 16px so iOS does not zoom on focus) */
  .contact { row-gap: 24px; }
  .contact-note { margin-top: 16px; }
  .field { padding-top: 14px; }
  .field input, .field textarea { margin-top: 2px; padding: 6px 0 8px; font-size: 1rem; }
  .field textarea { min-height: 0; height: 5.5em; }
  .form-foot { margin-top: 22px; }
  .send { min-height: 44px; padding: 0 18px 0 20px; font-size: .9375rem; }
  .form-status { margin-top: 10px; min-height: 0; }
  .footer-grid { margin-top: 48px; }
  .form-foot { flex-direction: column-reverse; align-items: flex-start; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  /* phone footer: logo and Back to top, then the since-2009 line, then the copyright */
  .footer-grid { grid-template-columns: 1fr auto; grid-template-areas: "logo end" "tag tag" "copy copy"; row-gap: 10px; }
  .footer-main { display: contents; }
  .footer-grid .wordmark { grid-area: logo; }
  .footer-copy { grid-area: copy; }
  .footer-nav { display: none; } /* Privacy and Privacy settings are in the menu on phones */
  .footer-end { text-align: right; }
}
