/* ============================================================
   Ice Cap Labs — style.css
   Dark theme, Outfit, sky-blue accent (#0ea5e9)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --bg-void:    #07080f;
  --bg-deep:    #0d0f1c;
  --bg-surface: #12152a;
  --bg-card:    #1a1e35;
  --bg-card-hover: #1f2440;

  --border-subtle: rgba(14,165,233,0.15);
  --border-hover:  rgba(14,165,233,0.45);
  --border-dim:    rgba(255,255,255,0.07);

  --accent:        #0ea5e9;
  --accent-bright: #38bdf8;
  --accent-dim:    rgba(14,165,233,0.18);
  --accent-glow:   rgba(14,165,233,0.28);

  --text-primary:   #f0f9ff;
  --text-secondary: #9b97c4;
  --text-muted:     #5a5680;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-void);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }


/* ── Container & layout utilities ───────────────────────────*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(14,165,233,0.4);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 44px rgba(14,165,233,0.55);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── Navigation ───────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s ease;
}
#site-nav.scrolled {
  background: rgba(7, 8, 15, 0.96);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nav-logo:hover { color: var(--accent-bright); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--accent-bright); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) {
  .nav-burger { display: none; }
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, background 0.2s;
  transform-origin: center;
}
.nav-burger:hover span { background: var(--accent-bright); }
#site-nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
#site-nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid var(--border-dim);
  background: rgba(7, 8, 15, 0.98);
}
.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-dim);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--accent-bright); }

.nav-mobile-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px;
  text-align: center;
  border-bottom: none !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 150vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-void);
  padding: 64px clamp(1rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem);
}

#parallax-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  pointer-events: none;
}

.layer-6 { background-image: url('parallax-6.png'); background-position: center center; z-index: 1; }
.layer-5 { background-image: url('parallax-5.png'); background-position: bottom center; z-index: 2; }
.layer-4 { background-image: url('parallax-4.png'); background-position: bottom center; z-index: 3; }
.layer-3 { background-image: url('parallax-3.png'); background-position: bottom center; z-index: 4; }
.layer-2 { background-image: url('parallax-2.png'); background-position: bottom center; z-index: 5; }
.layer-1 { background-image: url('parallax-1.png'); background-position: bottom center; z-index: 6; }

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  margin-top: -30vh; /* pull content up so treeline frames it below */
  color: #000;
}

.eyebrow-pill {
  display: inline-block;
  padding: 0.375rem 1.1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: #000;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  color: #000;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.175rem);
  color: #000;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.trust-text {
  font-size: 0.75rem;
  color: #000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Section headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Services ─────────────────────────────────────────────── */
#services,
#process,
#why,
#contact,
footer {
  position: relative;
  z-index: 10;
}

#services {
  background: #000000;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  display: block;
  perspective: 800px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 16px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  border-radius: 16px;
}
.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.service-card-back {
  transform: rotateY(180deg);
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.service-card-back p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.35;
}

/* ── Process ──────────────────────────────────────────────── */
#process {
  background: var(--bg-surface);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .process-steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

/* Dotted line container */
.process-line-wrap {
  display: none;
}
@media (min-width: 640px) {
  .process-line-wrap {
    display: block;
    position: absolute;
    top: 22px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 2px;
    pointer-events: none;
  }
}

.process-line-bg,
.process-line-fill {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(14,165,233,0.15) 0px,
    rgba(14,165,233,0.15) 8px,
    transparent 8px,
    transparent 16px
  );
}

.process-line-fill {
  background-image: repeating-linear-gradient(
    to right,
    var(--accent-bright) 0px,
    var(--accent-bright) 8px,
    transparent 8px,
    transparent 16px
  );
  clip-path: inset(0 100% 0 0);
  box-shadow: 0 0 8px rgba(14,165,233,0.4);
  transition: clip-path 0.1s linear;
}

.process-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 0 1rem;
  opacity: 0.25;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-step.reached {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: left-aligned with number beside text */
@media (max-width: 639px) {
  .process-step {
    text-align: left;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0;
    opacity: 1;
    transform: none;
  }
  .process-step .step-number-wrap {
    margin: 0;
    flex-shrink: 0;
  }
}

.step-number-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 0.8rem;
  color: var(--accent-bright);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.process-step.reached .step-number-wrap {
  border-color: var(--accent-bright);
  box-shadow: 0 0 16px rgba(14,165,233,0.35);
}

.step-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA below timeline */
.process-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Why Ice Cap Labs ─────────────────────────────────────── */
#why {
  background: var(--bg-deep);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  transition: background 0.2s;
}
.why-item:hover { background: var(--bg-card); }

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition: background 0.2s;
}
.why-item:hover .why-icon { background: rgba(14,165,233,0.30); }

.why-item h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Contact / CTA ────────────────────────────────────────── */
#contact {
  background: var(--bg-void);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.contact-card-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 80px;
}

.contact-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
}

.contact-mascot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.contact-yeti {
  width: 168px;
  height: auto;
}

.yeti-hand {
  position: absolute;
  top: 69px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c3dfe8;
  z-index: 2;
}

.yeti-hand-left {
  left: 50%;
  margin-left: -58px;
}

