/* Victus Digital: screening-room black, paper white and one pink.
   Schibsted Grotesk for everything you read; Courier Prime, the screenplay face, for the script notes.
   One moment of motion: the frame lines close in on the opening shot. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/schibsted-grotesk-400.8edb9c80.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/schibsted-grotesk-700.bf5d8d8a.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/schibsted-grotesk-900.1cabf969.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400.c5de710d.woff2") format("woff2"); }

:root {
  --black: #000;
  --white: #fff;
  --pink: #f05ad8;      /* the accent: text on black (7.2:1), shapes on white */
  --pink-ink: #c21aa6;  /* pink for text and focus on white (5.3:1) */
  --silver: #a6a6a6;    /* quiet text on black (8.6:1) */
  --soft: #d9d9d9;      /* body text on black */
  --line: #2a2a2a;      /* rules and frames on black */
  --chrome: #141414;    /* browser bar */
  --grey: #575757;      /* quiet text on white (7.2:1) */
  --rule: #e3e3e3;      /* rules on white */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Courier Prime", "Courier New", Courier, monospace;
  --gutter: clamp(16px, 4.4vw, 64px);
  --gap: clamp(20px, 2.6vw, 40px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --settle: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--pink); color: var(--black); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--pink-ink); }
.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 { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; background: var(--white); color: var(--black); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }

/* Script notes: Courier, sentence case, like action lines in a screenplay */
.script { font-family: var(--script); font-size: .9375rem; line-height: 1.45; color: var(--silver); letter-spacing: .01em; }
.paper .script { color: var(--grey); }

/* ---------- links ---------- */
.link { font-weight: 700; padding-bottom: 2px; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% 2px no-repeat; transition: color .2s; }
.link:hover { color: var(--pink); }
.paper .link:hover { color: var(--pink-ink); }
.ext { white-space: nowrap; }

