/* ============================================
   SteadyDays — Shared Stylesheet
   All styles extracted from original index.html
   ============================================ */

:root {
  --void: #060810;
  --night: #0C1428;
  --deep: #182548;
  --horizon: #2E4888;
  --gold: #E8B84B;
  --peach: #E8845A;
  --ivory: #F5F0E8;
  --ivory-dim: #EBE4D4;
  --white: #FFFFFF;
  --body-text: #2A3550;
  --muted: #8A9BBF;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--night);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--peach));
  width: 0%;
  z-index: 1000;
  transition: width 0.05s linear;
}

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(232, 184, 75, 0.15);
  z-index: 100;
}

nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  background: rgba(12, 20, 40, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(46, 72, 136, 0.0);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

nav.scrolled {
  background: rgba(12, 20, 40, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(46, 72, 136, 0.15);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ivory);
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link:hover { color: var(--gold); }

.nav-cta {
  color: var(--night);
  background: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--peach));
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.97);
  z-index: 98;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-arcs {
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero-arcs svg { will-change: transform; }

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ivory);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold));
  background-size: 200% 200%;
  color: var(--night);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.45s ease;
}

.hero .hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.1s forwards;
}

.hero-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--peach));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 132, 90, 0.25);
}

.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--peach), transparent);
  opacity: 0.25;
  margin: 0 48px;
}

.section-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.04;
  filter: blur(80px);
}

.glow-gold { background: radial-gradient(circle, var(--gold), var(--peach) 80%); }
.glow-peach { background: radial-gradient(circle, var(--peach), var(--gold) 80%); }

.about {
  padding: 120px 48px;
  background: var(--void);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--peach) 100%);
  opacity: 0.4;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
  opacity: 0.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
}

.page-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.page-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-subtitle p + p { margin-top: 20px; }

.about-me {
  padding: 120px 48px;
  background: var(--night);
  position: relative;
  overflow: hidden;
}

.about-me-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  max-width: 1100px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-me-photo { position: relative; }

.photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 50%, var(--gold) 100%);
  opacity: 0.3;
  z-index: 0;
}

.photo-inner {
  position: relative;
  z-index: 1;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
}

.photo-inner svg { opacity: 0.25; }

.photo-inner span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.about-me-arcs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 100%;
  max-width: 900px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.about-me-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 8px;
}

.about-me-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.about-me-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.about-me-content p + p { margin-top: 16px; }

.pillars {
  padding: 100px 48px;
  background: var(--night);
  position: relative;
  overflow: hidden;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin-top: 48px;
}

.pillar {
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep) 60%, rgba(232, 184, 75, 0.04) 100%);
  border-left: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pillar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(232, 184, 75, 0.04) 40%,
    rgba(232, 184, 75, 0.08) 50%,
    rgba(232, 184, 75, 0.04) 60%,
    transparent 80%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.pillar:hover::after {
  left: 120%;
}

.pillar:nth-child(2) { border-left-color: var(--peach); }
.pillar:nth-child(3) { border-left-color: var(--peach); }
.pillar:nth-child(4) { border-left-color: var(--gold); opacity: 0.85; }

.pillar:nth-child(2)::after,
.pillar:nth-child(3)::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(232, 132, 90, 0.04) 40%,
    rgba(232, 132, 90, 0.08) 50%,
    rgba(232, 132, 90, 0.04) 60%,
    transparent 80%
  );
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6, 8, 16, 0.5);
}

.pillar-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.faq {
  padding: 120px 48px;
  background: var(--void);
  position: relative;
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--peach) 100%);
  opacity: 0.4;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
}

.faq-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 16px;
}

.faq-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--deep);
  border-left: 3px solid var(--gold);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:nth-child(even) { border-left-color: var(--peach); }

.faq-item:hover {
  box-shadow: 0 8px 32px rgba(6, 8, 16, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ivory);
  transition: color 0.3s;
  gap: 16px;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.35s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
}

.faq-icon::before {
  width: 12px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px; height: 12px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, opacity 0.35s;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.book {
  padding: 120px 48px;
  background: var(--night);
  position: relative;
  overflow: hidden;
}

.book-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.book h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 16px;
}

.book-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 48px;
}

.book-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.flow-step {
  width: 100%;
  max-width: 520px;
}

.flow-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 16px;
  text-align: center;
}

.flow-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-option {
  padding: 14px 28px;
  background: var(--deep);
  border: 1px solid var(--horizon);
  color: var(--ivory);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.flow-option:hover,
.flow-option.selected {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.08);
  color: var(--gold);
}

.flow-option.selected {
  background: rgba(232, 184, 75, 0.12);
  box-shadow: 0 0 0 1px var(--gold);
}

