/* =====================================================================
   VMI Collective landing page
   Palette sourced from vmi-collective.in
   brand red #c8351a  dark #a62a14  light #e8493a
   ink #141210  soft #5c544c  cream #faf7f2 / #f1ebe1
   Fonts: Space Grotesk (display) + Inter (body)
   ===================================================================== */

:root {
  --brand: #c8351a;
  --brand-dark: #a62a14;
  --brand-light: #e8493a;
  --ink: #141210;
  --ink-soft: #5c544c;
  --ink-faint: #8a8078;
  --cream: #faf7f2;
  --cream-deep: #f1ebe1;
  --line: rgba(20, 18, 16, 0.1);
  --radius: 22px;
  --shadow-soft: 0 24px 60px -24px rgba(20, 18, 16, 0.28);
  --shadow-glow: 0 14px 44px -10px rgba(200, 53, 26, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 26px; }

/* ---------- Shared typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--brand);
}
.eyebrow--light { color: #ffd9d0; }

.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 14px 0 0; }
.section-sub {
  margin-top: 18px; max-width: 62ch; color: var(--ink-soft);
  font-size: 1.06rem;
}
.section-sub--right { text-align: left; }

.section-head { max-width: 820px; margin-bottom: 54px; }
.section-head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; max-width: none; flex-wrap: wrap;
}
.section-head--row .section-sub { margin-top: 0; max-width: 40ch; }

.u { color: var(--brand); position: relative; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 0.98rem; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(20,18,16,0.4); background: rgba(20,18,16,0.03); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.4); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-flex; gap: 3px; align-items: flex-end; height: 22px;
}
.brand__mark span {
  width: 5px; border-radius: 3px; background: var(--brand);
  display: block;
}
.brand__mark span:nth-child(1) { height: 12px; }
.brand__mark span:nth-child(2) { height: 22px; background: var(--brand-light); }
.brand__mark span:nth-child(3) { height: 16px; background: var(--brand-dark); }
.brand__text {
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand__text em { font-style: italic; font-weight: 500; color: var(--brand); }
.brand--light .brand__text { color: #fff; }

/* Logo image (transparent PNG, works on the light navbar). */
.brand__logo { height: 40px; width: auto; display: block; }
.nav.is-scrolled .brand__logo { height: 34px; }
/* On the dark footer, sit the logo on a small white chip so the dark text stays legible. */
.brand__logo--chip {
  background: #fff; padding: 10px 14px; border-radius: 12px; height: 30px; box-sizing: content-box;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: all 0.35s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); border-radius: 2px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 26px 26px;
  background: rgba(250, 247, 242, 0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; border-bottom: 0; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 8%, rgba(232,73,58,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(200,53,26,0.06), transparent 55%),
    var(--cream);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__glow {
  position: absolute; z-index: 0; top: -20%; right: -10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(200,53,26,0.16), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 3; max-width: 940px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft); backdrop-filter: blur(6px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(200,53,26,0.35); animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.3rem); margin: 26px 0 0; max-width: 15ch;
}
.hero__accent { color: var(--brand); }
.hero__italic { font-style: italic; font-weight: 500; }
.hero__lead {
  margin-top: 26px; max-width: 58ch; font-size: 1.16rem; color: var(--ink-soft);
}
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { margin-top: 60px; display: flex; gap: 46px; flex-wrap: wrap; }
.stat__num {
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.4rem; font-weight: 700;
  color: var(--ink); display: block; line-height: 1;
}
.stat__label { font-size: 0.85rem; color: var(--ink-faint); margin-top: 8px; display: block; }

/* grain overlay */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  background: var(--ink); color: var(--cream); overflow: hidden; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.5rem; font-weight: 500;
  font-style: italic; white-space: nowrap;
}
.marquee__track .dot { color: var(--brand); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   RANKINGS
   ===================================================================== */
.rankings { padding: 110px 0; }
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.rank-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.rank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.rank-card__num {
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 3rem; font-weight: 800;
  color: var(--brand); line-height: 1; display: block;
}
.rank-card__label { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }

.serp {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-soft);
}
.serp__bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: var(--cream-deep); border-bottom: 1px solid var(--line);
}
.serp__dots { display: flex; gap: 6px; }
.serp__dots i { width: 11px; height: 11px; border-radius: 50%; background: #d6cbbb; display: block; }
.serp__url { font-size: 0.85rem; color: var(--ink-faint); font-family: "Inter"; }
.serp__result { display: flex; gap: 18px; align-items: flex-start; padding: 22px 26px; position: relative; }
.serp__result--top { background: rgba(200,53,26,0.04); }
.serp__result + .serp__result { border-top: 1px solid var(--line); }
.serp__rank {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background: var(--brand); color: #fff;
}
.serp__result:not(.serp__result--top) .serp__rank { background: var(--cream-deep); color: var(--ink-faint); }
.serp__title { color: #1a0dab; font-size: 1.14rem; font-weight: 500; font-family: "Inter"; }
.serp__title--muted { color: var(--ink-faint); }
.serp__link { color: #006621; font-size: 0.85rem; margin-top: 3px; }
.serp__link--muted { color: var(--ink-faint); }
.serp__desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; max-width: 66ch; }
.serp__tag {
  position: absolute; top: 20px; right: 24px; background: var(--brand); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 11px; border-radius: 999px;
}

/* Google AI Overview mockup */
.ai-overview { padding: 28px 30px; }
.ai-overview__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ai-overview__spark {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 0.8rem;
  background: linear-gradient(135deg, #4a90e2, #8a63d2 55%, #d9657a);
}
.ai-overview__label { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.ai-overview__text { font-size: 1.06rem; color: var(--ink-soft); line-height: 1.7; }
.ai-overview__text mark {
  background: rgba(200,53,26,0.12); color: var(--brand); font-weight: 600;
  padding: 1px 5px; border-radius: 5px; text-decoration: underline;
  text-decoration-color: rgba(200,53,26,0.45); text-underline-offset: 2px;
}
.ai-overview__cite {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-faint);
}
.ai-overview__cite-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.ai-overview__cite .serp__tag { position: static; margin-left: auto; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { padding: 110px 0; background: var(--cream-deep); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(200,53,26,0.3); }
.svc-card--wide { grid-column: span 1; }
.svc-card__media {
  position: relative; height: 172px; border-radius: 16px; overflow: hidden;
  margin-bottom: 24px; background: var(--cream-deep);
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.04); }
.svc-card__icon {
  position: absolute; top: 14px; left: 14px; margin: 0;
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); color: var(--brand); font-size: 1.2rem; font-weight: 700;
  backdrop-filter: blur(4px); box-shadow: 0 6px 16px -6px rgba(20,18,16,0.35);
}
.svc-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 0.98rem; }
.svc-card__list { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.svc-card__list li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.svc-card__list li::before { content: "✦"; position: absolute; left: 0; color: var(--brand); font-size: 0.7rem; top: 3px; }

/* first and last cards span two columns for rhythm */
.svc-grid > .svc-card--wide:first-child { grid-column: span 2; }
.svc-grid > .svc-card--wide:last-child { grid-column: span 2; }

/* Website types we build */
.webtypes { margin-top: 72px; }
.webtypes__head { margin-bottom: 34px; }
.webtypes__head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.webtypes__head p { margin-top: 12px; color: var(--ink-soft); max-width: 62ch; font-size: 1.02rem; }
.webtypes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.webtype {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.webtype:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(200,53,26,0.3); }
.webtype__ico {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(200,53,26,0.09); color: var(--brand); font-size: 1.15rem; margin-bottom: 16px;
}
.webtype h4 { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.webtype p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* =====================================================================
   WHY US (expanding hover panels)
   ===================================================================== */
.reasons { padding: 110px 0; background: var(--cream-deep); }
.panels { display: flex; gap: 14px; height: 460px; }
.panel {
  position: relative; flex: 1; min-width: 0; border-radius: 20px; overflow: hidden;
  cursor: pointer; background: var(--cream-deep);
  transition: flex 0.6s var(--ease);
}
.panel__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.panel:hover .panel__img { transform: scale(1.05); }
/* First panel is open by default. */
.panel:first-child { flex: 2.6; }
/* When the row is hovered, equalise all, then let the hovered one expand. */
.panels:hover .panel { flex: 1; }
.panels:hover .panel:hover { flex: 2.6; }

.panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,0.9), rgba(20,18,16,0.25) 55%, rgba(20,18,16,0.05));
}
.panel__content {
  position: absolute; inset: 0; z-index: 2; padding: 28px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.panel__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(4px); color: #fff;
  font-size: 1.15rem; margin-bottom: 16px; flex: 0 0 auto;
}
.panel__title { color: #fff; font-size: 1.4rem; white-space: nowrap; }
.panel__desc {
  color: rgba(255,255,255,0.9); font-size: 0.96rem; margin-top: 12px; max-width: 42ch;
  opacity: 0; max-height: 0; overflow: hidden; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), max-height 0.5s var(--ease), transform 0.4s var(--ease);
}
/* Show description for whichever panel is open. */
.panel:first-child .panel__desc { opacity: 1; max-height: 220px; transform: none; }
.panels:hover .panel:first-child .panel__desc { opacity: 0; max-height: 0; transform: translateY(8px); }
.panels:hover .panel:hover .panel__desc { opacity: 1; max-height: 220px; transform: none; }

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.work { padding: 110px 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.work-item__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.work-item__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.work-item:hover .work-item__media img { transform: scale(1.05); }
.work-item__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.work-item__title { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 1.16rem; }
.work-item__cat { font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.work-item__arrow {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand); transition: all 0.3s var(--ease);
}
.work-item:hover .work-item__arrow { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(-45deg); }

/* =====================================================================
   WHY CUSTOM
   ===================================================================== */
.why { padding: 110px 0; background: var(--ink); color: var(--cream); }
.why .eyebrow { color: var(--brand-light); }
.why .section-title { color: #fff; }
.why .section-sub { color: rgba(250,247,242,0.7); }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.compare__col { border-radius: var(--radius); padding: 40px 34px; }
.compare__col h3 { font-size: 1.4rem; margin-bottom: 24px; }
.compare__col ul { list-style: none; display: grid; gap: 16px; }
.compare__col li { position: relative; padding-left: 34px; font-size: 0.98rem; line-height: 1.5; }
.compare__col--bad { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: rgba(250,247,242,0.72); }
.compare__col--bad li::before {
  content: "✕"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: rgba(255,255,255,0.08); color: rgba(250,247,242,0.6); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.7rem;
}
.compare__col--good { background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: var(--shadow-glow); }
.compare__col--good li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: rgba(255,255,255,0.22); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
}
.compare__vs {
  align-self: center; font-family: "Space Grotesk", system-ui, sans-serif; font-style: italic;
  font-size: 1.3rem; color: var(--ink-faint);
}

/* =====================================================================
   HOSTING / SPEED
   ===================================================================== */
.hosting { padding: 110px 0; }
.hosting__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hosting__points { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.hosting__points li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 1rem; }
.hosting__points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
  border-radius: 4px; background: var(--brand); box-shadow: 0 0 0 4px rgba(200,53,26,0.14);
}
.hosting__points strong { color: var(--ink); }

