/* ==========================================================================
   Agentika - Editorial Brutalist Design System
   A distinctive, magazine-inspired aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts loaded via HTML <link> tags for reliability
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   CSS Variables - Sage & Stone Palette
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors - Kept as requested */
  --sage: #6B8F71;
  --sage-dark: #4A6B4F;
  --sage-light: #8AAF8F;
  --mint: #A8C5AA;
  
  /* Backgrounds */
  --cream: #FAF8F5;
  --stone: #F0EDE8;
  --warm-white: #FFFEFA;
  --ink: #1a1a18;
  
  /* Text */
  --text: #1a1a18;
  --text-secondary: #4a4a48;
  --text-tertiary: #7a7a78;
  
  /* Fonts - Cabin for main text, Lora for serif emphasis */
  --font-display: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing - Tighter */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection {
  background: var(--sage);
  color: var(--cream);
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display-huge {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.display-large {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.display-medium {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.subheading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.body-large {
  font-size: 1.375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Serif emphasis - for highlighting key words */
.em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-dark);
}

/* Light variant for dark backgrounds */
.manifesto .em {
  color: var(--mint);
}

/* --------------------------------------------------------------------------
   Navigation - Minimal & Floating
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  padding: var(--space-sm) var(--space-md);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(20px);
}

.nav__inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__cta {
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.875rem;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.nav__cta:hover {
  background: var(--sage-dark);
  transform: scale(1.02);
}

/* Mobile Nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  padding: 0;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
}

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }

.nav__toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero - Asymmetric Editorial Layout
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero__content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(to right, rgba(107, 143, 113, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 143, 113, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero__content {
  padding: var(--space-lg) var(--space-lg);
  padding-top: 100px;
  max-width: 650px;
  position: relative;
}

.hero__eyebrow {
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--sage);
}

.hero__title--compact {
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  max-width: 500px;
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.hero__visual {
  position: relative;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gradient mesh background */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, var(--sage) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, var(--mint) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, var(--sage-light) 0%, transparent 30%);
  opacity: 0.25;
}

/* Organic blob shape */
.hero__blob {
  position: absolute;
  width: 70%;
  height: 70%;
  background: var(--sage);
  opacity: 0.08;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 20s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(180deg) scale(1.1);
  }
}

/* --------------------------------------------------------------------------
   Abstract Code Shapes - Decorative Background Elements
   -------------------------------------------------------------------------- */
.hero__shape {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--sage);
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--1 {
  font-size: 12rem;
  top: 8%;
  left: 5%;
  animation-delay: 0s;
}

.hero__shape--2 {
  font-size: 12rem;
  bottom: 12%;
  right: 8%;
  animation-delay: -2s;
}

.hero__shape--3 {
  font-size: 4rem;
  top: 20%;
  right: 15%;
  opacity: 0.18;
  animation-delay: -4s;
}

.hero__shape--4 {
  font-size: 3rem;
  bottom: 25%;
  left: 12%;
  opacity: 0.15;
  animation-delay: -1s;
}

.hero__shape--5 {
  font-size: 8rem;
  top: 55%;
  right: 5%;
  opacity: 0.08;
  animation-delay: -3s;
}

.hero__shape--6 {
  font-size: 3.5rem;
  top: 75%;
  left: 25%;
  opacity: 0.14;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --------------------------------------------------------------------------
   Terminal Chat - Simulated AI Conversation
   -------------------------------------------------------------------------- */
.hero__terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 500px;
  height: 430px;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27ca40; }

.terminal__mode {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.terminal__branch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
  margin-left: 8px;
}

.terminal__branch svg {
  opacity: 0.7;
}

.terminal__mcp {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  margin-left: 8px;
}

.terminal__mcp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ca40;
  box-shadow: 0 0 6px rgba(39, 202, 64, 0.6);
}

.terminal__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   Split Terminals
   -------------------------------------------------------------------------- */
.hero__terminals-split {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
}

