/* ============================================================
   Willmy Tech — Editorial / Premium Redesign
   Typographic, immersive, minimal content.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand: #a9c5f2;
  --brand-deep: #5d8be0;
  --brand-soft: #dce8fb;
  --ink: #0b1220;
  --ink-soft: #1a2436;
  --muted: #717c8c;
  --bg: #ffffff;
  --bg-soft: #f5f8fe;
  --line: rgba(11, 18, 32, 0.12);
  --line-soft: rgba(11, 18, 32, 0.07);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h: 84px;
  --hero-bg: #d2e3ff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

::selection {
  background: var(--brand);
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* Accent serif italic words inside headings */
.ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-deep);
  padding-bottom: 0.06em;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brand-deep);
  transition: width 0.4s var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

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

body.menu-open .nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

/* Mobile fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(93, 139, 224, 0.22) 0%, transparent 45%),
    linear-gradient(165deg, #d2e3ff 0%, #a9c5f2 52%, #dce8fb 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--nav-h) + 1.5rem)
    max(var(--pad), env(safe-area-inset-right, 0px))
    max(var(--pad), env(safe-area-inset-bottom, 0px))
    max(var(--pad), env(safe-area-inset-left, 0px));
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}

.menu.open {
  transform: translateY(0);
  visibility: visible;
}

.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0.4rem 0;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}

.menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.menu.open a:nth-child(1) { transition-delay: 0.15s; }
.menu.open a:nth-child(2) { transition-delay: 0.23s; }
.menu.open a:nth-child(3) { transition-delay: 0.31s; }
.menu.open a:nth-child(4) { transition-delay: 0.39s; }

.menu a:hover,
.menu a.active,
.menu a:active {
  color: var(--brand-deep);
}

.menu__foot {
  position: absolute;
  left: max(var(--pad), env(safe-area-inset-left, 0px));
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Buttons / text links ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.35rem;
}

.arrow-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}

.arrow-link .ar {
  transition: transform 0.4s var(--ease);
}

.arrow-link:hover { color: var(--brand-deep); }
.arrow-link:hover::after { background: var(--brand-deep); }
.arrow-link:hover .ar { transform: translateX(6px); }

.arrow-link--muted { color: var(--muted); }
.arrow-link--muted::after { background: var(--line); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.pill-link .ar { transition: transform 0.4s var(--ease); }
.pill-link:hover { background: var(--brand-deep); transform: translateY(-3px); }
.pill-link:hover .ar { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero--intro {
  justify-content: center;
  background: var(--hero-bg);
}

.hero--intro .hero__intro {
  margin-top: clamp(-2.5rem, -6vh, -4rem);
}

.hero__ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.hero__orb--1 {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 68%);
  animation: heroOrbDrift1 14s ease-in-out infinite;
}

.hero__orb--2 {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  right: -6%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(93, 139, 224, 0.45) 0%, transparent 70%);
  animation: heroOrbDrift2 18s ease-in-out infinite;
}

.hero__orb--3 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 72%);
  animation: heroOrbDrift3 16s ease-in-out infinite;
}

@keyframes heroOrbDrift1 {
  50% { transform: translate(6vw, 4vh) scale(1.08); }
}

@keyframes heroOrbDrift2 {
  50% { transform: translate(-5vw, -3vh) scale(1.12); }
}

@keyframes heroOrbDrift3 {
  50% { transform: translate(-4vw, 5vh) scale(0.92); }
}

.hero__intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(-2.5rem, -5vw, -1.5rem);
  perspective: 900px;
}

.hero__logo-img {
  width: min(92vw, 720px);
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.78) translateY(36px) rotateX(18deg);
  filter: blur(14px);
  transform-origin: center bottom;
  transition:
    opacity 1s var(--ease),
    transform 1.15s var(--ease),
    filter 1.15s var(--ease);
}

.hero__logo-wrap.is-visible .hero__logo-img {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0deg);
  filter: blur(0) drop-shadow(0 16px 32px rgba(93, 139, 224, 0.28));
}

.hero__logo-wrap.is-complete .hero__logo-img {
  animation: heroLogoFloat 5.5s ease-in-out infinite, heroLogoGlow 4.2s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-12px) rotateX(2deg); }
}

@keyframes heroLogoGlow {
  50% {
    filter: blur(0) drop-shadow(0 22px 44px rgba(93, 139, 224, 0.42)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.35));
  }
}

.hero__type-sub {
  max-width: 38ch;
  min-height: 1.2em;
  margin-top: clamp(-2.75rem, -5.5vw, -1.75rem);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.hero__type-sub.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.hero__type-sub-text {
  white-space: pre-wrap;
  color: var(--ink);
}

.hero__type-sub.is-visible .hero__type-sub-text {
  animation: heroSubTone 5s ease-in-out infinite;
}

.hero__type-sub-cursor {
  display: inline-block;
  width: 3px;
  height: 0.88em;
  margin-left: 0.12em;
  background: var(--brand-deep);
  vertical-align: -0.06em;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(93, 139, 224, 0.45);
  opacity: 0;
}

.hero__type-sub.is-typing .hero__type-sub-cursor {
  opacity: 1;
  animation: typeCursorBlink 0.75s step-end infinite;
}

.hero__type-sub-cursor.is-done {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  animation: none;
}

@keyframes heroSubTone {
  0%, 100% { color: var(--ink); }
  50% { color: var(--brand-deep); }
}

@keyframes typeCursorBlink {
  50% { opacity: 0; }
}

@keyframes cursorGlow {
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); }
}

.hero--intro .hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.25rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  margin-top: clamp(2rem, 5vh, 3rem);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}

.hero--intro .hero__cta.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.hero--intro .arrow-link {
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  padding-bottom: 0.75rem;
  font-size: clamp(0.88rem, 1.5vw, 0.98rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 100px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(93, 139, 224, 0.1);
  transition:
    color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.hero--intro .arrow-link::after {
  display: none;
}

.hero--intro .arrow-link:first-of-type {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.18);
}

.hero--intro .arrow-link--muted {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.hero--intro .arrow-link:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.hero--intro .arrow-link:first-of-type:hover {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  box-shadow: 0 12px 32px rgba(93, 139, 224, 0.28);
}

.hero--intro .arrow-link--muted:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(93, 139, 224, 0.16);
}

.hero--intro .arrow-link .ar {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.hero--intro .arrow-link:hover .ar {
  transform: translateX(4px);
}

.hero--intro .scroll-cue {
  color: var(--ink);
  opacity: 0.5;
}

.hero--intro .scroll-cue .dot {
  border-color: rgba(11, 18, 32, 0.28);
}

.hero--intro .scroll-cue .dot::after {
  background: var(--brand-deep);
}

@media (prefers-reduced-motion: reduce) {
  .services-scroll .service-panel__body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .services-scroll__progress-dot {
    transition: none;
  }
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 42rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Centered logo stage */
.hero__stage {
  position: relative;
  width: min(100%, 580px);
  height: min(460px, 44vh);
  min-height: 300px;
  margin: 0 auto;
}

