/* Abilities page and the Abilities index on Home. Strip styles live in strip.css. */
.by-update{font:400 10px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--amber);border:1px solid rgb(255 196 107 / 40%);border-radius:3px;padding:3px 5px}
.chapter{padding:clamp(80px,12vh,140px) var(--gutter);background:var(--home-gradient);border-top:1px solid rgb(241 237 230 / 12%)}
.chapter-head{max-width:1440px;margin:0 auto 40px}
.chapter-title{margin-top:12px;font:500 clamp(34px,5vw,76px)/.95 var(--f-display);letter-spacing:-.045em}
main#abilities-top{outline:none}
/* Footer sits directly in main here, not inside the Safe by Design section. */
main#abilities-top > .footer-wrap{padding:0 var(--gutter) 48px;background:var(--home-gradient)}
/* Home: the house, the establishing wide shot between the hero and Life with KIN. */
.house{position:relative;display:grid;place-items:center;height:100vh;height:100dvh;padding:96px var(--gutter) 48px;background:var(--home-gradient);color:var(--ink);outline:none}
.house-figure{display:grid;gap:14px;justify-items:center;margin:0}
.house-figure img{display:block;width:min(500px,80vw,calc(100dvh - 220px));height:auto;aspect-ratio:1;border-radius:8px}
.house-figure figcaption{font:400 10px/1.4 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:center}
/* Over the cream Hands chapter the lockup and marker need contrast. */
body.over-cream .nav::before{opacity:1}
body.over-cream #chapter-marker{color:rgb(33 30 27 / 62%)}

/* Abilities hero: the site's warm paper, the soft radial gradients, sans + script headline, chapter row. */
.abilities-hero{position:relative;min-height:100vh;min-height:100svh;display:grid;grid-template-rows:1fr auto;background:var(--home-gradient);color:var(--ink);padding:clamp(120px,16vh,180px) var(--gutter) clamp(28px,5vh,56px)}
.hero-inner{align-self:center;max-width:1440px;width:100%;margin-inline:auto}
.abilities-hero .safety-heading em{display:block;margin-top:-.03em;font:italic 340 1.08em/1.02 var(--f-accent);font-variation-settings:'opsz' 144,'SOFT' 0,'WONK' 1;letter-spacing:-.025em;font-synthesis:none;font-kerning:normal}
.abilities-hero .safety-lead{margin-top:24px}
.chapter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,32px);max-width:1440px;width:100%;margin-inline:auto}
.chapter-row a{display:grid;gap:6px;padding-top:14px;border-top:1px solid rgb(241 237 230 / 22%);color:var(--muted);text-decoration:none;
  font:400 11px/1.35 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;transition:color 160ms cubic-bezier(.23,1,.32,1),border-color 160ms cubic-bezier(.23,1,.32,1)}
