/* ============================
   BREE SHARP — DESIGN SYSTEM
   Multi-page portfolio
   ============================ */

/* --- FONTS --- */
/* --- VARIABLES --- */
:root {
  --bg-primary: #0C0F14;
  --bg-secondary: #141820;
  --bg-card: #1A1F2B;
  --bg-card-hover: #222838;
  --text-primary: #F0F0F0;
  --text-secondary: #9CA3B0;
  --text-muted: #6B7280;
  --accent: #2DD4BF;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --accent-glow: rgba(45, 212, 191, 0.07);
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(45, 212, 191, 0.25);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

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

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-cta:hover { opacity: 0.9 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================
   SHARED ELEMENTS
   ============================ */
.section {
  padding: 4.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(45, 212, 191, 0.25); opacity: 1; }

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

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text-primary); opacity: 1; }

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .section-label { margin-bottom: 1rem; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================
   IMAGE PLACEHOLDERS
   ============================ */
.img-placeholder {
  background: var(--bg-card);
  border: 1px dashed rgba(45, 212, 191, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,212,191,0.03) 0%, transparent 60%);
}

.img-placeholder svg {
  width: 32px; height: 32px;
  opacity: 0.3;
}

.img-placeholder span {
  position: relative;
  z-index: 1;
}

/* Actual images in placeholders */
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ============================
   HOMEPAGE HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Collage background */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.collage-item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0.45;
  transition: opacity 0.6s;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-1 {
  width: 480px;
  top: 8%;
  right: -2%;
  transform: rotate(2deg);
}

.collage-2 {
  width: 420px;
  top: 45%;
  right: -5%;
  transform: rotate(-3deg);
}

.collage-3 {
  width: 380px;
  bottom: 5%;
  right: 5%;
  transform: rotate(1.5deg);
}

