/* ==========================================================================
   Ammar Ullah Khan — Portfolio
   Design system: Instrument Serif / Instrument Sans, green + cream palette
   ========================================================================== */

:root {
  /* palette */
  --ink: #14241b;
  --ink-soft: #2a2823;
  --body-text: #3a3833;
  --text-muted-1: #4a4741;
  --text-muted-2: #5a564f;
  --text-muted-3: #6b6862;
  --text-muted-4: #8a857c;
  --text-muted-5: #9a958c;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-soft: rgba(0, 0, 0, 0.07);
  --hairline-strong: rgba(0, 0, 0, 0.16);
  --cream: #fbfdfb;
  --cream-2: #f7f5ef;
  --cream-3: #efece2;
  --cream-4: #f1eee5;
  --placeholder-bg: #f1ede7;
  --green: #059669;
  --green-dark: #047857;
  --green-mid: #10b981;
  --lime: #bef264;
  --lime-light: #d4f88a;
  --lime-dot: #a3e635;
  --hero-grad: radial-gradient(130% 120% at 50% 0%, #0f5a43 0%, #0a3b2c 55%, #072a20 100%);
  --hero-text: #ffffff;
  --hero-text-soft: #cde8dc;
  --hero-eyebrow: #8fe6bc;
  --hero-pill-text: #eafff4;
  --hero-muted: #9fd6ba;
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 30px -22px rgba(20, 36, 27, 0.4);
  --shadow-lift: 0 30px 70px -40px rgba(20, 36, 27, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

::selection { background: #d8efc7; color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }

ul { margin: 0; padding: 0; }

button { font-family: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.container-med { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream-2);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

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

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  color: var(--ink);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-muted-3);
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }

.btn-book {
  margin-left: 12px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-book:hover { background: var(--green); border-color: var(--green); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-right {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    top: 65px;
    background: var(--cream-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    border-bottom: 1px solid var(--hairline-soft);
    box-shadow: 0 20px 30px -20px rgba(20, 36, 27, 0.25);
  }
  .nav-right.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 10px; font-size: 17px; border-radius: 10px; }
  .btn-book { margin: 14px 10px 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  border: 1px solid transparent;
}
.btn-lime {
  padding: 15px 30px;
  border-color: var(--lime);
  background: var(--lime);
  color: #0a3b2c;
}
.btn-lime:hover { background: var(--lime-light); border-color: var(--lime-light); color: #0a3b2c; }

.btn-ghost-light {
  padding: 15px 30px;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-weight: 500;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-green {
  padding: 14px 32px;
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 500;
}
.btn-green:hover { background: var(--green-mid); color: #fff; }

.btn-ghost-dark {
  padding: 14px 32px;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--cream-2);
  font-weight: 500;
}
.btn-ghost-dark:hover { border-color: var(--cream-2); }

.btn-outline {
  padding: 11px 22px;
  border-color: var(--hairline-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.btn-outline:hover { border-color: var(--ink); }

.link-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
}
.link-arrow:hover { color: var(--green-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 7vw, 96px);
  background: var(--hero-grad);
}

.hero-glow {
  position: absolute;
  top: -14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 96vw);
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.3), transparent 62%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
  animation: om-float-glow 16s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  color: var(--hero-pill-text);
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  max-width: 92vw;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dot); display: inline-block; }

.hero-kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hero-eyebrow);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--hero-text);
}
.hero h1 em { font-style: italic; color: var(--lime); }

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--hero-text-soft);
  max-width: 44ch;
  margin: 0 0 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--hero-muted);
}
.hero-status .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dot);
  display: inline-block; animation: om-pulse 2s ease-in-out infinite;
}

/* page hero (non-home) */
.page-hero {
  padding: 88px 32px 40px;
}
.page-hero.narrow { max-width: 900px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.page-hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted-1);
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  background: var(--cream-3);
}
.marquee-label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 24px;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: om-marquee 34s linear infinite;
  align-items: center;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--ink);
  opacity: 0.55;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-section {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--cream-3);
}
.stats-grid {
  padding: 44px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--text-muted-3); line-height: 1.4; }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head-center { text-align: center; margin-bottom: 52px; }
.section-head-center h2 { font-size: clamp(30px, 4vw, 44px); }

section.block { max-width: 1120px; margin: 0 auto; padding: 88px 32px 40px; }
section.block-tight { max-width: 1120px; margin: 0 auto; padding: 60px 32px 40px; }

