/* ==========================================================================
   Govza Labs — site styles
   Tokens → base → layout → components → sections → pages → motion
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --paper: #F2F0EB;
  --paper-2: #EAE7E0;
  --surface: #FAF9F6;
  --surface-2: #FFFFFF;
  --ink: #121211;
  --ink-2: #3B3A36;
  --muted: #6B6860;
  --faint: #A9A59C;
  --line: rgba(18, 18, 17, 0.12);
  --line-2: rgba(18, 18, 17, 0.07);
  --line-strong: rgba(18, 18, 17, 0.28);
  --shell: rgba(18, 18, 17, 0.035);
  --chip-bg: rgba(18, 18, 17, 0.055);
  --grid-line: rgba(18, 18, 17, 0.055);

  --accent: #FF5B14;
  --accent-hover: #FF6B2C;
  --on-accent: #121211;
  --accent-text: #B5400D;

  --mark-bg: #121211;
  --mark-fg: #F2F0EB;

  --shadow-sm: 0 1px 2px rgba(64, 40, 16, 0.06), 0 6px 16px -10px rgba(64, 40, 16, 0.2);
  --shadow-md: 0 1px 2px rgba(64, 40, 16, 0.05), 0 18px 40px -22px rgba(64, 40, 16, 0.3);
  --shadow-lg: 0 2px 6px rgba(64, 40, 16, 0.06), 0 32px 64px -28px rgba(64, 40, 16, 0.42);
  --core-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --font-display: 'Wix Madefor Display', 'Onest', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-swing: cubic-bezier(0.45, 0, 0.55, 1);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  --z-preview: 30;
  --z-menu: 40;
  --z-header: 50;
  --z-grain: 60;
  --z-skip: 100;

  color-scheme: light;
}

/* Dark theme: explicit choice, or system preference when nothing is saved */
:root[data-theme="dark"] {
  --paper: #0E0E0D;
  --paper-2: #141413;
  --surface: #181816;
  --surface-2: #1D1D1B;
  --ink: #EDEBE6;
  --ink-2: #C9C6BE;
  --muted: #9A978F;
  --faint: #5F5C56;
  --line: rgba(237, 235, 230, 0.12);
  --line-2: rgba(237, 235, 230, 0.07);
  --line-strong: rgba(237, 235, 230, 0.3);
  --shell: rgba(237, 235, 230, 0.035);
  --chip-bg: rgba(237, 235, 230, 0.07);
  --grid-line: rgba(237, 235, 230, 0.045);
  --accent-text: #FF8A57;
  --mark-bg: #EDEBE6;
  --mark-fg: #121211;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 32px 64px -28px rgba(0, 0, 0, 0.9);
  --core-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0E0D;
    --paper-2: #141413;
    --surface: #181816;
    --surface-2: #1D1D1B;
    --ink: #EDEBE6;
    --ink-2: #C9C6BE;
    --muted: #9A978F;
    --faint: #5F5C56;
    --line: rgba(237, 235, 230, 0.12);
    --line-2: rgba(237, 235, 230, 0.07);
    --line-strong: rgba(237, 235, 230, 0.3);
    --shell: rgba(237, 235, 230, 0.035);
    --chip-bg: rgba(237, 235, 230, 0.07);
    --grid-line: rgba(237, 235, 230, 0.045);
    --accent-text: #FF8A57;
    --mark-bg: #EDEBE6;
    --mark-fg: #121211;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 32px 64px -28px rgba(0, 0, 0, 0.9);
    --core-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html.menu-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Paper grain: fixed, non-interactive, painted once */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #121211;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 168px);
}

.section--alt {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: end;
  }

  .section-head .section-label {
    grid-column: 1 / -1;
  }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.section-label span {
  color: var(--ink);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 8px;
  background: var(--line);
}

/* ---------- Typography ---------- */

.display {
  margin: 0 0 28px;
  font: 700 clamp(2.6rem, 1.45rem + 4.6vw, 5.75rem)/0.98 var(--font-display);
  letter-spacing: -0.045em;
}

.h2 {
  margin: 0;
  max-width: 18ch;
  font: 700 clamp(2.15rem, 1.35rem + 3.2vw, 4.25rem)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.h3 {
  margin: 0;
  font: 700 clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 36px;
  max-width: 33em;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.section-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.97rem/1.1 var(--font-text);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -14px rgba(255, 91, 20, 0.9);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--chip-bg);
}

