/* Liis Saare portfolio */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* One focus ring for everything a keyboard can reach: links, buttons, cards and videos */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reflection :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

::selection { background: var(--lavender); color: var(--ink); }
:root {
  --bg: #f7f7f7;
  --white: #fff;
  --ink: #141414;
  --black: #000;
  --accent: #963c12;
  --accent-dark: #7a300e; /* hover on rust */
  --accent-light: #f6ece7; /* hover fill on outlined rust; rust at 10% on white */
  --lavender: #d3c4e8;
  --pill: #e7e7e7;
  --line: #e0e0e0;
  --muted: rgba(20, 20, 20, .5);
  --anton: "Anton", "Arial Narrow", sans-serif;
  --inter: "Inter", Arial, sans-serif;
  --m: 40px;
  --h1: 56px;
  --h2: 40px;
  --h3: 32px;
  --sub: 24px;
  /* Spacing system, from big breaks to small. Small screens use the same steps a size down (see the 809px rule). */
  --sec: 60px; /* half the gap between sections: 120px */
  --tgap: 48px; /* under a section title */
  --g-outcome: 96px; /* between key outcomes */
  --g-solution: 64px; /* between solutions */
  --g-media: 32px; /* between text and an image or video */
  --g-head: 20px; /* under a small heading */
}

@media (min-width: 1440px) { :root { --h1: 64px; --h2: 48px; } }
@media (max-width: 809.98px) { :root { --m: 20px; --h1: 40px; --h1-cover: 48px; --h2: 32px; --h3: 24px; --sub: 20px; --tgap: 32px; --sec: 40px; --g-outcome: 64px; --g-solution: 48px; --g-media: 24px; --g-head: 16px; } }
@media (min-width: 600px) and (max-width: 809.98px) { :root { --h1-cover: 56px; } } /* Never bigger than the laptop title */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/24px var(--inter); font-optical-sizing: none; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: calc(100% - 2 * var(--m)); margin-inline: auto; }
@media (min-width: 1440px) { .wrap { width: 1200px; } }

