/* ------------------------------------------------------------------
   FrozenPepper home — "Frost"
   The logo is a hot thing kept inside something cool. So is every project:
   the fun on top, a real engine underneath. Each project tile has two
   layers: ON TOP (the screenshot) and UNDERNEATH (what actually runs it).
   Hover, tap or press a tile and frost spreads over the screenshot from
   the cursor, revealing the facts underneath. Everything moving on the page
   is real content: the rolling word, the frost, the shuffled archive strip.
   ------------------------------------------------------------------ */
/* Fonts are served from this site (no requests to Google): Dosis and Open Sans, SIL Open Font License */
@font-face { font-family: 'Dosis'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dosis-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Dosis'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dosis-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/opensans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/opensans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/opensans-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/opensans-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --navy: #002054;
  --navy-80: rgba(0, 32, 84, .8);
  --navy-60: rgba(0, 32, 84, .6);
  --navy-15: rgba(0, 32, 84, .15);
  --orange: #fc9700;           /* header top border, as on the live site */
  --chili: #e3301f;            /* the pepper */
  --chili-dark: #b8220f;
  --ice: #d9eefb;              /* the cube */
  --ice-deep: #9fcfea;
  --ice-text: #0b3a6b;
  --paper: #fdf8f1;            /* warm page, so the ice reads as ice */
  --white: #ffffff;
  --f-brand: 'Dosis', 'Open Sans', system-ui, sans-serif;
  --f-body: 'Open Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }   /* height: auto, or the build's width/height attributes win over aspect-ratio */
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1360px, 100% - 48px); margin-inline: auto; }
.eyebrow { margin: 0; font-family: var(--f-brand); font-size: 13.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-60); }
.eyebrow b { color: var(--chili); font-weight: 600; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; }

/* Masthead: the live frozenpepper.it header, untouched */
.top { background: var(--white); border-top: 5px solid var(--orange); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--navy-15); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { position: relative; width: 60px; height: 60px; flex: none; }
.brand .mark img, .brand .mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-user-drag: none; }
.brand .mark canvas { visibility: hidden; will-change: transform; }
.brand .mark.turning canvas { visibility: visible; }
.brand .mark.turning img { visibility: hidden; }
.brand-name { display: flex; flex-direction: column; font-family: var(--f-brand); font-weight: 400; }
.brand-name b { font-weight: 400; font-size: 30px; line-height: 1.1; }
.brand-name i { font-size: 13.5px; color: var(--navy-80); }
.nav { display: flex; gap: 6px; font-family: var(--f-brand); font-size: 17px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--ice); }
.nav a.hot { background: var(--chili); color: #fff; }
.nav a.hot:hover { background: var(--chili-dark); }
.menu-btn { display: none; border: 2px solid var(--navy); background: none; border-radius: 999px; padding: 6px 14px; font-family: var(--f-brand); font-weight: 600; font-size: 15px; cursor: pointer; }

/* Hero: who we are, in one breath, with a rolling word for what we make */
.hero { padding: clamp(22px, 3.2vw, 40px) 0 clamp(14px, 2vw, 22px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.hero .eyebrow, .hero h1 { grid-column: 1 / -1; }
.hero h1 { margin: 6px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(44px, 6.4vw, 90px); line-height: .98; letter-spacing: -.015em; }
.roll { display: inline-block; position: relative; vertical-align: -.26em; color: var(--chili); white-space: nowrap; transition: width .5s var(--ease); overflow: hidden; height: 1.3em; line-height: 1.3; }
.roll span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(70%); transition: transform .55s var(--ease), opacity .35s .15s; }
.roll span.on { opacity: 1; transform: none; }
.roll span.out { opacity: 0; transform: translateY(-70%); transition: transform .45s var(--ease), opacity .18s; }
.roll .measure { position: static; visibility: hidden; display: inline-block; }
.hero .tag { margin: 16px 0 0; font-family: var(--f-brand); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; }
.hero .tag em { font-style: normal; color: var(--ice-text); background: linear-gradient(transparent 55%, var(--ice) 55%); padding-inline: 2px; }
.hero .lede { margin: 18px 0 0; max-width: 52ch; font-size: 16px; color: var(--navy-80); }
.hero .lede a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--chili); }
.hero .lede a:hover { color: var(--chili); }

