/* ============================================================
   SECTIONS — sections.css
   Hero, Work, Proof, Writing, Contact, Footer
   Amber-gold + electric teal theme with CSS animations
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 1.5rem 5rem;
  position: relative; overflow: hidden;
}

/* Aurora background blobs */
.hero-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.ao-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,.18) 0%, transparent 70%);
  top: -15%; right: -8%;
  animation: orb1 18s ease-in-out infinite;
}
.ao-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,184,166,.14) 0%, transparent 70%);
  bottom: -15%; left: -8%;
  animation: orb2 24s ease-in-out infinite;
}
.ao-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(139,92,246,.1) 0%, transparent 70%);
  top: 40%; left: 28%;
  animation: orb3 30s ease-in-out infinite;
}
@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-25px,35px) scale(1.08); }
  66%     { transform: translate(18px,-28px) scale(.96); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,-25px) scale(1.06); }
}
@keyframes orb3 {
  0%,100% { transform: translate(0,0) scale(1);     opacity: .7; }
  40%     { transform: translate(28px,18px) scale(1.12); opacity: 1; }
  80%     { transform: translate(-18px,28px) scale(.9); }
}

/* Subtle diagonal grid on hero */
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(125,211,252,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero inner grid */
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 5rem;
  }
}

/* Hero text content */
.hero-content { width: 100%; }
@media (max-width: 899px) { .hero-content { text-align: center; } }

.hero-h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  font-weight: 700; line-height: 1; margin-bottom: .9rem; color: var(--ink);
}
.hero-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--sky3) 0%, var(--sky2) 35%, var(--violet2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role-line {
  font-size: clamp(.7rem, 1.3vw, .82rem); letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
  /* Shimmer sweep */
  background: linear-gradient(90deg, var(--sky2), var(--violet2), var(--sky2));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 6s ease infinite;
}
.hero-role-line::before {
  content: ''; width: 1.4rem; height: 1px;
  background: linear-gradient(90deg, var(--sky2), var(--violet2));
  flex-shrink: 0; -webkit-text-fill-color: unset;
  display: block;
}
@keyframes shimmer-text {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@media (max-width: 899px) { .hero-role-line { justify-content: center; } }

.hero-tagline {
  font-size: clamp(.9rem, 1.8vw, 1.05rem); color: var(--muted);
  line-height: 1.78; max-width: 54ch; margin-bottom: 1.4rem;
}
@media (max-width: 899px) { .hero-tagline { margin-left: auto; margin-right: auto; } }

/* Availability status chip */
.hero-status {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.22);
  color: #6ee7b7; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1.8rem;
}
@media (max-width: 899px) {
  .hero-status { display: flex; justify-content: center; margin-left: auto; margin-right: auto; }
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Stats strip */
.hero-stats {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  margin-top: .4rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
}
@media (max-width: 899px) { .hero-stats { justify-content: center; } }
@media (max-width: 500px) { .hero-stats { gap: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; width: 100%; align-items: start; } }
.hstat { text-align: left; }
@media (max-width: 899px) { .hstat { text-align: center; } }
.hstat-n {
  font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700; color: var(--amber2); line-height: 1;
}
.hstat-l {
  font-size: .62rem; color: var(--muted); letter-spacing: .07em;
  text-transform: uppercase; margin-top: .25rem; font-weight: 600;
}
.hstat-div { width: 1px; height: 36px; background: rgba(125,211,252,.2); flex-shrink: 0; }
@media (max-width: 500px) { .hstat-div { display: none; } }

/* CTA buttons */
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
@media (max-width: 899px) { .hero-ctas { justify-content: center; } }
.hcta-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--amber), #0284c7);
  color: #07080f; border-radius: 100px; padding: .9rem 2rem;
  font-size: .88rem; font-weight: 800; letter-spacing: .04em;
  transition: transform .25s, box-shadow .25s; text-decoration: none;
  position: relative; overflow: hidden;
}
.hcta-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .5s;
}
.hcta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(56,189,248,.4); }
.hcta-primary:hover::before { transform: translateX(100%); }
.hcta-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid rgba(125,211,252,.28); border-radius: 100px;
  padding: .9rem 2rem; font-size: .88rem; font-weight: 600; color: var(--ink);
  transition: all .25s; text-decoration: none;
}
.hcta-ghost:hover { border-color: var(--amber2); color: var(--amber2); background: rgba(56,189,248,.08); transform: translateY(-2px); }