/* ---------- masthead ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { flex: none; width: 94px; color: var(--white); }
.brand svg { width: 100%; height: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; }
.nav a { padding-block: 8px; font-size: .9375rem; color: var(--silver); background: linear-gradient(var(--pink), var(--pink)) 0 calc(100% - 4px) / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background-size: 100% 2px; }
@media (min-width: 900px) {
  .top { padding-block: 30px; }
  .brand { width: 124px; }
  .nav { gap: 36px; }
  .nav a { font-size: 1rem; }
}

/* ---------- browser frame (screenshot holder) ---------- */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--chrome); }
.shot__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; height: 28px; padding-inline: 11px; border-bottom: 1px solid var(--line); }
.shot__dots { display: flex; gap: 5px; }
.shot__dots i { width: 7px; height: 7px; border-radius: 50%; background: #343434; }
.shot__url { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 12px; border-radius: 5px; background: #1e1e1e; color: var(--silver); font-size: .6875rem; line-height: 1.6; white-space: nowrap; overflow: hidden; }
.shot__url svg { flex: none; width: 8px; height: 10px; }
.shot__view { position: relative; aspect-ratio: 16 / 9; background: #0c0c0c; }
.shot__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-link { display: block; transition: transform .5s var(--ease); }
.shot-link .shot { transition: border-color .3s; }
.shot-link:hover .shot { border-color: #4a4a4a; }
@media (min-width: 900px) {
  .shot__bar { height: 32px; padding-inline: 14px; }
  .shot__dots i { width: 9px; height: 9px; }
  .shot__url { font-size: .75rem; padding: 3px 16px; }
}

/* ---------- captions ---------- */
.cap { display: grid; gap: 6px; margin-top: 18px; align-content: start; }
.cap__name { font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.cap__line { color: var(--soft); max-width: 44ch; }
.cap__note { margin-top: 2px; }
.visit { justify-self: start; margin-top: 8px; font-weight: 700; padding-bottom: 2px; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% 2px no-repeat; transition: color .2s; }
.visit:hover { color: var(--pink); }
.visit span[aria-hidden] { display: inline-block; margin-left: .15em; transition: transform .3s var(--ease); }
.visit:hover span[aria-hidden] { transform: translate(2px, -2px); }

/* ---------- home: opening ---------- */
.hero { padding-top: clamp(24px, 4.5vw, 64px); }
.slug { font-family: var(--script); font-size: .9375rem; color: var(--silver); letter-spacing: .04em; }
.hero__title { margin-top: 14px; font-size: clamp(2.6rem, 9.4vw, 9.5rem); line-height: .88; letter-spacing: -.048em; }
.hero__title span { display: block; white-space: nowrap; }
.hero__grid { display: grid; gap: 40px; margin-top: clamp(32px, 4.6vw, 72px); }
.feature__cap .cap { margin-top: -18px; }
.hero__text { display: grid; gap: 24px; align-content: start; }
.hero__lede { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--soft); max-width: 36ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; grid-template-areas: "text frame" "cap frame"; column-gap: clamp(40px, 4.5vw, 72px); row-gap: 32px; }
  .hero__text { grid-area: text; padding-top: 6px; }
  .feature__frame { grid-area: frame; align-self: start; }
  .feature__cap { grid-area: cap; align-self: end; }
  .feature__cap .cap { margin-top: 0; }
}

/* the opening shot, held in camera frame lines */
.feature__frame { position: relative; }
.vf { position: absolute; inset: calc(-1 * clamp(9px, 1.4vw, 20px)); pointer-events: none; }
.vf i { position: absolute; width: clamp(18px, 2.4vw, 38px); height: clamp(18px, 2.4vw, 38px); border: 0 solid var(--pink); }
.vf i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; --x: -1; --y: -1; }
.vf i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; --x: 1; --y: -1; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; --x: -1; --y: 1; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; --x: 1; --y: 1; }
.feature__cap .cap__name { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 900; letter-spacing: -.035em; }
@media (min-width: 640px) and (max-width: 1099px) {
  .feature__cap .cap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .feature__cap .cap > * { grid-column: 1; }
  .feature__cap .cap .visit { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .feature__frame .shot { animation: shot-in 1.2s var(--settle) .1s both; }
  .vf i { animation: frame-in 1.35s var(--settle) .45s both; }
}
@keyframes shot-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translate(calc(var(--x) * 56px), calc(var(--y) * 56px)); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- section heads ---------- */
.section { padding-block: clamp(72px, 9vw, 144px); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 32px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 72px); }
.head h2 { font-size: clamp(2.25rem, 6vw, 5.5rem); letter-spacing: -.045em; line-height: .92; }
.head__side { display: grid; gap: 10px; justify-items: start; max-width: 38ch; }
.head__side p { color: var(--soft); }
.paper .head { border-top-color: var(--black); }
.paper .head__side p { color: var(--grey); }

/* ---------- home: more work (staggered) ---------- */
.reel { display: grid; gap: 64px; }
@media (min-width: 900px) {
  .reel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(64px, 6.5vw, 104px); }
  .reel > :nth-child(1) { grid-column: 1 / span 7; }
  .reel > :nth-child(2) { grid-column: 9 / span 4; align-self: end; }
  .reel > :nth-child(3) { grid-column: 2 / span 4; }
  .reel > :nth-child(4) { grid-column: 7 / span 6; margin-top: clamp(24px, 4vw, 64px); }
}
.also { display: grid; gap: 28px; margin-top: clamp(72px, 8vw, 128px); padding-top: 22px; border-top: 1px solid var(--line); }
.also__names { font-size: clamp(1.5rem, 3.3vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.22; max-width: 32ch; }
.also__names span { color: var(--silver); }
.also__names a { background: linear-gradient(var(--line), var(--line)) 0 96% / 100% 2px no-repeat; transition: background .3s, color .2s; }
.also__names a:hover { color: var(--pink); background-image: linear-gradient(var(--pink), var(--pink)); }

/* ---------- paper sections ---------- */
.paper { background: var(--white); color: var(--black); }
.paper + .paper .section, .section--flush { padding-top: 0; }

/* services, set like end credits: role on the left, the detail on the right */
.credits { display: grid; gap: clamp(26px, 3vw, 40px); }
.credits li { display: grid; gap: 8px; }
.credits__name { font-size: clamp(1.5rem, 3vw, 2.625rem); letter-spacing: -.035em; line-height: 1.02; }
.credits p { color: var(--grey); max-width: 46ch; }
@media (min-width: 900px) {
  .credits li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: baseline; }
  .credits__name { text-align: right; }
  .credits p { font-size: 1.1875rem; }
}

