/* 06 · Motionsites: "Custom Spaces" adapted. White, near-black, photos carry the colour. */
:root {
  --white: #FFFFFF;
  --ink: #171717;
  --ink-2: #262626;
  --muted: #525252;
  --line: #E5E5E5;
  --soft: #F5F5F5;
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; display: grid; justify-items: center; gap: 18px; }
.section { padding: 112px 0; }
@media (max-width: 767px) { .section { padding: 72px 0; } }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink); line-height: 1.55; }
.kicker, .hero-kicker { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* Pills and text links */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), transform .3s var(--ease); }
.pill:hover { background: var(--ink-2); }
.pill:active { transform: scale(.97); }
.pill .ic { width: 18px; height: 18px; }
.pill-lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.u-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: #A3A3A3; transition: text-decoration-color .3s var(--ease); }
a:hover .u-link, .u-link:hover { text-decoration-color: var(--ink); }

/* Navbar */
.navbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 640px) { .navbar { padding: 18px 24px; } }
@media (min-width: 900px) { .navbar { padding: 18px 40px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.logo-ic { width: 26px; height: 26px; stroke-width: 1.8; }
.logo-name { white-space: nowrap; }
.burger { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.burger:hover { background: var(--soft); }
.bl { position: absolute; left: 10px; width: 24px; height: 1.5px; border-radius: 2px; background: currentColor; transition: width .3s var(--ease); }
.bl:nth-child(1) { transform: translateY(-3.25px); }
.bl:nth-child(2) { transform: translateY(3.25px); }
.burger:hover .bl { width: 20px; }
.pill-nav { display: none; }
@media (min-width: 900px) { .burger { position: absolute; left: 50%; translate: -50% 0; } .pill-nav { display: inline-flex; } }

/* Menu drawer */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.overlay[hidden], .menu[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.menu { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: 14px 20px 32px; background: var(--white); overflow-y: auto; opacity: 0; transform: translateY(100%); transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (min-width: 640px) { .menu { inset: 0 0 0 auto; width: 100%; max-width: 420px; transform: translateX(100%); padding: 18px 28px 32px; } }
.menu.is-open { opacity: 1; transform: none; }
.menu-head { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-bottom: 24px; }
.close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.close:hover { background: var(--soft); }
.cl { position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.cl:nth-child(1) { transform: translateY(-3px); }
.cl:nth-child(2) { transform: translateY(3px); }
.menu.is-open .cl:nth-child(1) { transform: rotate(45deg); }
.menu.is-open .cl:nth-child(2) { transform: rotate(-45deg); }
.menu-links > li { opacity: 0; transform: translateX(32px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu-links > li { opacity: 1; transform: none; }
.menu.is-open .menu-links > li:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu-links > li:nth-child(2) { transition-delay: .21s; }
.menu.is-open .menu-links > li:nth-child(3) { transition-delay: .27s; }
.menu.is-open .menu-links > li:nth-child(4) { transition-delay: .33s; }
.menu.is-open .menu-links > li:nth-child(5) { transition-delay: .39s; }
.menu-links > li > a, .menu-links summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; transition: color .3s var(--ease); }
.menu-links > li > a:hover, .menu-links summary:hover { color: var(--muted); }
.menu-links summary::-webkit-details-marker { display: none; }
.menu-links summary::after { content: '+'; font-weight: 300; color: var(--muted); }
.menu-links details[open] summary::after { content: '\2212'; }
.menu-sub { display: grid; padding: 4px 0 14px; }
.menu-sub a { padding: 7px 0; color: var(--muted); text-decoration: none; }
.menu-sub a:hover { color: var(--ink); }
.menu-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: auto; padding-top: 40px; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s; }
.menu.is-open .menu-cta { opacity: 1; transform: none; }

/* Hero */
.hero { padding-top: 104px; }
@media (min-width: 640px) { .hero { padding-top: 120px; } }
.hero-content { display: grid; justify-items: center; gap: 18px; padding: 0 16px; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7.6vw, 5.5rem); letter-spacing: -.045em; line-height: 1.02; max-width: 14ch; }
.hero-sub { max-width: 46ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 10px; }

/* Strip */
.strip { position: relative; padding: 16px 0; margin-top: 28px; overflow: hidden; }
.mask { position: absolute; left: 0; right: 0; z-index: 2; width: 100%; height: 72px; fill: var(--white); pointer-events: none; }
@media (min-width: 640px) { .mask { height: 100px; } }
.mask-top { top: 0; } .mask-bottom { bottom: 0; }
.strip-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px 0; }
.strip-viewport::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 12px; width: max-content; padding: 0 16px; }
@media (min-width: 640px) { .track { gap: 16px; } }
.slide { flex: none; scroll-snap-align: center; }
.slide a { display: block; width: 240px; text-decoration: none; color: var(--ink); border-radius: 16px; }
@media (min-width: 640px) { .slide a { width: 320px; } }
.slide img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; background: var(--soft); pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (min-width: 640px) { .slide img { height: 480px; } }
.slide-name { display: block; padding: 12px 4px 0; font-size: .95rem; font-weight: 500; }
.slide a:hover .slide-name { text-decoration: underline; text-underline-offset: 4px; }
.strip { padding-bottom: 8px; }
/* Motion mode: GSAP drives the track, native scrolling is off */
.is-gliding .strip-viewport { overflow: hidden; scroll-snap-type: none; cursor: grab; touch-action: pan-y; }
.is-gliding .strip-viewport.is-dragging { cursor: grabbing; }
.is-gliding .track { will-change: transform; }
.strip-toggle { display: block; margin: 4px 16px 0 auto; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 .85rem var(--font); cursor: pointer; }
.strip-toggle:hover { border-color: var(--ink); }
.strip-toggle[hidden] { display: none; }
@media (min-width: 640px) { .strip-toggle { margin-right: 40px; } }
.points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 8px 16px 0; font-weight: 500; }
.points li { display: inline-flex; align-items: center; gap: 8px; }

/* Welcome */
.welcome .center { gap: 22px; }
.welcome h2 { max-width: 16ch; }

/* Services list */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 48px; }
.svc-list { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 28px 0 32px; text-decoration: none; color: inherit; }
.svc-list p { color: var(--muted); max-width: 40ch; }
.more { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #A3A3A3; transition: text-decoration-color .3s var(--ease); }
.svc-list a:hover .more { text-decoration-color: var(--ink); }
.svc-list a:hover h3 { color: var(--muted); }

/* Steps */
.steps-sec { background: var(--soft); }
.steps-wrap { position: relative; margin-top: 64px; }
.steps-line { display: none; }
@media (min-width: 900px) {
  .steps-line { display: block; position: absolute; top: 24px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line); }
  .steps-line span { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
}
.steps { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; } .steps li { justify-items: center; } }
.steps li { display: grid; gap: 12px; align-content: start; }
.dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 600; box-shadow: 0 0 0 8px var(--soft); }
.steps p { color: var(--muted); max-width: 34ch; }

