/* =========================================================
   otto creative — Brand Guidelines
   Design system: tokens, base, components, sections
   ========================================================= */

/* ---------- Custom Font: Lyon Arabic Display ---------- */
@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../assets/fonts/LyonArabicDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../assets/fonts/LyonArabicDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../assets/fonts/LyonArabicDisplay-Medium.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../assets/fonts/LyonArabicDisplay-Bold.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../assets/fonts/LyonArabicDisplay-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --tomato: #FF4B2B;
  --tomato-deep: #E03A1C;
  --ink: #141414;
  --ink-soft: #2A2A2A;
  --cream: #F5EFE6;
  --cream-deep: #EAE1D3;
  --lime: #D4FF3A;
  --butter: #FFD23F;
  --kraft: #C9A074;

  /* Type */
  --f-display-ar: 'Lyon Arabic Display', 'Alexandria', 'Unbounded', serif;
  --f-display-lat: 'Unbounded', 'Alexandria', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --f-lat: 'Inter', system-ui, sans-serif;

  /* Scale */
  --radius-s: 10px;
  --radius-m: 20px;
  --radius-l: 36px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;

  /* Motion */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
use { fill: currentColor; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.lat { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; }
.lat-display { font-family: var(--f-display-lat); direction: ltr; unicode-bidi: isolate; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(92px, 12vw, 168px); position: relative; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--tomato { background: var(--tomato); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display-lat); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; direction: ltr;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor;
  margin-bottom: 30px;
}
.eyebrow::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--tomato);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 38%, #000 40%);
          mask: radial-gradient(circle at 100% 0, transparent 38%, #000 40%);
}
.section--tomato .eyebrow::before { background: var(--ink); }

.h-display {
  font-family: var(--f-display-ar); font-weight: 700;
  font-size: clamp(42px, 7vw, 104px); line-height: 1.38; letter-spacing: 0; word-spacing: .04em;
}
.h-section {
  font-family: var(--f-display-ar); font-weight: 700;
  font-size: clamp(36px, 5.2vw, 72px); line-height: 1.42; margin-bottom: 28px; word-spacing: .04em;
}
.h-card {
  font-family: var(--f-display-ar); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.48; margin-bottom: 6px;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 60ch; line-height: 1.9; opacity: .88; }
.hl { background: var(--lime); color: var(--ink); padding: 0 .22em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-tomato { color: var(--tomato); }

.section-head { margin-bottom: clamp(56px, 7vw, 88px); }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--ink); color: var(--cream);
  transition: transform .35s var(--ease-pop), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 10px 0 -2px var(--tomato); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); box-shadow: 0 10px 0 -2px var(--lime); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { box-shadow: 0 10px 0 -2px var(--tomato); }
.btn .arrow { transition: transform .3s var(--ease-pop); display: inline-block; }
.btn:hover .arrow { transform: translateX(-6px); }

.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid currentColor;
  font-size: 14px; font-weight: 500; transition: all .25s var(--ease-out);
}
.chip.is-active, .chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--ink .chip.is-active, .section--ink .chip:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 16px var(--pad) auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(245, 239, 230, .84);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(20, 20, 20, .08);
  transition: transform .5s var(--ease-out), box-shadow .3s, border-radius .3s;
  max-width: var(--max); margin-inline: auto;
}
.nav.is-scrolled { box-shadow: 0 12px 40px -18px rgba(20, 20, 20, .35); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav__brand svg { height: 26px; width: auto; color: var(--ink); }
.nav__links { display: flex; gap: 6px; list-style: none; }
.nav__links a {
  display: flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(20, 20, 20, .07); }
.nav__links a.is-active { background: var(--ink); color: var(--cream); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { padding: 10px 18px; font-size: 14px; min-height: 44px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: transform .3s var(--ease-pop), background .2s;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav__toggle.is-active { background: var(--tomato); color: var(--ink); }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; background: var(--tomato); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 144px 80px; position: relative; overflow: hidden;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  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");
}
.hero__top {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 36px;
  margin-bottom: 44px; padding-bottom: 32px; border-bottom: 2px solid rgba(20, 20, 20, .16);
}
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__badges .eyebrow { margin-bottom: 0; background: rgba(245, 239, 230, .2); }
.hero__live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
}
.hero__live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(212, 255, 58, .28); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .75; }
}
.hero__kicker {
  font-family: var(--f-body); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px);
  max-width: 56ch; line-height: 1.95; letter-spacing: .01em; justify-self: end;
}
.hero__kicker b {
  background: var(--lime); color: var(--ink); padding: 2px 10px; border-radius: 6px; font-weight: 700;
}
.hero__logo-wrap { position: relative; cursor: pointer; direction: ltr; margin-block: 12px 48px; }
.hero__logo { width: 100%; height: auto; color: var(--ink); transform-origin: 80% 30%; }
.hero__logo.is-crunch { animation: crunch .42s var(--ease-out); }
@keyframes crunch {
  0% { transform: none; }
  25% { transform: translate(2px, 3px) rotate(.6deg) scale(.995); }
  50% { transform: translate(-2px, -1px) rotate(-.4deg); }
  100% { transform: none; }
}
.hero__hint {
  position: absolute; top: 4%; right: 2%;
  font-family: var(--f-body); font-size: 14px; font-weight: 600;
  background: var(--cream); padding: 6px 14px; border-radius: 999px;
  transform: rotate(6deg); opacity: 0; transition: opacity .3s, transform .4s var(--ease-pop);
  direction: rtl;
}
.hero__logo-wrap:hover .hero__hint { opacity: 1; transform: rotate(-4deg) translateY(-6px); }

.crumb {
  position: absolute; width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  background: var(--ink); pointer-events: none; z-index: 5;
  animation: crumb .9s var(--ease-out) forwards;
}
@keyframes crumb {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3) rotate(160deg); opacity: 0; }
}

