/* ================================================================
   LAAJENNA — Premium Dark Agency Stylesheet  v2
   Fonts: Bricolage Grotesque (headings) · DM Sans (body)
   Aesthetic: cinematic editorial — Linear × basement.studio
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg: #080c10;
  --bg-2: #0c1016;
  --bg-card: #0e1218;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.32);
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.25);
  --green-glow: rgba(34, 197, 94, 0.1);
  --text: #efefef;
  --text-muted: #8d8d8d;
  --text-dim: #2e2e2e;
  --border: rgba(255, 255, 255, 0.065);
  --border-hi: rgba(255, 255, 255, 0.13);
  /* Bricolage Grotesque: editorial display, optical-size aware, highly legible at large scale */
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  /* DM Sans: refined optical-size aware body */
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow-x: hidden;
}
html.ready {
  opacity: 1;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
em {
  font-style: italic;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5.5vw, 80px);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s var(--ease),
    backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8, 12, 16, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5.5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    120deg,
    var(--text) 50%,
    rgba(240, 240, 240, 0.45)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeSlideDown 0.55s var(--ease) 0.15s forwards;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeSlideDown 0.55s var(--ease) 0.25s forwards;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}
.nav-cta {
  padding: 9px 20px !important;
  border: 1px solid var(--border-hi) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  transition:
    background 0.2s,
    border-color 0.2s !important;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s;
  transform-origin: center;
}
.nav.open .nav-hamburger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav.open .nav-hamburger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Subtle dot grid */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 42px 42px;
  mask-image: radial-gradient(
    ellipse 75% 75% at 50% 45%,
    black 20%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 75% 75% at 50% 45%,
    black 20%,
    transparent 100%
  );
}

/* Cursor-following glow */
.hero-blob {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 68%);
  pointer-events: none;
  left: 50%;
  top: 50%;
  will-change: transform;
  filter: blur(52px);
  opacity: 0.5;
}

/* Film grain texture */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* Giant decorative wordmark — outlined, faint */
.hero-wordmark {
  position: absolute;
  bottom: 0.04em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.038);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(24px, 3.5vw, 56px);
  padding-block: clamp(24px, 4vw, 56px);
}

/* Availability badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--green);
  background: var(--green-glow);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease) 0.45s forwards;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--green-dim);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--green-dim);
  }
  50% {
    box-shadow: 0 0 0 9px transparent;
  }
}

/* Hero headline — Bricolage Grotesque 800, word reveal */
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(38px, 7vw, 108px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.word-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.word {
  display: block;
  white-space: nowrap;
  transform: translateY(112%) rotate(3deg);
  opacity: 0;
  transition:
    transform 0.9s var(--ease),
    opacity 0.9s var(--ease);
}
.hero-headline.revealed .word {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
.hero-headline.revealed .word-wrap:nth-child(1) .word {
  transition-delay: 0.04s;
}
.hero-headline.revealed .word-wrap:nth-child(2) .word {
  transition-delay: 0.16s;
}
.hero-headline.revealed .word-wrap:nth-child(3) .word {
  transition-delay: 0.28s;
}

/* Accent gradient on last line */
.accent-word {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    rgba(59, 130, 246, 0.85) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 0.75s var(--ease) 1.1s forwards;
}
.br-desk {
  display: block;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.75s var(--ease) 1.28s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.26);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.46);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 5.5vw, 88px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 1.9s forwards;
}
.scroll-indicator span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: growLine 1.4s var(--ease) 2.1s forwards;
}
@keyframes growLine {
  to {
    height: 60px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════ */
.marquee-section {
  padding-block: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
}
.marquee-inner {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.marquee-inner span {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-inline: 16px;
  white-space: nowrap;
}
.marquee-inner .dot {
  color: var(--accent);
  font-size: 14px;
  padding-inline: 2px;
}

/* ═══════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════ */
.stats-section {
  padding-block: clamp(60px, 8vw, 100px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.stat-item {
  padding: clamp(36px, 5vw, 64px) clamp(28px, 3.5vw, 48px);
  background: var(--bg-card);
  position: relative;
}
.stat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 15% 15%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 55%
  );
  pointer-events: none;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-num-row {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(52px, 6.5vw, 82px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--text);
}
.stat-suffix {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--accent);
  margin-top: 9px;
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   SECTION SHARED LABELS
═══════════════════════════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 52px;
}
.section-header {
  max-width: 580px;
}

.book-time-title {
  margin-top: 50px;
  margin-bottom: 0px;
}

.Yirv_lcEoJvq0f_H9E0w.NLDHOZbATrV0sB7lot85 {
  all: unset !important;
}

.Yirv_lcEoJvq0f_H9E0w.XUKnHm8j4G7Hgt84mtar {
  margin: 0px !important;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES — editorial numbered list
═══════════════════════════════════════════════════════════ */
.services-section {
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--border);
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 88px) 1fr;
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s;
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.04) 0%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.service-row:hover {
  background: rgba(255, 255, 255, 0.018);
}
.service-row:hover::before {
  transform: translateX(0);
}

.svc-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 4px;
  transition: color 0.25s;
}
.service-row:hover .svc-num {
  color: var(--accent);
}

.svc-name {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: clamp(0px, 8vw, 80px);
}
.svc-name h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
  transition: transform 0.4s var(--ease);
}
.service-row:hover .svc-name h3 {
  transform: translateX(5px);
}

