/* ============================================================================
   chrome.css — header, mobile drawer, page hero, footer
   ========================================================================== */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px;
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* --- header --------------------------------------------------------------- */
.te-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--gutter);
  background: var(--navy);
  transition: box-shadow .2s;
}
.te-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
.te-header__brand img { width: 150px; height: auto; }

.te-header__nav { display: flex; align-items: center; gap: 4px; }
.te-header__nav a {
  position: relative;
  color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 10px 14px;
}
.te-header__nav a:not(.te-btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--frost);
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.te-header__nav a:not(.te-btn):hover::after,
.te-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.te-header__nav a:hover { color: var(--white); }
.te-header__nav .te-btn { margin-left: 12px; }

.te-burger {
  display: none;
  background: none; border: 0; color: var(--white); cursor: pointer;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
}

/* --- buttons ---------------------------------------------------------------- */
.te-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 15px 22px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.te-btn:hover { transform: translateY(-1px); }
.te-btn--primary { background: var(--frost); color: var(--white); }
.te-btn--primary:hover { background: var(--cobalt); color: var(--white); }
.te-btn--ghost { border-color: currentColor; color: var(--white); }
.te-btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.te-btn--ink { border-color: var(--navy); color: var(--navy); }
.te-btn--ink:hover { background: var(--navy); color: var(--white); }
.te-btn svg { width: 16px; height: 16px; flex: none; }

/* --- mobile drawer ---------------------------------------------------------- */
.te-mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.te-mobile-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.te-mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 var(--gutter);
}
.te-mobile-nav__top img { width: 140px; height: auto; }
.te-mobile-nav__close {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--white); font: inherit; font-size: 15px; cursor: pointer;
}
.te-mobile-nav__close svg { width: 22px; height: 22px; }
.te-mobile-nav__inner { padding: 16px var(--gutter) 40px; overflow-y: auto; }
.te-mobile-nav__inner a:not(.te-btn) {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -.01em;
}
.te-mobile-nav__inner a[aria-current="page"] { color: var(--frost); }
.te-mobile-nav__inner .idx { font-family: var(--font-sub); font-size: 13px; color: var(--on-dark-soft); }
.te-mobile-nav__inner .te-btn { margin-top: 28px; }

@media (max-width: 860px) {
  .te-header { height: 64px; }
  .te-header__brand img { width: 128px; }
  .te-header__nav { display: none; }
  .te-burger { display: inline-flex; }
  .te-mobile-nav__top { height: 64px; }
}
body.nav-open { overflow: hidden; }

/* --- page hero -------------------------------------------------------------- */
/* Full-bleed photo, navy wash from the left, and the brand triangle in the
   bottom-right corner. The triangle is the right-angle from the logotype. */
.te-hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* One height for every page hero (Iris, 5 Oct): the home hero used to be
     taller. Pages still carry .te-hero--short in markup; it no longer differs. */
  min-height: clamp(640px, 76vh, 720px);   /* floor fits the tallest hero copy (home) */
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 9vw, 110px);
  background: var(--navy); color: var(--white);
}
.te-hero__media, .te-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.te-hero__media img { object-position: var(--focus-desktop, 50% 50%); }
/* Slow drift on every hero photo (Iris, 9 Oct 2026). First pass copied St
   Luke's (2% to 9% over 28s, ease-in-out) and Iris could not see it: the
   ease-in barely moves in the first seconds. Now it starts moving at once and
   travels further: 100% to 112% over 14s, then back (24s felt too slow). The picture clips it
   (overflow hidden), so the zoom never shows an edge. Off for reduced motion. */
.te-hero__media { overflow: hidden; }
.te-hero__media img {
  animation: te-drift 14s linear both infinite alternate;
  will-change: transform;
}
@keyframes te-drift { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .te-hero__media img { animation: none; } }
.te-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 26, 77, .92) 0%, rgba(24, 26, 77, .72) 42%, rgba(24, 26, 77, .12) 78%),
    linear-gradient(0deg, rgba(24, 26, 77, .55) 0%, rgba(24, 26, 77, 0) 45%);
}
.te-hero::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: -1;
  width: clamp(120px, 22vw, 320px); aspect-ratio: 1;
  background: var(--frost); opacity: .92;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.te-hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.te-hero__copy { max-width: 760px; }
.te-hero .eyebrow { color: var(--frost); }
.te-hero h1 { color: var(--white); margin-top: 14px; }
.te-hero .lede { color: var(--on-dark-soft); margin-top: 22px; max-width: 60ch; }
.te-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Phones: photo on top, uncovered, text below it on navy. Overlaying the copy
   put the heading straight across children's faces (Iris, 5 Oct). The photo
   takes whatever height the copy leaves, so every hero is still one height.
   Each page can set --focus on .te-hero__media to keep its faces in frame. */
@media (max-width: 640px) {
  .te-hero {
    min-height: max(78vh, 610px);
    flex-direction: column; align-items: stretch;
    padding: 0 0 44px;
  }
  .te-hero::before { display: none; }
  .te-hero::after { width: 96px; z-index: 1; }
  .te-hero__media {
    position: relative; inset: auto; z-index: 0;
    display: block; flex: 1 1 auto; min-height: 200px; height: auto;
    margin-bottom: -1px;   /* hides a hairline seam between photo and navy */
  }
  .te-hero__media img { position: absolute; inset: 0; z-index: auto; object-position: var(--focus, 50% 35%); }
  .te-hero__media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background: linear-gradient(0deg, var(--navy) 0%, rgba(24, 26, 77, 0) 100%);
  }
  .te-hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter); margin-top: -18px; }
  /* a hero with no photo (404) keeps its breathing room at the top */
  .te-hero:not(:has(.te-hero__media)) { justify-content: flex-end; padding-top: 72px; }
}
@media (max-width: 340px) {
  .te-hero { min-height: max(78vh, 700px); }   /* home copy wraps further at 320px */
}

/* --- footer ----------------------------------------------------------------- */
.te-footer {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-dark-soft);
  padding: 72px var(--gutter) 32px;
  font-size: 15px;
}
.te-footer::after {
  content: ""; position: absolute; right: 0; top: 0;
  width: 180px; aspect-ratio: 1; background: var(--cobalt);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.te-footer__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.te-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.te-footer__brand img { width: 170px; height: auto; }
.te-footer__tag {
  margin-top: 18px; font-family: var(--font-sub); font-weight: 600;
  font-size: 19px; color: var(--white); max-width: 22ch; line-height: 1.3;
}
.te-footer h2 {
  font-family: var(--font-sub); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white); margin-bottom: 14px;
}
.te-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.te-footer a { color: var(--on-dark-soft); text-decoration: none; }
.te-footer a:hover { color: var(--white); text-decoration: underline; }
.te-footer address { font-style: normal; }
.te-footer__social { display: inline-flex; align-items: center; gap: 8px; }
.te-footer__social svg { width: 18px; height: 18px; }
.te-footer__base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px;
}
@media (max-width: 860px) {
  .te-footer__grid { grid-template-columns: 1fr 1fr; }
  .te-footer__brand { grid-column: 1 / -1; }
  .te-footer::after { width: 100px; }
}
@media (max-width: 480px) {
  .te-footer__grid { grid-template-columns: 1fr; }
}
