/* =========================================================
   Dr. Nazif Mahbub — Portfolio
   Aesthetic: warm editorial / refined. Ivory paper, deep
   pine ink, terracotta accent. Fraunces display + Hanken body.
   ========================================================= */

:root {
  --paper:      #F6F1E7;
  --paper-2:    #EFE7D7;
  --paper-3:    #E8DEC9;
  --ink:        #1C2B24;
  --ink-soft:   #45554C;
  --ink-mute:   #6B7A71;
  --accent:     #BE6A38;
  --accent-deep:#9C5226;
  --green:      #2F5D50;
  --green-soft: #3C6F60;
  --line:       rgba(28, 43, 36, 0.13);
  --line-soft:  rgba(28, 43, 36, 0.07);
  --card:       #FBF8F1;
  --shadow-sm:  0 1px 2px rgba(28,43,36,.05), 0 4px 14px rgba(28,43,36,.06);
  --shadow-md:  0 10px 30px rgba(28,43,36,.10), 0 2px 8px rgba(28,43,36,.06);
  --shadow-lg:  0 30px 70px rgba(28,43,36,.16), 0 8px 24px rgba(28,43,36,.08);
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.display {
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
p { color: var(--ink-soft); }
.kicker {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 18px 0 16px; }
.section-head p { font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.7rem;
  border-radius: 100px;
  font-weight: 600; font-size: .96rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(190,106,56,.32); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(190,106,56,.4); }
.btn-accent:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,241,231,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(28,43,36,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  flex: none;
}
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: .55rem .95rem; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem;
  height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 760px; height: 760px; right: -180px; top: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(47,93,80,.16), transparent 62%);
  filter: blur(8px);
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 520px; height: 520px; left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(190,106,56,.13), transparent 65%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 1.0; margin: 22px 0 8px;
}
.hero-copy h1 em { font-style: italic; color: var(--accent-deep); }
.hero-creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.cred-chip {
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  padding: .42rem .85rem; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink); display: inline-flex; align-items: center; gap: .45rem;
}
.cred-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-lead { font-size: 1.16rem; max-width: 30em; margin-bottom: 30px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* portrait */
.portrait-wrap { position: relative; justify-self: center; }
.portrait-arc {
  position: absolute; inset: -26px -26px auto auto;
  width: 100%; height: 100%; z-index: 0;
}
.portrait {
  position: relative; z-index: 1;
  width: min(380px, 78vw); aspect-ratio: 4/5;
  border-radius: 200px 200px 28px 28px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-badge {
  position: absolute; z-index: 2; bottom: 22px; left: -22px;
  background: var(--card); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-soft);
}
.portrait-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #46b07a; box-shadow: 0 0 0 4px rgba(70,176,122,.18); flex: none; }
.portrait-badge b { font-family: var(--font-display); font-size: .98rem; display: block; }
.portrait-badge span { font-size: .76rem; color: var(--ink-mute); }

/* placeholder for missing headshot */
.portrait .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 35%, var(--paper) 0, var(--paper-3) 70%);
  color: var(--ink-mute);
}
.portrait .ph svg { width: 84px; height: 84px; opacity: .5; margin-bottom: 10px; }
.portrait .ph small { display: block; font-size: .74rem; letter-spacing: .08em; padding: 0 26px; line-height: 1.5; }