.chapter-row a span{color:var(--amber)}
.chapter-row a:hover{color:var(--ink);border-top-color:var(--amber)}
.chapter-row a:focus-visible{outline:2px solid var(--amber);outline-offset:6px}
@media(max-width:640px){.chapter-row{grid-template-columns:1fr 1fr}}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* A photographic guide to the three ability chapters. Image masters stay intact. */
.abilities-hero{--hero-top:clamp(112px,12svh,156px);overflow:hidden;isolation:isolate;padding-top:var(--hero-top);row-gap:24px;background:var(--paper)}
.abilities-hero::before{content:'';position:absolute;inset:-64px 0 0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgb(0 0 0 / 68%),rgb(0 0 0 / 68%)),url('./media/abilities-studio-refined-v2.webp');background-position:center bottom;background-size:cover;background-repeat:no-repeat}
.abilities-hero .hero-inner{display:grid;grid-template-columns:1fr 1.08fr;align-items:center;gap:12px}
.abilities-hero-copy{position:relative;z-index:2;padding-block:32px}
.abilities-hero .safety-heading{font-size:clamp(36px,3.9vw,64px);letter-spacing:-.04em;text-wrap:initial}
.abilities-hero .safety-heading em{white-space:nowrap}
@media(min-width:1001px){#explore-copy[data-selection]:not([data-selection=overview]) .safety-heading{font-size:clamp(34px,5vw,76px);letter-spacing:-.045em}}   /* a chosen ability's title matches its chapter title below (Jesse, 2026-11-04) */
.abilities-hero .explore-body{margin-top:14px;color:#a89f92}
.abilities-hero .safety-lead{max-width:37ch}
.ability-portrait{position:relative;container-type:size;width:100%;height:clamp(460px,calc(100svh - var(--hero-top) - 132px),1060px);justify-self:end;isolation:isolate}
.ability-portrait::before{content:'';position:absolute;left:50%;top:97%;width:30cqh;height:1.4cqh;transform:translateX(-50%);background-image:radial-gradient(ellipse closest-side,rgb(8 6 4 / 68%),rgb(8 6 4 / 25%) 65%,transparent),radial-gradient(ellipse closest-side,rgb(8 6 4 / 68%),rgb(8 6 4 / 25%) 65%,transparent);background-size:40% 100%;background-position:left center,right center;background-repeat:no-repeat;filter:blur(2px);pointer-events:none}
.ability-portrait-image{position:absolute;left:50%;top:-.5%;height:102%;width:auto;max-width:none;transform:translateX(-50%);pointer-events:none;user-select:none}
.ability-note{--point-x:50cqw;--reach:calc(75cqw - var(--point-x));position:absolute;z-index:1;left:75%;width:max-content;max-width:34%;color:var(--ink);text-decoration:none;padding:4px 0 6px;outline-offset:7px;animation:ability-note-arrive 750ms cubic-bezier(.16,1,.3,1) both}
.ability-note::before{content:'';position:absolute;top:13px;right:calc(100% + 10px);width:calc(var(--reach) - 10px);height:1px;background:rgb(255 196 107 / 42%);transition:background 180ms ease-out}
.ability-note::after{content:'';position:absolute;left:calc(-1 * var(--reach) - 2px);top:11px;width:5px;height:5px;border-radius:50%;background:var(--amber);transition:transform 180ms ease-out}
.ability-note-title{display:block;font:500 clamp(12px,1.1vw,16px)/1.3 var(--f-display);letter-spacing:-.01em;color:var(--amber)}
.ability-note-detail{display:block;margin-top:8px;font:400 clamp(11px,.9vw,13px)/1.5 var(--f-sans);color:#d1c5b6}
.ability-note-eyes{top:calc(8.8% - 13px);animation-delay:80ms}
.ability-note-hands{--point-x:calc(50cqw + 14cqh);top:calc(53.3% - 13px);animation-delay:220ms}
.ability-note-body{--point-x:calc(50cqw + 7.7cqh);top:calc(94.4% - 13px);animation-delay:360ms}
.ability-note-body::after{outline:1px solid rgb(64 39 19 / 65%)}
.ability-note:hover::before,.ability-note.is-highlighted::before{background:var(--amber)}
.ability-note:hover::after,.ability-note.is-highlighted::after{transform:scale(1.6)}
.ability-note:focus-visible{outline:1px solid var(--amber)}
.abilities-hero .chapter-row{position:relative;z-index:2}
.abilities-hero .chapter-row a{color:#d8cec1}
@keyframes ability-note-arrive{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px) and (min-width:761px){
  .abilities-hero .safety-heading{font-size:clamp(30px,3.9vw,40px)}
  .abilities-hero .safety-lead{max-width:29ch}
}
@media(max-width:760px){
  .abilities-hero{padding-top:112px;padding-bottom:32px;row-gap:36px}
  .abilities-hero::before{top:-32px;background-size:auto 175%;background-position:62% bottom}
  .abilities-hero .hero-inner{grid-template-columns:1fr;gap:8px}
  .abilities-hero-copy{padding-block:0}
  .abilities-hero .safety-heading{font-size:clamp(30px,8.65vw,44px);letter-spacing:-.04em}
  .abilities-hero .safety-heading em{font-size:1.16em}
  .abilities-hero .safety-lead{max-width:37ch;font-size:14px;line-height:1.65;margin-top:18px}
  .ability-portrait{width:calc(100% + 40px);max-width:560px;height:min(110vw,616px);justify-self:center;margin-block:16px 10px}
  .ability-portrait::before{left:30%}
  .ability-portrait-image{left:30%}
  .ability-note{left:75%;max-width:24%;--point-x:30cqw}
  .ability-note-title{font-size:13px}
  .ability-note-detail{font-size:11px;line-height:1.5;margin-top:6px}
  .ability-note-hands{--point-x:calc(30cqw + 14cqh)}
  .ability-note-body{--point-x:calc(30cqw + 7.7cqh)}
  .abilities-hero .chapter-row{margin-top:48px}
}
@media(prefers-reduced-motion:reduce){.ability-note{animation:none}.ability-note::before,.ability-note::after{transition:none}}
/* Home: the Abilities teaser, a simple visual: headline, five image tiles, one link. */
.ability-index{position:relative;min-height:100svh;display:grid;align-items:center;background:var(--home-gradient);color:var(--ink);padding:clamp(96px,12vh,140px) var(--gutter) clamp(24px,5vh,56px);outline:none}
.ability-teaser{width:100%;max-width:1440px;margin-inline:auto;display:grid;gap:clamp(24px,5vh,56px)}
.teaser-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px}
.ability-index .safety-heading em{display:block;margin-top:-.03em;font:italic 340 1.08em/1.02 var(--f-accent);font-variation-settings:'opsz' 144,'SOFT' 0,'WONK' 1;letter-spacing:-.025em;font-synthesis:none;font-kerning:normal}
.ability-index .safety-lead{margin-top:20px}
.teaser-link{flex:none;display:inline-flex;gap:10px;align-items:center;padding:14px 22px;border:1px solid var(--amber);border-radius:999px;color:var(--amber);text-decoration:none;
  font:500 12px/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;transition:background 160ms cubic-bezier(.23,1,.32,1),color 160ms cubic-bezier(.23,1,.32,1)}
.teaser-link:hover{background:var(--amber);color:#211e1b}
.teaser-link:focus-visible{outline:2px solid var(--amber);outline-offset:4px}
.ability-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.4vw,20px)}
.ability-tile{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;border-radius:8px;background:#14120f;color:var(--ink);text-decoration:none}
.ability-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 400ms cubic-bezier(.23,1,.32,1)}
.ability-tile::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,rgb(8 7 6 / 78%))}
.tile-name{position:absolute;z-index:1;left:14px;right:14px;bottom:14px;display:flex;gap:10px;align-items:baseline;font:500 clamp(15px,1.4vw,20px)/1.2 var(--f-display);letter-spacing:-.03em}
.tile-n{font:400 10px/1 var(--f-mono);letter-spacing:.1em;color:var(--amber)}
.ability-tile:focus-visible{outline:2px solid var(--amber);outline-offset:4px}
/* Second sight tile: KIN's thermal view, in code. The scene is a 16:9 box scaled up and centred on the pan, using the Eyes
   thermal beat's own target box [43.5, 49.5, 15, 9] (% of the photo), so the glow, box and label stay aligned. */
