/* ==========================================================================
   Signal Vector — High-Fidelity Figma Site Theme
   Adapted from Redo Brand Guidelines (remix-star-expand.figma.site)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --orange: #0601FC;
  --deep-orange: #0400B8;
  --navy: #F5F5F7;
  --caption: #444;
  --sky-blue: #DEEEFE;
  --baby-blue: #C6EBF7;
  --blue-tint: #B6C9CF;
  --off-blue: #E8EBEF;
  --black: #000;
  --dark-grey: #555;
  --grey: #000;
  --white: #FFF;

  /* Semantic Tokens */
  --text-primary: var(--black);
  --text-secondary: var(--caption);
  --text-muted: var(--dark-grey);
  --bg-primary: var(--white);
  --bg-secondary: var(--off-blue);
  --bg-accent: var(--sky-blue);
  --accent: var(--orange);
  --accent-hover: var(--deep-orange);
  --border: var(--black);

  /* Fonts */
  --font-sans: 'Rethink Sans', -apple-system, blinkmacsystemfont, sans-serif;
  --font-serif: 'Hedvig Letters Serif', georgia, serif;

  /* Typography Scale — 5 sizes */
  --fs-display: clamp(2.5rem, 6vw, 4.5rem);
  --fs-heading: clamp(1.5rem, 3vw, 2rem);
  --fs-subheading: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Legacy aliases (mapped to new scale) */
  --fs-xs: var(--fs-small);
  --fs-sm: var(--fs-small);
  --fs-base: var(--fs-body);
  --fs-lg: var(--fs-subheading);
  --fs-xl: var(--fs-subheading);
  --fs-2xl: var(--fs-heading);
  --fs-3xl: var(--fs-heading);
  --fs-4xl: var(--fs-display);
  --fs-5xl: var(--fs-display);
  --fs-6xl: var(--fs-display);
  --fs-7xl: var(--fs-display);
  --fs-8xl: var(--fs-display);

  /* Spacing (4-px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --sp-40: 10rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  /* Radii — Cleaner, more minimal rounding */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 3%);
  --shadow-md: 0 2px 8px rgb(0 0 0 / 5%);
  --shadow-lg: 0 8px 24px rgb(0 0 0 / 6%);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 220ms;
  --duration-slow: 400ms;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Typography — 5-tier scale
   -------------------------------------------------------------------------- */

