@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #080808;
  --bg-2: #0d0d0d;
  --surface: #111111;
  --surface-2: #181818;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --border-3: rgba(255, 255, 255, 0.22);
  --text: #f5f5f5;
  --text-muted: #888888;
  --text-faint: #444444;
  --white: #ffffff;
  --max-w: 1180px;
  --pad-x: clamp(20px, 5vw, 72px);
  --nav-h: 64px;
  --radius: 7px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.08;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── CONTAINER ─────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ─── NOISE OVERLAY ──────────────────────────────────── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  pointer-events: none;
  opacity: 0.022;
  z-index: 9999;
  animation: grainMove 7s steps(10) infinite;
}

@keyframes grainMove {
  0%   { transform: translate(0,    0   ); }
  10%  { transform: translate(-2%,  3%  ); }
  20%  { transform: translate( 2%,  -2% ); }
  30%  { transform: translate(-3%,  1%  ); }
  40%  { transform: translate( 1%,  -3% ); }
  50%  { transform: translate(-1%,  2%  ); }
  60%  { transform: translate( 3%,  -1% ); }
  70%  { transform: translate(-2%,  -2% ); }
  80%  { transform: translate( 1%,   3% ); }
  90%  { transform: translate(-1%,  -2% ); }
  100% { transform: translate(0,    0   ); }
}

/* ─── NAVIGATION ─────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 500;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding: 8px 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--pad-x) 24px;
  z-index: 499;
  flex-direction: column;
  gap: 0;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--white); }

/* ─── BUTTONS ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--white);
  color: #080808;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--border-3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ─── HERO ───────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ── Spline: anchored to the right portion of the hero ── */
.hero__spline {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  z-index: 0;
}

.hero__spline spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Gradient overlay ──
   • Solid dark over left 30% (blends Spline edge into page bg)
   • Fades to transparent by ~72% so 3D reads clearly on the right
   • Bottom vignette is solid — fully masks the Spline logo watermark */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(8, 8, 8, 0.98) 0%,
      rgba(8, 8, 8, 0.98) 26%,
      rgba(8, 8, 8, 0.75) 38%,
      rgba(8, 8, 8, 0.22) 56%,
      transparent 72%
    ),
    linear-gradient(to top,
      rgba(8, 8, 8, 1.0)  0%,
      rgba(8, 8, 8, 1.0)  7%,
      rgba(8, 8, 8, 0.85) 12%,
      rgba(8, 8, 8, 0.4)  18%,
      transparent         28%
    );
}

/* ── Cursor spotlight (sits above overlay, below text) ── */
.hero__spotlight {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    transparent 70%);
  filter: blur(32px);
  transform: translate(-50%, -50%);
  left: var(--spotlight-x, 30%);
  top: var(--spotlight-y, 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 2;
}

.hero:hover .hero__spotlight { opacity: 1; }

/* ── Text content (top layer) ── */
.hero__content-wrap {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: clamp(20px, 3.5vw, 52px);
  width: 100%;
  /* Don't block Spline mouse events on the right side of the hero */
  pointer-events: none;
}

.hero__content {
  max-width: 500px;
  /* Re-enable events for the actual text/buttons block */
  pointer-events: auto;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero__tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
  flex-shrink: 0;
}

.hero__headline {
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__meta-item {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ─── MARQUEE ────────────────────────────────────────── */

.marquee-wrap {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 40px;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.marquee-desc {
  font-size: 13px;
  color: var(--text-faint);
}

.marquee-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}

/* ─── SECTION BASE ───────────────────────────────────── */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── VISION & MISSION ───────────────────────────────── */

/* Pulsing ambient glow behind the section */
.vm-section { position: relative; overflow: hidden; }

.vm-section__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.032) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  animation: vmGlow 9s ease-in-out infinite;
  pointer-events: none;
  /* Allow JS to smoothly reposition when cards are hovered */
  transition: left 0.8s var(--ease), top 0.8s var(--ease);
}

@keyframes vmGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vm-card {
  background: var(--bg-2);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease), box-shadow 0.6s var(--ease), opacity 0.45s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.vm-card:hover {
  background: var(--surface);
  box-shadow: inset 0 0 80px rgba(255,255,255,0.02);
}

