/* =========================================================
   Sahil Ganapa — Portfolio (light)
   Clean, warm, modular. Original work.
   ========================================================= */

:root {
  --bg:       #FFFFFF; /* pure white */
  --surface:  #F9FAFB; /* near-white */
  --ink:      #191F28; /* near-black */
  --ink-soft: #67696B; /* muted grey */
  --line:     #ECEDEE;
  --accent:   #191F28; /* monochrome: ink is the accent */
  --accent-2: #191F28;
  --signal:   #191F28;
  --guide:    rgba(25, 31, 40, 0.045);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 20px;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(26, 24, 19, 0.04), 0 12px 30px -12px rgba(26, 24, 19, 0.14);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

.serif-it { font-family: var(--f-display); font-style: italic; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn .btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { font-size: clamp(16px, 2.4vw, 22px); padding: 18px 30px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad);
  background: transparent;
  border-bottom: none;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled { padding-top: 11px; padding-bottom: 11px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.avatar-wrap {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.avatar-img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
@media (max-width: 560px) { .brand-name { display: none; } }
.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); font-weight: 500; font-size: 16px; }
.nav-links a { position: relative; color: var(--ink-soft); transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.nav-links a:not(.active)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:not(.active):hover::after { transform: scaleX(1); }
@media (max-width: 560px) { .nav-links { gap: 16px; font-size: 14px; } }

/* ---------- Hero (minimal, centered) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 120px clamp(24px, 16vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}
.blob-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* once the WebGL hero paints, the name lives inside the canvas */
.hero.webgl-ready .hero-role,
.hero.webgl-ready .hero-bigname { opacity: 0; }

.hero-role {
  position: relative;
  z-index: 2;
  font-size: clamp(15px, 1.7vw, 20px);
  color: var(--ink-soft);
  margin: 0;
}
.hero-bigname {
  position: relative;
  z-index: 2;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(20px, 4.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #000;
  white-space: nowrap;
}
.hero-status {
  position: relative;
  z-index: 2;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #9a9ca0;
}
.hero-status a {
  color: #9a9ca0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}
.hero-status a:hover { color: var(--ink); }
.hero-tagline {
  position: absolute;
  right: clamp(20px, 5vw, 90px);
  bottom: clamp(48px, 12vh, 120px);
  z-index: 2;
  text-align: left;
  padding-left: 16px;
  border-left: 1.5px solid var(--line);
}
.hero-tagline p {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--ink-soft);
}
.hero-tagline a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-tagline a span { display: inline-block; transition: transform 0.3s var(--ease); }
.hero-tagline a:hover span { transform: translateX(4px); }
@media (max-width: 640px) {
  .hero { justify-content: flex-start; padding-top: 24vh; padding-inline: clamp(16px, 5vw, 40px); }
  .hero-tagline {
    position: static; margin-top: 14vh;
    border-left: none; padding-left: 0; text-align: center;
  }
}

/* ---------- Glossy 3D glass blob ---------- */
.blob,
.blob-gloss {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(330px, 42vw, 600px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 47% 53% 56% 44% / 48% 46% 54% 52%;
  animation: morph 18s ease-in-out infinite, floaty 11s ease-in-out infinite;
  will-change: border-radius, translate;
}

/* solid orb — sits behind the name */
.blob {
  z-index: 1;
  /* 3D sphere shading: light from top-left, falloff to grey at the rim */
  background:
    radial-gradient(120% 120% at 33% 27%,
      #ffffff 0%,
      #fbfbfc 26%,
      #f1f2f3 48%,
      #e2e3e5 68%,
      #d2d4d7 84%,
      #c6c8cb 100%);
  box-shadow:
    inset 16px 20px 44px rgba(255,255,255,0.95),
    inset -26px -30px 64px rgba(25,31,40,0.10),
    inset 0 0 34px rgba(255,255,255,0.5),
    0 54px 100px -34px rgba(25,31,40,0.28);
}
/* bright specular hotspot */
.blob::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 15%;
  width: 48%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.98), rgba(255,255,255,0) 72%);
  filter: blur(3px);
  transform: rotate(-18deg);
}
/* chrome / refraction sweep on the lower-right */
.blob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(42% 58% at 80% 56%,
      rgba(25,31,40,0.50), rgba(60,66,75,0.16) 42%, transparent 64%),
    linear-gradient(118deg, transparent 54%, rgba(25,31,40,0.16) 72%, transparent 88%);
  mix-blend-mode: multiply;
}

/* transparent gloss layer — sits in FRONT of the name for the glass feel */
.blob-gloss {
  z-index: 3;
  pointer-events: none;
  background: transparent;
}
/* soft sheen across the top of the name */
.blob-gloss::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 26%;
  width: 54%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,255,255,0) 76%);
  filter: blur(2px);
}
/* bright reflective glint + small chrome bead toward the right */
.blob-gloss::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 55%;
  width: 34%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(102deg,
    transparent 0%,
    rgba(255,255,255,0.92) 42%,
    rgba(120,124,130,0.55) 58%,
    transparent 78%);
  filter: blur(1.5px);
  transform: rotate(-13deg);
}