/* Explore */
.explore { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 700px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .explore { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.explore a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .3s var(--ease); }
.explore a:hover { border-color: var(--ink); }
.ex-t { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.ex-d { color: var(--muted); flex: 1; }
.explore .u-link { justify-self: start; margin-top: 6px; }

/* FAQ */
.note { color: var(--muted); }
.note a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.acc { margin-top: 48px; border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .4s var(--ease); }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc details p { padding: 0 40px 24px 0; color: var(--muted); }

/* Closing band */
.cta { padding-bottom: 112px; }
.cta-media { position: relative; height: clamp(280px, 42vw, 560px); overflow: hidden; }
.cta-media img { width: 100%; height: 115%; object-fit: cover; }
.cta-copy { margin-top: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-line { margin: 14px 0 22px; color: var(--muted); max-width: 32ch; }
.footer-h { font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal a:hover { color: var(--ink); }

/* Floating pill: phones and tablets (desktop keeps the nav pill) */
.pill-float { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 40; min-height: 52px; padding: 12px 22px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); }
@media (min-width: 900px) { .pill-float { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 88px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .menu, .menu-links > li, .menu-cta { transform: none !important; }
}

/* Polish pass (make-interfaces-feel-better): touch targets, image edges, press feedback */
.u-link { display: inline-block; padding-block: 10px; margin-block: -10px; }
.slide img, .cta-media img { outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.pill:active { transform: scale(.96); }

/* Guidelines pass (web-design-guidelines) */
html { touch-action: manipulation; }
.menu { overscroll-behavior: contain; }
.is-gliding .strip-viewport { user-select: none; -webkit-user-select: none; }
.logo { padding-block: 10px; margin-block: -10px; }

/* Demo banner sits above the fixed navbar */
body { padding-top: var(--demo-h, 36px); }
.navbar { top: var(--demo-h, 36px); }
.menu, .overlay { z-index: 80; }