/* Decorative large number — watermark behind content */
.vm-card__num {
  position: absolute;
  top: -12px;
  right: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(88px, 10vw, 144px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  transition: color 0.7s var(--ease);
}

.vm-card:hover .vm-card__num {
  color: rgba(255, 255, 255, 0.075);
}

/* Light-sheen sweep on hover — the luxury glass reflection */
.vm-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.025) 35%,
    rgba(255, 255, 255, 0.065) 50%,
    rgba(255, 255, 255, 0.025) 65%,
    transparent 100%
  );
  transform: skewX(-12deg);
  pointer-events: none;
  opacity: 0;
}

.vm-card:hover::after {
  animation: vmSheen 0.75s var(--ease) forwards;
  opacity: 1;
}

@keyframes vmSheen {
  from { left: -90%; }
  to   { left: 150%; }
}

.vm-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  position: relative;
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  transform-origin: top left;
}

.vm-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease), font-size 0.45s var(--ease);
  transform-origin: top left;
}

.vm-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.78;
  position: relative;
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  transform-origin: top left;
}

/* ── VM card group spotlight ─────────────────────────── */

/* Non-hovered card: dims + content contracts */
.vm-grid--active .vm-card:not(:hover) {
  opacity: 0.45;
}

.vm-grid--active .vm-card:not(:hover) .vm-card__eyebrow {
  opacity: 0.3;
  transform: scale(0.9);
}

.vm-grid--active .vm-card:not(:hover) .vm-card__title {
  opacity: 0.3;
  transform: scale(0.88);
}

.vm-grid--active .vm-card:not(:hover) .vm-card__text {
  opacity: 0.2;
  transform: scale(0.92);
}

.vm-grid--active .vm-card:not(:hover) .vm-card__num {
  opacity: 0;
}

/* Hovered card: content expands */
.vm-grid--active .vm-card:hover .vm-card__title {
  transform: scale(1.08);
}

.vm-grid--active .vm-card:hover .vm-card__text {
  transform: scale(1.02);
}

/* ─── WORKS GRID ─────────────────────────────────────── */

/* Section background glow — tracks the hovered card */
.works-section { position: relative; overflow: hidden; }

.works-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 65%);
  filter: blur(100px);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: left 0.75s var(--ease), top 0.75s var(--ease), opacity 0.5s;
}

.works-section.works-active .works-bg-glow { opacity: 1; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.work-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  transform-style: preserve-3d;
  will-change: transform;
  /* JS drives transform; CSS handles everything else */
  transition:
    border-color  0.4s var(--ease),
    box-shadow    0.5s var(--ease),
    opacity       0.4s var(--ease);
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ── Card group spotlight ──
   When any card is hovered, non-hovered cards dim + content shrinks.
   The hovered card's content scales up.                               */
.works-grid--active .work-card:not(:hover) {
  opacity: 0.45;
  border-color: rgba(255,255,255,0.04) !important;
  box-shadow: none !important;
}

.works-grid--active .work-card:not(:hover) .work-card__bg {
  filter: brightness(0.55) saturate(0.6);
}

.works-grid--active .work-card:not(:hover) .work-card__info {
  transform: translateY(10px) scale(0.84);
  opacity: 0.25;
}

.works-grid--active .work-card:not(:hover) .work-card__index {
  opacity: 0;
}

/* Hovered card — info expands and steps forward */
.works-grid--active .work-card:hover .work-card__info {
  transform: translateY(0) scale(1.12);
  transform-origin: bottom left;
}

/* Background layer — scales on hover + filter transition */
.work-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease), filter 0.45s var(--ease);
}

.work-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.45) brightness(0.86);
  transition: filter 0.45s var(--ease);
}

.work-card:hover .work-card__bg img {
  filter: saturate(1) brightness(1);
}

.work-card:hover .work-card__bg { transform: scale(1.06); }

