/* Hello page: the first screen holds portrait, titles, bio and the on-set flipbook. Everything set in caps. */
body.page-hello {
  height: auto;
  min-height: 100%;
  overflow: visible;
  overflow-x: clip;
}
html:has(body.page-hello) { height: auto; }

.hello {
  --rule: rgba(22, 22, 22, 0.16);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(92px, 11vh, 124px) var(--gutter-r) 150px var(--gutter);
  display: grid;
  gap: clamp(88px, 10vw, 150px);
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(15px, 1.9vw, 28px);
  font-weight: 600;
  font-variation-settings: "wdth" 80;
  line-height: 1;
  letter-spacing: 0.01em;
}
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- First screen ---------- */
.hello__intro {
  --intro-h: clamp(500px, calc(100svh - 225px), 760px);
  display: grid;
  grid-template-columns: min(calc(var(--intro-h) * 0.8), 46%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  height: var(--intro-h);
}
.portrait { margin: 0; min-width: 0; height: 100%; }
.portrait__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cream-deep);
}
.portrait__frame img { position: absolute; inset: 0; }
.portrait__frame img,
.onset__frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 450ms ease;
}
.portrait:hover .portrait__frame img { filter: grayscale(0) contrast(1); }

.intro__side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.intro__titles { width: min(100%, 440px); }
.intro__role {
  margin: 22px 0 0;
  font-size: 11px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.intro__role a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.intro__role a:hover { border-color: var(--ink); }
.intro__bio {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  font-variation-settings: "wdth" 96;
  line-height: 1.62;
  letter-spacing: 0.035em;
}

/* The flipbook takes all the height left under the bio. Each photo keeps its own shape,
   centred in the frame. */
.onset { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.onset__head { display: flex; justify-content: space-between; align-items: baseline; }
.onset__count { font-variant-numeric: tabular-nums; }
.onset__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  cursor: pointer;
}
.onset__frame img { position: absolute; inset: 0; object-fit: contain; object-position: center; opacity: 0; }
.onset__frame img.is-on { opacity: 1; }
.onset__frame:hover img { filter: grayscale(0) contrast(1); }

/* ---------- Kind words ---------- */
.words { display: grid; gap: 28px; min-width: 0; }
.words__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.words__nav { display: flex; align-items: center; gap: 10px; }
.words__count { font-variant-numeric: tabular-nums; margin-right: 8px; white-space: nowrap; }
.words__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: transform 300ms var(--ease-out);
}
.words__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.words__arrow:hover { transform: translateX(3px); }
.words__arrow--prev { width: 40px; height: 40px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.words__arrow--prev svg { width: 16px; height: 16px; }
.words__arrow--prev:hover { transform: translateX(-3px); }
.words__arrow:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.words__track {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.words__track::-webkit-scrollbar { display: none; }
.words__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.words__track:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.word {
  flex: 0 0 clamp(290px, 40vw, 520px);
  align-self: start;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 340px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink);
  color: var(--cream);
  user-select: none;
}
.word__mark { width: 22px; height: 22px; fill: var(--cream); opacity: 0.9; }
.word__quote {
  margin: 18px 0 0;
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.035em;
  white-space: pre-line;
}
.word__quote.is-clamped:not(.is-open) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}
.word__more {
  margin-top: 14px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(242, 236, 224, 0.4);
  background: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.word__more:hover { border-color: var(--cream); }
.word__more:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }
.word__who { display: flex; align-items: center; gap: 14px; }
.word__face {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(242, 236, 224, 0.14);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  letter-spacing: 0.06em;
}
.word__face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.word__name { display: block; font-size: 15px; font-weight: 600; }
.word__role { display: block; font-size: 13px; color: rgba(242, 236, 224, 0.62); margin-top: 3px; }

/* ---------- Brands ---------- */
.brands { display: grid; gap: 28px; }
.brands__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.brand-tile {
  display: grid;
  place-items: center;
  min-height: clamp(92px, 9vw, 128px);
  padding: 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.brand-tile img {
  max-width: 68%;
  max-height: 38px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.86;
  transition: opacity 250ms ease;
}
.brand-tile:hover img { opacity: 1; }
.brand-tile__name {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 650;
  font-variation-settings: "wdth" 110;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; scroll-margin-top: 110px; }
.contact__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.contact__grid > div { padding: 22px 20px 0 0; min-width: 0; }
.contact__grid dt {
  font-size: 10.5px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.contact__grid dd {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.contact__grid a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color 200ms ease; }
.contact__grid a:hover { border-color: var(--ink); }
.contact__email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact__copy {
  border: 1px solid var(--rule);
  background: none;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__copy:hover { border-color: var(--ink); }
.contact__copy:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ---------- Footer ---------- */
.foot { display: grid; justify-items: center; gap: 14px; padding-top: 10px; }
.foot img { width: 72px; }
.foot span { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hello__intro { grid-template-columns: minmax(0, 1fr); height: auto; }
  .portrait { height: auto; max-width: 440px; }
  .portrait__frame { height: auto; aspect-ratio: 1468 / 1834; }
  .intro__side { gap: 44px; }
  .onset { width: 100%; }
  .onset__frame { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .onset__frame img { object-position: center; }
  .hello__intro { grid-template-rows: auto; }
  .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 460px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

/* On this scrolling page the header sits on its own cream band, so text never runs under it. */
.page-hello .chrome--top {
  mix-blend-mode: normal;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 16px;
}
.page-hello .chrome--top img { filter: none; }