.hero__terminals-split.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-split {
  width: 350px;
  height: 430px;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.terminal-split--left {
  transform: translateX(179px);
}

.terminal-split--right {
  transform: translateX(-179px);
}

.hero__terminals-split.active .terminal-split--left {
  transform: translateX(0);
}

.hero__terminals-split.active .terminal-split--right {
  transform: translateX(0);
}

.terminal-split .terminal__header {
  padding: 10px 12px;
}

.terminal-split .terminal__dot {
  width: 10px;
  height: 10px;
}

.terminal-split .terminal__branch {
  margin-left: auto;
  font-size: 0.625rem;
}

.terminal-split__output {
  flex: 1;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
}

.terminal-split__input {
  padding: 10px 12px;
  font-size: 0.75rem;
  min-height: 38px;
}

.terminal-split__text {
  color: var(--cream);
  white-space: nowrap;
}

.terminal-split__output .output-line {
  opacity: 0;
  animation: lineIn 0.2s ease-out forwards;
}

.terminal-split__output .output-line--user {
  color: var(--cream);
}

.terminal-split__output .output-line--user::before {
  content: '';
}

.terminal-split__output .output-line--ai {
  color: rgba(255,255,255,0.7);
  padding-left: 0.75rem;
  border-left: 2px solid var(--sage);
  margin: 0.25rem 0;
}

.terminal-split__output .output-line--success {
  color: #27ca40;
}

.terminal-split__output .output-line--dimmed {
  color: rgba(255,255,255,0.4);
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Keyboard Shortcut Indicator
   -------------------------------------------------------------------------- */
.hero__shortcut {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero__shortcut.visible {
  opacity: 1;
}

.shortcut__key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 
    0 2px 0 rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15);
}

.terminal__chat {
  flex: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat message styles */
.chat-message {
  opacity: 0;
  transform: translateY(8px);
  animation: messageIn 0.3s ease-out forwards;
}

.chat-message--user {
  color: var(--cream);
}

.chat-message--user::before {
  content: '> ';
  color: var(--sage-light);
}

.chat-message--ai {
  color: rgba(255,255,255,0.7);
  padding-left: 1rem;
  border-left: 2px solid var(--sage);
}

/* Notion link styling */
.chat-link {
  color: var(--sage-light);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

/* Markdown summary styling */
.chat-message--summary {
  color: rgba(255,255,255,0.85);
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  border-left: 3px solid var(--sage);
  margin-top: 4px;
}

.chat-message--summary .summary-title {
  font-weight: 600;
  color: var(--sage-light);
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.chat-message--summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-message--summary li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.chat-message--summary li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage-light);
}

@keyframes messageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input area at bottom */
.terminal__input {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: rgba(0,0,0,0.2);
}

.terminal__prompt {
  color: var(--sage-light);
  user-select: none;
}

.terminal__text {
  color: var(--cream);
  white-space: nowrap;
}

.terminal__cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--sage-light);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Large decorative letter */
.hero__number {
  font-family: var(--font-display);
  font-size: clamp(18rem, 45vw, 35rem);
  font-weight: 600;
  color: var(--sage);
  opacity: 0.06;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 107, 79, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--sage-dark);
  padding: 0.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.btn--ghost:hover {
  border-bottom-color: var(--sage);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section: Manifesto / Philosophy
   -------------------------------------------------------------------------- */
.manifesto {
  padding: 9.6rem var(--space-lg);
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.manifesto__grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.manifesto__label {
  position: sticky;
  top: var(--space-xl);
}

.manifesto__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}

.manifesto__text span {
  color: var(--mint);
}

/* Decorative corner element */
.manifesto__corner {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--sage);
  opacity: 0.1;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Section: Services - Clean List Layout
   -------------------------------------------------------------------------- */
.services {
  padding: var(--space-xl) 0;
  background: var(--cream);
}

.services__header {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
}

.services__intro {
  max-width: 420px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.services__list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.service {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s var(--ease-out);
}

.service:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.service:hover {
  background: var(--stone);
  margin: 0 calc(var(--space-md) * -1);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-radius: 8px;
}

.service:hover .service__number {
  color: var(--sage-dark);
}

.service__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding-top: 0.35rem;
  transition: color 0.3s;
}

.service__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
}

.service__desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 520px;
}

.service__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease-out);
  white-space: nowrap;
  padding-top: 0.35rem;
}