/* Inner cursor spotlight — follows mouse inside the card */
.work-card__sheen {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  left: var(--sx, 50%);
  top:  var(--sy, 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
  filter: blur(18px);
}
.work-card:hover .work-card__sheen { opacity: 1; }

/* Overlay — gradient base + flex layout for index + info */
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    transparent 72%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 18px;
  z-index: 3;
}

/* Card index number — top right, subtle */
.work-card__index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.18);
  align-self: flex-end;
  transition: color 0.4s var(--ease);
  line-height: 1;
}
.work-card:hover .work-card__index { color: rgba(255, 255, 255, 0.48); }

/* Info block — slides up on hover; scale driven by group state */
.work-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateY(7px) scale(1);
  transform-origin: bottom left;
  transition:
    transform 0.45s var(--ease),
    opacity   0.4s  var(--ease);
}
.work-card:hover .work-card__info { transform: translateY(0) scale(1); }

.work-card__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.4s var(--ease);
}
.work-card:hover .work-card__cat { color: rgba(255, 255, 255, 0.65); }

.work-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}
.work-card:hover .work-card__name { color: #ffffff; }

.works-note {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-align: center;
  padding-top: 4px;
}

/* ── "And many more" footer row ── */
.works-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.works-more__link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-3);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.works-more__link:hover { border-color: var(--white); }

/* ════════════════════════════════════════════════
   WEB WORKS — live iframe demos
   ════════════════════════════════════════════════ */
.webworks-section { position: relative; }

.webworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.webwork {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.webwork__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.webwork:hover .webwork__frame {
  border-color: var(--border-3);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

/* Faux browser chrome */
.webwork__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.webwork__dots { display: inline-flex; gap: 6px; }
.webwork__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.webwork__url {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-family: 'Space Grotesk', sans-serif;
}

/* Scaled live-site viewport */
.webwork__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
}
.webwork__viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  /* JS sets the scale based on container width; this is a sane fallback */
  transform: scale(0.3);
  pointer-events: none;
  background: #fff;
}

/* Hover veil + open button (whole viewport is the click target) */
.webwork__open {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.webwork:hover .webwork__open,
.webwork__open:focus-visible { opacity: 1; }
.custom-cursor .webwork__open { cursor: none; }

.webwork__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 2px;
}
.webwork__cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.webwork__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Live-preview modal ── */
html.modal-open,
body.modal-open { overflow: hidden; }

.webmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.webmodal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}

.webmodal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(20, 20, 26, 0.55) 0%, transparent 55%),
    rgba(4, 4, 4, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Decorative ambience behind the panel */
.webmodal__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.webmodal__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.1s;
}
.webmodal.is-open .webmodal__glow { opacity: 1; }
.webmodal__glow--a {
  width: 620px; height: 620px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(120, 130, 255, 0.10) 0%, transparent 70%);
  animation: webmodalFloat 14s ease-in-out infinite;
}
.webmodal__glow--b {
  width: 560px; height: 560px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  animation: webmodalFloat 18s ease-in-out infinite reverse;
}
.webmodal__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, transparent 38%, #000 88%);
  mask-image: radial-gradient(120% 90% at 50% 50%, transparent 38%, #000 88%);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.15s;
}
.webmodal.is-open .webmodal__grid { opacity: 1; }

@keyframes webmodalFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, 30px); }
}

/* Helper caption beneath the panel */
.webmodal__hint {
  position: absolute;
  bottom: clamp(10px, 2.4vw, 26px);
  left: 0;
  right: 0;
  z-index: 0;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 0.2s, transform 0.5s var(--ease) 0.2s;
}
.webmodal.is-open .webmodal__hint { opacity: 1; transform: translateY(0); }
.webmodal__hint-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  margin-right: 8px;
}
.webmodal__hint kbd {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 1px 6px;
}

