/* ==========================================================================
   Info page. Sizes are the Figma XS (375px) → XL (1600px) values, interpolated.
   ========================================================================== */
:root {
  --info-top:  clamp(168px, calc(168px + 40 * (100vw - 375px) / 1225), 208px); /* space above the hero content */
  --info-hero-bottom: clamp(80px, calc(80px + 48 * (100vw - 375px) / 1225), 128px);
  --info-gap:  clamp(64px, calc(64px + 96 * (100vw - 375px) / 1225), 160px);
  --fs-h2:     clamp(32px, calc(32px + 16 * (100vw - 375px) / 1225), 48px);
  --fs-email:  clamp(16px, calc(16px + 4 * (100vw - 375px) / 1225), 20px);
}

/* Email link keeps its underline (the design shows it always on) */
.link--static::after { opacity: 1; }
.link--static { transition: color 0.25s ease; }
.link--static:hover, .link--static:focus-visible { color: var(--coral-dark); } /* Figma "Email Link / Hover" */

/* ---------- Hero: collage + bio ---------- */
.info-hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--info-top);
  padding-bottom: var(--info-hero-bottom);
}
.info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Stretched to the full hero height so it runs right down to the section edge (an intentional hard cut into the white Experience section) */
  background: url("../assets/svg/bg-gradients.svg") no-repeat left top / max(100%, 1600px) 100%;
}
.info-hero__inner {
  width: var(--page-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Collage box is 616×732 at XL, 325×386 at XS; the photo sits inside it by percentage */
.collage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 616 / 732;
}
.collage__item {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(2.638px, calc(2.638px + 2.362 * (100vw - 375px) / 1225), 5px);
  box-shadow: 0 1px 0.5px rgba(49, 67, 81, 0.02), 0 2px 1px rgba(49, 67, 81, 0.04);
}
.collage__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Positions are the Figma collage (616×732) as percentages; later items sit on top */
.collage__item--me     { left: 12.987%; top: 14.891%; width: 67.695%; aspect-ratio: 417 / 555.067; }
.collage__item--office { left: 2.597%;  top: 0;       width: 37.459%; aspect-ratio: 230.75 / 307.667; }
.collage__item--roo    { left: 75.487%; top: 21.038%; width: 24.489%; aspect-ratio: 150.854 / 193.516; }
.collage__item--daniel { left: 63.636%; top: 71.721%; width: 29.708%; aspect-ratio: 183 / 206.833; }

/* Entrance, following the Figma "Animation 1→4" variants: the portrait, then the office,
   Daniel and Roo photos arrive one after another. Slow dissolves; only hidden when JS is on,
   so the page still works without it. */
.js .collage__item {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 1.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.js .collage.is-in .collage__item { opacity: 1; transform: none; }
.collage__item--me     { --delay: 0s; }
.collage__item--office { --delay: 1.2s; }
.collage__item--daniel { --delay: 2.6s; }
.collage__item--roo    { --delay: 4s; }
@media (prefers-reduced-motion: reduce) {
  .js .collage__item { opacity: 1; transform: none; transition: none !important; }
}

.bio { width: 100%; }
.bio__lead {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 250;
}
.bio__body {
  margin-top: var(--space-s);
  font-size: var(--fs-p2);
  line-height: 1.6;
  color: #000;
}
.bio__body p { margin: 0 0 20px; }
.bio__body p:last-child { margin-bottom: 0; }
.bio__email {
  display: inline-block;
  margin-top: 1.6em; /* the design leaves one blank line here */
  font-size: var(--fs-email);
  line-height: 1.6;
}

/* ---------- Experience ---------- */
.experience {
  background: #fff;
  padding-block: var(--info-gap);
}
.experience__inner {
  width: var(--page-width);
  margin-inline: auto;
}
.experience__photo { margin: 0; width: min(325px, 100%); }
.experience__screen {
  background: #000;
  padding: 6.25% 5.86%; /* percentages of width: the black frame from the design */
}
.experience__screen img {
  display: block;
  width: 100%;
  aspect-ratio: 254.036 / 176.065;
  object-fit: cover;
  border-radius: var(--radius-m);
}
.experience__title {
  margin: var(--space-s) 0 29px;
  font-size: var(--fs-h2);
  font-weight: 250;
  line-height: 1.15;
}
.resume { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; display: grid; gap: 24px; }
.resume li { display: flex; flex-direction: column; gap: 8px; }
.resume__years { color: var(--grass-dark); }
.resume__role { color: var(--black); }

/* ==========================================================================
   Wide layouts
   ========================================================================== */
@media (min-width: 960px) {
  .info-hero__inner { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 0; }
  .collage { flex: 0 0 48.125%; max-width: none; margin: 0; }
  .bio { flex: 0 0 48%; width: auto; }
}

/* Tablet: title on top, the list on the left and the photo on the right */
@media (min-width: 760px) {
  .experience__inner {
    width: min(var(--page-width), 1056px);
    display: grid;
    grid-template-columns: 1fr 287.785px;
    grid-template-areas: "title title" "list photo";
    column-gap: 29px;
    align-items: center;
  }
  .experience__title { grid-area: title; margin: 0 0 40px; }
  .experience__photo { grid-area: photo; width: 100%; }
  .resume { grid-area: list; }
}

/* Years | roles in two aligned columns (needs ~1030px of content) */
@media (min-width: 1280px) {
  .experience__inner { grid-template-columns: 287.785px 1fr; grid-template-areas: "title title" "photo list"; }
  .resume { grid-template-columns: auto 1fr; column-gap: 29px; row-gap: 24px; }
  .resume li { display: contents; }
}

/* This page's footer sits right under the Experience block */
.page-info .site-footer { margin-top: 0; }
