/* ==========================================================================
   Chethan Gowda Portfolio — Modern, Clean, Professional Design System
   Color Scheme: Sleek Midnight Obsidian & Slate with Royal Indigo/Blue Accents
   ========================================================================== */

/* 1. Design tokens: clean, modern, and high-contrast professional palette */
:root {
  --ink: #0b0f17;
  --ink-soft: #111827;
  --ink-card: #141c2c;
  --paper: #f8fafc;
  --paper-2: #f1f5f9;
  --paper-card: #ffffff;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --body: #334155;
  --body-heading: #0f172a;
  --body-muted: #64748b;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.16);
  --accent-bg: #eff6ff;
  --accent-dark: #1d4ed8;
  --live-green: #10b981;
  --live-green-bg: #ecfdf5;
  --live-green-border: #a7f3d0;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --dark-line: rgba(255, 255, 255, 0.08);
  --dark-line-strong: rgba(255, 255, 255, 0.14);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 40px -6px rgba(15, 23, 42, 0.08), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
}

/* 2. Base styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a, button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, iframe { max-width: 100%; }
::selection { background: #2563eb; color: #ffffff; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  z-index: 1000;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 3. Header and Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-line);
  transition: border-color .2s;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.brand-muted { color: #64748b; font-weight: 500; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}
.nav-links > a:not(.nav-contact) {
  transition: color .2s ease;
  padding: 4px 0;
}
.nav-links > a:not(.nav-contact):hover {
  color: #ffffff;
}
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  transition: all .2s ease;
}
.nav-contact span {
  color: #38bdf8;
  font-size: 14px;
  transition: transform .2s ease;
}
.nav-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.nav-contact:hover span {
  color: #ffffff;
  transform: translate(2px, -2px);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
}

/* 4. Shared Section Utilities */
.dark-section {
  background: var(--ink);
  color: var(--text);
}
.section-light {
  background: var(--paper);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.eyebrow-light {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
}
.status-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  flex: 0 0 7px;
  background: var(--live-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}
.button-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}
.button-accent span { font-size: 16px; }
.button-dark {
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.button-dark:hover {
  background: #1e293b;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s, color .2s;
}
.text-link:hover { gap: 12px; }
.light-link { color: #cbd5e1; }
.light-link span { color: #38bdf8; }
.light-link:hover { color: #ffffff; }

/* 5. Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 36px;
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 15% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
              var(--ink);
}
.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -100px;
  top: -150px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  filter: blur(40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  min-height: 480px;
}
.hero h1, .section-heading h2, .process-intro h2, .contact-heading h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0;
}
.hero h1 {
  font-size: clamp(42px, 4.8vw, 64px);
  color: #ffffff;
  max-width: 650px;
}
.accent-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  max-width: 500px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.75;
  margin: 24px 0 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  margin-top: 40px;
}
.note-line {
  height: 1px;
  width: 28px;
  background: #3b82f6;
}

/* Hero Decorative Graphic */
.hero-art {
  min-height: 400px;
  position: relative;
  display: grid;
  place-items: center;
}
.art-orbit {
  position: absolute;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 50%;
  width: 400px;
  height: 400px;
  transform: rotate(-25deg) scaleY(.58);
}
.orbit-two {
  width: 320px;
  height: 320px;
  transform: rotate(36deg) scaleY(.65);
  border-color: rgba(255, 255, 255, 0.08);
}
.art-window {
  width: min(100%, 460px);
  position: relative;
  z-index: 2;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
  transition: transform .4s var(--ease);
}
.art-window:hover {
  transform: rotate(0) translateY(-4px);
}
.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.window-dots, .browser-dots { display: flex; gap: 5px; }
.window-dots i, .browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.window-dots i:first-child, .browser-dots i:first-child { background: #f43f5e; }
.window-dots i:nth-child(2), .browser-dots i:nth-child(2) { background: #fbbf24; }
.window-dots i:nth-child(3), .browser-dots i:nth-child(3) { background: #10b981; }
.window-bar > span:nth-child(2) { flex: 1; text-align: center; font-weight: 500; }
.window-lock { font-size: 12px; color: #38bdf8; }
.window-content { padding: 22px 24px 18px; color: #f8fafc; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.mock-nav b { font-family: var(--display); letter-spacing: 0.5px; }
.mock-nav b span { color: #38bdf8; }
.mock-nav div { display: flex; gap: 8px; }
.mock-nav i { width: 20px; height: 3px; background: #334155; border-radius: 2px; }
.mock-layout { display: grid; grid-template-columns: 1fr .85fr; gap: 16px; align-items: center; padding: 26px 0 20px; }
.mock-kicker { height: 5px; width: 44px; background: #38bdf8; border-radius: 4px; margin-bottom: 12px; }
.mock-title { height: 13px; width: 100%; background: #334155; border-radius: 3px; margin: 6px 0; }
.mock-title.short { width: 68%; }
.mock-paragraph { height: 4px; width: 92%; background: #1e293b; border-radius: 3px; margin-top: 14px; }
.mock-paragraph.narrow { width: 70%; margin-top: 6px; }
.mock-cta { width: 80px; height: 22px; border-radius: 5px; background: #2563eb; margin-top: 18px; }
.mock-image { height: 140px; position: relative; border-radius: 8px; background: linear-gradient(145deg, #1e293b, #0f172a); border: 1px solid #334155; overflow: hidden; }
.mock-image-shape { position: absolute; width: 110px; height: 110px; right: -8px; top: 20px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #38bdf8); opacity: 0.85; filter: blur(2px); }
.mock-image-card { position: absolute; left: 12px; bottom: 12px; width: 65px; height: 48px; border-radius: 5px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); }
.mock-bottom { display: flex; gap: 7px; }
.mock-bottom span { height: 4px; border-radius: 4px; background: #1e293b; flex: 1; }

.floating-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.label-top { top: 35px; right: -8px; }
.label-bottom { bottom: 25px; left: -14px; }
.label-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-size: 15px;
}
.label-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.floating-label b, .floating-label small { display: block; }
.floating-label b { font-size: 12px; color: #ffffff; font-weight: 700; }
.floating-label small { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  color: #64748b;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.hero-bottom-line {
  height: 1px;
  background: var(--dark-line);
  flex: 1;
}

/* 6. Services Section */
.services {
  padding: 108px 0 100px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: clamp(34px, 4vw, 50px);
  color: var(--body-heading);
}
.muted-heading { color: #64748b; font-weight: 600; }
.section-intro {
  max-width: 400px;
  color: var(--body-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.service-card {
  position: relative;
  min-height: 270px;
  padding: 30px 24px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: all .25s var(--ease);
}
.service-card:last-child { border-right: 0; }
.service-card:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}
.service-number {
  font-size: 11px;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
}
.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 10px;
  margin: 24px 0 18px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid #dbeafe;
}
.service-card h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--body-heading);
  font-weight: 700;
}
.service-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}
.service-foot {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #2563eb;
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

/* 7. Selected Work / Projects Section */
.projects {
  padding: 88px 0 108px;
  background: #f8fafc;
}
.projects-heading { margin-bottom: 48px; }
.project-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
}
.project-card-second { margin-top: 36px; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.project-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #64748b;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #065f46;
  font-weight: 700;
}
.project-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Browser Frame & Device Stage */
.browser-frame {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}
.browser-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.browser-address {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  max-width: 420px;
  margin: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 12px;
}
.browser-address span { color: #2563eb; }
.browser-top > a {
  font-size: 16px;
  color: #64748b;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all .15s ease;
}
.browser-top > a:hover {
  background: #e2e8f0;
  color: var(--body-heading);
}

.device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 24px;
  background: radial-gradient(ellipse at 50% 25%, #f1f5f9 0%, #f8fafc 70%);
  border-top: 0;
}
.device-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-align: center;
  margin-bottom: 18px;
}
.device-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.device-caption-note {
  font-weight: 500;
  letter-spacing: 0;
  color: #64748b;
  text-transform: none;
}

/* Authentic Phone Handset & Scaled Mobile Screen */
.phone-device {
  width: min(100%, 294px);
  position: relative;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.15));
}
.phone-bezel {
  position: relative;
  padding: 9px;
  border-radius: 38px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  box-shadow: inset 0 0 0 2px #020617;
}
.phone-side-button {
  position: absolute;
  z-index: 2;
  width: 3px;
  background: #334155;
  border-radius: 3px;
}
.phone-side-left { left: -2px; top: 90px; height: 47px; }
.phone-side-right { right: -2px; top: 112px; height: 65px; }
.phone-island {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 19px;
  background: #000000;
  border-radius: 14px;
}
.phone-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 23px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: 8px;
  font-weight: 800;
  height: 18px;
  pointer-events: none;
}
.phone-screen {
  position: relative;
  height: 490px;
  overflow: hidden;
  border-radius: 29px;
  background: #ffffff;
}
/* Crucial: Iframe renders at realistic 1.4x mobile viewport (384px)
   and scales evenly with zero white margins */
.phone-screen iframe {
  display: block;
  width: 140%;
  height: 140%;
  max-width: none !important;
  max-height: none !important;
  border: 0;
  background: #ffffff;
  transform: scale(0.7142857);
  transform-origin: top left;
}
.phone-home-bar {
  width: 84px;
  height: 4px;
  border-radius: 5px;
  background: #334155;
  margin: 8px auto 1px;
}
.device-help {
  max-width: 400px;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.preview-fallback span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #2563eb;
}
.preview-fallback b {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--body-heading);
  margin-top: 12px;
  letter-spacing: -.5px;
}
.preview-fallback p {
  max-width: 220px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

/* Project Card Bottom Details */
.project-details {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 4px 4px;
}
.project-details h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: var(--body-heading);
}
.project-details p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-muted);
  max-width: 420px;
  margin: 0;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tags span {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.project-link {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: all .2s ease;
}
.project-link span {
  font-size: 15px;
  transition: transform .2s ease;
}
.project-link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.project-link:hover span {
  transform: translate(2px, -2px);
}
.preview-note {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
}
.preview-note span { color: #2563eb; }

/* 8. Process Section */
.process {
  padding: 108px 0 112px;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.process-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}
.process-intro h2 {
  font-size: clamp(40px, 4.8vw, 58px);
  margin-bottom: 20px;
  color: #ffffff;
}
.process-intro > p:not(.eyebrow) {
  max-width: 350px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.process-list { border-top: 1px solid var(--dark-line); }
.process-item {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: baseline;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--dark-line);
  transition: padding .2s ease;
}
.process-item > span:first-child {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.process-item h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.process-item p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.7;
}
.process-arrow {
  color: #64748b;
  font-size: 18px;
  transition: color .2s, transform .2s;
}
.process-item:hover .process-arrow {
  color: #38bdf8;
  transform: translate(2px, -2px);
}

/* 9. Contact Section */
.contact {
  padding: 100px 0 108px;
  background: #ffffff;
}
.contact-heading {
  max-width: 720px;
  margin: 0 0 44px;
}
.contact-heading h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--body-heading);
}
.accent-text-dark {
  color: #2563eb;
}
.contact-heading > p:last-child {
  max-width: 600px;
  color: var(--body-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 18px 0 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
  gap: 32px;
}
.contact-details, .brief-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.contact-details h3, .form-heading h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--body-heading);
  margin: 0;
}
.contact-details h3 { margin-bottom: 18px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: padding .2s ease;
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row:hover { padding-left: 6px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
  border: 1px solid #dbeafe;
}
.contact-row-copy { min-width: 0; flex: 1; }
.contact-row-copy strong, .contact-row-copy small { display: block; }
.contact-row-copy strong {
  color: var(--body-heading);
  font-size: 14px;
  font-weight: 700;
}
.contact-row-copy small {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.contact-row-arrow {
  color: #94a3b8;
  flex: 0 0 auto;
  font-size: 16px;
  transition: transform .2s, color .2s;
}
.contact-row:hover .contact-row-arrow {
  color: #2563eb;
  transform: translate(2px, -2px);
}
.contact-side-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #64748b;
  font-size: 11px;
}
.contact-side-note .status-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
}

/* Brief Form */
.brief-form { padding: 30px; }
.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.form-heading .eyebrow { margin-bottom: 8px; }
.form-heading h3 { font-size: 24px; }
.form-step {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
  padding-top: 4px;
}
.form-intro {
  margin: 8px 0 24px;
  font-size: 13px;
  color: var(--body-muted);
  line-height: 1.7;
}
.form-field {
  margin-bottom: 18px;
  min-width: 0;
}
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--body-heading);
}
.form-field label span { color: #2563eb; }
.form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--body-heading);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input::placeholder, .form-field textarea::placeholder {
  color: #94a3b8;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 4px;
  padding: 14px 20px;
}
.form-privacy {
  margin: 12px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
}
.form-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #ef4444;
}

/* 10. Footer */
.site-footer {
  background: #090d15;
  color: #94a3b8;
  padding: 28px 0;
  border-top: 1px solid var(--dark-line);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 13px; }
.footer-inner p {
  font-size: 12px;
  margin: 0;
  flex: 1;
  color: #64748b;
}
.footer-email, .back-top {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  transition: color .2s ease;
}
.footer-email:hover, .back-top:hover {
  color: #ffffff;
}
.copyright {
  font-size: 12px;
  color: #64748b;
}

/* 11. Entrance Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 12. Tablet Layouts */
@media (max-width: 900px) {
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 360px; }
  .hero-bottom { margin-top: 45px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-details { grid-template-columns: 1fr auto; }
  .project-tags { grid-column: 1 / -1; grid-row: 2; }
  .project-link { grid-column: 2; grid-row: 1; }
  .process-layout { gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-details, .brief-form { padding: 24px; }
}

/* 13. Mobile Layouts */
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .nav { min-height: 64px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 20px 24px 24px;
    background: #0f172a;
    border-bottom: 1px solid var(--dark-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-links .nav-contact { margin-top: 14px; padding: 12px 16px; justify-content: center; }
  .hero { padding: 56px 0 24px; }
  .hero-grid { min-height: auto; }
  .hero h1 { font-size: clamp(38px, 9.8vw, 54px); letter-spacing: -1.5px; }
  .hero-lede { font-size: 15px; margin: 18px 0 24px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-art { min-height: 280px; margin-top: 8px; }
  .art-window { width: 95%; }
  .art-orbit { width: 300px; height: 300px; }
  .orbit-two { width: 240px; height: 240px; }
  .label-top { top: 0; right: 0; }
  .label-bottom { bottom: 0; left: 0; }
  .floating-label { padding: 8px 12px; gap: 8px; }
  .label-icon { width: 26px; height: 26px; font-size: 13px; }
  .floating-label b { font-size: 11px; }
  .floating-label small { font-size: 9px; }
  .window-content { padding: 16px; }
  .mock-layout { padding: 18px 0 14px; }
  .mock-image { height: 110px; }
  .hero-bottom { font-size: 8px; letter-spacing: .8px; gap: 10px; margin-top: 36px; }

  .services { padding: 72px 0; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: clamp(32px, 8.5vw, 44px); letter-spacing: -1.2px; }
  .section-intro { margin-top: 16px; font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .service-card:nth-child(3) { border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-icon { margin: 16px 0 14px; }

  .projects { padding: 24px 0 72px; }
  .project-card { padding: 16px; margin-bottom: 24px; border-radius: 14px; }
  .project-meta { gap: 10px; }
  .project-index { font-size: 9px; }
  .project-status { font-size: 9px; }
  .browser-top { height: 38px; padding: 0 10px; gap: 8px; }
  .browser-address { font-size: 9px; }
  .phone-screen { height: 470px; }
  .phone-device { width: min(100%, 280px); }
  .device-stage { padding: 20px 10px 16px; }
  .project-details { grid-template-columns: 1fr; gap: 14px; padding: 20px 2px 4px; }
  .project-details h3 { font-size: 20px; }
  .project-tags { grid-column: auto; grid-row: auto; }
  .project-link { grid-column: auto; grid-row: auto; justify-self: start; }
  .preview-note { font-size: 11px; align-items: flex-start; }

  .process { padding: 76px 0; }
  .process-layout { grid-template-columns: 1fr; gap: 32px; }
  .process-intro h2 { font-size: 44px; }
  .process-item { grid-template-columns: 32px 1fr 16px; gap: 12px; padding: 20px 0; }

  .contact { padding: 76px 0; }
  .contact-heading { margin-bottom: 28px; }
  .contact-heading h2 { font-size: clamp(32px, 8.2vw, 42px); letter-spacing: -1.2px; }
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-details, .brief-form { padding: 20px; }
  .form-heading h3 { font-size: 22px; }
  .footer-inner { gap: 14px; }
  .footer-inner p { order: 3; flex-basis: 100%; }
  .footer-email { margin-left: auto; }
  .copyright { margin-left: auto; }
}

/* 14. Extra-small devices */
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .hero h1 { font-size: 34px; }
  .hero-art { min-height: 250px; }
  .floating-label { gap: 6px; padding: 6px 10px; }
  .floating-label b { font-size: 10px; }
  .floating-label small { font-size: 8px; }
  .hero-bottom { letter-spacing: .4px; }
  .contact-details, .brief-form { padding: 16px; }
  .phone-device { width: min(100%, 260px); }
  .phone-screen { height: 440px; }
  .phone-bezel { border-radius: 33px; padding: 8px; }
  .phone-screen { border-radius: 25px; }
}