.service__link:hover {
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Section: Team - Horizontal Scroll
   -------------------------------------------------------------------------- */
.team {
  padding: var(--space-2xl) 0;
  background: linear-gradient(to bottom, var(--stone) 0%, var(--cream) 100%);
  position: relative;
}

.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(107, 143, 113, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 143, 113, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.team::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 90% 10%, rgba(168, 197, 170, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.team__header {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.team__scroll {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-lg);
  margin: calc(var(--space-lg) * -1) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.team__scroll::-webkit-scrollbar {
  display: none;
}

.team-card {
  flex: 0 0 420px;
  background: var(--cream);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.4s var(--ease-out);
}

.team-card:hover {
  box-shadow: 0 12px 32px rgba(107, 143, 113, 0.2);
}

.team-card__content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 220px;
}

.team-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(to right, var(--cream) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.team-card__initial {
  font-family: var(--font-display);
  font-size: 10rem;
  color: var(--sage);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  right: -10px;
  line-height: 1;
}

.team-card__photo {
  position: absolute;
  right: -30%;
  top: 50%;
  transform: translateY(-50%);
  width: 85%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

.team-card:hover .team-card__photo {
  filter: grayscale(0%) contrast(1);
  transform: translateY(-50%) scale(1.03);
}

.team-card__photo--omer {
  transform: translateY(calc(-50% + 38px)) scale(0.95);
}

.team-card:hover .team-card__photo--omer {
  transform: translateY(calc(-50% + 38px)) scale(0.98);
}

.team-card__content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  transition: transform 0.4s var(--ease-out);
  transform-style: preserve-3d;
}

.team-card:hover .team-card__content {
  transform: perspective(500px) rotateY(5deg);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.team-card__role {
  color: var(--sage-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.team-card__bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 0.3rem 0.6rem;
  background: rgba(107, 143, 113, 0.12);
  color: var(--sage-dark);
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  background: var(--stone);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Section: Credentials Bar
   -------------------------------------------------------------------------- */
.credentials {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

.credentials__track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.credentials__item {
  flex-shrink: 0;
  padding: 0 var(--space-xl);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.credentials__item span {
  color: var(--sage);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Section: Social Proof - Logo Display
   -------------------------------------------------------------------------- */
.social-proof {
  padding: var(--space-xl) var(--space-lg);
  background: var(--cream);
}

.social-proof__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.social-proof__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.social-proof__group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-proof__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sage-dark);
  letter-spacing: 0.01em;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.social-proof__logo {
  height: 22px;
  width: auto;
  color: var(--text);
}

.social-proof__logo--deliveroo {
  height: 28px;
}

.social-proof__logo--asos {
  height: 16px;
}

.social-proof__logo--large {
  height: 32px;
}

.social-proof__logo-with-text {
  display: flex;
  align-items: center;
  user-select: none;
  gap: 0;
}

.social-proof__logo-text {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.social-proof__separator {
  width: 1px;
  background: rgba(0,0,0,0.08);
  align-self: stretch;
  margin: calc(var(--space-lg) * -0.25) 0;
}

/* Responsive - stack on smaller screens */
@media (max-width: 900px) {
  .social-proof__row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  
  .social-proof__group {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .social-proof__group:last-child {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: auto auto;
    gap: var(--space-sm) var(--space-md);
    justify-items: center;
    align-items: center;
  }
  
  .social-proof__group:last-child .social-proof__label {
    grid-column: 1 / -1;
    margin-bottom: var(--space-xs);
  }
  
  .social-proof__separator {
    width: 60px;
    height: 1px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .social-proof {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .social-proof__row {
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }
  
  .social-proof__group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .social-proof__group:first-child .social-proof__label {
    width: 100%;
    margin-bottom: var(--space-xs);
  }
  
  .social-proof__label {
    font-size: 0.85rem;
  }
  
  .social-proof__logo {
    height: 18px;
  }
  
  .social-proof__logo--large {
    height: 24px;
  }
  
  .social-proof__logo--deliveroo {
    height: 22px;
  }
  
  .social-proof__logo--asos {
    height: 14px;
  }
  
  .social-proof__logo-with-text {
    gap: 0;
  }
  
  .social-proof__logo-text {
    font-size: 0.95rem;
  }
  
  .social-proof__separator {
    width: 40px;
  }
}

/* --------------------------------------------------------------------------
   Section: Stats - Bold Numbers
   -------------------------------------------------------------------------- */
.stats {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--sage);
  color: var(--cream);
}

.stats__grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Section: CTA - Full Bleed
   -------------------------------------------------------------------------- */
.cta {
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, var(--mint) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--sage-light) 0%, transparent 50%);
  opacity: 0.15;
}

.cta__content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  margin-bottom: var(--space-sm);
}

.cta__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Footer - Editorial
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-xl) var(--space-lg);
}

.footer__main {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.footer__tagline {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--mint);
}

.footer__bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   Blog Page Styles
   -------------------------------------------------------------------------- */
.blog-hero {
  padding: calc(var(--space-xl) + 80px) var(--space-lg) var(--space-xl);
  max-width: 1600px;
  margin: 0 auto;
}

.blog-hero__title {
  margin-bottom: var(--space-sm);
}

.blog-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-lg);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-filter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.blog-filter:hover,
.blog-filter--active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.1);
  max-width: 1600px;
  margin: 0 auto var(--space-2xl);
}

.blog-card {
  background: var(--cream);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease-out);
}

.blog-card:hover {
  background: var(--stone);
}

.blog-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: var(--space-xl);
}

.blog-card--featured .blog-card__content {
  margin-top: auto;
}

.blog-card__category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--sage-dark);
  margin-bottom: var(--space-md);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.blog-card__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  display: flex;
  gap: var(--space-sm);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border-radius: 4px;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card--featured .blog-card__image {
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-lg);
  flex: 1;
  min-height: 0;
}

