
/* Layout: night vitrine. One printed object in the dark, then the works laid out like a catalogue you walk past. */
:root {
  color-scheme: dark;
  --night: #08080e;
  --night-2: #100f19;
  --night-a: rgb(8 8 14 / 0.78);
  --ink: #ecebf3;
  --dim: #9896ad;
  --line: #262439;
  --uv: #8f80ff;
  --glow: #f3effe;

  --f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 10.5px;
  --t-s: 14px;
  --t-m: 17px;
  --t-l: clamp(21px, 2.3vw, 31px);
  --t-xl: clamp(36px, 5.4vw, 76px);
  --t-xxl: clamp(68px, 13.5vw, 232px);

  --gut: 16px;
  --gap: clamp(14px, 2vw, 28px);
}
@media (min-width: 900px) { :root { --gut: 44px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
a { color: inherit; text-decoration-color: var(--uv); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--glow); }
:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; }
img { display: block; width: 100%; height: auto; max-width: 100%; }

.wrap {
  max-width: 1480px;
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.7; }
.dim { color: var(--dim); }

/* language toggle */
:root[data-lang="no"] .en { display: none !important; }
:root:not([data-lang="no"]) .no { display: none !important; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--night-a);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand .tag { color: var(--uv); margin-left: 10px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nav a { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--dim); }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { all: unset; cursor: pointer; font-family: var(--f-mono); font-size: var(--t-xs); padding: 4px 9px; color: var(--dim); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--night); }
.lang button:focus-visible { outline: 2px solid var(--uv); outline-offset: -2px; }
@media (max-width: 720px) { .nav .hide-s { display: none; } }
@media (max-width: 480px) { .brand .tag { display: none; } .nav { gap: 12px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(600px, 94svh, 980px); display: flex; isolation: isolate; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
@media (pointer: fine) { .hero canvas { cursor: grab; } .hero canvas:active { cursor: grabbing; } }
.hero::after { /* floor glow under the object */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 8%; width: 70vmin; height: 18vmin; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(143 128 255 / 0.16), transparent); pointer-events: none;
}
@media (min-width: 900px) { .hero::after { left: 66%; bottom: 12%; } }
.hero-fallback { display: none; position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat url("/img/vessels-arca-night.jpg"); opacity: 0.45; }
.hero.no-gl .hero-fallback { display: block; }
.hero.no-gl .hud { display: none; }
.hero-inner {
  position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px var(--gap);
  padding-top: 90px; padding-bottom: clamp(26px, 5vh, 56px); pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.name {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--f-display); font-weight: 560; font-size: var(--t-xxl);
  font-stretch: 75%; font-variation-settings: "opsz" 96, "wdth" 75;
  line-height: 0.82; letter-spacing: -0.035em; text-wrap: balance;
}
.kicker { margin: 0 0 6px; font-family: var(--f-display); font-size: var(--t-l); font-weight: 400; line-height: 1.15; font-variation-settings: "opsz" 48; max-width: 22ch; text-wrap: balance; }
.lede { margin: 0; color: var(--dim); max-width: 46ch; font-size: var(--t-s); }
.hud { justify-self: end; min-width: 0; display: grid; gap: 2px; text-align: right; }
.hud .row { white-space: nowrap; }
.hud b { font-weight: 500; color: var(--ink); }
.hud .bar { height: 2px; background: var(--line); margin: 8px 0 10px auto; width: 190px; max-width: 100%; position: relative; overflow: hidden; }
.hud .bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--uv); }
.btn {
  all: unset; cursor: pointer; justify-self: end; margin-top: 10px;
  font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--ink); background: var(--night-a);
  white-space: nowrap;
}
.btn:hover { border-color: var(--uv); }
.btn:focus-visible { outline: 2px solid var(--uv); outline-offset: 2px; }
.hero-text { min-width: 0; }
@media (max-width: 720px) {
  .hero { min-height: max(680px, 100svh); }
  .hero::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, 1fr) auto auto; align-items: start; padding-top: 78px; }
  .name { grid-row: 1; }
  .hero-text { grid-row: 3; }
  .hud { grid-row: 4; justify-self: stretch; text-align: left; grid-template-columns: 1fr auto; column-gap: 12px; }
  .hud .row, .hud .bar { grid-column: 1; }
  .hud .bar { margin-left: 0; width: 100%; }
  .hud .hide-s { display: none; }
  .btn { grid-column: 2; grid-row: 1 / span 4; align-self: end; justify-self: end; margin-top: 0; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 64px; }
.band { padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: var(--t-xl); line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 96, "wdth" 80; text-wrap: balance; }
h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "opsz" 48; text-wrap: balance; }

