/* ============================================
   PLANUMS — Boutique Software Studio
   Black & white · Timeless · Smooth motion
   No italic typography — anywhere.
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-card: #161616;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.66);
  --ink-mute: rgba(255, 255, 255, 0.4);
  --ink-faint: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Brand product accents — only used on product cards on hover */
  --goals: #4375F5;
  --health: #FA3E3E;

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --display-feat: "ss01" on, "ss02" on, "ss04" on;

  --max-w: 1320px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Kill italics globally — defensive */
i, em, cite, address, dfn, var { font-style: normal; }

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  font-style: normal;
}

@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

/* ============================================
   Custom cursor
   ============================================ */
.cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0);
}
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ============================================
   Background atmosphere
   ============================================ */
.orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: drift 28s ease-in-out infinite;
}
.orb--1 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  top: -220px;
  left: -160px;
}
.orb--2 {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  bottom: -260px;
  right: -220px;
  animation-delay: -12s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(80px, -60px); }
  66% { transform: translate(-50px, 50px); }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  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.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(10, 10, 10, 0.88);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.nav__logo:hover { opacity: 0.75; }
.nav__links {
  display: flex;
  gap: 2.25rem;
}
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language switcher */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang__toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.lang__toggle svg { transition: transform 0.25s var(--ease); }
.lang.is-open .lang__toggle { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
.lang.is-open .lang__toggle svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  list-style: none;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 60;
}
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang__menu li { display: block; }
.lang__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  text-align: left;
}
.lang__menu button span {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--ink-mute);
  font-weight: 400;
}
.lang__menu button:hover {
  background: rgba(255,255,255,0.05);
  color: var(--ink);
}
.lang__menu button:hover span { color: var(--ink-soft); }
.lang__menu button.is-active {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}
.lang__menu button.is-active span { color: var(--ink-soft); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.nav__cta svg { transition: transform 0.3s var(--ease); }
.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.nav__cta:hover svg { transform: translate(2px, -2px); }

/* ============================================
   Hero — split layout, fills viewport
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 7.5rem var(--pad-x) 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero__copy { max-width: 720px; }

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.95rem;
  margin-bottom: 2.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: clamp(2.75rem, 7.5vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  font-style: normal;
}
.hero__title.is-revealed .line__inner {
  transform: translateY(0);
}

.hero__subtitle {
  max-width: 580px;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero__pills li {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  cursor: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px), (pointer: coarse) {
  .btn { cursor: pointer; }
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.18);
}
.btn--primary:hover svg { transform: translate(3px, -3px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--ink);
}

/* Starfield canvas (injected by JS) */
.hero__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.hero__stars canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hero visual — kinetic monogram, dotted grid, ticks */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  opacity: 0.5;
  animation: gridShift 24s linear infinite;
  z-index: 1;
}
@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}
.hero__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  will-change: transform;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.hero__mark svg {
  width: 52%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(255,255,255,0.05));
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}
.hero__rings span {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.hero__rings span:nth-child(1) { width: 60%; height: 60%; animation: ringPulse 6s ease-in-out infinite; }
.hero__rings span:nth-child(2) { width: 78%; height: 78%; animation: ringPulse 6s ease-in-out infinite 1.2s; opacity: 0.6; }
.hero__rings span:nth-child(3) { width: 96%; height: 96%; animation: ringPulse 6s ease-in-out infinite 2.4s; opacity: 0.3; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.04); opacity: 0.6; }
}
.hero__ticks {
  position: absolute;
  inset: 1.1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
  z-index: 3;
}
.hero__ticks span:nth-child(1) { align-self: flex-start; }
.hero__ticks span:nth-child(2) { align-self: flex-start; }
.hero__ticks span:nth-child(3) { position: absolute; left: 0; bottom: 0; }
.hero__ticks span:nth-child(4) { position: absolute; right: 0; bottom: 0; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.scroll-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: slide 2.8s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============================================
   Marquee (no italics)
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-elev), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-elev), transparent); }

