:root {
  --paper: #FFFCF5;
  --ink: #15133B;
  --cobalt: #2B3FE0;
  --tomato: #FF5A3C;
  --lemon: #FFE66B;
  --lilac: #DCD3FF;
  --muted: #5F5D80;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cobalt); color: var(--paper); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.section { padding-block: clamp(72px, 9vw, 130px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--tomato); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* Header: a floating capsule */
.site-header { position: sticky; top: 14px; z-index: 50; transition: transform .45s var(--ease); pointer-events: none; }
.site-header.hidden { transform: translateY(-140%); }
.bar { pointer-events: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 720px; height: 60px; padding: 0 8px 0 24px; background: var(--ink); color: var(--paper); border-radius: 999px; box-shadow: 0 10px 30px rgba(21, 19, 59, .18); }
.site-header .wrap { width: calc(100% - 28px); }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.bar ul { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-weight: 500; }
.bar a { text-decoration: none; }
.bar li a:not(.pill):hover { color: var(--lemon); }
.pill { background: var(--lemon); color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.pill:hover { background: var(--paper); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; font: 700 1.05rem var(--sans); padding: 16px 28px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--spring); }
.button:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.button:active { transform: scale(.96); }
.button.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
.button.primary:hover { background: var(--ink); border-color: var(--ink); }
.button.light { border-color: var(--ink); }

/* Hero: centred, with a rolling word */
.hero { min-height: calc(100svh - 90px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-block: clamp(48px, 7vw, 96px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; background: var(--lilac); padding: 8px 18px 8px 14px; border-radius: 999px; margin-bottom: clamp(24px, 3vw, 40px); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 63, 224, .5); } 70% { box-shadow: 0 0 0 10px rgba(43, 63, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 63, 224, 0); } }

.roll { font-size: clamp(2.7rem, 8.6vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.roll .line { display: block; }
.slot { position: relative; display: inline-block; height: 1.12em; vertical-align: top; margin-block: .06em .1em; overflow: hidden; border-radius: .22em; background: var(--cobalt); color: var(--paper); transition: width .6s var(--ease), background .5s; }
.slot[data-colour="tomato"] { background: var(--tomato); }
.slot[data-colour="ink"] { background: var(--ink); color: var(--lemon); }
.slot-word { display: block; white-space: nowrap; padding: 0 .16em; line-height: 1.08; width: max-content; transition: transform .6s var(--ease); }
.js .slot-word { position: absolute; left: 0; top: 0; }
.slot-word.enter { transform: translateY(105%); }
.slot-word.leave { transform: translateY(-105%); }

.hero-foot { display: grid; justify-items: center; gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.intro { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 36em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.js .hero-foot, .js .status, .js .roll { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .ready .hero-foot, .js .ready .status, .js .ready .roll { opacity: 1; transform: none; }
.js .ready .hero-foot { transition-delay: .25s; }

/* Marquee: a tilted lemon ribbon */
main { overflow-x: clip; }
.marquee { overflow: hidden; background: var(--lemon); padding-block: clamp(14px, 2vw, 24px); transform: rotate(-1.5deg) scale(1.03); margin-block: 24px; }
.track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.track span { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; padding-right: .5em; display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.track span::after { content: ""; width: .5em; height: .5em; background: var(--tomato); border-radius: .12em; transform: rotate(45deg); }
.track .hollow { color: var(--cobalt); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Section headings */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.section-lede { max-width: 30em; font-size: 1.2rem; }

.js .rise { overflow: hidden; padding-bottom: .14em; }
.js .rise > span { display: block; transform: translateY(115%); transition: transform .9s var(--ease); }
.js .rise.in > span { transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Work: colour-coded tiles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 600 .98rem var(--sans); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--spring); }
.filters button:hover { transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.clips { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 16px; }
.clips li { grid-column: span 4; display: flex; }
.clips li:nth-child(1), .clips li:nth-child(6) { grid-column: span 8; }
.clips li[hidden] { display: none; }
.clips a { flex: 1; display: flex; flex-wrap: wrap; align-content: space-between; gap: 32px 8px; min-height: 250px; padding: 26px; border-radius: 30px; text-decoration: none; background: var(--lilac); transition: transform .4s var(--spring), box-shadow .3s; }
.clips a:hover, .clips a:focus-visible { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 0 -6px var(--ink); }
.clips li:nth-child(even) a:hover { transform: translateY(-6px) rotate(1deg); }
.clips [data-topic="life"] a { background: var(--tomato); color: var(--paper); }
.clips [data-topic="style"] a { background: var(--lemon); }
.clips [data-topic="careers"] a { background: var(--cobalt); color: var(--paper); }
.clip-title { flex: 0 0 100%; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.clips li:nth-child(1) .clip-title, .clips li:nth-child(6) .clip-title { font-size: clamp(1.8rem, 3.8vw, 3.2rem); font-weight: 900; }
.clip-meta { align-self: flex-end; font-weight: 600; font-size: .95rem; background: rgba(255, 255, 255, .45); padding: 4px 12px; border-radius: 999px; }
.clips [data-topic="life"] .clip-meta, .clips [data-topic="careers"] .clip-meta { background: rgba(255, 255, 255, .2); }
.clips-note { margin-top: 14px; min-height: 1.5em; font-weight: 500; }

/* Services: a cobalt panel */
#services { background: var(--cobalt); color: var(--paper); border-radius: 44px; padding: clamp(36px, 6vw, 84px); width: min(1200px, 100% - 28px); }
#services .section-lede { color: var(--lilac); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service { border: 2px solid rgba(255, 255, 255, .35); border-radius: 26px; padding: 24px; transition: background .25s, color .25s, border-color .25s, transform .4s var(--spring); }
.service:hover { background: var(--lemon); border-color: var(--lemon); color: var(--ink); transform: translateY(-4px); }
.service h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.service .fit { margin-top: 16px; font-size: .95rem; font-weight: 600; opacity: .8; }

/* Eavesdroppr */
.feature { padding-block: clamp(72px, 9vw, 130px); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); margin: 22px 0 30px; max-width: 32em; }
.desks { display: flex; flex-wrap: wrap; gap: 12px; }
.desks li { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; background: var(--lilac); padding: .35em .8em; border-radius: 999px; rotate: -3deg; transition: rotate .4s var(--spring), scale .4s var(--spring); }
.desks li:hover { rotate: 0deg; scale: 1.06; }
.desks li:nth-child(2) { background: var(--tomato); color: var(--paper); rotate: 2deg; }
.desks li:nth-child(3) { background: var(--lemon); rotate: 4deg; }
.desks li:nth-child(4) { background: var(--cobalt); color: var(--paper); rotate: -2deg; }
.desks li:nth-child(5) { background: var(--ink); color: var(--lemon); rotate: 3deg; }
.desks li:nth-child(6) { background: var(--lemon); rotate: -4deg; }

/* About */
#about { background: var(--lilac); border-radius: 44px; padding: clamp(36px, 6vw, 84px); width: min(1200px, 100% - 28px); }
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-copy h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.about-copy p { max-width: 36em; margin-bottom: 1.1em; }
.serif-lede { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skills li { background: var(--paper); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.cv h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.cv .timeline + h3 { margin-top: 32px; }
.timeline { display: grid; gap: 10px; }
.timeline li { background: var(--paper); border-radius: 22px; padding: 18px 22px; display: grid; }
.timeline strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.timeline .when { color: var(--cobalt); font-weight: 700; font-size: .95rem; }
.timeline p { color: var(--muted); margin-top: 6px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--lemon); border-radius: 30px; padding: 26px; min-height: 240px; display: flex; flex-direction: column; }
.steps li:nth-child(2) { background: var(--tomato); color: var(--paper); }
.steps li:nth-child(3) { background: var(--cobalt); color: var(--paper); }
.steps li:nth-child(4) { background: var(--ink); color: var(--paper); }
.steps li::before { content: counter(step); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; margin-bottom: auto; padding-bottom: 20px; }
.steps h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); border-radius: 44px 44px 0 0; padding-block: clamp(72px, 9vw, 130px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact h2 { color: var(--lemon); }
.contact-copy p { font-size: 1.25rem; color: #D5D2F2; margin-top: 22px; max-width: 26em; }
.direct { margin-top: 40px; display: grid; gap: 22px; }
.direct dt { color: #A9A6D6; font-size: .95rem; margin-bottom: 2px; }
.direct dd { margin: 0; font-size: 1.25rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.direct a { text-decoration: none; background: linear-gradient(var(--lemon), var(--lemon)) no-repeat 0 100% / 100% 2px; padding: 0 2px 2px; transition: background-size .3s var(--ease), color .3s; }
.direct a:hover { background-size: 100% 100%; color: var(--ink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; }
.optional { font-weight: 400; color: #A9A6D6; margin-left: 4px; }
.field input:not([type="file"]), .field select, .field textarea { font: 400 1.1rem var(--sans); color: var(--paper); background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 14px 18px; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 12px; padding-right: 46px; }
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--lemon); background: rgba(255, 255, 255, .12); }
.field [aria-invalid="true"] { border-color: var(--tomato); }
.error { color: #FFB1A1; font-size: .98rem; font-weight: 500; }

.drop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 16px; border: 2px dashed rgba(255, 255, 255, .4); border-radius: 18px; cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--lemon); background: rgba(255, 230, 107, .1); }
.drop-main { font-weight: 700; }
.drop-hint { color: #A9A6D6; font-size: .95rem; }
.file-list { display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px 8px 8px 16px; animation: file-in .4s var(--spring); }
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: #A9A6D6; margin-left: auto; white-space: nowrap; font-size: .95rem; }
.file-list button { font: 600 .95rem var(--sans); color: var(--paper); background: transparent; border: 2px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.file-list button:hover { background: var(--paper); color: var(--ink); }
@keyframes file-in { from { opacity: 0; transform: scale(.9); } }

.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.send { background: var(--lemon); border-color: var(--lemon); color: var(--ink); }
.send:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.send[disabled] { opacity: .6; cursor: progress; }
.form-status { color: #FFB1A1; }

.sent { grid-column: 2; }
.sent[hidden], .form[hidden] { display: none; }
.sent svg { width: 76px; height: 76px; fill: none; stroke: var(--lemon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.sent circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.sent path { stroke: var(--paper); stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .4s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.sent p { font-size: 1.2rem; color: #D5D2F2; margin: 14px 0 28px; max-width: 26em; }
.sent .button.light { border-color: var(--paper); color: var(--paper); }
.sent .button.light:hover { background: var(--paper); color: var(--ink); }

.site-footer { background: var(--ink); color: #A9A6D6; border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 26px 70px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--paper); }

@media (max-width: 900px) {
  .services, .steps { grid-template-columns: 1fr 1fr; }
  .feature-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .sent { grid-column: 1; }
  .clips li, .clips li:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 600px) {
  .bar li:not(:last-child) { display: none; }
  .services, .steps, .form { grid-template-columns: 1fr; }
  .clips li, .clips li:nth-child(n) { grid-column: 1 / -1; }
  .clips a { min-height: 190px; }
  .hero { min-height: 0; }
  .actions, .button { width: 100%; }
  #services, #about { border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise > span, .js .reveal, .js .hero-foot, .js .status, .js .roll { opacity: 1; transform: none; }
  .sent circle, .sent path { stroke-dashoffset: 0; }
}

/* Article images fill the top of each tile */
.clips a { overflow: hidden; }
.clip-img { flex: none; display: block; width: calc(100% + 52px); max-width: none; height: 190px; margin: -26px -26px -8px; object-fit: cover; background: rgba(255, 255, 255, .25); transition: scale .6s var(--ease); }
.clips li:nth-child(1) .clip-img, .clips li:nth-child(6) .clip-img { height: clamp(220px, 26vw, 320px); }
.clips a:hover .clip-img { scale: 1.05; }
.clip-img.placeholder { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 14px, rgba(255, 255, 255, .08) 14px 28px); }
@media (max-width: 900px) { .clips li:nth-child(n) .clip-img { height: 190px; } }

/* Book */
.book-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.book-cover { display: grid; justify-items: center; }
.book-cover img { display: block; width: min(360px, 78%); height: auto; border-radius: 6px; rotate: -4deg; transition: rotate .6s var(--ease), translate .6s var(--ease); }
.book-cover img:hover { rotate: 0deg; translate: 0 -8px; }
.book-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 6px 16px 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.book-copy h2 { margin-bottom: clamp(18px, 2.4vw, 30px); }
.book-copy p { max-width: 34em; margin-bottom: 1em; }
.book-copy .actions { margin-top: 28px; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } .book-cover img { width: min(300px, 70%); } }
.book { background: var(--lemon); padding-block: clamp(72px, 9vw, 130px); margin-bottom: clamp(48px, 6vw, 90px); }
.book-cover img { border-radius: 10px; border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); }
.book-status { background: var(--ink); color: var(--paper); }
.book-status .dot { background: var(--lemon); }
.book-lede { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.book-note { font-weight: 600; font-size: .98rem; }
.buy-note { margin-top: 14px; font-weight: 600; font-size: .98rem; }

/* About: introduction across the top, then roles as a grid of cards so the section is not one long column */
.about-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.about-head h2 { margin-bottom: clamp(18px, 2.4vw, 30px); }
.about-top .skills { margin-top: 22px; }
.cv-title { font-size: 1.15rem; font-weight: 800; margin: clamp(32px, 4.5vw, 56px) 0 14px; }
#about .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#about .timeline li { align-content: start; padding: 18px 20px; }
#about .timeline li > span:not(.when) { font-weight: 600; }
#about .study { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-roles { display: none; margin-top: 12px; font: 700 1rem var(--sans); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.more-roles:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 1000px) {
  #about .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #about .study { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .about-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  #about .timeline, #about .study { grid-template-columns: 1fr; }
  #about .roles:not(.open) li:nth-child(n+5) { display: none; }
  .more-roles { display: inline-flex; }
}

/* Required fields */
.required { color: var(--lemon); font-weight: 700; }
.contact-copy .required-note { font-family: var(--sans); font-size: .98rem; margin-top: 14px; }

/* Work tiles: the picture takes up any spare height, so the title and labels always sit together at the bottom */
.clips a { flex-direction: column; flex-wrap: nowrap; align-content: normal; gap: 0; min-height: 0; padding: 0 0 22px; }
.clips .clip-img, .clips li:nth-child(n) .clip-img { flex: 1 1 190px; width: 100%; height: auto; min-height: 190px; margin: 0; }
.clips li:nth-child(1) .clip-img, .clips li:nth-child(6) .clip-img { flex-basis: clamp(220px, 24vw, 300px); min-height: clamp(220px, 24vw, 300px); }
.clips .clip-title { flex: none; padding: 20px 24px 0; }
.clip-metas { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px 0; }
.clips .clip-meta { align-self: auto; }
@media (max-width: 900px) {
  .clips li:nth-child(n) .clip-img { flex-basis: 190px; min-height: 190px; }
}

/* Scrollbar: a rounded thumb in the site's colours that changes with the section you are reading */
html { --thumb: var(--cobalt); scrollbar-color: var(--thumb) var(--paper); scrollbar-width: thin; }
html::-webkit-scrollbar { width: 14px; }
html::-webkit-scrollbar-track { background: var(--paper); }
html::-webkit-scrollbar-thumb { background: var(--thumb); border: 3px solid var(--paper); border-radius: 999px; min-height: 64px; }
html::-webkit-scrollbar-thumb:hover { border-width: 2px; }
html::-webkit-scrollbar-thumb:active { background: var(--ink); border-width: 2px; }