.webmodal__panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  height: min(860px, calc(100% - 36px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.4s var(--ease);
}
.webmodal.is-open .webmodal__panel { transform: translateY(0) scale(1); }

.webmodal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  height: 52px;
  padding: 0 12px 0 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.webmodal__dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.webmodal__dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.webmodal__title {
  flex: 1;
  min-width: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.webmodal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.webmodal__open {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-3);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.webmodal__open:hover {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}
.webmodal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.webmodal__close:hover {
  color: var(--white);
  border-color: var(--border-3);
  background: rgba(255, 255, 255, 0.05);
}
/* While the live-preview modal is open, retire the JS cursor: it can't
   follow the mouse across the embedded iframe (the frame eats the events),
   so it would freeze. Hide it and hand control back to the real OS pointer. */
body.modal-open .cursor-dot,
body.modal-open .cursor-ring,
body.modal-open .cursor-light { opacity: 0 !important; }

body.modal-open.custom-cursor .webmodal,
body.modal-open.custom-cursor .webmodal * { cursor: auto !important; }
body.modal-open.custom-cursor .webmodal__open,
body.modal-open.custom-cursor .webmodal__close,
body.modal-open.custom-cursor .webmodal__backdrop { cursor: pointer !important; }

.webmodal__viewport {
  flex: 1;
  min-height: 0;
  background: #0a0a0a;
}
.webmodal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 600px) {
  .webmodal { padding: 0; }
  .webmodal__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .webmodal__open { padding: 7px 11px; font-size: 12px; }
  .webmodal__hint { display: none; }
}

/* Placeholder gradients — distinct, editorial, dark */
.g1 { background: linear-gradient(150deg, #060610 0%, #0d0d24 45%, #141438 75%, #080818 100%); }
.g2 { background: linear-gradient(160deg, #0a0a0a 0%, #141414 40%, #1e1e1e 70%, #111111 100%); }
.g3 { background: linear-gradient(135deg, #060c12 0%, #0c1a24 45%, #122030 72%, #070e18 100%); }
.g4 { background: linear-gradient(155deg, #0c0a08 0%, #1a1612 45%, #22201a 72%, #100e0c 100%); }
.g5 { background: linear-gradient(140deg, #080c10 0%, #101820 45%, #182230 72%, #0a1018 100%); }
.g6 { background: linear-gradient(145deg, #0e0e0e 0%, #1c1c1c 45%, #262626 72%, #141414 100%); }
.g7 { background: linear-gradient(130deg, #080610 0%, #10101e 45%, #181628 72%, #0a0810 100%); }
.g8 { background: linear-gradient(160deg, #0a0a0c 0%, #141418 45%, #1c1c22 72%, #0e0e12 100%); }

/* ─── COMMUNITY / DISCORD ────────────────────────────── */

/* ─── COMMUNITY SECTION ──────────────────────────────── */

/* Ambient pulsing glow behind the card */
.community-section {
  position: relative;
}

.community-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.038) 0%, transparent 65%);
  filter: blur(90px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  animation: communityPulse 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.community-section .container {
  position: relative;
  z-index: 1;
}

@keyframes communityPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.18); opacity: 1;   }
}

.community-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  /* Tilt + canvas support */
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}

.community-block:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Ensure content sits above the canvas */
.community-left,
.community-right {
  position: relative;
  z-index: 1;
}

.community-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.community-feature {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.community-block:hover .community-feature { opacity: 0.7; }
.community-block:hover .community-feature:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.community-feature__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.community-feature__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.community-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.discord-badge svg { flex-shrink: 0; }

.community-right p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 380px;
}

/* ─── PAGE HERO ──────────────────────────────────────── */

.page-hero {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 80%);
  pointer-events: none;
}

.page-hero__inner { position: relative; }


.page-hero__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 28px;
}

.page-hero__sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-hero__body {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 540px;
  line-height: 1.75;
}

/* ─── SERVICE ITEMS ──────────────────────────────────── */

/* ── Section-level ambient glow drifts on the right ── */
.services-section { position: relative; }

.services-ambient-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.032) 0%, transparent 65%);
  filter: blur(100px);
  right: -180px;
  top: 30%;
  pointer-events: none;
  z-index: 0;
  animation: servicesGlow 14s ease-in-out infinite alternate;
}

@keyframes servicesGlow {
  0%   { transform: translateY(0)    scale(0.88); opacity: 0.55; }
  100% { transform: translateY(-80px) scale(1.12); opacity: 1;    }
}

.service-list { display: flex; flex-direction: column; }

.service-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  /* Needed for decorative number + accent line */
  position: relative;
  overflow: hidden;
}

.service-item:first-child { border-top: 1px solid var(--border); }

/* ── Foreground: top accent line draws in on hover ── */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item__left { display: flex; flex-direction: column; gap: 20px; }

.service-item__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.service-item__name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.1;
}

.service-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s;
}

.tag:hover { color: var(--text-muted); border-color: var(--border-2); }

.service-item__right { display: flex; flex-direction: column; gap: 40px; }

.service-item__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.77;
}

.service-item__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-item__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.service-item__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-item__col li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-item__col li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
  font-size: 11px;
  top: 2px;
}

/* ─── CTA BLOCK ──────────────────────────────────────── */

.cta-block {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}

.cta-block__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-block__text h2 {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
  max-width: 560px;
  line-height: 1.2;
}

.cta-block__text p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}

/* ─── STORY (ABOUT) ──────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding: clamp(60px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.story-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.story-sidebar__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.story-sidebar__sub {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}

.story-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

.story-body p:last-child { margin-bottom: 0; }

/* ─── VALUES GRID — individual cards ─────────────────── */

.values-section {
  padding: clamp(60px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.values-section .container { position: relative; z-index: 1; }

/* Separate cards — each is its own bordered box */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 48px;
  /* No shared background / border — each card is self-contained */
}

/* ── Base card ── */
.value-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px 32px;
  position: relative;
  overflow: hidden;
  transition:
    background   0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow   0.5s var(--ease),
    transform    0.45s var(--ease);
  cursor: default;
}

/* Card index — top-right, very faint */
.value-card__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.4s var(--ease);
}