.hosting__viz { padding: 36px; }
.hosting__viz-title { font-weight: 600; font-size: 0.95rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.speed { margin: 26px 0; display: grid; gap: 24px; }
.speed__row { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; align-items: baseline; }
.speed__name { font-size: 0.92rem; color: var(--ink-soft); grid-column: 1; grid-row: 1; }
.speed__name--us { color: var(--brand); font-weight: 600; }
.speed__val { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink-faint); grid-column: 2; grid-row: 1; justify-self: end; }
.speed__val--us { color: var(--brand); }
.speed__bar { grid-column: 1 / -1; grid-row: 2; height: 12px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; position: relative; }
.speed__fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.3s var(--ease); }
.speed__fill--slow { background: #d8c7bf; }
.speed__fill--mid { background: var(--brand-light); }
.speed__fill--fast { background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.hosting__viz-foot { font-size: 0.88rem; color: var(--ink-faint); margin-top: 8px; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process { padding: 110px 0; background: var(--cream-deep); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step__no { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.4rem; font-weight: 800; color: rgba(200,53,26,0.24); display: block; }
.step h3 { font-size: 1.24rem; margin: 14px 0 10px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team { padding: 110px 0; }

/* Growth pillars (replaces the people cards) */
.growth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.growth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.growth-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(200,53,26,0.3); }
.growth-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(200,53,26,0.09); color: var(--brand); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 22px;
}
.growth-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.growth-card p { color: var(--ink-soft); font-size: 0.98rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 60px; }
.team-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.team-card__media { aspect-ratio: 1 / 1; background: var(--cream-deep); overflow: hidden; }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 20px 22px; }
.team-card__name { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 1.16rem; }
.team-card__role { color: var(--brand); font-size: 0.86rem; margin-top: 3px; font-weight: 500; }

.team-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0;
}
.team-metrics span { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--brand); display: block; line-height: 1; }
.team-metrics p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; }