.btn--lg {
  --btn-h: 58px;
  padding: 0 26px;
  font-size: 1.03rem;
}

.btn--sm {
  --btn-h: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -13px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.5s var(--ease-spring);
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

.btn--lg .btn-icon {
  width: 42px;
  height: 42px;
  margin-right: -17px;
}

.btn--sm .btn-icon {
  width: 30px;
  height: 30px;
  margin-right: -10px;
}

.btn--sm .btn-icon svg {
  width: 15px;
  height: 15px;
}

.btn:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.06);
}

.btn-glyph {
  width: 19px;
  height: 19px;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.25s;
}

.icon-btn:hover {
  background: var(--chip-bg);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.7s var(--ease-spring);
}

[data-theme-toggle].is-turning svg {
  transform: rotate(180deg);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding-inline: 10px;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1220px;
  height: 62px;
  margin-inline: auto;
  padding: 0 9px 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  pointer-events: auto;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled .nav-shell,
.site-header.is-menu-open .nav-shell {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.14rem/1 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  transition: transform 0.6s var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.nav {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle-lines {
  position: relative;
  width: 18px;
  height: 10px;
}

.menu-toggle-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}

.menu-toggle-lines i:first-child {
  top: 0;
}

.menu-toggle-lines i:last-child {
  top: 8px;
}

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

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

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

@media (min-width: 1040px) {
  .nav {
    display: flex;
    gap: 2px;
    margin-inline: auto;
  }

  .nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.25s, background-color 0.25s;
  }

  .nav a:hover {
    color: var(--ink);
  }

  .nav a[aria-current="true"] {
    color: var(--ink);
    background: var(--chip-bg);
  }

  .nav-actions {
    margin-left: 0;
  }

  .brand + .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
}

.menu-nav {
  display: grid;
}

.menu-nav a,
.menu-foot {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(80ms + var(--d, 0) * 45ms);
}

.menu.is-open .menu-nav a,
.menu.is-open .menu-foot {
  opacity: 1;
  transform: none;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font: 700 clamp(2rem, 8.5vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -0.04em;
}

.menu-nav a span {
  min-width: 2ch;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0;
  color: var(--muted);
}

.menu-foot {
  display: grid;
  gap: 10px;
}

@media (min-width: 1040px) {
  .menu {
    display: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(116px, 13vw, 176px);
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: clip;
}

.hero + .section {
  padding-top: clamp(72px, 8vw, 120px);
}

/* Graph-paper texture, faded towards the edges */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 68% 42%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 68% 42%, #000 20%, transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(64px, 9vw, 88px);
  align-items: center;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
    gap: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 500 0.8rem/1 var(--font-mono);
  color: var(--ink-2);
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: live-ping 2.4s var(--ease-out) infinite;
}

@keyframes live-ping {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero .display {
  max-width: 11.5em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: clamp(20px, 4vw, 44px);
  max-width: 600px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts strong {
  display: block;
  margin-bottom: 6px;
  font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.85rem)/1 var(--font-display);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-facts span {
  display: block;
  max-width: 15ch;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Phone (home screen) ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stage {
  --phone-w: min(328px, 76vw);
  position: relative;
  width: var(--phone-w);
}

@media (min-width: 1100px) {
  .phone-stage {
    --phone-w: 336px;
  }
}

@media (min-width: 1360px) {
  .phone-stage {
    --phone-w: 348px;
  }
}

/* Soft glow behind the device */
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 8% -30% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 91, 20, 0.28), transparent);
  filter: blur(20px);
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 0.4877;
  padding: calc(var(--phone-w) * 0.03);
  border-radius: calc(var(--phone-w) * 0.17);
  background: linear-gradient(150deg, #47443F 0%, #161514 16%, #0B0B0A 55%, #2A2826 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 calc(var(--phone-w) * 0.012) #0A0A09,
    0 60px 90px -44px rgba(70, 34, 8, 0.6),
    0 26px 40px -26px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.14);
  container-type: inline-size;
  isolation: isolate;
  color: #FFF;
  background:
    radial-gradient(130% 62% at 50% 112%, #FF5B14 0%, rgba(255, 91, 20, 0.55) 34%, transparent 66%),
    radial-gradient(90% 50% at 0% 0%, rgba(255, 196, 150, 0.22), transparent 62%),
    linear-gradient(180deg, #1A1511 0%, #1F1712 52%, #33190A 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-text);
}

.hs-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14.5cqw;
  padding: 1.2cqw 7.4cqw 0 9.6cqw;
  font-size: 4.3cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hs-island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  width: 29cqw;
  height: 8.6cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}

.hs-indicators {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.hs-indicators svg {
  width: auto;
  height: 3.2cqw;
  fill: currentColor;
}

.hs-indicators .hs-battery {
  height: 3.5cqw;
}

.hs-widget {
  display: flex;
  flex-direction: column;
  height: 40cqw;
  margin: 3cqw 5.6cqw 6.4cqw;
  padding: 4.4cqw 5cqw 4.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6.4cqw;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: widget-in 1s var(--ease-out) 0.3s both;
}

.hs-widget-head {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-size: 3.3cqw;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hs-widget-head img {
  width: 5.6cqw;
  height: 5.6cqw;
  border-radius: 1.4cqw;
}

.hs-widget-head b {
  margin-left: auto;
  font-weight: 600;
  color: #FFB48C;
}

.hs-widget-title {
  margin: auto 0 1.2cqw;
  font: 700 6.4cqw/1 var(--font-display);
  letter-spacing: -0.03em;
}

.hs-widget-sub {
  margin: 0 0 3.4cqw;
  font-size: 3.2cqw;
  color: rgba(255, 255, 255, 0.66);
}

.hs-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4cqw;
}

.hs-progress i {
  height: 1.3cqw;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.hs-progress .is-done {
  background: #FFF;
}

.hs-progress .is-active {
  background: linear-gradient(90deg, #FFF 0 50%, rgba(255, 255, 255, 0.2) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: progress-fill 2.6s var(--ease-out) 1.2s both;
}

.hs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 5.4cqw;
  margin: 0;
  padding: 0 4cqw;
  list-style: none;
}

.hs-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7cqw;
  color: #FFF;
  animation: app-pop 0.9s var(--ease-spring) both;
  animation-delay: calc(420ms + var(--i, 0) * 40ms);
}

.hs-app img {
  width: 15.6cqw;
  height: 15.6cqw;
  border-radius: 3.6cqw;
  background: #FFF;
  box-shadow: 0 1.4cqw 3.4cqw rgba(0, 0, 0, 0.3);
  transition: transform 0.45s var(--ease-spring), filter 0.2s;
}

.hs-app span {
  max-width: 100%;
  overflow: hidden;
  font-size: 2.8cqw;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hs-app:hover img,
.hs-dock-app:hover {
  transform: scale(1.08);
}

.hs-app:active img,
.hs-dock-app:active {
  transform: scale(0.92);
  filter: brightness(0.85);
}

.hs-app:focus-visible,
.hs-dock-app:focus-visible {
  outline-offset: 1px;
  border-radius: 3.6cqw;
}

.hs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 31cqw;
  display: flex;
  justify-content: center;
  gap: 2cqw;
}

.hs-dots i {
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hs-dots .is-on {
  background: #FFF;
}

.hs-dock {
  position: absolute;
  left: 3.4cqw;
  right: 3.4cqw;
  bottom: 5.4cqw;
  display: grid;
  grid-template-columns: repeat(3, 15.6cqw);
  justify-content: center;
  place-items: center;
  column-gap: 6.8cqw;
  height: 22.4cqw;
  padding: 0 1.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8.6cqw;
  background: rgba(255, 255, 255, 0.16);
}

.hs-dock-app {
  display: grid;
  place-items: center;
  width: 15.6cqw;
  height: 15.6cqw;
  border-radius: 3.6cqw;
  box-shadow: 0 1.4cqw 3.4cqw rgba(0, 0, 0, 0.3);
  animation: app-pop 0.9s var(--ease-spring) both;
  animation-delay: calc(420ms + var(--i, 0) * 40ms);
  transition: transform 0.45s var(--ease-spring), filter 0.2s;
}

.tile-tg {
  background: linear-gradient(180deg, #3CB3EC, #1F94CF);
  color: #FFF;
}

.tile-tg svg {
  width: 9cqw;
  height: 9cqw;
  transform: translateX(-0.4cqw);
}

.tile-wa {
  background: linear-gradient(180deg, #5FE07A, #22BE57);
  color: #FFF;
}

.tile-wa svg {
  width: 9.6cqw;
  height: 9.6cqw;
}

.tile-gl {
  --mark-bg: #F2F0EB;
  --mark-fg: #121211;
  box-shadow: none;
}

.tile-gl svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1.4cqw 3cqw rgba(0, 0, 0, 0.3));
}

.hs-home-bar {
  position: absolute;
  left: 50%;
  bottom: 1.8cqw;
  width: 36cqw;
  height: 1.4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink-2);
  animation: card-in 1s var(--ease-out) both, card-bob 6s var(--ease-swing) infinite alternate;
}

.float-card b {
  color: var(--ink);
  font-weight: 600;
}

.float-card-body {
  display: grid;
  gap: 2px;
}

.float-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.float-card-top span {
  color: var(--muted);
}

.float-card-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.float-card img {
  width: 40px;
  height: 40px;
  border-radius: 23%;
  flex: none;
}

.float-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 1.15rem/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
}

.stars svg {
  width: 13px;
  height: 13px;
}

.float-card--notify {
  top: -3%;
  left: -12%;
  width: min(270px, 74vw);
  animation-delay: 1.25s, 2.3s;
}

.float-card--rating {
  right: -12%;
  bottom: 22%;
  animation-delay: 1.55s, 2.6s;
}

@media (min-width: 1100px) {
  .float-card--notify {
    top: -4%;
    left: -44%;
  }

  .float-card--rating {
    right: -6%;
  }
}

@media (min-width: 1360px) {
  .float-card--rating {
    right: -20%;
  }
}

@keyframes app-pop {
  from {
    opacity: 0;
    transform: scale(0.35) translateY(6cqw);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes widget-in {
  from {
    opacity: 0;
    transform: translateY(5cqw) scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes progress-fill {
  to {
    background-position: 0 0;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

/* ---------- Chips & tags ---------- */

.tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li,
.chips li {
  padding: 7px 10px;
  border-radius: 8px;
  font: 500 0.74rem/1 var(--font-mono);
  color: var(--ink-2);
  background: var(--chip-bg);
}

.chips li {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Work: featured cases ---------- */

.cases {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .cases {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .case--wide {
    grid-column: span 7;
  }

  .case--narrow {
    grid-column: span 5;
  }
}

/* Double bezel: outer shell + inner core */
.case {
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 32px;
  background: var(--shell);
}

.case-core {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--core-highlight), 0 0 0 1px var(--line-2);
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  background: var(--tint, var(--paper-2));
}

@media (min-width: 900px) {
  .case-media {
    aspect-ratio: auto;
    height: clamp(340px, 32vw, 470px);
  }
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
}

@media (min-width: 900px) {
  .case-body {
    padding: 26px 28px 28px;
  }
}

.case-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-title {
  margin: 0;
  font: 700 1.5rem/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.case-kicker {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.5s var(--ease-spring);
}

.case-arrow svg {
  width: 18px;
  height: 18px;
}

a.case-core:hover .case-arrow {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  transform: translate(2px, -2px);
}

.case-desc {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-2);
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}

.case-metrics strong {
  display: block;
  margin-bottom: 4px;
  font: 700 1.65rem/1 var(--font-display);
  letter-spacing: -0.035em;
}

.case-metrics span {
  display: block;
  max-width: 24ch;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.case .tags {
  margin-top: auto;
}

.app-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 16px -10px rgba(0, 0, 0, 0.45);
}

.app-icon--sm {
  width: 44px;
  height: 44px;
}

/* Media compositions */
.media-azkar {
  --tint: #E4ECF9;
}

.media-azkar .shot {
  position: absolute;
  width: 29%;
  height: auto;
  border-radius: 7% / 3.2%;
  box-shadow: 0 0 0 1px rgba(40, 60, 120, 0.08), 0 30px 50px -26px rgba(40, 60, 120, 0.55);
  transition: transform 1s var(--ease-out);
}

.media-azkar .shot--c {
  left: 35.5%;
  top: 9%;
  z-index: 2;
}

.media-azkar .shot--l {
  left: 7%;
  top: 17%;
  transform: rotate(-5deg);
}

.media-azkar .shot--r {
  right: 7%;
  top: 17%;
  transform: rotate(5deg);
}

.case-core:hover .media-azkar .shot--c {
  transform: translateY(-3%);
}

.case-core:hover .media-azkar .shot--l {
  transform: rotate(-7deg) translate(-5%, -1%);
}

.case-core:hover .media-azkar .shot--r {
  transform: rotate(7deg) translate(5%, -1%);
}

.media-govza {
  --tint: #F6F7FF;
}

.media-govza img {
  position: absolute;
  left: 50%;
  top: 3%;
  width: min(96%, 540px);
  height: auto;
  transform: translateX(-50%);
  transition: transform 1s var(--ease-out);
}

.case-core:hover .media-govza img {
  transform: translate(-50%, -2%) scale(1.02);
}

/* ---------- Work: archive ---------- */

.archive {
  margin-top: clamp(64px, 8vw, 112px);
}

.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.archive-note {
  margin: 0;
  font: 500 0.75rem/1.3 var(--font-mono);
  color: var(--muted);
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list > li {
  border-bottom: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name meta"
    "icon desc desc"
    "icon tags tags";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 16px 0 18px;
  border-radius: 14px;
  transition: background-color 0.3s;
}

.archive-row .app-icon {
  grid-area: icon;
  align-self: start;
  margin-top: 2px;
}

.archive-name {
  grid-area: name;
  font: 700 1.12rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease-out);
}

.archive-desc {
  grid-area: desc;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.archive-tags {
  grid-area: tags;
  margin-top: 6px;
  font: 500 0.72rem/1.3 var(--font-mono);
  color: var(--muted);
}

.archive-meta {
  grid-area: meta;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 0.82rem/1 var(--font-mono);
  color: var(--ink);
}

.archive-meta svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.archive-arrow {
  display: none;
}

@media (min-width: 900px) {
  .archive-row {
    grid-template-columns: 44px minmax(150px, 0.85fr) minmax(0, 1.7fr) minmax(0, 1.05fr) 56px 40px;
    grid-template-areas: "icon name desc tags meta arrow";
    column-gap: 24px;
    padding: 14px 10px;
    margin-inline: -10px;
  }

  .archive-row .app-icon {
    align-self: center;
    margin-top: 0;
  }

  .archive-tags {
    margin-top: 0;
  }

  .archive-meta {
    justify-self: end;
  }

  .archive-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ink);
    transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-spring);
  }

  .archive-arrow svg {
    width: 16px;
    height: 16px;
  }

  a.archive-row:hover {
    background: var(--shell);
  }

  a.archive-row:hover .archive-name {
    transform: translateX(6px);
  }

  a.archive-row:hover .archive-arrow {
    background: var(--accent);
    color: var(--on-accent);
    transform: translate(2px, -2px);
  }
}

.archive-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-preview);
  width: 190px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  will-change: transform;
}

.archive-preview.is-visible {
  opacity: 1;
}

.archive-preview-inner {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  transform: scale(0.8);
  transition: transform 0.5s var(--ease-spring);
}

.archive-preview.is-visible .archive-preview-inner {
  transform: scale(1);
}

.archive-preview img {
  width: 100%;
  height: auto;
}

/* Flash a project after jumping to it from the home screen */
.is-flash {
  animation: flash 1.6s var(--ease-out);
}

@keyframes flash {
  0%,
  30% {
    box-shadow: 0 0 0 3px var(--accent);
  }

  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

@media (min-width: 760px) {
  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 6vw, 96px);
  }
}

.service {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.service > * {
  grid-column: 2;
}

.service-num {
  grid-column: 1;
  grid-row: 1;
  padding-top: 6px;
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--muted);
  transition: color 0.3s;
}

.service-title {
  grid-row: 1;
  margin: 0 0 10px;
  font: 700 clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem)/1.15 var(--font-display);
  letter-spacing: -0.03em;
}

.service p {
  margin: 0 0 18px;
  max-width: 44ch;
  color: var(--ink-2);
}

.service:hover .service-num {
  color: var(--accent-text);
}

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 36px 60px;
}

/* Vertical rail on small screens */
.step::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  font: 500 0.9rem/1 var(--font-mono);
  color: var(--ink);
}

.step:last-child .step-num {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.step-title {
  margin: 6px 0 10px;
  font: 700 1.4rem/1.15 var(--font-display);
  letter-spacing: -0.03em;
}

.step p {
  margin: 0 0 14px;
  max-width: 40ch;
  font-size: 0.98rem;
  color: var(--ink-2);
}

.step .step-out {
  display: inline-block;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font: 500 0.75rem/1.3 var(--font-mono);
  color: var(--muted);
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }

  /* Horizontal rail that draws in when the section appears */
  .steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 80%, var(--accent));
    transform-origin: left;
  }

  .js .steps::before {
    transform: scaleX(0);
    transition: transform 1.8s var(--ease-out) 0.2s;
  }

  .js .steps.is-drawn::before,
  .no-reveal .steps::before {
    transform: none;
  }

  .step {
    padding: 0;
  }

  .step::before {
    display: none;
  }

  .step-num {
    position: relative;
    margin-bottom: 26px;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
  }
}

