/* ==========================================================
   REVICA — landing page
   Palette & type taken from the 2026 portfolio deck
   ========================================================== */

:root {
  --ink: #0e0e12;
  --ink-2: #18181d;
  --ink-3: #24242b;
  --cream: #f3eee8;
  --paper: #fcfaf6;
  --blue: #2340f0;
  --pink: #f4b8cb;
  --lime: #d8f23a;
  --peri: #8c9cff;
  --muted: #6c6b70;
  --line-dark: rgba(243, 238, 232, .18);
  --line-light: rgba(14, 14, 18, .14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --arabic: "IBM Plex Sans Arabic", "DM Sans", sans-serif;

  --gutter: clamp(16px, 5vw, 96px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- utilities ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.serif em, .italic { font-style: italic; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lime { color: var(--lime); }
.blue { color: var(--blue); }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { margin-bottom: 22px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 96px); line-height: .95; letter-spacing: -.015em; }
.body-lg { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; max-width: 36ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line-dark); }
.btn--ghost:hover { background: rgba(243, 238, 232, .08); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.link-btn { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; opacity: .7; }
.link-btn:hover { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, color .4s;
}
.nav.is-solid { background: rgba(14, 14, 18, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .32em; font-size: 15px; }
.nav__brand img { width: 34px; height: auto; border-radius: 6px; }
.nav__chapter { color: rgba(243, 238, 232, .6); font-size: 12px; }
.nav__chapter #chapterNum { color: var(--lime); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links > a:not(.btn) { opacity: .75; transition: opacity .2s; }
.nav__links > a:not(.btn):hover { opacity: 1; }
.nav__links .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 120px var(--gutter) 72px;
  max-width: 1600px; margin: 0 auto;
}
.hero__title { font-size: clamp(68px, 9.6vw, 172px); line-height: .88; letter-spacing: -.02em; margin-bottom: 32px; }
.hero__title .line { display: block; }
.hero__title .ch {
  display: inline-block;
  animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms + 250ms);
  transition: color .3s, transform .4s var(--ease);
}
.hero__title .ch:hover { color: var(--lime); }
.hero__title .ch.is-pink:hover { color: var(--pink); }
.hero__title .ch.is-blue:hover { color: var(--peri); }
@keyframes rise { from { opacity: 0; transform: translateY(.45em) rotate(4deg); } }
.hero__lede { font-size: clamp(17px, 1.5vw, 21px); color: rgba(243, 238, 232, .78); max-width: 34ch; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; aspect-ratio: 1 / .96; justify-self: center; width: 100%; max-width: 660px; perspective: 1200px; }
.hero__frame {
  position: absolute; inset: 0 0 auto; aspect-ratio: 1600 / 1024; border-radius: 22px; overflow: hidden;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .6s var(--ease);
  box-shadow: 0 40px 120px -30px rgba(35, 64, 240, .55), 0 0 0 1px rgba(243, 238, 232, .06);
  clip-path: inset(0 0 100% 0 round 22px);
  animation: unveil 1.4s var(--ease) .15s forwards;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(var(--px, 0), var(--py, 0)); transition: transform .6s var(--ease); }
.hero__card {
  position: absolute; border-radius: 16px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(243, 238, 232, .08);
  transform: translate(var(--cx, 0), var(--cy, 0)) rotate(var(--cr));
  animation: cardIn 1s var(--ease) backwards; transition: transform .6s var(--ease);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--a { --cr: -6deg; left: 2%; bottom: 0; width: 36%; aspect-ratio: 612 / 564; animation-delay: .55s; }
.hero__card--b { --cr: 3deg; right: -2%; bottom: 5%; width: 52%; aspect-ratio: 580 / 332; animation-delay: .7s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(60px) rotate(0deg); } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 22px); } }

.stickers { position: absolute; inset: 0; }
.sticker {
  position: absolute; left: var(--x); top: var(--y);
  transform: rotate(var(--r)) scale(var(--s, 1));
  padding: .32em .7em .36em; border-radius: 999px;
  background: rgba(243, 238, 232, .92); color: var(--ink);
  font-family: var(--serif); font-size: clamp(22px, 2.5vw, 38px); line-height: 1;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  cursor: grab; touch-action: none; user-select: none;
  animation: pop .7s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms + 900ms);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.sticker span { font-family: var(--sans); font-size: .7em; vertical-align: .1em; }
