/* designkyi — Mike Fernandez */
:root {
  --paper: #f4f3ef;
  --ink: #0f0f10;
  --mute: #74736e;
  --line: rgba(15, 15, 16, .12);
  --night: #15133a;
  --green: #0d5537;
  --road: #0c0d0e;
  --gut: clamp(16px, 3.2vw, 48px);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[data-group] { cursor: zoom-in; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gut);
  color: #fff; mix-blend-mode: difference;
}
.nav__brand { font-weight: 600; letter-spacing: -.03em; font-size: 19px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); align-items: center; font-size: 15px; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  padding: 88px var(--gut) 0;
}
.hero__note { position: absolute; top: 92px; margin: 0; max-width: 22ch; font-size: 15px; line-height: 1.35; color: var(--mute); }
.hero__note--l { left: var(--gut); }
.hero__note--r { right: var(--gut); text-align: right; line-height: 1.6; color: var(--ink); }

.flip { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.flip__frame {
  position: relative; display: block;
  width: clamp(200px, min(23vw, 40vh), 360px); aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: #e6e4de;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.35);
  transition: transform .6s var(--ease);
}
.flip:hover .flip__frame { transform: scale(1.025); }
.flip__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .35s ease, transform 1.4s var(--ease);
}
.flip__frame img.contain { object-fit: contain; padding: 8% 0; background: var(--green); }
.flip__frame img.is-on { opacity: 1; transform: scale(1); }
.flip__label { color: var(--mute); display: flex; gap: 8px; }
.flip__name { color: var(--ink); }

.wordmark {
  margin: 0; width: 100%; text-align: center; white-space: nowrap;
  font-weight: 600; letter-spacing: -.065em; line-height: .78;
  font-size: 20vw; padding-bottom: .2em; margin-top: 3vh; transform: translateX(-.02em);
}