/* Hero photo column */
.hero-photo-col {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0;
}
@media (max-width: 899px) { .hero-photo-col { order: -1; } }

.hero-photo-wrap { flex-shrink: 0; }

.hero-photo-frame {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
}
@media (min-width: 480px)  { .hero-photo-frame { width: 148px; height: 148px; } }
@media (min-width: 900px)  {
  .hero-photo-frame { width: 298px; height: 388px; border-radius: 18px; }
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.hero-photo-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Floating animation on desktop */
@media (min-width: 900px) {
  .hero-photo-col { animation: photo-float 7s ease-in-out infinite; }
}
@keyframes photo-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* Credential badges */
.hero-cred-badges { display: none; flex-direction: column; gap: .55rem; width: 300px; }
@media (min-width: 900px) { .hero-cred-badges { display: flex; } }
.hcb {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .74rem; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); padding: .6rem .9rem;
  border-radius: var(--r-sm); line-height: 1.45;
  transition: border-color .2s, color .2s, transform .2s;
}
.hcb:hover { border-color: rgba(125,211,252,.3); color: var(--ink); transform: translateX(3px); }
.hcb-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.hcb-blue    { background: var(--amber2); }
.hcb-cyan    { background: var(--teal2); }
.hcb-emerald { background: var(--emerald); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; right: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; z-index: 2;
}
.sc-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(125,211,252,.35));
  position: relative; overflow: hidden;
}
.sc-line::after {
  content: ''; position: absolute; top: -100%; width: 100%; height: 100%;
  background: var(--amber2); animation: sc 2.2s ease-in-out infinite;
}
@keyframes sc { 0%{top:-100%} 100%{top:100%} }
.sc-txt {
  font-size: .52rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); writing-mode: vertical-rl;
}
@media (max-width: 600px) { .scroll-cue { display: none; } }


/* ── WORK ─────────────────────────────────────────────────── */
#work {
  background: var(--surface);
  position: relative;
}
/* Subtle diagonal grid */
#work::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(
      -45deg, transparent, transparent 38px,
      rgba(56,189,248,.025) 38px, rgba(56,189,248,.025) 39px
    );
}
#work .sw { position: relative; z-index: 1; }

/* Section eyebrow */
.eyebrow {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal2); margin-bottom: .7rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ''; width: 1.4rem; height: 1px; background: var(--teal2); opacity: .7; }
.sec-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.1; margin-bottom: .8rem;
}
.sec-title em { font-style: italic; color: var(--amber2); }
.sec-sub { font-size: .95rem; color: var(--muted); max-width: 56ch; line-height: 1.85; }
.sec-head { margin-bottom: 3rem; }

