/* ═══════════════════════════════════════════════════════════════
   WHOAMI — home.css
   concept, design & code by ghostly.grl ♥
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════ 01 · hero ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 62px var(--pad) var(--pad);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 30vw);
  grid-template-rows: auto 1fr;
  column-gap: 3vw;
  overflow: hidden;
  transition: background .1s;
}
.hero__bar {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px;
  padding: 8px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.hero__bar b { font-weight: 700; }
.hero__t { align-self: end; font-size: clamp(120px, 30vh, 360px); margin: 3vh 0 -.04em -.03em; }
.hl { display: block; overflow: hidden; padding-top: .04em; }
.hl > span { display: inline-block; will-change: transform; }
.hl--2 { padding-left: 1.1em; position: relative; }
.hl--3 { padding-left: .45em; }
.hero__tm { position: relative; top: -2.6em; font-size: 14px; font-weight: 700; margin-left: 6px; }
.hero__side { align-self: end; display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; transition: opacity .3s; }
.hero__fig { border: 1.5px solid var(--ink); background: var(--paper); }
.hero__cat { font-size: min(.62vw, 9px); padding: 16px 0 6px; width: max-content; margin: 0 auto; }
.hero__fig figcaption { display: flex; gap: 10px; padding: 7px 10px; border-top: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); }
.hero__fig figcaption b { color: var(--pink); }
.hero__lede { font: 400 21px/1.2 var(--f-serif); }
.hero__lede em { color: var(--pink); }
.hero__go { align-self: flex-start; }
.hero__fine { color: var(--grey); max-width: 30ch; }

/* the scan */
.scan {
  position: absolute; right: var(--pad); bottom: var(--pad); z-index: 3;
  width: min(560px, calc(100vw - var(--pad) * 2));
  background: var(--ink); color: #d6d3cc;
  padding: 16px 18px 18px;
  box-shadow: 10px 10px 0 var(--pink);
  visibility: hidden; opacity: 0; transform: translateY(20px);
  transition: opacity .3s, transform .5s var(--ease), visibility 0s .5s;
}
.hero.is-scanning .scan { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--ease); }
.hero.is-scanning .hero__side { opacity: 0; pointer-events: none; }
.scan__head { display: flex; justify-content: space-between; font-size: 12px; color: #fff; }
.scan__pc { color: var(--pink); font-weight: 700; }
.scan__bar { height: 14px; margin: 10px 0 12px; border: 1px solid #555; padding: 2px; }
.scan__bar i { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 10px); }
.scan__log { text-transform: none; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; height: 15.5em; overflow: hidden; }
.scan__log b { color: #fff; }
.scan__log em { font-style: normal; color: #19d36a; }
.scan__log u { text-decoration: none; color: var(--pink); font-weight: 700; }

/* after: broken */
.hero__after {
  position: absolute; inset: 62px var(--pad) var(--pad);
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto 1fr auto auto; column-gap: 3vw;
  visibility: hidden; pointer-events: none;
}
.hero.is-broken { background: var(--pink); }
.hero.is-broken .hero__after { visibility: visible; pointer-events: auto; }
.hero.is-broken .hero__bar { border-color: var(--ink); }
.hero.is-broken .hero__side, .hero.is-broken .scan { opacity: 0; visibility: hidden; }
.hero__found { grid-column: 1; grid-row: 1; font-size: clamp(64px, 9.4vw, 170px); margin-top: 6vh; }
.hero__found span { display: block; }
.hero__big { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: center; }
.hero__bigcat { font-size: min(.78vw, 1.75vh); }
.hero__say { grid-column: 1; grid-row: 2; align-self: end; font: italic 400 clamp(30px, 3.6vw, 64px)/1 var(--f-serif); max-width: 13ch; min-height: 2em; }
.hero__threat { grid-column: 1; grid-row: 3; margin-top: 22px; padding: 8px 10px; background: var(--ink); color: var(--paper); justify-self: start; }
.hero__threat b { color: var(--pink); }
.hero__threat em { font-style: normal; color: var(--hot); }
.hero__down { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 18px; font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--ink); opacity: 0; }
.hero__found, .hero__say, .hero__threat, .hero__big { opacity: 0; }
.hero.is-broken .hero__bar .hero__ok .dot { background: var(--ink); }

/* ═══════════════ 02 · know ═══════════════ */
.know { position: relative; background: var(--paper); }
.know__pin {
  height: 100vh; height: 100svh;
  padding: 90px var(--pad) var(--pad);
  display: grid; grid-template-columns: 1fr minmax(260px, 24vw); grid-template-rows: auto 1fr; column-gap: 4vw;
  overflow: hidden;
}
.know__t { grid-column: 1; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.05; font-weight: 400; letter-spacing: -.01em; }
.know__list { grid-column: 1; align-self: end; display: flex; flex-direction: column; gap: .32em; font-size: clamp(17px, 1.9vw, 32px); line-height: 1.15; }
.know__list li { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .35em; opacity: .14; transition: opacity .4s; }
.know__list li.is-on { opacity: 1; }
.bar { display: inline-block; height: 1.05em; background: var(--ink); vertical-align: middle; transform: rotate(var(--r, 0deg)); }
.rd { position: relative; display: inline-block; white-space: nowrap; }
.rd::after { content: ''; position: absolute; inset: -.04em -.12em; background: var(--ink); transform-origin: 100% 50%; transform: scaleX(var(--k, 1)); }
.rd > span { color: var(--ink); }
.rd.is-hot > span { background: var(--pink); padding: 0 .12em; }
.rd--t { min-width: 6.4em; }
.know__side { grid-column: 2; grid-row: 1 / 3; align-self: end; display: flex; flex-direction: column; gap: 16px; }
.know__cat { font-size: min(.62vw, 8.5px); border: 1.5px solid var(--ink); padding: 14px 0 8px; text-align: center; background: var(--paper); }
.know__say { font: italic 400 clamp(22px, 2vw, 32px)/1.05 var(--f-serif); min-height: 3.2em; }
.know__n { border-top: 1.5px solid var(--ink); padding-top: 8px; }
.know__i { color: var(--pink); font-size: 18px; }

/* ═══════════════ 03 · eyes ═══════════════ */
.eyes { position: relative; padding: 18vh var(--pad) 14vh; text-align: center; overflow: hidden; background: var(--paper); }
.eyes::before { /* crumpled paper */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(118deg, transparent 30%, rgba(0,0,0,.05) 31%, transparent 40%),
    linear-gradient(64deg, transparent 52%, rgba(255,255,255,.6) 53%, transparent 62%),
    linear-gradient(160deg, transparent 18%, rgba(0,0,0,.04) 19%, transparent 30%),
    linear-gradient(32deg, transparent 70%, rgba(0,0,0,.05) 71%, transparent 80%);
}
.eyes__t { font-size: clamp(48px, 8.4vw, 150px); line-height: .92; color: var(--ink); }
.eyes__t span { display: block; }
.eyes__cat { font-size: min(1.24vw, 15px); width: max-content; margin: 7vh auto; }
.eyes__num { font-size: clamp(44px, 9.6vw, 170px); line-height: .9; color: var(--ink); white-space: nowrap; }
.eyes__num span:last-child { color: var(--pink); }
.eyes__fine { max-width: 820px; margin: 34px auto 0; font-weight: 700; font-size: 11px; line-height: 1.6; text-transform: uppercase; }
.eyes__fine b { color: var(--pink); }

/* ═══════════════ 04 · fine ═══════════════ */
.fine { position: relative; padding: 16vh var(--pad) 14vh; background: var(--paper); transition: background .1s; overflow: hidden; }
.fine__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6vh; }
.fine__t { font-size: clamp(72px, 13vw, 240px); }
.fine__t span { display: block; }
.fine__t span:last-child { padding-left: 1.2em; }
.fine__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.card { position: relative; padding: 22px 22px 26px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 8px; min-height: 190px; }
.card__ok { grid-row: 1 / 4; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: #19d36a; font: 900 26px/1 var(--f-poster); }
.card h3 { font: 900 30px/1 var(--f-poster); font-stretch: 62%; text-transform: uppercase; }
.card p { font: 400 15px/1.3 var(--f-type); max-width: 30ch; }
.card .mono { color: var(--grey); align-self: end; }
.card.is-bad .card__ok { background: var(--pink); color: var(--ink); }
.fine__foot { margin-top: 16px; }
.fine.is-broken { background: var(--pink); }
.fine.is-broken .card { background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.fine.is-broken .fine__foot { color: var(--ink); font-weight: 700; }

/* ═══════════════ 05 · scared of the cat ═══════════════ */
.scared { position: relative; background: #0f0e12; color: var(--pink); padding: 13vh var(--pad) 8vh; overflow: hidden; }
.scared::before { /* the faint grid of the flyer */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(120,140,170,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(120,140,170,.18) 1px, transparent 1px);
  background-size: 22px 22px;
}
.scared__top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 4vh; width: max-content; padding: 10px 34px; border: 1px dashed var(--pink); border-radius: 50%; text-align: center; }
.scared__top b { font-weight: 700; text-transform: uppercase; }
.scared__t { position: relative; font-size: clamp(44px, 8.6vw, 156px); text-align: center; transform: scaleY(.72); transform-origin: 50% 0; margin-bottom: -2vw; }
.scared__t span { display: block; }
.scared__stage { position: relative; height: clamp(300px, 48vw, 760px); }
.scared__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.scared__cat { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); font-size: min(.9vw, 12px); }
.scared .cat .cf, .scared .cat .ck { color: var(--pink); }
.scared .cat .ci, .scared .cat .cn, .scared .cat .ce, .scared .cat .ch { color: var(--paper); }
.scared .cat .cp { color: #0f0e12; }
.scared .cat .cm { color: var(--paper); }
.scared__row { position: relative; display: flex; justify-content: space-between; margin-top: 2vh; font: 300 clamp(26px, 4vw, 70px)/1 var(--f-poster); font-stretch: 62%; text-transform: uppercase; opacity: .9; }
.scared__row li { transition: color .2s, transform .3s var(--ease); }
.scared__row li:hover { color: var(--paper); transform: translateY(-6px); }
.scared__info { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 7vh; font-size: 12px; text-transform: uppercase; line-height: 1.5; }
.scared__info p:last-child { text-align: right; }

/* ═══════════════ 06 · files ═══════════════ */
.files { position: relative; background: var(--pink); padding: 14vh var(--pad) 12vh; display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: start; overflow: hidden; }
.files::before { /* folds of a poster */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 49.6%, rgba(0,0,0,.08) 50%, rgba(255,255,255,.12) 50.4%, transparent 51%), linear-gradient(90deg, transparent 49.7%, rgba(0,0,0,.06) 50%, transparent 50.3%);
}
.files__t { position: relative; font-size: clamp(56px, 8.8vw, 160px); font-stretch: 100%; font-weight: 600; text-transform: none; letter-spacing: -.03em; line-height: .9; }
.files__t > span { display: block; }
.files__l1 { margin-left: -.06em; }
.files__l2 small { font-size: 11px; letter-spacing: 0; vertical-align: top; margin-left: 6px; display: inline-block; max-width: 12ch; line-height: 1.2; font-weight: 400; }
.files__l3 { margin-top: .12em; text-align: right; }
.files__l3 mark { background: var(--hot); color: var(--ink); padding: 0 .12em .06em; display: inline-block; }
.term { position: relative; background: var(--ink); color: #d6d3cc; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 rgba(13,13,13,.35); margin-top: 2vh; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1d1d1d; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.term__bar i:first-child { background: var(--pink); }
.term__bar b { margin-left: auto; font-weight: 400; color: #888; }
.term__out { text-transform: none; font-size: 12px; line-height: 1.6; padding: 14px 16px; height: 17em; overflow: hidden; white-space: pre-wrap; }
.term__out b { color: var(--pink); font-weight: 700; }
.term__out em { color: #19d36a; font-style: normal; }
.term__out s { color: #6d6b66; }
.term__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 14px; }
.term__thumbs .slot { aspect-ratio: 4 / 5; background: #262626; outline-color: #555; transition: opacity .4s, filter .4s, transform .5s var(--ease); }
.term__thumbs .slot__lab { color: #888; }
.term__thumbs .slot__lab::before { color: #ccc; }
.term__thumbs figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(0,0,0,.75); color: #ccc; z-index: 2; font-size: 9px; }
.term__thumbs .slot.is-gone { opacity: .12; filter: blur(3px); transform: scale(.92) rotate(-2deg); }
.term__foot { display: flex; gap: 12px; align-items: center; padding: 0 16px 16px; }
.term__bar2 { flex: 1; height: 10px; border: 1px solid #444; padding: 2px; }
.term__bar2 i { display: block; height: 100%; width: 0; background: var(--pink); }
.term__stop { position: relative; padding: 8px 18px; background: var(--hot); color: var(--ink); font-weight: 700; font-size: 12px; z-index: 2; }
.files__speak { position: absolute; left: var(--pad); bottom: 5vh; background: var(--hot); padding: 10px 14px 12px; display: flex; flex-direction: column; transform: rotate(-1.5deg); }
.files__speak b { font: 800 clamp(30px, 3.4vw, 54px)/.9 var(--f-poster); }
.files__speak span { font: 400 13px/1.2 var(--f-poster); }

/* ═══════════════ 07 · game over ═══════════════ */
.over { background: #050505; padding: 12vh var(--pad); display: grid; place-items: center; }
.crt {
  position: relative; width: min(980px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 28px / 22px;
  background: radial-gradient(ellipse at center, #121212 0%, #050505 75%);
  box-shadow: inset 0 0 120px rgba(0,0,0,.9), 0 0 0 14px #141414, 0 0 0 15px #2a2a2a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: #e9e6df;
  text-shadow: 0 0 6px rgba(200,220,255,.55);
}
.crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.4) 0 2px, transparent 2px 4px); animation: roll 7s linear infinite; }
@keyframes roll { to { background-position: 0 100px; } }
.over__cat { font-size: min(.82vw, 10px); margin-bottom: 18px; }
.over .cat .cf, .over .cat .ck { color: #e9e6df; }
.over .cat .ce, .over .cat .cn { color: #e8b38f; }
.over .cat .ci { color: var(--pink); }
.over__t { font-size: clamp(56px, 10vw, 128px); line-height: .9; letter-spacing: .12em; background: linear-gradient(180deg, #fff 0 45%, #9fc8f0 46%, #e9e6df 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.over__sub { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.1; margin-top: 10px; }
.over__cont { font-size: clamp(22px, 2.6vw, 34px); margin-top: 20px; }
.over__n { color: var(--pink); font-weight: 400; }
.over__btns { display: flex; gap: 28px; margin-top: 10px; }
.over__btns button { font-size: clamp(22px, 2.4vw, 32px); padding: 2px 10px; }
.over__btns button:hover, .over__btns button:focus-visible { background: #e9e6df; color: #050505; text-shadow: none; outline: 0; }
.over__lives { position: absolute; top: 18px; left: 26px; font-size: 22px; }
.over__hearts { color: var(--pink); letter-spacing: 2px; }

/* ═══════════════ small screens ═══════════════ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .hero__t { font-size: clamp(110px, 38vw, 220px); }
  .hero__side { margin-top: 24px; }
  .hero__cat { font-size: 1.5vw; }
  .hero__after { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; }
  .hero.is-broken .hero__bar { visibility: hidden; }
  .hero__big { grid-column: 1; grid-row: 2; }
  .hero__bigcat { font-size: 1.5vw; }
  .hero__say { grid-row: 3; }
  .hero__threat { grid-row: 4; }
  .hero__down { grid-row: 5; }
  .know__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .know__side { grid-column: 1; grid-row: 3; flex-direction: row; align-items: end; }
  .know__cat { font-size: 1.1vw; }
  .eyes__cat { font-size: 1.2vw; }
  .fine__grid { grid-template-columns: 1fr; }
  .files { grid-template-columns: 1fr; }
  .files__speak { position: static; margin-top: 20px; }
  .scared__info { grid-template-columns: 1fr; }
  .scared__info p:last-child { text-align: left; }
}

/* ═══════════════ the title bar you can peel ═══════════════ */
.rd--t { cursor: pointer; }
.rd--t::after { transition: transform .45s var(--ease); }
.rd--t.is-peek::after { transform: scaleX(0) !important; }
.rd--t.is-peek > span { background: var(--pink); padding: 0 .1em; }
.rd--t:hover::after { transform: scaleX(var(--k, 1)) skewX(-8deg) translateX(.12em); }
.rd--t > span { display: inline-block; }
.know__list .rd { cursor: help; }
.know__list li.is-nope { animation: nope .32s steps(2) 1; }
@keyframes nope { 0%, 100% { transform: none; } 33% { transform: translateX(-6px); } 66% { transform: translateX(5px) skewX(-6deg); } }
/* your photos get their colour back while you look at them */
.term__thumbs .slot img { transition: filter .5s; }
.term__thumbs .slot:hover img { filter: none; }
