/* ============================================================
   Engr. Noor — Portfolio
   Design system v2: deep navy + warm cream + gilded gold
   Type: Playfair Display (headings) + Inter (body)
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-warm: #F4EFE6;
  --ink: #1A2332;
  --ink-soft: #4A5568;
  --ink-faint: #8A93A3;
  --accent: #B08D4C;
  --accent-bright: #D9B36C;
  --accent-deep: #96753A;
  --accent-soft: #F0E7D4;
  --line: #E7E0D2;
  --navy: #16202E;
  --navy-deep: #101823;
  --cream: #F5EFE3;
  --cream-soft: rgba(245, 239, 227, 0.72);
  --cream-faint: rgba(245, 239, 227, 0.5);
  --gold-grad: linear-gradient(115deg, #DDBA76 0%, #B08D4C 52%, #CFA75F 100%);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(217, 179, 108, 0.4); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.8vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

p { color: var(--ink-soft); }
p + p { margin-top: 1em; }

a { color: var(--accent-deep); text-decoration: none; }

/* gilded accent word */
.gold {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* keep the italic terminal from clipping */
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-alt { background: var(--surface-warm); }

.section h2 { margin-bottom: 1.4rem; }

/* section eyebrows — small caps with gold rule */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.3rem;
}
.section-eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1.5px;
  background: var(--gold-grad);
}
.section-eyebrow.center {
  justify-content: center;
}
.section-eyebrow.center::after {
  content: "";
  width: 2.4rem;
  height: 1.5px;
  background: var(--gold-grad);
}

.section-head { text-align: center; margin-bottom: clamp(2.75rem, 5.5vw, 4.5rem); }
.section-head .section-heading { margin-bottom: 0; }

.section-intro {
  text-align: center;
  max-width: 660px;
  margin: -1.75rem auto clamp(2.75rem, 5.5vw, 4rem);
}
.section-intro strong {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-grad);
  color: var(--navy-deep);
  box-shadow: 0 4px 18px rgba(176, 141, 76, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(176, 141, 76, 0.45);
}
/* sheen sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-soft); }

.btn-ghost-light { border-color: rgba(245, 239, 227, 0.4); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(245, 239, 227, 0.08); border-color: rgba(245, 239, 227, 0.65); }

.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}
.cta-row.center { justify-content: center; }

/* ---------- Skip link & focus visibility ---------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 110;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 28px rgba(16, 24, 35, 0.07);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  transition: color 0.4s;
}
.nav.scrolled .nav-brand { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-soft);
  transition: color 0.3s;
  padding: 0.2rem 0;
}
.nav.scrolled .nav-links a:not(.btn) { color: var(--ink-soft); }

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--accent-bright); }
.nav.scrolled .nav-links a:not(.btn):hover,
.nav.scrolled .nav-links a:not(.btn).active { color: var(--accent-deep); }
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }

.btn-nav { padding: 0.55rem 1.4rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--cream);
  transition: transform 0.3s var(--ease), background 0.4s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 65% at 78% 22%, rgba(217, 179, 108, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 55% at 8% 95%, rgba(176, 141, 76, 0.09), transparent 60%),
    linear-gradient(168deg, #121B28 0%, #16202E 55%, #1B2839 100%);
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
}

/* fine architectural grid, faded at the edges */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 239, 227, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 227, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 25%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 65% 25%, black 20%, transparent 75%);
  pointer-events: none;
}

/* ---------- Twinkling stars (dark sections) ---------- */

.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 239, 227, 0.95) 0%, rgba(245, 239, 227, 0) 72%);
  opacity: 0;
  animation: twinkle var(--tw-dur, 4s) ease-in-out var(--tw-delay, 0s) infinite;
}
.star.gold {
  background: radial-gradient(circle, rgba(221, 186, 118, 0.95) 0%, rgba(221, 186, 118, 0) 72%);
}

/* rare four-point sparkle */
.star.spark {
  border-radius: 0;
  background: var(--gold-grad);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  animation-name: sparkle;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.8); }
  50%      { opacity: 0.85; transform: scale(1); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1) rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.4; }
  .star.spark { animation: none; opacity: 0.5; transform: scale(0.8); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1.5px;
  background: var(--gold-grad);
  flex-shrink: 0;
}