/* =====================================================================
   PRICING
   ===================================================================== */
.pricing { padding: 110px 0; background: var(--cream-deep); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 54px; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.price-card--featured {
  background: linear-gradient(165deg, var(--brand), var(--brand-dark));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-glow);
}
.price-card__badge {
  position: absolute; top: 22px; right: 24px; background: #fff; color: var(--brand);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 12px; border-radius: 999px;
}
.price-card__name { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; }
.price-card__tag { font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }
.price-card--featured .price-card__tag { color: rgba(255,255,255,0.82); }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 0; flex-wrap: wrap; }
.price-card__amount { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; }
.price-card__unit { font-size: 0.9rem; color: var(--ink-faint); }
.price-card--featured .price-card__unit { color: rgba(255,255,255,0.78); }
.price-card__divider { height: 1px; background: var(--line); margin: 26px 0; }
.price-card--featured .price-card__divider { background: rgba(255,255,255,0.25); }
.price-card__features { list-style: none; display: grid; gap: 13px; margin-bottom: 32px; }
.price-card__features li { position: relative; padding-left: 28px; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.45; }
.price-card--featured .price-card__features li { color: rgba(255,255,255,0.92); }
.price-card__features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(200,53,26,0.1); color: var(--brand); display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 700;
}
.price-card--featured .price-card__features li::before { background: rgba(255,255,255,0.22); color: #fff; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; margin-top: 42px; color: var(--ink-faint); font-size: 0.9rem; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  padding: 110px 0;
  background: linear-gradient(155deg, var(--brand), var(--brand-dark) 70%, #7a1e0d);
  color: #fff; overflow: hidden;
}
.contact__inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.contact__title { font-size: clamp(2rem, 4vw, 3.2rem); margin: 16px 0 0; color: #fff; }
.contact__sub { margin-top: 18px; max-width: 46ch; color: rgba(255,255,255,0.85); font-size: 1.08rem; }
.contact__meta { list-style: none; margin-top: 34px; display: grid; gap: 18px; }
.contact__meta li { display: flex; flex-direction: column; gap: 3px; color: #fff; }
.contact__meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.62); }
.contact__meta a { color: #fff; width: fit-content; }
.contact__meta a:hover { text-decoration: underline; }

.contact__panel { padding: 34px; }
.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: "Inter", sans-serif; font-size: 0.95rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--cream); width: 100%; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(200,53,26,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__form .btn { width: 100%; margin-top: 4px; }
.contact__note { text-align: center; font-size: 0.82rem; color: var(--ink-faint); }

.contact__success { display: none; text-align: center; padding: 34px 16px; }
.contact__success.is-shown { display: block; }
.contact__success-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: rgba(200,53,26,0.1); color: var(--brand); font-size: 1.6rem; font-weight: 700;
}
.contact__success h3 { font-size: 1.4rem; }
.contact__success p { margin-top: 10px; color: var(--ink-soft); font-size: 0.96rem; max-width: 42ch; margin-inline: auto; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: rgba(250,247,242,0.72); padding: 70px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand p { margin-top: 18px; max-width: 38ch; font-size: 0.95rem; }
.footer__col h4 { font-family: "Inter"; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: #fff; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; font-size: 0.94rem; transition: color 0.25s; }
.footer__col a:hover { color: var(--brand-light); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 0.85rem; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

/* =====================================================================
   REVEAL ANIMATION STATE (JS-driven fallback)
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-visible[data-reveal], [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid > .svc-card--wide:first-child,
  .svc-grid > .svc-card--wide:last-child { grid-column: span 2; }
  .webtypes__grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-metrics { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .hosting__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .section-head--row .section-sub { max-width: none; }
  .growth { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { justify-self: center; padding: 4px 0; }
  .hero__stats { gap: 30px; }
  .stat__num { font-size: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  /* Panels: no hover on touch, so stack them open. */
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none !important; height: 230px; }
  .panel__desc { opacity: 1 !important; max-height: 220px !important; transform: none !important; }
  .panel__title { white-space: normal; }
}

@media (max-width: 560px) {
  .rank-grid, .svc-grid, .work-grid, .steps, .team-grid, .team-metrics, .webtypes__grid { grid-template-columns: 1fr; }
  .svc-grid > .svc-card--wide:first-child,
  .svc-grid > .svc-card--wide:last-child { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .container { padding: 0 20px; }
}
