/* ===========================================================
   Saida Digital Lab — stylesheet
   Design tokens live at the top; components consume them only.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Bodoni Moda', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Light theme (default) */
  --bg: #eef4fa;
  --surface: #ffffff;
  --surface-alt: #e3edf8;
  --ink: #0b1c30;
  --ink-soft: #45596d;
  --ink-faint: #7c93a5;
  --accent: #1361c9;
  --accent-soft: #d3e6fa;
  --accent-2: #0eb1cf;
  --accent-2-soft: #d6f2f7;
  --accent-glow: 0 18px 40px -12px rgba(19, 97, 201, 0.45);
  --line: #d4e2ee;
  --shadow: 0 24px 60px -28px rgba(11, 28, 48, 0.32);

  /* Fixed brand frame (hero / footer) — intentionally theme-independent */
  --frame-bg: #081527;
  --frame-bg-alt: #0f2740;
  --frame-ink: #f2f7fb;
  --frame-ink-soft: rgba(242, 247, 251, 0.7);
  --frame-accent: #3fa9f5;
  --frame-accent-2: #22d3ee;
  --frame-line: rgba(242, 247, 251, 0.16);

  --radius-s: 6px;
  --radius-m: 10px;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071322;
    --surface: #0e2136;
    --surface-alt: #12293f;
    --ink: #eef5fb;
    --ink-soft: #a9c0d2;
    --ink-faint: #6e879c;
    --accent: #3fa9f5;
    --accent-soft: #163752;
    --accent-2: #22d3ee;
    --accent-2-soft: #123a44;
    --accent-glow: 0 18px 40px -12px rgba(63, 169, 245, 0.4);
    --line: #1c384f;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  }
}

:root[data-theme="dark"] {
  --bg: #071322;
  --surface: #0e2136;
  --surface-alt: #12293f;
  --ink: #eef5fb;
  --ink-soft: #a9c0d2;
  --ink-faint: #6e879c;
  --accent: #3fa9f5;
  --accent-soft: #163752;
  --accent-2: #22d3ee;
  --accent-2-soft: #123a44;
  --accent-glow: 0 18px 40px -12px rgba(63, 169, 245, 0.4);
  --line: #1c384f;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 860px) {
  .container { padding: 0 40px; }
}

.section { padding: 88px 0; }
@media (min-width: 860px) { .section { padding: 128px 0; } }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-2);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  margin-top: 14px;
  text-wrap: balance;
  color: var(--ink);
}
.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 54ch;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1), transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.37s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0d4a9c 100%);
  color: #f6fbff;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(19, 97, 201, 0.55); }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost-light {
  background: transparent;
  color: var(--frame-ink);
  border-color: var(--frame-line);
}
.btn-ghost-light:hover { border-color: var(--frame-ink); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--frame-ink);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  color: var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
@media (min-width: 860px) { .nav-inner { padding: 22px 40px; } }
.nav.is-scrolled .nav-inner { padding-top: 16px; padding-bottom: 16px; }

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand strong { font-weight: 600; }
.brand .brand-dot { color: var(--frame-accent); font-size: 20px; line-height: 1; }
.nav.is-scrolled .brand .brand-dot { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.86;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: currentColor;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (min-width: 860px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--frame-bg);
  color: var(--frame-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}
.mobile-menu .mobile-menu-cta { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 82% -10%, var(--frame-bg-alt) 0%, var(--frame-bg) 55%), var(--frame-bg);
  color: var(--frame-ink);
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frame-accent-2);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--frame-accent-2); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.08;
  margin-top: 22px;
  max-width: 15ch;
  text-wrap: balance;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.1s both;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--frame-accent), var(--frame-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 24px;
  font-size: 18px;
  color: var(--frame-ink-soft);
  max-width: 46ch;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.2s both;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--frame-line);
  padding-top: 24px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.4s both;
}
.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--frame-ink);
}
.hero-meta div span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--frame-ink-soft);
}

