/* ==========================================================================
   gdagtekin.com, developer-options aesthetic
   ink canvas · layout-bounds lavender · pointer-guide blue
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111114;
  --ink-3: #18181c;
  --paper: #efede6;
  --paper-2: #c9c7bf;
  --mute: #8d8b84;
  --line: rgba(239, 237, 230, .09);
  --line-2: rgba(239, 237, 230, .16);
  --bound: #b79dff;
  --guide: #4cb8ff;
  --ok: #3ddc97;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-lg: 32px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --ptr-h: 26px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-anchor: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--guide); color: var(--ink); }
:focus-visible { outline: 2px solid var(--guide); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 40px; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { background-position: 0 0; } 20% { background-position: -24px 16px; } 40% { background-position: 18px -26px; }
  60% { background-position: -14px -8px; } 80% { background-position: 26px 22px; }
}

/* ---------- pointer location bar (Android dev options) ---------- */
.ptr {
  position: fixed; inset: 0 0 auto 0; height: var(--ptr-h); z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .02em; color: var(--mute);
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.ptr b { color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; }
.ptr span:first-child b { color: var(--guide); }

.cross { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; }
.cross.on { opacity: 1; }
.cross i { position: absolute; background: var(--guide); opacity: .22; }
.cross-x { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--cy, -10px)); }
.cross-y { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--cx, -10px)); }
@media (hover: none) { .cross { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: calc(var(--ptr-h) + 12px); left: 50%; z-index: 60;
  width: min(calc(100% - 2 * var(--gutter)), var(--max) - 2 * 56px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 17, 20, .6);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s, border-color .4s, top .4s var(--ease);
}
.nav.scrolled { background: rgba(14, 14, 17, .82); border-color: var(--line-2); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.nav-logo {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #26262c, #050506 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s var(--ease);
}
.nav-logo svg { width: 20px; height: 20px; color: var(--paper); }
.nav-brand:hover .nav-logo { transform: rotate(-180deg); }
.nav-name { font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--paper-2);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); }
.lang a { padding: 6px 10px; border-radius: 999px; font: 500 11px var(--f-mono); color: var(--mute); transition: .25s; }
.lang a[aria-current] { background: var(--paper); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .arr { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--bound); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-solid:hover { color: var(--ink); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.04); }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bound); box-shadow: 0 0 0 4px rgba(183, 157, 255, .14); }
.eyebrow .idx { color: var(--bound); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--line-2); }
.h-xl, .h-lg, .h-xxl { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .92; }
.h-xl { font-size: clamp(48px, 8.4vw, 132px); }
.h-lg { font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -.035em; line-height: 1; }
.h-xxl { font-size: clamp(54px, 10.4vw, 176px); }
.h-xl em, .h-xxl em { font-style: normal; font-weight: 300; color: var(--paper-2); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--ptr-h) + 120px);
  overflow: hidden;
}
.hero::before { /* 8dp grid */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background:
    radial-gradient(40vw 40vw at 82% 30%, rgba(76, 184, 255, .12), transparent 60%),
    radial-gradient(36vw 30vw at 12% 90%, rgba(183, 157, 255, .10), transparent 60%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate3d(-3vw, 2vw, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); flex: 1; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 24px; }

.hero-name {
  margin: 34px 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: .16em;
  font-size: clamp(64px, 10.6vw, 184px); font-weight: 750; letter-spacing: -.055em; line-height: .84;
}
.split { display: inline-block; }
.split .ch { display: inline-block; }
.js .split .ch { transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity .6s; transition-delay: calc(.12s + var(--i) * .035s); }
.js .loaded .split .ch, .js.loaded .split .ch { transform: none; opacity: 1; }
.bounds { position: relative; display: inline-block; padding: .04em .06em .1em; overflow: hidden; }
.bounds .split { padding-bottom: .02em; }

/* layout-bounds overlay on hero words */
.bounds::before, .bounds::after, .hero-name .tag { pointer-events: none; }
.hero-name .bounds { overflow: visible; }
.hero-name .bounds > .split { overflow: hidden; display: inline-block; vertical-align: top; }
.hero-name .bounds::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--bound);
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 1.2s var(--ease-io) .9s;
}
.hero-name .bounds::after {
  content: ""; position: absolute; inset: -4px;
  background:
    linear-gradient(var(--guide), var(--guide)) left top / 9px 1px,
    linear-gradient(var(--guide), var(--guide)) left top / 1px 9px,
    linear-gradient(var(--guide), var(--guide)) right top / 9px 1px,
    linear-gradient(var(--guide), var(--guide)) right top / 1px 9px,
    linear-gradient(var(--guide), var(--guide)) left bottom / 9px 1px,
    linear-gradient(var(--guide), var(--guide)) left bottom / 1px 9px,
    linear-gradient(var(--guide), var(--guide)) right bottom / 9px 1px,
    linear-gradient(var(--guide), var(--guide)) right bottom / 1px 9px;
  background-repeat: no-repeat;
  opacity: 0; transition: opacity .6s 1.8s;
}
.hero-name .tag {
  position: absolute; left: -1px; top: 0; transform: translateY(-100%);
  padding: 3px 7px; font: 500 10px/1 var(--f-mono); letter-spacing: .02em; color: var(--ink); background: var(--bound);
  white-space: nowrap; opacity: 0; transition: opacity .5s 1.9s;
}
.loaded .hero-name .bounds::before { clip-path: inset(0 0 0 0); }
.loaded .hero-name .bounds::after, .loaded .hero-name .tag { opacity: 1; }
.no-js .hero-name .bounds::before { clip-path: none; }

