:root {
  --ink: #0e1210;
  --ink-soft: #1a221c;
  --paper: #e8ebe6;
  --paper-bright: #f3f5f1;
  --mist: #c5cbc2;
  --mute: #6d756e;
  --accent: #e84e1b;
  --accent-deep: #b83a10;
  --forest: #234537;
  --forest-light: #3d6b55;
  --glow: rgba(232, 78, 27, 0.35);

  --font-display: "El Messiri", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.1rem, 4vw, 3rem);
  --max: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  letter-spacing: normal;
}

/* Never stretch Arabic letters apart */
h1, h2, h3, h4, p, li, span, a, button, figcaption, dt, dd, label {
  letter-spacing: normal;
}

body.has-cursor {
  cursor: none;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .deck-float {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(120%) !important;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }

/* Custom cursor */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, opacity 0.3s;
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}

body.has-cursor .cursor,
body.has-cursor .cursor-dot { opacity: 1; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 78, 27, 0.45), transparent 70%);
  top: 10%;
  right: -8%;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(35, 69, 55, 0.55), transparent 70%);
  bottom: 15%;
  left: -10%;
  animation-delay: -6s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 50px) scale(1.15); }
}

/* Header */
/* Header — scrolls with page (not sticky) */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + var(--safe-top)) max(var(--space), var(--safe-right)) 0.85rem max(var(--space), var(--safe-left));
  border-bottom: 1px solid rgba(232, 235, 230, 0.08);
  background: transparent;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.75;
  transition: opacity 0.25s, color 0.25s;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  opacity: 1 !important;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(232, 235, 230, 0.35);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(26, 34, 28, 0.65);
  border: 1px solid rgba(232, 235, 230, 0.12);
  border-radius: 14px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  position: relative;
  z-index: 220;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(14, 18, 16, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  padding: calc(5rem + var(--safe-top)) var(--space) calc(2rem + var(--safe-bottom));
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  opacity: 0.9;
}

.mobile-nav a:active {
  color: var(--accent);
}

.mobile-nav[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0 var(--space) clamp(4rem, 10vh, 6rem);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
  transform: scale(1.08);
  will-change: transform;
  filter: contrast(1.04) saturate(0.95);
  transition: transform 0.15s linear;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.25) 0%, rgba(14, 18, 16, 0.55) 45%, rgba(14, 18, 16, 0.94) 100%),
    linear-gradient(270deg, transparent 30%, rgba(14, 18, 16, 0.55) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 4s steps(6) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
}

.hero-floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floater {
  position: absolute;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(232, 235, 230, 0.25);
  border-radius: 999px;
  background: rgba(14, 18, 16, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--mist);
  animation: float-y 7s ease-in-out infinite;
}

.f1 { top: 18%; left: 7%; animation-delay: 0s; }
.f2 { top: 32%; left: 14%; animation-delay: -1.5s; }
.f3 { top: 20%; right: 6%; animation-delay: -3s; }
.f4 { top: 58%; left: 6%; animation-delay: -4.5s; color: var(--accent); border-color: rgba(232, 78, 27, 0.45); }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  font-weight: 600;
  color: var(--paper-bright);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.accent-line { color: var(--accent); }

/* Split by words — keeps Arabic letter connections intact */
[data-split] {
  letter-spacing: 0 !important;
}

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  letter-spacing: 0;
}

[data-split] .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease);
  letter-spacing: 0;
}

[data-split].is-in .word-inner {
  opacity: 1;
  transform: none;
}

.lede {
  max-width: 34rem;
  color: var(--mist);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-logos {
  position: absolute;
  bottom: clamp(5rem, 12vh, 7rem);
  left: var(--space);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-logos img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 0.4rem;
  border-radius: 12px;
  background: rgba(243, 245, 241, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: logo-pop 0.8s var(--ease) both;
}

.hero-logos img:nth-child(1) { animation-delay: 0.9s; }
.hero-logos img:nth-child(2) { animation-delay: 1.05s; }
.hero-logos img:nth-child(3) { animation-delay: 1.2s; }
.hero-logos img:nth-child(4) { animation-delay: 1.35s; }
.hero-logos img:nth-child(5) { animation-delay: 1.5s; }

@keyframes logo-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.8); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  min-height: 44px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 40px var(--glow);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 12px 40px var(--glow); }
  50% { box-shadow: 0 16px 52px rgba(232, 78, 27, 0.55); }
}

.btn-primary:hover { background: var(--accent-deep); animation: none; }

