/* Iris Media 2026, direction A with the full-bleed hero (A3). The rotating iris is the one loud element. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --iris-deep: #05295a;
  --iris-blue: #0b4a92;
  --tally: #f38f1b;
  --paper: #edf1f5;
  --white: #ffffff;
  --ink: #071b33;
  --ink-2: #4a5a70;
  --ink-3: #33465f;
  --line: #d3dbe5;

  /* NDMX brand tokens (from the NDMX identity; do not alter) */
  --ndmx-navy: #0b2a57;
  --ndmx-night: #071a36;
  --ndmx-pale: #b5cfe1;
  --ndmx-label: #8fa9c2;

  --display: "Archivo", "Source Sans 3", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --plex: "IBM Plex Sans", system-ui, sans-serif;

  --gutter: 16px;
  --section: clamp(4.5rem, 3rem + 6vw, 7.5rem);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
/* Smooth scrolling only after load, so arriving on index.html#contact from another page lands without a slide */
html.is-ready { scroll-behavior: smooth; }

/* Cross-fade between pages; the header keeps its place instead of redrawing */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--tally); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 8px; }

.h2 { font-stretch: 115%; font-size: clamp(32px, 2rem + 1.4vw, 46px); letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: 20px; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-family: var(--display); font-stretch: 110%; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--tally { background: var(--tally); color: var(--ink); }
.btn--tally:hover { background: #ffa640; }
.btn--light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Masthead ---------- */
.masthead { position: absolute; inset-inline: 0; top: 0; z-index: 20; color: var(--white); }
.masthead.is-stuck { position: fixed; background: rgba(5, 41, 90, .95); backdrop-filter: blur(8px); }
.masthead__row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.masthead.is-stuck .masthead__row { padding-block: 10px; }
.brand img { width: 68px; transition: width .25s; }
@media (max-width: 860px) { .brand img { width: 54px; } }
.masthead.is-stuck .brand img { width: 42px; }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__list a { text-decoration: none; font-size: 17px; }
.nav__list a:hover, .nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav__list .nav__cta { background: var(--white); color: var(--ink); padding: 11px 20px; border-radius: 999px; }
.nav__list .nav__cta:hover { text-decoration: none; background: #dbe6f3; }
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-block; background: none; color: var(--white); border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 16px; }
  .nav__list { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--iris-deep); border: 1px solid rgba(185,208,236,.25); border-radius: 14px; padding: 8px; }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 12px 14px; }
  .nav__list .nav__cta { margin-top: 6px; text-align: center; }
}

/* ---------- Hero (A3: full bleed) ---------- */
.hero { position: relative; overflow: hidden; min-height: max(760px, 100svh); display: flex; flex-direction: column; background: var(--iris-deep); color: var(--white); }
.hero__slides { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Three photos dissolve into each other on a 21s loop: each new photo fades in over 2s on top of the
   previous one (which stays fully visible underneath, so there is no dip), holds, then drops out of sight. */
@keyframes dissolve {
  0% { opacity: 0; z-index: 2; }
  9.5% { opacity: 1; z-index: 2; }
  /* stay on top until the previous photo has dropped out (its 44%), or slide 3 pops back over slide 1 on the wrap */
  12% { opacity: 1; z-index: 2; }
  12.5% { opacity: 1; z-index: 1; }
  43% { opacity: 1; z-index: 1; }
  44% { opacity: 0; z-index: 1; }
  100% { opacity: 0; z-index: 1; }
}
.hero__photo { opacity: 0; animation: dissolve 21s linear infinite; }
.hero__photo:nth-child(1) { animation-delay: -2s; }
.hero__photo:nth-child(2) { animation-delay: 5s; }
.hero__photo:nth-child(3) { animation-delay: 12s; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,41,90,.96) 0%, rgba(5,41,90,.9) 38%, rgba(5,41,90,.62) 72%, rgba(5,41,90,.8) 100%); }
.hero__iris { position: absolute; inset-inline-end: 3%; top: 12%; width: min(700px, 50vw); aspect-ratio: 1; pointer-events: none; }
.hero__iris svg { width: 100%; height: 100%; overflow: visible; }
.hero__body { position: relative; flex: 1; display: flex; align-items: center; padding-top: 120px; padding-bottom: 72px; }
.hero__text { max-width: 660px; }
.hero__title { font-stretch: 125%; font-size: clamp(48px, 6.4vw, 92px); line-height: .95; letter-spacing: -0.03em; }
.hero__lede { margin-top: 30px; font-size: 21px; line-height: 1.5; color: #d6e3f3; max-width: 29em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 860px) {
  .hero__iris { width: 120vw; inset-inline-end: -50vw; top: 18%; opacity: .45; }
    }

/* Wider screens: the rings sit to the right, partly off the edge, and fade out towards the right
   so their weight leans back towards the headline instead of pulling the page right. */