.blog-card--featured .blog-card__image img {
  object-fit: contain;
  object-position: center top;
  transform: scale(1.2);
}

.blog-card--featured:hover .blog-card__image img {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   About Page Styles
   -------------------------------------------------------------------------- */
.about-hero {
  padding: calc(var(--space-xl) + 80px) var(--space-lg) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero__title {
  margin-bottom: var(--space-md);
}

.about-hero__text {
  max-width: 700px;
}

.story {
  padding: var(--space-xl) var(--space-lg);
  background: var(--stone);
}

.story__content {
  max-width: 800px;
  margin: 0 auto;
  columns: 2;
  column-gap: var(--space-lg);
}

.story__content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.story__content p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: var(--space-sm);
  margin-top: 0.1em;
  color: var(--sage);
}

.values {
  padding: var(--space-2xl) var(--space-lg);
}

.values__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.value-card {
  padding: var(--space-md);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  background: var(--cream);
}

.value-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(107, 143, 113, 0.1);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card__text {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Services Page Styles
   -------------------------------------------------------------------------- */
.services-hero {
  padding: calc(var(--space-xl) + 80px) var(--space-lg) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-hero__text {
  max-width: 600px;
  margin: 0 auto;
}

.service-detail {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.service-detail:nth-child(even) {
  background: var(--stone);
}

.service-detail__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: var(--space-xl);
}

.service-detail__number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sage);
  opacity: 0.3;
  line-height: 1;
}

.service-detail__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-detail__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.service-detail__feature::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.process {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--ink);
  color: var(--cream);
}

.process__header {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.process__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s;
}

