/* =========================================================
   Cenkle Digital — cinematic dark identity
   ========================================================= */
:root {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --surface: #14141b;
  --surface-2: #1a1a23;
  --text: #f5f4ef;
  --muted: #9a9aa7;
  --faint: #6e6e7c;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --blue: #6a8bff;
  --blue-deep: #3a5bff;
  --warm: #ff6b3d;
  --pink: #ff5a8a;
  --radius: 20px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman",
    serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg);
}

/* Brand scrollbar + selection */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6a8bff 0%, #8b6bff 28%, #ff5a8a 62%, #ff6b3d 100%);
  border-radius: 999px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7e9bff 0%, #a06bff 28%, #ff6a96 62%, #ff7d50 100%);
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::selection {
  background: var(--blue);
  color: #06060a;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain + vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../img/noise.svg");
  opacity: 0.035;
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Animated aurora canvas */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}
.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pl-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  animation: plpulse 1.5s var(--ease) infinite;
}
.pl-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: fade 0.8s var(--ease) 0.2s forwards;
}
.pl-bar {
  width: 140px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.pl-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--warm));
  animation: plload 1.4s var(--ease) infinite;
}
@keyframes plpulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 139, 255, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 44px 0 rgba(106, 139, 255, 0.5);
  }
}
@keyframes plload {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Scroll progress */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--warm));
  box-shadow: 0 0 12px rgba(106, 139, 255, 0.6);
  transition: transform 0.08s linear;
  will-change: transform;
}

/* Cursor glow */
#glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 139, 255, 0.16), rgba(106, 139, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}

main,
header,
footer {
  position: relative;
  z-index: 3;
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.grad {
  background: linear-gradient(105deg, var(--blue) 0%, var(--pink) 48%, var(--warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  will-change: transform;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn-primary {
  background: var(--text);
  color: #0a0a0c;
}
.btn-primary:hover {
  box-shadow: 0 18px 50px -18px rgba(106, 139, 255, 0.65);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--warm));
  display: inline-block;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand .mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 6px 20px -8px rgba(106, 139, 255, 0.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a.link {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a.link:hover {
  color: var(--text);
}
.nav-links a.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--warm));
  transition: width 0.3s var(--ease);
}
.nav-links a.link:hover::after {
  width: 100%;
}
.nav-links a.link.active {
  color: var(--text);
}
.nav-links a.link.active::after {
  width: 100%;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  letter-spacing: -0.035em;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.08s;
}
.hero h1 .accent {
  font-style: italic;
}
@keyframes rise {
  to {
    transform: translateY(0);
  }
}
.hero .lead {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 34ch;
  margin: 28px 0 36px;
  opacity: 0;
  animation: fade 0.9s var(--ease) 0.35s forwards;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fade 0.9s var(--ease) 0.5s forwards;
}
.hero-meta {
  margin-top: 46px;
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade 0.9s var(--ease) 0.65s forwards;
}
.hero-meta .stat .n {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}
.hero-meta .stat .l {
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
}

/* Hero visual — floating glass devices */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  perspective: 1200px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(106, 139, 255, 0.22),
    rgba(106, 139, 255, 0.05) 45%,
    transparent 70%
  );
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
.stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-orb {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.12), transparent 14%),
    radial-gradient(circle at 52% 52%, rgba(106, 139, 255, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.09);
  filter: drop-shadow(0 70px 120px rgba(0, 0, 0, 0.65));
  transform: translateZ(-60px);
}
.hero-orb::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 48px rgba(255, 255, 255, 0.05);
}
.ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
}
.ring.r2 {
  inset: 18%;
  border-style: dashed;
  opacity: 0.5;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.device {
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(4px);
  will-change: transform;
}
.device.a {
  width: 56%;
  left: 2%;
  top: 8%;
  transform: rotate(-6deg) translateZ(40px);
  z-index: 2;
}
.device.b {
  width: 50%;
  right: 2%;
  bottom: 6%;
  transform: rotate(6deg) translateZ(80px);
  z-index: 3;
}
.device .scr {
  display: block;
  width: 100%;
  height: 100%;
}
.device::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.16) 46%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: glare 7.5s ease-in-out infinite;
}
.device.b::after {
  animation-delay: 2.6s;
}
@keyframes glare {
  0%,
  16% {
    transform: translateX(-130%);
  }
  30%,
  100% {
    transform: translateX(130%);
  }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee .track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  will-change: transform;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.marquee b {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  letter-spacing: -0.02em;
}
.marquee b .sep {
  color: var(--warm);
}
.marquee b.dim {
  color: var(--faint);
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin-top: 18px;
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--muted);
  margin: 20px 0 0;
  font-size: 18px;
}

/* Manifesto — a single, quiet statement */
.manifesto {
  padding: 120px 0;
}
.manifesto-lead {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 24ch;
  text-align: center;
  text-wrap: balance;
  color: var(--text);
}
.manifesto-lead::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 32px auto 0;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

