/* ========================================================================== */
/* About Page – Custom Modules                                                */
/* - Page-specific components extracted from inline styles                     */
/* - Keep globals (tokens, typography, resets) in your main stylesheet         */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Section Divider                                                            */
/* -------------------------------------------------------------------------- */

.section-divider {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

/* -------------------------------------------------------------------------- */
/* Experience Blocks                                                          */
/* -------------------------------------------------------------------------- */

.experience {
  text-align: center;
  max-width: 52rem;
  margin: 2.25rem auto 2.75rem;
  padding: 0 1.25rem;
}

/* When an H2 immediately precedes the experience block, tighten spacing */
h2 + .experience {
  margin-top: 1.25rem;
}

.experience__organization {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(1.6rem, 2.3vw, 2.25rem);
}

.experience__role {
  margin: 0.55rem 0 0;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.3;
  color: #2b2b2b;
}

.experience__role strong {
  font-weight: 600;
}

.experience__meta {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #6f6f6f;
}

.experience__meta span[aria-hidden="true"] {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.experience__years {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.experience__sector {
  text-transform: none;
}

/* -------------------------------------------------------------------------- */
/* Experience Domain Link (citation-like)                                     */
/* -------------------------------------------------------------------------- */

.experience__link {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.2;
  font-family: var(--font-body);
}

.experience__link a {
  color: #9c6b43; /* muted copper */
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: color 0.2s ease;
}

.experience__link a:hover,
.experience__link a:focus-visible {
  color: #7f5535; /* darker copper */
  outline: none;
}

/* -------------------------------------------------------------------------- */
/* Photo Carousel                                                             */
/* - scroll-snap track with fixed-height frames so all images align            */
/* -------------------------------------------------------------------------- */

.photo-carousel {
  max-width: 52rem;
  margin: 1.25rem auto 2.25rem;
  padding: 0 1.25rem;
}

.photo-carousel__track {
  display: flex;
  gap: 1rem;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Peek the next slide */
  padding-right: 22%;

  /* Minimal scrollbar */
  scrollbar-width: none;
}

.photo-carousel__track::-webkit-scrollbar {
  display: none;
}

.photo-carousel__slide {
  flex: 0 0 78%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.photo-carousel__frame {
  width: 100%;
  height: clamp(260px, 45vw, 380px);
  overflow: hidden;
}

.photo-carousel__frame .photo__img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;
}

.photo-carousel__slide figcaption {
  margin-top: 0.55rem;
}

/* Dots */
.photo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.65rem;

  color: #666;
  opacity: 0.6;
}

.photo-carousel__dot {
  width: 6px;
  height: 6px;
  padding: 0;

  border: none;
  border-radius: 999px;

  background: currentColor;
  opacity: 0.25;
  cursor: pointer;
}

.photo-carousel__dot.is-active {
  opacity: 0.85;
}

.photo-carousel__dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Motion + mobile tuning */
@media (prefers-reduced-motion: reduce) {
  .photo-carousel__track {
    scroll-behavior: auto;
  }
}

@media (max-width: 560px) {
  .photo-carousel {
    padding: 0 1rem;
  }

  .photo-carousel__track {
    gap: 0.85rem;
    padding-right: 18%;
  }

  .photo-carousel__slide {
    flex-basis: 82%;
  }

  .photo-carousel__frame {
    height: clamp(240px, 60vw, 340px);
  }
}

/* -------------------------------------------------------------------------- */
/* About Hero                                                                 */
/* - Scoped variables so this module is self-contained                         */
/* -------------------------------------------------------------------------- */

.about-hero {
  --bg: #0b0d12;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --hairline: rgba(255, 255, 255, 0.14);
  --accent: #c37a3a;
  --accent-soft: rgba(195, 122, 58, 0.22);
  --radius: 24px;

  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(195, 122, 58, 0.22), transparent 55%),
    radial-gradient(900px 700px at 85% 15%, rgba(120, 160, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #07080b, var(--bg));
  color: var(--text);
  padding: clamp(28px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--hairline);
}

.about-hero__wrap {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.about-hero__grid {
  display: grid;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}

@media (min-width: 900px) {
  .about-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-hero__content {
  padding: clamp(14px, 2.5vw, 24px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;

  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.9;
}

.about-hero__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

.about-hero__name {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(195, 122, 58, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-hero__lede {
  margin: 14px 0 18px;
  max-width: 62ch;

  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.55;
}

.about-hero__stats {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
}

@media (min-width: 520px) {
  .about-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-hero__stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.18);
}

.about-hero__stat-label {
  margin: 0 0 4px;

  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.about-hero__stat-value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

/* Note: if .btn is global, consider moving these styles to your main stylesheet. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;

  border: 1px solid var(--hairline);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  will-change: transform;
}

.btn:focus-visible {
  outline: 3px solid rgba(195, 122, 58, 0.45);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(180deg, rgba(195, 122, 58, 0.95), rgba(155, 90, 40, 0.95));
  color: #0b0d12;
  border-color: rgba(195, 122, 58, 0.55);
  box-shadow: 0 10px 30px rgba(195, 122, 58, 0.16);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .btn--primary:hover {
    box-shadow: 0 14px 40px rgba(195, 122, 58, 0.22);
    border-color: rgba(195, 122, 58, 0.72);
  }
}

.about-hero__visual {
  padding: clamp(8px, 2vw, 18px);
}

.about-hero__figure {
  position: relative;
  margin: 0;

  border-radius: var(--radius);
  overflow: clip;

  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}

.about-hero__backdrop {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(450px 350px at 25% 25%, var(--accent-soft), transparent 60%),
    radial-gradient(520px 420px at 75% 30%, rgba(120, 160, 255, 0.14), transparent 62%),
    radial-gradient(520px 420px at 55% 85%, rgba(255, 255, 255, 0.08), transparent 62%);
  filter: blur(12px);
  transform: translateZ(0);
}

.about-hero__img {
  display: block;
  width: 100%;
  height: auto;

  aspect-ratio: 5 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  transform: translateZ(0);
}

.about-hero__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;

  padding: 12px;
  border-radius: 16px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);

  backdrop-filter: blur(8px);
  font-size: 0.96rem;
  line-height: 1.35;
}

.about-hero__caption-label {
  display: inline-block;
  margin-right: 10px;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(195, 122, 58, 0.22);
  border: 1px solid rgba(195, 122, 58, 0.35);
  color: rgba(255, 255, 255, 0.92);

  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-hero__meta {
  margin: 0;
  padding-top: 10px;

  border-top: 1px solid var(--hairline);
  color: rgba(255, 255, 255, 0.62);

  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;

  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(195, 122, 58, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ==========================================
   About Page – Bio Portrait (Isolated)
   Completely independent from other modules
   ========================================== */

.about-bio-portrait {
  display: flex;
  justify-content: center;      /* centers horizontally */
  margin-bottom: 1.75rem;
}

.about-bio-portrait__picture {
  display: block;
  width: min(420px, 85vw);      /* large but responsive */
  aspect-ratio: 1 / 1;          /* perfect square */
  border-radius: 28px;          /* soft Apple-like rounding */
  overflow: hidden;             /* enforces square crop */

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}

.about-bio-portrait__img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: 50% 35%;
}

/* ==========================================
   About Page – Bottom Spacing Fix
   ========================================== */

.page-container {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