.about-lead {
  margin: 0 0 22px;
  font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.22 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-text p:not(.about-lead) {
  max-width: 50ch;
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stats li {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.stats li:nth-child(odd) {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.stats li:nth-child(even) {
  padding-left: clamp(16px, 3vw, 32px);
}

.stats strong {
  display: block;
  margin-bottom: 10px;
  font: 700 clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--font-display);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.stats span {
  display: block;
  max-width: 22ch;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Technology band */
.band {
  margin-top: clamp(80px, 10vw, 140px);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.band-track {
  display: flex;
  width: max-content;
}

.band-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-left: 0.5em;
  font: 700 clamp(1.9rem, 1.2rem + 3vw, 3.75rem)/1.1 var(--font-display);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.band-track span::after {
  content: '';
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
}

.band-track span:nth-child(even) {
  color: var(--muted);
}

.js .band-track.is-running {
  animation: band 55s linear infinite;
}

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

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

/* ---------- Contact ---------- */

.section--contact {
  padding-top: 0;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 88px) clamp(22px, 6vw, 88px) clamp(36px, 6vw, 88px);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--accent);
  color: #121211;
  isolation: isolate;
}

/* Oversized mark watermark */
.contact::after {
  content: '';
  position: absolute;
  right: -8%;
  bottom: -26%;
  z-index: -1;
  width: min(62vw, 560px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M44 23.5A14.5 14.5 0 1 0 46.5 34H33' fill='none' stroke='%23121211' stroke-width='8'/%3E%3Ccircle cx='50' cy='14' r='6' fill='%23121211'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.09;
  transform: rotate(-12deg);
}

.contact .section-label {
  color: rgba(18, 18, 17, 0.72);
}

.contact .section-label span {
  color: #121211;
}

.contact .section-label::before {
  background: #121211;
}

.contact .section-label::after {
  background: rgba(18, 18, 17, 0.22);
}

.contact-title {
  max-width: 11ch;
  margin: 26px 0 22px;
  font: 700 clamp(2.75rem, 1.4rem + 5.4vw, 6.25rem)/0.95 var(--font-display);
  letter-spacing: -0.05em;
}

.contact-lead {
  max-width: 30ch;
  margin: 0 0 40px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.45;
  color: rgba(18, 18, 17, 0.82);
}

.contact-actions {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

@media (min-width: 720px) {
  .contact-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 14px 14px 20px;
  border-radius: 22px;
  background: #121211;
  color: #F2F0EB;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -22px rgba(18, 18, 17, 0.7);
}

.contact-btn:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}

.contact-btn:focus-visible {
  outline-color: #121211;
}

.contact-btn-glyph {
  width: 28px;
  height: 28px;
  flex: none;
}

.contact-btn-text b {
  display: block;
  font: 700 1.2rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.contact-btn-text span {
  display: block;
  margin-top: 3px;
  font: 500 0.8rem/1.2 var(--font-mono);
  color: rgba(242, 240, 235, 0.65);
}

.contact-btn-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: #FF5B14;
  color: #121211;
  transition: transform 0.5s var(--ease-spring);
}

.contact-btn-arrow svg {
  width: 18px;
  height: 18px;
}

.contact-btn:hover .contact-btn-arrow {
  transform: translate(2px, -2px) scale(1.05);
}

.contact-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-alt svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-spring);
}

.contact-alt:hover svg {
  transform: translateX(4px);
}

.contact-alt:focus-visible {
  outline-color: #121211;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 6px;
  font: 500 0.75rem/1 var(--font-mono);
  color: var(--muted);
}

.footer-col a {
  font-size: 0.97rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-text);
}

.footer-wordmark {
  margin: clamp(56px, 8vw, 104px) 0 0;
  overflow: hidden;
  font: 800 clamp(3.6rem, 16.6vw, 15.25rem)/0.82 var(--font-display);
  letter-spacing: -0.065em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 10%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  padding-bottom: 0.06em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--muted);
}

.footer-legal {
  margin: 16px 0 0;
  font: 500 0.78rem/1.6 var(--font-mono);
  font-style: normal;
  color: var(--muted);
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent-text);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.theme-switch:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  transition: transform 0.7s var(--ease-spring);
}