.hero__bottom {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 20px;
}
.hero__tagline {
  font-family: var(--f-display-ar); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 62px); line-height: 1.5; word-spacing: .05em;
}
.hero__tagline .lat-display {
  display: block; font-size: clamp(15px, 1.5vw, 22px); font-weight: 600;
  margin-top: 24px; line-height: 1.6; letter-spacing: .03em; opacity: .88;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

/* Hero Journey Strip (First-Moment Clarity) */
.hero__journey {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding-top: 40px; border-top: 2px solid rgba(20, 20, 20, .18);
}
.journey-step {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px;
  border-radius: var(--radius-m); background: rgba(245, 239, 230, .24);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .35s var(--ease-pop), background .25s, color .25s, box-shadow .25s;
}
.journey-step:hover {
  transform: translateY(-4px) rotate(-.8deg);
  background: var(--ink); color: var(--cream); box-shadow: 7px 7px 0 var(--lime);
}
.journey-step--highlight { background: var(--cream); }
.journey-step__num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime);
  font-family: var(--f-display-lat); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; transition: background .25s, color .25s;
}
.journey-step:hover .journey-step__num { background: var(--lime); color: var(--ink); }
.journey-step b {
  display: block; font-family: var(--f-display-ar); font-weight: 700;
  font-size: 20px; line-height: 1.45; margin-bottom: 6px;
}
.journey-step small { display: block; font-size: 13.5px; line-height: 1.6; opacity: .85; }

.badge {
  width: clamp(120px, 13vw, 168px); aspect-ratio: 1; position: relative; flex-shrink: 0;
}
.badge__ring { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge__ring text { font-family: var(--f-display-lat); font-weight: 700; font-size: 11.5px; letter-spacing: .2em; fill: var(--ink); }
.badge__core { position: absolute; inset: 30%; color: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding-block: 26px; border-block: 3px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; direction: ltr; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 36px; padding-inline: 18px;
  font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.4; white-space: nowrap;
}
.marquee__item .dot { width: 26px; height: 26px; color: var(--lime); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Idea ---------- */
.idea-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.mirror-stage {
  background: var(--cream); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 56px);
  border: 2px solid var(--ink); position: relative; box-shadow: 10px 10px 0 var(--ink);
}
.mirror-stage__logo { color: var(--ink); transition: transform .9s var(--ease-pop); direction: ltr; }
.mirror-stage__logo.is-flipped { transform: scaleX(-1); }
.mirror-stage__axis {
  position: absolute; top: 18px; bottom: 18px; left: 50%; width: 0;
  border-left: 2px dashed var(--tomato); opacity: .7;
}
.mirror-stage__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.mirror-stage__caption { font-size: 15.5px; font-weight: 500; line-height: 1.7; }

.facts { display: grid; gap: 18px; }
.fact {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  padding: 26px; border-radius: var(--radius-m); background: var(--cream-deep);
  transition: transform .4s var(--ease-pop), background .3s;
}
.fact:hover { transform: translateX(-8px); background: var(--lime); }
.fact__icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-family: var(--f-display-lat); font-weight: 800; font-size: 22px;
}
.fact p { font-size: 16px; line-height: 1.75; opacity: .82; margin-top: 6px; }