.btn-ghost {
  border: 1px solid rgba(232, 235, 230, 0.4);
  color: var(--paper);
}

.btn-ghost:hover { background: rgba(232, 235, 230, 0.08); }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  right: var(--space);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--mist);
}

.hero-scroll i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-line 1.8s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.35rem 0;
  background:
    linear-gradient(90deg, rgba(232, 78, 27, 0.08), transparent 30%, transparent 70%, rgba(35, 69, 55, 0.18)),
    var(--ink-soft);
  border-block: 1px solid rgba(232, 235, 230, 0.1);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(120px, 14vw);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to left, transparent, var(--ink-soft));
}

.marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to right, transparent, var(--ink-soft));
}

.marquee-row {
  overflow: hidden;
  padding-block: 0.35rem;
}

.marquee-row + .marquee-row {
  margin-top: 0.35rem;
  opacity: 0.92;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-move 22s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.marquee-row.reverse .marquee-track {
  animation-name: marquee-move-rev;
  animation-duration: 26s;
}

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

@media (hover: none), (pointer: coarse) {
  .marquee-track {
    animation-play-state: running !important;
    animation-duration: 16s;
  }

  .marquee-row.reverse .marquee-track {
    animation-duration: 20s;
  }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline-end: 0.85rem;
  flex-shrink: 0;
}

.mq-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  font-weight: 600;
  color: var(--mist);
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
}

.mq-item:hover {
  color: var(--paper-bright);
  border-color: rgba(232, 235, 230, 0.2);
  background: rgba(232, 235, 230, 0.06);
  transform: translateY(-2px);
}

.mq-item.accent {
  color: var(--accent);
}

.mq-item.glow {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  box-shadow: 0 8px 24px rgba(232, 78, 27, 0.35);
  border-color: transparent;
}

.mq-item.glow:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(232, 78, 27, 0.5);
}

.mq-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(232, 78, 27, 0.45);
}

@keyframes marquee-move {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(50%, 0, 0); }
}

@keyframes marquee-move-rev {
  from { transform: translate3d(50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0; /* positive spacing breaks Arabic letter joins */
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto var(--space);
  padding-inline: var(--space);
}

.section-head h2,
.about h2,
.process h2,
.contact h2,
.brands h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

/* About */
.about {
  padding: clamp(4.5rem, 12vh, 7.5rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(35, 69, 55, 0.45), transparent 60%),
    var(--ink);
  position: relative;
  z-index: 1;
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.about-copy > p:nth-of-type(2),
.about-copy > p:nth-of-type(3) {
  color: var(--mist);
  max-width: 36rem;
}

.about-copy > p + p { margin-top: 1rem; }
.about-copy h2 { margin-bottom: 1.25rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 235, 230, 0.12);
}

.stats dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--paper-bright);
  line-height: 1;
}

.stats dd {
  margin: 0.35rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.about-photo {
  margin: 0;
  position: relative;
  transform-style: preserve-3d;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.5s var(--ease);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid rgba(232, 78, 27, 0.45);
  z-index: -1;
  pointer-events: none;
  transition: inset 0.4s var(--ease);
}

.about-photo:hover::after {
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
}

.about-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--mute);
}

/* Journey */
.journey {
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.journey .eyebrow { color: var(--accent-deep); }
.journey h2 { color: var(--ink); }

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space);
  max-width: var(--max);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(14, 18, 16, 0.12);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), transform 0.35s var(--ease);
}

.timeline li:last-child { border-bottom: 1px solid rgba(14, 18, 16, 0.12); }

.timeline li:hover {
  background: rgba(35, 69, 55, 0.06);
  padding-inline: 1rem;
  transform: translateX(-4px);
}

.timeline .year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest);
}

.timeline p { color: #3a423c; margin: 0; }

/* Work deck — vertical scroll slides (easy & native) */
.work {
  padding: clamp(2.5rem, 6vh, 4rem) 0 0;
  position: relative;
  z-index: 1;
}

.deck-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--space);
}

.deck-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.deck-top h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.deck-top-hint {
  color: var(--mute);
  font-size: 0.9rem;
}

.deck-float {
  position: fixed;
  bottom: calc(1rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: min(220px, calc(100vw - 2rem));
  max-width: calc(100vw - 1.5rem);
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: rgba(14, 18, 16, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 235, 230, 0.14);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.deck-float.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.deck-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 235, 230, 0.22);
  background: rgba(26, 34, 28, 0.85);
  color: var(--paper);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.deck-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.deck-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 160px;
}