.ability-tile{container-type:size}
.tile-scene{--z:2.3;--bx:43.5%;--by:49.5%;--bw:15%;--bh:9%;position:absolute;left:50%;top:50%;height:calc(100cqh * var(--z));aspect-ratio:16/9;
  transform:translate(-51%,-54%);transform-origin:51% 54%;transition:transform 400ms cubic-bezier(.23,1,.32,1)}
.tile-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;filter:grayscale(1) brightness(.85) contrast(1.35);transition:none}
.tile-glow{position:absolute;left:calc(var(--bx) - var(--bw) * .4);top:calc(var(--by) - var(--bh) * .4);width:calc(var(--bw) * 1.8);height:calc(var(--bh) * 1.8);border-radius:50%;
  background:radial-gradient(closest-side,rgb(255 255 255 / 95%),rgb(255 196 107 / 70%) 45%,rgb(255 120 30 / 25%) 75%,transparent);mix-blend-mode:screen}
.tile-box{position:absolute;left:var(--bx);top:var(--by);width:var(--bw);height:var(--bh);border:1px solid var(--amber);box-shadow:0 0 12px rgb(255 196 107 / 35%)}
.tile-readout{position:absolute;left:var(--bx);top:var(--by);transform:translateY(calc(-100% - 6px));white-space:nowrap;font:400 9px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--amber)}
@media(hover:hover) and (pointer:fine){.ability-tile:hover img{transform:scale(1.04)}.ability-tile:hover .tile-scene img{transform:none}.ability-tile:hover .tile-scene{transform:translate(-51%,-54%) scale(1.04)}}   /* same 1.04 lift as the other tiles, held on the pan */
@media(max-width:760px){
  .ability-index{padding-top:92px}
  .teaser-head{flex-direction:column;align-items:flex-start;gap:20px}
  .ability-index .safety-lead{display:none}
  .ability-index .safety-heading em{font-size:1.16em}
  .ability-tiles{grid-template-columns:1fr 1fr}
  .ability-tile{aspect-ratio:1}
}
/* Short phone viewports keep enough room beneath the two thumbnail rows. */
@media(max-width:760px) and (max-height:640px){.ability-tile{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){.ability-tile img{transition:none}}