.big-idea {
  margin-top: clamp(56px, 7vw, 96px); padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-l);
  background: var(--ink); color: var(--cream); display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  position: relative; overflow: hidden;
}
.big-idea__mark { width: clamp(100px, 14vw, 180px); color: var(--tomato); }
.big-idea__mark svg { animation: wobble 6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.big-idea blockquote { font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.5; word-spacing: .04em; }
.big-idea ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.big-idea li { padding: 10px 18px; border-radius: 999px; background: rgba(245, 239, 230, .1); font-size: 15.5px; line-height: 1.5; }
.big-idea li b { color: var(--lime); font-weight: 600; }

/* ---------- Core ---------- */
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.core-card {
  padding: clamp(30px, 3.5vw, 48px); border-radius: var(--radius-l); border: 1.5px solid rgba(245, 239, 230, .18);
  position: relative; overflow: hidden; transition: border-color .3s, transform .4s var(--ease-pop);
}
.core-card:hover { border-color: var(--lime); transform: translateY(-6px); }
.core-card__label { font-family: var(--f-display-lat); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); direction: ltr; text-align: right; display: block; margin-bottom: 18px; }
.core-card p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.85; opacity: .92; }
.core-card--promise { grid-column: 1 / -1; background: var(--tomato); color: var(--ink); border-color: var(--tomato); }
.core-card--promise .core-card__label { color: var(--ink); }
.core-card--promise p { font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.48; opacity: 1; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.value {
  padding: 30px; border-radius: var(--radius-m); background: var(--ink-soft); position: relative;
  transition: transform .45s var(--ease-pop), background .3s, color .3s;
}
.value:hover { transform: rotate(-2deg) translateY(-8px); background: var(--lime); color: var(--ink); }
.value__num { font-family: var(--f-display-lat); font-weight: 900; font-size: 56px; line-height: 1; color: var(--tomato); direction: ltr; text-align: right; display: block; margin-bottom: 20px; }
.value p { font-size: 15.5px; line-height: 1.75; opacity: .82; margin-top: 10px; }

/* ---------- Audience ---------- */
.persona {
  display: grid; grid-template-columns: 340px 1fr; border-radius: var(--radius-l); overflow: hidden;
  border: 2px solid var(--ink); background: var(--cream); box-shadow: 12px 12px 0 var(--ink);
}
.persona__side { background: var(--butter); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.persona__avatar {
  width: 120px; height: 120px; border-radius: 50%; background: var(--ink); color: var(--butter);
  display: grid; place-items: center; font-family: var(--f-display-ar); font-weight: 700; font-size: 56px;
  -webkit-mask: radial-gradient(circle at 92% 18%, transparent 15%, #000 15.5%);
          mask: radial-gradient(circle at 92% 18%, transparent 15%, #000 15.5%);
}
.persona__name { font-family: var(--f-display-ar); font-weight: 700; font-size: 34px; line-height: 1.4; }
.persona__meta { display: grid; gap: 10px; font-size: 15px; line-height: 1.65; }
.persona__meta span { display: flex; gap: 8px; flex-wrap: wrap; }
.persona__meta b { font-weight: 600; }
.persona__body { padding: 42px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.persona__block h4 { font-family: var(--f-display-ar); font-weight: 700; font-size: 21px; line-height: 1.4; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.persona__block h4 i { width: 12px; height: 12px; border-radius: 50%; background: var(--tomato); display: inline-block; }
.persona__block p { font-size: 16px; line-height: 1.8; opacity: .85; }
.persona__quote {
  grid-column: 1 / -1; font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px);
  padding: 26px 32px; background: var(--ink); color: var(--cream); border-radius: var(--radius-m); line-height: 1.55;
}
.persona__quote span { color: var(--lime); }
.segments { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }
.segments__label { font-weight: 600; margin-left: 8px; }

/* ---------- Logo ---------- */
.logo-stage {
  border-radius: var(--radius-l); padding: clamp(40px, 8vw, 120px) clamp(24px, 6vw, 100px);
  background: var(--cream); color: var(--ink); position: relative; border: 2px solid var(--ink);
  transition: background .5s var(--ease-out), color .5s var(--ease-out);
}
.logo-stage[data-bg="ink"] { background: var(--ink); color: var(--cream); }
.logo-stage[data-bg="tomato"] { background: var(--tomato); color: var(--ink); }
.logo-stage[data-bg="lime"] { background: var(--lime); color: var(--ink); }
.logo-stage__art { position: relative; max-width: 820px; margin-inline: auto; direction: ltr; }
.logo-stage__art > svg { width: 100%; height: auto; }
.logo-grid {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity .4s; color: var(--tomato);
}
.logo-stage[data-bg="tomato"] .logo-grid { color: var(--cream); }
.logo-stage.show-grid .logo-grid { opacity: 1; }
.logo-stage.show-grid .logo-stage__art > svg { opacity: .22; }
.logo-stage__art > svg { transition: opacity .4s; }
.logo-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.logo-controls__group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink);
  transition: transform .3s var(--ease-pop), box-shadow .2s;
}
.swatch-btn:hover { transform: scale(1.12); }
.swatch-btn.is-active { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }

.logo-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.variant {
  border-radius: var(--radius-m); padding: 36px 28px 24px; display: flex; flex-direction: column; gap: 24px;
  min-height: 300px; justify-content: space-between; transition: transform .4s var(--ease-pop);
}
.variant:hover { transform: translateY(-6px); }
.variant__art { flex: 1; display: grid; place-items: center; }
.variant__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.variant__caption b { font-family: var(--f-display-ar); font-weight: 800; font-size: 17px; }
.variant--ink { background: var(--ink); color: var(--cream); }
.variant--tomato { background: var(--tomato); color: var(--ink); }
.variant--cream { background: var(--cream-deep); color: var(--ink); }

.lockup { display: flex; align-items: center; gap: 14px; direction: ltr; }
.lockup svg { height: 64px; width: auto; }
.lockup__text { font-family: var(--f-display-lat); font-weight: 800; font-size: 34px; line-height: .9; letter-spacing: -.02em; }
.lockup__text small { display: block; font-weight: 400; font-size: 15px; letter-spacing: .08em; margin-top: 6px; }

.ar-lockup { display: flex; align-items: center; gap: 16px; direction: rtl; }
.ar-lockup svg { width: 76px; color: var(--ink); }
.ar-lockup__name { font-family: var(--f-display-ar); font-weight: 900; font-size: 64px; line-height: 1; }
.ar-lockup__name small { display: block; font-weight: 400; font-size: 18px; margin-top: 8px; letter-spacing: .02em; }

.logo-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rule-card { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 32px; background: var(--cream); }
.rule-card h3 { margin-bottom: 8px; }
.rule-card > p { font-size: 15px; opacity: .8; margin-bottom: 24px; }
.clearspace { position: relative; padding: 34px; border: 2px dashed var(--tomato); border-radius: 12px; direction: ltr; }
.clearspace svg { width: 100%; height: auto; color: var(--ink); }
.clearspace__x {
  position: absolute; background: rgba(255, 75, 43, .14); color: var(--tomato);
  font-family: var(--f-display-lat); font-weight: 700; font-size: 12px; display: grid; place-items: center;
}
.clearspace__x--t { top: 0; left: 0; right: 0; height: 34px; }
.clearspace__x--b { bottom: 0; left: 0; right: 0; height: 34px; }
.clearspace__x--l { top: 34px; bottom: 34px; left: 0; width: 34px; }
.clearspace__x--r { top: 34px; bottom: 34px; right: 0; width: 34px; }
.minsize { display: flex; align-items: flex-end; gap: 36px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.minsize figure { display: grid; gap: 10px; justify-items: center; }
.minsize figcaption { font-family: var(--f-lat); font-size: 13px; opacity: .7; }

.donts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.dont { border-radius: var(--radius-m); background: var(--cream-deep); padding: 28px 20px 18px; position: relative; overflow: hidden; }
.dont__art { height: 90px; display: grid; place-items: center; direction: ltr; }
.dont__art svg { height: 54px; width: auto; color: var(--ink); }
.dont p { font-size: 14px; font-weight: 500; margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.dont p::before {
  content: '✕'; width: 22px; height: 22px; border-radius: 50%; background: var(--tomato); color: var(--cream);
  display: grid; place-items: center; font-size: 11px; flex-shrink: 0;
}
.dont--stretch svg { transform: scaleX(1.5) scaleY(.75); }
.dont--rotate svg { transform: rotate(-18deg); }
.dont--gradient svg { color: transparent; }
.dont--outline svg use { fill: none; stroke: var(--ink); stroke-width: 3; }

/* ---------- Colors ---------- */
.palette { display: grid; grid-template-columns: 2fr 2fr 1.4fr 1fr 1fr; gap: 14px; min-height: 440px; }
.color {
  border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  text-align: right; position: relative; overflow: hidden; border: 2px solid transparent;
  transition: transform .45s var(--ease-pop), flex .4s;
}
.color:hover { transform: translateY(-10px) rotate(-1deg); }
.color:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.color__role { font-size: 13px; font-weight: 600; opacity: .75; }
.color__name { font-family: var(--f-display-ar); font-weight: 900; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.color__codes { font-family: var(--f-lat); font-size: 13px; direction: ltr; text-align: left; display: grid; gap: 2px; margin-top: 12px; opacity: .85; }
.color__codes b { font-family: var(--f-display-lat); font-size: 17px; font-weight: 700; }
.color__copy {
  position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(20, 20, 20, .12); opacity: 0; transform: translateY(-6px); transition: all .3s var(--ease-out);
}
.color:hover .color__copy { opacity: 1; transform: none; }
.color--tomato { background: var(--tomato); color: var(--ink); }
.color--ink { background: var(--ink); color: var(--cream); border-color: rgba(245, 239, 230, .15); }
.color--ink .color__copy { background: rgba(245, 239, 230, .15); }
.color--cream { background: var(--cream); color: var(--ink); }
.color--lime { background: var(--lime); color: var(--ink); }
.color--butter { background: var(--butter); color: var(--ink); }

.ratio { margin-top: 56px; }
.ratio__bar { display: flex; height: 76px; border-radius: 999px; overflow: hidden; border: 2px solid rgba(245, 239, 230, .2); }
.ratio__bar > div {
  display: grid; place-items: center; font-family: var(--f-display-lat); font-weight: 800; font-size: 18px; direction: ltr;
  transition: flex .6s var(--ease-pop);
}
.ratio__bar:hover > div:hover { flex-grow: 1.3 !important; }
.ratio__legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-size: 15px; opacity: .85; }

.pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.pair {
  border-radius: var(--radius-m); padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--f-display-ar); font-weight: 900; font-size: 30px;
}
.pair small { font-family: var(--f-body); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pair .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }

/* ---------- Typography ---------- */
.type-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specimen { border-radius: var(--radius-l); padding: clamp(32px, 4vw, 52px); position: relative; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; }
.specimen--ar { background: var(--ink); color: var(--cream); }
.specimen--lat { background: var(--tomato); color: var(--ink); direction: ltr; text-align: left; }
.specimen__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; opacity: .8; }
.specimen__name { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.3; margin-block: 18px 8px; }
.specimen--ar .specimen__name { font-family: var(--f-display-ar); font-weight: 700; }
.specimen--lat .specimen__name { font-family: var(--f-display-lat); font-weight: 900; }
.specimen__glyph { font-size: clamp(120px, 16vw, 220px); line-height: .9; position: absolute; opacity: .12; bottom: -0.05em; }
.specimen--ar .specimen__glyph { font-family: var(--f-display-ar); font-weight: 700; left: 24px; }
.specimen--lat .specimen__glyph { font-family: var(--f-display-lat); font-weight: 900; right: 24px; }
.specimen__chars { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.8; position: relative; word-break: break-word; }
.specimen--ar .specimen__chars { font-family: var(--f-display-ar); font-weight: 500; }
.specimen--lat .specimen__chars { font-family: var(--f-display-lat); font-weight: 400; }
.weights { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; }
.weights span { padding: 5px 14px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; }

.body-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.body-font { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 34px; }
.body-font__name { font-weight: 600; font-size: 22px; margin-bottom: 14px; }
.body-font p { font-size: 16px; line-height: 1.85; opacity: .85; }
.body-font--lat { direction: ltr; text-align: left; font-family: var(--f-lat); }

.tester { margin-top: 56px; border-radius: var(--radius-l); background: var(--cream-deep); padding: clamp(28px, 4vw, 52px); }
.tester__bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.tester__input {
  flex: 1; min-width: 240px; padding: 14px 20px; border-radius: 999px; border: 2px solid var(--ink);
  font: inherit; font-size: 16px; background: var(--cream); color: var(--ink); outline: none; transition: box-shadow .2s;
}
.tester__input:focus { box-shadow: 0 0 0 4px var(--lime); }
.tester__range { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tester__range input { accent-color: var(--tomato); width: 140px; }
.tester__output {
  font-family: var(--f-display-ar); font-weight: 700; font-size: 72px; line-height: 1.48; min-height: 1.5em;
  word-break: break-word; transition: font-size .2s;
}

.scale { margin-top: 56px; display: grid; gap: 0; }
.scale__row { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: baseline; padding-block: 24px; border-top: 1.5px solid rgba(20, 20, 20, .12); }
.scale__row:last-child { border-bottom: 1.5px solid rgba(20, 20, 20, .12); }
.scale__meta { font-family: var(--f-lat); font-size: 13px; opacity: .6; direction: ltr; text-align: right; }

/* ---------- Voice ---------- */
.voice-pairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.voice-pair {
  border-radius: var(--radius-m); padding: 28px 20px; text-align: center; background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden; min-height: 160px; display: grid; place-items: center; cursor: default;
}
.voice-pair__yes, .voice-pair__no { transition: transform .5s var(--ease-pop), opacity .35s; grid-area: 1 / 1; }
.voice-pair__yes { font-family: var(--f-display-ar); font-weight: 700; font-size: 30px; line-height: 1.4; }
.voice-pair__no { font-size: 16px; line-height: 1.5; opacity: 0; transform: translateY(30px); }
.voice-pair__no s { text-decoration-color: var(--tomato); text-decoration-thickness: 3px; font-family: var(--f-display-ar); font-weight: 700; font-size: 26px; display: block; margin-top: 4px; }
.voice-pair:hover { background: var(--lime); color: var(--ink); }
.voice-pair:hover .voice-pair__yes { transform: translateY(-30px); opacity: 0; }
.voice-pair:hover .voice-pair__no { transform: none; opacity: 1; }

.rewrites { margin-top: 60px; }
.rewrites__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.switch {
  display: inline-flex; background: var(--ink); border-radius: 999px; padding: 5px; position: relative;
}
.switch button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; color: var(--cream); font-weight: 600; font-size: 14px; transition: color .3s; }
.switch button.is-active { color: var(--ink); }
.switch__thumb { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--lime); transition: all .45s var(--ease-pop); }
.rewrite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rewrite {
  border-radius: var(--radius-m); padding: 32px; border: 2px solid var(--ink); background: var(--cream);
  display: grid; gap: 14px; min-height: 180px; align-content: start; transition: background .4s, color .4s, transform .4s var(--ease-pop);
}
.rewrite__ctx { font-size: 13px; font-weight: 600; opacity: .6; }
.rewrite__text { font-size: 19px; line-height: 1.75; transition: opacity .25s; }
.rewrites.is-otto .rewrite { background: var(--ink); color: var(--cream); }
.rewrites.is-otto .rewrite:nth-child(odd) { transform: rotate(-1deg); }
.rewrites.is-otto .rewrite:nth-child(even) { transform: rotate(1deg); }
.rewrites.is-otto .rewrite__text { font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.5; color: var(--lime); }
.rewrite__text.is-swapping { opacity: 0; }

.taglines { display: grid; gap: 0; margin-top: 64px; }
.tagline {
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 28px; align-items: center; padding-block: 34px;
  border-top: 2px solid var(--ink); transition: padding .35s var(--ease-out), background .3s;
}
.tagline:last-child { border-bottom: 2px solid var(--ink); }
.tagline:hover { padding-inline: 24px; background: var(--butter); }
.tagline__n { font-family: var(--f-display-lat); font-weight: 800; color: var(--tomato); font-size: 20px; }
.tagline__ar { font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.48; }
.tagline__en { font-family: var(--f-display-lat); font-weight: 600; font-size: clamp(16px, 1.6vw, 22px); direction: ltr; text-align: left; }
.tagline__rec { font-family: var(--f-body); font-size: 12px; font-weight: 600; background: var(--tomato); color: var(--cream); padding: 4px 12px; border-radius: 999px; vertical-align: middle; margin-inline-start: 12px; }

/* ---------- Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 16px; }
.app { border-radius: var(--radius-m); position: relative; overflow: hidden; display: grid; place-items: center; }
.app__label {
  position: absolute; bottom: 16px; right: 16px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(245, 239, 230, .9); color: var(--ink);
}
.app--cup { grid-column: span 2; background: var(--butter); }
.app--card { grid-column: span 4; background: var(--cream-deep); perspective: 1200px; }
.app--bag { grid-column: span 2; grid-row: span 2; background: var(--lime); }
.app--post { grid-column: span 2; background: var(--cream-deep); }
.app--stickers { grid-column: span 2; background: var(--ink); }
.app--mood { grid-column: span 4; background: var(--ink); }
.app--mood img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.app--mood:hover img { transform: scale(1.05); }

/* Cup */
.cup { width: 140px; height: 200px; position: relative; transition: transform .6s var(--ease-pop); }
.app--cup:hover .cup { transform: rotate(-8deg) translateY(-8px); }
.cup__lid { position: absolute; top: 0; left: -8px; right: -8px; height: 26px; background: var(--ink); border-radius: 10px 10px 4px 4px; }
.cup__lid::before { content: ''; position: absolute; top: -10px; left: 22%; right: 22%; height: 14px; background: var(--ink); border-radius: 8px 8px 0 0; }
.cup__body {
  position: absolute; top: 24px; bottom: 0; left: 0; right: 0; background: var(--tomato);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); display: grid; place-items: center;
}
.cup__body svg { width: 92px; color: var(--ink); direction: ltr; }
.cup__sleeve { position: absolute; top: 46%; left: 4%; right: 4%; height: 2px; background: rgba(20, 20, 20, .18); }
.cup__shadow { position: absolute; bottom: -18px; left: 10%; right: 10%; height: 14px; border-radius: 50%; background: rgba(20, 20, 20, .2); filter: blur(6px); }

/* Business card */
.bcard { width: min(420px, 80%); aspect-ratio: 1.75; position: relative; transform-style: preserve-3d; transition: transform .9s var(--ease-pop); transform: rotateX(8deg) rotateY(-14deg) rotateZ(-3deg); }
.app--card:hover .bcard { transform: rotateY(180deg) rotateZ(2deg); }
.bcard__face {
  position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 50px -20px rgba(20, 20, 20, .45);
}
.bcard__front { background: var(--tomato); color: var(--ink); direction: ltr; }
.bcard__front svg { width: 55%; }
.bcard__front .bcard__tag { font-family: var(--f-display-lat); font-weight: 600; font-size: 13px; text-align: right; }
.bcard__back { background: var(--ink); color: var(--cream); transform: rotateY(180deg); }
.bcard__back h5 { font-family: var(--f-display-ar); font-weight: 900; font-size: 22px; }
.bcard__back h5 small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 13px; opacity: .75; }
.bcard__back .bcard__info { font-family: var(--f-lat); font-size: 12.5px; direction: ltr; text-align: left; display: grid; gap: 2px; }
.bcard__back .bcard__mark { position: absolute; top: 22px; left: 22px; width: 40px; color: var(--lime); }