.heading-display,
.heading-xl {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heading-lg,
.heading-md {
  font-family: var(--font-sans);
  font-size: var(--fs-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: var(--fs-subheading);
  font-weight: 500;
  line-height: 1.3;
}

/* Body variants */
.body-lg {
  font-size: var(--fs-subheading);
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-md {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Figma adjustLetterSpacing class helper */
.adjust-tracking {
  letter-spacing: -0.01em;
}

/* Label / overline */
.label-text {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--sp-20) 0;
  position: relative;
}

.section--lg {
  padding: var(--sp-32) 0;
}

.section--sm {
  padding: var(--sp-12) 0;
}

/* Figma horizontal divider — thin line between sections */
.divider {
  height: 1px;
  background: var(--grey);
  border: none;
  margin: 0;
}

.divider--light {
  background: rgb(255 255 255 / 12%);
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid-2 {
  display: grid;
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  gap: var(--sp-8);
}

.grid-4 {
  display: grid;
  gap: var(--sp-8);
}

@media (width >= 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (width >= 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column split */
.split {
  display: grid;
  gap: var(--sp-12);
  align-items: start;
}

@media (width >= 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }

  .split--reverse > *:first-child {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   Sidebar Navigation — Figma left-rail pattern
   -------------------------------------------------------------------------- */
:root {
  --sidebar-width: 220px;
  --mobile-header-h: 60px;
}

/* ---- Mobile top bar (visible < 1024 px) ---- */
.mobile-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 110;
  height: var(--mobile-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #000;
}

@media (width >= 1024px) {
  .mobile-header { display: none; }
}

.mobile-header .logo-img {
  height: 28px;
  width: auto;
}

/* ---- Logo (shared) ---- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--deep-orange) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  white-space: nowrap;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Mobile toggle ---- */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease);
  z-index: 120;
}

.nav-toggle:hover {
  background: var(--bg-secondary);
}

@media (width >= 1024px) {
  .nav-toggle { display: none; }
}

.hamburger {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 105;
  background: var(--white);
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;

  /* Hidden off-screen on mobile */
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease);
}

@media (width >= 1024px) {
  .sidebar {
    transform: translateX(0);
  }
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-6) var(--sp-5);
  overflow-y: auto;
}

/* Sidebar logo */
.sidebar-logo {
  flex-shrink: 0;
  padding-bottom: var(--sp-4);
}

.sidebar-logo .logo {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.sidebar-logo .logo-img {
  width: 100%;
  height: auto;
}

.sidebar-logo .logo-icon svg {
  width: 14px;
  height: 14px;
}

/* Sidebar divider */
.sidebar-divider {
  height: 1px;
  background: var(--grey);
  border: none;
  margin: 0 0 var(--sp-4);
  flex-shrink: 0;
}

/* ---- Sidebar nav list ---- */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  counter-reset: none;
}

.sidebar-nav li {
  list-style: none;
}

.sidebar-nav a {
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-1) 0;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  letter-spacing: 0;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
}

.sidebar-nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-nav-label {
  letter-spacing: 0;
}

.sidebar-nav-num {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.sidebar-nav a:hover .sidebar-nav-num,
.sidebar-nav a.active .sidebar-nav-num {
  opacity: 0.5;
}

/* ---- Sidebar bottom actions ---- */
.sidebar-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-6);
  margin-top: auto;
  border-top: 1px solid var(--grey);
}

.sidebar-action-link {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.sidebar-action-link:hover {
  color: var(--accent);
}

/* ---- Overlay (mobile) ---- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 104;
  background: rgb(0 0 0 / 35%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (width >= 1024px) {
  .sidebar-overlay { display: none; }
}

/* ---- Main content offset ---- */
.main-content {
  padding-top: var(--mobile-header-h);
  min-height: 100vh;
}

@media (width >= 1024px) {
  .main-content {
    margin-left: var(--sidebar-width);
    padding-top: 0;
  }
}

/* Footer also offset on desktop */
.site-footer {
  background: var(--navy);
  color: var(--text-primary);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--black);
}

@media (width >= 1024px) {
  .site-footer {
    margin-left: var(--sidebar-width);
  }
}

/* --------------------------------------------------------------------------
   Hero — Clean editorial hero, left-aligned (Figma brand guide style)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  background: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  padding: var(--sp-20) var(--gutter) var(--sp-16);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--caption);
  margin-bottom: var(--sp-10);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* --------------------------------------------------------------------------
   Buttons — Pill-shaped (Figma pattern)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-secondary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.45rem 1.15rem;
  font-size: var(--fs-xs);
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}

.link-arrow:hover {
  gap: var(--sp-3);
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Section Header — Figma "01  Brand Strategy" pattern
   Large number + title displayed side by side, editorial style
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--sp-16);
  text-align: left;
}

.section-header--center {
  text-align: center;
}

/* Big number + title row */
.section-header-title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.section-number {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* When section-number is standalone (old pattern), make it small */
.section-number--sm {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Figma-style inline section head: "01  Title" */
.section-heading {
  font-size: var(--fs-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.section-heading .num {
  color: var(--accent);
  font-weight: 500;
  margin-right: 0.4em;
}

.section-title {
  font-size: var(--fs-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: var(--sp-4);
}

.section-cta {
  text-align: center;
  margin-top: var(--sp-12);
}

/* Two-column section intro: number+title on left, description on right */
.section-intro {
  display: grid;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  align-items: start;
}

@media (width >= 768px) {
  .section-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.section-intro .section-subtitle {
  margin-bottom: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   Cards — Clean, minimal, generous whitespace
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 1px solid var(--grey);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-6);
}

.card h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   Page Header — Large editorial title, left-aligned (Figma brand guide style)
   -------------------------------------------------------------------------- */
.page-header {
  padding: var(--sp-24) 0 var(--sp-16);
  background: var(--white);
  text-align: left;
}

.page-header .container {
  max-width: var(--container-max);
}

.page-header h1 {
  font-size: var(--fs-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  line-height: 1;
}

.page-subtitle {
  font-size: var(--fs-body);
  color: var(--caption);
  max-width: 560px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Stats Row
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-12) 0;
}

@media (width >= 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Case Previews
   -------------------------------------------------------------------------- */
.case-preview {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.case-preview:hover {
  box-shadow: var(--shadow-md);
}

.case-preview h3 {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.case-meta {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.case-preview p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.65;
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   Quote Block — Figma gradient card
   -------------------------------------------------------------------------- */
.quote-block {
  background: var(--sky-blue);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: left;
}

@media (width >= 768px) {
  .quote-block {
    padding: var(--sp-16);
    text-align: left;
  }
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-subheading);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 var(--sp-6);
  max-width: 640px;
}

.quote-block cite {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--caption);
  font-style: normal;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   CTA Section — Gradient box
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--white);
  padding-bottom: var(--sp-16);
}

.cta-box {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: left;
  position: relative;
  overflow: hidden;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (width >= 768px) {
  .cta-box { padding: var(--sp-16) var(--sp-12); }
}

.cta-box h2 {
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: var(--fs-lg);
  color: var(--blue-tint);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  position: relative;
  line-height: 1.7;
}

.cta-box .btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.cta-box .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Services Page
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (width >= 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-8) var(--sp-10);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-number {
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.service-card h2 {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.service-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  line-height: 1.65;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.service-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-details li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 500;
}

/* Approach */
.approach-section {
  background: var(--bg-secondary);
}

.approach-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (width >= 768px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (width >= 1024px) {
  .approach-grid { grid-template-columns: repeat(4, 1fr); }
}

.approach-item {
  text-align: left;
  padding: var(--sp-8);
  background: var(--white);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.approach-item:hover {
  box-shadow: var(--shadow-md);
}

.approach-item h3 {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--fs-sm);
}

.approach-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Portfolio Page
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  gap: var(--sp-8);
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-8) var(--sp-10);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
}

.portfolio-meta {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.portfolio-category {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
}

.portfolio-duration {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.portfolio-card h2 {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.portfolio-industry {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.portfolio-content h3 {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-primary);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.portfolio-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.results-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.results-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-intro {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.about-story h2 {
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}

.about-story p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}

/* Values */
.values-section {
  background: var(--bg-secondary);
}

.values-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (width >= 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--fs-sm);
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

/* Team */
.team-section {
  background: var(--white);
}

.team-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (width >= 768px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-member {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.team-member:hover {
  box-shadow: var(--shadow-md);
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--sp-6);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--baby-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo.placeholder {
  font-size: var(--fs-3xl);
  color: var(--caption);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.member-title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.member-bio {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-12);
}

@media (width >= 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.01em;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contact-method h3 {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.contact-method p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.contact-method a {
  color: var(--accent);
  transition: color var(--duration) var(--ease);
}

.contact-method a:hover {
  color: var(--accent-hover);
}

/* Expectations */
.contact-expectations {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.contact-expectations h2 {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

.expectation-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.expectation {
  display: flex;
  gap: var(--sp-4);
}

.expectation-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--deep-orange) 100%);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 50%;
}

.expectation h3 {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.expectation p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ */
.faq-section {
  background: var(--bg-secondary);
}

.faq-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (width >= 768px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.faq-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--gutter);
  background: linear-gradient(180deg, var(--sky-blue) 0%, var(--white) 100%);
}

.error-code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 500;
  background: linear-gradient(135deg, var(--orange) 0%, var(--deep-orange) 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.error-content h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.error-content p {
  color: var(--caption);
  margin-bottom: var(--sp-8);
}

.error-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer — Figma site pattern
   -------------------------------------------------------------------------- */
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Top section: brand + links + back-to-top */
.footer-main {
  display: grid;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

@media (width >= 768px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo-text {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-cta .btn-outline {
  border-color: var(--border);
  color: var(--text-primary);
}

.footer-cta .btn-outline:hover {
  background: var(--text-primary);
  color: var(--white);
}

/* Footer columns */
.footer-links h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Back-to-top */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-top: var(--sp-8);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.back-to-top:hover {
  color: var(--text-primary);
}

/* Divider + bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--border);
}

@media (width >= 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: 0;
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
}

.footer-legal a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Background Variants
   -------------------------------------------------------------------------- */
.bg-white     { background: var(--white); }
.bg-secondary { background: var(--bg-secondary); }
.bg-sky       { background: var(--sky-blue); }
.bg-gradient  { background: linear-gradient(180deg, var(--sky-blue) 0%, var(--baby-blue) 100%); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent);
  color: var(--white);
  z-index: 1000;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-4  { margin-top: var(--sp-4); }
.mb-4  { margin-bottom: var(--sp-4); }
.mt-8  { margin-top: var(--sp-8); }
.mb-8  { margin-bottom: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-12 { margin-bottom: var(--sp-12); }

/* Flex utilities */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* Selection */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  content-visibility: auto;
}

/* Print styles */
@media print {
  .sidebar,
  .mobile-header,
  .sidebar-overlay,
  .site-footer,
  .cta-section,
  .back-to-top,
  .skip-link { display: none; }

  .main-content {
    padding-top: 0;
    margin-left: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* Services list */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.service-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
}

.services-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-list li strong {
  font-size: 1.125rem;
  font-weight: 600;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}