.deck-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(232, 235, 230, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s;
}

.deck-dot.is-active {
  width: 18px;
  background: var(--accent);
}

.deck-hint {
  text-align: center;
  color: var(--mute);
  font-size: 0.72rem;
  margin: 0.55rem 0 0;
}

.deck-counter {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--mist);
}

.deck-progress {
  width: 100%;
  height: 3px;
  background: rgba(232, 235, 230, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.deck-progress i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--accent), #ff8a5b);
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}

.deck-viewport {
  border: 1px solid rgba(232, 235, 230, 0.1);
  background: var(--ink-soft);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.deck-track {
  display: flex;
  flex-direction: column;
}

.slide {
  min-height: 100svh;
  border-bottom: 1px solid rgba(232, 235, 230, 0.06);
}

.slide:last-child {
  border-bottom: 0;
}

.slide-panel {
  height: 100%;
  min-height: 100svh;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}

.slide-intro,
.slide-divider,
.slide-outro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 78, 27, 0.22), transparent 45%),
    linear-gradient(145deg, #17231d, #0e1210 70%);
}

.slide-divider.tone-forest {
  background:
    radial-gradient(circle at 15% 80%, rgba(35, 69, 55, 0.55), transparent 50%),
    linear-gradient(145deg, #143028, #0e1210 70%);
}

.slide-kicker {
  color: var(--accent);
  letter-spacing: 0;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.slide-intro h3,
.slide-divider h3,
.slide-outro h3 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.slide-intro h3 em,
.slide-divider h3 em {
  font-style: normal;
  color: var(--accent);
}

.slide-lead {
  color: var(--mist);
  max-width: 34rem;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.slide-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.slide-logos img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.slide.is-active .slide-logos img {
  animation: logo-pop 0.7s var(--ease) both;
}

.slide.is-active .slide-logos img:nth-child(2) { animation-delay: 0.08s; }
.slide.is-active .slide-logos img:nth-child(3) { animation-delay: 0.16s; }
.slide.is-active .slide-logos img:nth-child(4) { animation-delay: 0.24s; }
.slide.is-active .slide-logos img:nth-child(5) { animation-delay: 0.32s; }

.slide-project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.slide-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: min(58vh, 480px);
  background: #101612;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-media.twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.slide-media.twin img {
  min-height: min(58vh, 480px);
}

.slide-media-dark {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 40%, rgba(232, 78, 27, 0.35), transparent 55%),
    linear-gradient(160deg, #1a2e26, #0e1210 70%);
}

.slide-ai {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  line-height: 1.25;
}

.slide-order {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 18, 16, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  z-index: 1;
}

.slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0.2rem;
}

.slide-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--mist);
  font-size: 0.9rem;
}

.slide-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.mono-pill {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.slide-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 0.55rem;
}

.slide-copy > p {
  color: var(--mist);
  margin-bottom: 1rem;
}

.slide-label {
  color: var(--accent) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0;
  margin-bottom: 0.55rem !important;
}

.slide-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.slide-copy li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--paper);
}

.slide-copy li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.slide-gallery {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  align-content: center;
}

.slide-gallery-head h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 0.35rem;
}

.slide-gallery-head p { color: var(--mist); }

.slide-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  max-height: 70vh;
}

.slide-phones figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(232, 235, 230, 0.1);
  background: #000;
}

.slide-phones img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 62vh;
}

.slide-phones figure:nth-child(2) {
  transform: translateY(-12px) scale(1.03);
}

.outro-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.outro-list li {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(232, 235, 230, 0.16);
  border-radius: 999px;
  color: var(--mist);
}