/* Bag */
.bag { width: 210px; height: 270px; position: relative; margin-top: 50px; transition: transform .6s var(--ease-pop); }
.app--bag:hover .bag { transform: rotate(4deg) translateY(-10px); }
.bag__handle { position: absolute; top: -56px; left: 30%; width: 40%; height: 80px; border: 9px solid var(--ink); border-bottom: 0; border-radius: 60px 60px 0 0; }
.bag__body { position: absolute; inset: 0; background: var(--kraft); border-radius: 4px 4px 10px 10px; display: grid; place-items: center; box-shadow: inset -26px 0 0 rgba(20, 20, 20, .08), 0 30px 40px -20px rgba(20, 20, 20, .4); }
.bag__body svg { width: 150px; color: var(--ink); direction: ltr; }
.bag__fold { position: absolute; top: 0; left: 0; right: 0; height: 18px; background: rgba(20, 20, 20, .08); }
.bag__sticker { position: absolute; bottom: 26px; right: 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--tomato); display: grid; place-items: center; transform: rotate(-12deg); font-family: var(--f-display-ar); font-weight: 900; font-size: 13px; line-height: 1.1; text-align: center; color: var(--ink); }

/* Insta post */
.post { width: 220px; aspect-ratio: 1; background: var(--ink); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cream); box-shadow: 0 30px 40px -20px rgba(20, 20, 20, .45); transition: transform .6s var(--ease-pop); }
.app--post:hover .post { transform: rotate(-4deg) scale(1.04); }
.post__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-lat); font-size: 11px; direction: ltr; }
.post__head svg { width: 26px; color: var(--tomato); }
.post__title { font-family: var(--f-display-ar); font-weight: 900; font-size: 32px; line-height: 1.15; }
.post__title span { color: var(--lime); }
.post__foot { font-size: 12px; opacity: .7; }