/* Projects */
.projects { padding-block: 8px 26px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 4px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.seg { display: inline-flex; border: 2px solid var(--navy); border-radius: 999px; padding: 3px; gap: 3px; background: var(--white); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-family: var(--f-brand); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chili); }
.seg button:last-child .dot { background: var(--ice-deep); }
.seg button[aria-pressed="true"] .dot { outline: 2px solid #fff; }


/* The two layers: ON TOP (screenshot) and UNDERNEATH (frost + facts) */
.media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; border: 0; background: #e8eef4; overflow: hidden; cursor: pointer; text-align: left; isolation: isolate; }
.media:focus-visible { outline-offset: -4px; }
.media .hot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover .hot { transform: scale(1.04); }
.media .sticker { position: absolute; right: 4%; bottom: -2%; width: 26%; max-width: 150px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); transform: rotate(-6deg); transition: transform .5s var(--ease); z-index: 1; pointer-events: none; }
.media:hover .sticker { transform: rotate(2deg) translateY(-4px); }
.media .temp { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-family: var(--f-brand); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--chili); backdrop-filter: blur(6px); transition: background-color .3s, color .3s; }
.media .temp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.media .temp .u { display: none; }
.media.cool .temp { color: var(--ice-text); background: rgba(255, 255, 255, .85); }
.media.cool .temp .u { display: inline; }
.media.cool .temp .t { display: none; }
.frost {
  position: absolute; inset: 0; z-index: 2; padding: 56px 20px 20px; overflow: hidden;
  color: var(--ice-text);
  background: linear-gradient(135deg, rgba(236, 247, 253, .94), rgba(196, 228, 246, .94) 60%, rgba(173, 216, 240, .96));
  backdrop-filter: blur(14px) saturate(.4); -webkit-backdrop-filter: blur(14px) saturate(.4);
  clip-path: circle(0px at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path .7s var(--ease);
}
.frost::before { /* a few cracks in the ice, pure CSS */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(115deg, transparent 49.6%, #fff 49.6%, #fff 50.2%, transparent 50.2%) 0 0 / 100% 100% no-repeat,
    linear-gradient(28deg, transparent 69.7%, #fff 69.7%, #fff 70.1%, transparent 70.1%) 0 0 / 100% 100% no-repeat,
    linear-gradient(160deg, transparent 29.7%, #fff 29.7%, #fff 30.1%, transparent 30.1%) 0 0 / 100% 100% no-repeat;
}
.media.cool .frost { clip-path: circle(160% at var(--fx, 50%) var(--fy, 50%)); }
.frost dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; align-content: start; font-size: 14.5px; line-height: 1.4; position: relative; }
.frost dt { font-family: var(--f-brand); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--chili); padding-top: 2px; }
.frost dd { margin: 0; color: var(--navy); }
.frost dd b { font-weight: 600; }

.bar { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker { margin: 0; font-family: var(--f-brand); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-60); }
.kicker .st { display: inline-flex; align-items: center; gap: 6px; color: var(--chili); }
.kicker .st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--chili); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-family: var(--f-brand); font-weight: 600; font-size: 15.5px; text-decoration: none; background: var(--chili); color: var(--white); border: 2px solid var(--chili); transition: background-color .2s, border-color .2s, color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--chili-dark); border-color: var(--chili-dark); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy-15); }
.btn.ghost:hover { border-color: var(--navy); background: var(--white); }
.btn.navy { background: var(--navy); border-color: var(--navy); }
.btn.navy:hover { background: var(--chili); border-color: var(--chili); }
.btn.big { font-size: 18px; padding: 12px 22px; }


