:root{
  --bg:#050608;
  --card:#0b0f11;
  --muted:#9aa4ad;
  --text:#e9f0f2;
  --accent:#46f0da; /* brighter teal */
  --accent-2:#ffb86b;
  --radius:18px;
  --max-width:1100px;
  --gap:28px;
  --shadow: 0 20px 50px rgba(2,6,10,0.6);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(900px 380px at 10% 10%, rgba(70,240,218,0.03), transparent),
    radial-gradient(700px 320px at 90% 90%, rgba(255,184,107,0.02), transparent),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* Centering container */
.fp-root{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:56px 20px;
}

/* Card (modern, airy) */
.fp-card{
  width:100%;
  max-width:var(--max-width);
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:calc(var(--radius) * 1.2);
  display:grid;
  grid-template-columns: 360px 1fr; /* larger image column */
  gap:var(--gap);
  align-items:center;
  padding:34px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,0.03);
  position:relative;
  overflow:visible;
}

/* On-load animations (staggered, subtle) */
.fp-card{
  opacity:0;
  transform:translateY(10px) scale(.997);
  transition:opacity .7s ease, transform .9s cubic-bezier(.2,.9,.2,1);
}

/* Portrait — bigger, circular, elevated */
.fp-figure{
  width:360px;
  height:360px;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.18));
  display:flex;
  align-items:center;
  justify-content:center;
  border:6px solid rgba(255,255,255,0.03);
  transform:translateY(-10px);
  box-shadow: 0 18px 40px rgba(2,6,10,0.6), inset 0 6px 20px rgba(255,255,255,0.02);
}
.fp-figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
  transform:scale(.96) rotate(0deg);
  transition:transform .9s cubic-bezier(.2,.9,.2,1), filter .6s ease;
  will-change:transform;
}
.fp-figure:hover img{ transform: scale(1.06) rotate(-0.5deg); }

/* Content */
.fp-content{
  padding:8px 4px;
}
.fp-content h1{
  margin:0 0 8px 0;
  font-size:clamp(26px, 4.6vw, 42px);
  letter-spacing:-0.5px;
  font-weight:700;
  line-height:1.02;
}
.fp-role{
  color:var(--accent-2);
  font-weight:700;
  margin-bottom:14px;
  font-size:14px;
  text-transform:uppercase;
  opacity:0.95;
  letter-spacing:1px;
}
.fp-bio{
  margin:0 0 20px 0;
  color:var(--muted);
  line-height:1.65;
  font-size:16px;
  max-width:60ch;
}

/* Actions */
.fp-actions{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}
.fp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;
  color:var(--text);
}
.fp-btn:hover{ transform:translateY(-4px); box-shadow: 0 12px 30px rgba(2,6,10,0.45); }
.fp-btn:active{ transform:translateY(-1px); }

/* Primary CTA more emphasized */
.fp-btn-primary{
  /* updated gradient for the Author / Amazon CTA — warmer -> teal */
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #071610; /* keeps high contrast on the light gradient */
  border: none;
  box-shadow: 0 14px 36px rgba(70,184,140,0.13);
}

/* Socials */
.fp-socials{display:flex; gap:12px; align-items:center}
.fp-socials a{
  color:var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  font-size:14px;
  transition:background .12s ease, color .12s ease, transform .12s ease;
  border:1px solid rgba(255,255,255,0.03);
  background: rgba(255,255,255,0.005);
}
.fp-socials a:hover{ background: rgba(255,255,255,0.02); color:var(--text); transform:translateY(-3px); }

/* Subtle divider line under heading on wide screens */
@media (min-width:900px){
  .fp-content h1::after{
    content:'';
    display:block;
    width:52px;
    height:4px;
    margin-top:14px;
    background:linear-gradient(90deg,var(--accent),var(--accent-2));
    border-radius:8px;
  }
}

/* Responsive adjustments */
@media (max-width:1100px){
  .fp-card{ grid-template-columns: 320px 1fr; padding:28px; }
  .fp-figure{ width:320px; height:320px; }
}
@media (max-width:900px){
  .fp-card{ grid-template-columns: 260px 1fr; padding:22px; }
  .fp-figure{ width:260px; height:260px; }
}
@media (max-width:700px){
  .fp-card{
    grid-template-columns:1fr;
    text-align:center;
    padding:28px 18px;
  }
  .fp-figure{
    width:76%;
    max-width:460px;
    height:auto;
    aspect-ratio:1/1;
    margin:0 auto 18px;
    transform:none;
  }
  .fp-figure img{ border-radius:22px; } /* less circular on mobile */
  .fp-bio{ margin-left:auto; margin-right:auto; max-width:66ch; font-size:15px; }
  .fp-actions{ justify-content:center; }
}

/* Active state when page has loaded */
body.is-loaded .fp-card{
  opacity:1;
  transform:none;
}
body.is-loaded .fp-figure img{
  transform:scale(1.02) rotate(-0.5deg);
  filter:brightness(1.01) saturate(1.02);
}
body.is-loaded .fp-content h1,
body.is-loaded .fp-content .fp-role,
body.is-loaded .fp-bio,
body.is-loaded .fp-actions{
  opacity:1;
  transform:none;
}

/* Reduced motion users: disable animations */
@media (prefers-reduced-motion: reduce){
  .fp-card,
  .fp-figure img,
  .fp-content h1,
  .fp-content .fp-role,
  .fp-bio,
  .fp-actions,
  .fp-btn{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}