.sticker:hover { --s: 1.06; background: var(--lime); }
.sticker.is-dragging { --s: 1.12; cursor: grabbing; z-index: 5; background: var(--lime); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7); transition: background-color .2s; }
@keyframes pop { from { opacity: 0; transform: rotate(var(--r)) scale(.6); } }
.hero__hint { position: absolute; left: 0; right: 0; bottom: -40px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: rgba(243, 238, 232, .55); }

/* ---------- marquee ---------- */
.marquee { background: var(--blue); color: var(--cream); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0, 0, 0, .2); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); line-height: 1; white-space: nowrap; }
.marquee__track .ar { font-family: var(--arabic); font-size: .78em; color: var(--lime); align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section shells ---------- */
.section { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--blue { background: var(--blue); color: var(--cream); }
.section--pink { background: var(--pink); color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 01 about ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about .h2 { margin-bottom: 28px; }
.about .body-lg { color: #45444a; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.facts > div { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.facts dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 18px; font-weight: 500; }
.ar-inline { font-family: var(--arabic); }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.55fr 1fr; gap: 14px; aspect-ratio: 1 / 1.05; }
.mosaic figure { border-radius: 16px; overflow: hidden; background: var(--ink); }
.mosaic__a { grid-column: 1 / -1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic__b img { filter: saturate(1.1); }

/* ---------- 02 verbs ---------- */
.verbs__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: 56px; }
.verbs__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.verbs__sentence { font-size: clamp(22px, 2.4vw, 34px); color: rgba(243, 238, 232, .9); text-align: right; min-height: 1.3em; }
.verbs__word { display: inline-block; color: var(--lime); font-style: italic; transition: color .3s; }
.verbs__word.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(.4em); filter: blur(4px); } }
.muted-ink { color: rgba(243, 238, 232, .5); }

.verbs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verb {
  --accent: var(--blue);
  position: relative; overflow: hidden;
  background: var(--ink-2); border-radius: var(--radius); padding: 28px 26px 34px;
  border-top: 4px solid var(--accent);
  min-height: 240px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .5s var(--ease), background-color .4s;
}
.verb[data-accent="pink"] { --accent: var(--pink); }
.verb[data-accent="lime"] { --accent: var(--lime); }
.verb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.verb:hover { transform: translateY(-6px); background: var(--ink-3); }
.verb:hover::before { opacity: 1; }
.verb__n { position: absolute; top: 24px; right: 24px; color: rgba(243, 238, 232, .35); font-size: 12px; }
.verb p { color: rgba(243, 238, 232, .78); max-width: 32ch; position: relative; }

.pill {
  position: relative; align-self: flex-start;
  display: inline-grid; place-items: center;
  background: var(--cream); color: var(--ink); border-radius: 999px;
  padding: 6px 22px 8px; font-family: var(--serif); font-size: 32px; line-height: 1.1;
  overflow: hidden;
}
.pill > span { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .4s; }
.pill__ar { font-family: var(--arabic); font-size: .72em; font-weight: 500; transform: translateY(120%); opacity: 0; }
.verb:hover .pill__en { transform: translateY(-120%); opacity: 0; }
.verb:hover .pill__ar { transform: none; opacity: 1; }
.verb:hover .pill { background: var(--accent); }
.verb[data-accent="blue"]:hover .pill { color: var(--cream); }

/* ---------- 03 AI ---------- */
.ai__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai .h2 { margin-bottom: 28px; }
.ai .body-lg { color: rgba(243, 238, 232, .88); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tags li { border: 1.5px solid var(--cream); border-radius: 999px; padding: 8px 16px; font-size: 12px; text-transform: none; letter-spacing: .02em; }

.agent { position: relative; padding: 0 0 0 clamp(0px, 8vw, 120px); }
.agent__portrait {
  position: absolute; left: 0; top: -40px; width: 52%; aspect-ratio: 1031 / 1572; object-fit: cover;
  border-radius: var(--radius); transform: rotate(-4deg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.agent__window {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--cream); border-radius: 20px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; min-height: 520px; overflow: hidden;
  margin-top: 80px;
}
.agent__window[dir="rtl"], .agent__window[dir="rtl"] .agent__note { font-family: var(--arabic); }
.agent__bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); direction: ltr; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.dots i:nth-child(2) { background: var(--lime); }
.dots i:nth-child(3) { background: var(--blue); }
.agent__title { font-size: 11px; color: rgba(243, 238, 232, .55); text-transform: none; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent__live { color: var(--lime); }
.agent__live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.lang { display: inline-flex; background: var(--ink-3); border-radius: 999px; padding: 3px; }
.lang__btn { min-width: 38px; padding: 5px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; color: rgba(243, 238, 232, .7); transition: background-color .25s, color .25s; }
.lang__btn[data-lang="ar"] { font-family: var(--arabic); font-size: 14px; line-height: 1; }
.lang__btn.is-on { background: var(--cream); color: var(--ink); }

.agent__log { flex: 1; padding: 22px 18px 10px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 420px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; animation: msgIn .45s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg--user { align-self: flex-end; background: var(--blue); border-end-end-radius: 4px; }
.msg--bot { align-self: flex-start; background: var(--ink-2); border-end-start-radius: 4px; border: 1px solid var(--line-dark); }
.msg--bot strong { color: var(--lime); font-weight: 500; }
.msg__next { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-dark); color: rgba(243, 238, 232, .85); }
.msg__next b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); font-weight: 400; margin-inline-end: 8px; }
.agent__window[dir="rtl"] .msg__next b { font-family: var(--arabic); font-size: 13px; letter-spacing: 0; }
.typing { display: inline-flex; gap: 4px; padding: 16px 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 238, 232, .6); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }

.bars { margin-top: 12px; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 9.5em 1fr 3em; align-items: center; gap: 10px; font-size: 13px; color: rgba(243, 238, 232, .75); }
.bar__track { display: block; height: 10px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--lime); transition: width 1.1s var(--ease); }
.bar:nth-child(2) .bar__fill { background: var(--pink); }
.bar:nth-child(3) .bar__fill { background: var(--peri); }
.bar:nth-child(4) .bar__fill { background: rgba(243, 238, 232, .5); }
.bar__v { font-family: var(--mono); font-size: 12px; text-align: end; }
.stats { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--ink-3); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--cream); }
.stat span { font-size: 12px; color: rgba(243, 238, 232, .6); }
.score { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.score__ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--ink-3) 0); transition: --p 1.2s; }
.score__ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

.agent__prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--line-dark); }
.prompt {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark);
  font-size: 13px; color: rgba(243, 238, 232, .85); transition: background-color .2s, border-color .2s, color .2s;
}
.prompt:hover:not(:disabled) { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.prompt:disabled { opacity: .4; cursor: default; }
.agent__note { padding: 4px 16px 14px; font-size: 10px; color: rgba(243, 238, 232, .4); text-transform: none; letter-spacing: .02em; }

/* ---------- 04 work ---------- */
.work__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.work__head { position: sticky; top: 110px; }
.work__title { font-size: clamp(80px, 11vw, 176px); line-height: .85; letter-spacing: -.02em; }
.work__title em { display: block; }
.work__jumper { width: min(100%, 360px); aspect-ratio: 1190 / 1572; object-fit: cover; border-radius: var(--radius); margin-top: 40px; transform: rotate(2deg); transition: transform .8s var(--ease); }
.work__head:hover .work__jumper { transform: rotate(-1deg) translateY(-8px); }

.projects { border-top: 1.5px solid var(--ink); margin-top: 8px; }
.project { border-bottom: 1.5px solid var(--ink); }
.project__row {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 16px;
  padding: 26px 0; text-align: left; transition: padding .4s var(--ease);
}
.project__row:hover { padding-inline: 12px; }
.project__name { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; transition: font-style .2s; }
.project__row:hover .project__name, .project.is-open .project__name { font-style: italic; }
.project__tag { font-size: 12px; text-align: right; }
.project__plus { position: relative; width: 28px; height: 28px; justify-self: end; }
.project__plus::before, .project__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.project__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.project.is-open .project__plus::after { transform: translate(-50%, -50%) rotate(0); }
.project__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.project.is-open .project__body { grid-template-rows: 1fr; }
.project__body > div { overflow: hidden; padding-left: 72px; }
.project__body p:first-child { max-width: 52ch; font-size: 18px; padding-top: 4px; }
.project__body .label { margin: 24px 0 10px; color: rgba(14, 14, 18, .6); font-size: 12px; }
.project__body ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project__body li { background: rgba(255, 255, 255, .45); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.project__body > div > :last-child { margin-bottom: 32px; }
.ulink { text-decoration: underline; text-underline-offset: 4px; font-weight: 500; text-transform: none; font-size: 15px; letter-spacing: 0; display: inline-block; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 340px; border-radius: 14px; overflow: hidden; background: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.85) rotate(-3deg);
  transition: opacity .3s, transform .5s var(--ease);
}
.peek.is-on { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) scale(1) rotate(-3deg); }
.peek__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(243, 238, 232, .6); }
.peek__bar .mono { font-size: 11px; text-transform: none; letter-spacing: .02em; }
.peek__screen { --accent: var(--blue); margin: 0 10px 10px; border-radius: 8px; height: 190px; background: var(--ink-3); position: relative; overflow: hidden; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.peek__screen::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: var(--accent); filter: blur(10px); opacity: .9; }
.peek__name { position: relative; font-size: 38px; line-height: 1; color: var(--cream); }
.peek__blocks { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.peek__blocks i { height: 40px; border-radius: 6px; background: rgba(243, 238, 232, .1); }
.peek__blocks i:first-child { background: var(--accent); opacity: .5; }

/* ---------- 05 promises ---------- */
.promises .h2 { margin-bottom: 64px; }
.promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { border-top: 1px solid var(--cream); padding-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.promise__n { font-size: clamp(72px, 7vw, 108px); line-height: .9; color: var(--c); margin-bottom: 16px; }
.promise h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.promise p { color: rgba(243, 238, 232, .72); }
.promise__demo { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--c) !important; display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: .02em; }
.promise:first-child .promise__demo { font-family: var(--sans); font-size: 15px; }
.promise:first-child .promise__demo span { padding: 4px 10px; border: 1px solid currentColor; border-radius: 99px; }
.promise:first-child .promise__demo [lang="ar"] { font-family: var(--arabic); }
.meter { width: 80px; height: 6px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; transition: width 1.6s var(--ease) .4s; }
.promise.is-in .meter i { width: 92%; }
.cursor::after { content: "▌"; margin-left: 2px; animation: blink 1s steps(1) infinite; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(140px, 18vw, 260px) 0 40px; min-height: 100svh; display: flex; align-items: flex-end; }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: auto; min-height: 320px; object-fit: cover; object-position: center top; transform: translateY(var(--cy, 0)); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 18, .1) 0%, rgba(14, 14, 18, .35) 18%, var(--ink) 42%); }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(56px, 8.6vw, 148px); line-height: .9; letter-spacing: -.02em; margin-bottom: 64px; }
.contact__title em { display: block; }
.contact__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact__rows a { border-top: 1px solid var(--lime); padding: 18px 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: clamp(18px, 1.6vw, 22px); transition: color .25s, padding .4s var(--ease); }
.contact__rows a .mono { font-size: 12px; }
.contact__rows a:hover { color: var(--lime); padding-left: 8px; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 96px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 11px; color: rgba(243, 238, 232, .5); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(360px, calc(100vw - 32px));
  background: var(--ink-2); color: var(--cream); border: 1px solid var(--line-dark); border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.toast.is-on { transform: none; opacity: 1; }
.toast p.mono { font-size: 11px; margin-bottom: 6px; }
.toast p:not(.mono) { font-size: 15px; color: rgba(243, 238, 232, .85); }
.toast__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__chapter { display: none; }
  .verbs__grid { grid-template-columns: repeat(2, 1fr); }
  .promises__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .verbs__head { grid-template-columns: 1fr; }
  .verbs__sentence { text-align: left; }
}

@media (max-width: 860px) {
  .nav__links > a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 40px; }
  .hero__art { max-width: 480px; margin-bottom: 40px; }
  .about__grid, .ai__grid, .work__grid { grid-template-columns: 1fr; }
  .work__head { position: static; }
  .work__jumper { display: none; }
  .agent { padding-left: 0; }
  .agent__portrait { display: none; }
  .agent__window { margin-top: 0; min-height: 460px; }
  .contact__rows { grid-template-columns: 1fr; }
  .peek { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__brand span { display: none; }
  .facts { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .verbs__grid, .promises__grid { grid-template-columns: 1fr; }
  .verb { min-height: 0; }
  .project__row { grid-template-columns: 32px 1fr 28px; gap: 10px; }
  .project__tag { display: none; }
  .project__body > div { padding-left: 42px; }
  .hero__hint { flex-direction: column; gap: 6px; bottom: -56px; }
  .bar { grid-template-columns: 7.5em 1fr 2.6em; font-size: 12px; }
  .stat b { font-size: 24px; }
  .msg { max-width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
}