/* Spotlight: one current project at a time, big */
.spot { --dur: 8s; }
.stage { position: relative; height: clamp(460px, 66vh, 660px); border-radius: var(--r); overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -36px rgba(0, 32, 84, .55); touch-action: pan-y; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.on { visibility: visible; z-index: 1; }
.slide.leaving { visibility: visible; z-index: 0; }
.slide .media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.slide .media .hot { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease), transform 9s linear; transform: scale(1.08); }
.slide.on .media .hot { clip-path: inset(0); transform: scale(1); }
.slide.leaving .media .hot { clip-path: inset(0); transition: none; }
.slide .media:hover .hot { transform: scale(1); }
.slide .media .temp { left: auto; right: 20px; top: 20px; }
.slide .media .sticker { width: 16%; max-width: 190px; right: 3%; bottom: -1%; }
.slide .frost { padding: 72px 36px 36px calc(min(520px, 42%) + 72px); }
.slide .frost dl { font-size: 16.5px; gap: 10px 18px; max-width: 640px; }
.slide .frost dt { font-size: 13.5px; }
.slide .spot-card {
  position: absolute; left: 28px; bottom: 28px; z-index: 4; width: min(520px, 42%);
  background: var(--white); border-radius: calc(var(--r) - 4px); padding: 26px 28px 26px;
  box-shadow: 0 24px 50px -20px rgba(0, 20, 50, .5);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease) .25s, transform .7s var(--ease) .25s;
}
.slide.on .spot-card { opacity: 1; transform: none; }
.slide .spot-card h3 { margin: 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(46px, 5vw, 80px); line-height: .95; letter-spacing: -.015em; }
.slide .spot-card .title-logo { display: block; width: auto; height: clamp(58px, 5.4vw, 86px); margin: 2px 0 4px; }
.slide .spot-card .short { margin: 0; color: var(--navy-80); font-size: 16.5px; }
.slide .spot-card .links { padding-top: 6px; }
.peek { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-family: var(--f-brand); font-weight: 600; font-size: 15px; color: var(--ice-text); cursor: pointer; border-bottom: 2px solid var(--ice); }
.peek:hover { color: var(--navy); border-color: var(--ice-deep); }
.arrows { position: absolute; z-index: 5; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); transition: transform .2s var(--ease), background-color .2s; }
.arrows button:hover { transform: scale(1.08); background: var(--white); }
.picker { display: flex; gap: 12px; margin-top: 14px; }
.pick { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px; border: 0; border-radius: 14px; background: var(--white); color: var(--navy); text-align: left; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 1px 0 var(--navy-15); transition: transform .3s var(--ease), box-shadow .3s; }
.pick:hover { transform: translateY(-2px); }
.pick img { grid-row: 1 / span 2; width: 76px; height: 52px; object-fit: cover; border-radius: 8px; filter: saturate(.6); opacity: .75; transition: filter .3s, opacity .3s; }
.pick b { font-family: var(--f-brand); font-weight: 700; font-size: 19px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small { font-size: 12.5px; color: var(--navy-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick[aria-selected="true"] { box-shadow: 0 0 0 2px var(--navy); }
.pick[aria-selected="true"] img { filter: none; opacity: 1; }
.pick i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--chili); }
.pick[aria-selected="true"] i { animation: fill var(--dur) linear forwards; }
.spot.hold .pick i, .spot:hover .pick i, .spot:focus-within .pick i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.spot.solo .picker, .spot.solo .arrows { display: none; }

@media (max-width: 860px) {
  .stage { height: auto; display: grid; }
  .slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .slide.leaving { visibility: hidden; }
  .slide .media { position: relative; aspect-ratio: 4 / 3; height: auto; }
  .slide .frost { padding: 58px 18px 18px; }
  .slide .frost dl { font-size: 14px; gap: 6px 12px; }
  .slide .spot-card { position: relative; left: auto; bottom: auto; width: auto; border-radius: 0; box-shadow: none; padding: 18px 18px 20px; flex: 1; }
  .slide .spot-card h3 { font-size: 46px; }
  .arrows { top: calc(75vw - 64px); bottom: auto; right: 12px; }
  .arrows button { width: 42px; height: 42px; }
  .picker { overflow-x: auto; scrollbar-width: none; }
  .pick { flex: 0 0 auto; width: 210px; }
}
@media (prefers-reduced-motion: reduce) { .slide .media .hot { transform: none; } }

/* Services: the part we sell. Navy band, three blocks, each backed by real work. */
.services { background: var(--navy); color: var(--white); padding: clamp(34px, 4vw, 48px) 0 clamp(34px, 4vw, 44px); position: relative; overflow: hidden; }
.services::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 207, 234, .22), transparent 62%); pointer-events: none; }
.services .wrap { position: relative; }
.services .eyebrow { color: var(--ice-deep); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.services h2 { margin: 8px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(36px, 4.2vw, 58px); line-height: 1; letter-spacing: -.01em; max-width: 16ch; }
.services h2 em { font-style: normal; color: var(--ice-deep); }
.services .intro { margin: 0; max-width: 56ch; font-size: 16px; color: rgba(255, 255, 255, .8); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.svc { position: relative; padding: 20px 20px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; transition: background-color .3s, transform .4s var(--ease), border-color .3s; }
.svc:hover { background: rgba(255, 255, 255, .1); border-color: rgba(159, 207, 234, .5); transform: translateY(-4px); }
.svc .num { font-family: var(--f-brand); font-weight: 700; font-size: 14px; letter-spacing: .16em; color: var(--chili); background: #fff; display: inline-block; padding: 3px 10px; border-radius: 999px; align-self: start; }
.svc h3 { margin: 2px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(26px, 2.1vw, 32px); line-height: 1.05; }
.svc p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .82); }
.proof { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: 1fr; gap: 8px; }
.proof .lbl { grid-column: 1 / -1; }
.proof .lbl { font-family: var(--f-brand); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ice-deep); }
.proof a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-brand); font-weight: 600; font-size: 16px; border-radius: 10px; }
.proof a img { width: 56px; height: 38px; object-fit: cover; border-radius: 7px; flex: none; background: #fff; transition: transform .3s var(--ease); }
.proof a:hover img { transform: scale(1.08) rotate(-2deg); }
.proof a:hover { color: var(--ice-deep); }
.proof a small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.services .cta { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.services .cta span { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* Studio: short, factual, with four facts as colour blocks */
.studio { padding: clamp(30px, 3.4vw, 42px) 0 10px; }
.studio .cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.studio h2 { margin: 6px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(32px, 3.2vw, 46px); line-height: 1; letter-spacing: -.01em; }
.studio .text p { margin: 12px 0 0; max-width: 58ch; color: var(--navy-80); font-size: 15.5px; }
.studio .text a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--chili); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.studio .cols { align-items: center; }
.studio > .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(18px, 2.4vw, 30px); }

/* The 3D logo: still, then a dripping loop, then a full turn while dragged */
.cube { position: relative; margin: 0; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.cube:active { cursor: grabbing; }
.cube > img, .cube > video, .cube > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
.cube > video, .cube > canvas { opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.cube.looping > video { opacity: 1; }
.cube.looping > .still { opacity: 0; transition: opacity .35s .1s; }
.cube.turning > canvas { opacity: 1; transition: none; }
.cube > canvas { will-change: transform; }
.cube.turning > video, .cube.turning > .still { opacity: 0; transition: none; }
.cube .hint { position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; font-family: var(--f-brand); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy-60); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cube:hover .hint, .cube:focus-visible .hint { opacity: 1; }
.cube.used .hint { display: none; }
.prose .cube { float: right; width: min(360px, 44%); margin: 0 0 14px 28px; }
.fact { border-radius: 18px; padding: 16px 18px 14px; min-height: 100px; display: flex; flex-direction: column; justify-content: end; gap: 2px; transition: transform .4s var(--ease); }
.fact:hover { transform: translateY(-3px) rotate(-.6deg); }
.fact b { font-family: var(--f-brand); font-weight: 700; font-size: clamp(36px, 3.4vw, 50px); line-height: .95; letter-spacing: -.01em; }
.fact span { font-family: var(--f-brand); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fact.chili { background: var(--chili); color: #fff; }
.fact.ice { background: var(--ice); color: var(--ice-text); }
.fact.navy { background: var(--navy); color: #fff; }
.fact.white { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }

/* Previous work: one strip of stickers, shuffled on every visit, never a timeline */
.previous { padding: 12px 0 28px; }
.previous .sec-head { margin-bottom: 14px; }
.previous .sec-head a { font-family: var(--f-brand); font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--chili); }
.previous .sec-head a:hover { color: var(--chili); }
.strip { position: relative; overflow: hidden; margin-inline: calc(50% - 50vw); padding: 12px 0 16px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 18px; width: max-content; padding-left: 18px; animation: slide var(--dur, 70s) linear infinite; }
.strip:hover .track, .strip:focus-within .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.card { flex: none; width: 196px; background: var(--white); border-radius: 14px; padding: 8px 8px 10px; text-decoration: none; box-shadow: 0 1px 0 var(--navy-15), 0 10px 24px -18px rgba(0, 32, 84, .5); transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover, .card:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.04); box-shadow: 0 1px 0 var(--navy-15), 0 22px 30px -18px rgba(0, 32, 84, .5); z-index: 2; position: relative; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; background: #e8eef4; }
.card b { display: block; margin-top: 8px; font-family: var(--f-brand); font-weight: 700; font-size: 17px; line-height: 1.1; }
.card small { display: block; font-size: 12px; color: var(--navy-60); margin-top: 2px; }
.strip.static { mask-image: none; -webkit-mask-image: none; overflow-x: auto; margin-inline: 0; }
.strip.static .track { animation: none; padding-left: 0; }

/* Footer */
.foot { border-top: 2px solid var(--navy); padding: 18px 0 26px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-brand); font-weight: 600; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--chili); }
.foot .links { gap: 18px; margin: 0; padding: 0; }
.foot .muted { color: var(--navy-60); font-weight: 500; }

/* Entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .brand .mark { width: 46px; height: 46px; }
  .brand-name b { font-size: 24px; }
  .brand-name i { font-size: 12px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--navy-15); box-shadow: 0 20px 30px -20px rgba(0, 32, 84, .4); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-block; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 56px); }
  .svc-head { grid-template-columns: 1fr; }
  .hero .lede { font-size: 15.5px; }
  .media { aspect-ratio: 16 / 10.5; }
  .frost { padding: 50px 14px 14px; }
  .frost dl { font-size: 13.5px; gap: 5px 10px; }
  .bar { padding: 16px 16px 18px; }
  .services h2 { font-size: clamp(34px, 10vw, 44px); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:last-child { grid-column: auto; }
  .studio .cols { grid-template-columns: 1fr; gap: 22px; }
  .studio > .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio .cube { max-width: 320px; }
  .prose .cube { float: none; width: min(300px, 100%); margin: 6px auto 18px; }
  .fact { min-height: 104px; padding: 14px; }
  .card { width: 170px; }
  .foot .wrap { flex-direction: column; }
}
@media (hover: none) {
  .media .hot { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .track { animation: none !important; }
}

/* ================= Shared bits for every page ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.media.no-frost { cursor: default; }
.sec-title { margin: 0 0 14px; font-family: var(--f-brand); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; }

/* Text written in Markdown */
.prose { max-width: 70ch; font-size: 17px; color: var(--navy-80); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 .5em; font-family: var(--f-brand); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; color: var(--navy); }
.prose h3 { margin: 1.4em 0 .4em; font-family: var(--f-brand); font-weight: 700; font-size: 22px; color: var(--navy); }
.prose a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--chili); }
.prose a:hover { color: var(--chili); }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--chili); }
.prose strong { color: var(--navy); }
.prose img { border-radius: 14px; margin: 1.2em 0; box-shadow: 0 20px 40px -30px rgba(0, 32, 84, .5); }
.prose .cube > img { border-radius: 0; margin: 0; box-shadow: none; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ice-deep); font-family: var(--f-brand); font-size: 22px; color: var(--navy); }
.prose .services, .prose .facts, .prose .contact-box, .prose .spot, .prose .ptiles { max-width: none; }
.page-body .prose { max-width: none; }
.page-body .prose > p, .page-body .prose > ul, .page-body .prose > ol, .page-body .prose > h2, .page-body .prose > h3, .page-body .prose > blockquote { max-width: 70ch; }
.page-body .services { margin: 30px calc(50% - 50vw); }
.page-body .facts { margin: 26px 0; max-width: 760px; }