.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 197, 242, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 197, 242, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 15%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  50% { opacity: 0.5; }
}

.hero__circuit {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  margin: auto;
  animation: circuitSpin 52s linear infinite;
}

@keyframes circuitSpin {
  to { transform: rotate(360deg); }
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(169, 197, 242, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__ring--a {
  width: 90%;
  height: 90%;
  animation: ringPulse 6s ease-in-out infinite;
}

.hero__ring--b {
  width: 64%;
  height: 64%;
  border-color: rgba(93, 139, 224, 0.35);
  animation: ringPulse 6s ease-in-out infinite 1.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.hero__logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(140px, 20vw, 200px);
  filter: drop-shadow(0 0 36px rgba(169, 197, 242, 0.5));
  animation: logoFloat 5s ease-in-out infinite;
}

.hero__logo-glow::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(169, 197, 242, 0.4) 0%, transparent 68%);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero__logo-glow img {
  width: 100%;
  border-radius: 12px;
}

@keyframes logoFloat {
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

@keyframes glowPulse {
  50% { opacity: 0.55; transform: scale(1.08); }
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero__chips span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(169, 197, 242, 0.5);
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(169, 197, 242, 0.18);
  transform: translate(-50%, -50%) translate(var(--chip-x, 0), var(--chip-y, 0));
  animation: chipDrift 6s ease-in-out infinite;
}

.hero__chips span:nth-child(1) { --chip-x: 0px; --chip-y: -158px; animation-delay: 0s; }
.hero__chips span:nth-child(2) { --chip-x: 122px; --chip-y: -121px; animation-delay: 0.9s; }
.hero__chips span:nth-child(3) { --chip-x: 186px; --chip-y: -27px; animation-delay: 1.8s; }
.hero__chips span:nth-child(4) { --chip-x: 164px; --chip-y: 79px; animation-delay: 2.4s; }
.hero__chips span:nth-child(5) { --chip-x: 65px; --chip-y: 149px; animation-delay: 3s; }
.hero__chips span:nth-child(6) { --chip-x: -65px; --chip-y: 149px; animation-delay: 3.6s; }
.hero__chips span:nth-child(7) { --chip-x: -178px; --chip-y: 79px; animation-delay: 1.2s; }
.hero__chips span:nth-child(8) { --chip-x: -198px; --chip-y: -27px; animation-delay: 2.1s; }
.hero__chips span:nth-child(9) { --chip-x: -122px; --chip-y: -121px; animation-delay: 2.8s; }

.hero__chip--long {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
}

@keyframes chipDrift {
  50% {
    transform: translate(-50%, -50%) translate(var(--chip-x, 0), calc(var(--chip-y, 0px) - 7px));
  }
}

.hero__nodes i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand);
  animation: nodeBlink 3s ease-in-out infinite;
}

.hero__nodes i:nth-child(1) { top: 20%; left: 38%; animation-delay: 0s; }
.hero__nodes i:nth-child(2) { top: 65%; left: 55%; animation-delay: 0.5s; background: var(--brand-deep); }
.hero__nodes i:nth-child(3) { top: 42%; right: 14%; animation-delay: 1s; }
.hero__nodes i:nth-child(4) { bottom: 18%; left: 22%; animation-delay: 1.5s; }
.hero__nodes i:nth-child(5) { top: 10%; right: 40%; animation-delay: 2s; }
.hero__nodes i:nth-child(6) { bottom: 35%; right: 36%; animation-delay: 2.5s; background: var(--brand-deep); }

