/* Slub — black, condensed-light headings, mono micro-labels. Tokens first. */
:root {
  /* Type scale: five sizes, used everywhere. Title / H2 / H3 are the condensed headings; body is the sans copy; label is the all-caps eyebrow, link and caption size. */
  --fs-title: 58px;
  --fs-h2: 40px;
  --fs-h3: 26px;
  --fs-body: 20px;
  --fs-label: 12px;
  --lh-title: 1;
  --lh-head: 1.1;
  --lh-body: 27px;
  --ls-head: -0.03em;
  --ls-label: .1em;
  --bg: #181716;   /* soft black */
  --off-black: #252423;   /* a step lighter than the page, for cards and media placeholders */
  --darkest: #1c1c1c;
  --ink: #fff;
  --grey: #989898;
  --mid-grey: #6b6b6b;
  --line: rgba(255,255,255,.1);
  --accent: #d7ff3a;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* Inter for body copy and labels; Barlow Semi Condensed stays for headings */
  --cond: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.15, 0, 0.15, 1);
  --pad: 8px;      /* margin around the hero, images and tiles */
  --indent: 12px;  /* right-hand text padding */
  --left: 22px;    /* left edge for text: 8px page margin + 22px = 30px, flush with the KRISTYNA logo in the nav */
  --r-sm: 4px;
  --r-md: 8px;
}
@media (max-width: 639px) { :root { --fs-title: 40px; --fs-h2: 30px; --fs-h3: 22px; } }
@media (max-width: 700px) { :root { --left: 12px; } }   /* phones: text sits 20px in, flush with the project card edges */
/* Body copy is one weight lighter (Inter 300) than the labels, links and titles (400). */
.case-lede, .text-right, .text-right p, .about-cols p, .aside-text, .aside-text p, .pj-side p, .ci-overview p, .card-sub, .pj-cap .grey { font-weight: 300; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.25 var(--sans); }   /* regular weight (350 resolved to Helvetica Neue Light on a Mac, which is thin on dark); default font smoothing, not antialiased, which thins light-on-dark text further */
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.grey { color: var(--grey); }
/* all-caps labels use the body font, letter-spaced */
.caps, .mono, .case-meta, .role-label, .copy, .service-list .n, .figcap, .credit { font: 400 var(--fs-label)/1.3 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; }
.t-condensed { font-family: var(--cond); font-weight: 300; font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.ul { position: relative; display: inline-block; background: linear-gradient(currentColor, currentColor) 0 100% / 0 .6px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.ul:hover { background-size: 100% .6px; color: var(--ink); }

/* ---------- Top bar ---------- */
:root { --nav-h: 72px; }
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: baseline; gap: 48px; padding: 24px calc(var(--pad) + var(--indent)) 0 calc(var(--pad) + var(--left)); background: var(--bg); white-space: nowrap; }
.logo { flex: none; font: 400 29px/1 var(--cond); letter-spacing: -0.02em; color: #fff; }   /* Barlow Semi Condensed; the i in "Krıstyna" is the dotless ı */
.nav-links { display: flex; gap: 32px; }
.nav-links a { font: 400 var(--fs-label)/1.3 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--grey); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-status { margin-left: auto; display: block; font: 400 var(--fs-label)/1.3 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--grey); }
.dot-live { display: inline-block; vertical-align: .7px; margin-right: 10px; width: 6px; height: 6px; border-radius: 50%; background: #8fd694; }
/* one ripple ring spreads a few px out from the dot every 4 seconds */
.dot-live { position: relative; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #8fd694; opacity: 0; animation: dot-ripple 4s ease-out infinite; }
@keyframes dot-ripple { 0% { opacity: .7; transform: scale(1); } 35% { opacity: 0; transform: scale(2.8); } 100% { opacity: 0; transform: scale(2.8); } }
.nav-jump { display: none; }
.nav-status { transition: color .2s; }
.nav-status:hover { color: #fff; }
/* desktop: the right margin beside OPEN TO NEW PROJECTS matches the left margin beside the name (30px) */
@media (min-width: 761px) { .nav { padding-right: calc(var(--pad) + var(--left)); } }

@media (max-width: 760px) {
  :root { --nav-h: 86px; }
  .nav { padding-top: 22px; }
  .nav { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; align-items: baseline; align-content: start; }
  .logo { grid-column: 1 / -1; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px calc(var(--pad) + var(--left)) 12px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s linear, transform .25s var(--ease), visibility 0s .25s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .2s linear, transform .25s var(--ease); }
  .nav-links a { padding: 14px 0; font-size: var(--fs-label); border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: 0; }
  .nav-jump svg { transition: transform .25s var(--ease); }
  .nav.open .nav-jump svg { transform: rotate(180deg); }
  .nav-status { margin-left: 0; grid-row: 2; grid-column: 1; }
  .nav-jump { display: inline-flex; align-items: center; gap: 6px; grid-row: 2; grid-column: 2; font: 400 var(--fs-label)/1.3 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: #fff; }
}

/* ---------- Showreel: static hero, 70% interactive / 30% text ---------- */
.reel { height: calc(100svh - var(--nav-h)); min-height: 520px; padding: 8px; box-sizing: border-box; }   /* the hero runs to the bottom of the screen, keeping the same 8px margin as the sides */
.reel-stick { position: relative; height: 100%; }
.reel-video { position: absolute; inset: 0; background: #1e1e1e; overflow: hidden; border-radius: 4px; }
.reel-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; visibility: hidden; transition: opacity .5s linear, visibility 0s .5s; }
.reel-video { container-type: size; }
/* the video fills the band like object-fit: cover (16:9 scaled up and centred, edges cropped); on a tall phone band it scales to the band's height and crops the sides */
.reel-frame.reel-cover { inset: auto; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); height: max(56.25cqw, 100cqh); max-width: none; transform: translate(-50%, -50%); }
/* Vimeo slides: the page is color-scheme dark but Vimeo's player document is light, so the browser paints the frame opaque white until the video draws.
   Telling the frame itself it is light keeps it transparent, and the dark backing shows through instead of a white flash. */
.reel-frame[src*="vimeo.com"], .reel-frame[data-src*="vimeo.com"] { color-scheme: light; background: #0e0e0e; }
.reel-frame.is-on { opacity: 1; visibility: visible; transition: opacity .5s linear; }
.reel-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; background: rgba(40,40,40,.7); backdrop-filter: blur(8px); font: 400 var(--fs-label)/1 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: #e8e8e8; pointer-events: none; }
.hint-title, .hint-cta { display: inline-flex; align-items: center; gap: 7px; }
.br-m { display: none; }   /* label line break that only applies on phones */
.embed.sketch .reel-hint { top: 12px; bottom: auto; }
.reel-hint .ptr-svg { width: 22px; height: 22px; }
.hint-sep { opacity: .7; }
.reel-hint.is-plain .hint-sep, .reel-hint.is-plain .hint-cta { display: none; }
.reel-hint { text-decoration: none; }
.reel-hint .hint-go { display: none; flex: none; transition: transform .35s var(--ease); }
.reel-hint.is-link { pointer-events: auto; cursor: pointer; }
.reel-hint.is-link .hint-go { display: block; }
.reel-hint.is-link:hover .hint-go { transform: translate(2px, -2px); }
@media (min-width: 701px) { .reel-hint.is-plain { min-height: 36px; box-sizing: border-box; } }   /* same height as the labels that carry the pointer icon */
@media (max-width: 700px) {
  /* on phones the pill only names the project; the Interactive part is hidden */
  .reel-hint { max-width: calc(100% - 172px); right: 7px; bottom: 7px; min-height: 39px; padding: 0 16px; box-sizing: border-box; }
  .reel-video .hint-sep, .reel-video .hint-cta { display: none; }
  .hint-title { text-align: right; line-height: 1.4; }
  .br-m { display: inline; }
}
.ptr-svg { overflow: visible; position: relative; top: 2px; }
.ptr-svg .ptr { transform-box: view-box; transform-origin: 7.2px 6.4px; animation: ptr-click 2.6s ease-in-out infinite; }
.ptr-svg .ripple { transform-box: view-box; transform-origin: 7.2px 6.4px; opacity: 0; animation: ripple 2.6s ease-out infinite; }
@keyframes ptr-click { 0%, 50%, 100% { transform: translate(0,0) scale(1); } 58% { transform: translate(1.8px,1.8px) scale(.5); } 68% { transform: translate(-.8px,-.8px) scale(1.2); } 80% { transform: translate(0,0) scale(1); } }
@keyframes ripple { 0%, 56% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(.6); } 86%, 100% { opacity: 0; transform: scale(3.4); } }
/* the intro is a dark tab inset into the bottom-left of the hero; its corners are rounded and the video wraps round it */
.reel-intro { --tab-r: 16px; position: absolute; left: 0; bottom: 0; z-index: 2; max-width: min(calc(100% - 140px), 880px); box-sizing: border-box; padding: 28px 70px 28px var(--left); background: var(--bg); border-top-right-radius: var(--tab-r); border-bottom-left-radius: 4px; }
.reel-intro::before, .reel-intro::after { content: ""; position: absolute; width: var(--tab-r); height: var(--tab-r); background: radial-gradient(circle at 100% 0, transparent calc(var(--tab-r) - .5px), var(--bg) var(--tab-r)); pointer-events: none; }
/* once the hero is too narrow for the tab and the project label to sit side by side, the label moves to the top-right corner */
@container (max-width: 1240px) { .reel-hint { top: 12px; bottom: auto; } }
.reel-intro::before { left: 0; top: calc(var(--tab-r) * -1); }
.reel-intro::after { right: calc(var(--tab-r) * -1); bottom: 0; }
.reel-intro p { max-width: 19em; font: 300 var(--fs-h2)/var(--lh-head) var(--cond); letter-spacing: var(--ls-head); text-wrap: pretty; }
@media (max-width: 639px) { .reel-intro { --tab-r: 12px; right: 0; max-width: none; padding: 18px 24px 18px var(--left); border-top-right-radius: var(--tab-r); border-top-left-radius: var(--tab-r); border-bottom-right-radius: 4px; } .reel-intro::before, .reel-intro::after { display: none; } .reel-video .reel-hint { top: 7px; bottom: auto; } .reel-intro .br-d { display: none; } }   /* phones: the tab takes the bottom, so the project label moves to the top */
.reel-intro .grey { color: var(--grey); }

/* ---------- Work: heading left, 2-column grid right ---------- */
.work { display: grid; grid-template-columns: 1fr; padding: 72px var(--pad) 120px; border-top: 1px solid var(--line); margin: 72px var(--pad) 0; padding-left: 0; padding-right: 0; }
.work-side { padding: 0 0 24px var(--left); }
.work-list { display: grid; grid-template-columns: 1fr; }
.card a { display: flex; flex-direction: column; gap: 10px; padding: 12px; transition: opacity .17s linear; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--off-black); container-type: size; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-meta { position: relative; padding: 0 20px 4px 0; }
.card-title { font-size: var(--fs-body); }
.card-sub { color: var(--grey); font-size: var(--fs-body); }
.card-arrow { position: absolute; top: 5px; right: 0; color: var(--grey); transition: color .2s; }
.card a:hover .card-arrow { color: var(--ink); }
.work-list .card { border-top: 1px solid var(--line); }
.work-list .card:first-child { border-top: 0; }
@media (min-width: 700px) {
  .work { grid-template-columns: calc(25.45% - 12px) 1fr; gap: 12px; }
  .work-list { grid-template-columns: 1fr 1fr; }
  .work-list .card:nth-child(2) { border-top: 0; }
  .work-list .card:nth-child(even) { border-left: 1px solid var(--line); }
  .work-list .card a { padding: 12px 12px 16px; }
  .work-list:hover .card a { opacity: .35; }
  .work-list .card a:hover { opacity: 1; }
}
@media (hover: none) { .work-list:hover .card a { opacity: 1; } }
/* Archive page: the same work list, opening the page instead of following the hero. */
.archive .work { border-top: 0; margin-top: 8px; padding-top: 56px; }

/* ---------- Services ---------- */
.services { padding: 0 var(--pad) 120px; }
.row-head { display: flex; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--line); }
.row-head .mono:first-child { color: var(--ink); }
.service-list li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font: 300 var(--fs-title)/var(--lh-title) var(--cond); letter-spacing: var(--ls-head); }
.service-list .n { color: var(--grey); }
.service-list .svc-link { color: inherit; text-decoration: none; }
.service-list .svc-go { display: inline-block; margin-left: .08em; vertical-align: top; color: var(--grey); transition: color .2s, transform .35s var(--ease); }
.service-list .svc-go svg { display: block; width: .42em; height: .42em; margin-top: .12em; }   /* the same arrow as the hero label */
.service-list .svc-link:hover .svc-go { color: var(--ink); transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Case study ---------- */
.case-top { padding: 56px var(--pad) 40px calc(var(--pad) + var(--left)); display: grid; gap: 24px; }   /* 30px = left edge of the KRISTYNA logo */
.case-top h1 { font: 300 var(--fs-title)/var(--lh-title) var(--cond); letter-spacing: var(--ls-head); max-width: 80%; text-wrap: balance; margin-left: -0.09em; }
.case-meta { color: var(--grey); display: flex; gap: 24px; flex-wrap: wrap; }
.case-lede { color: var(--grey); max-width: 56ch; font-size: var(--fs-body); line-height: var(--lh-body); }
.case-body { padding: 0 var(--pad); display: grid; gap: var(--pad); }
.block-media { margin: 0; position: relative; }
.block-media img, .block-media video { width: 100%; height: auto; border-radius: var(--r-md); background: var(--off-black); }
.block-media.half-right { width: calc(50% - 6px); margin-left: calc(50% + 6px); }
.block-media.half-left { width: calc(50% - 6px); }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }   /* two images side by side, same split as the half-width blocks */
.pair-row .block-media { width: 100%; margin: 0; }
@media (max-width: 700px) { .pair-row { grid-template-columns: 1fr; gap: var(--pad); } }
.figcap { color: var(--grey); padding-top: 8px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--off-black); border-radius: var(--r-md); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.sketch { background: #1e1e1e; }
.block-text { padding: 24px 0 100px; }   /* 100px of room under a text blurb before the next image */
.block-text:has(.text-row:not(.no-line)) { padding-top: 0; }   /* a text block that starts with a divider line sits close under the image above it (8px, the block gap) */
.text-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.text-row.no-line { border-top: 0; padding-top: 0; }
.text-left h2 { font: 300 var(--fs-h2)/var(--lh-head) var(--cond); letter-spacing: var(--ls-head); max-width: none; padding-right: 32px; text-wrap: balance; }
.text-right { display: grid; gap: 16px; align-content: start; max-width: none; color: var(--grey); font-size: var(--fs-body); line-height: var(--lh-body); }
.text-right p:first-child { color: var(--ink); }
.text-right p.credit { color: var(--grey); padding-top: 4px; font: inherit; letter-spacing: normal; text-transform: none; }   /* credits read like the body text, in grey */
.role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.role-label { color: var(--grey); }
.role-list li { font-size: var(--fs-body); line-height: var(--lh-body); }
.role-list.body li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--grey); padding-bottom: 8px; }
.kr-wrap { width: 50%; margin-left: 50%; }
.kr-wrap .role-row { grid-template-columns: 1fr; gap: 14px; background: var(--off-black); border-radius: var(--r-md); padding: 36px 20px; margin-top: 28px; border-top: 0; }
.case-end { padding: 96px var(--pad) 80px; display: grid; gap: 20px; }
.case-end .caps { color: var(--grey); }
.case-end .next-label { font: 400 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); color: var(--ink); }   /* same as the Client / Role labels */
.all-projects { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
.tile { display: grid; gap: 4px; align-content: start; }
.tile-media { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--off-black); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-title { font-size: var(--fs-body); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.next-media { position: relative; width: 100%; margin: 32px 0 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--off-black); }
.next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s linear; }
.next-media img.is-active { opacity: 1; }
.case-end .next-title { font: 300 var(--fs-h2)/var(--lh-head) var(--cond); letter-spacing: var(--ls-head); max-width: 20ch; margin-top: 12px; }
.next-title .w { display: inline-block; white-space: nowrap; }
.next-title .ch { display: inline-block; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.14em); } }
.next-title.dance .ch { animation: lift .5s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 9fr; gap: 72px 8px; padding: 72px var(--pad) 120px; min-height: 90vh; align-content: start; }   /* exactly the same split as the contact section, so the right panel starts where the contact rows do */
.about h1 { grid-column: 1 / -1; padding-left: var(--left); font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-head); max-width: 26ch; }   /* the same size, leading and tracking as the service titles; starts in the left panel and runs on into the right */
.about-inner { grid-column: 2; display: grid; gap: 56px; min-width: 0; padding-right: var(--indent); align-content: start; }
.about-sub { font-size: var(--fs-h2); max-width: none; padding-top: 24px; border-top: 1px solid var(--line); }
.about-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.about-cols p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--grey); max-width: 35em; }   /* the about copy wraps at about three quarters of its old width */
.about-cols p:first-child { color: var(--ink); }
@media (min-width: 640px) { .about-sub { white-space: nowrap; } }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; } .about-inner { grid-column: 1; padding-left: var(--left); } }

