/* Vindobona Tech */

@font-face { font-family: "Schibsted"; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d1726;
  --ink-2: #16243a;
  --ink-3: #22344f;
  --paper: #f3f0e9;
  --paper-2: #e9e4d8;
  --line: #d6cfbf;
  --line-dark: #2b3d58;
  --text: #0d1726;
  --muted: #5b6574;
  --muted-dark: #9aa6b8;
  --accent: #e2592a;
  --accent-ink: #b8431b;
  --sans: "Schibsted", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 23, 38, .94);
  backdrop-filter: blur(8px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: .06em; line-height: 1; }
.logo-word span { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .32em; color: var(--accent); margin-left: 6px; vertical-align: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: #d4dae3; }
.nav a:hover { color: #fff; }
.nav .lang { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-dark); padding: 4px 8px; border-radius: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 6px;
  border: 0; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.nav .btn { padding: 9px 16px; color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--paper); border-radius: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 12px; cursor: pointer; }

/* Hero */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero .wrap { position: relative; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted-dark); margin-bottom: 36px; }
.hero-meta b { color: var(--accent); font-weight: 500; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 104px);
  line-height: .98; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 32px; max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: #c9d1dc; max-width: 56ch; margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip {
  position: relative; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip div { padding: 22px var(--gut) 26px; border-right: 1px solid var(--line-dark); }