.hero-role { margin: 0 0 14px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.hero-lede { margin: 0 0 34px; max-width: 46ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--paper-2); line-height: 1.6; }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px 0 13px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--paper-2);
  transition: color .25s, border-color .25s, background .25s, transform .4s var(--ease);
}
.links a svg { width: 16px; height: 16px; }
.links a:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); transform: translateY(-2px); }

/* blueprint art */
.hero-art { margin: 0; position: relative; color: var(--paper); justify-self: end; width: min(100%, 600px); }
.blueprint { width: 100%; height: auto; overflow: visible; }
.bp-spin { transform-origin: 260px 280px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bp-solid { opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.bp-solid .bp-curl { fill: url(#bp-curl); }
.bp-solid .bp-curl2 { fill: url(#bp-curl2); }
.bp-solid .bp-fold { fill: var(--ink); opacity: .35; }
.loaded .bp-solid { opacity: 1; }
.bp-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); transition-delay: calc(.3s + var(--i) * .25s); }
.loaded .bp-line { stroke-dashoffset: 0; }
.bp-dim { opacity: 0; transition: opacity .8s var(--d); }
.loaded .bp-dim { opacity: 1; }
.bp-mark { transform-box: view-box; }
.hero-art .blueprint { transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .8s var(--ease); }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 22px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.scroll-cue i { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateX(-100%); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 50% { transform: none; } 100% { transform: translateX(100%); } }
.hero-meta { margin: 0; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 48s linear infinite; }
.marquee a { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; color: var(--paper-2); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--bound); font-size: 14px; }
.marquee a:hover { color: var(--paper); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { transition: color .3s; }
.marquee img { width: 40px; height: 40px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { padding-top: clamp(96px, 14vw, 200px); }
.work-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; margin-bottom: clamp(56px, 7vw, 100px); }
.work-intro { max-width: 44ch; margin: 28px 0 0; color: var(--paper-2); font-size: 18px; }

.term { border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.term-bar span { margin-left: 8px; font: 500 11px var(--f-mono); color: var(--mute); }
.term-body { margin: 0; padding: 18px 18px 22px; min-height: 236px; font: 400 12.5px/1.75 var(--f-mono); color: var(--paper-2); white-space: pre-wrap; word-break: break-all; }
.term-body .p { color: var(--ok); }
.term-body .k { color: var(--guide); }
.term-body .s { color: var(--bound); }
.term-body .c { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--paper); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stacked project cards */
.projects { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.project {
  --c: #7b61ff; --c2: #3ddc97;
  position: sticky; top: calc(var(--ptr-h) + 96px + var(--n, 0) * 12px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: min(640px, calc(100svh - var(--ptr-h) - 130px));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 85% 15%, color-mix(in oklab, var(--c) 34%, transparent), transparent 62%),
    radial-gradient(50% 60% at 100% 100%, color-mix(in oklab, var(--c2) 14%, transparent), transparent 70%),
    linear-gradient(180deg, #141418, #0e0e11);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  filter: brightness(var(--b, 1));
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .7);
}
.project::after { /* inner hairline highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.project { grid-template-rows: 1fr auto; }
.p-copy { position: relative; z-index: 1; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) 0; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: auto; padding-bottom: 32px; font: 500 12px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.p-num { color: var(--paper); }
.p-num small { color: var(--mute); font-size: inherit; }
.p-cat { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.p-id { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); margin-bottom: 22px; }
.p-name { margin: 0; font-size: clamp(42px, 5.4vw, 88px); font-weight: 720; letter-spacing: -.05em; line-height: .92; }
.p-tag { margin: 0 0 14px; max-width: 26ch; font-size: clamp(20px, 1.9vw, 27px); font-weight: 560; letter-spacing: -.02em; line-height: 1.2; }
.p-desc { margin: 0 0 24px; max-width: 50ch; color: var(--paper-2); font-size: 16.5px; }
.p-chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-chips li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.06); font: 500 11.5px var(--f-mono); color: var(--paper-2); }
.p-chips svg { width: 12px; height: 12px; }
.p-actions { position: relative; z-index: 1; grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 0 clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px); }

.p-stage { grid-column: 2; grid-row: 1 / span 2; position: relative; display: grid; place-items: center; padding: 40px clamp(24px, 4vw, 56px) 40px 0; }
.p-ghost {
  position: absolute; right: -2%; bottom: -14%; z-index: 0;
  font-size: clamp(180px, 26vw, 420px); font-weight: 800; letter-spacing: -.08em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--c) 50%, rgba(255,255,255,.2));
  opacity: .5; user-select: none;
}
.p-stage::before { /* floor glow */
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 60%; height: 60px; transform: translateX(-50%);
  background: color-mix(in oklab, var(--c) 60%, transparent); filter: blur(50px); opacity: .5;
}

/* app info panel (Android settings style) */
.appinfo {
  position: relative; z-index: 1; width: min(100%, 420px);
  padding: 8px 0 18px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(24,24,28,.92), rgba(14,14,17,.92));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 70px -40px color-mix(in oklab, var(--c) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .9s var(--ease);
}
.project:hover .appinfo { transform: translateY(-6px); }
.ai-bar { display: flex; align-items: center; gap: 14px; padding: 14px 22px 4px; font-size: 17px; letter-spacing: -.01em; }
.ai-bar b { font-weight: 560; }
.ai-bar svg { width: 20px; height: 20px; color: var(--paper-2); }
.ai-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 22px 24px; border-bottom: 1px solid var(--line); }
.ai-icon {
  width: clamp(88px, 8vw, 112px); height: auto; aspect-ratio: 1; margin-bottom: 10px; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 50px -14px color-mix(in oklab, var(--c) 80%, transparent);
}
.js .project .ai-icon { transform: scale(.82) rotate(-6deg); opacity: 0; transition: transform 1s var(--ease) .1s, opacity .6s .1s; }
.js .project.live .ai-icon { transform: none; opacity: 1; }
.ai-name { font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.ai-pkg { max-width: 100%; font: 500 11.5px var(--f-mono); color: var(--mute); overflow-wrap: anywhere; }
.ai-cat { margin: 0; padding: 18px 22px 6px; font-size: 13px; font-weight: 600; color: var(--c2); }
.ai-feats { list-style: none; margin: 0; padding: 0; }
.ai-feats li { display: flex; align-items: center; gap: 14px; padding: 11px 22px; font-size: 15.5px; line-height: 1.35; color: var(--paper); }
.ai-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--c2); background: color-mix(in oklab, var(--c) 26%, transparent); }
.ai-tick svg { width: 16px; height: 16px; }
.js .project .ai-feats li { opacity: 0; transform: translateX(14px); transition: opacity .6s, transform .8s var(--ease); transition-delay: calc(.3s + var(--i) * .12s); }
.js .project.live .ai-feats li { opacity: 1; transform: none; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { position: relative; padding-block: clamp(80px, 10vw, 160px) clamp(80px, 9vw, 140px); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 90vw; height: 60vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(76, 184, 255, .08), transparent); pointer-events: none; z-index: -1;
}
.contact .h-xxl { margin-bottom: clamp(48px, 6vw, 88px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-text { margin: 0 0 32px; max-width: 40ch; font-size: 19px; color: var(--paper-2); }

.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 40px; }
.mail-link {
  position: relative; font-size: clamp(26px, 3.1vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(var(--paper), var(--paper)) left bottom / 0 2px no-repeat;
  transition: background-size .6s var(--ease);
  padding-bottom: 4px; overflow-wrap: anywhere;
}
.mail-link .at { color: var(--bound); }
.mail-link:hover { background-size: 100% 2px; }
.mail-copy {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font: 500 12px var(--f-mono); color: var(--paper-2);
  transition: .25s;
}
.mail-copy svg { width: 15px; height: 15px; }
.mail-copy:hover { color: var(--paper); border-color: var(--paper); }
.mail-copy.ok { color: var(--ok); border-color: var(--ok); }

.status-unused { display: flex; flex-wrap: wrap; gap: 12px; }
.status-item { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; color: var(--paper-2); }
.status-item .mono { color: var(--paper); font-size: 13px; font-variant-numeric: tabular-nums; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

.socials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.socials li { border-bottom: 1px solid var(--line); }
.socials a {
  position: relative; display: grid; grid-template-columns: 28px 1fr auto 24px; align-items: center; gap: 18px;
  padding: 22px 6px; overflow: hidden; isolation: isolate;
  transition: color .4s, padding .5s var(--ease);
}
.socials a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.socials a:hover { color: var(--ink); padding-inline: 20px; }
.socials a:hover::before { transform: scaleY(1); }
.s-ico { width: 22px; height: 22px; }
.s-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.s-handle { font: 500 12.5px var(--f-mono); color: var(--mute); transition: color .4s; }
.socials a:hover .s-handle { color: #55534d; }
.socials .arr { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.socials a:hover .arr { transform: rotate(45deg); }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word {
  padding-top: 24px; line-height: .78; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(90px, 22vw, 380px); font-weight: 800; letter-spacing: -.07em;
}
.foot-word span {
  display: inline-block;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(239,237,230,.08) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(16%);
}
.foot-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px 28px; border-top: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--mute); }
.to-top:hover { color: var(--paper); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   CRAFT  (manifesto + steps)
   ========================================================================== */
.craft { padding-top: clamp(96px, 13vw, 190px); }
.manifesto {
  margin: 0 0 clamp(64px, 8vw, 120px); max-width: 24ch;
  font-size: clamp(34px, 4.6vw, 74px); font-weight: 620; letter-spacing: -.04em; line-height: 1.06;
}
.manifesto .w { display: inline; opacity: var(--o, .16); transition: opacity .25s linear; }
.no-js .manifesto .w { opacity: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { position: relative; padding: 34px 28px 10px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--bound);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .2s);
}
.step.is-in::before { transform: scaleX(1); }
.step-n { display: block; margin-bottom: 28px; font: 500 12px var(--f-mono); color: var(--mute); }
.step-ico { width: 64px; height: 64px; padding: 12px; margin-bottom: 26px; overflow: visible; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.step h3 { margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 650; letter-spacing: -.03em; }
.step p { margin: 0; max-width: 30ch; color: var(--paper-2); font-size: 16px; }
.s-line, .s-acc-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-line { stroke: var(--paper); }
.s-acc-line { stroke: var(--bound); }
.s-fill { fill: var(--paper-2); }
.s-acc { fill: var(--bound); }
.ico-design .s-fill, .ico-design .s-acc { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.step.is-in .ico-design .s-fill, .step.is-in .ico-design .s-acc { animation: blocks 4s var(--ease) infinite; }
.step.is-in .ico-design .b2 { animation-delay: .15s; }
.step.is-in .ico-design .b3 { animation-delay: .3s; }
.step.is-in .ico-design .b4 { animation-delay: .45s; }
@keyframes blocks { 0% { transform: scaleX(0); } 15%, 80% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); } }
.step.is-in .ico-code .s-acc-line { animation: blink 1.1s steps(1) infinite; }
.step.is-in .ico-ship .up { animation: lift 2.2s var(--ease) infinite; }
@keyframes lift { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-4px); } }
.ico-loop .spin { transform-origin: 24px 24px; }
.step.is-in .ico-loop .spin { animation: spin 6s linear infinite; }

/* ==========================================================================
   STORES
   ========================================================================== */
.stores { padding-top: clamp(80px, 10vw, 150px); }
.stores-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.stores-text { margin: 0; max-width: 40ch; color: var(--paper-2); font-size: 18px; justify-self: end; }
.stores-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.store-card {
  --k: 1;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 440px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color .4s;
}
.store-play { background: radial-gradient(80% 90% at 50% 30%, rgba(61, 220, 151, .16), transparent 65%), radial-gradient(60% 60% at 90% 100%, rgba(76, 184, 255, .14), transparent 70%), var(--ink-2); }
.store-apple { background: radial-gradient(80% 90% at 50% 30%, rgba(239, 237, 230, .12), transparent 65%), var(--ink-2); }
.store-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(239,237,230,.12) 1px, transparent 1.2px); background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.store-card:hover { --k: 1.14; border-color: var(--line-2); }
.sc-cloud { position: relative; flex: 1; min-height: 280px; }
.sc-cloud span {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--k) * 1px), calc(var(--y) * var(--k) * 1px)) rotate(var(--r));
  transition: transform .9s var(--ease);
}
.sc-cloud img {
  width: 84px; height: 84px; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 40px -14px rgba(0,0,0,.9);
  animation: bob 5s ease-in-out infinite; animation-delay: var(--f);
}
.sc-cloud .lg img { width: 108px; height: 108px; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.sc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sc-store { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 44px); font-weight: 680; letter-spacing: -.04em; line-height: 1; }
.sc-store svg { width: .72em; height: .72em; }
.sc-sub { display: block; margin-top: 10px; font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.sc-go { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease); }
.sc-go svg { width: 20px; height: 20px; }
.store-card:hover .sc-go { background: var(--bound); border-color: var(--bound); color: var(--ink); transform: rotate(45deg); }

/* ==========================================================================
   DEVELOPER OPTIONS
   ========================================================================== */
.devopts { position: relative; padding-top: clamp(96px, 12vw, 180px); }
.devopts::before {
  content: ""; position: absolute; right: 0; top: 30%; width: 50vw; height: 50vw; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(183, 157, 255, .07), transparent);
}
.devopts-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.do-text { margin: 24px 0 26px; max-width: 42ch; color: var(--paper-2); font-size: 18px; }
.do-hint { display: inline-flex; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--paper-2); }
.do-hint .mono { color: var(--bound); }
.do-panel {
  justify-self: end; width: min(100%, 540px); padding: 8px 0 14px; border-radius: 34px;
  background: linear-gradient(180deg, #151518, #0f0f12); border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}
.do-bar { display: flex; align-items: center; gap: 16px; padding: 18px 24px 14px; font-size: 22px; letter-spacing: -.02em; }
.do-bar b { font-weight: 560; }
.do-bar svg { width: 22px; height: 22px; color: var(--paper-2); }
.do-master {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 6px 16px 10px; padding: 18px 20px; border-radius: 28px;
  background: rgba(183, 157, 255, .14); font-size: 17px; font-weight: 560;
}
.do-cat { margin: 0; padding: 18px 24px 6px; font-size: 13px; font-weight: 600; color: var(--bound); }
.do-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 13px 24px; text-align: left; cursor: pointer; transition: background .25s;
}
.do-row:hover { background: rgba(255,255,255,.035); }
.do-txt b { display: block; font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; }
.do-txt small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mute); line-height: 1.4; }
.do-build:active { background: rgba(255,255,255,.07); }
.do-panel.dev-unlocked { animation: unlocked .9s var(--ease); }
@keyframes unlocked { 30% { box-shadow: 0 0 0 3px var(--bound), 0 60px 120px -50px rgba(0,0,0,.95); } }
.sw {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 52px; height: 32px; border-radius: 999px; border: 2px solid #6f6e69; background: #222226; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.sw::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #8d8b84;
  transition: all .35s var(--ease);
}
.sw:checked { background: var(--bound); border-color: var(--bound); }
.sw:checked::after { left: 22px; top: 2px; width: 24px; height: 24px; background: var(--ink); }
.sw:disabled { cursor: default; }
.seg { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); }
.seg button { height: 30px; padding: 0 10px; border-radius: 999px; font: 500 11.5px var(--f-mono); color: var(--mute); transition: .25s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-checked="true"] { background: var(--bound); color: var(--ink); }