/* Impact strip */
.impact-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid rgba(56,189,248,.15);
  border-radius: var(--r); padding: 2rem 2.5rem; margin-bottom: 3.5rem;
  position: relative; overflow: hidden;
}
.impact-strip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal2), var(--violet2));
}
@media (max-width: 600px) { .impact-strip { gap: 1.5rem; padding: 1.5rem 1.2rem; } }
.is-item { text-align: center; }
.is-n {
  font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--amber2); line-height: 1;
  display: block; margin-bottom: .3rem;
}
.is-l { font-size: .62rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.is-div { width: 1px; height: 44px; background: rgba(125,211,252,.2); flex-shrink: 0; }
@media (max-width: 500px) { .is-div { display: none; } }

/* Work subhead */
.work-subhead {
  font-family: 'Fraunces', serif; font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: var(--ink); margin: 3.5rem 0 1.2rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .8rem;
}
.work-subhead::before {
  content: ''; width: 3px; height: 1.2em;
  background: linear-gradient(to bottom, var(--amber), var(--teal2));
  border-radius: 2px; flex-shrink: 0;
}

/* ── Timeline ── */
.timeline { position: relative; max-width: 780px; }
.tl-spine { position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-fill  { width: 100%; background: linear-gradient(to bottom, var(--amber), var(--teal2)); height: 0; transition: height .15s; }
.tl-row   { display: flex; gap: 1.5rem; margin-bottom: .9rem; position: relative; padding-right: 1rem; }
.tl-l     { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 34px; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(125,211,252,.25);
  flex-shrink: 0; margin-top: .3rem; z-index: 2;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.tl-row.vis .tl-dot {
  background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 12px rgba(56,189,248,.6), 0 0 24px rgba(56,189,248,.2);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(56,189,248,.6), 0 0 24px rgba(56,189,248,.2); }
  50%     { box-shadow: 0 0 18px rgba(56,189,248,.8), 0 0 36px rgba(56,189,248,.35); }
}
.tl-body { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.tl-hdr  {
  padding: 1.2rem 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .2s; user-select: none;
}
.tl-hdr:hover { background: var(--card2); }
.tl-hl { flex: 1; }
.tl-period { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal2); margin-bottom: .15rem; font-weight: 700; }
.tl-org    { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.tl-role   { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tl-chev   { flex-shrink: 0; color: var(--muted); transition: transform .3s; transform-origin: center; }
.tl-chev.open { transform: rotate(180deg); }
.tl-exp   { display: none; padding: 0 1.4rem 1.4rem; border-top: 1px solid var(--border); }
.tl-exp.open { display: block; }
.tl-exp p { font-size: .84rem; color: var(--muted); line-height: 1.85; margin-top: 1rem; margin-bottom: .7rem; }
.tl-exp .scale-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.22);
  color: var(--teal2); font-size: .68rem; padding: .28rem .75rem;
  border-radius: 6px; margin-bottom: .5rem;
}
.tl-ach {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22);
  color: var(--amber2); font-size: .68rem; font-weight: 700;
  padding: .32rem .8rem; border-radius: 6px; margin-top: .7rem; margin-bottom: .5rem;
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.pill  { font-size: .6rem; padding: .2rem .65rem; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; letter-spacing: .05em; }

/* ── Expertise Pillars ── */
.pillars-grid {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: .5rem;
}
@media (min-width: 700px)  { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  isolation: isolate;
}
@keyframes spin-border { to { transform: rotate(360deg); } }

/* Subtle glow border on hover instead of rotating gradient */
.pillar-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px var(--amber2);
  opacity: 0; z-index: 1; pointer-events: none;
  transition: opacity .3s;
}
.pillar-card:hover::before { opacity: 1; }
/* Amber gradient bottom bar */
.pillar-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal2));
  transition: width .4s cubic-bezier(.23,1,.32,1);
}
.pillar-card:hover {
  border-color: rgba(56,189,248,.25); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56,189,248,.1), 0 4px 12px rgba(0,0,0,.3);
}
.pillar-card:hover::after { width: 100%; }
.pillar-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; line-height: 1.3; }
.pillar-desc  { font-size: .82rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.2rem; flex: 1; }
.pillar-detail { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.2rem; }
.pd-item { display: flex; flex-direction: column; gap: .15rem; }
.pd-label { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal2); font-weight: 700; }
.pd-val   { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.pillar-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.pchip {
  font-size: .62rem; padding: .25rem .7rem;
  border: 1px solid rgba(125,211,252,.18); color: var(--amber3);
  border-radius: 100px; letter-spacing: .04em; transition: all .2s;
}
.pchip:hover { background: rgba(56,189,248,.1); border-color: var(--amber2); }

/* ── Key Initiatives ── */
.initiatives-grid {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .initiatives-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .initiatives-grid { grid-template-columns: repeat(3, 1fr); } }

.ini-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem;
  display: flex; flex-direction: column; gap: .9rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.ini-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal2));
  opacity: 0; transition: opacity .3s;
}
.ini-card:hover {
  border-color: rgba(56,189,248,.22); transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(56,189,248,.08);
}
.ini-card:hover::before { opacity: 1; }
.ini-top { display: flex; flex-direction: column; gap: .45rem; }
.ini-eyebrow {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal2); font-weight: 700;
}
.ini-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ini-desc  { font-size: .84rem; color: var(--muted); line-height: 1.72; }
.ini-scale { display: flex; flex-wrap: wrap; gap: .4rem; }
.ini-tag {
  font-size: .62rem; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.18);
  color: var(--amber3); padding: .2rem .65rem; border-radius: 100px; font-weight: 600;
}
.ini-more { font-size: .8rem; color: var(--dim); line-height: 1.72; border-top: 1px solid var(--border); padding-top: .9rem; margin-top: -.1rem; }