@keyframes nodeBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

.mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  will-change: transform;
}

.mesh .m1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
  top: -12%; right: -8%;
  animation: drift1 18s ease-in-out infinite;
}
.mesh .m2 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, #c9dbf8 0%, transparent 68%);
  bottom: -16%; left: -10%;
  animation: drift2 22s ease-in-out infinite;
}
.mesh .m3 {
  width: 26vw; height: 26vw;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  top: 30%; left: 40%;
  animation: drift3 26s ease-in-out infinite;
}

@keyframes drift1 { 50% { transform: translate(-6vw, 5vh) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(5vw, -4vh) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(-4vw, -6vh) scale(0.9); } }

.hero__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-inline: auto;
}

.hero h1 .ital {
  font-size: 0.92em;
}

.hero__sub {
  margin-top: 1.25rem;
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue .dot {
  width: 22px; height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.scroll-cue .dot::after {
  content: '';
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 6px;
  border-radius: 3px;
  background: var(--brand-deep);
  transform: translateX(-50%);
  animation: scrolly 1.8s ease-in-out infinite;
}
@keyframes scrolly { 50% { transform: translate(-50%, 10px); opacity: 0.3; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.65rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

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

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0.08em 1.6rem 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  line-height: 1.15;
}

.marquee__track span::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec {
  padding: clamp(5rem, 12vh, 11rem) 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--brand-deep);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

/* About / statement split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

/* Numbered value list (no cards) */
.vlist {
  margin-top: clamp(3rem, 7vh, 6rem);
  border-top: 1px solid var(--line);
}

.vrow {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.vrow__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-deep);
  font-weight: 500;
}

.vrow__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vrow__text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- Project detail page ---------- */
.proj-detail {
  padding: 0 0 clamp(4rem, 10vh, 6rem);
}

.proj-cover {
  position: relative;
  margin-top: var(--nav-h);
  min-height: clamp(280px, 42vh, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.proj-cover__media {
  position: absolute;
  inset: 0;
}

.proj-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.proj-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.12) 0%, rgba(11, 18, 32, 0.78) 100%);
}

.proj-cover__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad) clamp(2rem, 5vw, 3rem);
}

.proj-cover .proj-detail__back {
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.proj-cover h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1rem;
}

.proj-cover__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.proj-cover__tags .tag-soft {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proj-detail__body {
  padding-top: clamp(2.5rem, 6vh, 4rem);
}

.proj-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.proj-detail__back:hover {
  color: var(--ink);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(93, 139, 224, 0.12);
}

.proj-block {
  margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
}

.proj-block__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 1.15rem;
}

.proj-block__text {
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}

.proj-list {
  display: grid;
  gap: 0.8rem;
  max-width: 68ch;
}

.proj-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}

.proj-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
}

.proj-cta {
  margin: clamp(2rem, 5vh, 3rem) 0;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--bg-soft) 0%, #fff 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.proj-cta p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.proj-gallery {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}

.proj-gallery-scroll {
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  touch-action: pan-y;
}

