/* Karen Weston site: brand tokens and page styles shared by every page */
/* a stand-in sized like Hanken Grotesk (measured): if the web font lands after the hero starts animating, the swap no longer nudges the lines */
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 100.6%; ascent-override: 99.4%; descent-override: 30.3%; line-gap-override: 0%; }
:root {
  --p-bg: #fafaf8; --p-surface: #f0efec; --p-ink: #1d1a19; --p-muted: #676361;
  --p-accent: #ec8e8e; --p-accent-ink: #111111; --p-action: #1d1a19; --p-action-ink: #fafaf8;
  --p-inv-bg: #1d1a19; --p-inv-surface: #292625; --p-inv-ink: #fafaf8; --p-inv-muted: #9c9895;
  --p-inv-accent: #ec8e8e; --p-inv-accent-ink: #111111; --p-inv-action: #ec8e8e; --p-inv-action-ink: #111111;
  --font-display: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif; /* was "Newsreader", Georgia, serif — under review */
  --font-text: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.025em;
  --ly-scale: 1.06;
}

  .rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); }
  /* the portrait: a 1000px cut-out on matching coral (#ec8e8e), standing at the frame's foot */
  .hero__media.portrait { background: #ec8e8e; }
  .hero__media.portrait { aspect-ratio: 1; height: auto; width: 100%; max-width: 460px; justify-self: start; align-self: center; border-radius: 50%; overflow: hidden; }
  .hero__media.portrait > img { inset: 0; width: 106%; height: 106%; max-width: none; margin: -6% 0 0 -5%; translate: none; transform: none; object-fit: cover; }  /* face centred in the circle */
  /* the two app screenshots stand whole on the lit ground inside the chapter frame */
  .case__icon { width: 32px; height: 32px; margin-bottom: var(--s-4); }
  .job-meta, .section-head .job-meta { font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s-3); }
  .job-meta .link { color: inherit; }
  /* each app screenshot stands whole on a tinted stage, never cropped */
  .app { display: flex; flex-direction: column; gap: var(--s-3); }
  .app__shot { margin: 0 0 var(--s-2); height: 420px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: var(--s-6); background: color-mix(in oklab, var(--p-surface), var(--p-ink) 6%); border-radius: var(--r-md); }
  .app__shot img { min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm, 6px); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgb(0 0 0 / .08); }
  .app .link { margin-top: auto; }
  @media (max-width: 639px) { .app__shot { height: 300px; padding: var(--s-4); } }
  /* the accent fails text contrast on cream, so it sits behind the word as a highlight */
  .hero h1 em { font-style: italic; background: linear-gradient(transparent 62%, var(--p-accent) 62% 92%, transparent 92%); padding-inline: .04em; }
  /* hero callout: big numbers, label underneath (dd ordered first so numbers align when a label wraps) */
  .hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); margin: var(--s-6) 0 0; }
  .hero-stats > div { display: flex; flex-direction: column; gap: var(--s-1); padding-left: var(--s-4); border-left: 2px solid var(--p-accent); }
  .hero-stats dd { order: -1; margin: 0; font-family: var(--font-display); font-size: clamp(36px, 3vw, 48px); line-height: 1; }
  .hero-stats dt { font-size: var(--t-small); color: var(--muted); }
  @media (max-width: 639px) { .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s-4); } .hero-stats > div { padding-left: var(--s-3); } .hero-stats dd { font-size: 30px; } }
  .clips__label { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-small); color: var(--muted); }
  .clips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .clips .reel__thumb { margin: 0; border-radius: var(--r-sm, 8px); }
  .clips .reel__thumb::after { width: 28px; height: 28px; background-size: 11px; }
  .reel__note { margin: var(--s-7) 0 var(--s-4); font-size: var(--t-small); color: var(--muted); }
  .reel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
  .reel__item { display: flex; flex-direction: column; gap: var(--s-1); color: var(--ink); text-decoration: none; }
  .reel__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); margin-bottom: var(--s-2); background: var(--p-ink); }
  .reel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
  .reel__thumb::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; background: var(--p-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5v7l6-3.5z' fill='%231d1a19'/%3E%3C/svg%3E") center / 16px no-repeat; }
  .reel__item:hover .reel__thumb img { transform: scale(1.04); }
  .reel__item:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 4px; border-radius: var(--r-md); }
  .reel__award { font-size: var(--t-small); color: var(--muted); }
  .reel__title { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
  @media (max-width: 1023px) { .reel { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); } }
  @media (prefers-reduced-motion: reduce) { .reel__thumb img { transition: none; } }
  .where { font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s-2); }
  .card .where { margin-top: 0; }
  #products .card { display: flex; flex-direction: column; }
  .flow { margin-top: var(--s-7); }
  .stack > :first-child { margin-top: 0; }
  /* sections hold one screen but grow on short laptop screens instead of clipping */
  main > :is(section, .section):not(.band) { height: auto; min-height: calc(var(--h,1)*100svh); }
  main > :is(section, .section):not(.band) > .wrap { height: auto; }
  main > :is(section, .section).band, main > :is(section, .section).band > .wrap { height: auto; min-height: 0; }
  .flow h3 { margin: 0 0 var(--s-4); }
  .flow-rows, .ai-rows { margin-top: var(--s-7); }
  .ai-rows { margin: 0 0 var(--s-7); }
  .wf-apple { --p-h: 400px; }
  .wf-av { --p-h: 300px; }
  #experience .ui-apps { width: min(100%, 420px); }
  #experience .panel { --p-h: 420px; }
  #education .panel { --p-h: 420px; }
  #education .ui-check.is-done .ui-check__label { color: var(--u-ink); }
  #education .ui-check.is-done .ui-check__label::after { transform: scaleX(0); }
  #education .ui-checks { width: min(100%, 520px); font-size: 1.15em; } #education .ui-check { padding-block: 14px; }
  @media (max-width: 1023px) { .wf-apple { --p-h: 320px; } }
  @media (max-width: 639px) { .case__icon { width: 24px; height: 24px; margin-bottom: var(--s-2); } .wf-apple { --p-h: 220px; } main h2 .muted { display: block; margin-top: var(--s-2); font-size: var(--t-lead); line-height: 1.35; } .wf-av { --p-h: 260px; } #workflows, #experience { --hm: 2; } #education .panel { --p-h: 280px; } #education .ui-check { padding-block: 10px; } #ai .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: 16 / 9; padding: 12px; } }

/* ---- home: Currently / Formerly, one line each, labels set apart ---- */
.hero .now { margin-top: var(--s-5); max-width: 40ch; }
.hero .now { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--muted); }
.now__role { color: var(--p-ink); font-weight: 500; }
.hero__next { margin-top: var(--s-6); }
.text-link { color: var(--p-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--p-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }
.footer .footer__icons { display: flex; flex-direction: row; gap: var(--s-5); align-items: center; list-style: none; padding: 0; margin: 0; }
.footer .footer__icons a { display: block; line-height: 0; transition: transform var(--dur) var(--ease); }
.footer__icons a:is(:hover, :focus-visible) { transform: translateY(-2px); }
.footer__icons img { width: 28px; height: 28px; display: block; }

/* ---- home: bento of work, after samdickie.me/projects ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 480px; gap: var(--gutter); }
.bento__tile { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; padding: var(--s-6) var(--s-6) 0;
  text-decoration: none; color: var(--b-ink); background: var(--b-bg); transition: transform var(--dur) var(--ease); }
.bento__tile { grid-column: span 2; }
.bento__tile--wide { grid-column: span 4; }
.bento__tile--half { grid-column: span 3; }
.bento__tile--full { grid-column: 1 / -1; }
.bento--ink { --b-bg: var(--p-ink); --b-ink: var(--p-bg); --b-muted: #b5aea9; }
.bento--coral { --b-bg: var(--p-accent); --b-ink: #111; --b-muted: #4a2e2e; }
.bento--surface { --b-bg: var(--p-surface); --b-ink: var(--p-ink); --b-muted: var(--p-muted); }
.bento--blush { --b-bg: #f6dcd6; --b-ink: var(--p-ink); --b-muted: #6b5552; }
.bento__eyebrow { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: var(--display-tracking); color: inherit; }
.bento__title { hyphens: manual; text-wrap: pretty; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.45; letter-spacing: 0; max-width: 34ch; color: var(--b-muted); }
.bento__tile--wide .bento__title, .bento__tile--full .bento__title { max-width: 40ch; }
.bento__media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--s-5) 0; }
.bento__media:has(> .tile-ui, > .bento__list) { align-items: flex-start; overflow: hidden; padding-bottom: 0; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.bento__media .tile-ui { width: min(100%, 320px); font-size: 13px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .35); }
.bento__media .tile-ui .ui-check { padding-block: 4px; }
.bento__media .releases__row { margin: var(--s-3) 0; }
.bento__thumb { width: min(100%, 440px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -20px rgb(0 0 0 / .6); }
.bento__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 16px 16px 0 0; align-self: stretch; }
.bento__tile--wide .bento__media { padding-bottom: 0; align-items: stretch; }
.bento__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.bento__mosaic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.bento__list { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: var(--s-3); }
.bento__list li { display: grid; gap: 2px; padding-bottom: var(--s-3); border-bottom: 1px solid rgb(0 0 0 / .08); }
.bento__list strong { font-weight: 600; font-size: 15px; }
.bento__list span { font-size: 13px; color: var(--b-muted); }
.bento__apps { display: flex; gap: var(--s-5); align-items: flex-end; justify-content: center; height: 100%; padding-top: var(--s-2); }
.bento__apps img { max-height: 100%; width: auto; min-width: 0; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgb(0 0 0 / .3); object-fit: cover; object-position: top; }
.bento__tile--full .bento__media { padding-bottom: 0; align-items: stretch; }
.bento__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0 calc(-1 * var(--s-6)); padding: var(--s-4) var(--s-6);
  background: color-mix(in oklab, var(--b-bg), #000 8%); }
.bento--ink .bento__foot { background: color-mix(in oklab, var(--b-bg), #fff 8%); }
.bento__name { font-weight: 600; font-size: 15px; display: grid; }
.bento__name small { font-weight: 400; font-size: 13px; color: var(--b-muted); }
.bento__cta { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: color-mix(in oklab, var(--b-bg), var(--b-ink) 12%); }
a.bento__tile:hover { transform: translateY(-4px); }
a.bento__tile:hover .bento__cta { background: var(--b-ink); color: var(--b-bg); }
.bento__tile:focus-visible { outline: 3px solid var(--p-ink); outline-offset: 4px; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 440px; }
  .bento__tile, .bento__tile--half { grid-column: auto; }
  .bento__tile--full { grid-column: 1 / -1; }
  .bento__tile--wide { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__tile { min-height: 400px; padding: var(--s-5) var(--s-5) 0; border-radius: 22px; }
  .bento__foot { margin: 0 calc(-1 * var(--s-5)); padding: var(--s-3) var(--s-5); }
  .bento__photo { aspect-ratio: 16 / 10; height: auto; }
  .bento__apps img { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .bento__tile { transition: none; } a.bento__tile:hover { transform: none; } }

/* ---- home: work tiles, each opens a case study ---- */
.tiles { row-gap: var(--s-7); }
.tile-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.tile-card h3 { margin: 0 0 var(--s-3); max-width: 30ch; }
.tile-card .link { margin-top: auto; align-self: flex-start; }
.tile__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s-4);
  background: color-mix(in oklab, var(--p-surface), var(--p-ink) 6%); display: flex; align-items: center; justify-content: center; padding: var(--s-6); box-sizing: border-box; transition: transform var(--dur) var(--ease); }