.yeti-hand-right {
  left: 50%;
  margin-left: 36px;
}

.contact-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at center,
    rgba(14,165,233,0.25) 0%,
    transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.contact-form { width: 100%; }

.form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 0.75rem;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.form-row input[type="email"]::placeholder { color: var(--text-muted); }
.form-row input[type="email"]:focus { border-color: var(--accent); }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-dim);
  padding: 3rem clamp(1rem, 4vw, 2rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-logo {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-links a:hover { color: var(--accent-bright); }

.footer-email {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-email:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.footer-bar {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bar p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  /* Initial state set by JS to avoid FOUC if JS is disabled */
}

/* ── Word Reveal ──────────────────────────────────────────── */
.word-reveal { overflow: visible; }

/* ── Accessibility ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-layer { transform: none !important; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Inner pages ─────────────────────────────────────────── */
.page-header {
  padding: calc(64px + 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  background: var(--bg-void);
}

.page-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Service blocks (Ghost Labs inspired) ────────────────── */
.blocks-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.blocks-container {
  max-width: 1200px;
  margin: 0 auto;
}

.service-block {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border-dim);
  cursor: default;
  transition: background 0.3s;
}
.service-block:last-child {
  border-bottom: none;
}

.block-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .block-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.block-number {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.block-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--text-muted);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.5s;
}
.service-block:hover .block-title {
  color: var(--text-primary);
}

.block-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  transition: color 0.5s;
}
.service-block:hover .block-desc {
  color: var(--text-secondary);
}

.block-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.block-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
  transition: color 0.5s;
}
.service-block:hover .block-list li {
  color: var(--text-secondary);
}
.block-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity 0.5s;
}
.service-block:hover .block-list li::before {
  opacity: 1;
}

/* Step number large */
.step-number-lg {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--accent);
  opacity: 0.15;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: opacity 0.5s;
}
.service-block:hover .step-number-lg {
  opacity: 0.4;
}

/* ── Inner page CTA section ──────────────────────────────── */
.page-cta {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  background: var(--bg-deep);
}

.page-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* ── What to expect (contact page) ───────────────────────── */
.expect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .expect-grid { grid-template-columns: repeat(3, 1fr); }
}

.expect-item {
  text-align: center;
  padding: 1.5rem;
}

.expect-number {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.expect-item h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.expect-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Tile strip (about page) ─────────────────────────────── */
#tile-strip {
  position: relative;
  z-index: 10;
  height: 35vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  grid-auto-rows: 40px;
  gap: 4px;
  width: 100%;
  height: 100%;
  background: #000;
}

.tile {
  perspective: 600px;
  cursor: default;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile.flipped .tile-inner {
  transform: rotateY(180deg);
}

.tile-front,
.tile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-front {
  background: var(--accent);
}

.tile-back {
  background: #000;
  transform: rotateY(180deg);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

/* ── Design hero (pixel title) ───────────────────────────── */
.pixel-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg-void);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4rem, 12vw, 20rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* When pixel grid is active, hide the original text */
.pixel-hero.pixels-active .pixel-hero-title {
  visibility: hidden;
}

.pixel-title-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

.pixel-title-grid .ptile {
  position: absolute;
  width: var(--cell);
  height: var(--cell);
  perspective: 600px;
}

.pixel-title-grid .ptile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pixel-title-grid .ptile.flipped .ptile-inner {
  transform: rotateY(180deg);
}

.pixel-title-grid .ptile-front,
.pixel-title-grid .ptile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.pixel-title-grid .ptile-front {
  background: #fff;
}

.pixel-title-grid .ptile-back {
  background: var(--accent);
  transform: rotateY(180deg);
}

/* ── Blog Coverflow ───────────────────────────────────────── */
.blog-section {
  background: var(--bg-deep);
  overflow: hidden;
}

.blog-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.blog-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

/* All cards (real + dummy) share base style */
.blog-card,
.blog-card-dummy {
  position: absolute;
  width: 360px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-left: -180px;
  margin-top: -200px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.blog-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.blog-card.active {
  cursor: default;
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
  z-index: 10;
}

.blog-card-edge {
  display: none; /* not needed in coverflow layout */
}

.blog-card-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blog-card-topo svg {
  width: 100%;
  height: 100%;
}

.blog-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.blog-card-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.35;
  font-weight: 600;
}

.blog-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.blog-card-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
}

.blog-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 20;
  position: relative;
}
.blog-arrow:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-dim);
}
.blog-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 767px) {
  .blog-carousel { height: 380px; }
  .blog-card, .blog-card-dummy {
    width: 280px;
    height: 360px;
    margin-left: -140px;
    margin-top: -180px;
  }
}

/* ── Article Page ─────────────────────────────────────────── */
.article-hero {
  position: relative;
  padding: calc(64px + 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  background: var(--bg-void);
  overflow: hidden;
}

.article-hero-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.article-hero-topo svg {
  width: 100%;
  height: 100%;
}

.article-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--text-primary);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  font-weight: 700;
}

.article-body {
  background: var(--bg-deep);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  font-weight: 600;
}

.article-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-bright);
  margin-bottom: 2rem;
  transition: color 0.2s;
  text-decoration: none;
}
.article-back-link:hover { color: var(--accent); }