.proj-gallery-scroll__track {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  width: max-content;
  padding-block: 0.25rem;
  animation: projGalleryScroll var(--gallery-duration, 30s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.proj-gallery-scroll__track.is-ready {
  animation-play-state: running;
}

@media (hover: hover) and (pointer: fine) {
  .proj-gallery-scroll:hover .proj-gallery-scroll__track {
    animation-play-state: paused;
  }
}

.proj-gallery-scroll__item {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.06);
}

.proj-gallery-scroll__item img {
  display: block;
  height: clamp(190px, 30vh, 340px);
  width: auto;
  max-width: min(560px, 78vw);
  object-fit: cover;
}

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

@media (prefers-reduced-motion: reduce) {
  .proj-gallery-scroll {
    -webkit-mask-image: none;
    mask-image: none;
    margin-inline: 0;
    width: auto;
  }

  .proj-gallery-scroll__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

.proj-cap__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.proj-cap__item {
  padding: 1.35rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.proj-cap__item:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(93, 139, 224, 0.1);
  transform: translateY(-2px);
}

.proj-cap__item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.proj-cap__item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.proj-video__frame {
  position: relative;
  width: 100%;
  max-width: min(960px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 20px 50px rgba(11, 18, 32, 0.08);
}

.proj-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proj-detail__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.proj-detail__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.proj-detail__nav-link span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.proj-detail__nav-link strong {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.proj-detail__nav-link--prev { text-align: left; }
.proj-detail__nav-link--next { text-align: right; }

.proj-detail__nav-link:hover {
  color: var(--brand-deep);
}

.proj-detail__nav-link--prev:hover { transform: translateX(-4px); }
.proj-detail__nav-link--next:hover { transform: translateX(4px); }

.proj-detail__nav-all {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.proj-detail__nav-all:hover {
  border-color: var(--brand);
  color: var(--ink);
}

/* ---------- Project categories ---------- */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.cat-filters__btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.cat-filters__btn:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.cat-filters__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.projects-empty {
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.projects-empty h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.projects-empty .lead {
  margin-inline: auto;
}

.projects-empty__hint {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.projects-empty .arrow-link {
  margin-top: 1.5rem;
}

.card.is-hidden {
  display: none;
}

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 6vh, 5rem);
}

.cards--home {
  margin-top: clamp(2rem, 5vh, 4rem);
}

/* ---------- Home featured project cards ---------- */
.home-projects {
  position: relative;
  overflow: clip;
}

.home-projects::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(70vw, 900px);
  height: min(50vw, 520px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 197, 242, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.home-projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-project-track-wrap {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.home-project-track {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 0.75rem 0 2rem;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-project-track::-webkit-scrollbar {
  display: none;
}

.home-project-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.home-project-track.is-dragging .home-project-card__inner {
  pointer-events: none;
}

.home-project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  flex: 0 0 clamp(270px, 38vw, 360px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  animation: homeCardIn 0.8s var(--ease) both;
  animation-delay: calc(var(--card-i) * 0.1s + 0.15s);
}

.home-project-card--offset {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.home-project-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: clamp(360px, 48vw, 420px);
  padding: 0.65rem;
  border-radius: clamp(18px, 2.2vw, 24px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-soft) 100%);
  box-shadow:
    0 16px 42px rgba(93, 139, 224, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform 0.25s ease,
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.home-project-card__media {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.home-project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(11, 18, 32, 0.08) 100%);
  pointer-events: none;
}

.home-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s var(--ease);
}

.home-project-card__shine {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.5) 48%, transparent 100%);
  transform: translateX(-140%) skewX(-18deg);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.home-project-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  margin-top: 0;
  padding: 0.9rem 0.35rem 0.35rem;
  z-index: 2;
}

.home-project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  transition: color 0.35s var(--ease), transform 0.45s var(--ease);
}

.home-project-card__meta {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.home-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.home-project-card__tags .tag-soft {
  font-size: 0.6rem;
  padding: 0.28rem 0.6rem;
}

.home-project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  opacity: 1;
  transform: none;
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}

.home-project-card__cta .ar {
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) {
  .home-project-card:hover .home-project-card__inner,
  .home-project-card:focus-visible .home-project-card__inner {
    border-color: var(--brand);
    box-shadow: 0 24px 56px rgba(93, 139, 224, 0.22);
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-10px);
  }

  .home-project-card:hover .home-project-card__media img,
  .home-project-card:focus-visible .home-project-card__media img {
    transform: scale(1.06);
  }

  .home-project-card:hover .home-project-card__shine,
  .home-project-card:focus-visible .home-project-card__shine {
    transform: translateX(260%) skewX(-18deg);
  }

  .home-project-card:hover .home-project-card__title,
  .home-project-card:focus-visible .home-project-card__title {
    color: var(--brand-deep);
    transform: translateX(3px);
  }

  .home-project-card:hover .home-project-card__cta,
  .home-project-card:focus-visible .home-project-card__cta {
    gap: 0.55rem;
    color: var(--ink);
  }

  .home-project-card:hover .home-project-card__cta .ar,
  .home-project-card:focus-visible .home-project-card__cta .ar {
    transform: translateX(3px);
  }
}

.home-project-card:focus-visible {
  outline: none;
}

.home-project-card:focus-visible .home-project-card__inner {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
}

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

@media (hover: none) {
  .home-project-card__cta {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-project-card {
    animation: none;
  }

  .home-project-card__inner,
  .home-project-card__media img,
  .home-project-card__shine,
  .home-project-card__cta {
    transition: none;
  }
}

.home-projects__cta {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  font: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}

a.card {
  text-decoration: none;
}

.card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  gap: 0.65rem;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card__tags .tag-soft {
  font-size: 0.62rem;
  padding: 0.3rem 0.65rem;
}

.card__meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: auto;
}

.card__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-top: 0.35rem;
  transition: gap 0.3s var(--ease);
}

.card__hint .ar {
  transition: transform 0.3s var(--ease);
}

.card.is-active,
.card:hover,
.card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 16px 48px rgba(93, 139, 224, 0.14);
  transform: translateY(-3px);
  outline: none;
}

.card.is-active .card__thumb img,
.card:hover .card__thumb img {
  transform: scale(1.04);
}

.card:hover .card__hint,
.card.is-active .card__hint {
  gap: 0.55rem;
}

.card:hover .card__hint .ar,
.card.is-active .card__hint .ar {
  transform: translateX(3px);
}

/* ---------- Project detail panel ---------- */
.project-panel {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: 0 24px 64px rgba(93, 139, 224, 0.1);
  animation: panelIn 0.45s var(--ease);
}

.project-panel[hidden] {
  display: none !important;
}

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

.project-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-panel__head .project__top {
  margin-bottom: 0;
}

.project-panel__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.project-panel__close:hover {
  border-color: var(--brand);
  color: var(--ink);
  background: #fff;
}

.project-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.project-panel .project__desc {
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.project-panel .project__shot {
  margin-top: 0;
}

.project-panel .features {
  margin-top: clamp(2rem, 5vh, 3rem);
}

/* ---------- Project index (editorial rows) ---------- */
.index {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vh, 5rem);
}

.index__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4.5vh, 3rem) 0.5rem calc(clamp(1.5rem, 4.5vh, 3rem) + 0.1em);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.index__row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.index__row > * { position: relative; z-index: 1; }

.index__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.index__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}