/* ---------- Contact + footer ---------- */
.contact { padding: 24px var(--pad) 0; border-top: 1px solid var(--line); min-height: calc(100svh - 72px); display: flex; flex-direction: column; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 24px; }
.contact-head { padding-left: var(--left); }
.contact-rows { display: grid; }
.contact-row { display: grid; grid-template-columns: 4fr 5fr; gap: 8px; padding: 12px 0 36px; border-top: 1px solid var(--line); }
.contact-row h3 { font-size: var(--fs-body); }
.contact-row > div { display: grid; gap: 2px; justify-items: start; }
.contact-row p { color: var(--ink); margin-bottom: 4px; }
.contact-row .grey a { color: var(--grey); }
.contact-row #mail { color: var(--grey); }
.contact-base { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 24px; padding: 80px 0 16px; align-items: end; }
.widget { color: inherit; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 420px; padding: 14px; border-radius: var(--r-md); background: var(--off-black); }
.widget-body { display: grid; gap: 8px; }
.widget-mail { font-size: var(--fs-body); }
.copy { color: var(--ink); background: rgba(255,255,255,.08); border-radius: var(--r-sm); padding: 10px 12px; transition: background .2s; }
.copy:hover { background: rgba(255,255,255,.16); }
.foot { display: flex; justify-content: space-between; color: var(--mid-grey); text-transform: uppercase; letter-spacing: var(--ls-label); font: 400 var(--fs-label)/1 var(--sans); }   /* a label: the same 12px all-caps style as the other labels */
.foot a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 9fr; gap: 8px; padding-left: 0; margin-left: 0; }
  .contact-grid .contact-rows { grid-column: 2; }
  .contact-base { grid-template-columns: 5fr 9fr; gap: 8px; padding-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .text-row, .role-row { grid-template-columns: 1fr; gap: 14px; }
  .case-top h1 { max-width: 100%; }
  .block-media.half-right, .block-media.half-left { width: 100%; margin-left: 0; }
  .kr-wrap { width: calc(100% + 40px); margin-left: -20px; }
  .service-list li { grid-template-columns: 40px 1fr; }
  /* phones: the label column is fixed, so every row's values start at the same x, and the values stop at the 30px margin (the long email used to widen its column and push past it) */
  .contact-row { grid-template-columns: minmax(0, 136px) minmax(0, 1fr); padding-right: var(--left); }
  .contact-row p, .contact-row a { overflow-wrap: anywhere; }
}
/* phones: titles wrap inside the 30px margins on the right too, so their lines stay aligned with the rest of the page */
@media (max-width: 639px) { .ci-title, .case-top h1, .case-end .next-title, .about h1, .pj-side h1 { padding-right: var(--left); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Brand-pillar text beside the half-width image (left column) */
.aside-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; align-items: start; border-top: 1px solid var(--line); padding-top: 20px; }
.aside-row .block-media { width: 100%; margin: 0; }
.aside-text { display: grid; gap: 16px; align-content: start; color: var(--grey); font-size: var(--fs-body); line-height: var(--lh-body); padding: 0 calc(var(--indent) * 1.5) 0 var(--left); }
.aside-text p:first-child { color: var(--ink); }
@media (max-width: 900px) {   /* stack early so the tall text column never leaves a gap before the next half-width image */
  .aside-row { grid-template-columns: 1fr; }
  .block-media.half-right, .block-media.half-left { width: 100%; margin-left: 0; }
}

/* Next up: the label + title stay pinned beside the image and slide down as the page scrolls (like the home work list). */
@media (min-width: 900px) {
  .case-end a.next { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }   /* same split as the project intro: the image ends at the right column's left edge */
  .next-text { position: sticky; top: calc(var(--nav-h) + 28px); }
  .case-end .next-media { grid-column: 2; margin-top: 0; justify-self: end; }
}

/* ---------- Consistent left indent for text on the far-left edge ---------- */
.text-left { padding-left: var(--left); }
.role-row > .role-label { padding-left: var(--left); }
.kr-wrap .role-row > .role-label { padding-left: 0; }
.case-end .next-label, .case-end .next-title, .all-projects h2 { padding-left: var(--left); }
.row-head { padding-left: var(--left); padding-right: var(--indent); }
.service-list li { padding-left: var(--left); }
.about-services { padding: 0; margin-top: 24px; }   /* the about page already carries the indent */
.about-services .row-head, .about-services .service-list li { padding-left: 0; padding-right: 0; }
.contact-row h3 { padding-left: var(--left); }
.foot span, .widget { margin-left: 0; }
.foot { padding-left: var(--left); padding-right: var(--left); }   /* the same 30px (8 + 22) from the left and right edges */
.widget { margin-left: 0; padding-left: var(--left); }

@media (max-width: 700px) {
  .contact-head { padding-left: var(--left); }
}

/* more room on the right of the right-hand text column */
.text-right { padding-right: calc(var(--indent) * 1.5); }   /* project text blocks run closer to the right edge */
.role-list:not(.body) { padding-right: calc(var(--indent) * 3); }
@media (max-width: 700px) { .text-right, .role-list:not(.body) { padding-right: var(--indent); } }
/* Stacked layout: every text line shares the heading's left indent */
@media (max-width: 700px) {
  .text-right, .role-list:not(.body) { padding-left: var(--left); }
  .kr-wrap { width: 100%; margin-left: 0; }
  .kr-wrap .role-row { padding: 28px var(--indent) 28px var(--left); }
}

/* "View project" overlay on the Next up image, same style as the Interactive label */
.next-media .reel-hint { z-index: 2; }
.next-hint .hint-arrow { transition: transform .35s var(--ease); }
a.next:hover .hint-arrow { transform: translate(2px, -2px); }

/* same pill height as the Interactive label, with a little more room around the text */
.next-hint { min-height: 36px; padding: 0 14px; }


/* Key results: each blurb starts with a small four-pointed star */
.role-list.body li { position: relative; padding-left: 20px; }
.role-list.body li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 3.2 6.8 4.6 10 5C6.8 5.4 5.4 6.8 5 10C4.6 6.8 3.2 5.4 0 5C3.2 4.6 4.6 3.2 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 3.2 6.8 4.6 10 5C6.8 5.4 5.4 6.8 5 10C4.6 6.8 3.2 5.4 0 5C3.2 4.6 4.6 3.2 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Projects index: sticky copy left, two staggered landscape / portrait columns right ---------- */
.pj { display: grid; grid-template-columns: calc(25.45% - 12px) 1fr; gap: 12px; padding: 8px var(--pad) 120px; min-height: 100svh; }
.pj-side-in { position: sticky; top: var(--nav-h); padding: 56px 24px 0 var(--left); display: grid; gap: 4px; align-content: start; }
.pj-side h1 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--ls-head); font-weight: 300; }
.pj-side p { font: 400 var(--fs-body)/var(--lh-body) var(--sans); letter-spacing: 0; color: var(--grey); max-width: 24em; margin-top: 12px; }   /* body copy style, same as project text */
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pj-col { display: grid; gap: 12px; }
.pj-tile { position: relative; display: block; transition: opacity .3s linear; }
.pj-media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--off-black); }
.pj-media { aspect-ratio: 16 / 9; }   /* every tile is 16:9 */
.pj-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s linear; }
.pj-media img.is-active { opacity: 1; }
.pj-cap { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-body); line-height: var(--lh-body); height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: height .3s var(--ease), margin-top .3s var(--ease), opacity .3s linear; }   /* collapsed until hover, then it opens space under the tile */
.pj-cap span { min-width: 0; }
.pj-cap .grey { text-align: right; }
.pj-grid:hover .pj-tile { opacity: .35; }
.pj-grid .pj-tile:hover { opacity: 1; }
.pj-tile:hover .pj-cap { height: 20px; margin-top: 8px; opacity: 1; }
@media (hover: none) {
  .pj-grid:hover .pj-tile { opacity: 1; }
  .pj-cap { height: auto; opacity: 1; margin-top: 8px; }
  .pj-col { gap: 18px; }
}
@media (max-width: 900px) {
  .pj { grid-template-columns: 1fr; }
  .pj-side-in { position: static; padding: 40px 0 24px var(--left); }
}
@media (max-width: 560px) {
  .pj-grid { grid-template-columns: 1fr; gap: 18px; }
  .pj-col { display: contents; }
  .pj-tile { order: var(--o); margin-bottom: 18px; }
}

