/* The Brittany — thebrittany.ai */
:root {
  --navy-950: #0A0F1E;
  --navy-900: #12203E;
  --navy-700: #1E3A5F;
  --teal-500: #00B2A9;
  --teal-400: #26C6BC;
  --teal-100: #E0F7F6;
  --amber-500: #E68C1E;
  --violet-500: #5856D6;
  --green-500: #2D9B5A;
  --gray-50: #F8F9FB;
  --gray-100: #E8ECF2;
  --gray-400: #8C96A5;
  --gray-800: #222833;
  --white: #FFFFFF;

  --display-font: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --body-font: 'Inter', -apple-system, system-ui, sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* Typography */
.mono-label {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.display-xl {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display-l {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h1 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.body-l { font-size: 18px; line-height: 1.7; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 24px; } }

section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }

/* Surfaces */
.bg-navy-950 { background: var(--navy-950); color: var(--white); }
.bg-navy-900 { background: var(--navy-900); color: var(--white); }
.bg-navy-700 { background: var(--navy-700); color: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-white { background: var(--white); }
.bg-teal { background: var(--teal-500); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease-out, background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--teal-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-400); transform: scale(1.02); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  background: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); transform: scale(1.02); }
.btn-secondary-light {
  border: 1px solid var(--gray-100);
  color: var(--navy-900);
  background: transparent;
}
.btn-secondary-light:hover { background: var(--gray-50); }
.btn-white {
  background: var(--white);
  color: var(--navy-900);
}
.btn-white:hover { transform: scale(1.02); }
.btn-ghost {
  color: var(--teal-500);
  padding: 0;
  background: transparent;
}
.btn-ghost:hover { color: var(--teal-400); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.78);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out;
  box-shadow: 0 1px 2px rgba(10,15,30,0.04);
}
.card:hover { box-shadow: 0 18px 40px -20px rgba(10,15,30,0.22); transform: translateY(-2px); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .3s ease-out, backdrop-filter .3s ease-out, border-color .3s ease-out, color .3s ease-out;
  border-bottom: 1px solid transparent;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .navbar-inner { padding: 20px 48px; } }
@media (min-width: 1280px) { .navbar-inner { padding: 20px 24px; } }

.navbar.transparent { color: var(--white); }
.navbar.solid {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--gray-100);
  color: var(--navy-900);
}

.nav-logo {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--teal-500);
  position: relative;
}
.nav-logo-mark::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 3px; background: var(--navy-950);
}
.navbar.solid .nav-logo-mark::after { background: var(--navy-950); }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }

.nav-hamburger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--navy-950); color: var(--white);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform .35s ease-out;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px;
}
.mobile-drawer-nav {
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-drawer-nav a {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 32px;
}

/* Footer */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; }
}
.footer h4 {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer a { color: rgba(255,255,255,0.82); display: block; padding: 6px 0; font-size: 15px; }
.footer a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-accent-line {
  height: 4px;
  background: var(--teal-500);
}

/* Dot grid hero background */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,178,169,0.14), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(88,86,214,0.08), transparent 40%);
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Reveal animations — only hidden when JS is active, so content stays
   visible if JS fails or is disabled (progressive enhancement). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* Utility */
.eyebrow {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 16px;
  display: inline-block;
}
.eyebrow.light { color: var(--teal-400); }

.muted { color: var(--gray-400); }
.muted-light { color: rgba(255,255,255,0.62); }

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 500;
}
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--white);
  font-size: 15px;
  color: var(--gray-800);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(0,178,169,0.15);
}
.form-field .err {
  color: #C0392B;
  font-size: 12.5px;
  font-family: var(--mono-font);
}

/* Selections */
::selection { background: var(--teal-500); color: white; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   Page components — moved out of the old in-JSX <style> blocks
   ============================================================ */

/* Home — proof strip */
.proof-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.proof-item { color: rgba(255,255,255,0.82); letter-spacing: 0.06em; white-space: nowrap; }
.proof-sep { color: var(--teal-500); }

/* Home — problem */
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .problem-grid { grid-template-columns: 1fr 1.1fr; gap: 96px; } }