.index__meta {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}

.index__arrow {
  font-size: 1.6rem;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}

@media (hover: hover) {
  .index__row:hover::before { transform: translateY(0); }
  .index__row:hover .index__title { color: #fff; transform: translateX(14px); }
  .index__row:hover .index__num,
  .index__row:hover .index__meta { color: rgba(255, 255, 255, 0.6); }
  .index__row:hover .index__arrow { color: var(--brand); transform: translateX(8px) rotate(-45deg); }
}

/* ---------- Big type statement (AI / closing) ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.statement .ital { font-size: 0.95em; }

.flow {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  max-width: 60ch;
}

.flow span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.flow span::after {
  content: '/';
  color: var(--brand);
  margin: 0 0.75rem;
}

.flow span:last-child::after { content: ''; }

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

/* dark section wrapper */
.dark {
  background: #a9c5f2;
  color: #fff;
}

.dark .eyebrow {
  color: var(--ink-soft);
  text-shadow: none;
}

.dark .eyebrow::before {
  background: rgba(11, 18, 32, 0.32);
}

.dark .lead {
  color: var(--ink);
  text-shadow: none;
}

.dark .statement,
.dark .cta__big {
  color: var(--ink);
  text-shadow: none;
}

.dark .statement .ital,
.dark .cta__big .ital {
  color: var(--brand-deep);
}

.sec-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.sec-center .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sec-center .eyebrow::before {
  display: none;
}

.sec-center .statement {
  max-width: 22ch;
  margin-top: 0.5rem;
}

.sec-center .lead {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 48ch;
}

/* ---------- CTA ---------- */
.cta {
  text-align: left;
}

.cta__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 3rem;
}

/* ---------- Page header ---------- */
.phead {
  position: relative;
  padding: calc(var(--nav-h) + 6vh) 0 8vh;
  overflow: hidden;
}

.phead h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: -0.05em;
  padding-bottom: 0.06em;
}

.phead--compact h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
}

.phead--medium h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  letter-spacing: -0.045em;
}

.phead--compact {
  padding: calc(var(--nav-h) + 4vh) 0 5vh;
}

.phead--medium {
  padding: calc(var(--nav-h) + 5vh) 0 6vh;
}

.phead--center .shell {
  text-align: center;
}

.phead--center .phead__sub {
  max-width: none;
  margin-inline: auto;
}

.phead--compact .phead__sub {
  margin-top: 1.25rem;
}

.phead__sub {
  margin-top: 2rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Project detail (editorial, no cards) ---------- */
.project {
  padding: clamp(4rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--line);
}

.project__top {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
}

.tag-soft {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  border: 1px solid var(--brand);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
}

.project h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.project__desc {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.project__shot {
  max-width: min(720px, 100%);
  margin: clamp(2.5rem, 6vh, 4.5rem) auto clamp(3rem, 7vh, 5rem);
  position: relative;
}

.project__shot img {
  width: 100%;
  max-height: clamp(220px, 42vh, 440px);
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.1);
  background: var(--bg-soft);
}

.project__shot figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: min(880px, 100%);
  margin: clamp(2.5rem, 6vh, 4.5rem) auto clamp(3rem, 7vh, 5rem);
}

.project__gallery .project__shot {
  margin: 0;
  max-width: none;
}

.project__gallery .project__shot img {
  max-height: clamp(180px, 32vh, 360px);
}

/* feature list — text rows, no boxes */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-right: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.feature:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-left: 0;
}

.feature:nth-child(even) {
  padding-left: 2rem;
}

.feature__k {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--brand-deep);
  white-space: nowrap;
  min-width: 1.5rem;
}

.feature strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.feature span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(2.5rem, 6vh, 4rem) 0 1.5rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  max-width: 70ch;
}

.inline-list li {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}

.inline-list li::after {
  content: '·';
  color: var(--brand);
  margin: 0 0.85rem;
}

.inline-list li:last-child::after { content: ''; }

.note {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brand);
}

.note em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand-deep);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.stack span:hover {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

/* benefits — clean three column text */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.benefit__k {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--brand-deep);
  margin-bottom: 0.85rem;
}