/* Page heading */
.phead { padding: clamp(26px, 4vw, 52px) 0 clamp(14px, 2vw, 24px); }
.phead h1 { margin: 6px 0 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(48px, 7vw, 104px); line-height: .95; letter-spacing: -.015em; }
.phead .intro-line { margin: 12px 0 0; font-family: var(--f-brand); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; color: var(--chili); }
.phead .lede { margin: 14px 0 0; max-width: 60ch; font-size: 17px; color: var(--navy-80); }
.phead .lede a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--chili); }
.page-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r); margin-bottom: 24px; }
.page-body { padding-bottom: 40px; }
.contact-box { margin: 18px 0 8px; padding: 24px; border-radius: var(--r); background: var(--ice); color: var(--ice-text); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact-box p { margin: 0; font-family: var(--f-brand); font-weight: 600; font-size: 20px; }
.contact-box .also { flex-basis: 100%; font-size: 15px; font-weight: 500; }
.contact-box .also a { border-bottom-color: var(--ice-deep); }
.prose .contact-box a.btn { color: #fff; border-bottom: 2px solid var(--chili); }

/* ================= Project page ================= */
.phero { padding-top: 18px; }
.crumbs { margin: 0 0 12px; font-family: var(--f-brand); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-60); }
.crumbs a { color: var(--chili); text-decoration: none; }
.crumbs span { margin: 0 6px; }
.is-project .stage { height: clamp(420px, 62vh, 620px); }
.is-project .slide .spot-card h1 { margin: 0; font-family: var(--f-brand); font-weight: 700; font-size: clamp(46px, 5vw, 80px); line-height: .95; letter-spacing: -.015em; }
.pbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 36px 0 20px; align-items: start; }
.pmeta { position: sticky; top: 110px; background: var(--white); border-radius: var(--r); padding: 18px 20px 20px; box-shadow: 0 1px 0 var(--navy-15), 0 18px 40px -30px rgba(0, 32, 84, .4); }
.pmeta dl { margin: 0 0 14px; }
.pmeta dl div { padding: 9px 0; border-bottom: 1px solid var(--navy-15); }
.pmeta dt { font-family: var(--f-brand); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--chili); }
.pmeta dd { margin: 2px 0 0; font-size: 15px; }
.links.stack { flex-direction: column; align-items: stretch; padding-top: 0; }
.links.stack .btn { justify-content: center; }
.pvideos, .pgallery { padding: 18px 0 20px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy); }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease), opacity .3s; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%; background: var(--chili); color: #fff; display: grid; place-items: center; font-size: 26px; padding-left: 5px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.video:hover .play { transform: scale(1.1); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.ggrid a { display: block; border-radius: 14px; overflow: hidden; background: #e8eef4; aspect-ratio: 16 / 10; }
.ggrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ggrid a:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 12, 28, .9); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox .x { right: 18px; top: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.pnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 26px 0 36px; }
.pnav a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pnav a img { width: 120px; height: 76px; object-fit: cover; border-radius: 12px; transition: transform .4s var(--ease); }
.pnav a:hover img { transform: rotate(-2deg) scale(1.05); }
.pnav small { display: block; font-family: var(--f-brand); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-60); }
.pnav b { font-family: var(--f-brand); font-weight: 700; font-size: 24px; line-height: 1.05; }
.pnav a:hover b { color: var(--chili); }
.pnav .next { justify-content: flex-end; text-align: right; }
.pnav .all { font-family: var(--f-brand); font-weight: 600; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--navy-15); }
.pnav .all:hover { box-shadow: inset 0 0 0 2px var(--navy); }

