/* =========================================================
   Behzod Shokirov — portfolio
   ========================================================= */
:root {
  --bg: #0e0d0b;
  --bg-2: #171512;
  --bg-3: #201d19;
  --ink: #efe9df;
  --ink-2: #d9d2c6;
  --muted: #8f897f;
  --line: rgba(239, 233, 223, .12);
  --line-2: rgba(239, 233, 223, .22);
  --accent: #ff6a3d;
  --cream: #f1ebe1;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --pad: clamp(18px, 3.6vw, 56px);
  --max: 1520px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --spring: cubic-bezier(.3, 1.55, .5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: .06;
  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% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.label {
  font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.display {
  font: 500 clamp(48px, 8vw, 128px)/.92 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h2 { font: 500 clamp(36px, 5vw, 76px)/.98 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease), background .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand { font: 500 26px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.brand-name span { font-style: italic; color: var(--muted); }
.nav { display: flex; gap: 2px; font-size: 14px; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); transition: background .25s, color .25s; }
.nav a:hover { background: var(--bg-3); color: var(--ink); }
.langs {
  display: flex; padding: 3px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line); font: 400 12px/1 var(--mono);
}
.langs button { padding: 8px 10px; border-radius: 999px; color: var(--muted); transition: background .25s, color .25s; }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--cream); color: #111; }
.cta-tg {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--cream); color: #111; font-size: 14px; font-weight: 500;
  transition: background .25s;
}
.cta-tg:hover { background: #fff; }

/* ---------- hero ---------- */
.hero { padding-top: 84px; }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  height: calc(100svh - 150px); min-height: 580px; max-height: 960px;
  background: #1a1612;
}
.slides { position: absolute; inset: 0; will-change: transform; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: slide 28s infinite;
}
.slide:nth-child(1) { animation-delay: -1.4s; }
.slide:nth-child(2) { animation-delay: 5.6s; }
.slide:nth-child(3) { animation-delay: 12.6s; }
.slide:nth-child(4) { animation-delay: 19.6s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.1); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(10,8,6,.5), rgba(10,8,6,.1) 72%),
    linear-gradient(180deg, rgba(10,8,6,.3), rgba(10,8,6,0) 30%, rgba(10,8,6,0) 62%, rgba(10,8,6,.6));
}
.stage-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; color: #fff;
}
.title-wrap { position: relative; }
.stage-title {
  font: 500 clamp(58px, 10.4vw, 184px)/.86 var(--serif);
  letter-spacing: -0.025em;
  text-shadow: 0 4px 40px rgba(0,0,0,.3);
  text-wrap: balance;
}
.stage-title em { font-style: italic; }
.stage-sub { margin-top: clamp(22px, 2.6vw, 34px); font-size: clamp(16px, 1.35vw, 19px); max-width: 30em; color: rgba(255,255,255,.9); }
.stage-btns { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stage-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: 22px 26px; color: rgba(255,255,255,.75);
}
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 34px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* stickers */
.sticker {
  position: absolute; white-space: nowrap; z-index: 2;
  background: var(--cream); color: #111;
  font: 500 clamp(12px, 1.05vw, 15px)/1 var(--sans);
  padding: .8em 1.2em; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transform: rotate(var(--r)) scale(0);
  transition: transform .8s var(--spring);
  cursor: default;
}
.sticker.acc { background: var(--accent); color: #fff; }
.loaded .sticker { transform: rotate(var(--r)) scale(1); }
.loaded .sticker:hover { transform: rotate(0deg) scale(1.1); transition-duration: .4s; transition-delay: 0s; }
.sticker > span { display: block; animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.s1 { --r: -10deg; top: -4%;    left: 4%;    transition-delay: .6s;  --d: -1s; }
.s2 { --r: 7deg;   top: -10%;   right: 10%;  transition-delay: .7s;  --d: -2.5s; }
.s3 { --r: -6deg;  bottom: 2%;  left: 0%;    transition-delay: .8s;  --d: -3.5s; }
.s4 { --r: 9deg;   top: 40%;    right: 0%;   transition-delay: .9s;  --d: -.5s; }
.s5 { --r: -4deg;  bottom: -12%; left: 38%;  transition-delay: 1s;   --d: -2s; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px;
  border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: background .25s, color .25s, border-color .25s;
}
.pill-light { background: var(--cream); color: #111; }
.pill-light:hover { background: #fff; }
.pill-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.pill-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.pill-line { border: 1px solid var(--line-2); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--bg); }
.pill-acc { background: var(--accent); color: #fff; }
.pill-acc:hover { background: #ff8160; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(26px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track > div { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font: 500 clamp(34px, 4.6vw, 70px)/1 var(--serif); white-space: nowrap; padding-right: .45em; }
.marquee span:nth-child(4n+3) { font-style: italic; color: var(--muted); }
.marquee b { color: var(--accent); font-weight: 400; padding-right: .7em; font-size: clamp(10px, 1vw, 14px); vertical-align: middle; position: relative; top: -.15em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-top: clamp(80px, 11vw, 170px); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 4vw, 64px);
  align-items: start; margin-bottom: clamp(36px, 5vw, 72px);
}
.sec-head .lead { margin-top: 20px; }
.sec-num { display: flex; gap: 12px; align-items: baseline; padding-top: 1.1em; }
.sec-num b { font: 500 13px/1 var(--mono); color: var(--accent); }

/* ---------- cards ---------- */
.design-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.card { position: relative; display: block; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card-media img, .card-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.035); }
.ar-wide { aspect-ratio: 16 / 10; }
.ar-sq { aspect-ratio: 1 / 1; }
.card-info { padding-top: 16px; display: grid; gap: 8px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { font: 500 clamp(26px, 2.6vw, 40px)/1.02 var(--serif); }
.card-tags { color: var(--muted); font-size: 14px; }
.card-meta { font: 400 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
.card:hover .arrow { transform: translate(4px, -4px); }
.grill-media { background: #fff; display: grid; place-items: center; }
.grill-media img { object-fit: contain; padding: 6%; }

/* ---------- 3D ---------- */
.td-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.td-a { grid-column: span 8; }
.td-b { grid-column: span 4; grid-row: span 2; }
.td-c { grid-column: span 4; }
.td-d { grid-column: span 4; }
.td-e { grid-column: span 8; }
.td-f { grid-column: span 4; }
.td-b .card-media { aspect-ratio: 9 / 15; }
.td-e .card-media { aspect-ratio: 4 / 3; }
.td-f .card-media { aspect-ratio: 9 / 15; }
.td-g { grid-column: span 12; }
.td-g-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.td-g .reel { aspect-ratio: 9 / 16; }
.td-g .hero { aspect-ratio: 16 / 10; }
.card-desc { color: var(--ink-2); font-size: 15px; max-width: 42em; }
.credits { font-size: 12px; color: var(--muted); line-height: 1.55; }
.credits summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: "+"; }
.credits[open] summary::after { content: "–"; }
.credits p { margin-top: 6px; }
.card-stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.card-stills button { display: block; width: 100%; overflow: hidden; border-radius: 10px; background: var(--bg-2); cursor: zoom-in; }
.card-stills img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.card-stills button:hover img { transform: scale(1.06); }
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(10,8,6,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.gallery-head { margin: clamp(72px, 9vw, 120px) 0 26px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.g-item { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-2); cursor: zoom-in; display: block; width: 100%; text-align: left; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px;
  background: linear-gradient(transparent, rgba(8,6,5,.8));
  display: flex; justify-content: space-between; gap: 10px; align-items: end;
  font-size: 15px; color: #fff;
}
.g-cap small { font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.72); text-align: right; }

/* ---------- AI ---------- */
.ai {
  margin-top: clamp(80px, 11vw, 170px);
  background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(80px, 10vw, 150px) 0;
  position: relative; overflow: hidden;
}
.ai::before {
  content: ""; position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -30vw;
  background: radial-gradient(circle, rgba(255,106,61,.14), transparent 62%);
  pointer-events: none;
}
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.flow-line { position: absolute; left: 6%; right: 6%; top: 47px; height: 1px; z-index: 0; background: var(--line-2); overflow: hidden; }
.flow-line::after {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 3.2s linear infinite;
}
@keyframes flow { to { left: 100%; } }
.node {
  position: relative; z-index: 1;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 26px;
  transition: border-color .3s, transform .5s var(--ease);
}
.node:hover { border-color: var(--line-2); transform: translateY(-4px); }
.node-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.node-dot {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2);
  font: 500 13px/1 var(--mono); color: var(--accent);
}
.node-role { font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; }
.node h3 { font: 500 clamp(28px, 2.4vw, 38px)/1 var(--serif); margin-bottom: 12px; }
.node p { font-size: 15px; color: var(--ink-2); }
.node ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.node li { font: 400 11px/1 var(--mono); padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.stats { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(50px, 5.6vw, 88px)/.95 var(--sans); letter-spacing: -0.05em; }
.stat b small { font-size: .4em; margin-left: 6px; color: var(--accent); letter-spacing: 0; }
.stat > span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 24em; }
.ai-note { margin-top: 30px; font-size: 13px; color: var(--muted); max-width: 62em; }

/* ---------- certificate ---------- */
.cert { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cert-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; display: block; width: 100%;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  transform: perspective(1400px) rotateY(7deg) rotateX(2deg);
  transition: transform .9s var(--ease);
  background: #fff;
}
.cert-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.cert dl { margin-top: 30px; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 15px; }
.cert dt { font: 400 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 4vw, 64px); }
.about-text p { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); }
.about-text p + p { margin-top: 1em; }
.about-text p:first-child { color: var(--ink); }
.lists { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.lists ul { list-style: none; margin-top: 10px; }
.lists li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.lists li small { color: var(--muted); font: 400 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .05em; text-align: right; }

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 12vw, 190px) 0 clamp(60px, 7vw, 100px); }
.contact .display { max-width: 12em; }
.mail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 52px); }
.mail a {
  font: 500 clamp(26px, 4.4vw, 64px)/1.05 var(--serif);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.mail a:hover { background-size: 100% 2px; }
.copy {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.copy:hover { background: var(--ink); color: var(--bg); }
.links { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line);
  transition: color .3s;
}
.links a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.links a:hover { color: var(--accent); }
.links strong { display: block; font: 500 27px/1.1 var(--serif); }
.links small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.links .arrow { font-size: 20px; }
.links a:hover .arrow { transform: translate(4px, -4px); }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 5vw;
  background: rgba(8,6,5,.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-body img, .lb-body video { max-width: 90vw; max-height: 84vh; width: auto; height: auto; border-radius: 12px; transform: scale(.96); transition: transform .45s var(--ease); }
.lb.open .lb-body img, .lb.open .lb-body video { transform: none; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: #111; font-size: 22px; line-height: 1; }
.lb-cap { position: absolute; bottom: 18px; left: 16px; right: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- cursor label ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  background: var(--cream); color: #111;
  display: grid; place-items: center; font: 500 13px/1 var(--sans);
}
.cursor span { transform: scale(0); transition: transform .35s var(--spring); display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--cream); }
.cursor { background: none; }
.cursor.on span { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- animation states ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .clip.in { clip-path: inset(0 0 0 0); }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.js .split .wi { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split.in .wi { transform: none; }
.reveal-all .reveal, .reveal-all .clip, .reveal-all .split .wi { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- case page ---------- */
.case-hero { padding-top: clamp(120px, 14vw, 190px); padding-bottom: clamp(32px, 4vw, 56px); }
.back { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: clamp(24px, 3vw, 40px); }
.back:hover { color: var(--ink); }
.case-sub { margin-top: 22px; font-size: clamp(18px, 1.8vw, 24px); color: var(--ink-2); max-width: 30em; }
.meta { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }
.meta dt { font: 400 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.fig { margin: clamp(14px, 1.8vw, 22px) 0; }
.fig img, .fig video { width: 100%; border-radius: 16px; background: var(--bg-2); }
.fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.fig-narrow { max-width: 920px; margin-left: auto; margin-right: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 22px); margin: clamp(14px, 1.8vw, 22px) 0; }
.pair .fig { margin: 0; }
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 80px); padding: clamp(56px, 8vw, 112px) 0 clamp(24px, 3vw, 40px); }
.block .label { padding-top: .8em; }
.block p { font-size: clamp(17px, 1.4vw, 19px); max-width: 36em; color: var(--ink-2); }
.block p + p { margin-top: 1em; }
.block .h2 { margin-bottom: 20px; }
.steps { list-style: none; counter-reset: s; margin-top: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.steps li::before { content: "0" counter(s); color: var(--accent); font: 400 13px/1.9 var(--mono); }
.next { margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .slide, .marquee-track, .sticker > span, .flow-line::after, .scroll-hint i::after { animation: none; }
  .slide:first-child { opacity: 1; }
  .js .reveal, .js .clip, .js .split .wi { opacity: 1; transform: none; clip-path: none; transition: none; }
  .sticker { transform: rotate(var(--r)) scale(1); transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-line { display: none; }
}
@media (max-width: 760px) {
  .site-header .wrap { height: 64px; gap: 8px; }
  .brand { font-size: 22px; }
  .brand-name span { display: none; }
  .cta-tg { display: none; }
  .hero { padding-top: 70px; }
  .stage { height: calc(100svh - 110px); min-height: 580px; border-radius: 18px; }
  .stage-inner { padding: 24px 16px 70px; }
  .stage-foot { padding: 16px; font-size: 12px; }
  .stage-foot .tools { display: none; }
  .s1 { top: -34%; left: 0; }
  .s2 { top: -42%; right: 0; }
  .s3 { bottom: -32%; left: -2%; }
  .s4 { top: auto; bottom: -42%; right: 2%; }
  .s5 { display: none; }
  .title-wrap { margin: 60px 0 70px; }
  .stage-title { font-size: clamp(40px, 13vw, 76px); line-height: .9; }
  .display { font-size: clamp(40px, 11.5vw, 72px); }
  .h2 { font-size: clamp(32px, 9vw, 52px); }
  .stage-sub { margin-top: 0; }
  .sec-head, .about-grid, .cert, .block { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
  .td-a, .td-b, .td-c, .td-d, .td-e, .td-f, .td-g { grid-column: span 12; grid-row: auto; }
  .td-g-inner { grid-template-columns: minmax(0, 1fr); }
  .td-b .card-media, .td-f .card-media { aspect-ratio: 9 / 14; }
  .td-e .card-media { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .lists { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .links a + a { padding-left: 0; border-left: 0; }
  .meta { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
  .cert-card { transform: none; }
  .card-row { flex-direction: column; gap: 4px; }
  .g-cap { font-size: 13px; padding: 36px 12px 10px; }
  .g-cap small { display: none; }
}
@media (max-width: 380px) {
  .langs button { padding: 8px 7px; }
}

/* =========== v3 design elements =========== */
/* scroll progress */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* rotating stamp */
.stamp {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(70px, 9vh, 110px); z-index: 3;
  width: clamp(104px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14,13,11,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .5s var(--spring), background .3s;
}
.stamp:hover { transform: scale(1.08); background: var(--accent); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stamp text { font: 500 15.5px var(--mono); letter-spacing: .14em; fill: #fff; }
.stamp-core {
  width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); color: #111;
  display: grid; place-items: center; font-size: clamp(18px, 1.6vw, 24px);
  transition: transform .4s var(--ease);
}
.stamp:hover .stamp-core { transform: translateY(4px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* tool icons in hero foot */
.tool-icons { display: flex; gap: 8px; align-items: center; }
.tool-icons img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform .35s var(--spring); }
.tool-icons img:hover { transform: translateY(-4px) scale(1.15); }

/* AI node logos */
.node-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: transform .5s var(--spring);
}
.node-logo img { width: 30px; height: 30px; object-fit: contain; }
.node-logo-hf { background: transparent; border: 0; overflow: hidden; }
.node-logo-hf img { width: 56px; height: 56px; border-radius: 14px; }
.node:hover .node-logo, .node:hover .logo-stack img { transform: rotate(-8deg) scale(1.08); }
.logo-stack { display: flex; height: 56px; align-items: center; }
.logo-stack img {
  width: 46px; height: 46px; object-fit: contain; border-radius: 12px;
  background: var(--bg); padding: 7px;
  box-shadow: 0 0 0 3px var(--bg-3);
  transition: transform .5s var(--spring);
  position: relative;
}
.logo-stack img + img { margin-left: -6px; }
.logo-stack img:nth-child(1) { z-index: 4; } .logo-stack img:nth-child(2) { z-index: 3; transition-delay: .04s; }
.logo-stack img:nth-child(3) { z-index: 2; transition-delay: .08s; } .logo-stack img:nth-child(4) { z-index: 1; transition-delay: .12s; }
.logo-stack img[alt="Illustrator"], .logo-stack img[alt="Photoshop"], .logo-stack img[alt="After Effects"] { padding: 0; background: none; }
.node-role { display: grid; justify-items: end; gap: 4px; }
.node-role b { font: 500 13px/1 var(--mono); color: var(--accent); }

/* tools list with logos */
.tl { display: inline-flex; align-items: center; gap: 12px; }
.tl img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

/* hand-drawn scribbles */
.scrib { position: relative; display: inline-block; white-space: nowrap; }
.scrib svg {
  position: absolute; left: -4%; width: 108%; pointer-events: none; overflow: visible;
  bottom: -.12em; height: .32em;
}
.scrib svg.circle { left: -5%; width: 110%; top: -14%; height: 130%; bottom: auto; }
.scrib path {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease) .55s;
}
.split.in .scrib path, .reveal-all .scrib path { stroke-dashoffset: 0; }

/* tilt + glare */
[data-tilt] .card-media { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
[data-tilt] .card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-tilt]:hover .card-media::after { opacity: 1; }

/* giant footer name */
.bigname { overflow: hidden; border-top: 1px solid var(--line); padding: clamp(20px, 3vw, 40px) 0 0; }
.bigname .wrap {
  font: 500 clamp(64px, 15.2vw, 252px)/.82 var(--serif); letter-spacing: -0.035em; white-space: nowrap;
  color: var(--bg-3);
  transform: translateY(18%);
}
.bigname em { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.bigname span { background: linear-gradient(180deg, var(--ink) 0%, var(--bg-3) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .stamp svg { animation: none; }
  .scrib path { transition: none; stroke-dashoffset: 0; }
}
@media (max-width: 760px) {
  .stamp { width: 92px; right: 14px; bottom: 58px; }
  .bigname .wrap { font-size: 29vw; line-height: .86; white-space: normal; transform: translateY(12%); }
  .bigname em { display: block; }
}

/* =========== light theme (soft beige) =========== */
[data-theme="light"] {
  --bg: #f4ede2;
  --bg-2: #ece3d5;
  --bg-3: #e3d8c6;
  --ink: #1f1a15;
  --ink-2: #40382f;
  --muted: #877b6c;
  --line: rgba(31, 26, 21, .12);
  --line-2: rgba(31, 26, 21, .24);
  --accent: #e0582c;
  color-scheme: light;
}
[data-theme="light"] body::after { opacity: .045; }
[data-theme="light"] .langs button[aria-pressed="true"],
[data-theme="light"] .cta-tg { background: var(--ink); color: var(--bg); }
[data-theme="light"] .cta-tg:hover { background: #000; }
[data-theme="light"] .cursor span { background: var(--ink); color: var(--bg); }
[data-theme="light"] .node-logo img[src$="elevenlabs.svg"],
[data-theme="light"] .tl img[src$="elevenlabs.svg"] { filter: invert(1); }
[data-theme="light"] .cert-card { box-shadow: 0 40px 90px rgba(80, 55, 30, .22); }
[data-theme="light"] .node { background: #f8f3eb; }
[data-theme="light"] .ai { background: var(--bg-2); }
[data-theme="light"] .ai::before { background: radial-gradient(circle, rgba(224,88,44,.12), transparent 62%); }
[data-theme="light"] .bigname span { background: linear-gradient(180deg, var(--ink) 0%, var(--bg-3) 90%); -webkit-background-clip: text; background-clip: text; }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  transition: background .25s, transform .5s var(--spring);
}
.theme-toggle:hover { background: var(--bg-3); transform: rotate(-25deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease !important;
}
@media (max-width: 760px) { .theme-toggle { width: 36px; height: 36px; } }

/* =========== cube logo =========== */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-cube { width: 30px; height: auto; overflow: visible; flex-shrink: 0; transition: transform .6s var(--spring); }
.logo-cube path { transition: fill .5s ease, transform .6s var(--spring); transform-box: fill-box; transform-origin: center; }
.c-top { fill: #FF6A3D; } .c-left { fill: #EFE9DF; } .c-right { fill: #2E2823; } .c-b { fill: #0E0D0B; } .c-s { fill: #EFE9DF; }
[data-theme="light"] .c-top { fill: #E0582C; } [data-theme="light"] .c-left { fill: #E6D7C1; } [data-theme="light"] .c-right { fill: #1F1A15; }
[data-theme="light"] .c-b { fill: #1F1A15; } [data-theme="light"] .c-s { fill: #F4EDE2; }
.brand:hover .logo-cube { transform: translateY(-3px) rotate(-6deg); }
.brand:hover .c-top { transform: translateY(-8%); }
.js .logo-cube path { opacity: 0; transform: translateY(-30%); }
.loaded .logo-cube path { opacity: 1; transform: none; transition: opacity .5s ease, transform .8s var(--spring), fill .5s ease; }
.loaded .logo-cube .c-left { transition-delay: .08s; } .loaded .logo-cube .c-right { transition-delay: .16s; }
.loaded .logo-cube .c-b { transition-delay: .3s; } .loaded .logo-cube .c-s { transition-delay: .38s; }
.loaded .brand:hover .c-top { transform: translateY(-8%); transition-delay: 0s; }
.reveal-all .logo-cube path { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .logo-cube path { opacity: 1; transform: none; } }
@media (max-width: 760px) { .logo-cube { width: 26px; } .brand { gap: 9px; } }

/* v5 */
.g-wide { grid-column: span 2; }
.g-wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
@media (max-width: 760px) { .g-wide img { position: static; aspect-ratio: 16 / 9; } }
.about-edu { margin-top: 28px; font-size: 15px; color: var(--muted); }
.about-edu button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: zoom-in; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.about-edu button:hover { color: var(--accent); }

/* v6 */
.grill-media { background: radial-gradient(120% 90% at 50% 110%, rgba(207,19,33,.32), transparent 60%), radial-gradient(80% 70% at 50% 45%, #2a1d17, #120d0b 75%); position: relative; }
.grill-media::before { content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grill-media img { padding: 18%; position: relative; }
.node-logo img[src$="higgsfield.png"] { width: 30px; height: 30px; border-radius: 8px; }
.node-logo-quad { grid-template-columns: repeat(2, 19px); gap: 4px; place-content: center; }
.node-logo-quad img { width: 19px; height: 19px; }
.node li { color: var(--ink-2); border-color: var(--line-2); }
.node { padding-bottom: 30px; }
.credits summary { border-radius: 6px; padding: 2px 4px; margin-left: -4px; }
.credits summary:focus { outline: none; }
.credits summary:focus-visible, .g-item:focus-visible, .card:focus-visible, .about-edu button:focus-visible, .card-stills button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card:focus-visible, .g-item:focus-visible { border-radius: 16px; }
@media (max-width: 760px) { .gallery .g-item:nth-child(3) { grid-column: span 2; } }

/* v7 projects */
.pj-group { margin: clamp(48px, 6vw, 80px) 0 22px; color: var(--muted); }
.sec-head + .pj-group { margin-top: clamp(36px, 4vw, 56px); }
.pj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.pj-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; cursor: zoom-in; text-align: left;
  border-radius: 18px; border: 1px solid var(--line); padding: 7% 15% 0 6%;
  background: radial-gradient(90% 80% at 30% 0%, rgba(255,255,255,.07), transparent 60%), var(--pj, var(--bg-2)); }
.pj-laptop { display: block; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); transition: transform 1s var(--ease); }
.pj-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #1f1c19; }
.pj-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3d3731; }
.pj-bar span { margin-left: 10px; font: 400 10px/1 var(--mono); color: #8f897f; letter-spacing: .03em; }
.pj-laptop img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pj-phone { position: absolute; right: 5%; bottom: -7%; width: 21%; aspect-ratio: 390 / 844; padding: 4px; border-radius: 22px; background: #0b0a09;
  box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1); transition: transform .9s var(--spring); }
.pj-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.pj-media:hover .pj-phone { transform: translateY(-12px) rotate(-3deg); }
.pj-media:hover .pj-laptop { transform: translateY(-4px); }
.pj-body { padding-top: 20px; }
.pj-body .card-desc { margin-top: 10px; }
.pj-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pj-link { display: inline-block; margin-top: 14px; padding-bottom: 2px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); border-bottom: 1px solid var(--accent); }
.pj-link:hover { color: var(--accent); }
.pj-media:focus-visible, .pj-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .pj-grid { grid-template-columns: minmax(0, 1fr); }
  .pj-media { padding: 8% 18% 0 6%; }
  .pj-phone { width: 25%; border-radius: 16px; padding: 3px; }
  .pj-phone img { border-radius: 13px; }
}

/* v8 imzoon case */
.imz-card { grid-column: 1 / -1; }
.imz-card-media { aspect-ratio: 21 / 9; display: flex; align-items: center; justify-content: space-between; gap: 4%; padding: 0 7%;
  background: radial-gradient(70% 90% at 80% 20%, #6a5cff 0%, transparent 60%), linear-gradient(135deg, #3D2BE0, #2618b8); }
.card-media .imz-card-logo { position: relative; width: 34%; height: auto; object-fit: contain; transition: none; }
.imz-card-posts { position: relative; width: 46%; height: 100%; display: block; }
.card-media .imz-card-posts img { position: absolute; top: 50%; width: 40%; height: auto; aspect-ratio: 4 / 5; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(10, 6, 60, .45); transition: transform 1s var(--ease); }
.imz-card-posts img:nth-child(1) { left: 0; transform: translateY(-50%) rotate(-8deg); }
.imz-card-posts img:nth-child(2) { left: 30%; transform: translateY(-56%) rotate(2deg); z-index: 2; }
.imz-card-posts img:nth-child(3) { left: 60%; transform: translateY(-48%) rotate(9deg); }
.card:hover .imz-card-posts img:nth-child(1) { transform: translateY(-54%) rotate(-12deg) translateX(-6%); }
.card:hover .imz-card-posts img:nth-child(2) { transform: translateY(-62%) rotate(0deg); }
.card:hover .imz-card-posts img:nth-child(3) { transform: translateY(-52%) rotate(13deg) translateX(6%); }

.imz-cover { aspect-ratio: 16 / 7; display: grid; place-items: center; position: relative; border-radius: var(--radius);
  background: radial-gradient(60% 80% at 75% 20%, rgba(61,43,224,.28), transparent 60%), radial-gradient(50% 70% at 15% 90%, rgba(143,133,255,.35), transparent 60%), #EEECFF; }
.imz-cover-logo { width: min(52%, 640px); height: auto; }
.imz-cover-tags { position: absolute; bottom: 7%; display: flex; gap: 10px; }
.imz-cover-tags span { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #3D2BE0; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px rgba(61,43,224,.12); }

.imz-market { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.imz-market div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.imz-market i { display: block; height: 46px; border-radius: 9px; }
.imz-market b { font-weight: 500; font-size: 15px; }
.imz-market span { font-size: 13px; color: var(--muted); }
.imz-market .me { border-color: #3D2BE0; box-shadow: 0 0 0 1px #3D2BE0 inset; }
.imz-note { font-size: 12px; margin-top: 10px; }

.imz-dirs, .imz-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: clamp(28px, 4vw, 48px) 0; }
.imz-dir figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.imz-dir figcaption b { font: 400 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.imz-tile { aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; padding: 12%; }
.imz-tile img { width: 100%; height: auto; max-height: 100%; }
.imz-logos { grid-template-columns: 1.2fr 1.2fr 1fr; }
.imz-tile-lg img { width: 88%; }
.imz-icons { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 10%; }
.imz-icons img { width: auto; }
.imz-icons img:first-child { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 34px rgba(61,43,224,.3); }

.imz-colour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr; gap: clamp(12px, 1.6vw, 22px); margin: clamp(28px, 4vw, 48px) 0; }
.imz-sw { border-radius: 16px; min-height: 220px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.imz-sw b { font-weight: 500; font-size: 16px; }
.imz-sw span { font: 400 12px var(--mono); opacity: .8; }
.imz-sw[style*="F7F6FB"] { border: 1px solid var(--line); }
.imz-hl { border-radius: 16px; padding: clamp(20px, 3vw, 36px); background: #3D2BE0; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 14px; font-family: 'Geist', sans-serif; }
.imz-hl-tag { align-self: flex-start; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.imz-hl p { font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.imz-hl mark { color: #14123A; background: #fff; padding: 0 .18em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.imz-site { aspect-ratio: 16 / 9; padding: 6% 16% 0 8%; }
.imz-site .pj-phone { width: 17%; }

.imz-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: clamp(28px, 4vw, 48px) 0 10px; }
.imz-posts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.imz-strip button, .imz-posts button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.imz-strip img, .imz-posts img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; transition: transform .8s var(--ease); }
.imz-strip button:hover img, .imz-posts button:hover img { transform: scale(1.04); }
.imz-strip button:focus-visible, .imz-posts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.imz-reel { display: flex; justify-content: center; }
.imz-reel video { width: min(360px, 80vw); height: auto; aspect-ratio: 9 / 16; border-radius: 28px; background: #000; box-shadow: 0 40px 90px rgba(0,0,0,.4); }
.next .h2 a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .imz-card-media { aspect-ratio: 4 / 3; flex-direction: column; justify-content: center; padding: 8% 6%; gap: 6%; }
  .card-media .imz-card-logo { width: 56%; }
  .imz-card-posts { width: 88%; height: 58%; }
  .imz-cover { aspect-ratio: 4 / 3; }
  .imz-cover-logo { width: 74%; }
  .imz-cover-tags { gap: 6px; } .imz-cover-tags span { padding: 7px 10px; font-size: 10px; }
  .imz-market { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imz-dirs { grid-template-columns: minmax(0, 1fr); }
  .imz-logos { grid-template-columns: minmax(0, 1fr); }
  .imz-colour { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .imz-colour .imz-hl { grid-column: 1 / -1; }
  .imz-sw { min-height: 120px; padding: 12px; }
  .imz-strip { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .imz-strip button { scroll-snap-align: start; }
  .imz-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imz-site { aspect-ratio: 4 / 3; padding: 8% 20% 0 6%; }
  .imz-site .pj-phone { width: 25%; }
}
.fig.imz-cover .imz-cover-logo { width: min(52%, 640px); height: auto; background: none; border-radius: 0; }
.fig .pj-media .pj-laptop img { border-radius: 0; background: #fff; }
.fig .pj-media .pj-phone img { border-radius: 18px; }
.fig.imz-reel video { width: min(360px, 80vw); border-radius: 28px; }
@media (max-width: 760px) { .fig.imz-cover .imz-cover-logo { width: 74%; } }
.imz-logos { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.imz-icons img:nth-child(2) { width: 48px; height: 48px; }
.imz-icons img:nth-child(3) { width: 32px; height: 32px; }
.imz-icons img:nth-child(4) { width: 16px; height: 16px; }
.block .imz-note { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .imz-logos { grid-template-columns: minmax(0, 1fr); } }
.imz-card-media { aspect-ratio: 16 / 5; }
.card-media .imz-card-posts img { width: 34%; }
.imz-card-posts img:nth-child(2) { left: 33%; }
.imz-card-posts img:nth-child(3) { left: 66%; }
@media (max-width: 760px) { .imz-card-media { aspect-ratio: 4 / 3; } .card-media .imz-card-posts img { width: 38%; } .imz-card-posts img:nth-child(2) { left: 31%; } .imz-card-posts img:nth-child(3) { left: 62%; } }

/* v9 qadam case */
.imz-card { grid-column: auto; }
.imz-card-media { aspect-ratio: 2 / 1; }
.qd-card-media { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; background: #FF5A1F; }
.card-media .qd-card-logo { width: 72%; height: auto; object-fit: contain; position: relative; z-index: 1; }
.qd-stairs { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 1; display: block; pointer-events: none; }
.qd-stairs i { position: absolute; right: 0; bottom: 0; background: #15161D; }
.qd-stairs i:nth-child(1) { width: 100%; height: 33.4%; }
.qd-stairs i:nth-child(2) { width: 66.7%; height: 66.7%; }
.qd-stairs i:nth-child(3) { width: 33.4%; height: 100%; }
.qd-card .qd-stairs { width: 26%; transition: transform .8s var(--spring); transform-origin: bottom right; }
.qd-card:hover .qd-stairs { transform: scale(1.12); }

.qd-cover { aspect-ratio: 16 / 7; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: var(--radius); background: #F3F3F6; }
.fig.qd-cover .qd-cover-logo { width: min(48%, 600px); height: auto; background: none; border-radius: 0; position: relative; z-index: 1; }
.qd-cover .qd-stairs { width: 20%; }
.qd-cover .qd-stairs i { background: #FF5A1F; }

.qd-wide { aspect-ratio: 16 / 5; margin: clamp(28px, 4vw, 48px) 0; padding: 4% 22%; }
.qd-chosen .imz-tile { box-shadow: 0 0 0 2px #FF5A1F inset; }
.qd-avatars { display: flex; gap: 16px; align-items: center; justify-content: center; }
.imz-tile.qd-avatars img { width: 34%; height: auto; border-radius: 50%; }

.qd-colours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: clamp(28px, 4vw, 48px) 0 16px; }
.qd-colours .imz-sw { min-height: 180px; }
.qd-colours .imz-sw b { font-family: 'Geologica', sans-serif; font-weight: 600; }
.qd-type { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(10px, 1.2vw, 16px); margin-bottom: clamp(28px, 4vw, 48px); }
.qd-type-card { position: relative; overflow: hidden; border-radius: 16px; padding: clamp(22px, 3vw, 40px); background: #FFFFFF; color: #15161D; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.qd-type-dark { background: #15161D; color: #fff; }
.qd-type-dark .qd-stairs { width: 22%; } .qd-type-dark .qd-stairs i { background: #FF5A1F; }
.qd-type-l { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #FF5A1F; }
.qd-geo { font-family: 'Geologica', sans-serif; font-weight: 600; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -0.02em; }
.qd-onest { font-family: 'Onest', sans-serif; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; max-width: 16em; }
.qd-type-s { font-size: 13px; color: #6B6E7A; margin-top: auto; }

.qd-book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: clamp(28px, 4vw, 48px) 0; }
.qd-book button { display: block; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.qd-book img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.qd-book button:hover img { transform: scale(1.03); }
.qd-book button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .imz-card-media { aspect-ratio: 4 / 3; }
  .qd-cover { aspect-ratio: 4 / 3; }
  .fig.qd-cover .qd-cover-logo { width: 72%; }
  .qd-wide { aspect-ratio: 16 / 9; padding: 6% 8%; }
  .qd-colours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qd-colours .imz-sw { min-height: 110px; padding: 12px; }
  .qd-type { grid-template-columns: minmax(0, 1fr); }
  .qd-book { grid-template-columns: minmax(0, 1fr); }
}
.qd-wide { padding: 5% 30%; }
@media (max-width: 760px) { .qd-wide { padding: 6% 12%; } }
.imz-logos { align-items: stretch; }
.imz-logos > .imz-tile:not(.imz-tile-lg) { aspect-ratio: auto; }
@media (max-width: 760px) { .imz-logos > .imz-tile:not(.imz-tile-lg) { aspect-ratio: 4 / 3; } }
@media (max-width: 760px) { .imz-card-posts { height: 48%; margin-top: 6%; } .qd-card-media { aspect-ratio: 4 / 3; } .card-media .qd-card-logo { width: 62%; } .qd-card .qd-stairs { width: 22%; } }

/* v10 mobile menu */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.menu-btn i { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin-left: -8px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease); }
.menu-btn i:nth-child(1) { transform: translateY(-3.5px); }
.menu-btn i:nth-child(2) { transform: translateY(3.5px); }
.menu-open .menu-btn i:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 49; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px clamp(18px, 4vw, 40px) 36px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-link { font: 500 clamp(36px, 10vw, 60px)/1.15 var(--serif); letter-spacing: -0.01em; padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .2s; }
.mnav-link:hover { color: var(--accent); }
.menu-open .mnav-link { opacity: 1; transform: none; }
.menu-open .mnav-link:nth-child(1) { transition-delay: .05s; } .menu-open .mnav-link:nth-child(2) { transition-delay: .09s; }
.menu-open .mnav-link:nth-child(3) { transition-delay: .13s; } .menu-open .mnav-link:nth-child(4) { transition-delay: .17s; }
.menu-open .mnav-link:nth-child(5) { transition-delay: .21s; } .menu-open .mnav-link:nth-child(6) { transition-delay: .25s; }
.mnav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mnav-mail { font: 400 13px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 1180px) { .menu-btn { display: block; } }
@media (max-width: 760px) { .menu-btn { width: 36px; height: 36px; } .mnav { padding-top: 92px; } }
@media (max-width: 360px) { .brand-name { display: none; } }

/* v11: keep arrows as text glyphs on iOS */
body { font-variant-emoji: text; }
.card-title .arrow { font-family: var(--sans); font-size: .55em; font-weight: 400; vertical-align: .4em; margin-left: .1em; }