.benefit strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.benefit span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Services scroll layout ---------- */
.services-sec .display {
  max-width: 22ch;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.services-sec .display--two-line {
  max-width: min(100%, 52rem);
  font-size: clamp(1.45rem, 3.6vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.032em;
}

.display--two-line .display__line {
  display: block;
}

.display--two-line .display__line + .display__line {
  margin-top: 0.12em;
}

@media (min-width: 640px) {
  .display--two-line .display__line {
    white-space: nowrap;
  }
}

.services-scroll {
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vh, 4rem);
}

.services-scroll__visual {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.services-scroll__visual-stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(720px, 52vw);
  margin-inline: auto;
  border-radius: 20px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.services-scroll__visual-stage::before {
  display: none;
}

.services-scroll__visual-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.services-scroll__visual-item.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.services-scroll__visual-item .service-graphic {
  width: 108%;
  max-width: 108%;
}

.service-graphic {
  width: 100%;
  max-width: 100%;
}

.service-graphic__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.service-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.service-graphic__svg {
  overflow: visible;
}

.services-scroll__panels {
  display: flex;
  flex-direction: column;
}

.service-panel {
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-panel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-panel__mobile-art {
  display: none;
  margin-bottom: 1.5rem;
}

.service-panel__mobile-art .service-graphic {
  max-width: min(520px, 100%);
  margin-inline: auto;
}

.service-panel__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.service-panel__lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.service-panel__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.service-panel__list li {
  position: relative;
  padding-left: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.service-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.service-panel.is-active .service-panel__title {
  color: var(--brand-deep);
  transition: color 0.45s var(--ease);
}

.services-scroll__progress {
  display: none;
  position: fixed;
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem;
  pointer-events: none;
}

.services-scroll__progress-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.14);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    height 0.35s var(--ease);
}

.services-scroll__progress-dot.is-active {
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  transform: scale(1.05);
}

/* ---------- Home services grid ---------- */
.home-services-wrap {
  text-align: center;
}

.home-services-wrap .display {
  margin-inline: auto;
  max-width: 18ch;
}

.home-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  margin-top: clamp(2rem, 5vh, 3rem);
  margin-inline: auto;
  width: 100%;
  max-width: 1180px;
}

.home-services__cta {
  margin-top: clamp(2rem, 5vh, 3rem);
  text-align: center;
}

.home-service {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 1 calc(50% - 0.4rem);
  width: calc(50% - 0.4rem);
  max-width: 168px;
  padding: 0.6rem 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.home-service:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(93, 139, 224, 0.1);
}

.home-service__art {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  overflow: hidden;
}

.home-service__art::before {
  display: none;
}

.home-service__art .service-graphic {
  position: relative;
  z-index: 1;
  width: 96%;
  max-width: 96%;
  margin: 0 auto;
}

.home-service__art .service-graphic__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.home-service__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.home-service:hover .home-service__title {
  color: var(--brand-deep);
}

@media (min-width: 640px) {
  .home-service {
    flex: 0 1 188px;
    width: 188px;
    max-width: none;
    padding: 0.7rem 0.65rem 0.8rem;
  }

  .home-service__title {
    font-size: 0.92rem;
  }
}

@media (min-width: 900px) {
  .home-services {
    gap: 1.15rem 1.35rem;
  }

  .home-service {
    flex: 0 1 228px;
    width: 228px;
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .home-service__title {
    font-size: 1rem;
  }
}

@media (min-width: 1100px) {
  .home-service {
    flex: 0 1 248px;
    width: 248px;
    padding: 0.95rem 0.85rem 1.05rem;
  }

  .home-service__title {
    font-size: 1.05rem;
  }
}

/* Legacy skills rows (static fallbacks) */
.skills {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vh, 5rem);
}

.srow {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.srow__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.srow__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.srow h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.srow__items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.3rem 0;
}

.srow__items li {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.srow__items li::after {
  content: '·';
  color: var(--brand);
  margin: 0 0.8rem;
}

.srow__items li:last-child::after { content: ''; }
.srow__items li:hover { color: var(--brand-deep); }

/* ---------- Footer ---------- */
.foot {
  background: var(--hero-bg);
  color: var(--ink);
  padding: clamp(4rem, 10vh, 7rem) 0 calc(2.5rem + env(safe-area-inset-bottom, 0));
}

.foot__big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  color: var(--ink);
  text-shadow: none;
}

.foot__big .ital { color: var(--brand-deep); }

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(11, 18, 32, 0.14);
}

.foot__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.foot__contact a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

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

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.foot__links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
}

.foot__links a:hover { color: var(--brand-deep); }

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-shadow: none;
}

.foot__brand img { height: 30px; }

.foot__copy {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.9;
}

/* ---------- Contact ---------- */
.mail-link {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.mail-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}