/* ---------- Product page (Azkar) ---------- */

.product-hero {
  position: relative;
  padding-top: clamp(116px, 13vw, 168px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: clip;
}

.product-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .product-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font: 500 0.8rem/1 var(--font-mono);
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  transition: transform 0.5s var(--ease-spring);
}

.breadcrumb:hover {
  color: var(--ink);
}

.breadcrumb:hover svg {
  transform: rotate(180deg) translateX(3px);
}

.product-id {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.product-icon {
  width: clamp(72px, 9vw, 96px);
  height: clamp(72px, 9vw, 96px);
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line-2), 0 16px 30px -18px rgba(40, 60, 120, 0.6);
}

.product-title {
  margin: 0;
  font: 700 clamp(3rem, 2rem + 4vw, 5.5rem)/0.95 var(--font-display);
  letter-spacing: -0.05em;
}

.product-sub {
  margin: 8px 0 0;
  font: 500 0.9rem/1.3 var(--font-mono);
  color: var(--muted);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
}

.store-badges a {
  display: block;
  transition: transform 0.5s var(--ease-spring);
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges a:active {
  transform: scale(0.97);
}

.store-badges img {
  height: 52px;
  width: auto;
}

.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-stats strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font: 700 1.9rem/1 var(--font-display);
  letter-spacing: -0.035em;
}

