/* ==========================================================
   Fortney Design Co - Design System v2
   Where code meets craft.
   ========================================================== */

/* --- Design Tokens --- */
:root {
  --black: #060606;
  --white: #e8e8e8;
  --pure-white: #ffffff;
  --cyan: #05d9e8;
  --cyan-dark: #04adb9;
  --cyan-glow: rgba(5, 217, 232, 0.10);
  --cyan-glow-strong: rgba(5, 217, 232, 0.20);
  --blue: #0055dd;
  --gray-950: #0c0c0c;
  --gray-900: #111111;
  --gray-850: #161616;
  --gray-800: #1a1a1a;
  --gray-700: #252525;
  --gray-600: #3a3a3a;
  --gray-500: #555555;
  --gray-400: #777777;
  --gray-300: #999999;
  --gray-200: #bbbbbb;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-active: rgba(5, 217, 232, 0.20);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-width: 1120px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--pure-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  z-index: 1100;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  pointer-events: none;
}

/* --- Subtle dot grid --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* --- Noise grain overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* --- Mono Label (code-inspired) --- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mono-label::before {
  content: '//';
  opacity: 0.5;
}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 68px;
  background: rgba(6, 6, 6, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

header img#text-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

header img#text-logo:hover {
  opacity: 0.75;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--gray-400);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.3s ease;
  padding: 4px 0;
}

nav a:hover {
  color: var(--pure-white);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.35s var(--ease-out-expo);
}

nav a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  color: var(--cyan) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-cta:hover svg {
  transform: translateX(2px);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle svg rect {
  fill: var(--white);
  transition: fill 0.3s ease;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px clamp(1.5rem, 5vw, 3rem) 100px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.30;
  z-index: -1;
  animation: blob 25s infinite alternate;
}

.hero::before {
  background: var(--cyan);
  width: 700px;
  height: 700px;
  top: -250px;
  left: -250px;
}

.hero::after {
  background: var(--blue);
  width: 600px;
  height: 600px;
  right: -200px;
  bottom: -200px;
  animation-delay: 8s;
}

@keyframes blob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -30px) scale(1.06) rotate(2deg); }
  66% { transform: translate(50px, -20px) scale(1.1) rotate(-1deg); }
  100% { transform: translate(70px, -60px) scale(1.14) rotate(3deg); }
}

.hero img#monogram {
  width: 440px;
  max-width: 85%;
  margin-bottom: 16px;
  filter: none;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero .mono-label {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-enter 0.7s var(--ease-out-expo) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0 0 24px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 780px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter 0.8s var(--ease-out-expo) 0.35s forwards;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, #4dd9e8 40%, #6de8f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.0625rem, 1.8vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--gray-300);
  line-height: 1.85;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero .hero-cta {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 0.8s var(--ease-out-expo) 0.65s forwards;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--black);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(5, 217, 232, 0), 0 1px 3px rgba(0,0,0,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(5, 217, 232, 0.20), 0 2px 8px rgba(0,0,0,0.2);
  color: var(--black);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translateX(3px);
}

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

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow), 0 8px 24px rgba(0,0,0,0.2);
}

/* ==========================================================
   SECTIONS
   ========================================================== */
section {
  padding: clamp(80px, 12vw, 140px) clamp(1.5rem, 5vw, 3rem);
  position: relative;
  scroll-margin-top: 68px;
}

section h2 {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-label {
  text-align: center;
  margin-bottom: 24px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-300);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 64px;
  line-height: 1.85;
}