.marquee__track {
  display: flex;
  gap: 2.75rem;
  animation: marquee 42s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.marquee__sep {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.85em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Stats
   ============================================ */
.stats {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  position: relative;
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--bg-card); }

/* Row keeps number + plus on one baseline */
.stat__row {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.75rem, 4.5vw, 4.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__plus {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* ============================================
   Section header (shared)
   ============================================ */
.section__header {
  margin-bottom: 4rem;
  max-width: 820px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.4rem;
}
.section__header h2,
.contact h2,
.partner-banner h2,
.studio h2 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Replaces previous italic emphasis with subtle underline + soft ink */
.accent {
  color: var(--ink-soft);
  position: relative;
  display: inline-block;
  font-style: normal;
}
.accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
[data-reveal].is-revealed .accent::after,
.is-revealed .accent::after,
h2:hover .accent::after {
  transform: scaleX(1);
}
.section__header.is-revealed .accent::after {
  transform: scaleX(1);
}

/* "noi" — non-italic in-text emphasis (used in studio body) */
.noi { font-style: normal; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }

.section__lead {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.6;
}

/* ============================================
   Studio / Founder story
   ============================================ */
.studio {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.studio__body p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 60ch;
}
.studio__body p + p { margin-top: 1.1rem; }
.studio__body strong { color: var(--ink); font-weight: 600; }

.studio__timeline {
  list-style: none;
  border-top: 1px solid var(--line);
}
.studio__timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.4s var(--ease);
}
.studio__timeline li:hover { padding-left: 0.5rem; }
.studio__year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.studio__timeline li > span:last-child {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Studio quote callout */
.studio__quote {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.studio__quote-mark {
  font-size: 0.7rem;
  color: var(--ink-mute);
  padding-top: 0.4rem;
  flex-shrink: 0;
}
.studio__quote p {
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ============================================
   Services
   ============================================ */
.services {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.service:hover { background: var(--bg-card); }
.service:hover::before { opacity: 1; }
.service__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 2.25rem;
}
.service h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.service p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}
.service--feature {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
}

/* ============================================
   Products — black & white, brand-color reveal on hover
   ============================================ */
.products {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  position: relative;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.product__visual {
  height: 220px;
  background: #0e0e0e;
  position: relative;
  overflow: hidden;
  /* dotted grid */
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.product__visual--partner {
  background: #0e0e0e;
}

.product__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%) scale(0.92);
  color: var(--ink);
  transition: transform 0.6s var(--ease), color 0.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(1);
}
.product__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Goals (blue) on hover */
.product--goals:hover .product__icon {
  color: var(--goals);
  transform: translate(-50%, -50%) scale(1.05) rotate(-4deg);
  filter: grayscale(0) drop-shadow(0 10px 30px rgba(67, 117, 245, 0.45));
}
/* Health (red) on hover */
.product--health:hover .product__icon {
  color: var(--health);
  transform: translate(-50%, -50%) scale(1.05) rotate(4deg);
  filter: grayscale(0) drop-shadow(0 10px 30px rgba(250, 62, 62, 0.45));
}

.product__badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.06);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.product__badge--live {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
.product__badge--beta {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}
.product__badge--soon {
  background: rgba(255,255,255,0.06);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.partner-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.product--partner:hover .partner-mark {
  transform: translate(-50%, -50%) rotate(90deg);
  border-color: var(--ink);
  color: var(--ink);
}
.product__body {
  padding: 1.65rem 1.85rem 1.85rem;
}
.product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 1rem;
}
.product__head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.product__arrow {
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}
.product:hover .product__arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}
.product__body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
  line-height: 1.55;
}
.product__url {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* ============================================
   Partner banner
   ============================================ */
.partner-banner {
  padding: 6rem var(--pad-x);
  position: relative;
}
.partner-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.partner-banner__inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 50%);
  animation: rotate-bg 22s linear infinite;
  pointer-events: none;
}
@keyframes rotate-bg {
  to { transform: rotate(360deg); }
}
.partner-banner__inner > * { position: relative; }
.partner-banner h2 {
  margin: 0.75rem 0 1.5rem;
}
.partner-banner p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

/* ============================================
   Process
   ============================================ */
.process {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.process__list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.process__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.process__item:hover {
  padding-left: 1rem;
}
.process__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
}
.process__item h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.process__item p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 580px;
}

/* ============================================
   Engagement principles — 3×2, no orphan cells
   ============================================ */