/* ── Teaching & Mentorship ── */
.mentor-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.4rem; margin-top: 1.5rem; margin-bottom: 3.5rem;
}
@media (min-width: 640px) { .mentor-grid { grid-template-columns: 1fr 1fr; } }

.mentor-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem 1.6rem;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.mentor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--violet2));
}
.mentor-card:hover {
  border-color: rgba(56,189,248,.2); transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(56,189,248,.08);
}
.mentor-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.mentor-eyebrow {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky2); font-weight: 700; margin-bottom: .5rem;
}
.mentor-title {
  font-family: 'Fraunces', serif; font-size: 1.08rem; font-weight: 700;
  color: var(--ink); margin-bottom: .7rem; line-height: 1.3;
}
.mentor-desc { font-size: .84rem; color: var(--muted); line-height: 1.72; margin-bottom: 1rem; }
.mentor-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── PROOF ────────────────────────────────────────────────── */
#proof { background: var(--bg2); }

.toptal-block {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid rgba(56,189,248,.18);
  border-radius: var(--r); overflow: hidden; margin-bottom: 1rem;
  position: relative;
}
.toptal-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal2), var(--violet2));
}
@media (min-width: 768px) { .toptal-block { grid-template-columns: 1fr 1fr; } }

.tb-left { padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
.tb-num  {
  font-family: 'Fraunces', serif; font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--amber2), var(--amber), var(--teal2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tb-lbl   { font-size: .78rem; color: var(--muted); letter-spacing: .06em; max-width: 26ch; line-height: 1.5; }
.tb-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.22);
  color: var(--teal2); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; padding: .4rem .9rem;
  border-radius: 100px; width: fit-content;
}
.tb-stats { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: .5rem; }
@media (max-width: 500px) { .tb-stats { gap: 1.2rem; flex-direction: column; } }
.tbs      { text-align: left; }
.tbs-n    {
  font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; color: var(--amber2); line-height: 1;
}
.tbs-l    { font-size: .6rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; line-height: 1.4; }
.toptal-badge-inline { margin-top: .5rem; }
.tb-right { overflow: hidden; position: relative; }
.tb-right img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; display: block; }
.tb-img-cap { padding: .75rem 1rem; text-align: center; font-size: .75rem; color: var(--muted); font-style: italic; background: var(--card); }

