/* Case study skin: maps each case study's own tokens onto the portfolio's Sea Glass / Night Tide tokens.
   Screens, mockups and "Look and feel" swatches keep the project's real colours. */
html:root:not(#pf){
  --bg:var(--pf-bg); --surface:var(--pf-surface); --surface-2:var(--pf-surface-2); --ink:var(--pf-ink); --muted:var(--pf-muted); --faint:var(--pf-faint); --line:var(--pf-line);
  --brand:var(--pf-btn); --brand-deep:var(--pf-btn-hover); --brand-ink:var(--pf-btn-ink); --brand-text:var(--pf-heading); --band-ink:var(--pf-ink);
  --chrome:var(--pf-surface-2); --chrome-ink:var(--pf-muted); --pill:var(--pf-surface);
  --display:var(--pf-font); --body:var(--pf-font); --mono:var(--pf-font);
  --shadow:var(--pf-shadow);
  /* Pet Land */ --mint:var(--pf-mint-soft); --mint-ink:var(--pf-ink); --apricot:var(--pf-accent); --butter:#F2D27E;
  /* B&A Kids */ --salmon:var(--pf-accent); --blush:var(--pf-coral-soft); --paper:var(--pf-surface-2);
  --stage-blush:var(--pf-mint-soft); --stage-blush-2:var(--pf-seafoam); --stage-paper:var(--pf-surface-2); --stage-paper-2:var(--pf-sand);
  --stage-old:var(--pf-surface-2); --stage-old-2:var(--pf-sand); --stage-red:var(--pf-deep-2); --stage-red-2:var(--pf-deep);
  /* Transfer Pitch */ --sky:var(--pf-mint-soft); --stage-ice:var(--pf-mint-soft); --stage-ice-2:var(--pf-seafoam); --stage-turf:var(--pf-surface-2); --stage-turf-2:var(--pf-sand);
  --stage-ink:#0E1F24; --stage-ink-2:#1E4D53;
  /* Shootbook */ --soft:var(--pf-mint-soft); --soft-ink:var(--pf-ink); --pend:var(--pf-accent); --pend-bg:var(--pf-coral-soft); --pend-text:var(--pf-coral-text);
  --cell:var(--pf-deep); --cell-ink:var(--pf-deep-ink);
}
body{background:var(--pf-bg);color:var(--pf-ink);font-family:var(--pf-font);padding-top:calc(env(safe-area-inset-top,0px) + 76px)}
.top{display:none!important}
:focus-visible{outline-color:var(--pf-accent)}
h1{font-family:var(--pf-font)!important;font-weight:800!important;text-transform:none!important;letter-spacing:-.04em!important;line-height:.95!important}
h1 span{color:var(--pf-heading)!important;letter-spacing:-.025em}
h2{font-family:var(--pf-font);font-weight:800;letter-spacing:-.035em;text-transform:none}
h3{font-family:var(--pf-font)}
.huge,.stat strong,.band blockquote,.next strong,.finding q,.fb q,.rules strong{font-family:var(--pf-font)!important;text-transform:none!important;letter-spacing:-.03em}
.tag{border-radius:999px!important;font-family:var(--pf-font)!important;font-weight:700!important;letter-spacing:.08em!important;padding:7px 13px!important;background:var(--pf-surface)!important;border-color:var(--pf-line)!important}
.tag.solid{background:var(--pf-btn)!important;color:var(--pf-btn-ink)!important;border-color:var(--pf-btn)!important}
.cta{border-radius:999px!important;padding:13px 22px!important;font-family:var(--pf-font)}
.toc a.on{border-radius:999px}
.band,.person,.spec > div,.rules > div,.stage{border-radius:28px}
.band{border:0}
.band.blue,.band.ink{background:var(--pf-deep)!important;color:var(--pf-deep-ink)!important}
.band.blue .pill,.band.ink .pill{background:var(--pf-accent)!important;color:var(--pf-accent-ink)!important}
.band .pill,.badge,.chips span,.toolchips span,.flow span{border-radius:999px!important}
.num::before{border-radius:50%!important;background:var(--pf-btn)!important;box-shadow:inset 0 -3px 0 var(--pf-accent)!important}

/* hero banners: the beach, with the project's devices on top */
.banner,.stage.hero-stage{background:url("../media/beach.jpg") center 82%/cover no-repeat!important;box-shadow:none!important;margin-right:0!important;border-radius:28px!important;isolation:isolate}
.banner::before,.banner::after,.stage.hero-stage::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(255,255,255,0) 40%,rgba(22,59,64,.18))!important;width:auto!important;height:auto!important;aspect-ratio:auto!important;border-radius:0!important;opacity:1!important;left:0!important;top:0!important;right:0!important;bottom:0!important;transform:none!important}
.banner::after,.stage.hero-stage::after{background:transparent!important}
:root[data-theme="dark"] .banner::after,:root[data-theme="dark"] .stage.hero-stage::after{background:rgba(9,20,24,.5)!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .banner::after,:root:not([data-theme="light"]) .stage.hero-stage::after{background:rgba(9,20,24,.5)!important}}
.banner .word{color:rgba(255,255,255,.34)!important;font-family:var(--pf-font)!important;font-weight:800!important;letter-spacing:-.05em!important;top:16px!important}
.stage.hero-stage .hint,.banner .hint{background:rgba(244,241,232,.9);color:#163B40!important;padding:7px 12px;border-radius:999px;font-family:var(--pf-font)}
.stage.red:not(.hero-stage),.stage.indigo:not(.hero-stage){background:radial-gradient(90% 70% at 30% 0%,#2A6F75,transparent 60%),linear-gradient(160deg,#1E4D53,#0E1F24)!important}
.stage .chip{font-family:var(--pf-font)!important;font-weight:700}
.stage.red .chip,.stage.indigo .chip{background:#F4F1E8!important;color:#163B40!important}
.stk.mint{background:var(--pf-mint-soft)!important}.stk.apricot{background:var(--pf-coral-soft)!important}

/* next project: a deep-tide band with a wavy top */
.next{background:var(--pf-deep)!important;color:var(--pf-deep-ink)!important;margin-top:56px!important;position:relative}
.next::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:40px;background:var(--pf-deep);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q45 0 90 20 T180 20 V40 H0Z'/%3E%3C/svg%3E") 0 100%/180px 40px repeat-x;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q45 0 90 20 T180 20 V40 H0Z'/%3E%3C/svg%3E") 0 100%/180px 40px repeat-x}
.next small{color:var(--pf-accent)!important;font-family:var(--pf-font)!important;font-weight:700}
.next .arr{font-family:var(--pf-font)!important}
.next + .wrap{display:none}
.pf-foot{margin-top:0}
.pf-foot .pf-wave-edge{display:none}

.pf-back{gap:8px}
@media (max-width:980px){.toc{top:calc(env(safe-area-inset-top,0px) + 70px)!important}}
section.s,.section{scroll-margin-top:96px}