/* Section border-top accent */
.section-line {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

/* Light section variant */
section.light {
  background: var(--gray-950);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

section.light h2 {
  color: var(--pure-white);
}

/* ==========================================================
   SERVICES GRID
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--gray-900);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 40px 28px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Gradient top line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Glow spot */
.card::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--gray-300);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ==========================================================
   PROCESS SECTION
   ========================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 1px;
  background: var(--gray-700);
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-900);
  border: 1px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step-number {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow), 0 0 20px var(--cyan-glow);
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.process-step p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 200px;
  margin: 0 auto;
}

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat {
  text-align: center;
  padding: 48px 24px;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value .accent-num {
  color: var(--cyan);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ==========================================================
   WORK / PORTFOLIO
   ========================================================== */
.work-showcase {
  max-width: 960px;
  margin: 0 auto;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.work-card-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}

.work-card-image:hover {
  transform: scale(1.02);
}

.work-card-image img {
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.work-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-card-content .mono-label {
  margin-bottom: 0;
}

.work-card-content h3 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.work-card-content p {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.8;
}

.work-card-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.work-card-stat {
  display: flex;
  flex-direction: column;
}

.work-card-stat strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.work-card-stat span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 2px;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap 0.3s var(--ease-out-expo), color 0.3s ease;
  margin-top: 4px;
}

.work-card-link:hover {
  gap: 10px;
  color: var(--pure-white);
}

.work-card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */
form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input,
textarea {
  padding: 15px 18px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-600);
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px clamp(1.5rem, 5vw, 3rem) 48px;
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-nav a {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--gray-400);
  font-size: 0.85rem;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--gray-600);
}

.footer-bottom .mono-label {
  font-size: 0.68rem;
  color: var(--gray-600);
}

.footer-bottom .mono-label::before {
  content: '<';
}

.footer-bottom .mono-label::after {
  content: '/>';
  opacity: 0.5;
  margin-left: 4px;
}

/* ==========================================================
   SCROLL REVEAL ANIMATION
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

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

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   BLOG INDEX
   ========================================================== */
.blog-index {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.blog-index h1 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.blog-index h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, #6de8f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-index .intro {
  text-align: center;
  color: var(--gray-300);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.85;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.post-card {
  background: var(--gray-900);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 36px 28px;
  transition: transform 0.45s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card .post-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.post-card .post-excerpt {
  color: var(--gray-300);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: gap 0.3s var(--ease-out-expo), color 0.3s ease;
}

.post-card:hover .read-more {
  gap: 8px;
  color: var(--pure-white);
}

/* ==========================================================
   BLOG POST
   ========================================================== */
.blog-post {
  padding-top: 130px;
  padding-bottom: 80px;
  max-width: 700px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 2rem);
  padding-right: clamp(1.5rem, 5vw, 2rem);
}

.blog-post article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  margin-bottom: 36px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.blog-post article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 52px 0 16px;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--pure-white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post article p {
  color: var(--gray-300);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 20px;
  text-indent: 0;
}

.blog-post article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.blog-post article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--gray-300);
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-post article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}

.blog-post article code {
  background: var(--gray-800);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.blog-post article strong {
  color: var(--pure-white);
  font-weight: 600;
}

.blog-post article em {
  color: var(--gray-200);
  font-style: italic;
}

.blog-post article a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(5, 217, 232, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.blog-post article a:hover {
  text-decoration-color: var(--cyan);
}

.back-to-blog {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.back-to-blog a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, gap 0.3s var(--ease-out-expo);
}

.back-to-blog a:hover {
  color: var(--cyan);
  gap: 10px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .work-card {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .work-card-content {
    align-items: center;
  }

  .work-card-stats {
    justify-content: center;
  }

  .work-card-content .mono-label {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  header img#text-logo {
    height: 34px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  nav ul {
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    background: var(--gray-900);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 28px;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    display: none;
    min-width: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  }

  nav ul.show {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
    margin-top: 4px;
  }

  header {
    padding: 0 0 0 clamp(1.25rem, 5vw, 3rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }

  .process-grid::before {
    display: none;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat:not(:last-child)::after {
    width: 60%;
    height: 1px;
    top: auto;
    bottom: 0;
    right: auto;
    left: 20%;
  }

  .stat {
    padding: 32px 24px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .blog-index {
    padding-top: 110px;
  }

  .blog-post {
    padding-top: 100px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 5% 40px;
  }

  .hero img#monogram {
    width: 80vw;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }

  .hero p {
    font-size: 0.92rem;
  }

  header img#text-logo {
    height: 30px;
  }

  .card {
    padding: 32px 22px 28px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step p {
    font-size: 0.8rem;
  }

  .work-card-stats {
    gap: 24px;
  }
}