/* Testimonials */
.test-grid {
  display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .test-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .test-featured { grid-column: 1 / -1; }
}
.test-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
}
.test-card::before {
  content: '"'; position: absolute; top: 1rem; right: 1.5rem;
  font-family: 'Fraunces', serif; font-size: 4rem; color: rgba(255,255,255,.04); line-height: 1;
}
.test-card:hover {
  border-color: rgba(56,189,248,.2); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(56,189,248,.07);
}
.test-quote  { font-size: .9rem; color: var(--ink); line-height: 1.75; position: relative; z-index: 1; font-style: italic; }
.test-featured .test-quote { font-size: 1.05rem; }
.test-author { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.test-name   { font-weight: 700; color: var(--amber2); font-size: .95rem; }
.test-role   { font-size: .78rem; color: var(--muted); }
.test-featured { background: linear-gradient(135deg, var(--card2), var(--card)); border-color: rgba(56,189,248,.15); }

/* Education */
.creds-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.edu-grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 700px) { .edu-grid { display: grid; grid-template-columns: 1fr 1fr; } }
.edu-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  transition: border-color .3s, transform .3s;
}
.edu-card:hover { border-color: rgba(56,189,248,.25); transform: translateY(-3px); }
.edu-icon        { font-size: 2rem; flex-shrink: 0; margin-top: .1rem; }
.edu-degree      { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; line-height: 1.25; }
.edu-institution { font-size: .72rem; color: var(--amber2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.edu-detail      { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* Certificate list */
.cert-list { display: flex; flex-direction: column; gap: .5rem; }
.cl-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .9rem 1.2rem;
  transition: border-color .25s, transform .25s;
}
.cl-item:hover { border-color: rgba(56,189,248,.25); transform: translateX(4px); }
.cl-icon { font-size: 1.2rem; flex-shrink: 0; }
.cl-info { flex: 1; min-width: 0; }
.cl-name   { font-size: .82rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.cl-issuer { font-size: .68rem; color: var(--muted); margin-top: .1rem; }
.cl-badge  {
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--emerald); font-weight: 700; flex-shrink: 0;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2);
  padding: .2rem .6rem; border-radius: 100px;
}

/* Philosophy / Insights */
.ins-grid {
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px)  { .ins-grid { display: grid; grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .ins-grid { grid-template-columns: repeat(3, 1fr); } }
.ic {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
/* Subtle amber corner accent */
.ic::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 70%);
  pointer-events: none;
}
.ic:hover { border-color: rgba(56,189,248,.2); transform: translateY(-3px) rotate(.25deg); }
.ic-n   { font-family: 'Fraunces', serif; font-size: 3.5rem; font-weight: 700; color: rgba(255,255,255,.02); position: absolute; top: -.5rem; right: .5rem; z-index: 0; pointer-events: none; line-height: 1; }
.ic-txt { font-family: 'Fraunces', serif; font-style: italic; font-size: .96rem; color: var(--ink); line-height: 1.55; margin-bottom: .8rem; position: relative; z-index: 1; }
.ic-tag { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal2); font-weight: 700; }


/* ── WRITING ──────────────────────────────────────────────── */
#writing { background: var(--surface); }
.blog-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem;
}
@media (min-width: 700px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.blog-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--violet2));
  transition: width .4s cubic-bezier(.23,1,.32,1);
}
.blog-card:hover {
  border-color: rgba(56,189,248,.2); transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(56,189,248,.08);
}
.blog-card:hover::after { width: 100%; }

.blog-card-link {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.8rem; text-decoration: none; flex: 1;
}
.bc-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bc-tag  {
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal2); font-weight: 700;
  background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.18);
  padding: .2rem .6rem; border-radius: 100px;
}
.bc-date    { font-size: .65rem; color: var(--dim); letter-spacing: .06em; }
.bc-title   { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0; }
.bc-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.75; flex: 1; margin: 0; }
.bc-read    { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky2); font-weight: 700; margin-top: auto; }

/* Card footer: reactions + share */
.bc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem; border-top: 1px solid var(--border);
  gap: .5rem;
}
.bc-reactions { display: flex; align-items: center; gap: .25rem; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 1px solid transparent;
  border-radius: 100px; padding: .28rem .6rem;
  font-size: .78rem; color: var(--dim);
  cursor: pointer; transition: all .18s; line-height: 1;
}
.reaction-btn:hover {
  border-color: var(--border2); background: rgba(56,189,248,.06); color: var(--ink);
}
.reaction-btn.active {
  border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.1); color: var(--sky2);
}
.reaction-btn .r-emoji { font-size: .9rem; }
.reaction-btn .r-count { font-size: .68rem; font-weight: 700; min-width: .8ch; }

.bc-share { display: flex; align-items: center; gap: .3rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: none; border: 1px solid var(--border);
  color: var(--dim); cursor: pointer;
  transition: all .18s; text-decoration: none; position: relative;
}
.share-btn:hover { border-color: var(--border2); color: var(--sky2); background: rgba(56,189,248,.08); }
.share-copy.copied { border-color: var(--emerald); color: var(--emerald); background: rgba(16,185,129,.1); }
.share-total {
  font-size: .6rem; color: var(--dim); letter-spacing: .04em;
  min-width: 4ch; text-align: right;
}

.share-copy.copied::after {
  content: 'Copied!';
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--emerald); color: #fff;
  font-size: .58rem; font-weight: 700; letter-spacing: .05em;
  padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; pointer-events: none;
}

.blog-cta   { text-align: center; margin-top: 1rem; }