/* overlays driven by developer options */
.tap {
  position: fixed; z-index: 96; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: rgba(239, 237, 230, .3); box-shadow: 0 0 0 1px rgba(239,237,230,.5);
  animation: tapfx .6s ease-out forwards;
}
@keyframes tapfx { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.gpu {
  position: fixed; left: 16px; bottom: 16px; z-index: 94; width: 260px; height: 96px; display: none;
  border-radius: 12px; background: rgba(10,10,11,.78); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gpu.on { display: block; }
.ptr-off .ptr, .ptr-off .cross { display: none; }
.ptr-off .nav { top: 12px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stores-head, .stores-grid, .devopts-grid { grid-template-columns: 1fr; }
  .do-panel { justify-self: stretch; width: 100%; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .store-card { --k: .62; min-height: 360px; padding: 22px; }
  .store-card:hover { --k: .72; }
  .sc-cloud img { width: 64px; height: 64px; }
  .sc-cloud .lg img { width: 84px; height: 84px; }
  .do-row { padding: 12px 18px; }
  .do-anim { flex-wrap: wrap; row-gap: 10px; }
  .seg button { padding: 0 7px; }
  .do-cat { padding-inline: 18px; }
}

/* ---------- global layout-bounds mode ---------- */
.bounds-on main *:not(svg):not(svg *):not(.grain) { outline: 1px solid rgba(183, 157, 255, .55); outline-offset: -1px; }
.bounds-on main a, .bounds-on main button { outline-color: rgba(76, 184, 255, .8) !important; }
.bounds-on .project { background-image: none; background-color: #101013; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .work-head { grid-template-columns: 1fr; }
  .term { max-width: 620px; }
}
@media (max-width: 900px) {
  .ptr-wide { display: none; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: center; width: min(46vw, 230px); margin: 0 0 -18px; }
  .hero { min-height: 0; padding-top: calc(var(--ptr-h) + 84px); }
  .hero-name { margin-top: 20px; }
  .project { position: relative; top: 0; grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; transform: none; filter: none; }
  .p-copy, .p-stage, .p-actions { grid-column: 1; grid-row: auto; }
  .p-stage { padding: 0 clamp(16px, 4vw, 40px) 26px; }
  .p-actions { justify-content: center; padding-bottom: 34px; }

  /* phones and tablets: centred, single column */
  .hero-copy, .craft .wrap > .eyebrow, .work-head, .p-copy, .stores-head, .do-copy, .contact .wrap > .eyebrow, .contact .h-xxl, .contact-main { text-align: center; }
  .craft .wrap > .eyebrow, .contact .wrap > .eyebrow { display: flex; justify-content: center; }
  .hero-name { align-items: center; }
  .hero-lede, .work-intro, .manifesto, .p-tag, .p-desc, .contact-text, .do-text { margin-inline: auto; }
  .manifesto { text-align: center; }
  .links, .p-id, .p-chips, .mail { justify-content: center; }
  .hero-foot { justify-content: center; }
  .term { width: 100%; margin-inline: auto; text-align: left; }
  .step { text-align: center; }
  .step p { margin-inline: auto; }
  .step-ico { margin-inline: auto; }
  .stores-text { justify-self: center; }
  .do-hint { text-align: left; }
  .p-ghost { bottom: -6%; font-size: clamp(160px, 44vw, 300px); }
  .appinfo { width: 100%; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 6px 6px 6px 8px; gap: 8px; }
  .nav-name { display: none; }
  .hero-name { font-size: clamp(54px, 17vw, 96px); }
  .hero-name .tag { font-size: 9px; }
  .p-copy { padding: 26px 22px 8px; }
  .p-actions .btn { flex: 1 1 auto; }
  .socials a { grid-template-columns: 24px 1fr 20px; gap: 14px; }
  .s-handle { display: none; }
}

/* touch devices / small screens: no pointer-location overlay */
@media (max-width: 900px), (hover: none) {
  :root { --ptr-h: 0px; }
  .ptr, .cross, .do-ptr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .grain, .marquee-track { animation: none !important; }
  .cross { display: none; }
}
