/* ================= Case study: Kaynes Technology =================
   Latch frames the page (Archivo Wide headlines, grey intros); the client's own system
   (Space Grotesk, Brown red, Autumn leaf, Emerald) fills the panels that show their brand. */
.ky { --ky-red: #ac212f; --ky-leaf: #db5d04; --ky-em: #34c969; --ky-logo: #882a2e; --ky-ink: #0b0b0c; --ky-font: 'Space Grotesk', var(--font); --ky-grad: linear-gradient(90deg, #ac212f 0%, #b92b22 22%, #db5d04 58%, #e0823f 78%, #f3c7a6 91%, #fff 100%); }
.ky .kyf { font-family: var(--ky-font); font-stretch: 100%; letter-spacing: -0.02em; }
.ky-dark { background: var(--ky-ink); color: #f3f1f0; }
.ky-dark .label, .ky-dark .lede { color: rgba(243, 241, 240, .62); }
.ky-dark :focus-visible { outline-color: #fff; }
.ky-in { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--k, 0) * 80ms); }
.ky-in.on { opacity: 1; transform: none; }

/* Hero */
.ky-hero { position: relative; overflow: hidden; background: #160406; color: #fff; min-height: min(92vh, 980px); display: grid; isolation: isolate; }
.ky-flow { position: absolute; inset: -14%; z-index: -2; background: url(../img/kaynes/flow.webp) center / cover; animation: kyFlow 26s ease-in-out infinite alternate; }
.ky-flow.b { transform: scaleX(-1); mix-blend-mode: lighten; opacity: .45; animation-name: kyFlowB; animation-duration: 31s; }
.ky-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 70% at 62% 45%, transparent 25%, rgba(10, 2, 3, .72) 100%), linear-gradient(180deg, rgba(10,2,3,.35), transparent 30%, transparent 70%, rgba(10,2,3,.6)); }
@keyframes kyFlow { from { transform: scale(1.04) translate(1.5%, 1%) rotate(-1.5deg); } to { transform: scale(1.16) translate(-2%, -1.5%) rotate(1.5deg); } }
@keyframes kyFlowB { from { transform: scaleX(-1) scale(1.1) translate(2%, 0); } to { transform: scaleX(-1) scale(1.28) translate(-3%, 2%); } }
.ky-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 32px clamp(24px, 5vw, 80px); padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.ky-hero .crumbs { color: rgba(255,255,255,.6); margin-bottom: clamp(28px, 4vw, 56px); }
.ky-hero .crumbs a:hover { color: #fff; }
.ky-hero .label { color: rgba(255,255,255,.66); }
.ky-hero h1 { font-size: clamp(42px, 7.4vw, 118px); line-height: .98; max-width: 11ch; }
.ky-hero h1 em { font-style: normal; display: block; color: transparent; background: linear-gradient(90deg, #ff8a8f, #ffb07a 60%, #ffe6d6); -webkit-background-clip: text; background-clip: text; }
.ky-hero .lede { color: rgba(255,255,255,.74); margin-top: 26px; max-width: 54ch; }
.ky-hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ky-hero .btn-solid { background: #fff; color: #1a0607; border-color: #fff; --sweep: var(--ky-leaf); }
.ky-hero .btn-solid:hover { color: #fff; border-color: var(--ky-leaf); }
.ky-hero .btn-ghost { color: #fff; --sweep: #fff; }
.ky-hero .btn-ghost:hover { color: #1a0607; border-color: #fff; }
.ky-hero-mark { justify-self: center; width: min(100%, 340px); filter: drop-shadow(0 0 60px rgba(255, 70, 80, .35)); }
.ky-hero-mark svg { width: 100%; height: auto; overflow: visible; }
.ky-hero-mark .bar { animation: kyBar 1.2s cubic-bezier(.76,0,.24,1) .5s both; }
.ky-hero-mark .spark { animation: kySpark 1.3s cubic-bezier(.76,0,.24,1) 1s both; }
@keyframes kyBar { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kySpark { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); } }
.ky-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); margin-top: clamp(12px, 3vw, 40px); }
.ky-meta div { padding: 18px 16px 0 0; display: grid; gap: 4px; min-width: 0; }
.ky-meta div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: clamp(12px, 2vw, 24px); }
.ky-meta b { font-weight: 400; font-size: 15.5px; line-height: 1.4; }
.ky-meta span { font-stretch: 75%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Film */
.ky-film { padding-block: clamp(56px, 8vw, 120px); }
.ky-film .ky-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.ky-film h2 { font-size: var(--t-1); max-width: 14ch; }
.ky-film .ky-head p { max-width: 40ch; color: rgba(243,241,240,.62); }
.ky-screen { position: relative; border-radius: clamp(14px, 2vw, 28px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; transform: scale(var(--s, 1)); transform-origin: 50% 0; box-shadow: 0 40px 120px -40px rgba(172, 33, 47, .55); }
.ky-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ky-play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #fff; transition: opacity .5s var(--ease); }
.ky-play i { width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.35); transition: transform .5s var(--ease), background .4s; }
.ky-play i svg { width: 34%; height: 34%; margin-left: 6%; }
.ky-play:hover i { transform: scale(1.08); background: rgba(255,255,255,.24); }
.ky-screen.playing .ky-play { opacity: 0; }
.ky-snd { position: absolute; top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 13.5px; cursor: pointer; transition: background .3s; }
.ky-snd:hover { background: rgba(0,0,0,.55); }
.ky-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ky-eq i { width: 2.5px; height: 30%; background: currentColor; border-radius: 1px; }
.ky-screen.loud.playing .ky-eq i { animation: kyEq .9s ease-in-out infinite alternate; }
.ky-eq i:nth-child(2) { animation-delay: -.3s !important; } .ky-eq i:nth-child(3) { animation-delay: -.6s !important; } .ky-eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes kyEq { from { height: 20%; } to { height: 100%; } }
.ky-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px clamp(14px, 2vw, 22px); background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 13px; opacity: 0; transition: opacity .4s; }
.ky-screen:hover .ky-bar, .ky-screen:focus-within .ky-bar, .ky-screen.paused .ky-bar { opacity: 1; }
.ky-bar button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ky-bar button svg { width: 14px; height: 14px; }
.ky-track { flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; cursor: pointer; }
.ky-track i { display: block; height: 100%; width: 100%; background: var(--ky-grad); transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
.ky-time { font-variant-numeric: tabular-nums; opacity: .8; min-width: 72px; text-align: right; }

/* About Kaynes */
.ky-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ky-stats > div { padding: 26px 16px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ky-stats > div + div { border-left: 1px solid var(--line); padding-left: clamp(12px, 2.2vw, 30px); }
.ky-stats b { font-family: var(--ky-font); font-weight: 400; font-size: clamp(34px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ky-stats b sup { font-size: .42em; vertical-align: .9em; margin-left: 2px; color: var(--ky-red); }
.ky-stats > div > span { color: var(--ink-2); font-size: var(--t-small); line-height: 1.4; }
.ky-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.ky-split .lede { max-width: none; }
.ky-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.ky-cap { border-radius: var(--r); padding: 24px 22px 26px; background: var(--surface); display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; min-width: 0; transition: background .5s var(--ease), color .5s var(--ease); }
.ky-cap .n { font-family: var(--ky-font); font-size: 13px; color: var(--ink-3); }
.ky-cap h3 { font-size: var(--t-3); line-height: 1.15; }
.ky-cap p { color: var(--ink-2); font-size: var(--t-small); transition: color .5s; }
.ky-cap:hover { background: var(--ky-red); color: #fff; }
.ky-cap:hover p, .ky-cap:hover .n { color: rgba(255,255,255,.78); }
.ky-mq { overflow: hidden; border-block: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ky-mq-track { display: flex; width: max-content; animation: kyMq 38s linear infinite; }
.ky-mq-track span { font-family: var(--ky-font); font-size: clamp(22px, 3vw, 40px); padding: 18px 0; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); padding-right: clamp(18px, 2.4vw, 34px); color: var(--ink); }
.ky-mq-track span::after { content: ""; width: 12px; height: 12px; background: var(--ky-red); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
@keyframes kyMq { to { transform: translateX(-50%); } }
.ky-src { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }

/* Brief */
.ky-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ky-brief > div { border-radius: var(--r); padding: clamp(26px, 3.4vw, 48px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.ky-brief .q { background: var(--surface); }
.ky-brief .a { background: var(--ky-ink); color: #f3f1f0; }
.ky-brief .a .label { color: rgba(243,241,240,.6); }
.ky-brief h3 { font-size: var(--t-2); }
.ky-brief p { color: var(--ink-2); }
.ky-brief .a p, .ky-brief .a li { color: rgba(243,241,240,.75); }
.ky-brief ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ky-brief li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; }
.ky-brief li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; background: var(--ky-grad); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }

/* Mark */
.ky-mark { background: var(--ky-red); color: #fff; overflow: hidden; position: relative; }
.ky-mark .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(64px, 9vw, 128px); }
.ky-mark .label { color: rgba(255,255,255,.7); }
.ky-mark h2 { font-size: var(--t-1); max-width: 13ch; }
.ky-mark p { color: rgba(255,255,255,.8); max-width: 46ch; margin-top: 22px; }
.ky-mark-art { position: relative; aspect-ratio: 130 / 172; max-width: 360px; width: 100%; justify-self: center; }
.ky-mark-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ky-mark-art .sq { fill: #fff; }
.ky-mark-art .bar, .ky-mark-art .spark { fill: var(--ky-red); }
.ky-mark-art .bar { clip-path: inset(calc((1 - var(--a, 1)) * 100%) 0 0 0); }
.ky-mark-art .spark { clip-path: polygon(0 0, calc(var(--b, 1) * 140%) 0, calc(var(--b, 1) * 100%) 100%, 0 100%); }

.ky-lockup { border-radius: var(--r); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.ky-lockup svg { display: block; width: 100%; height: auto; }
.ky-lockup .cons line { stroke: #6d6e71; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ky-lockup .cons rect { fill: #bcbec0; }
.ky-lockup .cons { opacity: 0; transition: opacity .6s var(--ease); }
.ky-lockup.show .cons { opacity: 1; }
.ky-lockup .tools { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.ky-tog { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.ky-tog button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.ky-tog button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ky-lockup.on-dark { background: var(--ky-ink); border-color: var(--ky-ink); }
.ky-lockup .lg-sq, .ky-lockup .lg-l { transition: fill .6s var(--ease); }
.ky-lockup.on-dark .lg-l, .ky-lockup.on-dark .lg-sq { fill: #fff; }
.ky-lockup.on-dark .lg-w { fill: var(--ky-red); }
.ky-lockup.on-red { background: var(--ky-red); border-color: var(--ky-red); }
.ky-lockup.on-red .lg-l, .ky-lockup.on-red .lg-sq { fill: #fff; }
.ky-lockup.on-red .lg-w { fill: var(--ky-red); }
.ky-lockup .lg-w { transition: fill .6s var(--ease); }

/* Gradient map */
.ky-gm { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ky-grad); color: #fff; min-height: clamp(260px, 34vw, 460px); display: grid; align-content: space-between; padding: clamp(20px, 3vw, 40px); }
.ky-gm .top { display: flex; justify-content: space-between; gap: 16px; font-family: var(--ky-font); font-size: clamp(15px, 1.4vw, 20px); }
.ky-gm .top span:first-child { color: #ac212f; mix-blend-mode: normal; }
.ky-gm .axis { position: relative; height: 90px; }
.ky-gm .axis::before { content: ""; position: absolute; left: 3%; right: 3%; top: 12px; height: 1.5px; background: #fff; transform: scaleX(var(--p, 1)); transform-origin: 100% 50%; }
.ky-gm .stop { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-family: var(--ky-font); font-size: clamp(12.5px, 1.2vw, 17px); line-height: 1.25; display: grid; justify-items: center; gap: 12px; }
.ky-gm .stop::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #fff; margin-top: 7px; box-shadow: 0 0 0 6px rgba(255,255,255,.2); }
.ky-gm .stop.s1 { left: 6%; color: #ac212f; } .ky-gm .stop.s1::before { background: #ac212f; box-shadow: 0 0 0 6px rgba(172,33,47,.15); }
.ky-gm .stop.s2 { left: 50%; } .ky-gm .stop.s3 { left: 92%; }
.ky-gm.flip { background: linear-gradient(270deg, #ac212f 0%, #b92b22 22%, #db5d04 58%, #e0823f 78%, #f3c7a6 91%, #fff 100%); }

/* Palette */
.ky-pal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 0; border-radius: var(--r); overflow: hidden; }
.ky-sw { border: 0; text-align: left; cursor: pointer; padding: clamp(14px, 2vw, 26px); display: grid; align-content: space-between; color: #fff; font-family: var(--ky-font); font-size: clamp(13.5px, 1.25vw, 18px); position: relative; transition: filter .3s; min-width: 0; }
.ky-sw .r { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ky-sw .r small { opacity: .8; font-size: .9em; }
.ky-sw .ok { position: absolute; inset: auto 0 0; text-align: center; font-size: 12.5px; padding: 6px; background: rgba(0,0,0,.25); transform: translateY(100%); transition: transform .4s var(--ease); }
.ky-sw.copied .ok { transform: none; }
.ky-sw:hover { filter: brightness(1.06); }
.ky-sw.w1 { grid-column: span 4; background: #ac212f; } .ky-sw.w2 { grid-column: span 2; background: #34c969; }
.ky-sw.w3 { grid-column: span 2; background: #db5d04; } .ky-sw.w4 { grid-column: span 2; background: #fff; color: #111; box-shadow: inset 0 0 0 1px var(--line); } .ky-sw.w5 { grid-column: span 2; background: linear-gradient(90deg, #1d1c1e, #000); }

/* Type */
.ky-type { border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--ky-red); color: #fff; font-family: var(--ky-font); }
.ky-type .side { background: #000; padding: clamp(22px, 3vw, 44px); display: grid; gap: 22px; align-content: space-between; min-width: 0; }
.ky-type .name { font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -.02em; }
.ky-type .glyphs { font-size: clamp(16px, 1.6vw, 24px); line-height: 1.45; opacity: .85; overflow-wrap: anywhere; }
.ky-type .main { padding: clamp(22px, 3vw, 44px); display: grid; gap: 22px; align-content: space-between; min-width: 0; }
.ky-type .aa { font-size: clamp(140px, 22vw, 340px); line-height: .82; letter-spacing: -.05em; font-variation-settings: 'wght' var(--wt, 400); font-weight: var(--wt, 400); transition: font-variation-settings .5s var(--ease); }
.ky-type .spec { font-size: clamp(24px, 3vw, 46px); line-height: 1.1; letter-spacing: -.02em; font-weight: var(--wt, 400); outline: none; border-bottom: 1px dashed rgba(255,255,255,.4); padding-bottom: 8px; overflow-wrap: anywhere; }
.ky-wts { display: flex; flex-wrap: wrap; gap: 6px; }
.ky-wts button { font: inherit; font-size: 14px; border: 1px solid rgba(255,255,255,.45); background: none; color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ky-wts button[aria-pressed="true"] { background: #fff; color: var(--ky-red); border-color: #fff; }
.ky-range { width: 100%; accent-color: #fff; }

/* Icons */
.ky-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ky-ic { aspect-ratio: 1; border-radius: var(--r); background: #000; display: grid; place-items: center; position: relative; overflow: hidden; min-width: 0; }
.ky-ic svg { width: 46%; height: 46%; overflow: visible; }
.ky-ic .r { fill: #c8243a; transition: transform .6s var(--ease); }
.ky-ic .w { fill: #fff; }
.ky-ic:hover .r { transform: translate(-6%, 6%); }
.ky-ic span { position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-stretch: 75%; color: rgba(255,255,255,.55); }

/* Expressions */
.ky-exp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ky-x { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; position: relative; color: #fff; font-family: var(--ky-font); padding: clamp(18px, 2.4vw, 30px); display: grid; align-content: end; min-width: 0; }
.ky-x h3 { font-family: var(--ky-font); font-stretch: 100%; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -.02em; position: relative; }
.ky-x p { font-size: 13.5px; opacity: .85; margin-top: 10px; position: relative; max-width: 30ch; }
.ky-x.ember { background: url(../img/kaynes/ember.webp) center / cover; }
.ky-x.ember svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ky-x.ember .ln { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.ky-x.grid { background-color: #34c969; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 25% 16.66%; background-position: -1px -1px; align-content: start; }
.ky-x.grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #34c969 0 3px, transparent 3.5px) -1px -1px / 25% 16.66%; opacity: 0; }
.ky-x.orb { background: var(--ky-red); place-items: center; align-content: center; text-align: center; }
.ky-x.orb .o { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #b5262a 0%, #db5d04 38%, #e07a2c 62%, #f6d2b5 86%, #fff 100%); box-shadow: 0 0 0 2px #fff; animation: kySpin 14s linear infinite; }
@keyframes kySpin { to { rotate: 360deg; } }
.ky-x.orb .c { position: absolute; width: 16%; aspect-ratio: 1; border: 0 solid #fff; }
.ky-x.orb .c1 { right: 7%; top: 6%; border-top-width: 4px; border-right-width: 4px; }
.ky-x.orb .c2 { left: 7%; bottom: 6%; border-bottom-width: 4px; border-left-width: 4px; }
.ky-x.orb h3 { z-index: 1; }

/* Lookbook strip */
.ky-book { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.ky-book button { flex: 0 0 min(78vw, 560px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; scroll-snap-align: start; background: #111; position: relative; }
.ky-book img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ky-book button:hover img { transform: scale(1.04); }
.ky-book small { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 12px; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 999px; }
.ky-book-nav { display: flex; gap: 8px; }
.ky-book-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.ky-book-nav svg { width: 16px; height: 16px; }
.ky-lb { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,6,.92); display: grid; place-items: center; padding: 16px; }
.ky-lb img { max-width: min(100%, 1600px); max-height: 86vh; border-radius: 10px; }
.ky-lb .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 22px; cursor: pointer; }
.ky-lb .pv, .ky-lb .nx { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font-size: 20px; }
.ky-lb .pv { left: 14px; } .ky-lb .nx { right: 14px; }
.ky-lb p { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); color: rgba(255,255,255,.7); font-size: 13px; }

/* Deliverables + next */
.ky-del { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.ky-del li { list-style: none; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ky-del ol { display: contents; }
.ky-del span { font-family: var(--ky-font); color: var(--ky-red); font-size: 14px; }
.ky-del b { font-weight: 400; font-size: var(--t-3); line-height: 1.25; display: block; }
.ky-del p { color: var(--ink-2); font-size: var(--t-small); margin-top: 4px; }

/* Work tile cover */
.tile a.cover-link { display: contents; }
.tile .cover.ky-cover { background: #160406; isolation: isolate; }
.ky-cover .ky-flow { inset: -18%; }
.ky-cover .mk { position: absolute; inset: 0; display: grid; place-items: center; }
.ky-cover .mk svg { position: static; width: 22%; height: auto; filter: drop-shadow(0 0 30px rgba(255, 80, 90, .4)); transition: transform .8s var(--ease); }
.tile:hover .ky-cover .mk svg { transform: scale(1.08); }
.ky-cover .cap { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; color: rgba(255,255,255,.8); font-family: var(--ky-font); font-size: 13.5px; }
.tile h3 small { display: block; font-size: 14.5px; font-stretch: 100%; color: var(--ink-2); margin-top: 6px; letter-spacing: 0; line-height: 1.4; }

@media (max-width: 900px) {
  .ky-hero { min-height: 0; }
  .ky-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .ky-hero-mark { grid-row: 2; width: min(46%, 200px); justify-self: start; }
  .ky-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ky-meta div:nth-child(3) { border-left: 0; padding-left: 0; }
    .ky-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ky-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ky-split, .ky-brief, .ky-mark .wrap, .ky-type { grid-template-columns: minmax(0, 1fr); }
  .ky-mark-art { max-width: 200px; justify-self: start; }
  .ky-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ky-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ky-exp { grid-template-columns: minmax(0, 1fr); }
  .ky-x { aspect-ratio: 4 / 3; }
  .ky-del { grid-template-columns: minmax(0, 1fr); }
  .ky-pal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .ky-sw.w1 { grid-column: span 2; } .ky-sw.w2, .ky-sw.w3, .ky-sw.w4 { grid-column: span 1; } .ky-sw.w5 { grid-column: span 1; }
  .ky-gm .stop { font-size: 11.5px; }
  }
@media (max-width: 520px) {
  .ky-caps { grid-template-columns: minmax(0, 1fr); }
  .ky-lockup .tools { position: static; padding: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ky-flow, .ky-mq-track, .ky-x.orb .o, .ky-hero-mark .bar, .ky-hero-mark .spark { animation: none; }
  .ky-in { opacity: 1; transform: none; transition: none; }
  .ky-screen { transform: none; }
}

