:root {
  --bg: #f4f6f9;
  --ink: #0f172a;
  --sub: #64748b;
  --accent: #1e40af;
  --line: #e2e8f0;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gx: 50%;
  --gy: 50%;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* -------------------------------------------------- */
/*  Cursor light — one large warm spot, very subtle   */
/* -------------------------------------------------- */
.light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    700px circle at var(--gx) var(--gy),
    rgba(30, 64, 175, 0.1),
    transparent 55%
  );
}

/* -------------------------------------------------- */
/*  Shared layout rail                                */
/* -------------------------------------------------- */
.hero__inner,
.about__inner,
.experience__inner,
.foot__inner {
  width: min(100% - 3rem, 1060px);
  margin-inline: auto;
}

/* -------------------------------------------------- */
/*  Hero                                              */
/* -------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 14vh, 10rem) 1.5rem clamp(3rem, 8vh, 6rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hero__content {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .photo--hero {
    margin-inline: auto;
    max-width: min(300px, 85vw);
  }
}

.hero__role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero__name {
  font-weight: 900;
  font-size: clamp(3.2rem, 13vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-shadow: none;
}

.hero__bar {
  width: 38px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: clamp(1rem, 2.5vw, 1.8rem) 0;
}

.hero__intro {
  max-width: 42ch;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--sub);
  line-height: 1.7;
  text-shadow: none;
}

/* -------------------------------------------------- */
/*  Dividers                                          */
/* -------------------------------------------------- */
.divider {
  border: none;
  height: 1px;
  background: var(--line);
  width: min(100% - 3rem, 1060px);
  margin: 0 auto;
}

/* -------------------------------------------------- */
/*  About                                             */
/* -------------------------------------------------- */
.about {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vh, 4.5rem) 1.5rem;
}

.about__inner {
  max-width: 65ch;
}

.about__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 1.35rem;
}

/* No fixed aspect-ratio: box hugs the image so contain/cover letterboxing can’t leave side bars. */
.photo {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease);
}

.photo--hero {
  justify-self: end;
}

.photo__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .photo:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }
}

.bio p {
  margin: 0;
  color: var(--sub);
  font-size: 1.0625rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

.bio p + p {
  margin-top: 1.35rem;
}

/* -------------------------------------------------- */
/*  Experience / logos                                 */
/* -------------------------------------------------- */
.experience {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5.5rem) 1.5rem;
}

.experience__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 1.5rem;
}

.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logos__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(96px, 16vw, 144px);
  padding: clamp(1.1rem, 2.6vw, 1.75rem) clamp(1.35rem, 3.5vw, 2.35rem);
  background: var(--bg);
}

.logos__slot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(44px, 9.5vw, 68px);
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.22s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .logos__slot:hover img {
    transform: scale(1.04);
  }
}

/* -------------------------------------------------- */
/*  Footer                                            */
/* -------------------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vh, 3rem) 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(1rem, 3vh, 2rem);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    border-color: var(--ink);
  }
}

/* -------------------------------------------------- */
/*  Reduced motion                                    */
/* -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .light {
    display: none;
  }

  .hero__name {
    will-change: auto;
  }

  .photo {
    will-change: auto;
    transform: none !important;
  }

  .logos__slot img {
    transition: none;
  }

  .logos__slot:hover img {
    transform: none;
  }
}