/* ==========================================================================
   Project cards (home + work list)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.project-thumb {
  aspect-ratio: 16/10;
  background-color: var(--placeholder-bg);
  overflow: hidden;
  position: relative;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-thumb.no-image {
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.045) 0 11px, transparent 11px 22px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.project-thumb-tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted-5);
  background: rgba(253, 252, 250, 0.7);
  padding: 4px 8px;
  border-radius: 5px;
}

.project-card-body { padding: 22px 22px 26px; }
.project-card-client { font-size: 12px; color: var(--text-muted-3); margin-bottom: 12px; display: block; }
.project-card-body h3 { font-size: 24px; margin: 0 0 8px; line-height: 1.15; }
.project-card-body p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted-2); }

/* work list — wide article rows */
.work-list { display: flex; flex-direction: column; gap: 24px; }

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.work-row:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.work-row-thumb {
  aspect-ratio: 16/10;
  background-color: var(--placeholder-bg);
  overflow: hidden;
}
.work-row-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-row-thumb.no-image {
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.045) 0 11px, transparent 11px 22px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.work-row-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.work-row-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.work-row-client { font-size: 12.5px; color: var(--green); font-weight: 600; }
.work-row-dot { width: 3px; height: 3px; border-radius: 50%; background: #c9c4bb; display: inline-block; }
.work-row-year { font-size: 12.5px; color: var(--text-muted-4); }
.work-row-body h2 { font-size: 27px; margin: 0 0 12px; line-height: 1.15; }
.work-row-body p { font-size: 15px; line-height: 1.6; color: var(--text-muted-2); margin: 0 0 18px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted-1);
  background: #fff;
}

@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; }
  .work-row-body { padding: 26px 24px; }
}

.thumb-confidential {
  background: var(--hero-grad);
  color: var(--hero-pill-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  width: 100%;
  height: 100%;
}
.thumb-confidential .kpi { font-family: var(--font-serif); font-size: 32px; color: #fff; }
.thumb-confidential .note { font-size: 12.5px; color: var(--hero-muted); max-width: 26ch; line-height: 1.5; }

/* ==========================================================================
   Process (how I work)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.process-item { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.process-step { font-family: var(--font-serif); font-size: 20px; color: var(--green); }
.process-item h3 { font-size: 23px; line-height: 1.2; }
.process-item p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted-2); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-columns { columns: 3; column-gap: 24px; }
@media (max-width: 900px) { .testimonial-columns { columns: 2; } }
@media (max-width: 600px) { .testimonial-columns { columns: 1; } }

.testimonial-card {
  break-inside: avoid;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
}
.testimonial-stars { font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.42;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.testimonial-name { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.testimonial-role { font-weight: 400; color: var(--text-muted-3); display: block; margin-top: 2px; }

/* ==========================================================================
   CTA block
   ========================================================================== */

.cta-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  color: var(--cream-2);
  text-align: center;
}
.cta-block h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 0 0 18px; letter-spacing: -0.01em; color: var(--cream-2); }
.cta-block p { font-size: 18px; color: #c7c2b9; max-width: 52ch; margin: 0 auto 34px; line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--hairline); background: var(--cream-3); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-dot { background: var(--green); }
.footer-brand span.name { font-family: var(--font-serif); font-size: 18px; }
.footer-meta { font-size: 13.5px; color: var(--text-muted-4); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 13.5px; color: var(--text-muted-3); }
.footer-social a:hover { color: var(--green); }

/* ==========================================================================
   Timeline (experience)
   ========================================================================== */

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.timeline-item:first-child { border-top: none; }
.timeline-dates { font-size: 14px; color: var(--text-muted-4); margin-bottom: 6px; }
.timeline-location { font-size: 13px; color: var(--text-muted-3); }
.timeline-item h2 { font-size: 25px; margin: 0 0 4px; line-height: 1.2; }
.timeline-company { font-size: 15px; color: var(--green); margin-bottom: 16px; }
.timeline-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.timeline-points li { font-size: 15px; line-height: 1.6; color: var(--text-muted-1); padding-left: 20px; position: relative; }
.timeline-points li::before {
  content: '';
  position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #9fca8f;
}

@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

.edu-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.edu-dates { font-size: 14px; color: var(--text-muted-4); }
.edu-degree { font-size: 17px; color: var(--ink); margin-bottom: 3px; }
.edu-school { font-size: 14px; color: var(--text-muted-4); }
@media (max-width: 640px) { .edu-item { grid-template-columns: 1fr; gap: 4px; } }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cert-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-item:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-card); }
.cert-badge { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: var(--cream-4); flex: none; }
.cert-text { font-size: 14.5px; line-height: 1.45; color: var(--body-text); }