@media (max-width: 900px) {
  .slide-project {
    grid-template-columns: 1fr;
  }

  .slide-media,
  .slide-media.twin img {
    min-height: 220px;
  }

  .slide,
  .slide-panel {
    min-height: auto;
  }

  .slide-panel {
    padding: 1.35rem 1rem 1.75rem;
  }

  .slide-intro,
  .slide-divider,
  .slide-outro {
    min-height: min(70svh, 520px);
  }

  .slide-phones {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    max-height: none;
  }

  .slide-phones figure:nth-child(2) {
    transform: none;
  }

  .slide-phones img {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .slide-phones {
    grid-template-columns: 1fr 1fr;
  }

  .slide-phones figure:nth-child(3) {
    display: none;
  }

  .deck-top {
    align-items: flex-start;
  }

  .slide-intro h3,
  .slide-divider h3,
  .slide-outro h3 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

/* Brands / Logos */
.brands {
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.brands-head { text-align: center; }

.logo-orbit {
  position: relative;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  margin: 2rem auto 3rem;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 32s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.orbit-item {
  --n: 8;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translate(min(210px, 38vw))
    rotate(calc(var(--i) * -360deg / var(--n)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: orbit-counter 32s linear infinite;
}

@keyframes orbit-counter {
  to { transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translate(min(210px, 38vw))
    rotate(calc(var(--i) * -360deg / var(--n) - 360deg));
  }
}

.orbit-item img,
.orbit-item .mono {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(243, 245, 241, 0.95);
  padding: 0.55rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.orbit-item .mono {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0;
}

.orbit-item span:last-child {
  font-size: 0.72rem;
  color: var(--mist);
  white-space: nowrap;
  background: rgba(14, 18, 16, 0.75);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.orbit-item:hover img,
.orbit-item:hover .mono {
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(232, 78, 27, 0.35);
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 78, 27, 0.35), transparent 60%),
    var(--ink-soft);
  border: 1px solid rgba(232, 235, 230, 0.15);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 0 60px rgba(232, 78, 27, 0.2);
  animation: core-breathe 3.5s ease-in-out infinite;
}

.orbit-core span {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0;
}

.orbit-core strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

@keyframes core-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.logo-rail {
  overflow: hidden;
  margin: 0 0 3rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-rail-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: rail 40s linear infinite;
  padding: 0.5rem 0;
}

.logo-rail:hover .logo-rail-track { animation-play-state: paused; }

@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 0.75rem;
  background: var(--ink-soft);
  border: 1px solid rgba(232, 235, 230, 0.1);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.3s, transform 0.3s;
}

.logo-chip:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.logo-chip img,
.logo-chip .mono {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.logo-chip .mono {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
}

.logo-chip span:last-child {
  font-size: 0.9rem;
  color: var(--mist);
}

.brand-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.brand-card {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(160deg, rgba(35, 69, 55, 0.25), var(--ink-soft));
  border: 1px solid rgba(232, 235, 230, 0.08);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}

.brand-card:hover {
  border-color: rgba(232, 78, 27, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.brand-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--ease);
}

.brand-card:hover .brand-logo-wrap {
  transform: translateY(-6px) rotate(-3deg) scale(1.05);
}

.brand-logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-logo-wrap .mono.big {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.brand-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.brand-card p {
  color: var(--mute);
  font-size: 0.88rem;
}

/* Process */
.process {
  padding: clamp(4rem, 10vh, 6.5rem) 0;
  background:
    linear-gradient(180deg, transparent, rgba(35, 69, 55, 0.25) 40%, transparent),
    var(--ink);
  position: relative;
  z-index: 1;
}

.process-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.process-grid > div p:last-child {
  margin-top: 1rem;
  color: var(--mist);
  max-width: 28rem;
}

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.skills li {
  position: relative;
  padding-inline-start: 1.1rem;
  color: var(--paper);
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), color 0.3s;
}

.skills li:hover {
  transform: translateX(-4px);
  color: var(--accent);
}

.skills li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tools {
  max-width: var(--max);
  margin: 2.75rem auto 0;
  padding-inline: var(--space);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  background: rgba(232, 235, 230, 0.05);
  color: var(--mist);
  border-radius: 999px;
  border: 1px solid rgba(232, 235, 230, 0.08);
  transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.tool:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--paper);
}

.tool img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.tool .mono.tiny {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Personality */
.personality {
  padding: clamp(3.5rem, 9vh, 5.5rem) var(--space);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.personality blockquote {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  line-height: 1.45;
  color: var(--paper-bright);
}

.quirks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.quirks li {
  padding: 0.7rem 1.15rem;
  background: var(--ink-soft);
  border: 1px solid rgba(232, 235, 230, 0.1);
  font-size: 0.92rem;
  color: var(--mist);
  transition: transform 0.35s var(--ease), border-color 0.35s, color 0.35s;
}

.quirks li:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--accent);
  color: var(--paper);
}

/* Contact */
.contact {
  padding: 0 var(--space) clamp(4rem, 10vh, 6rem);
  position: relative;
  z-index: 1;
}

.contact-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(232, 78, 27, 0.12), transparent 45%),
    linear-gradient(225deg, rgba(35, 69, 55, 0.5), var(--ink-soft));
  border: 1px solid rgba(232, 235, 230, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 78, 27, 0.35), transparent 70%);
  top: -80px;
  left: 20%;
  animation: glow-move 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow-move {
  from { transform: translateX(0); }
  to { transform: translateX(120px); }
}

.contact h2 { margin-bottom: 0.85rem; position: relative; }

.contact-lede {
  color: var(--mist);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  position: relative;
}

.edu {
  font-size: 0.85rem;
  color: var(--mute);
  position: relative;
}

.btn-instagram {
  border: 1px solid rgba(232, 235, 230, 0.35);
  color: var(--paper);
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.25), rgba(253, 29, 29, 0.18), rgba(252, 176, 69, 0.15));
}

.btn-instagram:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.45), rgba(253, 29, 29, 0.35), rgba(252, 176, 69, 0.3));
  border-color: rgba(252, 176, 69, 0.55);
}