.product-stats strong svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.product-stats span {
  font-size: 0.86rem;
  color: var(--muted);
}

.product-stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  border-radius: clamp(28px, 3vw, 40px);
  background: #E4ECF9;
}

.product-stage img {
  position: absolute;
  width: 34%;
  height: auto;
  border-radius: 7% / 3.2%;
  box-shadow: 0 0 0 1px rgba(40, 60, 120, 0.08), 0 36px 60px -30px rgba(40, 60, 120, 0.6);
  animation: stage-in 1.1s var(--ease-out) both;
}

/* Uses `translate` so the screenshots keep their `transform: rotate()` */
@keyframes stage-in {
  from {
    opacity: 0;
    translate: 0 40px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.product-stage img:nth-child(1) {
  left: 9%;
  top: 16%;
  transform: rotate(-6deg);
  animation-delay: 0.35s;
}

.product-stage img:nth-child(2) {
  left: 33%;
  top: 8%;
  z-index: 2;
  animation-delay: 0.2s;
}

.product-stage img:nth-child(3) {
  right: 9%;
  top: 16%;
  transform: rotate(6deg);
  animation-delay: 0.5s;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 62vw, 280px);
  gap: 16px;
  margin: 0;
  padding: 4px var(--gutter) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1100px) {
  .gallery {
    grid-auto-columns: calc((min(100vw, var(--container) + 2 * var(--gutter)) - 2 * var(--gutter) - 5 * 16px) / 6);
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
  }
}

.gallery li {
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-md);
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.gallery-nav {
  display: flex;
  gap: 8px;
}

.gallery-nav button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--ease-spring);
}