.process-step:hover {
  border-color: var(--sage);
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

.process-step__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.process-step__text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: var(--space-lg);
  }
  
  .hero__content {
    padding-top: 100px;
  }
  
  .hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.4;
  }
  
  .hero__terminal {
    width: 90%;
    max-width: 500px;
    height: 380px;
  }
  
  .manifesto__grid {
    grid-template-columns: 1fr;
  }
  
  .manifesto__label {
    position: static;
  }
  
  .services__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service {
    grid-template-columns: 40px 1fr;
    gap: var(--space-sm);
  }
  
  .service__link {
    grid-column: 2;
    margin-top: var(--space-xs);
  }
  
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .story__content {
    columns: 1;
  }
  
  .service-detail__inner {
    grid-template-columns: 1fr;
  }
  
  .service-detail__number {
    font-size: 3rem;
  }
  
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }
  
  .nav {
    background: rgba(250, 248, 245, 0.95);
  }
  
  .nav__inner {
    position: relative;
  }
  
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    z-index: 9998;
    overflow-y: auto;
  }
  
  .nav__links.active {
    display: flex;
  }
  
  .nav__link {
    font-size: 1.5rem;
  }
  
  .nav__link::after {
    display: none;
  }
  
  .nav__toggle {
    display: block;
    z-index: 9999;
    position: relative;
  }
  
  .nav__toggle span {
    background: var(--ink);
  }
  
  .nav__cta {
    margin-top: var(--space-md);
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  .hero__content {
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + 100px);
  }
  
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .stat__number {
    font-size: 3rem;
  }
  
  .footer__main {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .team-card {
    flex: 0 0 300px;
  }
  
  .process__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   FAQ Accordion Animation
   -------------------------------------------------------------------------- */
details {
  overflow: hidden;
  transition: background-color 0.3s ease;
}

details[open] {
  background-color: var(--warm-white);
}

details summary {
  list-style: none;
  position: relative;
  padding-right: 2rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sage);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details[open] summary {
  color: var(--sage-dark);
}

/* Content wrapper for animation */
details .faq-content {
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

details .faq-content p {
  padding-top: var(--space-sm);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Article Page Styles
   -------------------------------------------------------------------------- */
.article-header {
  padding: calc(var(--space-xl) + 80px) var(--space-lg) var(--space-xl);
  background: var(--stone);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.article-header__inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  transition: color 0.3s, gap 0.3s var(--ease-out);
}

.article-header__back:hover {
  color: var(--sage-dark);
  gap: 0.75rem;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.article-header__category {
  color: var(--sage-dark);
  font-weight: 500;
}

.article-header__meta span:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-sm);
  color: var(--text-tertiary);
  opacity: 0.5;
}

.article-header__title {
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.article-header__excerpt {
  max-width: 700px;
}

/* Article Byline - Written/Reviewed By */
.article-header__byline {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.article-header__byline-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.article-header__byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-header__byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-header__byline-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.article-header__byline-name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
}

.article-header__byline-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
}

.article-header__byline-divider {
  width: 1px;
  height: 32px;
  background: rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .article-header__byline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .article-header__byline-divider {
    display: none;
  }
}

/* Article Body */
.article {
  padding: var(--space-xl) var(--space-lg);
}

.article__content {
  max-width: 700px;
  margin: 0 auto;
}

.article__lede {
  font-size: 1.375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.article__content p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.article__content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
}

.article__content ul {
  list-style: none;
}

.article__content ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
}

.article__content ol {
  list-style: decimal;
}

.article__content ol li {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article__content a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.article__content a:hover {
  color: var(--sage);
}

.article__content strong {
  color: var(--text);
  font-weight: 600;
}

.article__content em {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Blockquote */
.article__quote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--sage);
  background: var(--stone);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

/* Code blocks */
.article__code {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--ink);
  border-radius: 8px;
  overflow-x: auto;
}

.article__code code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  white-space: pre;
}

/* Syntax highlighting - Sage & Stone theme */
.code-keyword {
  color: var(--mint);
}

.code-string {
  color: #E9B872;
}

.code-number {
  color: #E9B872;
}

.code-comment {
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

.code-function {
  color: var(--sage-light);
}

.code-class {
  color: #B8D4E3;
}

.code-property {
  color: rgba(255,255,255,0.7);
}

.code-punctuation {
  color: rgba(255,255,255,0.5);
}

/* Inline code */
.article__content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--stone);
  border-radius: 3px;
  color: var(--sage-dark);
}

.article__code code {
  padding: 0;
  background: none;
  border-radius: 0;
  color: rgba(255,255,255,0.85);
}

/* Divider */
.article__divider {
  width: 60px;
  height: 3px;
  background: var(--sage);
  margin: var(--space-xl) 0;
}