/* ==========================================================================
   About page
   ========================================================================== */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--body-text); }
.about-aside {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--cream-4);
  position: sticky;
  top: 96px;
}
.about-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--placeholder-bg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.about-aside-label { font-size: 15px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.about-aside-value { font-size: 14px; color: var(--text-muted-3); line-height: 1.5; margin-bottom: 16px; }
.about-aside-value:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; max-width: 320px; }
}

.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.skill-group-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 14px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill { padding: 6px 12px; border: 1px solid var(--hairline-strong); border-radius: 8px; font-size: 13.5px; color: var(--body-text); background: #fff; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink); text-decoration: none;
}
.contact-list a:hover { color: var(--green); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--green); flex: none;
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-form-panel {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-lift);
}
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 13.5px; color: var(--text-muted-3); }
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--cream-2);
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); outline: none; }
.form-field textarea { resize: vertical; }
.form-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--ink);
  color: var(--cream-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--green); }
.form-note { font-size: 12.5px; color: var(--text-muted-4); margin-top: 10px; line-height: 1.5; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--green-dark);
  margin-top: 14px;
  padding: 12px 14px;
  background: #eef4e6;
  border-radius: 10px;
}
.form-success.show { display: flex; }

.avail-note { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted-3); margin-top: 8px; }
.avail-note .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dot); display: inline-block; animation: om-pulse 2s ease-in-out infinite; }

/* ==========================================================================
   Case study detail page
   ========================================================================== */

.breadcrumb { font-size: 13.5px; color: var(--text-muted-4); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted-4); }
.breadcrumb a:hover { color: var(--green); }

.case-hero { max-width: 1120px; margin: 0 auto; padding: 40px 32px 0; }
.case-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.case-client { font-size: 13px; color: var(--green); font-weight: 600; }
.case-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 22ch; }
.case-blurb { font-size: 18px; line-height: 1.65; color: var(--text-muted-1); max-width: 68ch; margin: 0 0 28px; }

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
  margin-bottom: 40px;
}
.case-fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted-4); margin-bottom: 6px; }
.case-fact-value { font-size: 15px; color: var(--ink); line-height: 1.4; }

.case-cover {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.case-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  object-fit: contain;
  background: var(--placeholder-bg);
  display: block;
}

.case-body { max-width: 760px; margin: 0 auto; padding: 0 32px 40px; }
.case-body p { font-size: 17px; line-height: 1.75; color: var(--body-text); margin-bottom: 24px; }
.case-body h2 { font-size: 28px; margin: 48px 0 16px; line-height: 1.2; }
.case-body h2:first-child { margin-top: 0; }
.case-body figure { margin: 32px 0; }
.case-body figure img {
  width: 100%; height: auto; aspect-ratio: auto;
  border-radius: var(--radius-md); border: 1px solid var(--hairline);
  object-fit: contain; background: var(--placeholder-bg); display: block;
}
.case-body figcaption { font-size: 13.5px; color: var(--text-muted-4); margin-top: 10px; text-align: center; }

.case-cta {
  max-width: 760px; margin: 60px auto 0; padding: 0 32px;
}

.case-nav {
  max-width: 1120px; margin: 0 auto; padding: 60px 32px 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--hairline); padding-top: 40px;
}
.case-nav a {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  padding: 20px; border: 1px solid var(--hairline); border-radius: 14px; transition: border-color 0.2s;
}
.case-nav a:hover { border-color: var(--hairline-strong); }
.case-nav .dir { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); }
.case-nav .title { font-family: var(--font-serif); font-size: 19px; color: var(--ink); }
.case-nav .next { text-align: right; align-items: flex-end; }
@media (max-width: 600px) { .case-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes om-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes om-bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes om-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes om-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes om-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes om-float-glow { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -18px); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page { max-width: 640px; margin: 0 auto; padding: 140px 32px 160px; text-align: center; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(60px, 12vw, 120px); color: var(--green); line-height: 1; margin-bottom: 8px; }
.error-page h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
.error-page p { font-size: 16px; color: var(--text-muted-2); margin-bottom: 32px; }