/* ---------- Case study intro: title, details and overview under the hero ---------- */
.case-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 0; padding-top: 28px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.ci-title { grid-column: 1; font: 300 var(--fs-title)/var(--lh-head) var(--cond); letter-spacing: var(--ls-head); padding-left: var(--left); max-width: 14em; text-wrap: balance; }
.ci-details { grid-column: 1; grid-row: 2; display: grid; gap: 28px; align-content: start; padding: 87px 0 0 var(--left); }   /* 87 = overview offset (72) + its line (1) + its padding (14), so Client and Overview labels share a line */
.ci-detail { display: grid; gap: 4px; }
.ci-label, .ci-value { font: 400 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--grey); }
.ci-detail .ci-label { color: var(--ink); }
.ci-value { max-width: 430px; }   /* roles wrap here */
.ci-overview { grid-column: 2; grid-row: 2; align-self: start; margin-top: 72px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; padding-right: calc(var(--indent) * 3); }
.ci-overview p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--grey); }
.ci-overview .ci-label { margin-bottom: 12px; }
@media (max-width: 700px) {
  .case-intro { grid-template-columns: 1fr; padding-bottom: 0; }
  .ci-details { grid-row: auto; padding: 36px 0 28px var(--left); }
  .ci-overview { grid-column: 1; grid-row: auto; margin-top: 0; padding: 24px var(--indent) 56px var(--left); }
}