/* Author Box */
.article-author {
  padding: var(--space-lg) var(--space-lg);
  background: var(--stone);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.article-author__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.article-author__avatar {
  width: 64px;
  height: 64px;
  background: var(--sage);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.article-author__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.article-author__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Related Articles */
.related {
  padding: var(--space-xl) var(--space-lg);
}

.related__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.related-card {
  padding: var(--space-md);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.related-card:hover {
  border-color: var(--sage);
  background: var(--stone);
}

.related-card__category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--sage-dark);
  margin-bottom: var(--space-sm);
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.related-card__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Article Page Responsive */
@media (max-width: 768px) {
  .article-header__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
  
  .article__content h2 {
    font-size: 1.5rem;
  }
  
  .article__quote {
    padding: var(--space-sm) var(--space-md);
    font-size: 1.125rem;
  }
  
  .article-author__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .related__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Homepage Services Grid (2x2)
   -------------------------------------------------------------------------- */
.services__grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.service-card:hover {
  border-color: var(--sage);
  background: var(--stone);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(107, 143, 113, 0.12);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: var(--space-md);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-dark);
  transition: gap 0.3s var(--ease-out);
}

.service-card:hover .service-card__link {
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Icon & Image Placeholders
   -------------------------------------------------------------------------- */
.service-icon {
  width: 55px;
  height: 55px;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.service-detail__inner .service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}

.icon-placeholder {
  width: 56px;
  height: 56px;
  background: rgba(107, 143, 113, 0.15);
  border-radius: 12px;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.image-placeholder {
  width: 100%;
  height: 140px;
  background: rgba(107, 143, 113, 0.12);
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.blog-card--featured .image-placeholder {
  height: 240px;
}

/* Article page hero image */
.article-header__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: var(--space-lg);
  border-radius: 8px;
  overflow: hidden;
}

.article-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services page icon placeholder sizing */
.service-detail__inner .icon-placeholder {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Stats with Dividers
   -------------------------------------------------------------------------- */
.stats__grid--dividers {
  position: relative;
}

.stats__grid--dividers .stat {
  position: relative;
}

.stats__grid--dividers .stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.2);
}

@media (max-width: 1024px) {
  .stats__grid--dividers .stat:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats__grid--dividers .stat::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Outcomes Section (What You Get)
   -------------------------------------------------------------------------- */
.outcomes {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--stone);
  position: relative;
  overflow: hidden;
}

.outcomes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(107, 143, 113, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 143, 113, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.outcomes::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.outcomes__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.outcomes__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.outcomes__header .subheading {
  margin-bottom: var(--space-sm);
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.outcome-card {
  padding: var(--space-lg);
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.outcome-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(107, 143, 113, 0.1);
}

.outcome-card__icon {
  height: 2.5rem;
  width: auto;
  margin-bottom: var(--space-sm);
}

.outcome-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.outcome-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .outcomes__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Different Section (About Page - What Makes Us Different)
   -------------------------------------------------------------------------- */
.different-section {
  padding: var(--space-xl) var(--space-lg);
}

.different-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.different-section__header {
  margin-bottom: var(--space-lg);
}

.different-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .different-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .different-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .different-grid .value-card {
    padding: var(--space-md);
  }
  
  .different-grid .value-card__title {
    font-size: 1rem;
  }
  
  .different-grid .value-card__text {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Mobile Responsive Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hero - Hide terminal animation on mobile */
  .hero__visual {
    display: none;
  }
  
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero__content {
    background: none;
    max-width: 100%;
  }
  
  .hero__line {
    white-space: normal;
  }
  
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Credentials marquee */
  .credentials__item {
    font-size: 0.75rem;
    padding: 0 var(--space-md);
  }
  
  /* Manifesto */
  .manifesto__text {
    font-size: 1.5rem;
  }
  
  .manifesto__corner {
    font-size: 15rem;
    right: -20px;
  }
  
  /* Services cards */
  .service-card {
    padding: var(--space-md);
  }
  
  .service-card__title {
    font-size: 1.125rem;
  }
  
  /* Team cards - full width on mobile */
  .team__scroll {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md);
    overflow-x: visible;
  }
  
  .team-card {
    flex: none;
    width: 100%;
  }
  
  .team-card__photo {
    transform: translateY(-50%) scale(0.8);
  }
  
  .team-card__photo.team-card__photo--omer {
    transform: translateY(calc(-50% + 38px)) scale(0.76);
  }
  
  .team-card:hover .team-card__photo {
    transform: translateY(-50%) scale(0.82);
  }
  
  .team-card:hover .team-card__photo.team-card__photo--omer {
    transform: translateY(calc(-50% + 38px)) scale(0.78);
  }
  
  .team-card:last-child {
    margin-bottom: 0;
  }

  /* Outcome cards */
  .outcome-card {
    padding: var(--space-md);
  }
  
  .outcome-card__title {
    font-size: 1.125rem;
  }
  
  /* CTA section */
  .cta__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
  
  /* About hero */
  .about-hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .about-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  /* Story section */
  .story__content {
    padding: var(--space-md);
  }
  
  .story__content p {
    font-size: 1.125rem;
  }
  
  /* Blog grid */
  .blog-hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .blog-card {
    padding: var(--space-md);
  }
  
  /* Services page */
  .services-hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .service-detail {
    padding: var(--space-lg) var(--space-md);
  }
  
  .service-detail__title {
    font-size: 1.75rem;
  }
  
  /* Article page */
  .article-header {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .article-header__image {
    height: 200px;
  }
  
  .article__content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .related__grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .display-huge {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  
  .team__scroll {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .stats__grid {
    grid-template-columns: 1fr;
  }
  
  .stat {
    text-align: center;
    padding: var(--space-md) 0;
  }
  
  .stats__grid--dividers .stat::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .nav, .footer, .cta, .credentials { display: none; }
  body { background: white; }
}