.hero h1 { color: var(--cream); margin-bottom: 1.7rem; }

.hero-lead { color: var(--cream-soft); max-width: 33em; }

.hero-transform {
  margin-top: 1.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent-bright);
}

.hero .btn-ghost {
  border-color: rgba(245, 239, 227, 0.35);
  color: var(--cream);
}
.hero .btn-ghost:hover {
  background: rgba(245, 239, 227, 0.08);
  border-color: rgba(245, 239, 227, 0.6);
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--cream-faint);
}

/* hero entrance choreography */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: riseIn 0.9s var(--ease) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.42s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.5s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.58s; }
.hero-visual { animation: riseIn 1.1s 0.3s var(--ease) backwards; }

/* Portrait — gilded ring with soft glow */

.hero-visual { display: flex; justify-content: center; }

.portrait-frame {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 5px;
  background: var(--gold-grad);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(217, 179, 108, 0.22);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(217, 179, 108, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: -34px;
  border: 1px solid rgba(217, 179, 108, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--navy-deep);
}

/* ---------- Credibility strip — continues the dark band ---------- */

.cred {
  background: var(--navy-deep);
  border-top: 1px solid rgba(217, 179, 108, 0.14);
  padding: 1.6rem 0;
}

.cred-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0;
}

.cred-strip li {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cream-soft);
  white-space: nowrap;
  padding: 0 1.5rem;
}
.cred-strip li + li { border-left: 1px solid rgba(245, 239, 227, 0.15); }

/* ---------- Problem section ---------- */

.pullquote {
  position: relative;
  margin-top: 2.75rem;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid;
  border-image: var(--gold-grad) 1;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -2.4rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.6rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.85rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
/* gold hairline that draws across the top on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 141, 76, 0.35);
  box-shadow: 0 26px 56px rgba(22, 32, 46, 0.11);
}
.card:hover::before { transform: scaleX(1); }

.card-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 1rem; }

.card-outcome {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.work-card .card-link {
  margin-top: auto;
  padding-top: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.work-card .card-link::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.work-card .card-link:hover::after { transform: translateX(5px); }
.work-card .card-outcome {
  border-top: none;
  padding-top: 0;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}

/* ---------- Services ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.service {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.85rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 141, 76, 0.35);
  box-shadow: 0 26px 56px rgba(22, 32, 46, 0.11);
}
.service:hover::before { transform: scaleX(1); }

.service h3 { margin-bottom: 0.9rem; }

.service-lead-in {
  margin-top: 1em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.service ul {
  list-style: none;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
}
.service li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-grad);
}

.service-cta { align-self: flex-start; margin-top: auto; }

/* ---------- Process strip (How it begins) ---------- */

.process {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.process-title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 2.25rem;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  max-width: 980px;
  margin: 0 auto;
}

.process-steps li { text-align: center; padding: 0 0.5rem; }

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.process-steps h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-steps p { font-size: 0.93rem; }

/* ---------- Books ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.book {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.book-cover {
  position: relative;
  flex: 0 0 140px;
  border-radius: 5px;
  transform: perspective(900px) rotateY(-10deg);
  transform-origin: right center;
  box-shadow: -14px 22px 44px rgba(22, 32, 46, 0.32);
  transition: transform 0.6s var(--ease), box-shadow 0.6s;
}
.book:hover .book-cover {
  transform: perspective(900px) rotateY(-2deg) translateY(-5px);
  box-shadow: -10px 30px 56px rgba(22, 32, 46, 0.4);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}
/* spine highlight over the artwork */
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, transparent 8%);
  box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(176, 141, 76, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.85rem;
}

.book-info h3 { margin-bottom: 0.6rem; }
.book-info p { font-size: 0.98rem; }

.books-note {
  text-align: center;
  margin-top: clamp(2.75rem, 5.5vw, 4rem);
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- About ---------- */

.time-is-life {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1.2em 0;
  width: fit-content;
}

/* ---------- Beliefs ---------- */

.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 920px;
  margin: 0 auto;
}