/* Hero visual — layered mock cards */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.25s both;
}
.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  max-width: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 169, 245, 0.32) 0%, rgba(34, 211, 238, 0.12) 45%, transparent 72%);
  filter: blur(6px);
  top: -12%;
  right: -8%;
  z-index: 0;
  animation: pulseGlow 7s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.mock-card {
  position: absolute;
  border-radius: var(--radius-m);
  background: var(--frame-bg-alt);
  border: 1px solid var(--frame-line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
.mock-browser {
  --rot: -6deg;
  width: 300px;
  height: 210px;
  left: 6%;
  top: 6%;
  padding: 14px;
  animation-delay: 0s;
}
.mock-browser .dots { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-browser .dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--frame-line); }
.mock-browser .bar { height: 8px; border-radius: 4px; background: var(--frame-line); margin-bottom: 10px; }
.mock-browser .bar:nth-child(2) { width: 78%; }
.mock-browser .bar:nth-child(3) { width: 55%; }
.mock-browser .swatch { margin-top: 16px; height: 70px; border-radius: 6px; background: linear-gradient(135deg, var(--frame-accent), var(--frame-accent-2)); opacity: 0.85; }

.mock-social {
  --rot: 5deg;
  width: 190px;
  height: 240px;
  right: 4%;
  top: 0;
  padding: 16px;
  animation-delay: 1.4s;
}
.mock-social .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--frame-accent-2), var(--frame-accent)); margin-bottom: 10px; }
.mock-social .line { height: 6px; border-radius: 3px; background: var(--frame-line); margin-bottom: 8px; width: 70%; }
.mock-social .frame { margin-top: 14px; height: 120px; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(111,180,236,0.28) 0 2px, transparent 2px 14px), var(--frame-bg); border: 1px solid var(--frame-line); }
.mock-social .heart { margin-top: 12px; font-size: 13px; color: var(--frame-accent); letter-spacing: 0.04em; }

.mock-email {
  --rot: -3deg;
  width: 230px;
  height: 140px;
  left: 20%;
  bottom: 0;
  padding: 16px;
  animation-delay: 2.8s;
}
.mock-email .to { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--frame-ink-soft); margin-bottom: 10px; }
.mock-email .subject { font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; }
.mock-email .line { height: 6px; border-radius: 3px; background: var(--frame-line); margin-bottom: 7px; }
.mock-email .line:last-child { width: 60%; }

.hero-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--frame-line);
  border-radius: 50%;
  right: 10%;
  bottom: -8%;
  opacity: 0.6;
  z-index: 0;
}
.hero-network {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
  z-index: 0;
  color: var(--frame-accent-2);
  opacity: 0.4;
}
.hero-network circle { fill: currentColor; }
.hero-network line { stroke: currentColor; stroke-width: 1; }
.mock-card { z-index: 1; }