.calendly-area {
  margin-top: 40px;
  width: 100%;
  max-width: 520px;
  min-height: 160px;
  background: var(--deep);
  border: 1px dashed var(--horizon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
  transition: all 0.5s ease;
}

.calendly-area.active {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.04);
}

.calendly-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.calendly-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.calendly-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--night);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: 8px;
}

.calendly-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--peach));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 132, 90, 0.2);
}

.contact {
  padding: 120px 48px;
  background: var(--void);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--peach) 100%);
  opacity: 0.4;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 20px;
}

.contact-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-email-link:hover { color: var(--peach); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--night);
  border: 1px solid var(--deep);
  color: var(--ivory);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--horizon);
  opacity: 0.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--night);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--peach));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 132, 90, 0.2);
}

.form-privacy-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.form-privacy-note a {
  color: var(--gold);
  text-decoration: none;
}

.form-privacy-note a:hover {
  text-decoration: underline;
}

footer {
  padding: 28px 48px;
  background: var(--deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ivory);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-tagline {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer-legal {
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.footer-social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--deep);
  border: 1px solid var(--horizon);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s, background 0.3s, border-color 0.3s;
  pointer-events: none;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

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

.nav-link:focus-visible,
.nav-cta:focus-visible,
.hero-cta:focus-visible,
.flow-option:focus-visible,
.calendly-btn:focus-visible,
.form-submit:focus-visible,
.faq-question:focus-visible,
.back-to-top:focus-visible,
.case-study-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children .pillar:nth-child(1) { transition-delay: 0s; }
.stagger-children .pillar:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .pillar:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .pillar:nth-child(4) { transition-delay: 0.45s; }

@media (max-width: 1100px) and (min-width: 901px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .about-grid, .contact-grid, .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-me-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-me-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-me-content { text-align: center; }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  nav, .hero, .about, .about-me, .pillars, .faq, .book, .contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  nav { padding: 16px 24px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 24px; flex-wrap: wrap; gap: 8px; }
  .flow-options { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .flow-option { text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ============================================
   Multi-page additions
   ============================================ */

/* Page transitions */
.page-enter {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Active nav link indicator */
.nav-link.active {
  color: var(--gold);
}

/* Ensure consistent page min-height */
.page-content {
  min-height: calc(100vh - 200px);
}

/* ============================================
   Services page
   ============================================ */

.page-header {
  padding: 160px 48px 120px;
  background: var(--night);
  position: relative;
  overflow: hidden;
}

.service-category {
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.service-category--void {
  background: var(--void);
}

.service-category--void::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--peach) 100%);
  opacity: 0.4;
}

.service-category--night {
  background: var(--night);
}

.service-closer {
  margin-top: 20px;
  color: var(--gold);
  font-style: italic;
}

.service-closer em {
  font-style: italic;
}

.service-deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin-top: 48px;
}

.service-deliverables .pillar {
  padding: 24px 28px;
}

.service-deliverables .pillar h3 {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .page-header {
    padding: 140px 24px 80px;
  }

  .service-category {
    padding-left: 24px;
    padding-right: 24px;
  }

  .service-deliverables {
    grid-template-columns: 1fr;
  }
}

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

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-cta-section {
  text-align: center;
}

/* ============================================
   Case Study pages
   ============================================ */

.cs-header {
  padding: 160px 48px 80px;
  background: var(--night);
  text-align: center;
}

.cs-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.2);
  margin-bottom: 20px;
}

.cs-client {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.cs-title {
  color: var(--ivory);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.3;
}

.cs-metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  background: var(--deep);
  border-radius: 8px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cs-metric {
  text-align: center;
}

.cs-metric-value {
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.cs-metric-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.cs-narrative {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 48px;
  background: var(--night);
}

.cs-block {
  margin-bottom: 32px;
}

.cs-block-label,
h2.cs-block-label {
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cs-block p {
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px 40px;
  background: var(--night);
}

.cs-tag {
  background: var(--deep);
  border: 1px solid rgba(46, 72, 136, 0.4);
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
}

.cs-back {
  text-align: center;
  padding: 60px 48px;
  background: var(--void);
}

.cs-back a {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.cs-back a:hover {
  color: var(--peach);
}

@media (max-width: 700px) {
  .cs-header {
    padding: 140px 24px 24px;
  }

  .cs-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .cs-narrative {
    padding: 40px 24px;
  }

  .cs-tags {
    padding: 0 24px 40px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar,
  .faq-item,
  .footer-social a,
  .phone-mockup-link,
  .case-preview-mobile a {
    transition: none !important;
  }

  .pillar:hover,
  .faq-item:hover,
  .phone-mockup-link:hover {
    transform: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--night);
  border-top: 1px solid rgba(46, 72, 136, 0.3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.cookie-btn--decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(46, 72, 136, 0.3);
}

.cookie-btn--decline:hover {
  color: var(--ivory);
  border-color: rgba(46, 72, 136, 0.6);
}

.cookie-btn--accept {
  background: var(--gold);
  color: var(--night);
}

.cookie-btn--accept:hover {
  background: #d4982e;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    padding: 10px 16px;
  }
}

/* ============================================
   Interactive case-study diagrams
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sd-diagram-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
}

.sd-diagram {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

/* --- Connectors --- */
.sd-connector {
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 400ms ease;
}
.sd-connector.is-ready {
  opacity: 1;
  transition:
    stroke-dashoffset 900ms cubic-bezier(.4,0,.2,1),
    stroke 240ms ease,
    opacity 400ms ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.sd-diagram-wrap.is-revealed .sd-connector.is-ready {
  stroke-dashoffset: 0 !important;
}
.sd-diagram-wrap.has-active .sd-connector:not(.is-active) {
  opacity: .25;
}
.sd-connector.is-active {
  stroke: var(--gold);
  stroke-width: 2;
}

/* --- Review Gate marker (benchmark only) --- */
.sd-gate-line,
.sd-gate-label {
  opacity: 0;
  transition: opacity 400ms ease;
  transition-delay: 520ms;
}
.sd-diagram-wrap.is-revealed .sd-gate-line,
.sd-diagram-wrap.is-revealed .sd-gate-label {
  opacity: 1;
}

/* Mobile pipeline: the vertical connector stem runs right down the middle of
   where each node's sub-text caption and the "REVIEW GATE" label live. Paint
   a halo in the page bg colour behind each glyph so the connector line is
   cleanly masked where it crosses text. */
.cs-arch-mobile .sd-node__sub,
.cs-arch-mobile .sd-gate-label {
  stroke: var(--night);
  stroke-width: 3;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

/* --- Nodes --- */
.sd-node {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
  transform: scale(.85);
  transition:
    transform 240ms cubic-bezier(.4,0,.2,1),
    filter 240ms ease,
    opacity 240ms ease;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Let taps on child labels/sub-text resolve to the node's rect so iOS Safari
   reliably fires the click handler on the parent <g>. */
.sd-node__label,
.sd-node__sub {
  pointer-events: none;
}

/* Entrance: staggered fade/scale into final state */
.sd-diagram-wrap.is-revealed .sd-node {
  opacity: 1;
  transform: scale(1);
  transition-duration: 500ms;
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* Steady state: after entrance JS adds is-entered, delays clear */
.sd-diagram-wrap.is-entered .sd-node {
  transition-duration: 240ms;
  transition-delay: 0ms;
}

.sd-node__bg {
  transition: stroke 200ms ease, stroke-width 200ms ease;
}

/* Dim unrelated nodes when one is locked (specificity 0,4,1 > entered rule) */
.sd-diagram-wrap.has-active .sd-node:not(.is-active) {
  opacity: .38;
}

/* Focus — gold stroke on the bg, suppress native outline */
.sd-node:focus,
.sd-node:focus-visible {
  outline: 0 !important;
}
.sd-diagram-wrap .sd-node:focus-visible .sd-node__bg {
  stroke: var(--gold);
  stroke-width: 2.5;
}

/* Active lock — same specificity as entrance rules, declared after, wins */
.sd-diagram-wrap .sd-node.is-active {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(232, 184, 75, .55));
}
.sd-diagram-wrap .sd-node.is-active .sd-node__bg {
  stroke: var(--gold);
  stroke-width: 2.5;
}

/* Hover — specificity 0,3,1 + pseudo matches entrance rule, declared after, wins */
@media (hover: hover) {
  .sd-diagram-wrap .sd-node:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(232, 184, 75, .45));
  }
  .sd-diagram-wrap .sd-node:hover .sd-node__bg {
    stroke: var(--gold);
    stroke-width: 2;
  }
}

/* --- Hit areas (invisible, sized for touch) --- */
.sd-hitarea {
  fill: transparent;
  stroke: none;
  pointer-events: all;
  cursor: pointer;
}

/* --- Hover card (inline; collapsed by default, expands only while hovering) --- */
.sd-tooltip {
  position: relative;
  max-width: 560px;
  max-height: 0;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #1E2F58 0%, var(--deep) 100%);
  color: var(--ivory);
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  box-shadow: none;
  pointer-events: none;
  transition:
    max-height 280ms ease,
    margin 280ms ease,
    padding 280ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.sd-tooltip.is-visible {
  max-height: 240px;
  margin: 22px auto 0;
  padding: 16px 20px;
  border-color: rgba(232, 184, 75, .6);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(232, 184, 75, .22),
    0 0 28px rgba(232, 184, 75, .12);
}
.sd-tooltip__title {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sd-tooltip__desc {
  display: block;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Detail panel (locked state below diagram) --- */
.sd-detail {
  position: relative;
  max-width: 720px;
  max-height: 0;
  margin: 0 auto;
  padding: 0 22px;
  overflow: hidden;
  background: var(--deep);
  border-left: 3px solid transparent;
  border-radius: 6px;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 320ms ease,
    margin 320ms ease,
    padding 320ms ease,
    border-color 320ms ease,
    opacity 280ms ease,
    transform 280ms ease;
  pointer-events: none;
}
.sd-detail.is-open {
  max-height: 600px;
  margin: 28px auto 0;
  padding: 20px 44px 20px 22px;
  border-left-color: var(--gold);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sd-detail__eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.sd-detail__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.25;
}
.sd-detail__desc {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory-dim);
}
.sd-detail__artefacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-detail__artefacts li {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ivory);
  background: rgba(232, 184, 75, .08);
  border: 1px solid rgba(232, 184, 75, .25);
  padding: 4px 10px;
  border-radius: 999px;
}
.sd-detail__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--ivory-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: inherit;
}
.sd-detail__close:hover,
.sd-detail__close:focus-visible {
  color: var(--gold);
  outline: none;
  background: rgba(232, 184, 75, .08);
}

/* --- Step label strip (benchmark only) --- */
.sd-steps {
  max-width: 720px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  font-weight: 600;
}
.sd-steps__progress strong {
  color: var(--gold);
  font-weight: 700;
}
.sd-steps__hint {
  color: var(--horizon);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 12px;
}

/* --- Hub chips (notion-os only) --- */
.sd-chips {
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sd-chip {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  background: transparent;
  color: var(--ivory-dim);
  border: 1px solid rgba(232, 184, 75, .3);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: .04em;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
@media (hover: hover) {
  .sd-chip:hover {
    color: var(--night);
    background: var(--gold);
    border-color: var(--gold);
  }
}
.sd-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.sd-chip.is-active {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}

/* --- Data pulse (benchmark) --- */
.sd-pulse {
  opacity: 0;
  fill: var(--gold);
}
.sd-diagram-wrap.is-revealed .sd-pulse {
  opacity: 1;
}

/* --- Hub centre pulse ring (notion-os) --- */
.sd-hub-pulse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sdHubPulse 4s ease-out infinite;
  opacity: 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}
.sd-diagram-wrap.is-revealed .sd-hub-pulse {
  animation-delay: 1200ms;
}
@keyframes sdHubPulse {
  0%   { transform: scale(1);   opacity: 0; }
  20%  { opacity: .45; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* --- Mobile tap modal (only active below 700px) --- */
.sd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.sd-modal[hidden] { display: none; }
.sd-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sd-modal__card {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, #1E2F58 0%, var(--deep) 100%);
  border: 1px solid rgba(232, 184, 75, .55);
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(232, 184, 75, .22),
    0 0 40px rgba(232, 184, 75, .12);
  text-align: left;
  transform: translateY(14px) scale(.97);
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
  -webkit-overflow-scrolling: touch;
}
.sd-modal.is-open .sd-modal__card {
  transform: translateY(0) scale(1);
}
.sd-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--ivory-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sd-modal__close:hover,
.sd-modal__close:focus-visible {
  color: var(--gold);
  background: rgba(232, 184, 75, .1);
  outline: none;
}
.sd-modal__eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.sd-modal__title {
  margin: 0 0 12px;
  padding-right: 44px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.25;
}
.sd-modal__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory);
}
.sd-modal__artefacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-modal__artefacts li {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ivory);
  background: rgba(232, 184, 75, .08);
  border: 1px solid rgba(232, 184, 75, .3);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Above 700px the desktop experience is authoritative — modal never shows */
@media (min-width: 701px) {
  .sd-modal { display: none !important; }
}

/* Lock body scroll while modal is open */
body.sd-modal-lock {
  overflow: hidden;
}

/* --- Reduced-motion overrides --- */
body.reduce-motion .sd-connector,
body.reduce-motion .sd-connector.is-ready,
body.reduce-motion .sd-node,
body.reduce-motion .sd-tooltip,
body.reduce-motion .sd-detail,
body.reduce-motion .sd-gate-line,
body.reduce-motion .sd-gate-label {
  transition: none !important;
  transition-delay: 0ms !important;
}
body.reduce-motion .sd-connector,
body.reduce-motion .sd-connector.is-ready {
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
}
body.reduce-motion .sd-node {
  opacity: 1 !important;
  transform: none !important;
}
body.reduce-motion .sd-node.is-active {
  transform: none !important;
}
body.reduce-motion .sd-pulse,
body.reduce-motion .sd-hub-pulse {
  display: none;
}
body.reduce-motion .sd-gate-line,
body.reduce-motion .sd-gate-label {
  opacity: 1 !important;
}