@keyframes morph {
  0%, 100% { border-radius: 47% 53% 56% 44% / 48% 46% 54% 52%; }
  33% { border-radius: 55% 45% 47% 53% / 52% 54% 46% 48%; }
  66% { border-radius: 44% 56% 53% 47% / 55% 45% 55% 45%; }
}
@keyframes floaty {
  0%, 100% { translate: -50% -52%; }
  50% { translate: -50% -47%; }
}

/* ---------- Ticker ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(50px, 9vh, 90px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ticker-label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker-window {
  position: relative;
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
  animation: scroll-x 26s linear infinite;
}
.ticker-track i { color: var(--accent); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Blocks ---------- */
.block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad);
}
.block-head { margin-bottom: clamp(36px, 6vh, 60px); }
.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.block-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}

/* ---------- Work / cases ---------- */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 32px);
}
@media (min-width: 720px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-media {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  overflow: hidden;
}
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,0.5), transparent 50%);
}
.case-emoji {
  font-size: 64px;
  filter: grayscale(1) drop-shadow(0 6px 14px rgba(0,0,0,0.15));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.case:hover .case-emoji { transform: scale(1.12) rotate(-6deg); filter: grayscale(0) drop-shadow(0 8px 16px rgba(0,0,0,0.18)); }
.case-body { padding: clamp(22px, 3vw, 30px); }
.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.case-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.case-desc { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.case-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  transition: letter-spacing 0.3s var(--ease);
}
.case:hover .case-link { letter-spacing: 0.01em; }

/* ---------- Work — full-screen project spotlights ---------- */
.showcase { display: block; }
.project {
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14vh var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 9vw, 150px);
  align-items: center;
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .project {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 14vh var(--pad);
  }
}
.project-info { max-width: 32rem; justify-self: start; }
.project-title {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: #000;
}
.project-meta {
  color: var(--ink-soft);
  font-size: clamp(13px, 1.2vw, 15px);
  margin: 12px 0 0;
}
.project-meta strong { color: var(--ink); font-weight: 700; }
.project-status {
  margin: 7px 0 0;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--ink-soft);
  font-style: italic;
}
.project-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.project-desc {
  color: var(--ink);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  max-width: 42ch;
  margin: clamp(20px, 3vh, 30px) 0 0;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(26px, 4vh, 44px);
  padding: 16px 30px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.project-cta:hover { transform: translateY(-2px); background: #000; }

/* nudge the device mockups toward the right edge */
.project-media { justify-self: end; width: 100%; transform: translateX(clamp(0px, 4vw, 70px)); }

/* Laptop mockup */
.device-laptop { width: 100%; }
.laptop-screen {
  position: relative;
  background: #0d0d0f;
  border-radius: 14px 14px 4px 4px;
  padding: 12px;
  box-shadow:
    0 10px 22px -8px rgba(25, 31, 40, 0.32),
    0 40px 70px -22px rgba(25, 31, 40, 0.55),
    0 90px 150px -45px rgba(25, 31, 40, 0.5);
}
.laptop-screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2a2e;
}
.laptop-screen img { display: block; width: 100%; height: auto; border-radius: 3px; }
.laptop-base {
  position: relative;
  width: 114%;
  margin-left: -7%;
  height: 15px;
  background: linear-gradient(180deg, #d8d9dc 0%, #b6b7bb 60%, #97989c 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 22px -10px rgba(0, 0, 0, 0.3);
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  height: 8px;
  background: #a9aaae;
  border-radius: 0 0 8px 8px;
}

/* Phone mockup */
.device-phone {
  position: relative;
  width: min(300px, 72vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: #14140f;
  box-shadow:
    0 10px 22px -8px rgba(25, 31, 40, 0.35),
    0 40px 70px -22px rgba(25, 31, 40, 0.55),
    0 90px 150px -45px rgba(25, 31, 40, 0.5);
}
.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 13px;
  background: #14140f;
  z-index: 2;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.phone-screen img { width: 100%; height: auto; display: block; }
/* a screenshot that already contains its own device mockup */
.shot-standalone { width: 100%; height: auto; display: block; border-radius: 14px; }

/* fixed phone-shaped screen (used until a tall screenshot is dropped in) */
.phone-fixed { aspect-ratio: 390 / 844; background: #f4f4f5; display: grid; place-items: center; }
.phone-fixed img { width: 100%; height: 100%; object-fit: cover; }
.phone-fixed.no-img::after {
  content: "foodease";
  color: #c2c2c4;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ---------- Story ---------- */
/* About is hidden until the nav "About" link is clicked */
/* About is its own full view — hidden until the About link is clicked */
#story { display: none; }
body.about-mode #story { display: block; min-height: 100vh; }
/* in About view, nothing else exists */
body.about-mode .hero,
body.about-mode .work,
body.about-mode .footer-bar,
body.about-mode .colophon {
  display: none;
}

/* the current view vanishes (fades up & out) before the swap */
body.view-leaving .hero,
body.view-leaving .work,
body.view-leaving .footer-bar,
body.view-leaving .colophon,
body.view-leaving #story {
  opacity: 0;
  transform: translateY(-22px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* the new view comes out */
body.view-entering .hero,
body.view-entering .work,
body.view-entering .footer-bar,
body.view-entering .colophon,
body.view-entering #story {
  animation: aboutIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes aboutIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* ---------- About (simple editorial column) ---------- */
.about-wrap {
  max-width: 760px;
  padding: clamp(110px, 16vh, 175px) clamp(24px, 5vw, 56px) 120px
    clamp(24px, 9vw, 150px);
}
.about-title {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(26px, 4vh, 42px);
  color: #000;
}
.about-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 clamp(34px, 5vh, 56px);
}
.about-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: clamp(34px, 5vh, 56px) 0 18px;
}
.about-wrap p:not(.about-label):not(.about-lead) {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 20px;
}
.about-wrap a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s var(--ease);
}
.about-wrap a:hover { opacity: 0.55; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 2.5vw, 30px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 8px;
}
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Connect (3D button) ---------- */
.connect {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 14vh, 150px) var(--pad) clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  perspective: 800px;
}
.connect-note {
  font-family: var(--f-hand);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--ink-soft);
  margin: 0 0 clamp(28px, 5vh, 56px);
  transform: rotate(-3deg);
}

/* the lifted, tilted, glossy pill */
.connect-3d {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(56px, 11vw, 130px);
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 55%, #0c0c0d 100%);
  transform: rotateX(42deg) rotateZ(-15deg);
  transform-style: preserve-3d;
  box-shadow:
    0 2px 0 #000,
    0 0 0 10px #ECECEC,            /* light "sticker" outline */
    0 0 0 11px rgba(0,0,0,0.06),
    0 38px 50px -18px rgba(0,0,0,0.55),
    0 22px 30px -22px rgba(0,0,0,0.6);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
/* top gloss highlight */
.connect-3d::before {
  content: "";
  position: absolute;
  inset: 6px 6px 50% 6px;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events: none;
}
.connect-3d-label {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transform: translateZ(1px);
}
.connect-3d:hover {
  transform: rotateX(20deg) rotateZ(-7deg) translateY(-6px) scale(1.03);
  box-shadow:
    0 2px 0 #000,
    0 0 0 10px #ECECEC,
    0 0 0 11px rgba(0,0,0,0.06),
    0 50px 60px -18px rgba(0,0,0,0.55),
    0 28px 36px -22px rgba(0,0,0,0.6);
}
.connect-3d:active {
  transform: rotateX(28deg) rotateZ(-11deg) translateY(2px) scale(0.99);
}

/* ---------- Footer bar ---------- */
.footer-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px 12px 22px;
  margin-inline: var(--pad);
  box-shadow: var(--shadow);
}
@media (min-width: 1180px) { .footer-bar { margin-inline: auto; } }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 18px);
  transition: color 0.25s;
}
.footer-mail svg { color: var(--accent); flex: none; }
.footer-mail:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 16px; }
.soc {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.soc:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow); }
/* always-on brand colors */
.soc-x  { background: #000000; }
.soc-ig { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.soc-dr { background: #ea4c89; }
.soc-th { background: #000000; }
.soc-li { background: #0a66c2; }
@media (max-width: 520px) {
  .footer-mail span { font-size: 13px; }
  .soc { width: 36px; height: 36px; }
}

.colophon {
  max-width: var(--maxw);
  margin: 26px auto 40px;
  padding-inline: var(--pad);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
[data-fade] {
  opacity: 0;
  transform: translateY(26px) scale(0.92);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-fade].in { opacity: 1; transform: none; }

[data-fade][data-delay="1"] { transition-delay: 0.08s; }
[data-fade][data-delay="2"] { transition-delay: 0.16s; }
[data-fade][data-delay="3"] { transition-delay: 0.24s; }
[data-fade][data-delay="4"] { transition-delay: 0.34s; }
[data-fade][data-delay="5"] { transition-delay: 0.44s; }
[data-fade][data-delay="6"] { transition-delay: 0.54s; }
/* stagger siblings inside grids */
.cases .case:nth-child(2) { transition-delay: 0.1s; }
.cases .case:nth-child(3) { transition-delay: 0.16s; }
.cases .case:nth-child(4) { transition-delay: 0.22s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-fade] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