.tile__media--photo, .tile__media--mosaic { padding: 0; background: var(--p-ink); }
.tile__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile__media--mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tile__media--mosaic img { width: 100%; height: 100%; object-fit: cover; }
.tile-card:hover .tile__media { transform: translateY(-4px); }
.tile-card:hover .link { text-decoration-color: currentColor; }
.tile-card:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 6px; border-radius: var(--r-md); }
.tile-ui { width: min(100%, 380px); font-size: 14px; }
.tile-ui .ui-check { padding-block: 6px; }
.tile-ui .ui-check.is-done .ui-check__label { color: var(--u-ink); }
.tile-ui .ui-check.is-done .ui-check__label::after { transform: scaleX(0); }
.releases__row { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.releases__row li { aspect-ratio: 1; border-radius: 6px; background: var(--p-accent); display: grid; place-items: center; font-size: 12px; color: var(--p-accent-ink); }
.releases__stat { margin: 0; font-size: 14px; color: var(--muted); }
.releases__stat strong { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--ink); margin-right: 6px; }
.more-work { margin-top: var(--s-8); }
@media (max-width: 639px) { .tile__media { padding: var(--s-5) var(--s-4); } .tile__media:not(.tile__media--photo, .tile__media--mosaic) { aspect-ratio: auto; } .tile-ui { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .tile__media { transition: none; } .tile-card:hover .tile__media { transform: none; } }

/* ---- home: studio names and awards ---- */
.band { padding-block: var(--s-9, 96px); border-top: 1px solid var(--line); }
.band__h, .numbers__group h3 { font-size: var(--t-small); font-family: var(--font-text); color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 var(--s-5); }
.band__note { margin: var(--s-4) 0 0; font-size: var(--t-small); color: var(--muted); }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9, 96px); align-items: start; }
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.logos li { display: grid; place-items: center; width: 100%; box-sizing: border-box; min-height: 96px; padding: var(--s-3); border-radius: var(--r-md); background: var(--p-surface); }
.logos img { height: var(--lh, 32px); width: auto; max-width: 80%; object-fit: contain; filter: brightness(0); opacity: .82; }
.logos img[src*="marvel"] { filter: grayscale(1) contrast(3); opacity: 1; }
.quotes { display: grid; gap: 40px; }
.clients .band__h { margin: 0 0 var(--s-5); }
.quote--lead blockquote { margin-top: 0; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.quote--lead blockquote { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.quote figcaption { font-size: var(--t-small); color: var(--muted); }
/* who said it follows the quote on the same line */
.quote blockquote, .quote figcaption { display: inline; }
.quote figcaption { margin-left: .4em; }
.quote figcaption { white-space: nowrap; }
.numbers h2 { margin: 0 0 var(--s-8); }
.numbers__group + .numbers__group { margin-top: var(--s-8); }
.numbers__group h3 small { margin-left: var(--s-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--gutter); margin: 0; }
.numbers__grid > div { display: flex; flex-direction: column; gap: var(--s-1); padding-left: var(--s-4); border-left: 2px solid var(--p-accent); }
.numbers__grid dd { order: -1; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; }
.numbers__grid dt { font-size: var(--t-small); color: var(--muted); max-width: 22ch; }
@media (max-width: 1023px) { .clients__grid { grid-template-columns: 1fr; gap: var(--s-8); } }
@media (max-width: 639px) { .logos, .numbers__grid { grid-template-columns: repeat(2, 1fr); } .numbers__group h3 small { display: block; margin: 4px 0 0; } }

/* ---- about ---- */
.about-intro h1 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.12; margin: 0 0 var(--s-6); }
.prose p { font-size: var(--ly-lead); line-height: 1.55; max-width: 60ch; margin: 0 0 var(--s-4); }
.about-intro .btn-row { margin-top: var(--s-6); }
.about-photo { border-radius: var(--r-md); overflow: hidden; background: var(--p-accent); aspect-ratio: 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1023px) { .about-photo { max-width: 360px; margin-top: var(--s-7); } }

/* ---- case studies ---- */
.case { padding-block: calc(var(--nav-h, 72px) + var(--s-7)) var(--s-9, 96px); }
.case__back { display: inline-block; font-size: var(--t-small); color: var(--muted); text-decoration: none; margin-bottom: var(--s-6); }
.case__back:hover { color: var(--ink); }
.case__head h1 { font-size: clamp(28px, 3vw, 40px); max-width: 30ch; margin: 0 0 var(--s-7); }
.case__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--gutter); margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.case__meta dt { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-1); }
.case__meta dd { margin: 0; }
.case__visual { margin: var(--s-8) 0; }
.case__panel { border-radius: var(--r-md); background: color-mix(in oklab, var(--p-surface), var(--p-ink) 6%); padding: var(--s-8) var(--s-6); display: flex; justify-content: center; }
.case__panel .tile-ui { width: min(100%, 460px); font-size: 16px; }
.case__panel--dg { padding: 0; background: none; --p-h: 320px; display: block; }
.case__caption { margin: var(--s-3) 0 0; font-size: var(--t-small); color: var(--muted); }
.case__clips .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gutter)) / 4); gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
.case__clips .clips > li { scroll-snap-align: start; }
.case__clips .clips .reel__thumb { border-radius: var(--r-md); }
.case__clips .clips .reel__thumb::after { width: 44px; height: 44px; background-size: 16px; }
/* carousel (data-carousel): videos line up from the left, dots below pick one (assets/carousel.js) */
.case__clips[data-carousel] { container-type: inline-size; }
.case__clips[data-carousel] .clips { position: relative; grid-auto-columns: 30cqi; padding-block: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.case__clips[data-carousel] .clips::-webkit-scrollbar { display: none; }
.case__clips[data-carousel] .reel__item:focus-visible { outline-offset: -3px; }
.carousel__dots { display: flex; justify-content: center; gap: var(--s-1); margin-top: var(--s-4); }
.carousel__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--muted); opacity: .4; transition: width var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.carousel__dot[aria-current="true"]::before { width: 20px; opacity: 1; background: var(--ink); }
.carousel__dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
@media (max-width: 1023px) { .case__clips[data-carousel] .clips { grid-auto-columns: 72cqi; } }
@media (prefers-reduced-motion: reduce) { .carousel__dot::before { transition: none; } }
/* facts list under the video row: label left, value right, hairlines between */
.case__facts { max-width: 760px; margin: 0 0 var(--s-8); }
.case__facts > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.case__facts > div:last-child { border-bottom: 1px solid var(--line); }
.case__facts dt { padding-top: .35em; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case__facts dd { margin: 0; font-size: var(--ly-lead); line-height: 1.45; }
@media (max-width: 639px) { .case__facts > div { grid-template-columns: 1fr; gap: var(--s-1); } }
.case__body { display: grid; gap: var(--s-8); max-width: 760px; }
.case__body h2 { font-size: var(--t-h3, 28px); margin: 0 0 var(--s-4); }
.case__body p, .case__body li { font-size: var(--ly-lead); line-height: 1.55; }
.case__body p + p { margin-top: var(--s-4); }
.case__body ul { padding-left: 1.1em; margin: 0; display: grid; gap: var(--s-3); }
.case__stats { margin: 0 0 var(--s-5); }
.case__body p + .case__stats { margin-top: var(--s-7); }
.case__reel { margin-top: var(--s-6); }
.case__reel .reel { grid-template-columns: repeat(2, 1fr); }
.case__pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--s-9, 96px); padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media (max-width: 639px) { .case__pager { grid-template-columns: 1fr; } }
.case__pager .case__next-card { height: 100%; box-sizing: border-box; }
.case__next { display: grid; grid-template-rows: auto 1fr; gap: var(--s-2); color: var(--ink); text-decoration: none; }
.case__next-title { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; max-width: 30ch; }
.case__next-card { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-md); background: var(--p-surface); transition: background var(--dur) var(--ease); }
.case__next:hover .case__next-card { background: color-mix(in oklab, var(--p-surface), var(--p-ink) 6%); }
.case__next:hover .link { text-decoration-color: currentColor; }
.case__next .link { flex: none; }
.case__next[rel="next"] > .where { text-align: right; }
#ai > .wrap { border-top: 1px solid var(--line); padding-top: var(--s-8); }
@media (max-width: 639px) { .case__next-card { flex-direction: column; align-items: flex-start; gap: var(--s-4); padding: var(--s-5); } }
@media (max-width: 1023px) { .case__meta { grid-template-columns: 1fr 1fr; } .case__clips .clips { grid-auto-columns: calc((100% - var(--gutter)) / 2); } }
@media (max-width: 639px) { .case__panel { padding: var(--s-5) var(--s-4); } .case__panel--dg { --p-h: 260px; padding: 0; } .case__reel .reel { grid-template-columns: 1fr 1fr; } }