.value-card:hover .value-card__num { color: var(--text-muted); }

/* Decorative first-letter watermark */
.value-card__letter {
  position: absolute;
  bottom: -14px;
  right: 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.026);
  pointer-events: none;
  user-select: none;
  transition: color 0.65s var(--ease), transform 0.65s var(--ease);
}

.value-card:hover .value-card__letter {
  color: rgba(255, 255, 255, 0.07);
  transform: scale(1.1) translateY(-8px);
}

/* Name + text */
.value-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 4px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.value-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   UNIFIED HOVER: pulse + corners + fill + 3D tilt (JS)
   ══════════════════════════════════════════════════════ */

/* Transform handled by JS — only CSS handles non-transform */
.value-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Fill: light rises from bottom on hover */
.value-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top,
    rgba(255,255,255,0.052) 0%,
    rgba(255,255,255,0.01)  55%,
    transparent             100%);
  transition: height 0.65s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.value-card:hover::before { height: 100%; }

/* Corners: precision brackets appear via CSS backgrounds */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background:
    /* top-left  H */ linear-gradient(rgba(255,255,255,0.55),rgba(255,255,255,0.55))
                      top 10px left 10px / 18px 1px no-repeat,
    /* top-left  V */ linear-gradient(rgba(255,255,255,0.55),rgba(255,255,255,0.55))
                      top 10px left 10px / 1px 18px no-repeat,
    /* btm-right H */ linear-gradient(rgba(255,255,255,0.55),rgba(255,255,255,0.55))
                      bottom 10px right 10px / 18px 1px no-repeat,
    /* btm-right V */ linear-gradient(rgba(255,255,255,0.55),rgba(255,255,255,0.55))
                      bottom 10px right 10px / 1px 18px no-repeat;
}
.value-card:hover::after { opacity: 1; }

/* Pulse: border + shadow breathe rhythmically */
@keyframes cardPulse {
  0%, 100% {
    box-shadow:
      0 20px 48px rgba(0,0,0,0.45),
      0 0 0 1px rgba(255,255,255,0.06);
  }
  50% {
    box-shadow:
      0 26px 56px rgba(0,0,0,0.52),
      0 0 0 1px rgba(255,255,255,0.18),
      0 0 28px rgba(255,255,255,0.04);
  }
}

.value-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: var(--surface);
  animation: cardPulse 2.4s ease-in-out infinite;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ─── FOUNDER NOTE ───────────────────────────────────── */

