@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-400.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-500.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-700.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-800.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0c0c0e;
  --ink-2: #55555c;
  --hair: #dcdce0;
  --accent: #0c0c0e;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 3.5vw, 56px);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 0.2em; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
button { font: inherit; color: inherit; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--ink); background: var(--paper); }
.site-header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.site-nav a { display: inline-block; padding-block: 6px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }
.site-nav a:hover { color: var(--ink); }

/* Hero stage: the intro animation plays here and stays as the first screen */
.hero-stage { position: relative; height: calc(100svh - 65px); min-height: 480px; overflow: hidden; border-bottom: 1px solid var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 600ms var(--ease), color 280ms var(--ease), background 280ms var(--ease); }
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
html.intro-done .scroll-cue { opacity: 1; pointer-events: auto; animation: cue 2.4s ease-in-out 1.2s infinite; }
.scroll-cue:hover, .scroll-cue:focus-visible { background: var(--ink); color: #fff; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Sections */
.section { scroll-margin-top: 64px; padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--ink); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.section-head p { max-width: 52ch; margin-top: 18px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }

/* Offer: three equal columns, rows aligned across columns via subgrid */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.work-col { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; padding: clamp(24px, 2.6vw, 40px) clamp(20px, 2.6vw, 40px) clamp(24px, 2.6vw, 40px); }
.work-col + .work-col { border-left: 1px solid var(--ink); }
.work-tag { align-self: start; margin-bottom: 14px; color: var(--ink-2); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.work-title { align-self: start; min-height: 2.2em; font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.work-desc { align-self: start; max-width: 38ch; margin-top: 14px; color: var(--ink-2); }
.work-preview { align-self: start; min-width: 0; margin-block: clamp(20px, 2.4vw, 32px); }
.show-btn { position: relative; isolation: isolate; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 20px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; text-align: left; cursor: pointer; overflow: hidden; transition: color 280ms var(--ease); }
.show-btn::before { position: absolute; z-index: -1; inset: -1px; background: var(--accent); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform 380ms var(--ease); }
.show-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform 380ms var(--ease); }
.show-btn:hover, .show-btn:focus-visible { color: #fff; }
.show-btn:hover::before, .show-btn:focus-visible::before { transform: scaleY(1); }
.show-btn:hover svg, .show-btn:focus-visible svg { transform: translateX(5px); }

/* Offer previews */
.site-list { border-bottom: 1px solid var(--ink); }
.site-row { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding-block: 16px; border-top: 1px solid var(--ink); text-decoration: none; transition: color 280ms var(--ease); }
.site-row::before { position: absolute; z-index: -1; inset: -1px -12px 0; background: var(--accent); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform 380ms var(--ease); }
.site-row:hover, .site-row:focus-visible { color: #fff; }
.site-row:hover::before, .site-row:focus-visible::before { transform: scaleY(1); }
.site-name { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.site-note { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; transition: color 280ms var(--ease); }
.site-row:hover .site-note, .site-row:focus-visible .site-note { color: rgba(255, 255, 255, 0.85); }
.site-row svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform 380ms var(--ease); }
.site-row:hover svg, .site-row:focus-visible svg { transform: translate(3px, -3px); }

.mini-reviews { display: grid; gap: 14px; justify-items: start; }
.review-frame { width: fit-content; max-width: 100%; padding: 8px; border: 1px solid var(--ink); background: #f1f1f3; transition: transform 420ms var(--ease), box-shadow 420ms var(--ease); }
.review-frame img { max-width: 100%; height: auto; border: 1px solid var(--hair); }
.review-frame:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }

.mc-stack { display: grid; gap: 14px; }
.mc-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); background: #0c0c0e; }
.pixel { width: 100%; height: auto; image-rendering: pixelated; border: 1px solid var(--ink); background: #0c0c0e; }

/* Modal gallery */
.modal { width: min(1100px, 94vw); max-height: 90vh; margin: auto; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(12, 12, 14, 0.55); }
.modal[open] { animation: modal-in 420ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 clamp(16px, 2.6vw, 32px); border-bottom: 1px solid var(--ink); background: var(--paper); }
.modal-top h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; letter-spacing: -0.035em; }
.modal-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; transition: background 220ms var(--ease), color 220ms var(--ease), transform 320ms var(--ease); }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.modal-close:hover, .modal-close:focus-visible { background: var(--accent); color: #fff; transform: rotate(90deg); }
.modal-body { padding: clamp(20px, 3vw, 40px); }
.modal-lead { max-width: 52ch; margin-bottom: 24px; color: var(--ink-2); font-size: 1.0625rem; }
.modal-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.modal-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.modal-cta:hover, .modal-cta:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
html:has(dialog[open]) { overflow: hidden; }

.gallery { display: grid; gap: clamp(28px, 4vw, 48px); }
.shot { margin: 0; }
.shot-frame { padding: 10px; border: 1px solid var(--ink); background: #f1f1f3; }
.shot-frame img { width: 100%; height: auto; border: 1px solid var(--hair); }
.shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; color: var(--ink-2); }
.shot figcaption strong { color: var(--ink); }
.shot figcaption a { color: var(--ink); font-weight: 700; }
.reviews-full { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.mc-video-full { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ink); background: #0c0c0e; }
.pixels { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 24px; }
.pixels .pixel { width: auto; height: auto; min-width: 0; max-width: 100%; zoom: 1.5; }

/* Contact rows */
.link-list { border-bottom: 1px solid var(--ink); }
.link-row { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 24px; width: 100%; padding: 18px 0; border: 0; border-top: 1px solid var(--ink); background: none; text-align: left; text-decoration: none; cursor: pointer; transition: color 280ms var(--ease); }
.link-row::before { position: absolute; z-index: -1; inset: -1px -16px 0; background: var(--accent); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform 380ms var(--ease); }
.link-row:hover, .link-row:focus-visible { color: #fff; }
.link-row:hover::before, .link-row:focus-visible::before { transform: scaleY(1); }
.link-row:focus-visible { outline-offset: 0; }
.link-title { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.link-note { grid-column: 1; color: var(--ink-2); transition: color 280ms var(--ease); }
.link-row:hover .link-note, .link-row:focus-visible .link-note { color: rgba(255, 255, 255, 0.88); }
.link-arrow { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform 380ms var(--ease); }
.link-row:hover .link-arrow, .link-row:focus-visible .link-arrow { transform: translate(4px, -4px); }

/* Scroll reveal */
.reveal.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.reveal-ready.is-in { opacity: 1; transform: none; }

/* Footer */
.site-footer { border-top: 0; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-block: 28px 36px; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer strong { color: var(--ink); }

@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work-col { display: flex; flex-direction: column; grid-row: auto; padding-inline: 0; }
  .work-col + .work-col { border-left: 0; border-top: 1px solid var(--ink); }
  .work-title { min-height: 0; }
  .work-preview { margin-block: 20px 24px; }
  .link-row::before { inset-inline: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html.intro-done .scroll-cue { animation: none; }
  .reveal.reveal-ready { transition-duration: 1ms; transform: none; }
}

/* Intro animation */
html.has-intro { overflow: hidden; }
.intro-stage { background: var(--paper); }
.intro-char { position: absolute; top: 0; left: 0; overflow: visible; will-change: transform; }
.intro-dust { position: absolute; inset: 0; pointer-events: none; }
.intro-text { position: absolute; inset: 0; pointer-events: none; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.intro-line { position: absolute; overflow: hidden; padding-bottom: 0.1em; font-size: var(--fs); line-height: 1.05; text-align: center; white-space: nowrap; transform: translateY(-50%); }
.intro-inner { display: block; will-change: transform; }
.intro-mote { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform, opacity; }
.intro-skip { position: absolute; right: var(--gutter); bottom: 28px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; overflow: hidden; isolation: isolate; transition: color 280ms var(--ease), transform 280ms var(--ease); }
.intro-skip::before { position: absolute; z-index: -1; inset: -1px; background: var(--accent); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform 380ms var(--ease); }
.intro-skip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform 380ms var(--ease); }
.intro-skip:hover, .intro-skip:focus-visible { color: #fff; }
.intro-skip:hover::before, .intro-skip:focus-visible::before { transform: scaleY(1); }
.intro-skip:hover svg, .intro-skip:focus-visible svg { transform: translateX(4px); }
.intro-skip:active { transform: translateY(1px); }