/* ── CONTACT ──────────────────────────────────────────────── */
#contact { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.contact-wrap { max-width: 660px; margin: 0 auto; }
.cta-banner {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid rgba(56,189,248,.18); border-radius: var(--r);
  padding: 2.5rem 2rem; margin-bottom: 2.2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal2), var(--violet2));
}
.cta-hl { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: var(--ink); margin-bottom: .7rem; line-height: 1.2; }
.cta-hl em { font-style: italic; color: var(--amber2); }
.cta-p { font-size: .92rem; color: var(--muted); line-height: 1.8; max-width: 48ch; margin: 0 auto; }
.contact-email-link { color: var(--amber2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.contact-email-link:hover { color: var(--teal2); }

/* Form */
.form-box  { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.8rem 1.5rem; }
.form-head { font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.form-row  { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 520px) { .form-row { flex-direction: row; } }
.fg   { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.flbl { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fi, .fsel, .fta {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: .72rem 1rem; color: var(--ink);
  font-size: .85rem; font-family: inherit; width: 100%;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fi:focus, .fsel:focus, .fta:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
.fi::placeholder, .fta::placeholder { color: var(--dim); }
.fsel {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}
.fsel option { background: var(--bg); }
.fta { resize: vertical; min-height: 110px; }
.fmb { margin-bottom: 1rem; }
.fsub {
  width: 100%; background: linear-gradient(135deg, var(--amber), #0284c7);
  color: #07080f; border: none; border-radius: 100px;
  padding: .95rem 2rem; font-size: .86rem; font-weight: 800;
  letter-spacing: .06em; margin-top: .3rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .25s; position: relative; overflow: hidden;
}
.fsub::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .5s; }
.fsub:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(56,189,248,.35); }
.fsub:hover::before { transform: translateX(100%); }
.fsub:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.f-success { display: none; text-align: center; padding: 1.8rem; color: var(--emerald); font-size: .88rem; font-weight: 600; }
.f-success.show { display: block; }

.soc-links { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.8rem; }
@media (max-width: 500px) { .soc-links { flex-direction: column; } }
.soc-btn   {
  display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--border); padding: .65rem 1.3rem;
  border-radius: 100px; font-size: .74rem; font-weight: 600;
  color: var(--muted); transition: all .25s; letter-spacing: .05em;
}
.soc-btn:hover { border-color: rgba(56,189,248,.35); color: var(--amber2); background: rgba(56,189,248,.08); transform: translateY(-2px); }
.soc-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── CORE EXPERTISE CAROUSEL (Swiper) ── */
.ce-carousel { position: relative; }

.ce-swiper {
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 300px; /* prevents flash-of-collapsed on first paint */
  cursor: default !important; /* prevent Swiper grab cursor override */
}
/* Let Swiper autoHeight drive the wrapper; slides must be naturally tall */
.ce-swiper .swiper-wrapper { align-items: stretch; }
.ce-swiper .swiper-slide  { height: auto !important; }

/* Card */
.ce-card {
  background: var(--card);
  padding: 2.5rem 2.2rem 2.2rem;
  position: relative;
  overflow: hidden;
  height: auto !important;
  box-sizing: border-box;
}

.ce-bg-num {
  position: absolute;
  top: -1.5rem; right: 1.5rem;
  font-family: 'Fraunces', serif;
  font-size: 9rem; font-weight: 700;
  color: rgba(251,191,36,0.05);
  line-height: 1;
  pointer-events: none; user-select: none;
}

.ce-card-top {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.6rem; padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--border);
}

.ce-card-meta { flex: 1; }

.ce-eyebrow {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal2); font-weight: 700; display: block; margin-bottom: .5rem;
}

.ce-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--amber2); margin: 0; line-height: 1.2;
}

.ce-counter {
  font-size: .72rem; color: var(--muted);
  font-family: 'Fraunces', serif; font-style: italic;
  white-space: nowrap; flex-shrink: 0; margin-left: 1rem;
  padding-bottom: 2px;
}

.ce-body { display: flex; gap: 1.2rem; }

.ce-problem, .ce-solution {
  flex: 1; padding: 1.4rem;
  border-radius: calc(var(--r) - 2px);
  border: 1px solid transparent;
}