/* how it works: a real sequence, so it is numbered */
.steps { display: grid; gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 4px solid var(--pink); }
.steps li::before { content: counter(step); font-weight: 900; font-size: clamp(3.5rem, 5vw, 4.75rem); line-height: .8; letter-spacing: -.05em; }
.steps__name { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.steps p { color: var(--grey); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- contact band ---------- */
.band { padding-block: clamp(80px, 11vw, 176px); }
.band__title { font-size: clamp(3rem, 10vw, 9rem); letter-spacing: -.05em; line-height: .86; }
.band__lede { margin-top: clamp(20px, 2.6vw, 32px); color: var(--soft); max-width: 40ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.mail { display: inline-block; margin-top: clamp(36px, 5vw, 72px); font-size: clamp(1.4rem, 5.6vw, 5.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; overflow-wrap: anywhere; padding-bottom: .06em; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% max(3px, .06em) no-repeat; transition: color .2s; }
.mail:hover { color: var(--pink); }
.band__more { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
.band__more a { font-weight: 700; font-variant-numeric: tabular-nums; }
.band__more a:hover { color: var(--pink); }
.band__more span { color: var(--silver); }

/* ---------- inner pages ---------- */
.intro { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 112px); }
.title { font-size: clamp(4rem, 17vw, 14.5rem); letter-spacing: -.06em; line-height: .8; margin-left: -.04em; }
.intro__grid { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 56px); }
.intro__lede { font-size: clamp(1.1875rem, 1.9vw, 1.625rem); line-height: 1.42; color: var(--soft); max-width: 34ch; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); }
  .intro__grid > :first-child { grid-column: 2; }
}

/* work: index of names */
.index { display: grid; gap: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.index__group { display: grid; gap: 12px; align-content: start; }
.index__label { color: var(--silver); }
.index ol { display: grid; gap: 4px; }
.index a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: clamp(1.1875rem, 1.9vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.index a .script { font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.index a:hover { color: var(--pink); }
@media (min-width: 900px) { .index { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); } }

/* work: cases (rebuilt in 2026) */
.cases { display: grid; gap: clamp(72px, 9vw, 144px); }
.case { display: grid; scroll-margin-top: 24px; }
@media (min-width: 900px) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .case__shot { grid-column: 1 / span 8; }
  .case .cap { grid-column: 9 / span 4; margin-top: 0; padding-bottom: 6px; }
  .case:nth-child(even) .case__shot { grid-column: 5 / span 8; grid-row: 1; }
  .case:nth-child(even) .cap { grid-column: 1 / span 4; grid-row: 1; }
  .case .cap__name { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 900; letter-spacing: -.035em; }
}

/* work: also by Victus */
.grid2 { display: grid; gap: 64px var(--gap); }
.grid2 > * { scroll-margin-top: 24px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(72px, 7vw, 112px); } }

/* services: why static, and beyond the web */
.split { display: grid; gap: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.paper .split { border-top-color: var(--black); }
.split h2 { font-size: clamp(2.25rem, 6vw, 5.5rem); letter-spacing: -.045em; line-height: .92; }
.prose { display: grid; gap: 1em; max-width: 58ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); }
.paper .prose { color: #222; }
.prose .links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: .4em; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); } }

/* contact page */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 6px 24px; padding-block: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.row dt { padding-top: .35em; }
.row dd { margin: 0; font-size: clamp(1.375rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; overflow-wrap: anywhere; }
.row dd a { background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% max(2px, .05em) no-repeat; transition: color .2s; }
.row dd a:hover { color: var(--pink); }
.row dd .plain { color: var(--soft); }
@media (min-width: 760px) { .row { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.checklist { display: grid; gap: 10px; counter-reset: none; }
.checklist li { position: relative; padding-left: 28px; color: var(--soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--pink); }

/* 404 */
.lost { padding-block: clamp(32px, 6vw, 96px) clamp(80px, 10vw, 160px); display: grid; gap: 28px; }
.lost p { color: var(--soft); max-width: 44ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.lost .hero__links { margin-top: 8px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__top { display: grid; gap: 32px; padding-block: clamp(40px, 5vw, 72px) 32px; }
.foot__brand { width: 104px; color: var(--white); }
.foot__nav { display: grid; gap: 4px; justify-items: start; }
.foot__nav a { color: var(--soft); padding-block: 4px; }
.foot__nav a:hover { color: var(--pink); }
.foot__contact { color: var(--soft); line-height: 1.9; }
.foot__contact a { color: var(--white); }
.foot__contact a:hover { color: var(--pink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-block: 22px 32px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--silver); }
.fade-out { font-family: var(--script); font-size: .9375rem; letter-spacing: .04em; color: var(--white); margin-left: auto; }
@media (min-width: 760px) { .foot__top { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: clamp(40px, 7vw, 120px); align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