/* ---------- Expertise (What We Do) ---------- */
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.expertise-row {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .expertise-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .expertise-row--reverse .expertise-visual { order: 2; }
  .expertise-row--reverse .expertise-copy { order: 1; }
}
.expertise-visual {
  position: relative;
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.expertise-visual--commercial { background: linear-gradient(135deg, #7fc1f0 0%, #2e6fa8 55%, #0e2032 100%); }
.expertise-visual--realestate { background: linear-gradient(135deg, #8fa8bd 0%, #1b3a55 55%, #0e2032 100%); }
.expertise-visual--digital { background: linear-gradient(135deg, #3e82c4 0%, #1b4a73 55%, #0e2032 100%); }
.expertise-visual--b2b { background: linear-gradient(135deg, #a9c9de 0%, #4c86c9 55%, #0e2032 100%); }
.expertise-icon {
  width: 46%;
  height: 46%;
  color: #f8efe9;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.expertise-row:hover .expertise-icon { transform: scale(1.04); }
.expertise-copy .expertise-index {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.expertise-copy h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  margin-top: 12px;
  text-wrap: balance;
}
.expertise-copy p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 46ch;
}

/* Portfolio thumbnail category mark */
.thumb-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
}
.about-copy p { color: var(--ink-soft); font-size: 17px; margin-top: 18px; max-width: 52ch; }
.about-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 40px); margin-top: 14px; text-wrap: balance; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.pillar {
  background: var(--surface);
  padding: 28px 24px;
  transition: background 0.35s ease;
}
.pillar:hover { background: var(--surface-alt); }
.pillar .pillar-icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 16px; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.pillar p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-card:hover::before { width: 100%; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--accent);
  margin-bottom: 22px;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), background 0.35s ease, color 0.35s ease;
}
.service-icon svg { width: 20px; height: 20px; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); background: var(--accent); color: #f6fbff; }
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.service-card p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.price-card:hover::before { width: 100%; }
.price-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.price-card .price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.price-card .price sup { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-left: 4px; }
.price-card p.desc { margin-top: 10px; color: var(--ink-soft); font-size: 14px; flex-grow: 1; }
.price-card .btn { margin-top: 24px; }

/* ---------- Portfolio (Selected Projects) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.45s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.is-hidden { display: none; }
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover::before { width: 100%; }

.project-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
}
.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover .project-visual img { transform: scale(1.045); }
.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 32, 50, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover .project-visual::after { opacity: 1; }
.project-visual--digital { background: linear-gradient(135deg, #3e82c4 0%, #1b4a73 55%, #0e2032 100%); }
.project-visual--branding { background: linear-gradient(135deg, #7fa8c9 0%, #1b3a55 55%, #0e2032 100%); }
.project-visual--realestate { background: linear-gradient(135deg, #8fa8bd 0%, #1b3a55 55%, #0e2032 100%); }
.project-visual--healthcare { background: linear-gradient(135deg, #6fc9e0 0%, #1f5a7a 55%, #0e2032 100%); }
.project-icon {
  width: 34%;
  height: 34%;
  color: #f2f7fb;
  opacity: 0.94;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  z-index: 1;
}
.project-card:hover .project-icon { transform: scale(1.05); }

.project-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.project-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.project-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin-top: 8px; }
.project-industry {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-faint);
}
.project-body p.project-desc { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; flex-grow: 1; }
.project-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.project-services li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
}
.project-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  align-self: flex-start;
}
.project-cta svg { width: 15px; height: 15px; transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
.project-card:hover .project-cta svg { transform: translateX(4px); }

/* ---------- Our Projects (data-driven doctor cards) ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.doctor-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--surface);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--accent); color: #f6fbff; border-color: var(--accent); transform: translateY(-3px); }
.doctor-card .project-services + .doctor-social,
.doctor-card .project-desc + .doctor-social { margin-top: 16px; }

.project-card--placeholder {
  border: 1px dashed var(--line);
  background: var(--surface-alt);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  min-height: 100%;
}
.project-card--placeholder:hover { transform: none; box-shadow: none; }
.project-card--placeholder .project-cat { color: var(--accent-2); }
.project-card--placeholder h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-top: 10px; }
.project-card--placeholder p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; max-width: 32ch; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-item h3 svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.why-item p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; padding-left: 36px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  gap: 56px;
}
@media (min-width: 940px) {
  .contact-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
}
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
  text-wrap: balance;
}
.contact-info p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; max-width: 42ch; }
.contact-channels { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.channel-btn svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.channel-btn:hover { border-color: var(--accent); transform: translateX(4px); background: var(--surface-alt); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 120px; }
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-faint); margin-top: -6px; }
.form-status { grid-column: 1 / -1; font-size: 13.5px; color: var(--accent); min-height: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--frame-bg);
  color: var(--frame-ink-soft);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--frame-line);
}
.footer-brand .brand { color: var(--frame-ink); }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--frame-accent-2); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; color: var(--frame-ink-soft); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--frame-ink); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--frame-ink-soft);
}