.ce-problem {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.2);
  border-top: 3px solid rgba(239,68,68,0.6);
}

.ce-solution {
  background: rgba(56,189,248,0.06);
  border-color: rgba(56,189,248,0.2);
  border-top: 3px solid var(--amber2);
}

.ce-problem h5, .ce-solution h5 {
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; margin: 0 0 .6rem;
}
.ce-problem h5 { color: rgba(239,68,68,.9); }
.ce-solution h5 { color: var(--amber2); }
.ce-problem p, .ce-solution p { color: var(--ink); font-size: .95rem; line-height: 1.6; margin: 0; }

.ce-tags {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(251,191,36,0.15);
}
.ce-tags .tag { background: rgba(56,189,248,.03); border: 1px solid rgba(125,211,252,.12); color: var(--amber2); }

/* ── Swiper pagination (pill dots) ── */
.ce-pagination {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: .5rem;
}
.ce-pagination .swiper-pagination-bullet {
  width: .45rem; height: .45rem;
  background: var(--border);
  opacity: 1;
  border-radius: .25rem;
  margin: 0 !important;
  transition: background .4s cubic-bezier(0.4,0,0.2,1),
              width    .4s cubic-bezier(0.4,0,0.2,1);
}
.ce-pagination .swiper-pagination-bullet-active {
  background: var(--amber2);
  width: 2rem;
  border-radius: .25rem;
}

/* ── Navigation row ── */
.ce-nav {
  display: flex; align-items: center;
  justify-content: center; gap: 1.5rem;
  margin-top: 1.5rem;
}

.ce-arrow {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .25s, color .25s, background .25s, transform .2s;
}
.ce-arrow:hover {
  border-color: var(--amber2);
  color: var(--amber2);
  background: rgba(251,191,36,0.06);
  transform: scale(1.08);
}
.ce-arrow.swiper-button-disabled { opacity: .3; pointer-events: none; }

@media (max-width: 768px) {
  .ce-card { padding: 1.8rem 1.2rem 1.5rem; }
  .ce-body { flex-direction: column; gap: 1rem; }
  .ce-card-title { font-size: 1.25rem; }
  .ce-bg-num { font-size: 5.5rem; }
}


/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; position: relative; z-index: 1; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.fb-logo { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.4rem; color: var(--amber2); font-weight: 300; display: block; margin-bottom: .4rem; }
.fb-tag  { font-size: .72rem; color: var(--muted); max-width: 28ch; line-height: 1.6; }
.footer-nav-cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.fnc-title { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal2); font-weight: 700; margin-bottom: .8rem; }
.fnc-links { display: flex; flex-direction: column; gap: .5rem; }
.fnc-links a { font-size: .78rem; color: var(--muted); transition: color .2s; }
.fnc-links a:hover { color: var(--amber2); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.fb-copy  { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.fb-badges { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.fb-badge {
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.18);
  color: var(--amber2); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; padding: .25rem .7rem; border-radius: 100px;
}

/* ── Tags (shared) ────────────────────────────────────────── */
.tags-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.tag {
  border: 1px solid rgba(125,211,252,.18); color: var(--amber3);
  font-size: .65rem; letter-spacing: .07em; padding: .28rem .8rem;
  border-radius: 100px; transition: all .2s;
}
.tag:hover { background: rgba(56,189,248,.1); border-color: var(--amber2); }

/* ── Mobile font floor ────────────────────────────────────── */
@media (max-width: 767px) {
  .eyebrow { font-size: 0.7rem; }
  .tag, .pill, .ic-tag, .pchip, .ini-tag, .ini-eyebrow,
  .tl-period, .tl-org, .flbl, .fb-copy, .fb-badge,
  .tb-badge, .cl-badge, .bc-tag, .bc-read { font-size: 0.7rem !important; }
  .pill { padding: .2rem .55rem !important; }
  .pillar-desc, .ini-desc, .ini-more, .tl-exp p,
  .edu-detail, .test-quote, .pd-val, .cta-p { font-size: 0.875rem !important; }
  .cl-name { font-size: 0.82rem !important; }
}