/* Home — solutions */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .solutions-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.hoverable-card:hover { transform: translateY(-3px); }
.dont-see {
  margin-top: 48px; padding: 36px;
  border: 1px solid var(--gray-100); border-radius: 16px;
  background: var(--gray-50);
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
@media (min-width: 800px) {
  .dont-see { flex-direction: row; justify-content: space-between; align-items: center; padding: 40px 44px; }
}

/* Home — selected work */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .work-card.featured { grid-column: 1 / -1; }
}
.work-card {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 16px; padding: 32px; height: 100%;
  display: flex; flex-direction: column;
}
.work-card.featured { background: white; border-color: var(--teal-100); box-shadow: 0 18px 40px -28px rgba(0,178,169,0.4); }
.work-card-head { display: flex; align-items: center; gap: 12px; }
.work-flag {
  font-family: var(--mono-font); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-500); background: var(--teal-100);
  padding: 4px 9px; border-radius: 999px;
}
.work-row { margin-bottom: 16px; }
.work-row-label {
  display: block; font-family: var(--mono-font); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 5px;
}
.work-row p { color: var(--gray-800); opacity: 0.84; font-size: 14.5px; line-height: 1.6; }
.work-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.work-chip {
  font-family: var(--mono-font); font-size: 11.5px; letter-spacing: 0.03em;
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--gray-100);
  background: white; color: var(--gray-800);
}
.work-proof {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--gray-100);
  font-size: 13.5px; line-height: 1.6; color: var(--gray-400); font-style: italic;
}

/* Home — how we work */
.stepper { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .stepper { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.step { position: relative; padding-top: 20px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.14); }
.step::after { content: ""; position: absolute; top: -3px; left: 0; width: 28px; height: 5px; background: var(--teal-500); }
.step-num { color: var(--teal-400); letter-spacing: 0.14em; }

/* Home — stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--gray-100); padding-top: 48px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.stat-cell { border-left: 1px solid var(--gray-100); padding-left: 20px; text-align: center; }
.stat-cell:first-child { border-left: none; padding-left: 0; }
@media (max-width: 899px) { .stat-cell:nth-child(3) { border-left: none; padding-left: 0; } }
.stat-num {
  font-family: var(--display-font); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1;
  color: var(--teal-500); letter-spacing: -0.015em;
}

/* Home — CTA grid */
#cta-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { #cta-grid { grid-template-columns: 1.4fr 1fr; } }

/* Solutions overview — blocks */
.solution-block-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1000px) { .solution-block-grid { grid-template-columns: 0.9fr 1.3fr; gap: 96px; } }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
@media (min-width: 700px) { .flow-row { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.flow-step { position: relative; padding-top: 18px; border-top: 1px solid var(--gray-100); }
.bg-navy-900 .flow-step, .bg-navy-950 .flow-step { border-top-color: rgba(255,255,255,0.12); }
.flow-step .flow-num { font-family: var(--mono-font); font-size: 12px; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 500; }
.flow-step .flow-title { font-family: var(--display-font); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.flow-step .flow-desc { font-size: 13px; line-height: 1.55; }
.flow-arrow { display: none; position: absolute; right: -11px; top: 30px; opacity: 0.35; }

/* Solution detail */
.detail-two-col { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .detail-two-col { grid-template-columns: 1fr 1.3fr; gap: 80px; } }
.detail-flow { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .detail-flow { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.detail-flow-card { padding: 28px; border: 1px solid var(--gray-100); background: white; border-radius: 14px; height: 100%; }
.detail-three-col { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .detail-three-col { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.detail-info-card { padding: 28px; background: var(--gray-50); border-radius: 14px; height: 100%; }
.proofpoint-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .proofpoint-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; } }

/* About */
.about-two-col { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .about-two-col { grid-template-columns: 1fr 1.2fr; gap: 96px; } }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .values-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.value-card { padding: 36px; border: 1px solid var(--gray-100); border-radius: 16px; background: var(--gray-50); height: 100%; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { padding: 28px; background: white; border: 1px solid var(--gray-100); border-radius: 14px; display: flex; flex-direction: column; height: 100%; }
.avatar {
  width: 72px; height: 72px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--display-font); font-weight: 700; font-size: 22px; letter-spacing: 0.04em;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.contact-form-wrap {
  background: white; border: 1px solid var(--gray-100);
  border-radius: 16px; padding: 36px; box-shadow: 0 1px 2px rgba(10,15,30,0.04);
}
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .name-row { grid-template-columns: 1fr; } }

/* Page transition */
.page-transition { animation: pageIn .4s ease-out; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