/* Products */
.work {
  display: grid;
  gap: 30px;
}
.case {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition:
    border-color 0.4s var(--ease),
    transform 0.5s var(--ease);
  will-change: transform;
}
.case.chapter {
  min-height: 620px;
  border-radius: 34px;
}
.case.chapter::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 24px;
  pointer-events: none;
}
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--blue), transparent 40%, transparent 60%, var(--warm));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.case:hover::before {
  opacity: 0.9;
}
.case:hover {
  border-color: transparent;
}
.case:nth-child(even) .case-media {
  order: 2;
}
.case-media {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
}
.case.chapter .case-media::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 66%);
  filter: blur(1px);
}
.case-media.elele {
  background: radial-gradient(120% 120% at 30% 20%, rgba(33, 150, 243, 0.24), transparent 60%);
}
.case-media.tapstice {
  background: radial-gradient(120% 120% at 70% 20%, rgba(255, 107, 61, 0.2), transparent 60%);
}
.case-media .phone {
  width: 220px;
  max-width: 62%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease);
  position: relative;
  z-index: 1;
}
.case.chapter .case-media .phone {
  width: 250px;
}
.case:hover .case-media .phone {
  transform: translateY(-8px) scale(1.02);
}
.case-body {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-label {
  width: fit-content;
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.case-body .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.case-body .kicker .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}
.case-body h3 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}
.case-body p {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 16.5px;
}
.case-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.case-stats .s .n {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.case-stats .s .l {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 4px;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}
.store-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store-btn .lbl {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.store-btn .lbl small {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.store-btn .lbl b {
  font-size: 15px;
  font-weight: 600;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  width: fit-content;
  transition:
    gap 0.25s var(--ease),
    color 0.25s var(--ease);
}
.case-link:hover {
  gap: 14px;
  color: var(--text);
}

/* Studio */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
.about-grid .lead-col p {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 20px;
}
.about-grid .lead-col p strong {
  color: var(--text);
  font-weight: 600;
}
.factsheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(20, 20, 27, 0.5);
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease);
}
.fact:hover {
  background: rgba(255, 255, 255, 0.03);
}
.fact:last-child {
  border-bottom: 0;
}
.fact .k {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact .v {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text);
  text-align: right;
}

/* Craft */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
  will-change: transform;
}
.service::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 139, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--surface-2);
}
.service:hover::after {
  opacity: 1;
}
.service .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.service .ico svg {
  width: 22px;
  height: 22px;
}
.service h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.service .num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--serif);
  color: rgba(255, 255, 255, 0.12);
  font-size: 26px;
  line-height: 1;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details.qa {
  border-bottom: 1px solid var(--line);
}
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  align-items: center;
  transition: color 0.25s var(--ease);
}
details.qa summary:hover {
  color: var(--blue);
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa .plus {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
details.qa .plus::before,
details.qa .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
details.qa .plus::before {
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
}
details.qa .plus::after {
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  transition: transform 0.3s var(--ease);
}
details.qa[open] .plus::after {
  transform: scaleY(0);
}
details.qa .ans {
  padding: 0 0 26px;
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

/* Contact */
.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(106, 139, 255, 0.18), transparent 60%),
    radial-gradient(60% 100% at 90% 120%, rgba(255, 107, 61, 0.14), transparent 60%);
  pointer-events: none;
}
.contact .inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.contact h2 {
  font-size: clamp(34px, 5.5vw, 64px);
  letter-spacing: -0.03em;
}
.contact p {
  color: var(--muted);
  font-size: 18px;
  margin: 20px 0 32px;
  max-width: 40ch;
}
.contact-card {
  background: rgba(10, 10, 14, 0.5);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  backdrop-filter: blur(8px);
}
.contact-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-card .row:last-child {
  border-bottom: 0;
}
.contact-card .row .k {
  font-size: 12.5px;
  color: var(--faint);
  width: 86px;
  flex: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-card .row .v {
  font-weight: 600;
}
.contact-card .row .v a:hover {
  color: var(--blue);
}

/* Footer */
footer.site {
  padding: 72px 0 44px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 32ch;
}
.foot-brand .brand {
  margin-bottom: 16px;
}
.foot-brand p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.foot-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.foot-col h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-family: inherit;
  font-weight: 700;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.foot-col a:hover {
  color: var(--text);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.socials a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-3px);
}
.socials svg {
  width: 17px;
  height: 17px;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .case,
  .case:nth-child(even) .case-media {
    grid-template-columns: 1fr;
  }
  .case.chapter {
    min-height: unset;
  }
  .case:nth-child(even) .case-media {
    order: 0;
  }
  .case-media {
    min-height: 300px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact .inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .manifesto {
    padding: 84px 0;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  html {
    scroll-padding-top: 84px;
  }
  section {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
  .nav {
    height: 70px;
  }
  .brand {
    position: relative;
    z-index: 95;
  }
  body.menu-open {
    overflow: hidden;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background:
      radial-gradient(120% 90% at 80% 0%, rgba(106, 139, 255, 0.1), transparent 55%),
      linear-gradient(180deg, rgba(8, 8, 11, 0.99), rgba(14, 14, 19, 0.99));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 0 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.45s var(--ease),
      transform 0.45s var(--ease),
      visibility 0.45s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a.link {
    font-family: var(--serif);
    font-size: clamp(34px, 9vw, 48px);
    letter-spacing: -0.02em;
    padding: 10px 0;
    width: 100%;
    color: var(--text);
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease),
      color 0.25s var(--ease);
  }
  .nav-links a.link::after {
    display: none;
  }
  .nav-links.open a.link {
    opacity: 1;
    transform: none;
  }
  .nav-links.open a.link:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.open a.link:nth-child(2) {
    transition-delay: 0.16s;
  }
  .nav-links.open a.link:nth-child(3) {
    transition-delay: 0.22s;
  }
  .nav-links.open a.link:nth-child(4) {
    transition-delay: 0.28s;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-cta .btn-primary {
    position: relative;
    z-index: 95;
  }
  .menu-btn {
    display: block;
    position: relative;
    z-index: 95;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .case-body {
    padding: 34px 28px;
  }
  .contact {
    border-radius: 24px;
  }
  #glow {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero h1 .line > span {
    transform: none;
  }
  .hero .lead,
  .hero-actions,
  .hero-meta {
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  #aurora,
  .ring.r2 {
    display: none;
  }
}