/* statement */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.statement .big { grid-column: 1 / span 8; margin: 0; font-family: var(--f-display); font-weight: 380; font-size: var(--t-l); line-height: 1.28; font-variation-settings: "opsz" 36; letter-spacing: -0.01em; text-wrap: pretty; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: var(--t-s); }
@media (max-width: 1100px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .statement .big { grid-column: 1 / -1; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* feature work */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.feature .lead-img { grid-column: 1 / -1; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.feature .lead-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.feature .meta { grid-column: 1 / span 4; display: grid; gap: 14px; }
.feature .body { grid-column: 6 / span 7; display: grid; gap: 18px; }
.feature .body p { margin: 0; max-width: 60ch; }
.feature .trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.trio img { aspect-ratio: 2 / 3; object-fit: cover; background: var(--night-2); }
.parts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.parts div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.parts div span:last-child { color: var(--dim); }
.big-quote { margin: 0; font-family: var(--f-display); font-size: var(--t-l); font-weight: 400; line-height: 1.15; font-variation-settings: "opsz" 48; }
@media (max-width: 900px) {
  .feature .meta, .feature .body { grid-column: 1 / -1; }
  .feature .lead-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .feature .trio { grid-template-columns: 1fr 1fr; } .trio figure:last-child { display: none; } .parts div { grid-template-columns: 1fr; gap: 2px; } }

/* arca strip: studio documentation */
.strip { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.strip figure, .grid figure, .trio figure { margin: 0; }
.strip img { aspect-ratio: 2 / 3; object-fit: cover; background: #e9e9ee; }
figcaption { margin-top: 10px; display: grid; gap: 2px; }
figcaption .t { font-size: var(--t-s); font-weight: 500; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }

/* works grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) var(--gap); margin-top: clamp(64px, 9vw, 120px); }
.grid img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--night-2); }
.grid figcaption { gap: 4px; }
.grid h3 { margin-top: 4px; }
.grid p { margin: 6px 0 0; font-size: var(--t-s); color: var(--dim); max-width: 48ch; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* practice */
.practice { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.practice .pic { grid-column: 1 / span 5; }
.practice .pic img { aspect-ratio: 2 / 3; object-fit: cover; }
.practice .txt { grid-column: 7 / span 6; display: grid; gap: clamp(26px, 3vw, 40px); }
blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--uv); }
blockquote p { margin: 0 0 10px; font-family: var(--f-display); font-size: var(--t-l); font-weight: 380; line-height: 1.25; font-variation-settings: "opsz" 36; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2em minmax(0, 7em) minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--uv); padding-top: 3px; }
.steps b { font-weight: 600; }
.ai { margin: 0; font-size: var(--t-s); color: var(--dim); max-width: 58ch; }
.review { display: inline-block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night); background: var(--uv); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; margin-right: 6px; }
@media (max-width: 900px) { .practice .pic, .practice .txt { grid-column: 1 / -1; } .practice .pic img { aspect-ratio: 4 / 5; } }
@media (max-width: 480px) { .steps li { grid-template-columns: 2.6em minmax(0, 1fr); } .steps li span { grid-column: 2; } }

/* lists (teaching, cv) */
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.list li .y { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); padding-top: 3px; font-variant-numeric: tabular-nums; }
.list li .w { color: var(--dim); }

/* about */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.about .txt { grid-column: 1 / span 7; display: grid; gap: 18px; }
.about .txt p { margin: 0; max-width: 62ch; }
.about .pic { grid-column: 9 / span 4; }
.about .pic img { aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 900px) { .about .txt, .about .pic { grid-column: 1 / -1; } .about .pic { max-width: 420px; } }

/* cv */
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 64px); }
.cv h3 { margin-bottom: 14px; font-size: clamp(18px, 1.6vw, 22px); }
@media (max-width: 800px) { .cv { grid-template-columns: 1fr; } }
.cv-more { margin-top: clamp(28px, 4vw, 48px); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.pill { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.pill:hover { border-color: var(--uv); }

/* contact */
.contact .mail { display: inline-block; margin-top: 8px; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 96, "wdth" 80; text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { color: var(--uv); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.contact-grid p { margin: 6px 0 0; font-size: var(--t-s); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 26px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- added for the live site (2026-11-26) ---------- */
.lang a { font-family: var(--f-mono); font-size: var(--t-xs); padding: 4px 9px; color: var(--dim); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--night); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"]:hover { color: var(--night); }

/* design work teaser */
.dteaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dteaser a { text-decoration: none; display: grid; gap: 10px; }
.dteaser img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--night-2); filter: saturate(0.9); transition: filter .2s; }
.dteaser a:hover img { filter: saturate(1.1); }
.dteaser .t { font-size: var(--t-s); font-weight: 500; }
.dteaser-intro { max-width: 60ch; margin: 0 0 clamp(24px, 3vw, 40px); color: var(--dim); font-size: var(--t-s); }
@media (max-width: 900px) { .dteaser { grid-template-columns: 1fr 1fr; } }

/* questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 64px); margin: 0; }
.faq dt { font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.15; margin-bottom: 10px; font-variation-settings: "opsz" 36; }
.faq dd { margin: 0; color: var(--dim); font-size: var(--t-s); max-width: 58ch; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; } }