.founder-section {
  padding: 0;
}

.founder-section__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.founder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

/* 3D tilt — transform driven by JS on mousemove */
.founder-body {
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
}

.founder-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.founder-body p:last-of-type { margin-bottom: 36px; }

.founder-sig {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.founder-sig__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  flex-shrink: 0;
}

.founder-sig__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-sig__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: -0.02em;
}

.founder-sig__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.founder-sig__role {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ─── TEAM ───────────────────────────────────────────── */

.team-section {
  padding: clamp(60px, 8vw, 96px) 0;
}

.team-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.team-card {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.team-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-faint);
}

.team-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.team-card__role {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: -8px;
}

.team-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ─── CONTACT ────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: clamp(60px, 8vw, 96px) 0;
}

/* ── Floating-label form fields ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Field wrapper */
.cf-field {
  position: relative;
  padding-top: 20px;
}

/* Bottom-border only — editorial, minimal */
.cf-field input,
.cf-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  border-radius: 0;
  padding: 8px 0 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  transition: border-color 0.35s var(--ease);
  caret-color: var(--white);
}

.cf-field textarea { padding-bottom: 16px; }

/* Animated bottom line — white fill slides in on focus */
.cf-field__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.45s var(--ease);
  pointer-events: none;
}

.cf-field input:focus ~ .cf-field__line,
.cf-field textarea:focus ~ .cf-field__line { width: 100%; }

/* Floating label */
.cf-field label {
  position: absolute;
  top: 28px;
  left: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.3s var(--ease), font-size 0.3s var(--ease),
              letter-spacing 0.3s var(--ease), color 0.3s var(--ease);
}

/* Float up when focused or filled */
.cf-field input:focus + label,
.cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label,
.cf-field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cf-field input:focus + label,
.cf-field textarea:focus + label { color: rgba(255,255,255,0.45); }

/* Submit button */
.cf-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: var(--white);
  color: #080808;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background 0.3s;
}

/* Hover: dark overlay slides from left */
.cf-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.09);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.cf-submit:hover::before { transform: scaleX(1); }

.cf-submit__arrow {
  display: flex;
  align-items: center;
  transition: transform 0.35s var(--ease);
}

.cf-submit:hover .cf-submit__arrow { transform: translateX(5px); }

.cf-note {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: -12px;
}

/* ── Contact info blocks ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
}

.ci-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s;
  cursor: default;
}

.ci-block:first-child { padding-top: 0; }

.ci-block:hover {
  transform: translateX(6px);
  border-bottom-color: rgba(255,255,255,0.12);
}

.ci-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s;
}

.ci-block:hover .ci-label { color: var(--text-muted); }

.ci-value {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color 0.3s;
}

.ci-block:hover .ci-value { color: rgba(255,255,255,0.75); }

.ci-value a {
  color: var(--text-muted);
  transition: color 0.3s;
  display: block;
}

.ci-value a:hover { color: var(--white); }

/* Email rows */
.ci-email-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.ci-email-row:hover { color: var(--white); transform: translateX(4px); }

.ci-email-note {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: color 0.3s;
}

.ci-email-row:hover .ci-email-note { color: var(--text-muted); }