.hero-strip div:last-child { border-right: 0; }
.hero-strip strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.hero-strip span { color: var(--muted-dark); font-size: 14px; }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; margin-bottom: 56px; align-items: start; }
.section-head .mono { color: var(--accent-ink); padding-top: 12px; border-top: 2px solid var(--accent); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 800; max-width: 18ch; }
.section-head p { grid-column: 2; margin: 0; color: var(--muted); max-width: 60ch; font-size: 18px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 220px 1fr 1.1fr; gap: 12px 48px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.service .num { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.service h3 { margin: 0; font-size: 24px; letter-spacing: -.01em; font-weight: 700; line-height: 1.2; }
.service p { margin: 0; color: var(--muted); }
.service:hover h3 { color: var(--accent-ink); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 3px; margin-left: 8px; vertical-align: 4px; white-space: nowrap; }

/* Process */
.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .mono { color: var(--accent-ink); display: block; margin-bottom: 18px; }
.step h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Why */
.why { background: var(--ink); color: var(--paper); }
.why .section-head .mono { color: var(--accent); }
.why .section-head p { color: var(--muted-dark); }
.why-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.quote { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.015em; font-weight: 500; margin: 0; }
.quote em { font-style: normal; color: var(--accent); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.facts li:first-child { border-top: 1px solid var(--line-dark); }
.facts .mono { color: var(--accent); padding-top: 3px; }
.facts strong { display: block; font-size: 18px; }
.facts span { color: var(--muted-dark); font-size: 15px; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.districts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.districts span { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 4px; background: #fff; }
.districts span.hq { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map { aspect-ratio: 1 / 1; width: 100%; max-width: 480px; justify-self: end; }

/* Contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.channels { list-style: none; padding: 0; margin: 0; }
.channels li { border-top: 1px solid var(--line); }
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 20px 0; text-decoration: none; align-items: baseline; }
.channels .mono { color: var(--muted); }
.channels strong { font-size: 19px; font-weight: 700; }
.channels .arrow { color: var(--accent); font-weight: 700; transition: transform .15s ease; }
.channels a:hover .arrow { transform: translateX(4px); }
.hours { margin-top: 28px; color: var(--muted); font-size: 15px; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--paper);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; background: #fff; }
textarea { min-height: 140px; resize: vertical; }
.consent { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; margin-top: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--muted); }
.hp { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo { color: var(--paper); margin-bottom: 16px; }
.site-footer h4 { color: var(--paper); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal p, .legal li { color: #2b3442; }
.ph { background: #ffe7a3; padding: 0 4px; border-radius: 3px; }

/* ===== Showpiece layer: 3D + motion ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }

.hero { display: flex; flex-direction: column; min-height: calc(100svh - 68px); }
.hero > .wrap:not(.hero-strip) { flex: 1; display: flex; flex-direction: column; justify-content: center; z-index: 2; width: 100%; }
.hero::before { z-index: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero.gl-ready .hero-canvas { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,23,38,.92) 0%, rgba(13,23,38,.7) 32%, rgba(13,23,38,0) 62%),
              linear-gradient(0deg, rgba(13,23,38,.85) 0%, rgba(13,23,38,0) 30%);
}
.hero-strip { z-index: 2; width: 100%; background: rgba(13,23,38,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-tag {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  font-size: 11px; color: var(--paper); background: rgba(13,23,38,.8); border: 1px solid var(--accent);
  padding: 5px 9px; border-radius: 4px; opacity: 0; transition: opacity .6s ease;
}
.hero-tag.on { opacity: 1; }
.hero-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--accent); }

/* Marquee */
.marquee { background: var(--ink); color: var(--muted-dark); overflow: hidden; padding: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 13px 0; white-space: nowrap; }
.marquee span::after { content: "/"; color: var(--accent); margin: 0 2.2em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services + morph stage */
.svc-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.svc-stage {
  position: sticky; top: 76px; z-index: 5; height: clamp(170px, 28vh, 240px); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(13,23,38,.35);
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--paper) 70%);
}
.svc-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; opacity: .7;
}
.svc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.svc-stage.gl-ready canvas { opacity: 1; }
.svc-readout { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.svc-readout .svc-name { color: var(--ink); font-weight: 500; text-align: right; }
.svc-stage .corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.svc-stage .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.svc-stage .corner.br { bottom: 40px; right: 10px; border-left: 0; border-top: 0; }
.svc-stage.flash .svc-name { animation: flash .6s ease; }
@keyframes flash { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.svc-stage:not(.gl-ready) .svc-readout, .svc-stage:not(.gl-ready) .corner { display: none; }
.no-gl .svc-stage { display: none; }

.service { position: relative; transition: padding-left .35s ease; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.service:hover::after, .service.is-active::after { transform: scaleX(1); }
.service .num { transition: color .3s ease; }
.service.is-active .num, .service:hover .num { color: var(--accent); }
.service.is-active h3 { color: var(--accent-ink); }

@media (min-width: 1100px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
  .svc-stage { order: 2; top: 104px; height: min(560px, calc(100vh - 140px)); box-shadow: none; }
  .svc-layout .service { grid-template-columns: 64px 1fr; }
  .svc-layout .service p { grid-column: 2; }
  .service.is-active { padding-left: 14px; }
}

/* Steps line */
.steps { border-top: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.motion .steps::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.motion .steps.in::before { transform: scaleX(1); }
.step .mono::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* Map */
.map .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .6; } to { transform: scale(2.4); opacity: 0; } }
.districts span { transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s ease; }
.districts span.lit { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* Reveal + split text (only when motion is allowed) */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion .rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .c { display: inline-block; }
.motion .split .c { transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.motion .split.in .c { transform: none; }
.btn { transition: background .15s ease, transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* Responsive */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { grid-column: 1; }
  .service { grid-template-columns: 56px 1fr; }
  .service p { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .why-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map { justify-self: start; max-width: 380px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gut) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav .lang { border: 0; padding: 14px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 14px; border: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  form { grid-template-columns: 1fr; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels .mono { grid-column: 1 / -1; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 68px); }
  .hero::after { background: linear-gradient(0deg, rgba(13,23,38,.92) 0%, rgba(13,23,38,.55) 45%, rgba(13,23,38,.35) 100%); }
  .hero.gl-ready .hero-canvas { opacity: .8; }
  .hero-strip strong { font-size: 21px; }
  .hero-strip div { padding: 16px var(--gut) 18px; }
  .svc-readout { font-size: 11px; }
  .service { grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 24px 0; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .hero::after { background: linear-gradient(90deg, rgba(13,23,38,.9) 0%, rgba(13,23,38,.45) 60%, rgba(13,23,38,.2) 100%), linear-gradient(0deg, rgba(13,23,38,.85) 0%, rgba(13,23,38,0) 35%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .map .pulse { animation: none; }
  * { transition: none !important; }
}