/* Ask about Karen chat */
.askk { position: fixed; right: 20px; bottom: 20px; z-index: 50; font: 15px/1.45 var(--font-body, "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif); }
.askk__open { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 6px 20px 6px 6px; background: var(--p-ink); color: var(--p-bg); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.askk__face { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.askk__face--lg { width: 44px; height: 44px; }
.askk__who { display: flex; align-items: center; gap: 12px; }
.askk__open[aria-expanded="true"] { display: none; }
.askk__panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100svh - 40px)); background: var(--p-bg); color: var(--p-ink); border: 1px solid color-mix(in oklab, var(--p-ink), transparent 85%); border-radius: 20px; box-shadow: 0 16px 48px rgb(0 0 0 / .18); overflow: hidden; }
.askk__panel[hidden] { display: none; }
.askk__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--p-surface); }
.askk__head span { display: block; font-size: 13px; color: var(--p-muted); }
.askk__close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--p-ink); cursor: pointer; padding: 0 4px; }
.askk__log { flex: 1; overflow-y: auto; margin: 0; padding: 16px 18px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.askk__msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; }
.askk__msg--user { align-self: flex-end; background: var(--p-ink); color: var(--p-bg); border-bottom-right-radius: 4px; }
.askk__msg--bot { align-self: flex-start; background: var(--p-surface); border-bottom-left-radius: 4px; }
.askk__msg.is-wait { color: var(--p-muted); }
.askk__msg.is-error { background: color-mix(in oklab, var(--p-accent), var(--p-bg) 70%); }
.askk__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.askk__chips[hidden] { display: none; }
.askk__chips button { border: 1px solid color-mix(in oklab, var(--p-ink), transparent 80%); background: none; color: var(--p-ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.askk__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid color-mix(in oklab, var(--p-ink), transparent 88%); }
.askk__form input { flex: 1; min-width: 0; border: 1px solid color-mix(in oklab, var(--p-ink), transparent 80%); border-radius: 999px; padding: 10px 14px; font: inherit; background: #fff; color: var(--p-ink); }
.askk__form button { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--p-ink); color: var(--p-bg); font: inherit; font-weight: 600; cursor: pointer; }
.askk__form.is-busy button { opacity: .5; cursor: wait; }
.askk button:focus-visible, .askk input:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
@media (max-width: 639px) { .askk { right: 12px; bottom: 12px; } .askk__panel { width: calc(100vw - 24px); height: calc(100svh - 24px); } }
.bento--ink .bento__list li { border-color: rgb(255 255 255 / .14); }
@media (min-width: 640px) and (max-width: 1023px) { .bento__tile--md-full { grid-column: 1 / -1; } }
.bento__big { display: flex; flex-direction: column; gap: var(--s-2); align-self: flex-end; width: 100%; padding-bottom: var(--s-4); }
.bento__big strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(88px, 9vw, 140px); line-height: .9; letter-spacing: -.03em; }
.bento__big span { font-size: 15px; color: var(--b-muted); max-width: 26ch; }
.bento__mosaic--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: stretch; }
.bento__mosaic--row img { aspect-ratio: auto; height: 100%; object-fit: cover; border-radius: 12px 12px 0 0; }
.bento__mosaic--pair { grid-auto-columns: 3fr 2fr; }
.bento__mosaic--pair img:first-child { object-position: left center; }
@media (max-width: 639px) { .bento__mosaic--pair { aspect-ratio: 4 / 3; } .bento__mosaic--row.bento__mosaic--pair img { aspect-ratio: auto; height: 100%; border-radius: 12px; } }
@media (max-width: 639px) { .bento__mosaic--row img { aspect-ratio: 3 / 4; height: auto; } }
.closing__line { font: var(--display-weight, 400) clamp(24px, 2.2vw, 32px)/1.25 var(--font-display); letter-spacing: var(--display-tracking, -0.01em); max-width: 36ch; margin: 0 0 var(--s-3); }
.closing__cta .btn { align-self: flex-start; }
.closing__cta h2.closing__line { max-width: 36ch; }
.closing__sub { margin: 0 0 var(--s-6); max-width: 52ch; color: color-mix(in oklab, currentColor, transparent 30%); }
.panel--tools { height: 744px; min-height: 744px; }
.panel--tools .ui-app:last-child { height: auto; min-height: 56px; padding-block: 12px; align-items: flex-start; }
.panel--tools .ui-app:last-child .ui-app__sub { line-height: 1.4; margin-top: 2px; }
.panel--tools .ui-app__sub { white-space: normal; overflow: visible; text-overflow: clip; }
/* a short footer instead of the system's full-screen closing band */
footer.closing.footer--dark { height: auto; min-height: 0; padding: var(--s-9, 96px) 0 var(--s-6); }
footer.closing.footer--dark > .wrap { height: auto; display: block; }
.footer__top { align-items: start; row-gap: var(--s-7); }
footer.closing.footer--dark .footer__legal { margin-top: var(--s-8); }
footer.closing.footer--dark .closing__cta { gap: var(--s-4); }
footer.closing.footer--dark .closing__sub { margin-bottom: var(--s-2); }
/* trailers tile: 2×2 grid of wide thumbnails that fills the tile's media area */
@media (min-width: 640px) {
  .bento__mosaic--grid { align-self: stretch; width: auto; max-width: 100%; aspect-ratio: 16 / 9; margin-inline: auto; grid-template-rows: 1fr 1fr; }
  .bento__mosaic--grid img { aspect-ratio: auto; height: 100%; min-height: 0; }
}