/* Social links — text + icon rows */
.ci-socials {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.ci-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

.ci-social:hover {
  color: var(--white);
  transform: translateX(6px);
  border-bottom-color: var(--border);
}

/* Form feedback messages */
.cf-feedback {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: -8px;
}
.cf-feedback--success {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
.cf-feedback--error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  color: rgba(255,120,120,0.9);
}
.cf-feedback--error a {
  color: inherit;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ─── SOCIAL LINKS ───────────────────────────────────── */

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.social-link:hover {
  color: var(--white);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.04);
}

/* ─── FOOTER ─────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer__logo img { height: 26px; width: auto; object-fit: contain; }

.footer__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__desc {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.72;
  max-width: 280px;
}

.footer__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col li a {
  font-size: 14px;
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer__col li a:hover { color: var(--text-muted); }

.footer__contact-val {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.7;
}

.footer__contact-val a {
  color: var(--text-faint);
  transition: color 0.2s;
  display: block;
}

.footer__contact-val a:hover { color: var(--text-muted); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-faint);
}

.footer__socials { display: flex; gap: 8px; }

/* ─── DIVIDER ────────────────────────────────────────── */

.divider { height: 1px; background: var(--border); }

/* ─── SCROLL REVEAL ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }

/* ─── HERO PAGE-LOAD ANIMATIONS ─────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-1 { animation: fadeUp 0.9s var(--ease) 0.05s both; }
.animate-2 { animation: fadeUp 0.9s var(--ease) 0.18s both; }
.animate-3 { animation: fadeUp 0.9s var(--ease) 0.32s both; }
.animate-4 { animation: fadeUp 0.9s var(--ease) 0.46s both; }
.animate-5 { animation: fadeUp 0.9s var(--ease) 0.60s both; }

/* ─── REDUCED MOTION ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .animate-1, .animate-2, .animate-3, .animate-4, .animate-5 { animation: none; opacity: 1; }
  .marquee-inner { animation: none; }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .webworks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .service-item { grid-template-columns: 1fr; gap: 32px; }
  .service-item__cols { grid-template-columns: 1fr; gap: 32px; }
  .community-block { padding: 48px; }
}

@media (max-width: 1024px) {
  .hero__content { max-width: 480px; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__content { max-width: 100%; }
  .hero__content-wrap { padding-top: 60px; padding-bottom: 60px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .webworks-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .vm-grid { grid-template-columns: 1fr; }
  .community-block { grid-template-columns: 1fr; padding: 36px 28px; gap: 40px; }
  .community-features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .founder-label { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-sidebar { position: static; }
  .cta-block__inner { flex-direction: column; align-items: flex-start; }
  .hero__meta { gap: 24px; }
  .vm-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .values-grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .community-block { padding: 28px 20px; }
}


/* ─── CURSOR SYSTEM ──────────────────────────────────── */

/* Hide OS cursor when custom cursor is active */
.custom-cursor,
.custom-cursor a,
.custom-cursor button,
.custom-cursor [data-tilt],
.custom-cursor .work-card { cursor: none !important; }

/* Keep text cursor on inputs */
.custom-cursor input,
.custom-cursor textarea,
.custom-cursor select { cursor: text !important; }

/* Precise dot — follows mouse exactly */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: left, top;
}

/* Ring — follows with spring lag, reacts to hover targets */
.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s,
              width  0.35s var(--ease),
              height 0.35s var(--ease),
              border-color 0.35s;
  will-change: left, top;
}

.cursor-ring--hover {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Global spotlight — the room's light follows your eye */
.cursor-light {
  position: fixed;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.052) 0%,
    rgba(255, 255, 255, 0.018) 38%,
    transparent                70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
  filter: blur(24px);
  will-change: left, top;
}

/* Click ripple — tactile feedback on every click */
.click-ripple {
  position: fixed;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  animation: rippleExpand 0.72s var(--ease) forwards;
}

@keyframes rippleExpand {
  0%   { width: 0;     height: 0;     opacity: 0.5; border-width: 1.5px; }
  100% { width: 180px; height: 180px; opacity: 0;   border-width: 0.5px; }
}