.svc-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio-section {
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  will-change: transform;
  clip-path: inset(0 round 16px);
}
.portfolio-large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.portfolio-img {
  position: absolute;
  inset: 0;
  transition: transform 0.65s var(--ease);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (hover: hover) {
  .portfolio-card:hover .portfolio-img {
    transform: scale(1.04);
  }
}

/* Category label top-left */
.portfolio-label-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.portfolio-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(8, 12, 16, 0.6);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Hover overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 12, 16, 0.96) 0%,
    rgba(8, 12, 16, 0.3) 55%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 36px);
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}
@media (hover: hover) {
  .portfolio-card:hover .portfolio-overlay {
    opacity: 1;
  }
}

.portfolio-info {
  transform: translateY(14px);
  transition: transform 0.42s var(--ease);
}
@media (hover: hover) {
  .portfolio-card:hover .portfolio-info {
    transform: translateY(0);
  }
}

.portfolio-info h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 5px;
}
.portfolio-info p {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 13px;
}
.portfolio-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.portfolio-link:hover {
  opacity: 0.75;
}

.portfolio-year-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(8, 12, 16, 0.65);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* "Seuraava projekti" card — full-width banner */
.portfolio-next {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.04) 0%,
    transparent 60%
  );
  cursor: default;
  transition:
    border-color 0.3s,
    background 0.3s;
  grid-column: 1 / -1;
  aspect-ratio: unset;
  min-height: 180px;
}
.portfolio-next:hover {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.07) 0%,
    transparent 60%
  );
}
.portfolio-next-inner {
  text-align: center;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.next-text {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}
.next-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-hi);
  padding: 10px 22px;
  border-radius: 8px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  margin-top: 4px;
}
.next-cta:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — editorial 3-column
═══════════════════════════════════════════════════════════ */
.about-section {
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--border);
}
.about-header {
  max-width: 680px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.about-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--text);
  margin-top: 16px;
}
.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.about-col {
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.8vw, 36px);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.about-col h3 {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.about-col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 30ch;
}
.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--border);
}
.about-sig {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  font-style: italic;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-pill {
  padding: 8px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.about-pill:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

/* ── Section header centred variant ────────────────────── */
.section-header.centered {
  text-align: center;
  max-width: 100%;
}
.section-header.centered .section-label {
  justify-content: center;
}

/* ── Service row icons ──────────────────────────────────── */
.svc-icon {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 56px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
  flex-shrink: 0;
  transition:
    opacity 0.3s var(--ease),
    background 0.3s var(--ease);
}
.service-row:hover .svc-icon {
  opacity: 1;
  background: rgba(59, 130, 246, 0.15);
}
.svc-icon svg {
  width: 20px;
  height: 20px;
}

/* ── Service technology tags ────────────────────────────── */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.svc-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ── About column icon container ────────────────────────── */
.about-col-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.about-col-num svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════════════════ */
.cta-section {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(88px, 14vw, 180px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(
    ellipse,
    rgba(59, 130, 246, 0.11) 0%,
    transparent 70%
  );
  filter: blur(72px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-question {
  font-family: var(--font-head);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-bottom: 6px;
  max-width: 50ch;
  margin-inline: auto;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(58px, 11.5vw, 152px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-block: 0 16px;
  cursor: pointer;
}

.cta-sub {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.cta-label {
  justify-content: center;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding-block: 26px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--text);
}
.footer-social svg {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up[data-delay="0"] {
  transition-delay: 0s;
}
.reveal-up[data-delay="1"] {
  transition-delay: 0.06s;
}
.reveal-up[data-delay="2"] {
  transition-delay: 0.12s;
}
.reveal-up[data-delay="3"] {
  transition-delay: 0.18s;
}
.reveal-up[data-delay="4"] {
  transition-delay: 0.24s;
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS
═══════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.9));
  z-index: 200;
  transition: opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.scroll-progress.active {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-section {
  padding-block: clamp(64px, 8vw, 120px);
  background: var(--bg-2);
  border-top: 1px solid var(--border-hi);
  border-bottom: 1px solid var(--border-hi);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-aside .section-title {
  margin-bottom: 20px;
}
.faq-aside-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 38ch;
}
.faq-aside-sub a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.faq-aside-sub a:hover {
  border-color: var(--accent);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: clamp(20px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
@media (hover: hover) {
  .faq-item summary:hover {
    color: var(--accent);
  }
}
.faq-item[open] summary {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.faq-icon::before {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-icon::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-item[open] .faq-icon::before {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-item[open] .faq-icon::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 64ch;
  padding-bottom: clamp(18px, 2.2vw, 28px);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════════════════ */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#formSubmit.loading .submit-label {
  display: none;
}
#formSubmit.loading .submit-spinner {
  display: inline-block;
}
#formSubmit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-status {
  font-size: 14px;
  line-height: 1.5;
}
.form-status.success {
  color: var(--green);
}
.form-status.error {
  color: #ef4444;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER TIME
═══════════════════════════════════════════════════════════ */
.footer-time {
  display: inline-block;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-time::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--green-dim);
}
.footer-time:empty {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   FOCUS STATES (visible keyboard nav)
═══════════════════════════════════════════════════════════ */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.next-cta:focus-visible {
  outline-offset: 4px;
}
.faq-item summary:focus-visible {
  outline-offset: 6px;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .word {
    transform: none !important;
    opacity: 1 !important;
  }
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-blob {
    display: none;
  }
  .pulse-dot {
    animation: none;
  }
  .marquee-inner {
    transform: none !important;
  }
  .scroll-line {
    animation: none;
    height: 60px;
  }
  .scroll-progress {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── Desktop: main sections fill the viewport ─────────── */
@media (min-width: 681px) {
  .services-section,
  .about-section,
  .faq-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Portfolio is too tall to center — just ensure it starts clean */
  .portfolio-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

/* ── Tablet (≤960px) ───────────────────────────────────── */
@media (max-width: 960px) {
  .about-cols {
    grid-template-columns: 1fr 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Mobile (≤680px) ───────────────────────────────────── */
@media (max-width: 680px) {
  /* Typography — scale headings with viewport, trim excess spacing */
  .section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 28px;
    overflow-wrap: break-word;
  }
  .about-headline {
    font-size: clamp(26px, 8vw, 40px);
  }
  .cta-headline {
    font-size: clamp(28px, 7.5vw, 40px);
    letter-spacing: -0.03em;
  }
  .cta-question {
    font-size: 13px;
  }
  .cta-section {
    padding-block: 56px;
  }
  .hero-sub {
    margin-bottom: 20px;
  }

  /* Remove max-width constraints that create narrow text in single-col layout */
  .about-col p {
    max-width: none;
  }
  .faq-aside-sub {
    max-width: none;
  }

  /* Section vertical rhythm — tighter on mobile */
  .services-section,
  .portfolio-section,
  .about-section,
  .faq-section {
    padding-block: 48px;
  }
  .stats-section {
    padding-block: 48px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-h) + 56px);
    justify-content: flex-start;
  }
  .br-desk {
    display: none;
  }
  .hero-blob {
    opacity: 0.42;
    width: 320px;
    height: 320px;
  }
  .hero-wordmark {
    bottom: 0;
    font-size: clamp(60px, 22vw, 100px);
  }
  .hero-headline {
    font-size: clamp(26px, 8vw, 38px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 11px 22px;
    font-size: 13px;
  }

  /* Nav — show hamburger, hide links */
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    padding-top: var(--nav-h);
    background: rgba(8, 12, 16, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 99;
  }
  .nav.open .nav-links {
    display: flex;
  }
  .nav.open {
    transition: none;
  }
  .nav.scrolled.open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 12, 16, 1);
  }
  .nav.open .nav-logo,
  .nav.open .nav-hamburger {
    position: relative;
    z-index: 100;
  }
  .nav-links a:not(.nav-cta) {
    display: flex;
    font-size: 22px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    padding: 14px 24px;
    transition: color 0.2s;
  }
  .nav-links a:not(.nav-cta):hover {
    color: var(--accent);
  }
  .nav-cta {
    font-size: 15px !important;
    padding: 12px 28px !important;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .stat-item {
    text-align: center;
  }
  .stat-num-row {
    justify-content: center;
  }

  /* Services */
  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .svc-num {
    font-size: clamp(16px, 4.5vw, 20px);
  }
  .svc-icon {
    display: none;
  }
  .svc-name {
    padding-right: 0;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-large {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
  .portfolio-overlay {
    opacity: 1;
  }
  .portfolio-info {
    transform: translateY(0);
  }

  /* About */
  .about-cols {
    grid-template-columns: 1fr;
  }
  .about-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* FAQ */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-links {
    order: 1;
  }
  .footer-time {
    order: 2;
    margin: 0;
    padding: 0;
    border: none;
  }
  .footer-copy {
    order: 3;
  }
}

@media (max-width: 400px) {
  .hero-headline {
    font-size: clamp(22px, 7.5vw, 28px);
  }
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS v2
═══════════════════════════════════════════════════════════ */
.tm-section {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tm-heading {
  margin-bottom: 52px;
}
.tm-heading .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}
.tm-heading .section-title {
  margin: 0;
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-dim);
  border-radius: 12px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.tm-card:hover {
  border-color: var(--border-hi);
  border-top-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.tm-icon {
  display: block;
  margin-bottom: 20px;
  opacity: 0.3;
  flex-shrink: 0;
  color: var(--accent);
}
.tm-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.75;
  color: var(--text);
  flex: 1;
  margin: 0 0 22px;
}
.tm-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tm-role {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 960px) {
  .tm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tm-grid .tm-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .tm-section {
    padding-block: 48px;
  }
  .tm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tm-grid .tm-card:nth-child(3) {
    grid-column: auto;
  }
}