/* ---- dark mode: follows the visitor's system setting ---- */
:root { color-scheme: light dark; }
/* dark mode: on when the header switch sets data-theme="dark" on <html>; light is the default */
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #121110; --p-surface: #1e1c1b; --p-ink: #fafaf8; --p-muted: #a8a3a0;
  --p-action: #fafaf8; --p-action-ink: #1d1a19;
  --p-inv-bg: #1d1a19; --p-inv-surface: #292625;
}
:root[data-theme="dark"] .bento--ink { --b-bg: #2a2725; --b-ink: var(--p-ink); --b-muted: #a8a3a0; }
:root[data-theme="dark"] .logos img { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .logos img[src*="marvel"] { filter: grayscale(1) contrast(3) invert(1); }
:root[data-theme="dark"] .bento--blush { --b-bg: #3a2b29; --b-muted: #c4a9a4; }
:root[data-theme="dark"] .bento__list li { border-color: rgb(255 255 255 / .1); }
:root[data-theme="dark"] .askk__form input { background: var(--p-surface); }
:root[data-theme="dark"] .reel__thumb::after { background-color: #fafaf8; }

/* ---- about: the journey (replaces the work-history list), four stops across the page ---- */
#experience { overflow-x: clip; } /* the wave runs on past the last stop to the page's edge */
.journey { position: relative; list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.journey__stop { position: relative; padding-top: 96px; }
/* the dot sits centred over its stop, a coral ring (filled for now) */
.journey__stop::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; translate: -50% 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--p-accent); box-sizing: border-box; }
.journey__stop.is-now::before { background: var(--p-accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--p-accent), transparent 75%); }
/* scroll highlight: one stop at a time gets the filled marker and a soft tint (the script adds journey--live) */
.journey__card { width: fit-content; max-width: calc(100% + 32px); margin: -16px; padding: 16px; border-radius: 16px; transition: background-color .4s; }
.journey--live .journey__stop.is-now:not(.is-on)::before { background: var(--bg); box-shadow: none; }
.journey--live .journey__stop.is-on::before { background: var(--p-accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--p-accent), transparent 75%); }
.journey--live .journey__stop::before { transition: background-color .4s, box-shadow .4s; }
.journey--live .journey__stop.is-on .journey__card { background: color-mix(in oklab, var(--p-accent), transparent 90%); }
/* the line travels: each stretch of line fills from one stop to the next, then the next dot lights (the dimmed line underneath shows the way ahead) */
.journey--live .journey__stop::after { opacity: .3; }
.journey--live .journey__fill { clip-path: inset(0 100% 0 0); transition: clip-path .5s ease-in-out; }
.journey--live .journey__stop.is-past > .journey__fill { clip-path: inset(0); }
.journey--live .journey__stop:last-child.is-past > .journey__fill { transition-delay: .9s; }
.journey--live .journey__stop.is-on::before { transition-delay: .45s; }
@media (max-width: 639px) { .journey--live .journey__fill { clip-path: inset(0 0 100% 0); } }
@media (prefers-reduced-motion: reduce) { .journey__card, .journey--live .journey__stop::before, .journey--live .journey__fill { transition: none !important; } }
/* one smooth coral wave through the dots: each link is half a wave, from this dot's centre to the next one's */
.journey__stop::after, .journey__fill { content: ""; position: absolute; left: 50%; right: calc(-50% - var(--gutter)); top: -45px; height: 110px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 100 48' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C35,-6.67 65,-6.67 100,20' fill='none' stroke='%23ec8e8e' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.journey__stop:nth-child(even)::after, .journey__stop:nth-child(even) > .journey__fill { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 100 48' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C35,46.67 65,46.67 100,20' fill='none' stroke='%23ec8e8e' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.journey__stop:last-child::after, .journey__stop:last-child > .journey__fill { -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 85%); mask-image: linear-gradient(to right, #000 25%, transparent 85%); }
/* the wave comes in from off the page before the first stop */
.journey::before { content: ""; position: absolute; top: -45px; height: 110px; width: calc((100% - 3 * var(--gutter)) / 4 + var(--gutter)); left: calc((100% - 3 * var(--gutter)) / 8 - (100% - 3 * var(--gutter)) / 4 - var(--gutter)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 100 48' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C35,46.67 65,46.67 100,20' fill='none' stroke='%23ec8e8e' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 85%); mask-image: linear-gradient(to left, #000 25%, transparent 85%); }
.journey__when { margin: 0 0 var(--s-1); font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.journey__place { margin: 0 0 var(--s-4); font-size: var(--t-h3); }
.journey__roles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.journey__roles li { display: flex; flex-direction: column; }
.journey__roles small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .journey::before { display: none; } .journey { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); margin-top: var(--s-6); } .journey__stop { padding-top: 40px; } .journey__stop::after, .journey__fill { display: none; } }
@media (max-width: 639px) {
  .journey { grid-template-columns: 1fr; row-gap: 0; }
  .journey__stop { padding: 0 0 var(--s-7) var(--s-7); }
  .journey__stop::before { left: 0; top: 2px; translate: none; }
  .journey__stop:not(:last-child)::after, .journey__stop:not(:last-child) > .journey__fill { display: block; top: 22px; bottom: -2px; left: 6.5px; right: auto; width: 7px; height: auto; background: var(--p-accent); border-radius: 2px; }
}

/* ---- about: tools, under education where Learning now was: a grid of icons, each shows its details on hover or focus ---- */
.tools-col .ui-apps { width: 100%; background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.tools-col .ui-apps__list { display: grid; grid-template-columns: repeat(auto-fill, 72px); gap: var(--s-3); padding: 0; margin: 0; overflow: visible; }
.tools-col .ui-app { position: relative; display: grid; place-items: center; width: 72px; height: 72px; min-height: 0; padding: 0; border: 0; border-radius: var(--r-md); background: var(--p-surface); cursor: default; }
.tools-col .ui-app:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tools-col .ui-logo { width: 40px; height: 40px; transition: transform var(--dur) var(--ease); }
.tools-col .ui-logo :is(svg, img) { width: 22px; height: 22px; }
.tools-col .ui-app:is(:hover, :focus-visible) .ui-logo { transform: scale(1.15) rotate(-8deg); }
.tools-col .ui-app__text { position: absolute; z-index: 2; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px; width: max-content; max-width: 240px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--p-ink); color: var(--p-bg); text-align: left; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
.tools-col .ui-app:is(:hover, :focus-visible) .ui-app__text { opacity: 1; translate: -50% 0; }
.tools-col .ui-app__name { display: block; font-weight: 600; font-size: 14px; color: inherit; }
.tools-col .ui-app__sub { display: none; font-size: 13px; color: color-mix(in oklab, var(--p-bg), transparent 25%); white-space: normal; }
/* a phone: the details span the grid's width above the icons, so none runs off the screen */
@media (max-width: 639px) { .tools-col .ui-apps__list { position: relative; } .tools-col .ui-app { position: static; } .tools-col .ui-app__text { left: 0; right: 0; bottom: calc(100% + 8px); width: auto; max-width: none; translate: 0 4px; } .tools-col .ui-app:is(:hover, :focus-visible) .ui-app__text { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .tools-col .ui-logo, .tools-col .ui-app__text { transition: none; } .tools-col .ui-app:is(:hover, :focus-visible) .ui-logo { transform: none; } }

.tools-col__h2 { margin-top: var(--s-6); }

/* ---- back-to-top arrow beside the chat button; shows once you've scrolled ---- */
.askk { display: flex; align-items: center; gap: 8px; }
.askk__top { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--p-ink); color: var(--p-bg); cursor: pointer; box-shadow: 0 6px 24px rgb(0 0 0 / .18); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.askk__top:hover { transform: translateY(-2px); }
.askk__top[hidden] { display: none; }
.askk:has(.askk__panel:not([hidden])) .askk__top { display: none; }

/* ---- nav: the words sit at the right, no button ---- */
@media (min-width: 1024px) { .nav--end .nav__links { justify-content: flex-end; } }

/* ---- case studies: every hat I wore, in a row ---- */
.hats { margin: var(--s-8) 0 var(--s-9); }
.hats__h { margin: 0 0 var(--s-5); text-align: center; font-family: var(--font-text); font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gutter); text-align: center; }
.hats__item { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.hats__icon svg { width: 34px; height: 34px; }
.hats__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--p-surface); font-size: 38px; line-height: 1; }
.hats__item strong { display: block; font-size: var(--t-card); font-weight: 600; margin-bottom: var(--s-1); }
.hats__item strong + span { display: block; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .hats__list { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); row-gap: var(--s-6); } }

/* ---- home: the hero is as tall as its content, so the work starts closer under it ---- */
@media (min-width: 640px) { main > .hero.hero--split { height: auto; min-height: 0; } }
#work { padding-top: var(--s-9); }

/* ---- about: what I stand for, four short lines ---- */
.beliefs__list { list-style: none; margin: var(--head-gap) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.beliefs__list li { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); }
.beliefs__n { display: block; margin-bottom: var(--s-6); font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; color: var(--p-accent); }
.beliefs__list p { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); line-height: 1.2; letter-spacing: var(--display-tracking); text-wrap: balance; }
@media (max-width: 1023px) { .beliefs__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .beliefs__list { grid-template-columns: 1fr; } }
#work-h { hyphens: manual; -webkit-hyphens: manual; }
/* the round portrait stays round when the hero stacks */
.hero--split .hero__media.portrait { flex: none; min-height: 0; height: auto; aspect-ratio: 1; }
@media (max-width: 1023px) { .hero--split .hero__media.portrait { justify-self: center; margin-inline: auto; max-width: min(100%, 360px); } }

main:focus { outline: none; }

/* more air between the fixed header and the first section */
main#top > :first-child { padding-top: clamp(136px, 13vw, 168px); }

/* light/dark switch in the header */
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background var(--dur) var(--ease); }
.theme-toggle:hover { background: color-mix(in oklab, var(--ink), transparent 92%); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (min-width: 1024px) { .nav__bar > .theme-toggle { margin-left: calc(var(--s-4) - var(--s-8)); } }
/* the bar gap drops to --s-6 at 1024-1279 (system.css), so pull the toggle back less there */
@media (min-width: 1024px) and (max-width: 1279px) { .nav__bar > .theme-toggle { margin-left: calc(var(--s-4) - var(--s-6)); } }
@media (max-width: 1023px) { .nav__bar > .theme-toggle { margin-left: auto; } .theme-toggle ~ .nav__toggle { margin-left: 0; } }
@media (scripting: none) { .theme-toggle { display: none; } }

/* iPhone Duo tile: text in the left third, picture in the right two thirds */
@media (min-width: 640px) {
  .bento__tile--split { display: grid; grid-template-columns: 1.3fr 2fr; grid-template-rows: auto 1fr; column-gap: var(--s-6); padding-bottom: var(--s-6); }
  .bento__tile--split .bento__media { grid-column: 2; grid-row: 1 / -1; padding: 0; align-items: center; }
  .bento__tile--split .bento__thumb { width: 100%; }
  .bento__tile--split .bento__title { max-width: none; }
  .bento__tile--full.bento__tile--split { grid-template-columns: 1fr 2fr; }
  .bento__tile--split .duo-sync { margin: auto auto 0 0; }  /* sits low and left, lined up with the text column's edge */
}
/* HomeView tile: one product still, clear of the tile's bottom edge */
.bento__thumb--product { height: 100%; width: auto; max-width: 100%; min-height: 0; aspect-ratio: 16 / 10; object-position: 50% 45%; }
.bento__tile--wide .bento__media:has(> .bento__thumb--product) { padding-bottom: var(--s-6); align-items: center; }
/* trailers tile: four 16:9 stills with room around them */
/* device frames for the app screenshots: an iPhone that fades into the tile, a MacBook Pro on its base */
.bento__apps .device { position: relative; max-height: 100%; min-width: 0; display: flex; --rim: #b8b8bd; --bezel: #0b0b0c; }
.bento__apps .device img { border-radius: 0; box-shadow: none; max-height: none; width: 100%; height: auto; }
.device--phone { width: min(78%, 250px); align-self: flex-end; padding: 10px 10px 0; background: var(--bezel); border-radius: 48px 48px 0 0; box-shadow: 0 0 0 3px var(--rim), 0 24px 48px -20px rgb(0 0 0 / .4);
  -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
.device--phone::before { content: ""; position: absolute; z-index: 1; top: 20px; left: 50%; width: 30%; height: 20px; translate: -50% 0; border-radius: 999px; background: var(--bezel); }
.device--phone::after { content: ""; position: absolute; left: -6px; top: 96px; width: 3px; height: 26px; border-radius: 2px 0 0 2px; background: var(--rim); box-shadow: 0 44px 0 var(--rim), 0 82px 0 var(--rim); }
.bento__apps .device--phone img { height: 100%; object-fit: cover; object-position: top; border-radius: 38px 38px 0 0; padding-top: 40px; background: #f2f2f7; box-sizing: border-box; }
.device--mac { flex-direction: column; align-items: center; align-self: center; width: min(100%, 430px); }
.bento__apps .device--mac img { border: 8px solid var(--bezel); border-bottom-width: 16px; border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1.5px var(--rim); }
.device--mac::after { content: ""; display: block; width: 114%; height: 11px; border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%; background: linear-gradient(#e6e6e9, #c3c3c8 55%, #8d8d92); box-shadow: 0 16px 30px -14px rgb(0 0 0 / .45); }
.device--mac::before { content: ""; position: absolute; z-index: 1; bottom: 7px; left: 50%; translate: -50% 0; width: 15%; height: 4px; border-radius: 0 0 6px 6px; background: #a2a2a7; }
:root[data-theme="dark"] .bento__apps .device { --rim: #6e6e73; --bezel: #000; }
:root[data-theme="dark"] .device--mac::after { background: linear-gradient(#8e8e93, #636366 55%, #3a3a3c); }
:root[data-theme="dark"] .device--mac::before { background: #48484a; }
/* Final Cut to Premiere tile */
.bento__swap { display: flex; align-items: center; justify-content: center; gap: var(--s-4); font-size: 32px; color: var(--b-muted); }
.bento__swap img { width: auto; height: 72px; }
/* iPhone Duo tile: a grid of phones that tilt in a wave, in sync */
.duo-sync { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px 8px; width: min(100%, 440px); margin: auto; perspective: 600px; }
.duo-sync i { aspect-ratio: 9 / 19; border-radius: 10px; border: 2px solid color-mix(in oklab, var(--b-ink), transparent 45%);
  background: linear-gradient(160deg, color-mix(in oklab, var(--p-accent), transparent 40%), transparent 70%); animation: duo-tilt 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
/* an open iPhone Duo: two phone widths wide, with a fold down the middle */
.duo-sync i.is-fold { grid-column: span 2; aspect-ratio: auto; background: linear-gradient(90deg, transparent calc(50% - 1px), color-mix(in oklab, var(--b-ink), transparent 60%) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(160deg, color-mix(in oklab, var(--p-accent), transparent 40%), transparent 70%); }
@keyframes duo-tilt { 0%, 55%, 100% { transform: rotateY(0); } 25% { transform: rotateY(-38deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .duo-sync i { animation: none; } }
/* HomeView tile: the product shot with its background cut out, standing on the tile */
.bento__cutout { width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; margin: auto; filter: drop-shadow(0 20px 24px rgb(0 0 0 / .18)); }
.bento__tile--wide .bento__media:has(> .bento__cutout) { padding-bottom: var(--s-5); align-items: center; }
.bento__collage { display: flex; align-items: center; justify-content: center; gap: var(--s-4); width: 100%; height: 100%; min-height: 0; padding-bottom: var(--s-4); }
.bento__collage img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 20px 24px rgb(0 0 0 / .18)); }
.bento__collage img:first-child { flex-grow: 1.3; }
/* an empty MacBook Pro: same frame as .device--mac img, with a switched-off screen */
.device__screen { display: block; width: 100%; aspect-ratio: 16 / 10; box-sizing: border-box; border: 8px solid var(--bezel); border-bottom-width: 16px; border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1.5px var(--rim); background: linear-gradient(135deg, #2c2c2e, #1c1c1e 60%); }
.bento__apps:has(.device__screen) { width: 100%; }
:root[data-theme="dark"] .device__screen { background: linear-gradient(135deg, #1c1c1e, #0b0b0c 60%); }