.gallery-nav button:hover {
  border-color: var(--ink);
  background: var(--chip-bg);
}

.gallery-nav button:active {
  transform: scale(0.94);
}

.gallery-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
}

.gallery-nav [data-gallery-prev] svg {
  transform: rotate(180deg);
}

@media (min-width: 1100px) {
  .gallery-nav {
    display: none;
  }
}

.features {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 6vw, 96px);
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  display: block;
  margin-bottom: 14px;
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--muted);
}

.feature h3 {
  margin: 0 0 8px;
  font: 700 1.35rem/1.15 var(--font-display);
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  max-width: 38ch;
  color: var(--ink-2);
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 120px var(--gutter) 80px;
  text-align: center;
}

.not-found-code {
  margin: 0;
  font: 800 clamp(7rem, 4rem + 18vw, 16rem)/0.85 var(--font-display);
  letter-spacing: -0.07em;
}

.not-found-code span {
  color: var(--accent);
}

.not-found h1 {
  margin: 28px 0 12px;
  font: 700 clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 36ch;
  margin: 0 auto 32px;
  color: var(--ink-2);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Motion ---------- */

.hero-in {
  animation: hero-in 1s var(--ease-out) both;
  animation-delay: calc(60ms + var(--d, 0) * 90ms);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in,
.no-reveal [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    transform: none;
  }
}