.btn-instagram svg {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem var(--space) 2rem;
  border-top: 1px solid rgba(232, 235, 230, 0.08);
  color: var(--mute);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.footer-ig {
  color: var(--mist);
  transition: color 0.25s;
}

.footer-ig:hover {
  color: var(--accent);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .process-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .skills { grid-template-columns: 1fr; }
  .hero-logos { display: none; }
  .f3, .f4 { display: none; }
}

@media (max-width: 720px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
  .nav { display: none; }
  .menu-btn { display: flex; }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      calc(1rem + var(--safe-top))
      max(var(--space), var(--safe-right))
      calc(3.5rem + var(--safe-bottom))
      max(var(--space), var(--safe-left));
    align-items: end;
  }

  .hero-img {
    object-position: 72% 22%;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(14, 18, 16, 0.35) 0%, rgba(14, 18, 16, 0.55) 40%, rgba(14, 18, 16, 0.96) 100%),
      linear-gradient(270deg, transparent 20%, rgba(14, 18, 16, 0.45) 100%);
  }

  .hero-floaters,
  .hero-scroll,
  .orb,
  .hero-grain {
    display: none;
  }

  .brand {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    margin-bottom: 0.55rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .lede {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    width: 100%;
    gap: 0.7rem;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
  }

  .mq-item {
    font-size: 1.05rem;
    padding: 0.28rem 0.7rem;
  }

  .marquee {
    padding: 0.85rem 0;
  }

  .marquee::before,
  .marquee::after {
    width: 48px;
  }

  .about,
  .journey,
  .process,
  .brands,
  .personality {
    padding-block: 3rem;
  }

  .about-copy h2,
  .section-head h2,
  .process h2,
  .contact h2,
  .brands h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }

  .timeline li:hover {
    transform: none;
    padding-inline: 0;
  }

  .deck-shell {
    padding-inline: max(0.85rem, var(--safe-left));
    padding-inline-end: max(0.85rem, var(--safe-right));
  }

  .deck-top-hint {
    width: 100%;
    font-size: 0.82rem;
  }

  .deck-float {
    bottom: calc(0.75rem + var(--safe-bottom));
    padding: 0.55rem 0.75rem;
    border-radius: 16px;
  }

  .deck-counter {
    font-size: 0.92rem;
  }

  .deck-btn {
    width: 40px;
    height: 40px;
  }

  .deck-dots {
    max-width: 140px;
  }

  .logo-orbit {
    display: none;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    padding: 1.15rem 1rem;
  }

  .tools {
    gap: 0.45rem;
  }

  .tool {
    font-size: 0.8rem;
  }

  .quirks {
    gap: 0.5rem;
  }

  .quirks li {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }

  .contact {
    padding-bottom: calc(2.5rem + var(--safe-bottom));
  }

  .contact-card {
    padding: 1.75rem 1.15rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
  }

  .logo-rail {
    margin-bottom: 1.5rem;
  }

  .reveal {
    transform: translateY(18px);
  }
}

@media (max-width: 420px) {
  .brand-grid { grid-template-columns: 1fr; }
  .slide-copy h3 { font-size: 1.25rem; }
  .deck-float .deck-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* keep marquee moving — it's light and expected */
  .logo-rail-track {
    animation: none !important;
  }
  .orbit-ring,
  .orbit-item,
  .hero-img,
  .floater,
  .btn-primary,
  .orb,
  .hero-scroll i,
  .orbit-core,
  .contact-glow,
  .hero-grain {
    animation: none !important;
  }
  .deck-track { transition: none !important; }
  [data-split] .word-inner {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .tile:hover,
  .brand-card:hover,
  .feature:hover,
  .quirks li:hover,
  .skills li:hover {
    transform: none;
  }

  .orb,
  .noise {
    display: none;
  }
}