.collage-4 {
  width: 500px;
  top: 20%;
  right: 35%;
  transform: rotate(-1deg);
  opacity: 0.3;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(to right, var(--bg-primary) 35%, rgba(12,15,20,0.6) 65%, rgba(12,15,20,0.3) 100%),
    radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero visual side */
.hero-visual {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.hero-photo-frame .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin-top: 3rem;
}

.hero-stat {
  background: var(--bg-secondary);
  padding: 1.5rem 1rem;
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================
   HOMEPAGE — FEATURED WORK STRIP
   ============================ */
.featured-strip {
  padding: 3rem 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-strip .section-label { margin-bottom: 2.5rem; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.featured-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.featured-card-img {
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-card-img img {
  transform: scale(1.05);
}

.featured-card-body {
  padding: 1.5rem;
}

.featured-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.featured-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.featured-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.featured-card-metric {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.featured-card-metric strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.featured-card-metric span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================
   HOMEPAGE — SERVICES OVERVIEW
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}

.service-card:hover { background: var(--bg-card-hover); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================
   CASE STUDIES PAGE — FULL LAYOUT
   ============================ */
.case-full {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-full + .case-full {
  padding-top: 0;
}

.case-hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.3s;
}

.case-hero-block:hover { border-color: var(--border-accent); }

.case-hero-block.reverse { direction: rtl; }
.case-hero-block.reverse > * { direction: ltr; }

.case-hero-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.case-hero-img .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 0;
}

.case-hero-content {
  padding: 3rem;
}

.case-hero-content .case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.case-hero-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.case-hero-content .case-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-metrics-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.case-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.case-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Case detail section below the hero block */
.case-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.case-narrative {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.case-narrative h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.case-narrative p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.case-narrative p:last-child { margin-bottom: 0; }

.case-deliverables {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.case-deliverables h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-deliverables ul {
  list-style: none;
}

.case-deliverables li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-deliverables li:last-child { border-bottom: none; }

.case-deliverables li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================
   SYSTEMS PAGE
   ============================ */
.systems-showcase {
  padding: 4rem 2rem 7rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.system-block {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.system-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.system-block:nth-child(even) {
  direction: rtl;
}

.system-block:nth-child(even) > * {
  direction: ltr;
}

.system-visual {
  position: sticky;
  top: 100px;
}

.system-visual .img-placeholder {
  aspect-ratio: 4/3;
  width: 100%;
}

.system-info {}

.system-info .case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.system-info h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.system-info .system-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.system-features {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.system-features h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.system-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.system-features li:last-child { border-bottom: none; }

.system-features li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.75rem;
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.system-tags span {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-hero-split {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10rem 2rem 5rem;
}

.about-photo-stack {
  position: relative;
}

.about-photo-main {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo-main .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.about-photo-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 45%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--bg-primary);
}

.about-photo-secondary .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.about-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.about-intro h1 em {
  font-style: italic;
  color: var(--accent);
}

.about-intro .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-intro .btn { margin-top: 0.5rem; }

/* About narrative sections */
.about-story {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

.story-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.story-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.story-sidebar {
  position: sticky;
  top: 100px;
}

.story-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.story-sidebar .story-period {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.story-sidebar .img-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 4/3;
  width: 100%;
}

.story-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.story-body p { margin-bottom: 1.25rem; }
.story-body strong { color: var(--text-primary); font-weight: 600; }

.story-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* About — timeline */
.about-timeline-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
}

.about-timeline-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.timeline-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.timeline-card:hover { border-color: var(--border-accent); }

.timeline-card-date {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-inner h2 em { font-style: italic; color: var(--accent); }

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links { margin-bottom: 2rem; }
.contact-links p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.contact-links strong { color: var(--text-primary); }

.contact-paths {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-path {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.contact-path:hover { border-color: var(--border-accent); }

.contact-path h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-path p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.contact-path a {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); opacity: 1; }

/* ============================
   ANIMATIONS
   ============================ */
/* Fade-in: visible by default, animated where JS works */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .fade-in {
    animation: fadeInUp 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

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

/* Staggered children - visible by default, animated with JS */
.stagger > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-collage { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .case-hero-block { grid-template-columns: 1fr; }
  .case-hero-block.reverse { direction: ltr; }
  .case-hero-img { min-height: 250px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .system-block { grid-template-columns: 1fr; }
  .system-block:nth-child(even) { direction: ltr; }
  .about-hero-split { grid-template-columns: 1fr; padding-top: 7rem; }
  .about-photo-stack { max-width: 400px; }
  .story-section { grid-template-columns: 1fr; }
  .story-sidebar { position: static; }
  .timeline-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .case-metrics-row { flex-wrap: wrap; }
}

/* Mobile nav */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  gap: 1rem;
}


/* ============================
   CONTACT FORM
   ============================ */
.contact-form {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 1.25rem;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.9rem 1.75rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ============================
   THANK YOU STATE
   ============================ */
.thank-you-state {
  text-align: center;
  padding: 3rem 2rem;
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.thank-you-state h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.thank-you-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.thank-you-state p a {
  font-weight: 600;
}

.form-submit .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  text-align: center;
  display: none;
}

.form-error.show { display: block; }

/* ============================
   ARTICLE PAGE
   ============================ */
.article-hero {
  padding: 10rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.article-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin-bottom: 1.25rem;
}

.article-dek {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-meta span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
}

.article-featured {
  padding: 0 2rem 2rem;
}

.article-featured-inner {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.article-featured-inner img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 3rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-main > * + * {
  margin-top: 1.35rem;
}

.article-main h2 {
  font-family: var(--font-body);
  font-size: 1.65rem;
  line-height: 1.25;
  margin-top: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.article-main p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-main .article-lead {
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.85;
}

.article-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-pullquote p {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.article-sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.article-sidebar-card p,
.article-sidebar-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tag-list li {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
}

.article-cta {
  padding: 0 2rem 5rem;
}

.article-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(45,212,191,0.06));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.article-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.article-cta-copy {
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
}

.article-cta-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .article-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .article-hero,
  .article-featured,
  .article-layout,
  .article-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .article-main p,
  .article-main .article-lead {
    font-size: 1rem;
  }

  .article-pullquote p {
    font-size: 1.25rem;
  }
}

.article-resource-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.article-resource-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

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

.article-resource-item p {
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.75;
}