/* Stickers */
.stickers { position: relative; width: 240px; height: 200px; }
.sticker { position: absolute; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease-pop); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .6); }
.sticker--1 { width: 130px; height: 130px; background: var(--tomato); top: 10px; right: 10px; transform: rotate(-12deg); }
.sticker--1 svg { width: 90px; color: var(--cream); direction: ltr; }
.sticker--2 { width: 100px; height: 100px; background: var(--lime); bottom: 0; left: 20px; transform: rotate(10deg); }
.sticker--2 svg { width: 60px; color: var(--ink); }
.sticker--3 { width: 84px; height: 84px; background: var(--cream); top: 0; left: 40px; transform: rotate(-6deg); font-family: var(--f-display-ar); font-weight: 900; font-size: 14px; text-align: center; line-height: 1.2; color: var(--ink); }
.app--stickers:hover .sticker--1 { transform: rotate(8deg) scale(1.06); }
.app--stickers:hover .sticker--2 { transform: rotate(-20deg) translate(-10px, -10px); }
.app--stickers:hover .sticker--3 { transform: rotate(14deg) translateY(-8px); }

/* ---------- Downloads / Footer ---------- */
.downloads { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.dl-list { display: grid; gap: 12px; }
.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-m); background: rgba(20, 20, 20, .08); border: 2px solid var(--ink);
  transition: background .25s, transform .4s var(--ease-pop);
}
.dl:hover { background: var(--ink); color: var(--cream); transform: translateX(-8px); }
.dl b { font-family: var(--f-display-ar); font-weight: 800; font-size: 18px; }
.dl small { display: block; font-size: 13px; opacity: .7; font-family: var(--f-lat); direction: ltr; text-align: right; }
.dl__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 18px; transition: background .25s, color .25s; flex-shrink: 0; }
.dl:hover .dl__icon { background: var(--lime); color: var(--ink); }