.contact-direct {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contact-direct__title,
.contact-form__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.contact-direct__item + .contact-direct__item {
  margin-top: 2rem;
}

.contact-direct__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.contact-form-wrap {
  border-left: 1px solid var(--line);
  padding-left: clamp(2rem, 5vw, 4rem);
}

.contact-mail {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.contact-mail:hover { color: var(--brand-deep); }

.contact-note {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36ch;
}

.contact-form {
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
}

.field {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(113, 124, 140, 0.55);
}

.field input:focus,
.field textarea:focus {
  color: var(--ink);
}

.form-foot {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.form-status {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-status--success { color: var(--brand-deep); }
.form-status--error { color: #c0392b; }

.pill-link:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Animations ---------- */
.r {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.r.in { opacity: 1; transform: none; }

.r.d1 { transition-delay: 0.08s; }
.r.d2 { transition-delay: 0.16s; }
.r.d3 { transition-delay: 0.24s; }
.r.d4 { transition-delay: 0.32s; }
.r.d5 { transition-delay: 0.4s; }

/* line-reveal headings */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
}

.lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  padding-bottom: 0.02em;
}

.lines.in .line:nth-child(1) > span { transition-delay: 0.05s; }
.lines.in .line:nth-child(2) > span { transition-delay: 0.15s; }
.lines.in .line:nth-child(3) > span { transition-delay: 0.25s; }
.lines.in .line:nth-child(4) > span { transition-delay: 0.35s; }
.lines.in .line > span { transform: translateY(0); }

/* stagger group */
.stag > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.stag.in > *:nth-child(1) { transition-delay: 0.05s; }
.stag.in > *:nth-child(2) { transition-delay: 0.13s; }
.stag.in > *:nth-child(3) { transition-delay: 0.21s; }
.stag.in > *:nth-child(4) { transition-delay: 0.29s; }
.stag.in > *:nth-child(5) { transition-delay: 0.37s; }
.stag.in > *:nth-child(6) { transition-delay: 0.45s; }
.stag.in > *:nth-child(7) { transition-delay: 0.53s; }
.stag.in > *:nth-child(8) { transition-delay: 0.61s; }
.stag.in > * { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: none; }
  .feature:nth-child(even) { padding-left: 0; }
  .benefits { grid-template-columns: 1fr; gap: 2rem; }
  .srow { grid-template-columns: 1fr; gap: 1.25rem; }
  .services-scroll {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.5rem;
    border-top: none;
  }

  .services-scroll__visual {
    display: block;
    position: sticky;
    top: var(--nav-h);
    z-index: 4;
    padding: 0.35rem 0 0.4rem;
    margin-bottom: 0;
    background: linear-gradient(
      to bottom,
      var(--bg) 0%,
      var(--bg) 82%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .services-scroll__visual-stage {
    max-width: min(90%, 320px);
    max-height: min(36vh, 230px);
    aspect-ratio: 16 / 9;
    margin-inline: auto;
  }

  .services-scroll__visual-item .service-graphic {
    width: 100%;
    max-width: 100%;
  }

  .service-panel__mobile-art {
    display: none;
  }

  .service-panel {
    min-height: 78dvh;
    padding: 0;
    border-bottom: none;
    display: block;
  }

  .service-panel__body {
    position: sticky;
    top: calc(var(--nav-h) + min(36vh, 230px) + 0.85rem);
    padding: 0.25rem 0 1.75rem;
    min-height: calc(48dvh - 0.5rem);
    max-height: calc(100dvh - var(--nav-h) - min(36vh, 230px) - 1.5rem);
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0.28;
    transform: translateY(8px);
    transition:
      opacity 0.55s var(--ease),
      transform 0.55s var(--ease);
  }

  .service-panel.is-active .service-panel__body {
    opacity: 1;
    transform: translateY(0);
  }

  .service-panel__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.55rem;
  }

  .service-panel__lead {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .service-panel__list {
    gap: 0.45rem;
  }

  .service-panel__list li {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .services-scroll__progress {
    display: flex;
  }

  .home-project-card--offset {
    margin-top: 0;
  }

  .home-project-card {
    flex-basis: clamp(250px, 72vw, 320px);
  }

  .vrow { grid-template-columns: auto 1fr; gap: 1rem 1.5rem; }
  .vrow__text { grid-column: 2; }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-direct { position: static; }

  .contact-form-wrap {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 3rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }

  .project-panel {
    padding: 1.5rem;
    border-radius: 12px;
  }

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

  .proj-cap__grid {
    grid-template-columns: 1fr;
  }

  .proj-cover {
    min-height: clamp(240px, 38vh, 320px);
  }

  .proj-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .proj-detail__nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proj-detail__nav-link--prev,
  .proj-detail__nav-link--next {
    text-align: center;
  }

  .proj-detail__nav-all {
    order: -1;
    justify-self: center;
    margin-bottom: 0.5rem;
  }

}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav.scrolled { height: 64px; }

  .sec {
    padding: clamp(3rem, 9vh, 5.5rem) 0;
  }

  .display {
    max-width: 100%;
    font-size: clamp(1.75rem, 7vw, 2.85rem);
  }

  .statement,
  .cta__big {
    max-width: 100%;
  }

  .cta__big {
    font-size: clamp(1.85rem, 8vw, 3rem);
    margin-bottom: 2rem;
  }

  .sec-center .statement {
    max-width: 100%;
  }

  .lead {
    font-size: 1rem;
  }

  .phead {
    padding: calc(var(--nav-h) + 3vh) 0 4vh;
  }

  .phead--medium,
  .phead--compact {
    padding: calc(var(--nav-h) + 3vh) 0 4vh;
  }

  .phead--medium h1 {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .phead--compact h1 {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
  }

  .index__meta { display: none; }
  .index__arrow { margin-left: auto; }
  .index__title {
    font-size: clamp(1.35rem, 7vw, 2.25rem);
  }

  .index__row {
    gap: 0.75rem 1rem;
    padding: 1.35rem 0;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 2rem) 0 3rem;
  }

  .hero--intro {
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    padding:
      calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 0.75rem)
      0
      max(1.25rem, env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }

  .hero--intro .hero__intro {
    margin-top: 0;
    width: 100%;
    max-width: none;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .hero__logo-img {
    width: min(100%, 720px);
    max-width: none;
  }

  .hero__type-sub {
    font-size: clamp(1.2rem, 5.8vw, 1.85rem);
    margin-top: clamp(-1.25rem, -4vw, -0.5rem);
    max-width: 100%;
  }

  .hero--intro .hero__cta {
    width: auto;
    max-width: 100%;
    margin-top: clamp(1.5rem, 4vh, 2.25rem);
    gap: 1.35rem 1.75rem;
  }

  .hero--intro .arrow-link {
    font-size: 0.84rem;
    padding: 0.7rem 1.15rem;
    padding-bottom: 0.7rem;
  }

  .scroll-cue { display: none; }

  .hero__stage {
    height: clamp(260px, 58vw, 340px);
    min-height: 260px;
  }

  .hero__copy {
    max-width: none;
    margin-top: 1.25rem;
  }

  .hero__circuit { animation: none; }
  .hero__chips span { font-size: 0.62rem; padding: 0.35rem 0.65rem; }
  .hero__chips span:nth-child(1) { --chip-x: 0px; --chip-y: -118px; }
  .hero__chips span:nth-child(2) { --chip-x: 92px; --chip-y: -90px; }
  .hero__chips span:nth-child(3) { --chip-x: 140px; --chip-y: -20px; }
  .hero__chips span:nth-child(4) { --chip-x: 124px; --chip-y: 58px; }
  .hero__chips span:nth-child(5) { --chip-x: 48px; --chip-y: 112px; }
  .hero__chips span:nth-child(6) { --chip-x: -48px; --chip-y: 112px; }
  .hero__chips span:nth-child(7) { --chip-x: -134px; --chip-y: 58px; }
  .hero__chips span:nth-child(8) { --chip-x: -148px; --chip-y: -20px; }
  .hero__chips span:nth-child(9) { --chip-x: -92px; --chip-y: -90px; }
  .hero__chip--long { font-size: 0.58rem; padding: 0.32rem 0.58rem; }
  .hero__logo-glow { width: clamp(120px, 28vw, 160px); }

  .mesh span { filter: blur(50px); }

  .home-services-wrap .display {
    max-width: 100%;
  }

  .home-project-track {
    cursor: default;
    scroll-padding-inline: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-bottom: 1rem;
  }

  .home-project-card {
    flex-basis: min(84vw, 300px);
  }

  .home-project-card__inner {
    min-height: clamp(300px, 62vw, 360px);
    padding: 0.55rem;
  }

  .home-project-card__content {
    padding: 0.75rem 0.2rem 0.2rem;
  }

  .cat-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(max(var(--pad), env(safe-area-inset-left, 0px)) * -1);
    padding-inline: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-bottom: 0.35rem;
  }

  .cat-filters::-webkit-scrollbar {
    display: none;
  }

  .cat-filters__btn {
    flex-shrink: 0;
  }

  .services-sec .display,
  .services-sec .display--two-line {
    max-width: 100%;
  }

  .services-sec .display--two-line {
    font-size: clamp(1.7rem, 7.4vw, 2.35rem);
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
  }

  .service-panel {
    min-height: auto;
    padding: 1.75rem 0;
  }

  .services-scroll .service-panel {
    min-height: 78dvh;
    padding: 0;
  }

  .services-scroll .service-panel__body {
    padding-bottom: 1.5rem;
  }

  .services-scroll__visual-stage {
    max-width: min(86%, 280px);
    max-height: min(32vh, 200px);
  }

  .service-panel__body {
    top: calc(var(--nav-h) + min(32vh, 200px) + 0.75rem);
    max-height: calc(100dvh - var(--nav-h) - min(32vh, 200px) - 1.25rem);
  }

  .service-panel__lead {
    max-width: 100%;
  }

  .proj-cover h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
  }

  .proj-cover__content {
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .proj-gallery-scroll__item img {
    height: clamp(160px, 28vh, 240px);
    max-width: min(420px, 86vw);
  }

  .card__body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .card__title {
    font-size: 1.15rem;
  }

  .foot {
    padding-top: clamp(3rem, 8vh, 5rem);
  }

  .foot__row {
    align-items: flex-start;
  }

  .pill-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cta .pill-link {
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  :root { --pad: 1rem; }

  .brand span { display: none; }
  .project__top { gap: 1rem; }

  .home-project-card {
    flex-basis: min(92vw, 320px);
  }

  .home-project-card__inner {
    min-height: clamp(280px, 72vw, 340px);
  }

  .home-project-card__title {
    font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  }

  .display {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem);
  }

  .services-sec .display--two-line {
    font-size: clamp(1.62rem, 8.5vw, 2.05rem);
    line-height: 1.24;
  }

  .statement {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  .cta__big {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }

  .vrow { grid-template-columns: 1fr; gap: 0.5rem; }
  .vrow__num { order: -1; }
  .vrow__text { grid-column: 1; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .foot__contact { align-items: flex-start; }

  .proj-cap__item {
    padding: 1.1rem 1.15rem;
  }

  .cat-filters__btn,
  .burger {
    min-height: 44px;
  }

  .cat-filters__btn {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .hero--intro .hero__cta {
    flex-direction: column;
    width: auto;
    gap: 1.2rem;
  }

  .hero--intro .arrow-link {
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 380px) {
  .hero__logo-img {
    width: 100%;
  }

  .hero__type-sub {
    font-size: 1.1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .index__row:active::before { transform: translateY(0); }
  .index__row:active .index__title { color: #fff; }
  .home-project-card:active .home-project-card__inner {
    transform: translateY(-4px);
    border-color: var(--brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .r, .stag > *, .lines .line > span { opacity: 1; transform: none; }
  .hero__circuit { animation: none; }
  .hero__logo-glow, .hero__chips span { animation: none !important; }
}