/* Hover preview layers on the home grid */
.pv-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: none; pointer-events: none; border: 0; display: grid; place-items: center; overflow: hidden; }   /* previews cut straight to the next one, no fade */
.pv-layer.is-on { opacity: 1; }
.pv-layer iframe { border: 0; pointer-events: none; max-width: none; }
.pv-sketch { aspect-ratio: var(--ar); width: max(100cqw, calc(100cqh * var(--ar))); }   /* cover: crop to the card instead of letterboxing */
.pv-layer iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }   /* centered on the card even when taller or wider than it */
.pv-vimeo { width: max(100cqw, 177.78cqh); height: max(56.25cqw, 100cqh); }

/* "Selected Work" at the foot of a project: the same two-column layout as the home page */
.case-end .case-work { margin: 96px 0 0; padding-bottom: 40px; }

/* Vimeo frames: scale up a hair so the video's one-pixel edge line is cropped off by the rounded container */
.embed iframe[src*="vimeo.com"] { transform: scale(1.008); transform-origin: center; }
.pv-layer .pv-vimeo { transform: translate(-50%, -50%) scale(1.008); }

/* Project images: scale up a hair inside a rounded, clipped frame so any one-pixel light line baked into the file's edge is cropped off */
.block-media { overflow: hidden; border-radius: var(--r-md); }
.block-media > img, .block-media > video { transform: scale(1.006); transform-origin: center; }
.block-media .figcap { position: relative; }
/* Sketch frames: grow the viewport by a pixel on each side (no scaling, so nothing blurs) so the clipped container hides any edge line */
.embed.sketch iframe { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
/* Locked sketches play by themselves: the pointer can't reach them. The frame is a fixed 16:9 desktop viewport, scaled down to the column width. */
.embed.sketch.locked { --sc: 1; }
.embed.sketch.locked iframe { inset: 0; width: calc(var(--fw, 1440) * 1px); height: calc(var(--fw, 1440) * 9px / 16); pointer-events: none; transform-origin: 0 0; transform: scale(var(--sc)); }

/* Divider above "Next up" */
.case-end a.next { border-top: 1px solid var(--line); padding-top: 28px; }

/* The project you are on, shown in the grid at the foot of its page: dark, blurred, labelled "Viewing" */
.card.is-current a { cursor: default; pointer-events: none; }
.card.is-current .card-media img { filter: blur(14px) brightness(.45); transform: scale(1.12); }
.card-viewing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: rgba(0,0,0,.25); font: 400 var(--fs-label)/1 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; }
.work-list:hover .card.is-current a { opacity: 1; }

/* the hero slideshow crossfades over 0.2s between slides; the portfolio stills fill the frame like a cover image */
.reel-frame { transition: opacity .2s linear, visibility 0s .2s; }
.reel-frame.is-on { transition: opacity .2s linear; }
img.reel-shot { object-fit: cover; }