/* Reduced motion — disable grain animation, hide cursor extras */
@media (prefers-reduced-motion: reduce) {
  body::after    { animation: none; }
  .cursor-dot,
  .cursor-ring,
  .cursor-light  { display: none; }
  .custom-cursor,
  .custom-cursor * { cursor: auto !important; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE LAYOUT  — purpose-built for small screens
   ═══════════════════════════════════════════════════════════════ */

/* ── Touch devices: disable hover-only interactions ─────────── */
@media (hover: none) {
  /* Work cards: always show the info block (no hover needed) */
  .work-card__info {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
  }
  /* Disable the group-spotlight dimming effect */
  .works-grid--active .work-card:not(:hover) {
    opacity: 1 !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
  }
  .works-grid--active .work-card:not(:hover) .work-card__bg {
    filter: saturate(0.45) brightness(0.86) !important;
  }
  /* Show sheen always on active state instead */
  .work-card:active .work-card__bg img {
    filter: saturate(1) brightness(1) !important;
  }
  /* VM card group spotlight: disable */
  .vm-grid--active .vm-card:not(:hover) {
    opacity: 1 !important;
  }
  .vm-grid--active .vm-card:not(:hover) .vm-card__eyebrow,
  .vm-grid--active .vm-card:not(:hover) .vm-card__title,
  .vm-grid--active .vm-card:not(:hover) .vm-card__text {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Disable custom cursor */
  .cursor-dot,
  .cursor-ring,
  .cursor-light { display: none !important; }
}

/* ── Tablet  ≤ 900px ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ── Mobile  ≤ 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Root ── */
  :root { --nav-h: 60px; }

  /* ── Hero ── */
  .hero { min-height: 100svh; }

  .hero__spline {
    opacity: 0.22;           /* dim the 3D so text is legible */
    pointer-events: none;
  }

  .hero__content-wrap {
    padding-top: 96px;
    padding-bottom: 72px;
    padding-left: 0;
  }

  .hero__tag {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 20px;
  }

  .hero__headline {
    font-size: clamp(26px, 7.5vw, 42px);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
  }

  .hero__sub {
    font-size: 15px;
    line-height: 1.68;
    margin-bottom: 28px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    padding-top: 20px;
  }

  .hero__meta-item { font-size: 12px; }

  /* ── Marquee ── */
  .marquee-title  { font-size: 13px; }
  .marquee-desc   { font-size: 12px; }

  /* ── Section globals ── */
  .section { padding: clamp(52px, 9vw, 88px) 0; }

  .section-head { margin-bottom: 32px; }

  .section-title { font-size: clamp(22px, 6.5vw, 34px); }

  .section-body  { font-size: 15px; }

  /* ── VM (Vision & Mission) cards ── */
  .vm-card { padding: 36px 28px; }

  .vm-card__title { font-size: 18px; }

  /* ── Works grid ── */
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .work-card { aspect-ratio: 3 / 4; }

  /* Always show card name/cat on mobile */
  .work-card__info {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .work-card__name  { font-size: 13px; }
  .work-card__cat   { font-size: 9px; }
  .work-card__index { font-size: 10px; }

  /* ── Community ── */
  .community-block { padding: 36px 24px; gap: 36px; }

  /* ── Page hero (inner pages: Services, About, Contact) ── */
  .page-hero {
    padding-top: calc(var(--nav-h) + 52px);
    padding-bottom: 48px;
  }

  .page-hero__title {
    font-size: clamp(30px, 8.5vw, 52px);
    margin-bottom: 20px;
  }

  .page-hero__sub {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ── Contact form ── */
  .contact-grid {
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 52px;
  }

  .cf-submit {
    padding: 16px 20px;
    font-size: 14px;
  }

  /* Contact info blocks: tighter spacing */
  .ci-block { padding-bottom: 20px; margin-bottom: 20px; }

  /* ── Footer ── */
  .footer__grid { gap: 32px; margin-bottom: 40px; }

  .footer__desc { max-width: 100%; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
  }

  .footer__copy { font-size: 12px; }
}

/* ── Small mobile  ≤ 480px ───────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Root ── */
  :root { --pad-x: 18px; }

  /* ── Hero ── */
  .hero__spline { opacity: 0.15; }

  .hero__headline { font-size: clamp(24px, 8vw, 34px); }

  .hero__sub { font-size: 14px; }

  /* ── Section ── */
  .section { padding: 48px 0; }

  /* ── VM cards ── */
  .vm-card { padding: 28px 20px; }

  /* ── Works grid: single column on very small screens ── */
  .works-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

  /* ── Page hero ── */
  .page-hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
  }

  .page-hero__title { font-size: clamp(26px, 9vw, 40px); }

  /* ── Buttons ── */
  .btn-lg { padding: 13px 20px; font-size: 14px; }

  /* ── Footer ── */
  .footer__grid { grid-template-columns: 1fr; }

  /* ── Nav mobile menu ── */
  .nav__mobile a { font-size: 18px; padding: 16px 0; }
}