.display, .tag, .meta dd, .section-nav a, .site-footer .foot-link { font-variation-settings: "opsz" 32; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 400 18px/25.2px var(--anton); letter-spacing: .02em; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: 24px; } /* Work, About and Get in touch, side by side */
.nav-link { font: 400 14px/19.6px var(--inter); color: var(--accent); }
.nav-link { text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: color .2s ease, text-decoration-color .2s ease; }
.nav-link:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.nav-link[aria-current] { text-decoration-color: currentColor; } /* the page you're on; Work on case study pages too */
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; inset: -12px -8px; } /* an invisible 44px tall tap area, so the small links are easy to hit on phones */
@media (max-width: 359.98px) { .nav-link::after { inset: -12px -5px; } } /* half the 10px gap, so Work and About don't overlap */
@media (max-width: 809.98px) { .header-links { gap: 16px; } }
@media (max-width: 359.98px) { .header-links { gap: 10px; } .site-header .brand, .site-header .btn { white-space: nowrap; } .site-header .btn .icon { display: none; } .site-header .btn { padding: 0 10px; } .site-header .wrap { gap: 10px; } } /* the smallest phones: tighter gaps and no arrow, so everything stays inside the side margins */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 10px 0 16px; border-radius: 40px; font: 400 14px/19.6px var(--inter); transition: background-color .2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--white); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-secondary:hover { background: var(--accent-light); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translate(2px, -2px); } /* the arrow nudges where the link goes, like on the cards */
.btn:hover .icon:has(use[href$="#arrow-right"]) { transform: translateX(3px); }
.site-footer { background: var(--ink); color: #fff; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 65px; }
.site-footer .brand { padding-left: 4px; }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 24px; }
.site-footer .foot-link { display: inline-flex; align-items: center; gap: 4px; font: 400 14px/19.6px var(--inter); letter-spacing: -.04em; }
.site-footer .foot-link .icon { width: 16px; height: 16px; }
/* The address copies itself instead of opening a mail app (js/site.js); "Copied" shows above it for two seconds */
.site-footer .copy-email { position: relative; cursor: copy; }
.site-footer .copy-email:hover .icon { transform: none; }
.site-footer .copy-email::after { content: "Copied"; position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 4px 8px; border-radius: 4px; background: #fff; color: var(--ink); font: 400 12px/16px var(--inter); letter-spacing: 0; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.site-footer .copy-email.copied::after { opacity: 1; transform: translate(-50%, 0); }

/* Call to action */
.cta-wrap { padding: 26px 0 87px; }
.cta { background: var(--lavender); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta h2 { font: 400 var(--h2)/1.4 var(--anton); }

/* Home */
.intro { padding: 16px 0 40px; }
.intro p { max-width: 50%; font: 400 24px/33.6px var(--inter); letter-spacing: -.04em; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.home-col { display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 809.98px) {
  .home-grid { display: flex; flex-direction: column; gap: 32px; }
  .home-col { display: contents; }
  .home-grid .card:nth-child(1) { order: 1; }
  .home-col:nth-child(2) .card:nth-child(1) { order: 2; }
  .home-col:nth-child(1) .card:nth-child(2) { order: 3; }
  .home-col:nth-child(2) .card:nth-child(2) { order: 4; }
  .home-col:nth-child(1) .card:nth-child(3) { order: 5; }
  .home-col:nth-child(2) .card:nth-child(3) { order: 6; }
  .intro p { max-width: none; font-size: 20px; line-height: 28px; }
}

/* Cards */
.card { position: relative; display: block; }
.card-media { position: relative; display: block; background: var(--white); overflow: hidden; transition: background-color .25s ease; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
/* A card can carry a second, tinted copy of its image that fades in on hover */
.card-media img.tint { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { a.card:hover .card-media img { transform: scale(1.04); } a.card:hover .card-media img.tint { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } a.card:hover .card-media img { transform: none; } }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-169 { aspect-ratio: 16 / 9; }
a.card:hover .card-media { background: var(--tint, var(--white)); }
.tag { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 4px; border-radius: 4px; background: rgba(20, 20, 20, .7); color: #fff; font: 400 14px/19.6px var(--inter); letter-spacing: -.04em; }
.card h4 { margin-top: 18px; font: 400 var(--sub)/1.4 var(--anton); letter-spacing: .02em; }
@media (max-width: 809.98px) { .card h4 { line-height: 1.3; margin-top: 14px; } .cta { padding-inline: 32px; } }
.card .cat { margin-top: 8px; color: var(--muted); }
.card .desc { margin-top: 8px; color: var(--black); }
.card .go { display: inline-flex; align-items: center; margin-top: 16px; color: var(--accent); font: 400 14px/19.6px var(--inter); }
.card .go .icon { transition: transform .2s ease; }
a.card:hover .go .icon, .card a.go:hover .icon { transform: translateX(3px); }
/* Links on their own: rust, no underline, always an arrow (→ stays on the site, ↗ leaves it or opens email).
   On hover the text darkens and the arrow nudges, like the buttons. Links inside a sentence are underlined instead, with no arrow. */
.meta-link { color: var(--accent); display: inline-flex; align-items: center; gap: 2px; } /* a link in Project info (Salapakk, Stenhemma) */
.meta-link .icon { width: 14px; height: 14px; }
a.go, .persona-original, .meta-link, .site-footer .foot-link { transition: color .2s ease; }
a.go .icon, .persona-original .icon, .meta-link .icon, .site-footer .foot-link .icon { transition: transform .2s ease; }
a.go:hover, .persona-original:hover, .meta-link:hover { color: var(--accent-dark); }
a.go:hover .icon, .persona-original:hover .icon, .meta-link:hover .icon, .site-footer .foot-link:hover .icon { transform: translate(2px, -2px); }
:is(a.go, .persona-original):hover .icon:has(use[href$="#arrow-right"]) { transform: translateX(3px); }

/* Case study hero */
.hero { min-height: calc(100vh - 63px); display: flex; align-items: flex-end; padding-bottom: 120px; }
.hero + .sec { padding-top: 0; } /* The hero's own bottom space is the gap to the first section, and on desktop it keeps the jump menu clear */
.hero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-main { flex: 0 1 792px; min-width: 0; }
.hero h1 { font: 400 var(--h1)/1.2 var(--anton); }
.hero-main p { margin-top: 40px; color: var(--black); }
.meta { flex: 0 0 180px; } /* Bottom edge lines up with the last line of the intro text */
.meta dt { margin-top: 13px; font: 600 14px/19.6px var(--inter); letter-spacing: -.03em; text-transform: lowercase; }
.meta dt:first-child { margin-top: 0; }
.meta dd { margin-top: 2px; font: 400 14px/19.6px var(--inter); letter-spacing: -.04em; }

/* Sections */
.sec { padding-block: var(--sec); }
.sec-white { background: var(--white); }
.sec-tight { padding-top: 0; }
.title { font: 400 var(--h2)/1.4 var(--anton); }
.title + * { margin-top: var(--tgap); }
.title-c { text-align: center; }
.h3 { font: 400 var(--h3)/1.2 var(--anton); }
.sub { font: 500 var(--sub)/1.3 var(--inter); letter-spacing: -.05em; }
.eye { display: block; margin-bottom: 10px; color: var(--muted); font: 400 16px/19.2px var(--inter); }
.copy { max-width: 792px; }
.stack > * + * { margin-top: 16px; }
.stack > .sub + * { margin-top: var(--g-head); }
.stack > h4.sub { margin-top: 40px; }
.black { color: var(--black); }
strong { font-weight: 600; }
b { font-weight: 500; }
.gap { display: block; height: 8px; }

.split { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 144px; }
.split-wide { column-gap: 120px; }
.split.split-wide + .split-wide { margin-top: var(--g-outcome); }
.split-media { grid-template-columns: 300px minmax(0, 1fr); column-gap: 120px; }
/* Media columns need more air than text-only ones: text to video 32, video to text 48, between videos 24, between outcomes 96. */
.split-media .stack > .gallery { margin-top: var(--g-media); }
.split-media .stack > .gallery + * { margin-top: var(--g-media); }
.split-media .gallery > * + * { margin-top: 24px; }
.split-media .drop-block + .drop-block { margin-top: var(--g-solution); }
.split + .split { margin-top: 40px; }
.split-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.side { align-self: start; }
.side-sticky { position: sticky; top: 96px; }
.gallery > * + * { margin-top: 20px; }
.gallery img, .gallery video { display: block; width: 100%; height: auto; }
.gallery-16 > * + * { margin-top: 16px; }
.gallery-narrow { max-width: 960px; margin-inline: auto; } /* A product image that would feel too big at full width */
.stack > .gallery { margin-top: 16px; }
.crop-169 img { aspect-ratio: 16 / 9; object-fit: cover; }
.sec-60 { padding-top: 60px; }
.gap-80 + .gap-80 { margin-top: 80px; }
.tier-body { padding-top: 29px; }
.drop { padding-top: 240px; }
.drop > .sub { margin-top: 40px; }
.drop > .sub:first-child { margin-top: 0; }
.drop-block + .drop-block { margin-top: 40px; }

figure.full img { width: 100%; }
/* Journey: big cards in a row. The open card lines up with the page column, the next one peeks in faded at the screen edge.
   Swipe or scroll sideways, or use the arrows and dots (the carousel code in js/site.js) */
.journey-cards { --edge: max(var(--m), (100% - 1200px) / 2); --card: .92; --gap: 80px; } /* Card width as a share of the page column, and the space between cards */
.journey-cards .track { gap: var(--gap); padding-inline: var(--edge) calc(var(--edge) + (100% - 2 * var(--edge)) * (1 - var(--card)) - var(--gap)); scroll-padding-inline: var(--edge); }
.journey-card { flex: 0 0 calc(var(--card) * 100%); display: grid; --text: 340px; grid-template-columns: minmax(0, 1fr) var(--text); column-gap: 64px; align-items: center; opacity: .15; cursor: pointer; transition: opacity .4s ease; }
.journey-card.current { opacity: 1; cursor: auto; }
.journey-card.current ~ .journey-card:not(.current + .journey-card), .journey-card:has(~ .current) { opacity: 0; } /* Only the next card peeks in; cards already read and further ahead stay hidden */
.edge { box-shadow: 0 0 0 1px rgba(20, 20, 20, .05), 0 16px 40px -16px rgba(20, 20, 20, .14); } /* the same soft edge on a plain screenshot or clip (Stenhemma highlights) */
.journey-card-img { margin: 0; box-shadow: 0 0 0 1px rgba(20, 20, 20, .05), 0 16px 40px -16px rgba(20, 20, 20, .14); } /* Soft edge, so the screens' grey background doesn't melt into the page */
.journey-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.journey-card-text { position: relative; padding-top: 16px; }
/* The big grey number behind the heading, like the insights in the special kids case study */
.journey-card-text .num { position: absolute; top: -30px; left: -44px; font: 400 120px/1.2 var(--anton); color: rgba(20, 20, 20, .08); pointer-events: none; }
.journey-card-text .sub, .journey-card-text p { position: relative; }
.journey-card-text .sub + p { margin-top: 16px; }
.journey-cards .carousel-foot { margin-top: 24px; }
/* On desktop the cards stay on screen while you scroll down, and scrolling slides them sideways (js/site.js) */
.journey-stick > .wrap + .carousel { margin-top: var(--tgap); } /* The same gap under the heading as every other section */
/* Pinned, the heading and cards stay together, centred between the top bar and the jump menu */
.journey-pin.pinned { margin-top: -72px; }
/* On short screens the screenshot shrinks so the card and dots still fit between the bars */
.journey-pin.pinned .journey-card { grid-template-columns: min(100% - var(--text) - 64px, (100vh - 420px) * 1.6) var(--text); }
.journey-pin.pinned .journey-stick { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; height: 100vh; padding: 72px 0 88px; }
.journey-pin.pinned .track { overflow-x: hidden; scroll-snap-type: none; }
.journey-pin.pinned .arrows { display: none; }
@media (min-width: 810px) and (max-width: 1439.98px) { .journey-card { --text: 300px; column-gap: 32px; } .journey-card-text .num { left: -24px; } } /* The number stays clear of the screen in the narrower gap */
@media (max-width: 809.98px) { .journey-cards { --card: .86; --gap: 24px; } .journey-card { display: flex; flex-direction: column; } .journey-card-text { order: -1; } .journey-card-img { margin-top: 24px; align-self: stretch; } .journey-card-text { margin-top: 24px; padding-left: 40px; } .journey-card-text .num { left: 0; top: -20px; } } /* Lower, so the carousel's top edge doesn't cut the number. The image stretches to the card's width: centred, it shrank to nothing and lazy images never loaded */
figcaption { margin-top: 8px; font: 300 14px/21px var(--inter); }
.clip { position: relative; cursor: pointer; }
.clip video { display: block; width: 100%; height: auto; } /* Also outside .gallery, e.g. beside text in Stenhemma highlights */
/* The bar is 3px, but the area you can grab is taller and reaches past the bottom of the video. */
.clip-bar { position: absolute; left: 0; right: 0; bottom: -10px; height: 23px; cursor: pointer; touch-action: none; }
.clip-bar::before, .clip-bar span { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 3px; transition: height .15s ease; }
.clip-bar::before { background: rgba(20, 20, 20, .1); }
.clip-bar span { background: var(--accent); transform: scaleX(0); transform-origin: 0 0; }
.clip-bar i { position: absolute; bottom: 5px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .15s ease; }
.clip-bar:hover::before, .clip-bar:hover span, .scrubbing .clip-bar::before, .scrubbing .clip-bar span { height: 5px; }
.clip-bar:hover i, .clip-bar:focus-visible i, .scrubbing .clip-bar i { opacity: 1; }
@media (hover: none), (pointer: coarse) { .clip-bar i { opacity: 1; } }
.clip-btn { position: absolute; bottom: 15px; right: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 20, 20, .16); }
.clip-state { right: 60px; } /* Shown everywhere, so visitors can tell it's a video they can pause and replay */
@media (max-width: 809px) {
  .clip-btn { bottom: 11px; right: 8px; width: 32px; height: 32px; }
  .clip-btn svg { width: 20px; height: 20px; }
  .clip-state { right: 46px; }
}
.clip:fullscreen { display: flex; align-items: center; background: var(--clip-bg, #f7f7f7); }
.clip:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.clip:fullscreen .clip-bar { bottom: 0; }
.clip:fullscreen .clip-full { top: 24px; right: 24px; bottom: auto; } /* Same close button as the persona full screen view */
.full-bleed { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.center { display: flex; justify-content: center; margin-top: 40px; }
.reflection { background: var(--ink); color: #fff; }
.reflection .title { color: #fff; }
.reflection .title + * { margin-top: 0; }
.side .title + * { margin-top: 0; }
.sec-more .title + * { margin-top: var(--tgap); }
.gap-80 + .center { margin-top: 80px; }
.reflection .split { column-gap: 120px; align-items: start; }
.wrap.split > .title + * { margin-top: 0; } /* a title beside its text starts level with it (Reflection, Stenhemma How I worked) */
.reflection p { white-space: pre-line; }

/* Insights */
.insights { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 80px; }
.insight-list { padding-top: 16px; }
.insight { position: relative; margin-bottom: 56px; }
.insight:last-child { margin-bottom: 0; }
.insight .num { position: absolute; top: -30px; left: -44px; z-index: 0; font: 400 120px/1.2 var(--anton); color: rgba(20, 20, 20, .08); pointer-events: none; }
.insight .sub, .insight .body { position: relative; z-index: 1; }
.insight .body { margin-top: 16px; color: var(--black); }

/* Design principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-inline: 60px; }
.principles > div > * + * { margin-top: 24px; }
.principles > div:last-child > :last-child { margin-top: 0; }
.principle { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: start; align-content: start; }
.principle .icon { width: 32px; height: 32px; color: var(--accent); }
.principle p { grid-column: 2; margin-top: 8px; color: var(--black); }

/* Carousels */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.personas { width: min(1080px, 100%); margin-inline: auto; }
.persona { display: grid; grid-template-columns: 248px minmax(0, 1fr); column-gap: 40px; align-items: start; align-content: start; }
.persona img { width: 248px; height: 248px; object-fit: cover; border-radius: 50%; }
.persona h3 { font: 400 var(--h3)/1.2 var(--anton); }
.persona img { grid-row: 1 / span 2; align-self: center; } /* Centred against the name and the whole text, not the top line */
.persona .who { margin-top: 8px; color: var(--black); }
.persona .story { grid-column: 2; margin-top: 40px; color: var(--black); }
/* Text personas can link to the full card made during the project */
.persona-original { display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; color: var(--accent); font: 400 14px/19.6px var(--inter); }
.persona-original .icon { width: 16px; height: 16px; }
.carousel-foot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 14px; margin-bottom: -13px; }
.carousel-side .carousel-foot { min-height: 8px; margin-top: 35px; margin-bottom: 0; }
/* Persona images shrink on short screens so the whole card and its dots fit, and open full screen when clicked */
.carousel-side.personas { width: min(1080px, 100%, (100vh - 240px) * 1.19); }
.carousel-side .slide { position: relative; }
.carousel-side .slide img { display: block; width: 100%; height: auto; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 20, 20, .16); }
.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 72px 112px 80px; border: 0; background: transparent; }
.zoom[open] { display: flex; justify-content: center; align-items: center; }
.zoom::backdrop { background: rgba(247, 247, 247, .88); } /* Light, like the page, so the cursor and controls stay dark */
.zoom img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 0 1px rgba(20, 20, 20, .05), 0 24px 64px -24px rgba(20, 20, 20, .25); }
.zoom .arrow { position: fixed; top: calc(50% - 20px); }
.zoom .arrow.prev { left: 40px; }
.zoom .arrow.next { right: 40px; }
.zoom .arrow:disabled { opacity: .4; }
.zoom .dots { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); }
@media (max-width: 809.98px) { .zoom { padding: 64px 16px 72px; } .zoom .arrow { top: auto; bottom: 20px; } .zoom .arrow.prev { left: 16px; } .zoom .arrow.next { right: 16px; } .zoom .dots { bottom: 36px; } }
.zoom .zoom-btn { position: fixed; top: 24px; right: 24px; bottom: auto; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .2; transition: opacity .2s ease; }
.dots button[aria-current="true"] { opacity: 1; }
.arrows { position: absolute; right: 0; display: flex; gap: 20px; }
.arrow { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--accent); border-radius: 100px; background: var(--bg); color: var(--accent); }
.arrow .icon { width: 16px; height: 16px; }
.arrow.prev .icon { transform: rotate(180deg); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow { transition: background-color .2s ease; } .arrow .icon { transition: transform .2s ease; }
@media (hover: hover) { .arrow:hover:not(:disabled) { background: var(--accent-light); } .arrow.next:hover:not(:disabled) .icon { transform: translateX(2px); } .arrow.prev:hover:not(:disabled) .icon { transform: rotate(180deg) translateX(2px); } }

@media (min-width: 1440px) {
  .carousel-side .carousel-foot { position: static; }
  .carousel-side .arrows { position: absolute; top: calc(50% - 41px); left: -60px; right: -60px; justify-content: space-between; pointer-events: none; }
  .carousel-side .arrow { pointer-events: auto; }
}

/* Section nav */
.section-nav { position: fixed; left: 50%; bottom: 24px; z-index: 15; transform: translateX(-50%); display: flex; gap: 8px; width: min(1000px, calc(100% - 48px)); padding: 4px; border-radius: 24px; background: var(--bg); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.section-nav a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 16px; white-space: nowrap; font: 400 14px/19.6px var(--inter); letter-spacing: -.04em; transition: background-color .2s ease; }
.section-nav a:hover, .section-nav a.active { background: var(--pill); }
.section-nav { transition: opacity .3s ease, transform .3s ease; }
.section-nav.gone { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.section-nav.tight a { flex: 1 1 auto; padding: 0 12px; }
/* When the labels don't fit side by side, the menu shrinks to one pill showing the current section, and opens upwards */
.nav-toggle { display: none; }
.section-nav.compact { flex-direction: column; gap: 4px; width: calc(100% - 32px); }
.section-nav.compact a { display: none; justify-content: center; padding: 0 16px; }
.section-nav.compact.open a { display: flex; }
.section-nav.compact.open { border-radius: 20px; }
.section-nav.compact .nav-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 16px; background: var(--pill); font: 400 14px/19.6px var(--inter); letter-spacing: -.04em; white-space: nowrap; }
.nav-toggle svg { transition: transform .2s ease; }
.section-nav.open .nav-toggle svg { transform: rotate(180deg); }
/* Project info: on small screens the details sit behind a button under the intro */
.meta-toggle { display: none; }

/* Cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px #fff; color: #fff; font: 400 14px/1 var(--inter); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: width .2s ease, height .2s ease, margin .2s ease, opacity .2s ease, background-color .2s ease, box-shadow .2s ease; will-change: transform; }
.cursor span { opacity: 0; transition: opacity .15s ease; }
.cursor.big { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.cursor.big span { opacity: 1; }
.cursor.dark { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Password page: header with only the name, Anton heading, lock badge, white input with a show/hide button */
.gate { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px 112px; }
.gate form { width: min(400px, 100%); text-align: center; }
.gate .lock-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-light); color: var(--accent); }
.gate .lock-badge .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.gate h1 { margin-top: 24px; font: 400 var(--h3)/1.25 var(--anton); }
.gate label { display: block; margin-top: 40px; text-align: left; font: 600 14px/19.6px var(--inter); letter-spacing: -.03em; text-transform: lowercase; } /* same as the labels on the case study pages */
.gate .field { position: relative; margin-top: 8px; }
.gate input { width: 100%; height: 48px; padding: 0 52px 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 16px var(--inter); transition: border-color .2s ease; }
.gate input:hover { border-color: #c4c4c4; }
.gate input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gate .reveal { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.gate .reveal:hover { color: var(--accent); background: var(--accent-light); }
.gate .reveal .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.gate .err { margin-top: 8px; text-align: left; color: var(--accent); font: 400 14px/19.6px var(--inter); }
.gate .err:empty { display: none; }
.gate .unlock { display: block; width: 100%; height: 40px; margin-top: 24px; border-radius: 40px; background: var(--accent); color: #fff; font: 400 14px/40px var(--inter); transition: background-color .2s ease; }
.gate .unlock:hover { background: var(--accent-dark); }
.gate .cancel { display: block; width: 100%; height: 40px; margin-top: 8px; border-radius: 40px; color: var(--accent); font: 400 14px/40px var(--inter); transition: color .2s ease; }
.gate .cancel:hover { color: var(--accent-dark); } /* ghost button, like .btn-ghost */
.gate .gate-note { margin-top: 24px; color: var(--muted); font: 400 14px/19.6px var(--inter); }
.gate .gate-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.gate .gate-note a:hover { color: var(--accent-dark); }

@media (min-width: 810px) and (max-width: 1439.98px) {
  .split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 54px; }
  .split-media { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: 64px; }
  .split-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .reflection .split { column-gap: 54px; }
  .insights { grid-template-columns: 240px minmax(0, 1fr); }
  .principles { padding-inline: 0; }
}

@media (max-width: 809.98px) {
  .hero { min-height: 0; padding: 0 0 calc(2 * var(--sec)); }
  /* The title gets the first screen to itself, sitting on the bottom edge like on desktop, and the intro follows as you scroll */
  .hero-main { display: grid; grid-template-rows: minmax(calc(100svh - 72px - 112px), auto); }
  .hero h1 { align-self: end; padding-bottom: 32px; font-size: var(--h1-cover); line-height: 1.1; }
  .hero h1 + p { margin-top: 0; }
  .split + .split { margin-top: 30px; }
  .gap-80 + .gap-80 { margin-top: 30px; }
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  .hero .meta-toggle { align-self: flex-start; }
  .hero-main { flex: none; }
  .hero-main p { margin-top: 24px; }
  .meta { display: none; }
  .meta-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; color: var(--accent); font: 400 14px/19.6px var(--inter); } /* Text link, like "View case study" on the cards */
  .meta-toggle svg { transition: transform .2s ease; }
  .meta-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .meta.open { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; row-gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .meta.open dt, .meta.open dd { margin: 0; }
  .split, .split-wide, .split-kids, .reflection .split, .insights { display: block; }
  .side-sticky { position: static; }
  /* The key outcome stays under the top bar while its solutions scroll behind it, and the next one pushes it away */
  .side-pin { position: sticky; top: 72px; z-index: 5; margin-inline: calc(-1 * var(--m)); padding: 12px var(--m); background: var(--bg); transition: box-shadow .2s ease; }
  .side-pin.stuck { padding-block: 8px; box-shadow: 0 8px 16px -8px rgba(20, 20, 20, .12); }
  .side-pin.stuck .eye { font-size: 12px; line-height: 16px; }
  .side-pin.stuck .sub { margin-top: 2px; font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .side + * { margin-top: 20px; }
  .drop { padding-top: 0; }
  .insight { padding-left: 40px; }
  .insight-list { padding-top: 24px; }
  .insight .num { left: 0; }
  .principles { display: block; padding: 0; }
  .principles > div + div { margin-top: 24px; }
  .principles > div:last-child > :last-child { margin-top: 24px; }
  .reflection .title + * { margin-top: var(--tgap); }
  .wrap.split > .title + * { margin-top: var(--tgap); }
  .track { gap: 30px; }
  .tier-body { padding-top: 0; }
  .persona { grid-template-columns: 105px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .persona img { width: 105px; height: 105px; grid-row: auto; }
  .persona .story { grid-column: 1 / -1; margin-top: 16px; }
  .arrows { display: none; }
  /* Personas keep their arrows on small screens as a sign there's another card: one on each side, with the dots centred between them */
  .personas .carousel-foot { justify-content: space-between; }
  .personas .arrows { display: contents; }
  .personas .arrow.prev { order: -1; }
  .personas .arrow.next { order: 1; }
  .section-nav { bottom: 16px; }
  .more-grid { display: flex; flex-direction: column; gap: 32px; }
  .cta-wrap { padding: 0 0 40px; }
}

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 809.98px) { .more-grid { display: flex; flex-direction: column; gap: 32px; } }

/* About page: a short intro beside a small photo, then experience and tools on a white band, then the lavender box back to the work */
.ab-photo { padding: 40px 0 calc(2 * var(--sec)); }
.ab-grid { display: grid; grid-template-columns: minmax(0, 640px) 400px; justify-content: space-between; column-gap: 48px; align-items: start; }
.ab-title { grid-column: 1 / -1; margin-bottom: var(--tgap); font: 400 var(--h1)/1.2 var(--anton); } /* Same as the case study titles */
.ab-intro { grid-column: 1; grid-row: 2; }
.ab-intro p { font: 400 24px/33.6px var(--inter); letter-spacing: -.04em; } /* Same as the home page intro */
.ab-intro p + p { margin-top: 16px; }
.ab-intro .ab-links { margin-top: 32px; }
.ab-grid > img { grid-column: 2; grid-row: 2; width: 100%; height: auto; }
.btn-ghost { color: var(--accent); } /* No border or fill, rust like the About link in the navigation */
.btn-ghost:hover { color: var(--accent-dark); }
.ab-links { display: flex; flex-wrap: wrap; gap: 12px; }
.ab-links .icon { transition: transform .2s ease; }
.ab-links a:hover .icon { transform: translate(2px, -2px); }
.ab-cv { padding-bottom: 0; } /* The white band runs on behind the lavender box */
.ab-cv .wrap > * { max-width: 640px; }
.ab-entry + .ab-entry { margin-top: 24px; }
.ab-entry h3 { font: 500 18px/28px var(--inter); letter-spacing: -.02em; }
.ab-entry .ab-meta { margin-bottom: 4px; color: var(--muted); font: 400 14px/20px var(--inter); }
.ab-entry p:not(.ab-meta) { font: 400 18px/28px var(--inter); letter-spacing: -.02em; }
.ab-meta a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.ab-meta a:hover { color: var(--accent); text-decoration-color: currentColor; } /* Company links stay quiet until hovered: the one exception to the link rule (Liis, 2026-11-16), so they don't stand out in the experience list */
.ab-meta .icon { width: 14px; height: 14px; margin-left: 1px; vertical-align: -2px; } /* Tiny arrow so the names read as links */
.ab-chips { margin-top: var(--tgap); display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ab-chips li { padding: 4px 14px; border-radius: 40px; background: var(--pill); font: 400 14px/19.6px var(--inter); }
.sec-white .cta-wrap { padding-top: var(--sec); }
@media (max-width: 1099.98px) { .ab-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 809.98px) {
  .ab-photo { padding-top: 16px; }
  .ab-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ab-title { order: -2; margin-bottom: 0; }
  .ab-grid > img, .ab-intro { grid-column: auto; grid-row: auto; }
  .ab-grid > img { order: -1; max-width: 280px; } /* Photo comes before the text on phones */
  .ab-intro p { font-size: 20px; line-height: 28px; }
}

/* Homepage entrance: the intro and the cards fade in and rise slightly, one after another, all settled within about .8s. Nothing waits for it, so people can start reading at once. Only on the first homepage visit of a browser session (the "enter" class comes from a small script in index.html's head). */
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
.enter .intro p, .enter .home-grid .card { animation: enter .5s cubic-bezier(.33, 0, .2, 1) both; /* soft start and soft landing */ }
.enter .home-col:nth-child(1) .card:nth-child(1) { animation-delay: .08s; }
.enter .home-col:nth-child(2) .card:nth-child(1) { animation-delay: .14s; }
.enter .home-col:nth-child(1) .card:nth-child(2) { animation-delay: .2s; }
.enter .home-col:nth-child(2) .card:nth-child(2) { animation-delay: .26s; }
.enter .home-col .card:nth-child(n+3) { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .enter .intro p, .enter .home-grid .card { animation: none; }
}

/* 404 page (Liis's pickle from the Framer site): header with only the name, everything centered, the pickle tilted just above the heading */
.p404 { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px 152px; text-align: center; }
.p404 .pickle { position: relative; z-index: 0; display: block; width: 320px; height: auto; margin-bottom: 56px; transform: translateX(24px) rotate(-31deg); pointer-events: none; }
.p404 h1 { position: relative; z-index: 1; font: 400 var(--h1)/1.2 var(--anton); }
.p404 p { margin-top: 12px; color: var(--black); }
.p404 .btn { margin-top: 40px; padding: 0 16px 0 10px; gap: 4px; }
.p404 .btn .icon { transform: rotate(180deg); }
.p404 .btn:hover .icon.back-ic { transform: translateX(-3px) rotate(180deg); } /* the arrow nudges back */
@media (max-width: 809.98px) { .p404 .pickle { width: 200px; margin-bottom: 36px; transform: translateX(14px) rotate(-31deg); } }