/* ---------- index ---------- */
.index { padding: clamp(80px, 12vw, 180px) var(--gut) clamp(60px, 8vw, 120px); }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__list a {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line);
  transition: color .3s, padding .5s var(--ease);
}
.index__t { font-size: clamp(34px, 6.4vw, 104px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.index__d { color: var(--mute); font-size: 15px; text-align: right; }
.index__list .mono { color: var(--mute); }
@media (hover: hover) and (pointer: fine) {
  .index__list:hover a { color: #b9b7b0; }
  .index__list a:hover { color: var(--ink); padding-left: 12px; }
}
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 260px; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .25s ease, scale .3s var(--ease);
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- chase verde ---------- */
.drive { position: relative; background: var(--road); color: #f2f2f0; }
.drive__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.drive__track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); will-change: transform; }
.drive__intro { flex: 0 0 auto; width: min(560px, 86vw); padding-right: 4vw; }
.drive__title { margin: 0; font-size: clamp(60px, 9vw, 150px); font-weight: 600; letter-spacing: -.06em; line-height: .86; }
.drive__big { margin: 28px 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 5vw, 84px); line-height: 1; color: #ff3b7a; }
.drive__copy { margin: 0; max-width: 40ch; color: #a7a8aa; }
.drive__copy strong { color: #fff; font-weight: 500; }
.drive__tag { margin-top: 24px; color: #6fd39b; }
.shot { flex: 0 0 auto; height: min(68vh, 44vw); aspect-ratio: 1920 / 1108; border-radius: 6px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.hud { position: absolute; right: var(--gut); bottom: 28px; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.hud__speed { font-size: 44px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.hud__unit { color: #ff3b7a; }

/* ---------- emoorm ---------- */
.app {
  background: var(--green); color: #fff; overflow: hidden;
  padding: clamp(90px, 12vw, 170px) var(--gut) clamp(70px, 9vw, 130px);
  display: grid; justify-items: center; text-align: center;
}
.app__title { margin: 0; font-size: clamp(64px, 13vw, 220px); font-weight: 600; letter-spacing: -.065em; line-height: .82; }
.app__sub { max-width: 44ch; margin: 28px 0 0; color: rgba(255,255,255,.74); }
.app__sub a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.fan { position: relative; width: 100%; height: clamp(380px, 46vw, 680px); margin-top: clamp(40px, 6vw, 80px); }
.fan img {
  position: absolute; left: 50%; top: 0; height: 100%; width: auto;
  transform: translate3d(-50%, 0, 0);
  z-index: calc(10 - var(--i) * var(--i));
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.28));
  will-change: transform; backface-visibility: hidden; transform-origin: 50% 85%;
}
.app__meta { display: flex; gap: 28px; margin: clamp(36px, 5vw, 64px) 0 0; color: rgba(255,255,255,.7); }

/* ---------- websites ---------- */
.web { padding: clamp(80px, 11vw, 160px) var(--gut); }
.site {
  display: grid; grid-template-columns: 1fr minmax(240px, 30%); gap: 8px 32px; align-items: end;
  padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line);
}
.site:last-child { border-bottom: 1px solid var(--line); }
.site__name {
  grid-row: span 2; font-size: clamp(34px, 5.4vw, 112px); white-space: nowrap; font-weight: 600; letter-spacing: -.055em; line-height: .9;
  overflow-wrap: anywhere; transition: transform .6s var(--ease);
}
.site__name i { font-style: normal; color: #b9b7b0; transition: color .4s; }
.site:hover .site__name { transform: translateX(10px); }
.site:hover .site__name i { color: var(--ink); }
.site__stat { font-size: 20px; letter-spacing: -.01em; }
.site__stat b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 4.4vw, 72px); line-height: 1; display: block; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.site__note { color: var(--mute); font-size: 15px; max-width: 34ch; }

/* ---------- graphics ---------- */
.gfx {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px);
  padding: clamp(40px, 6vw, 100px) var(--gut) clamp(90px, 12vw, 180px); align-items: start;
}
.gfx figure { overflow: hidden; border-radius: 4px; }
.gfx img { width: 100%; transition: transform 1.2s var(--ease); }
.gfx figure:hover img { transform: scale(1.03); }
.gfx__a { grid-column: 1 / 6; margin-top: 18vw; }
.gfx__b { grid-column: 6 / 13; }
.gfx__say { grid-column: 1 / 6; grid-row: 2; align-self: center; margin: 0; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.gfx__say em { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.gfx__c { grid-column: 7 / 11; grid-row: 2; }
.gfx__d { grid-column: 3 / 9; grid-row: 3; }

/* ---------- art ---------- */
.art { background: var(--night); color: #efeaff; padding: clamp(90px, 11vw, 160px) 0 clamp(70px, 9vw, 130px); overflow: hidden; }
.art__title { margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(80px, 17vw, 300px); line-height: .8; letter-spacing: -.02em; }
.art__sub { margin: 24px auto 0; text-align: center; width: min(40ch, calc(100% - 2 * var(--gut))); color: rgba(239,234,255,.6); }
.strip {
  display: flex; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 6vw, 80px);
  padding: 0 var(--gut) 8px; overflow-x: auto; scrollbar-width: none; cursor: grab;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; }
.strip.is-drag img { pointer-events: none; }
.strip img { flex: 0 0 auto; height: clamp(360px, 64vh, 720px); width: auto; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.socials { list-style: none; margin: clamp(48px, 7vw, 96px) auto 0; padding: 0 var(--gut); display: flex; justify-content: center; gap: clamp(24px, 6vw, 96px); flex-wrap: wrap; }
.socials a { display: grid; justify-items: center; gap: 6px; }
.socials__n { font-size: clamp(36px, 4.4vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.socials__n:empty { display: none; }
.socials__p { color: rgba(239,234,255,.6); transition: color .3s; }
.socials a:hover .socials__p { color: #fff; }
.socials.no-counts .socials__p { font-size: 14px; color: #efeaff; border-bottom: 1px solid rgba(239,234,255,.35); padding-bottom: 4px; }

/* ---------- photo ---------- */
.photo__full { position: relative; height: 100svh; overflow: hidden; }
.photo__full img { width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--py, 0) * -1px)); will-change: transform; }
.photo__full figcaption {
  position: absolute; left: var(--gut); bottom: clamp(24px, 5vw, 64px); color: #fff;
  font-size: clamp(30px, 4.2vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: .98;
  text-shadow: 0 2px 30px rgba(0,0,0,.18);
}
.photo__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); padding: clamp(14px, 2vw, 28px) var(--gut) 0; }
.photo__row figure { overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; }
.photo__row figure:nth-child(2) { margin-top: 12vw; }
.photo__row figure:nth-child(3) { margin-top: 5vw; }
.photo__row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo__row figure:hover img { transform: scale(1.04); }

/* ---------- about ---------- */
.about { padding: clamp(110px, 14vw, 220px) var(--gut) clamp(80px, 10vw, 150px); }
.about__lede { margin: 0; max-width: 23ch; font-size: clamp(32px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.about__lede strong { font-weight: 600; }
.about__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(56px, 8vw, 120px) 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.about__facts dt { color: var(--mute); margin-bottom: 6px; }
.about__facts dd { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.tools { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(90px, 12vw, 170px) var(--gut) 28px; }
.contact__big {
  display: block; text-align: center; white-space: nowrap;
  font-size: 18vw; font-weight: 600; letter-spacing: -.065em; line-height: .85;
  transition: color .4s;
}
.contact__big:hover { color: #ff3b7a; }
.contact__row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(60px, 9vw, 130px); padding-top: 20px; border-top: 1px solid rgba(244,243,239,.16); font-size: 15px; }
.contact__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__row .mono { color: #8b8a85; }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,11,.96); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb__x { position: absolute; top: 20px; right: var(--gut); }
.lb__p, .lb__n { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; padding: 20px; opacity: .7; }
.lb__p:hover, .lb__n:hover { opacity: 1; }
.lb__p { left: 4px; } .lb__n { right: 4px; }
.lb__c { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #9a9a9a; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .gfx__a { grid-column: 1 / 7; margin-top: 10vw; }
  .gfx__b { grid-column: 7 / 13; }
  .gfx__say { grid-column: 1 / 13; grid-row: auto; margin: 3vw 0; max-width: 22ch; }
  .gfx__c { grid-column: 1 / 7; grid-row: auto; }
  .gfx__d { grid-column: 7 / 13; grid-row: auto; margin-top: 14vw; }
}

/* ---------- phones: no pinning, swipeable rows ---------- */
@media (max-width: 820px) {
  .hero__note { font-size: 13px; top: 74px; }
  .hero__note--l { max-width: 18ch; }
  .flip__frame { width: min(62vw, 300px); }
  .index__list a { grid-template-columns: 42px 1fr; }
  .index__d { grid-column: 2; text-align: left; font-size: 13px; margin-top: -4px; }
  .peek { display: none; }

  .drive { padding: 90px 0 70px; }
  .drive__pin { position: static; height: auto; display: block; overflow: visible; }
  .drive__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; transform: none !important; padding-bottom: 4px; align-items: stretch; }
  .drive__track::-webkit-scrollbar { display: none; }
  .drive__intro { width: 84vw; scroll-snap-align: start; padding-right: 0; }
  .shot { height: auto; width: 84vw; align-self: center; scroll-snap-align: center; }
  .hud { display: none; }

  .fan { display: flex; gap: 14px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 0 var(--gut); }
  .fan::-webkit-scrollbar { display: none; }
  .fan img { position: static; transform: none !important; will-change: auto; height: 70vh; max-height: 560px; flex: 0 0 auto; scroll-snap-align: center; }

  .site { grid-template-columns: 1fr; }
  .site__name { grid-row: auto; font-size: 8.6vw; margin-bottom: 18px; }

  .gfx { grid-template-columns: 1fr; }
  .gfx figure, .gfx__say { grid-column: 1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .gfx__a, .gfx__c { width: 82%; }
  .gfx__b, .gfx__d { width: 82%; justify-self: end; }

  .strip img { height: 58vh; }
  .photo__row { grid-template-columns: 1fr 1fr; }
  .photo__row figure:nth-child(2) { margin-top: 18vw; }
  .photo__row figure:nth-child(3) { grid-column: 1 / -1; margin-top: 0; aspect-ratio: 4 / 3; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .contact__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* emoorm play store link */
.app__meta { align-items: center; flex-wrap: wrap; justify-content: center; }
.app__get { color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 10px 16px; transition: background .3s, color .3s; }
.app__get:hover { background: #fff; color: var(--green); }

/* ---------- ikions ---------- */
.ik {
  --ik: #5b5be8;
  background: #111114; color: #ececf1; overflow: hidden;
  padding: clamp(90px, 12vw, 170px) var(--gut) clamp(70px, 9vw, 130px);
  display: grid; justify-items: center; text-align: center;
}
.ik__title { margin: 0; font-size: clamp(72px, 15vw, 250px); font-weight: 600; letter-spacing: -.07em; line-height: .8; }
.ik__title::first-letter { color: var(--ik); }
.ik__sub { max-width: 46ch; margin: 28px 0 0; color: rgba(236,236,241,.62); }
.ik__stage { width: 100%; margin-top: clamp(48px, 7vw, 96px); perspective: 1600px; }
.ik__hero {
  --t: 1;
  max-width: 1200px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 60px 140px -40px rgba(91,91,232,.45);
  transform: rotateX(calc(var(--t) * 22deg)) scale(calc(1 - var(--t) * .08));
  transform-origin: 50% 0;
}
.ik__hero img { width: 100%; }
.ik__stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 1200px; margin: clamp(56px, 8vw, 110px) 0 0; text-align: left; border-top: 1px solid rgba(255,255,255,.1); }
.ik__stats div { padding: 22px 0 0; }
.ik__stats dt { font-size: clamp(40px, 5vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ik__stats dd { margin: 8px 0 0; color: rgba(236,236,241,.55); font-size: 15px; }
.ik__pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 2vw, 28px); width: 100%; max-width: 1200px; margin-top: clamp(56px, 8vw, 110px); text-align: left; align-items: start; }
.ik__pair img { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
.ik__pair figure:nth-child(2) { margin-top: 8vw; }
.ik__pair figcaption { margin-top: 14px; font-size: 15px; color: rgba(236,236,241,.55); }
.ik__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin: clamp(48px, 7vw, 96px) 0 0; color: rgba(236,236,241,.55); }
.ik__go { color: #fff; background: var(--ik); border-radius: 999px; padding: 10px 16px; transition: filter .3s; }
.ik__go:hover { filter: brightness(1.15); }
@media (max-width: 820px) {
  .ik__hero { transform: none; }
  .ik__stats { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .ik__stats div:nth-child(n+3) { margin-top: 18px; }
  .ik__pair { grid-template-columns: 1fr; }
  .ik__pair figure:nth-child(2) { margin-top: 18px; }
}

/* art: combined follower count */
.art__total { display: grid; justify-items: center; gap: 10px; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0 var(--gut); text-align: center; }
.art__num { font-size: clamp(72px, 12vw, 200px); font-weight: 600; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.art__cap { color: rgba(239,234,255,.6); font-size: 15px; }
.art__total + .socials { margin-top: clamp(28px, 4vw, 48px); }