/* ---------- stats ---------- */
.stats {
  position: relative; z-index: 2;
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); overflow: hidden;
}
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 560; line-height: 1; color: var(--ink); }
.stat .num span { color: var(--accent); }
.stat .lbl { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- intro band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band .kicker { color: #E7B98C; }
.band .kicker::before { background: var(--accent); }
.band h2 { color: var(--paper); }
.band p { color: rgba(246,241,231,.8); }
.quote-lead {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.28; font-weight: 420; letter-spacing: -.01em;
  color: var(--paper);
  max-width: 24em;
}
.quote-lead em { color: #E7B98C; font-style: italic; }

/* ---------- cards / services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 28px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden; min-height: 280px;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { transform: scaleY(1); }
.svc-num { font-family: var(--font-display); font-size: .95rem; color: var(--accent-deep); font-weight: 600; }
.svc-icon {
  width: 50px; height: 50px; border-radius: 14px; margin: 6px 0 18px;
  background: var(--paper-2); display: grid; place-items: center; color: var(--green);
  transition: background .4s, color .4s;
}
.svc-card:hover .svc-icon { background: var(--green); color: var(--paper); }
.svc-icon svg { width: 25px; height: 25px; }
.svc-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.svc-card p { font-size: .96rem; flex: 1; }
.svc-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
.svc-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ---------- about ---------- */
.about-hero { padding-top: 60px; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-figure { position: sticky; top: 100px; }
.about-figure .portrait { width: 100%; border-radius: 26px; }
.figure-card { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.figure-card h4 { font-size: 1.05rem; margin-bottom: 12px; }
.figure-list li { display: flex; gap: 10px; padding: 7px 0; font-size: .92rem; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.figure-list li:last-child { border-bottom: none; }
.figure-list svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 18px; }
.prose h3 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ink); }
.prose p { margin-bottom: 16px; font-size: 1.04rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 26px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.tl-item { position: relative; padding: 0 0 32px 8px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-when { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.tl-item h4 { font-size: 1.2rem; margin: 6px 0 6px; }
.tl-item p { font-size: .97rem; }

/* ---------- credentials grid ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 8px; }
.cred-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.cred-box .ab { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-deep); font-weight: 600; }
.cred-box h4 { font-size: 1.06rem; margin: 8px 0 4px; }
.cred-box p { font-size: .9rem; margin: 0; }

/* ---------- service detail page ---------- */
.svc-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.svc-hero::before {
  content: ""; position: absolute; right: -140px; top: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(47,93,80,.13), transparent 65%); z-index: 0;
}
.crumbs { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--ink-mute); margin-bottom: 26px; position: relative; z-index: 1; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }
.svc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.svc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 16px 0 18px; line-height: 1.02; }
.svc-hero .lead { font-size: 1.16rem; max-width: 32em; }
.svc-tag { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.svc-tag span { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 100px; background: var(--paper-2); border: 1px solid var(--line); }
.svc-emblem {
  aspect-ratio: 1; border-radius: 28px; background: linear-gradient(150deg, var(--green), #234539);
  display: grid; place-items: center; color: var(--paper); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.svc-emblem svg { width: 96px; height: 96px; opacity: .95; }
.svc-emblem::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.16), transparent 55%); }

.svc-body { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.feature-list { margin-top: 10px; }
.feature-list li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; color: var(--ink-soft); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BE6A38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.svc-aside { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-sm); }
.svc-aside h4 { font-size: 1.25rem; margin-bottom: 8px; }
.svc-aside p { font-size: .96rem; margin-bottom: 18px; }
.svc-aside .meta { margin: 18px 0; }
.svc-aside .meta div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.svc-aside .meta div span:first-child { color: var(--ink-mute); }
.svc-aside .meta div span:last-child { font-weight: 600; }
.svc-aside .btn { width: 100%; justify-content: center; }
.svc-aside .btn + .btn { margin-top: 10px; }

/* service nav pills */
.svc-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.svc-pills a {
  font-size: .9rem; font-weight: 500; padding: .5rem 1rem; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft); transition: .3s var(--ease);
}
.svc-pills a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.svc-pills a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 18px; }
.contact-cards { margin-top: 30px; display: grid; gap: 14px; }
.contact-cards a, .contact-cards div {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-cards .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--green); flex: none; }
.contact-cards .ci svg { width: 21px; height: 21px; }
.contact-cards b { display: block; font-size: 1rem; }
.contact-cards span { font-size: .88rem; color: var(--ink-mute); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 38px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(190,106,56,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(70,176,122,.12); color: #2c7a52; border: 1px solid rgba(70,176,122,.3); }
.form-status.err { background: rgba(190,106,56,.1); color: var(--accent-deep); border: 1px solid rgba(190,106,56,.3); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(140deg, var(--green), #21433a);
  color: var(--paper); text-align: center; border-radius: 28px;
  padding: 64px 32px; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(190,106,56,.3), transparent 65%); }
.cta h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; position: relative; }
.cta p { color: rgba(246,241,231,.82); max-width: 34em; margin: 0 auto 28px; position: relative; }
.cta .btn { position: relative; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(246,241,231,.72); padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(246,241,231,.12); }
.footer .brand { color: var(--paper); margin-bottom: 14px; }
.footer .brand .mark { background: var(--paper); color: var(--ink); }
.footer p { color: rgba(246,241,231,.6); font-size: .92rem; max-width: 30ch; }
.footer h5 { color: var(--paper); font-family: var(--font-body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: .93rem; color: rgba(246,241,231,.7); transition: color .25s, transform .25s; }
.footer-col a:hover { color: #E7B98C; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .85rem; color: rgba(246,241,231,.5); }
.footer-bottom a:hover { color: #E7B98C; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* hero load animation */
.hero-copy > *, .portrait-wrap { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }
.portrait-wrap { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait-wrap { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 360px; }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-emblem { max-width: 280px; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 70px 0; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 14px 20px 24px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .85rem .6rem; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .form-card { padding: 26px 20px; }
}

/* ---------- headshot fallback toggle ---------- */
.portrait .ph { display: none; }
.portrait.noimg img { display: none; }
.portrait.noimg .ph { display: grid; }

/* ---------- inline icon sizing safety (footer links) ---------- */
.footer-col a svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-left: 5px; opacity: .7; }

/* ================= v2 additions ================= */

/* hero role pills (under intro text) */
.role-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.role-pill {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  padding: .4rem .85rem; border-radius: 100px;
  background: transparent; border: 1px solid var(--line);
}

/* credentials box: force readable dark text on the light card */
.cred-box h4 { color: var(--ink); }
.cred-box p  { color: var(--ink); }

/* nav: keep 6 links tidy on mid screens */
@media (max-width: 1080px) and (min-width: 721px) {
  .nav-links a { padding: .5rem .7rem; font-size: .89rem; }
  .brand small { letter-spacing: .12em; }
}

/* ---------- invite: reasons ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.reason { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.reason-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--green); color: var(--paper); display: grid; place-items: center; }
.reason-ic svg { width: 20px; height: 20px; }
.reason b { font-family: var(--font-display); font-size: 1.12rem; display: block; margin-bottom: 5px; }
.reason p { font-size: .94rem; margin: 0; }

/* ---------- invite: topic cards (inside dark band) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.topic-card { background: var(--card); border-radius: 18px; padding: 26px; }
.topic-card h4 { font-size: 1.18rem; color: var(--ink); margin-bottom: 14px; }
.topic-card ul { display: grid; gap: 10px; }
.topic-card li { position: relative; padding-left: 24px; font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }
.topic-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* ---------- podcast player + platforms ---------- */
.player-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #1b1b1b; }
.player-card iframe { display: block; width: 100%; border: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.platform {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 600; padding: .55rem 1.05rem; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.platform svg { width: 14px; height: 14px; opacity: .55; }
.platform:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- podcast episode cards ---------- */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 20px; }
.ep-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ep-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ep-num { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 8px; }
.ep-card h4 { font-size: 1.18rem; line-height: 1.2; margin-bottom: 12px; color: var(--ink); }
.ep-guest { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.ep-guest svg { width: 15px; height: 15px; }
.ep-card p { font-size: .92rem; margin: 0; }

/* ---------- podcast guest band ---------- */
.invite-band { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.invite-band > div:first-child { max-width: 40em; }
.invite-band-actions { display: flex; flex-direction: column; gap: 12px; flex: none; }
@media (max-width: 760px) { .invite-band-actions { width: 100%; } }

/* FormRobin embed wrapper */
.formrobin-wrap { min-height: 400px; }

/* ================= v8 additions ================= */

/* "What I'll do to help you" list */
.help-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px;
  margin: 8px 0 30px;
}
.help-list li {
  position: relative; padding: 4px 0 4px 34px; font-size: 1rem; color: var(--ink-soft); line-height: 1.55;
}
.help-list li strong { color: var(--ink); }
.help-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BE6A38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.help-close { font-size: 1.06rem; max-width: 60em; }
.help-close strong { color: var(--ink); }

/* Masterclass feature (home) */
.mc-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: linear-gradient(145deg, var(--ink), #243a30);
  color: var(--paper); border-radius: 28px; padding: 48px 50px;
  position: relative; overflow: hidden;
}
.mc-feature::before {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(190,106,56,.28), transparent 65%);
}
.mc-feature-body { position: relative; z-index: 1; max-width: 46em; }
.mc-feature h2 { color: var(--paper); font-size: clamp(1.8rem,3.6vw,2.7rem); margin: 12px 0 12px; }
.mc-feature p { color: rgba(246,241,231,.82); margin-bottom: 18px; }
.mc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mc-meta span {
  font-size: .82rem; font-weight: 600; padding: .4rem .85rem; border-radius: 100px;
  background: rgba(246,241,231,.1); border: 1px solid rgba(246,241,231,.2); color: var(--paper);
}
.mc-price {
  position: relative; z-index: 1; text-align: center; flex: none;
  background: var(--card); color: var(--ink); border-radius: 20px; padding: 24px 34px;
  box-shadow: var(--shadow-md);
}
.mc-price span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.mc-price b { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1.1; margin: 4px 0; }
.mc-price small { display: block; font-size: .82rem; color: var(--ink-mute); text-decoration: line-through; }

/* masterclass aside "who it's for" list */
.aside-list { margin: 4px 0 18px; display: grid; gap: 9px; }
.aside-list li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.aside-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* nav: collapse to menu earlier now there are 7 links */
@media (max-width: 1080px) and (min-width: 921px) {
  .nav-links a { padding: .5rem .58rem; font-size: .86rem; }
  .nav-cta { margin-left: 6px; }
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 14px 20px 24px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .85rem .6rem; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}

@media (max-width: 860px) {
  .mc-feature { grid-template-columns: 1fr; gap: 26px; padding: 38px 32px; text-align: left; }
  .mc-price { justify-self: start; }
}
@media (max-width: 620px) {
  .help-list { grid-template-columns: 1fr; }
}

/* ================= v9 additions ================= */

/* distinct background for the "What I'll do to help you" section */
.help-section { background: #E9EEE6; }

/* single-line section headings (wrap only on small screens) */
.section-head h2.head-1line { font-size: clamp(1.7rem, 3.3vw, 2.45rem); }
@media (min-width: 780px) {
  .section-head h2.head-1line { white-space: nowrap; }
}

/* curriculum cards sit on a dark band: force readable dark text */
.ep-card p { color: var(--ink-soft); }
.ep-card .ep-num { color: var(--accent-deep); }

/* ================= v10 additions ================= */

/* nav CTA: white text, no underline animation */
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { color: #fff; }

/* footer social icons */
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(246,241,231,.08); border: 1px solid rgba(246,241,231,.16);
  color: rgba(246,241,231,.82); transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.social a svg { width: 18px; height: 18px; }

/* Media page article cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 22px; }
.article-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; overflow: hidden;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.article-pub {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.article-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; color: var(--green); flex: none; }
.article-ic svg { width: 18px; height: 18px; }
.article-card h3 { font-size: 1.32rem; line-height: 1.25; margin-bottom: 10px; color: var(--ink); }
.article-card p { font-size: .95rem; flex: 1; margin-bottom: 16px; }
.article-card .svc-link { color: var(--ink); }
.article-card:hover .svc-link svg { transform: translateX(5px); }

/* nav now has 8 links: compact on laptops, hamburger below 1024 */
@media (max-width: 1340px) and (min-width: 1025px) {
  .nav-links a { padding: .5rem .54rem; font-size: .85rem; }
  .nav-cta { margin-left: 6px; padding: .7rem 1.05rem; }
}
@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 14px 20px 24px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .85rem .6rem; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}

/* buttons never wrap */
.btn { white-space: nowrap; }

/* ================= media kit ================= */
.kit-bios { display: grid; gap: 16px; }
.bio-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; }
.bio-card .bio-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.bio-card h4 { font-size: 1.12rem; }
.bio-card .wc { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); flex: none; }
.bio-card p { font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.7; }

.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.fmt-grid .svc-card { padding: 16px; border-radius: 14px; gap: 0; }
.fmt-grid .svc-icon { width: 38px; height: 38px; margin: 0 0 10px; }
.fmt-grid .svc-icon svg { width: 19px; height: 19px; }

.kit-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 720px; }
.kit-photo .portrait { width: 100%; aspect-ratio: 4/5; border-radius: 18px; }

.press-list { display: grid; gap: 12px; }
.press-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.press-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.press-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--green); flex: none; }
.press-ic svg { width: 20px; height: 20px; }
.press-row > div { flex: 1; }
.press-row b { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; color: var(--ink); }
.press-row > div > span { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); }
.press-row > svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }

/* footer media-kit button under social icons */
.footer-kit {
  margin-top: 16px;
  color: rgba(246,241,231,.9);
  border-color: rgba(246,241,231,.28);
  padding: .7rem 1.3rem;
}
.footer-kit:hover { border-color: #E7B98C; color: #E7B98C; }
.footer-kit svg { width: 15px; height: 15px; }

/* quick-facts / meta: keep labels on one line, right-align values consistently */
.svc-aside .meta div { align-items: flex-start; gap: 18px; }
.svc-aside .meta div span:first-child { white-space: nowrap; flex: none; }
.svc-aside .meta div span:last-child { text-align: right; }