.principles {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--pad-x);
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle {
  background: var(--bg);
  padding: 2.25rem 2rem;
  transition: background 0.5s var(--ease);
}
.principle:hover { background: var(--bg-card); }
.principle__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1.5rem;
}
.principle h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-feature-settings: var(--display-feat);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}
.principle p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 8rem var(--pad-x);
  text-align: center;
}
.contact__inner {
  max-width: 900px;
  margin: 0 auto;
}
.contact h2 {
  margin: 0.75rem 0 1.5rem;
}
.contact__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.contact__channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.5rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  position: relative;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.channel:hover {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.channel__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.25rem;
}
.channel__value {
  font-family: var(--display);
  font-style: normal;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: block;
}
.channel__arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.channel:hover .channel__arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 5rem var(--pad-x) 2.5rem;
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__tagline {
  font-family: var(--display);
  font-style: normal;
  font-size: 1.4rem;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer__col--legal {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}
.footer__col--legal strong { color: var(--ink); font-weight: 600; }
.footer__heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.footer__col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--ink); }
.footer__note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
}
.footer__details {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}
.footer__details summary {
  cursor: pointer;
  color: var(--ink-mute);
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s var(--ease);
}
.footer__details summary:hover { color: var(--ink); }
.footer__details summary::-webkit-details-marker { display: none; }
.footer__details summary::before {
  content: '+';
  display: inline-block;
  transition: transform 0.3s var(--ease);
  font-size: 1rem;
  line-height: 1;
}
.footer__details[open] summary::before { transform: rotate(45deg); }
.footer__details ul {
  list-style: none;
  padding: 0.75rem 0 0 1.25rem;
  border-left: 1px solid var(--line);
  margin-top: 0.5rem;
}
.footer__details li {
  padding: 0.3rem 0;
  color: var(--ink-mute);
  line-height: 1.5;
  font-size: 0.78rem;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.footer__location {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer__flag {
  display: flex;
  align-items: center;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.7;
}

/* ============================================
   Reveal animations
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__visual {
    max-width: 460px;
    margin: 0 auto;
  }
  .studio__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ukrainian fallback display font (Fraunces lacks Cyrillic) */
html[lang="uk"] {
  --display: 'PT Serif', 'Times New Roman', serif;
}
html[lang="uk"] .hero__title,
html[lang="uk"] .section__header h2,
html[lang="uk"] .contact h2,
html[lang="uk"] .partner-banner h2,
html[lang="uk"] .studio h2,
html[lang="uk"] .stat__num,
html[lang="uk"] .stat__plus,
html[lang="uk"] .footer__tagline,
html[lang="uk"] .channel__value,
html[lang="uk"] .product__head h3,
html[lang="uk"] .service h3,
html[lang="uk"] .principle h3,
html[lang="uk"] .process__item h3,
html[lang="uk"] .marquee__track {
  font-variation-settings: normal;
  font-feature-settings: normal;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 0.6rem 0.7rem; }
  .nav__right { gap: 0.5rem; }
  .lang__toggle { padding: 0.5rem 0.7rem; font-size: 0.74rem; }
  .lang__menu { right: -2rem; }
  .hero { padding: 6.5rem var(--pad-x) 3.5rem; min-height: 100svh; }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 4.5rem); }
  .hero__visual { max-width: 380px; aspect-ratio: 1 / 1; }
  .hero__ticks { font-size: 0.58rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .services, .products, .partner-banner, .process, .principles, .studio { padding: 4.5rem var(--pad-x); }
  .contact { padding: 5rem var(--pad-x); }
  .process__item { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.75rem 0; }
  .process__item:hover { padding-left: 0.5rem; }
  .studio__timeline li { grid-template-columns: 70px 1fr; gap: 0.85rem; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 0.85rem; padding-bottom: 2rem; margin-bottom: 2.5rem; }
  .footer__cols { gap: 2rem; margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem var(--pad-x) 3rem; }
  .hero__meta { font-size: 0.7rem; padding: 0.4rem 0.75rem; margin-bottom: 1.5rem; }
  .hero__visual { max-width: 320px; }
  .hero__pills li { font-size: 0.66rem; padding: 0.35rem 0.6rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.75rem 1.25rem; }
  .service, .principle { padding: 2rem 1.5rem; }
  .principles__grid { grid-template-columns: 1fr; }
  .product__body { padding: 1.4rem 1.5rem 1.6rem; }
  .channel { padding: 1.25rem 1.5rem; }
  .channel__arrow { top: 1.25rem; right: 1.25rem; }
  .studio__quote { padding: 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .line__inner { transform: translateY(0) !important; }
}