/* ================= Projects index ================= */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips button { border: 0; background: var(--white); border-radius: 999px; padding: 8px 16px; font-family: var(--f-brand); font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--navy-15); transition: background-color .2s, color .2s, box-shadow .2s; }
.chips button:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.chips button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.chips sup { font-size: 11px; opacity: .7; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; padding: 10px 0 40px; }
.ptile { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 var(--navy-15), 0 18px 40px -30px rgba(0, 32, 84, .4); transition: transform .4s var(--ease), box-shadow .4s; }
.ptile:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 1px 0 var(--navy-15), 0 30px 50px -30px rgba(0, 32, 84, .5); }
.ptile[hidden] { display: none; }
.ptile-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef4; }
.ptile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ptile:hover .ptile-img img { transform: scale(1.05); }
.ptile-img em { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--chili); font-style: normal; font-family: var(--f-brand); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ptile-text { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 18px; }
.ptile-text b { font-family: var(--f-brand); font-weight: 700; font-size: 24px; line-height: 1.05; }
.ptile-text small { font-family: var(--f-brand); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--chili); }
.ptile-sum { margin-top: 4px; font-size: 14.5px; color: var(--navy-80); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 960px) {
  .pbody { grid-template-columns: 1fr; gap: 24px; }
  .pmeta { position: static; }
}
@media (max-width: 760px) {
  .is-project .stage { height: auto; }
  .pnav { grid-template-columns: 1fr 1fr; }
  .pnav .all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .pnav a img { width: 72px; height: 50px; }
  .pnav b { font-size: 18px; }
  .lightbox figure { padding: 60px 8px; }
}
.studio .prose h2 { margin: 6px 0 0; font-size: clamp(32px, 3.2vw, 46px); line-height: 1; }
.studio .prose p { margin: 12px 0 0; }

/* Hero video: plays muted in the big picture, sound button in the corner */
.media .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.media .yt { overflow: hidden; }
.media .yt img, .media .yt iframe { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 0; pointer-events: none; }
.media .yt img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.media .yt.playing img { opacity: 0; }
/* a 16:9 frame scaled to cover the stage, whatever its shape */
.media .yt iframe { width: max(100%, 177.78cqh); height: max(100%, 56.25cqw); }
.media { container-type: size; }
.sound {
  position: absolute; z-index: 3; left: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border: 0; border-radius: 999px;
  background: rgba(0, 20, 50, .62); color: #fff; backdrop-filter: blur(8px);
  font-family: var(--f-brand); font-weight: 600; font-size: 14px; letter-spacing: .04em; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.sound:hover { background: rgba(0, 20, 50, .85); transform: scale(1.04); }
.sound .on, .sound[aria-pressed="true"] .off { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] { background: var(--chili); }
.media.cool .sound { opacity: 0; pointer-events: none; }
.pick.vidpick i { animation: none !important; transition: width .25s linear; }
@media (max-width: 860px) { .sound { left: 12px; top: 12px; } }