.belief {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.85rem, 3vw, 2.4rem);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.belief:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 141, 76, 0.35);
  box-shadow: 0 22px 48px rgba(22, 32, 46, 0.09);
}

/* oversized ghost numeral */
.belief-num {
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 141, 76, 0.35);
  pointer-events: none;
}

.belief h3 { margin-bottom: 0.6rem; font-size: 1.28rem; position: relative; }
.belief p { font-size: 0.98rem; position: relative; }

/* ---------- Final conversion ---------- */

.convert {
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(217, 179, 108, 0.14), transparent 60%),
    linear-gradient(170deg, #121B28 0%, var(--navy-deep) 100%);
  overflow: hidden;
}

.convert h2 { color: var(--cream); font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.convert p { color: var(--cream-soft); }
.convert .container { position: relative; }

.reassure {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 227, 0.14);
}
.reassure p { font-size: 0.94rem; color: var(--cream-faint); }
.reassure p + p { margin-top: 0.35em; }

/* ---------- Contact ---------- */

.contact { background: var(--surface-warm); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-channels {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.2rem;
}

.contact-channels li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.channel-label {
  flex: 0 0 92px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-channels a { font-weight: 600; }
.contact-channels a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.85rem, 3vw, 2.6rem);
  box-shadow: 0 24px 60px rgba(22, 32, 46, 0.08);
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.label-optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(217, 179, 108, 0.25);
}

.form-error {
  font-size: 0.88rem;
  color: #A94434;
  margin-bottom: 1rem;
}

.form-success {
  font-size: 0.9rem;
  color: #3E6B4A;
  background: #EDF4EE;
  border: 1px solid #CBDECF;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-top: 1.1rem;
}

.form-alt {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.form-alt a { font-weight: 600; }
.form-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-deep);
  box-shadow: 0 10px 30px rgba(16, 24, 35, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(16, 24, 35, 0.35), 0 0 24px rgba(217, 179, 108, 0.4);
}
/* soft breathing ring to draw the eye once in a while */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 179, 108, 0.7);
  animation: waPulse 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; opacity: 0; }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--navy-deep);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
}
/* gilded hairline across the top */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 108, 0.55), transparent);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}

.footer-roles {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

.footer-statement {
  margin: 1.9rem auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.1rem;
  margin-bottom: 2.1rem;
}
.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-soft);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent-bright); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 239, 227, 0.38);
}

/* ---------- Scroll reveal + stagger ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger siblings inside grids */
.card-grid .reveal:nth-child(2),
.service-list .reveal:nth-child(2),
.belief-grid .reveal:nth-child(2),
.book-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid .reveal:nth-child(3),
.service-list .reveal:nth-child(3),
.belief-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(4),
.service-list .reveal:nth-child(4),
.belief-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .service, .belief, .book-cover { transition: none; }
  .hero-copy > *, .hero-visual { animation: none; }
  .btn-primary::after { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .card-grid.three { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .service-list { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .book-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 820px) {
  /* Mobile nav drawer */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 62px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 48px rgba(16, 24, 35, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0.35s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  /* drawer always sits on cream — force ink links in both nav states */
  .nav-links a:not(.btn),
  .nav.scrolled .nav-links a:not(.btn) {
    padding: 0.9rem 0;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .btn-nav { margin-top: 1.15rem; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .portrait-frame { width: min(56%, 240px); }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }

  .section-eyebrow { justify-content: flex-start; }

  .card-grid.two { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .belief-grid { grid-template-columns: 1fr; max-width: 560px; }

  .cred-strip { flex-direction: column; align-items: center; gap: 0.6rem; }
  .cred-strip li { padding: 0; }
  .cred-strip li + li { border-left: none; }

  .process-steps { grid-template-columns: 1fr; gap: 2.25rem; max-width: 480px; }
}

@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .book { flex-direction: column; align-items: center; text-align: center; }
  .book-cover { flex-basis: auto; width: 140px; }
  .book-info .status-pill { margin-left: auto; margin-right: auto; }
  .contact-channels li { flex-direction: column; gap: 0.15rem; }
  .pullquote { padding-left: 1.4rem; }
}