.footer { background: var(--ink); color: var(--cream); padding-block: 80px 32px; overflow: hidden; }
.footer__big { color: var(--tomato); direction: ltr; margin-bottom: 36px; }
.footer__big svg { width: 100%; height: auto; }
.footer__socials {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; padding-bottom: 28px;
  border-bottom: 1.5px solid rgba(245, 239, 230, .14);
}
.footer__socials a {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(245, 239, 230, .25);
  font-family: var(--f-lat); font-size: 14px; font-weight: 500; direction: ltr;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-pop);
}
.footer__socials a:hover {
  background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-3px);
}
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; opacity: .7; }

/* ---------- Contact & Socials ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.social-cards { display: grid; gap: 16px; }
.social-card {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 26px; border-radius: var(--radius-m); background: var(--cream-deep);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .4s var(--ease-pop), background .25s, color .25s, box-shadow .25s;
}
.social-card:hover {
  transform: translate(-4px, -4px) rotate(-.6deg);
  background: var(--ink); color: var(--cream);
  box-shadow: 10px 10px 0 var(--tomato);
}
.social-card--whatsapp:hover { box-shadow: 10px 10px 0 var(--lime); }
.social-card__icon {
  width: 60px; height: 60px; border-radius: 18px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.social-card__icon svg { width: 28px; height: 28px; }
.social-card:hover .social-card__icon { background: var(--tomato); color: var(--ink); }
.social-card--whatsapp:hover .social-card__icon { background: var(--lime); color: var(--ink); }
.social-card__body { display: grid; gap: 2px; }
.social-card__label { font-size: 13px; font-weight: 600; opacity: .7; }
.social-card__handle { font-family: var(--f-display-ar); font-weight: 800; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; }
.social-card__handle.lat { font-family: var(--f-display-lat); text-align: right; }
.social-card__url { font-size: 13px; opacity: .65; text-align: right; }
.social-card__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
  transition: transform .35s var(--ease-pop), background .25s, color .25s, border-color .25s;
}
.social-card:hover .social-card__arrow {
  background: var(--lime); color: var(--ink); border-color: var(--lime); transform: rotate(12deg) scale(1.08);
}

.qr-showcase {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-l);
  background: var(--cream-deep); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink);
}
.qr-showcase__card {
  display: block; width: 100%; max-width: 340px; border-radius: var(--radius-m); overflow: hidden;
  transition: transform .45s var(--ease-pop);
}
.qr-showcase__card:hover { transform: scale(1.03) rotate(-1deg); }
.qr-showcase__card img { width: 100%; height: auto; display: block; }
.qr-showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.bcard__back .bcard__info a:hover { color: var(--lime); text-decoration: underline; }

/* ---------- Behance-Inspired Visual Identity Showcase ---------- */
.showcase-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid rgba(20, 20, 20, .12);
}
.showcase-head__tag {
  display: inline-block; font-family: var(--f-display-lat); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tomato); margin-bottom: 6px; direction: ltr;
}
.showcase-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.behance-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 64px;
}
.board {
  border-radius: var(--radius-l); overflow: hidden; background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  cursor: pointer; transition: transform .45s var(--ease-pop), box-shadow .3s;
  display: flex; flex-direction: column;
}
.board--wide { grid-column: span 2; }
.board.is-hidden { display: none; }
.board:hover {
  transform: translate(-4px, -6px);
  box-shadow: 14px 14px 0 var(--tomato);
}
.board__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-soft);
}
.board--wide .board__media { aspect-ratio: 21 / 10; }
.board__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.board:hover .board__media img { transform: scale(1.04); }
.board__zoom {
  position: absolute; top: 18px; left: 18px; padding: 8px 16px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-family: var(--f-display-ar); font-size: 13px; font-weight: 800;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease-pop);
}
.board:hover .board__zoom { opacity: 1; transform: none; }
.board__meta {
  padding: 22px 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.board__num {
  display: block; font-family: var(--f-display-lat); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; direction: ltr; text-align: right;
}
.board__meta h4 { font-family: var(--f-display-ar); font-weight: 800; font-size: clamp(19px, 2vw, 24px); }
.board__meta p { font-size: 15px; opacity: .8; max-width: 44ch; }

.showcase-subhead { margin-bottom: 24px; }

/* Deliverables Scope Matrix */
.deliverables-box {
  margin-top: 64px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-l);
  background: var(--ink); color: var(--cream); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--tomato);
}
.deliverables-box__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1.5px solid rgba(245, 239, 230, .15);
}
.deliverables-box__head .eyebrow { margin-bottom: 14px; color: var(--lime); border-color: rgba(212, 255, 58, .4); }
.deliverables-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deliv-item {
  padding: 24px; border-radius: var(--radius-m); background: var(--ink-soft);
  border: 1.5px solid rgba(245, 239, 230, .12); transition: transform .35s var(--ease-pop), border-color .25s, background .25s, color .25s;
}
.deliv-item:hover {
  transform: translateY(-6px); border-color: var(--lime); background: var(--butter); color: var(--ink);
}
.deliv-item__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--tomato); color: var(--ink); font-family: var(--f-display-lat); font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.deliv-item h4 { font-family: var(--f-display-ar); font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.deliv-item p { font-size: 14.5px; opacity: .85; line-height: 1.6; }

/* Lightbox Modal */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 20, 20, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__close {
  position: absolute; top: 24px; left: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--tomato); color: var(--ink); font-size: 20px; font-weight: 800;
  display: grid; place-items: center; transition: transform .3s var(--ease-pop), background .2s;
}
.lightbox__close:hover { background: var(--lime); transform: rotate(90deg) scale(1.08); }
.lightbox__inner {
  max-width: 1080px; width: 100%; background: var(--ink); border: 2px solid var(--cream);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__img { width: 100%; max-height: 74vh; object-fit: contain; background: #0c0c0c; display: block; }
.lightbox__caption { padding: 20px 28px; color: var(--cream); }
.lightbox__caption strong { display: block; font-family: var(--f-display-ar); font-size: 20px; color: var(--lime); margin-bottom: 4px; }
.lightbox__caption p { font-size: 15px; opacity: .85; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 140%); z-index: 200;
  background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 999px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; transition: transform .5s var(--ease-pop); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cream); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Touch-Device Enhancements & Cross-Device Responsive ---------- */
.app--card { cursor: pointer; }
.app--card .bcard.is-flipped { transform: rotateY(180deg) rotateZ(2deg); }
.voice-pair { cursor: pointer; }
.voice-pair.is-flipped { background: var(--lime); color: var(--ink); }
.voice-pair.is-flipped .voice-pair__yes { transform: translateY(-30px); opacity: 0; }
.voice-pair.is-flipped .voice-pair__no { transform: none; opacity: 1; }

@media (hover: none) {
  .hero__hint { opacity: .95; transform: rotate(-3deg); }
  .color__copy { opacity: .88; transform: none; }
  .board__zoom { opacity: .94; transform: none; }
}

/* ---------- Responsive: Tablets & Small Laptops (<= 1100px) ---------- */
@media (max-width: 1100px) {
  .nav { padding: 8px 12px 8px 16px; border-radius: 28px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 6px; padding: 14px;
    background: rgba(245, 239, 230, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--ink); border-radius: 24px;
    box-shadow: 8px 8px 0 var(--ink);
    opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none;
    transition: opacity .28s var(--ease-out), transform .32s var(--ease-pop);
  }
  .nav__links.is-open {
    opacity: 1; transform: none; pointer-events: auto;
  }
  .nav__links a {
    min-height: 46px; padding: 10px 18px; font-size: 16px; font-weight: 600;
    justify-content: space-between;
  }
  .nav__links a::after { content: '←'; opacity: .45; font-size: 14px; }

  .hero__top { grid-template-columns: 1fr; gap: 18px; }
  .hero__kicker { justify-self: start; max-width: 100%; }
  .hero__journey, .values, .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
  .persona { grid-template-columns: 1fr; }
  .persona__side {
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; padding: 32px;
  }
  .persona__avatar { width: 96px; height: 96px; font-size: 44px; flex-shrink: 0; }
  .palette { grid-template-columns: repeat(3, 1fr); min-height: 0; }
  .color { min-height: 220px; }
  .voice-pairs { grid-template-columns: repeat(3, 1fr); }
  .donts, .pairs { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(280px, auto); }
  .app--cup, .app--card, .app--bag, .app--post, .app--stickers, .app--mood { grid-column: span 1; grid-row: span 1; }
  .app--card, .app--mood { grid-column: span 2; }
}

/* ---------- Responsive: Portrait Tablets & Large Phones (<= 820px) ---------- */
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .section { padding-block: clamp(68px, 10vw, 110px); }
  .section-head { margin-bottom: 40px; }
  .idea-grid, .downloads, .contact-grid, .type-specimens, .body-fonts, .logo-rules, .persona__body, .core-grid, .rewrite-grid, .logo-variants, .behance-grid, .deliverables-grid, .hero__journey {
    grid-template-columns: 1fr;
  }
  .board--wide { grid-column: span 1; }
  .board--wide .board__media { aspect-ratio: 16 / 10; }
  .board__meta { padding: 18px 22px; flex-direction: column; gap: 8px; }
  .big-idea { grid-template-columns: 1fr; text-align: right; padding: 32px 26px; }
  .big-idea__mark { width: 88px; }
  .hero { padding-block: 118px 56px; min-height: auto; }
  .hero__logo-wrap { margin-block: 8px 32px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .badge { display: none; }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .tagline { grid-template-columns: 38px 1fr; gap: 14px; padding-block: 24px; }
  .tagline__en { grid-column: 2; text-align: right; }
  .scale__row { grid-template-columns: 1fr; gap: 6px; padding-block: 18px; }
  .scale__meta { text-align: right; }
  .tester__output { font-size: clamp(32px, 8vw, 48px); }
  .apps { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); }
  .app--card, .app--mood { grid-column: span 1; }
  .voice-pairs { grid-template-columns: repeat(2, 1fr); }
  .deliverables-box { padding: 28px 22px; box-shadow: 8px 8px 0 var(--tomato); }
}

