@font-face {
  font-family: 'Archivo Black';
  src: url('/assets/fonts/archivo-black.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #171717;
  --ink: #f5f4f0;
  --muted: #aaa9a5;
  --gutter: clamp(24px, 4.2vw, 80px);
  --wordmark-width: min(575px, calc((100vw - 2 * var(--gutter)) / 2));
  --section-gap: clamp(144px, 22vw, 304px);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body.dialog-open { overflow: hidden; }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: .3em; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.outline-title, .project-title { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-weight: 400; text-transform: uppercase; }
@supports (-webkit-text-stroke: 1px white) {
  .outline-title { color: transparent; -webkit-text-stroke: .85px var(--ink); }
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 16px; left: 16px; z-index: 20; padding: 16px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; padding: 32px var(--gutter); }
.header nav { display: flex; justify-content: flex-end; gap: clamp(24px, 3vw, 48px); font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.header a { padding-block: 8px; }
/* Keep the opening screen focused on the logo, with About just below the fold. */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 100px var(--gutter); }
.wordmark { position: relative; overflow: hidden; width: var(--wordmark-width); aspect-ratio: 1160 / 274; }
/* Map the GIF background to #171717 and lettering to #f5f5f5 directly,
   without blend-mode compositing that can leave a black rectangle on mobile. */
.wordmark img { position: absolute; width: 187.24138%; max-width: none; height: auto; left: -43.44828%; top: -86.13139%; filter: grayscale(1) invert(1) contrast(3) contrast(.828358209) brightness(1.050980392); }
.about { padding: 24px 0 0; text-align: center; }
.about-copy { width: calc(100% - 2 * var(--gutter)); max-width: 1100px; margin: 56px auto 0; font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.75; }
.about-copy p + p { margin-top: 24px; }
.work { padding-top: var(--section-gap); }
.section-banner { padding: clamp(20px, 2.4vw, 36px) var(--gutter); color: var(--paper); background: var(--ink); font-size: clamp(1.47rem, 4.4vw, 3.91rem); line-height: 1.15; letter-spacing: -.025em; text-align: center; }
@supports (-webkit-text-stroke: 1px white) {
  .section-banner { color: var(--paper); -webkit-text-stroke: 0; }
}
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.project { min-width: 0; }
.project.wide { grid-column: span 2; }
.project-link { position: relative; display: block; height: 100%; overflow: hidden; }
.project-link::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .72); opacity: 0; transition: opacity .2s ease; }
.project-image { aspect-ratio: 2 / 3; overflow: hidden; }
.project.wide .project-image { aspect-ratio: 1.65; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-title { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 24px; font-size: clamp(1.0625rem, 2.04vw, 1.9125rem); line-height: 1.15; letter-spacing: -.025em; text-align: center; opacity: 0; transition: opacity .2s ease; }
.project-link:hover::after, .project-link:focus-visible::after,
.project-link:hover .project-title, .project-link:focus-visible .project-title { opacity: 1; }
.project-link:focus-visible { outline-offset: -6px; }
.commercials .project-image { aspect-ratio: 16 / 9; }
.commercials .project-image img { transform: scale(var(--frame-scale, 1)); object-position: var(--frame-position, 50% 50%); }
.artwork-source { display: inline-block; font-size: .875rem; line-height: 1.5; margin-top: 8px; text-decoration: underline; }
/* At the end of the project grid, center the contact content in one screen.
   On short screens the section grows naturally to fit the contacts. */
.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 6vw, 96px) var(--gutter); text-align: center; }
.contact > h2 { font-size: clamp(1.87rem, 4.25vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 48px; width: 100%; max-width: 950px; margin: 80px auto 0; }
.person h3 { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.4; font-weight: 400; text-transform: uppercase; }
.person p, .person a { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.5; margin-top: 12px; }
.person p { color: var(--muted); }
.person a { display: inline-block; color: var(--ink); text-transform: lowercase; }
.footer { padding: 0 var(--gutter) 32px; color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: center; }
.artwork-dialog { width: 100%; max-width: none; height: 100%; max-height: none; padding: 24px 40px; border: 0; margin: 0; background: #101010; color: var(--ink); }
.artwork-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; }
.artwork-dialog::backdrop { background: #101010; }
.dialog-top { display: flex; justify-content: flex-end; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.text-button { padding: 12px 0; border: 0; background: none; font-size: .875rem; text-transform: uppercase; }
.text-button:hover { text-decoration: underline; text-underline-offset: .3em; }
.artwork-image-wrap { min-height: 0; display: flex; justify-content: center; }
.artwork-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.dialog-bottom h2 { font-size: clamp(1.0625rem, 1.87vw, 1.7rem); line-height: 1.2; }
.dialog-bottom p { font-size: .8125rem; line-height: 1.4; color: var(--muted); margin-top: 5px; }
.artwork-controls { display: flex; gap: 28px; }
@media (max-width: 600px) {
  :root {
    --wordmark-width: calc((100vw - 2 * var(--gutter)) / 2 + 4px);
  }
  .header { padding-block: 20px; }
  .about-copy { margin-top: 40px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-title { font-size: max(.875rem, min(3.825vw, 1.275rem)); padding: 16px; }
  .people { grid-template-columns: 1fr; gap: 52px; margin-top: 56px; }
  .artwork-dialog { padding: 16px 20px; }
  .dialog-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .artwork-controls { justify-content: space-between; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .outline-title { color: CanvasText; -webkit-text-stroke: 0; }
}

.commercials [data-commercial="ikea"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="oatly"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="lidl"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="baileys"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="skf"] .project-image img { --frame-scale: 1; --frame-position: 50% 20%; }
.commercials [data-commercial="vinted"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="telenor"] .project-image img { --frame-scale: 1; --frame-position: 50% 50%; }
.commercials [data-commercial="webhallen"] .project-image img { --frame-scale: 1.35; --frame-position: 50% 50%; }
