/* ========================================================================
   01 — PROFILE / first screen
   ======================================================================== */

.section-profile {
  position: relative;
}

/* Aspect ratio matches the client-supplied crop (1662x665) exactly, so
   object-fit: cover never trims it further — this is the crop as given. */
.profile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
  background: var(--color-black);
}

.profile-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.05);
}

/* Delicate light scrim, visible only during the opening sequence so the
   centered MARINA KAZAKOVA title reads cleanly over the photo; fades out
   once the title has docked into the header. */
.profile-media__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(244, 241, 234, 0.45);
  opacity: 1;
  transition: opacity 600ms var(--ease-editorial);
}
.profile-media__scrim.is-hidden { opacity: 0; }

/* Headline straddles the seam between the photo and the white profile zone:
   negative margin pulls line 1 back over the image, line 2 lands on white. */
.profile-reveal {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--fs-display-xl) * var(--lh-tight));
}

.profile-reveal__line {
  font-size: var(--fs-display-xl);
  line-height: var(--lh-tight);
}

/* Mask reveal: the text itself never moves or fades — clip-path opens
   left to right, like a shutter, independent of whatever is behind it
   (photo or white). */
.profile-reveal__line-inner {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 550ms var(--ease-editorial);
}

.profile-reveal__line:nth-child(2) .profile-reveal__line-inner {
  transition-delay: 150ms;
}

.is-revealed .profile-reveal__line-inner {
  clip-path: inset(0 0 0 0);
}

.profile-reveal__word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--color-black);
  transform: scale(1);
  transition: transform var(--dur-base) var(--ease-editorial), color var(--dur-base) var(--ease-editorial);
}

.profile-reveal__word.is-accent { color: var(--color-accent); }

/* Very small, deliberate — a hint of life on an otherwise static hero
   line, not a party trick. Scale only (no layout-affecting properties),
   so neighboring words never reflow. */
.profile-reveal__word:hover {
  transform: scale(1.06);
}

.profile-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4) var(--space-6);
}

/* Even, uniform row rhythm via flex gap rather than per-line margins —
   margins compound unevenly (fixed rem next to em-based values); gap
   guarantees identical spacing between every line. */
.profile-info__text {
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* Per the client's mockup: all four lines share one font-size — hierarchy
   comes only from weight (bold on name + closing line, regular on the
   other two), not from size or emphasis-through-scale. */
.profile-info__name,
.profile-info__roles,
.profile-info__bold,
.profile-info__body {
  /* Matches the intro body-text scale used under the BRANDS headline
     (css/brands.css), so the main page reads as the same typographic
     system as the direction pages rather than a bigger, separate scale. */
  font-size: clamp(0.92rem, 0.83rem + 0.42vw, 1.2rem);
  line-height: var(--lh-snug);
}

.profile-info__name {
  font-family: var(--font-body);
  font-weight: 700;
}

.profile-info__roles {
  font-weight: 400;
  opacity: 0.7;
}

.profile-info__bold {
  font-weight: 400;
}

.profile-info__body {
  font-weight: 700;
}

.profile-info__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.profile-info__cta { flex-shrink: 0; }

@media (max-width: 760px) {
  .profile-media { aspect-ratio: 4 / 3; max-height: none; }
  .profile-reveal { margin-top: calc(-1 * var(--fs-display-xl) * 0.4); }
  .profile-info { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   LAPTOP / LOW-HEIGHT DESKTOP — same aesthetic as the large-desktop scale
   above, compressed for small-laptop viewports (e.g. 1366x768 at 100%
   zoom) so the first screen doesn't crowd out the start of Experience.
   Large desktop (outside this width/height band) is untouched.
   ======================================================================== */
@media (min-width: 1100px) and (max-width: 1440px) and (max-height: 900px) {
  /* ~22% shorter hero photo — same crop, same object-position, just less
     of the frame's height claimed by the viewport. */
  .profile-media { aspect-ratio: 16 / 5; }

  /* ~18% smaller headline; the pull-up margin is recomputed from this
     same reduced size (not the shared --fs-display-xl token) so the
     two-line reveal keeps its composition relative to the photo. */
  .profile-reveal { margin-top: calc(-1 * clamp(2rem, 1.4rem + 4.4vw, 5.4rem) * var(--lh-tight)); }
  .profile-reveal__line { font-size: clamp(2rem, 1.4rem + 4.4vw, 5.4rem); }

  /* Tighter vertical rhythm below the headline — body copy size untouched. */
  .profile-info { gap: 1.8rem; padding-block: 1.8rem 4.1rem; }
  .profile-info__text { gap: 0.35em; }
}