@media (min-width: 861px) {
  .hero__iris {
    inset-inline-end: -10vw; top: calc(50% + 10px); translate: 0 -50%;
    width: min(760px, 52vw, 80svh);
    -webkit-mask-image: linear-gradient(90deg, #000 18%, rgba(0,0,0,.55) 48%, transparent 82%);
            mask-image: linear-gradient(90deg, #000 18%, rgba(0,0,0,.55) 48%, transparent 82%);
  }
  .hero__shade { background: linear-gradient(90deg, rgba(5,41,90,.96) 0%, rgba(5,41,90,.9) 38%, rgba(5,41,90,.6) 70%, rgba(5,41,90,.78) 100%); }
  .hero__body { padding-top: 120px; padding-bottom: 48px; }
  .hero__text { max-width: 640px; }
}

/* The rings: arrive once, then turn slowly */
@keyframes turn { to { rotate: 360deg; } }
@keyframes turn-back { to { rotate: -360deg; } }
@keyframes arrive { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.ring { transform-origin: 300px 300px; animation: arrive 1.1s cubic-bezier(.2,.7,.2,1) both, turn 140s linear infinite; }
.ring--back { animation-name: arrive, turn-back; }
.ring--fast { animation-duration: 1.1s, 70s; }
.ring--mid { animation-duration: 1.1s, 95s; }
.ring--slow { animation-duration: 1.1s, 200s; }
.ring:nth-child(2) { animation-delay: .08s, 0s; } .ring:nth-child(3) { animation-delay: .16s, 0s; }
.ring:nth-child(4) { animation-delay: .24s, 0s; } .ring:nth-child(5) { animation-delay: .32s, 0s; }
.ring:nth-child(6) { animation-delay: .40s, 0s; } .ring:nth-child(7) { animation-delay: .48s, 0s; }
.ring:nth-child(8) { animation-delay: .56s, 0s; }
/* Second and later visits in a session: rings are already in place, only the slow turn runs */
html.seen .ring { animation-delay: -2s, 0s; }

@media (prefers-reduced-motion: reduce) { html.is-ready { scroll-behavior: auto; } .ring, .orb, .hero__photo { animation: none !important; } .hero__photo:first-child { opacity: 1; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Services ---------- */
.services { background: var(--white); padding-block: var(--section); }
.services__head { max-width: 760px; }
.services__head p { margin-top: 18px; }
.services__list { display: grid; gap: clamp(64px, 8vw, 110px); margin-top: clamp(48px, 6vw, 90px); }
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.svc--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.svc--flip .svc__photo { order: 2; }
.svc__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px 4px 4px 160px; }
.svc--flip .svc__photo { border-radius: 4px 4px 160px 4px; }
.svc h3 { font-stretch: 120%; font-size: clamp(30px, 1.6rem + 1vw, 40px); line-height: 1; }
.svc p { margin-top: 16px; color: var(--ink-2); }
.svc ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.svc li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .svc, .svc--flip { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__photo { order: 0; }
  .svc__photo, .svc--flip .svc__photo { border-radius: 4px 4px 4px 90px; }
}

/* ---------- NDMX band (in its own brand) ---------- */
.ndmx-band { background: var(--white); padding-inline: var(--gutter); }
.ndmx-band__panel {
  max-width: 1216px; margin: 0 auto; background: var(--ndmx-navy); color: var(--white); border-radius: 0 0 28px 28px;
  padding: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between;
  font-family: var(--plex);
}
.ndmx-band__text { flex: 1 1 520px; min-width: 0; }
.ndmx-band__text img { width: 170px; }
.ndmx-band__text p { margin-top: 22px; font-size: clamp(20px, 1.1rem + .5vw, 26px); line-height: 1.3; max-width: 28em; }
.ndmx-band__text small { display: block; margin-top: 12px; font-size: 16px; color: var(--ndmx-pale); }
.ndmx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ndmx, .btn--ndmx-ghost { font-family: var(--plex); font-stretch: normal; border-radius: 6px; }
.btn--ndmx { background: var(--white); color: var(--ndmx-navy); }
.btn--ndmx:hover { background: var(--ndmx-pale); }
.btn--ndmx-ghost { color: var(--white); border-color: rgba(181,207,225,.5); }
.btn--ndmx-ghost:hover { border-color: var(--white); }

/* ---------- Clients and partners ---------- */
.clients { padding-block: var(--section) 40px; }
.split-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-wall li { background: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; min-width: 0; }
/* --w is each logo's width in its cell, computed from its trimmed shape and ink density so all logos read at a similar size */
/* client cells are 3:2, so the square-cell widths are scaled down to keep the same visual size */
.logo-wall img { width: calc(var(--w) * .66); height: auto; }
.partners { padding-block: 60px var(--section); }
.partners h3 { font-stretch: 112%; font-weight: 700; font-size: 22px; margin-bottom: 28px; }
/* Partner scroller: two copies of the list slide left by one copy's width, so the loop is seamless.
   --w sizes each logo from its measured visible shape and ink density (width = aspect^0.68 x density^-0.35, scaled so the median logo is 140px wide); --y nudges logos whose main word sits off their own centre. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; align-items: center; gap: 64px; padding-inline-end: 64px; height: 110px; }
.marquee__list img { display: block; width: calc(var(--w) * var(--k, 1)); height: auto; max-width: none; translate: 0 var(--y, 0%); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee__list { gap: 44px; padding-inline-end: 44px; height: 90px; --k: .78; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; height: auto; row-gap: 32px; padding: 0; }
  .marquee__list[aria-hidden] { display: none; }
}
@media (max-width: 860px) { .split-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-wall li { aspect-ratio: 1; }
  .logo-wall img { width: var(--w); }
}

/* ---------- About ---------- */
.about { background: var(--white); padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.about__quote { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(26px, 1.3rem + 1vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.about__lede { font-size: 20px; color: var(--ink-3); }
.about__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.about__pair h3 { font-size: 17px; font-weight: 700; color: var(--iris-blue); margin-bottom: 8px; }
@media (max-width: 860px) { .about__grid, .about__pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--iris-deep); color: var(--white); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.contact h2 { font-stretch: 118%; font-size: clamp(38px, 2rem + 2vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.contact__intro { margin-top: 20px; color: #c5d5ea; max-width: 30em; }
.contact__list { margin-top: 40px; display: grid; grid-template-columns: 130px minmax(0, 1fr); row-gap: 14px; }
.contact__list dt { color: #8fb0d6; }
.contact__list a { color: var(--white); }
.form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; color: #8fb0d6; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(143,176,214,.4); border-radius: 8px; padding: 13px 14px; width: 100%; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--tally); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.4em; font-size: 16px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { color: #ffb4a8; }
.form__status.is-ok { color: #9fe0b4; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__list { grid-template-columns: 100px minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: #031f46; color: #9fb4cf; font-size: 15px; padding-block: 24px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: #dbe6f3; }
.form__note { font-size: 15px; color: #8fb0d6; }
.form__note a { color: #ffffff; }

/* ---------- Legal and error pages ---------- */
.legal { padding-block: 150px var(--section); background: var(--white); min-height: 70vh; }
.legal__body { max-width: 760px; }
.legal__updated { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.legal h2 { font-stretch: 112%; font-weight: 700; font-size: 22px; margin-top: 40px; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-3); }
.legal ul { padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--iris-blue); }

/* ---------- NDMX page ---------- */
.grid48 { background-color: var(--ndmx-night); background-image: linear-gradient(rgba(120,162,194,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,162,194,.07) 1px, transparent 1px); background-size: 48px 48px; }
.nx-hero { color: var(--white); font-family: var(--plex); padding-block: calc(120px + clamp(40px, 6vw, 80px)) clamp(72px, 9vw, 110px); }
.nx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.nx-hero__lockup { width: 200px; }
.nx-hero__label { margin-top: 30px; color: var(--ndmx-label); font-size: 16px; }
.nx-hero h1 { margin-top: 10px; font-family: var(--plex); font-weight: 600; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.nx-hero__lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ndmx-pale); max-width: 33em; }
.nx-hero .ndmx-actions { margin-top: 32px; }
.nx-sphere { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.nx-sphere svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nx-sphere img { position: absolute; inset: 24%; width: 52%; height: 52%; }
.orb { transform-origin: 300px 300px; animation: turn 160s linear infinite; }
.orb--back { animation-name: turn-back; animation-duration: 110s; }
.nx-covers { padding-block: var(--section) clamp(60px, 7vw, 90px); }
.nx-covers .h2 { margin-bottom: 36px; }
.nx-mods { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; font-family: var(--plex); }
.nx-mods li { padding: 20px 0; border-top: 1px solid #c9d6e3; }
.nx-mods li:nth-child(-n+4) { border-top: 2px solid var(--ndmx-navy); }
.nx-mods a { display: block; text-decoration: none; }
.nx-mods a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.nx-notes p a { color: var(--iris-blue); }
.nx-mods h3 { font-family: var(--plex); font-size: 18px; font-weight: 600; line-height: 1.3; }
.nx-mods p { margin-top: 6px; color: #44546a; font-size: 15px; }
.nx-notes { background: var(--white); padding-block: clamp(60px, 7vw, 90px); }
.nx-notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nx-notes h2 { font-stretch: 112%; font-weight: 700; font-size: 22px; }
.nx-notes p { margin-top: 10px; color: var(--ink-2); }
.nx-cta { background: var(--white); padding: 0 var(--gutter) var(--section); }
.nx-cta__panel { max-width: 1216px; margin: 0 auto; background: var(--ndmx-navy); color: var(--white); border-radius: 20px; padding: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; font-family: var(--plex); }
.nx-cta__panel > div:first-child { flex: 1 1 480px; min-width: 0; }
.nx-cta h2 { font-family: var(--plex); font-weight: 600; font-size: clamp(26px, 1.4rem + 1vw, 32px); line-height: 1.2; }
.nx-cta p { margin-top: 10px; color: var(--ndmx-pale); font-size: 17px; }
@media (max-width: 860px) {
  .nx-hero__grid, .nx-notes__grid { grid-template-columns: minmax(0, 1fr); }
  .nx-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-mods li:nth-child(n+3) { border-top: 1px solid #c9d6e3; }
  .nx-sphere { max-width: 320px; }
}