/* ---------- Responsive: Smartphones (<= 560px) ---------- */
@media (max-width: 560px) {
  :root {
    --pad: 18px;
    --radius-l: 24px;
    --radius-m: 16px;
  }
  .nav { inset: 10px 12px auto; padding: 8px 10px 8px 14px; }
  .nav__brand svg { height: 22px; }
  .nav__cta { padding: 8px 14px; font-size: 13px; min-height: 40px; }
  .nav__toggle { width: 40px; height: 40px; }

  .hero { padding-block: 98px 44px; }
  .hero__top { margin-bottom: 24px; padding-bottom: 20px; gap: 14px; }
  .hero__badges .eyebrow { font-size: 11px; padding: 6px 12px; }
  .hero__live-pill { font-size: 12px; padding: 6px 12px; }
  .hero__kicker { font-size: 15.5px; line-height: 1.8; }
  .hero__hint { position: static; display: inline-block; margin-top: 10px; transform: none; }
  .hero__tagline { font-size: clamp(28px, 8vw, 38px); line-height: 1.45; }
  .hero__tagline .lat-display { font-size: 14px; margin-top: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .hero__actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero__journey { margin-top: 36px; padding-top: 28px; gap: 12px; }
  .journey-step { padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }

  .h-section { font-size: clamp(28px, 7.8vw, 40px); line-height: 1.42; margin-bottom: 18px; }
  .lead { font-size: 16.5px; line-height: 1.8; }

  .mirror-stage, .persona, .qr-showcase { box-shadow: 6px 6px 0 var(--ink); }
  .mirror-stage__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .mirror-stage__foot .btn { justify-content: center; }

  .persona__side { padding: 24px 20px; gap: 16px; }
  .persona__body { padding: 24px 20px; gap: 22px; }
  .persona__quote { padding: 20px; font-size: 20px; }

  .logo-stage { padding: 36px 18px 24px; }
  .logo-controls { flex-direction: column; align-items: stretch; }
  .logo-controls__group { justify-content: center; }
  .swatch-btn { width: 42px; height: 42px; }
  .chip { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
  .clearspace { padding: 26px; }

  .palette, .donts, .pairs, .voice-pairs { grid-template-columns: 1fr; }
  .color { min-height: 170px; padding: 20px; }
  .ratio__bar { height: 56px; }
  .ratio__bar > div { font-size: 14px; }

  .tester { padding: 22px 18px; }
  .tester__input { min-width: 100%; width: 100%; }
  .tester__range { width: 100%; justify-content: space-between; }
  .tester__range input { flex: 1; }

  .rewrites__head { flex-direction: column; align-items: flex-start; }
  .switch { width: 100%; }
  .switch button { flex: 1; text-align: center; min-height: 44px; }

  .showcase-filters {
    width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .showcase-filters::-webkit-scrollbar { display: none; }
  .showcase-filters .chip { flex-shrink: 0; }
  .board { box-shadow: 6px 6px 0 var(--ink); }

  .bcard { width: 92%; aspect-ratio: 1.62; transform: none; }
  .bcard__face { padding: 18px 20px; }
  .bcard__back h5 { font-size: 19px; }
  .bcard__back .bcard__mark { width: 32px; top: 16px; left: 16px; }

  .social-card {
    grid-template-columns: 50px 1fr auto; gap: 12px; padding: 16px 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .social-card__icon { width: 50px; height: 50px; border-radius: 14px; }
  .social-card__handle { font-size: 18px; }
  .social-card__url { font-size: 12px; word-break: break-all; }
  .social-card__arrow { width: 38px; height: 38px; font-size: 15px; }

  .qr-showcase { padding: 22px 18px; }
  .qr-showcase__actions { width: 100%; flex-direction: column; }
  .qr-showcase__actions .btn { width: 100%; justify-content: center; }

  .footer { padding-block: 56px 28px; }
  .footer__socials { gap: 8px; }
  .footer__socials a { flex: 1 1 calc(50% - 8px); text-align: center; padding: 10px 12px; font-size: 13px; }
  .footer__row { flex-direction: column; gap: 10px; text-align: center; }

  .lightbox { padding: 14px; }
  .lightbox__close { top: 14px; left: 14px; width: 44px; height: 44px; }
  .lightbox__caption { padding: 16px 18px; }
}

/* ---------- Responsive: Landscape Orientation on Phones ---------- */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { padding-block: 96px 40px; min-height: auto; }
  .hero__logo-wrap { max-width: 520px; margin-inline: auto; margin-block: 8px 24px; }
  .lightbox__img { max-height: 58vh; }
  .nav__links { max-height: 75vh; overflow-y: auto; }
}
