/* ibar.dev — Inforce Academy
   Direction: "Loud and flat" (flat colour fields, the heaviest type, blunt statements).
   Colours and faces follow inforce.io: black, blue, mint; a Futura-style display face and a mono text face. */

/* ---------- tokens ---------- */
:root {
  --black: #0f0f0f;
  --white: #ffffff;
  --blue: #3173b3;        /* the INFORCE blue: tiles, tints, highlights */
  --blue-field: #1f5a96;  /* a step deeper for whole fields, so running text reads at 7:1 */
  --blue-deep: #184b7e;
  --navy: #05365e;
  --mint: #6af8a2;
  --k1: #181818;
  --k2: #212121;

  --font-display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-text: "Kode Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; /* taste-skill-ignore: the INFORCE brand sets its text in a mono face */

  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-mid: 1.375rem;
  --fs-lead: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  --fs-head: clamp(2.5rem, 1.1rem + 4.4vw, 5.25rem);
  --fs-poster: clamp(3.25rem, 10vw, 10rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(5rem, 10vw, 10rem);
  --bar-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --stagger-line: 110ms;
  --stagger-item: 70ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, ol, address { margin: 0; }
ul { padding: 0; list-style: none; }
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[id] { scroll-margin-top: var(--bar-h); }
::selection { background: var(--mint); color: var(--black); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.field--white :focus-visible, .field--mint :focus-visible { outline-color: var(--black); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -20rem; z-index: 100; background: var(--mint); color: var(--black); padding: 0.75rem 1rem; font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.skip:focus { top: 0.5rem; }

/* ---------- colour fields: each panel is one colour, its text one other ---------- */
.field { background: var(--bg); color: var(--ink); }
.field--black { --bg: var(--black); --ink: var(--white); --muted: #a8a8a8; --btn: var(--mint); --btn-ink: var(--black); --btn-hover: var(--white); }
.field--blue  { --bg: var(--blue-field);  --ink: var(--white); --muted: var(--white); --btn: var(--mint); --btn-ink: var(--black); --btn-hover: var(--white); }
.field--navy  { --bg: var(--navy);  --ink: var(--white); --muted: #a9c4dd; --btn: var(--mint); --btn-ink: var(--black); --btn-hover: var(--white); }
.field--mint  { --bg: var(--mint);  --ink: var(--black); --muted: #1f5a3a; --btn: var(--black); --btn-ink: var(--white); --btn-hover: var(--navy); }
.field--white { --bg: var(--white); --ink: var(--black); --muted: #4d4d4d; --btn: var(--black); --btn-ink: var(--white); --btn-hover: var(--blue); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.88; hyphens: none; }
.head { font-size: var(--fs-head); }
.statement { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.16; letter-spacing: -0.012em; }
p { max-width: 60ch; text-wrap: pretty; }
figure img { filter: grayscale(1) contrast(1.06); }

.lines .line { display: block; overflow: hidden; padding: 0.16em 0.06em 0.07em 0; margin: -0.16em -0.06em -0.07em 0; }
.lines [data-line] { display: block; }
[data-fit] [data-line], [data-fit-line] { white-space: nowrap; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0 1.5rem; background: var(--btn); color: var(--btn-ink); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-mid); line-height: 1; letter-spacing: 0; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button__go { transition: transform 300ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.09em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.09em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--btn-hover); }
  .field--mint .button:hover, .field--white .button:hover { color: var(--white); }
  .button:hover .button__go { transform: translateX(5px); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.16em; }
}

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 60; height: var(--bar-h); background: var(--black); color: var(--white); display: grid; grid-template-columns: calc(34vw - var(--margin)) minmax(0, 1fr) auto; align-items: center; padding-inline: var(--margin); }
.bar__mark { display: inline-flex; align-items: center; gap: 0.7rem; justify-self: start; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.bar__mark img { width: 2.75rem; }
.bar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.5rem); font-size: var(--fs-small); }
.bar__nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.35em; text-decoration-thickness: 2px; padding-block: 0.75rem; transition: text-decoration-color var(--t-hover) ease; }
.bar__nav a:hover { text-decoration-color: var(--mint); }
.bar__end { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: flex; }
.lang button { min-width: 2.75rem; min-height: 2.75rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); color: #a8a8a8; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.35em; text-decoration-thickness: 2px; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.lang button[aria-pressed="true"] { color: var(--white); text-decoration-color: var(--mint); }
.lang button:hover { color: var(--white); }
.button--bar { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--fs-body); --btn: var(--mint); --btn-ink: var(--black); --btn-hover: var(--white); }
.bar__menu { display: none; min-height: 2.75rem; padding: 0 0.25rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); text-transform: uppercase; }

/* ---------- hero: narrow talk, wide headline ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: calc(34vw - var(--margin)) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: calc(100svh - var(--bar-h)); padding: clamp(1rem, 3.4vh, 2.25rem) var(--margin) 0; }
.camo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__title { grid-column: 2; grid-row: 1; min-width: 0; font-size: clamp(3.5rem, 11vw, 11.5rem); line-height: 0.82; letter-spacing: -0.045em; }
.hero__talk { grid-column: 1; grid-row: 1 / span 2; padding: 15vh var(--gutter) 3rem 0; }
.hero__lead { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-mid); line-height: 1.32; letter-spacing: -0.008em; max-width: 24ch; }
.hero__talk .button { margin-top: 2rem; }
.hero__aside { margin-top: 1.5rem; font-size: var(--fs-small); max-width: none; color: var(--muted); }
.hero__aside a { color: var(--white); }
.hero__pic { grid-column: 2; grid-row: 2; position: relative; margin-top: clamp(4rem, 12vh, 7rem); min-height: 34vh; }
.shot { position: absolute; inset: 0; overflow: clip; background: var(--k2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__fact { position: absolute; left: 0; top: 0; z-index: 2; width: 16.25rem; translate: 0 -50%; background: var(--mint); color: var(--black); padding: 1.1rem 1.25rem 1.2rem; }
.hero__fact-num { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; }
.hero__fact p + p { margin-top: 0.5rem; font-size: var(--fs-small); line-height: 1.45; }

/* ---------- intro: edge-to-edge headline on blue ---------- */
.intro { min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(3.5rem, 9vw, 9rem); padding: clamp(2.5rem, 5.5vw, 5.5rem) var(--margin) var(--section); }
.intro__head { position: relative; font-size: var(--fs-poster); }
.intro__head h2 { font-size: 1em; line-height: 0.86; letter-spacing: -0.04em; }
.chip { position: absolute; top: calc(100% + 0.1em); right: 0.12em; width: 0.9em; height: 0.5em; rotate: 4deg; overflow: hidden; background: var(--blue-deep); }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.intro__grid .statement { grid-column: 1 / span 8; max-width: none; }
.intro__more { grid-column: 9 / span 4; }
.intro__quote { margin-top: 2.25rem; }
.intro__quote p { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.12; letter-spacing: -0.015em; }
.intro__quote footer { margin-top: 0.75rem; font-size: var(--fs-small); }

/* ---------- selection: accordion of tinted panels ---------- */
.select { padding: var(--section) var(--margin); }
.select__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; align-items: end; }
.select__intro h2 { grid-column: 1 / span 7; }
.select__intro p { grid-column: 8 / span 5; }
.acc { display: flex; height: 32.5rem; margin-top: 4rem; }
.acc__panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--tone); color: var(--tone-ink); transition: flex-grow 450ms var(--ease-in-out); }
.acc__panel.is-open { flex-grow: 5; }
.acc__title { position: static; font-size: 1rem; letter-spacing: 0; }
.acc__btn { position: absolute; inset: 0; z-index: 2; width: 100%; text-align: left; }
.acc__label { position: absolute; left: 1.5rem; bottom: 1.5rem; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; transition: translate 300ms var(--ease-out); }
.acc__panel.is-open .acc__btn { inset: 0 auto auto 0; width: calc((100vw - 2 * var(--margin)) * 0.3125); padding: 1.5rem; cursor: default; }
.acc__panel.is-open .acc__label { position: static; display: block; writing-mode: horizontal-tb; rotate: none; white-space: normal; font-size: var(--fs-lead); }
.acc__body { position: absolute; inset: 0 auto 0 0; width: calc((100vw - 2 * var(--margin)) * 0.625); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 0s 180ms; }
.acc__panel.is-open .acc__body { opacity: 1; visibility: visible; transition: opacity 420ms ease 220ms, visibility 0s; }
.acc__body p { align-self: end; padding: 1.5rem; max-width: 34ch; line-height: 1.5; }
.acc__body figure { height: 100%; min-height: 0; overflow: hidden; }
.acc__body img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .acc__panel:not(.is-open):hover .acc__label { translate: 0 -0.6rem; }
}

/* ---------- training: capabilities at poster scale, on mint ---------- */
.train { padding: 16vh var(--margin); font-size: var(--fs-head); }
.train__head { font-size: 1em; line-height: 1; color: var(--muted); }
.train__list { display: grid; row-gap: 0.35em; margin-top: 0.35em; }
.train__list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: first baseline; }
.train__name { grid-column: 1 / span 8; font-size: 1em; line-height: 1; transition: color var(--t-hover) ease; }
.train__list p { grid-column: 9 / span 4; font-size: var(--fs-body); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .train__list:hover li:not(:hover) .train__name { color: var(--muted); }
}

/* ---------- wall of tiles ---------- */
.wall { padding: var(--section) var(--margin) var(--margin); }
.wall__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--t, var(--k1)); color: var(--t-ink, var(--white)); text-align: center; }
.tile--head { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter) 0.25rem 0; background: none; text-align: left; }
.tile--head h2 { font-size: var(--fs-lead); line-height: 0.92; }
.tile--head p { font-size: var(--fs-body); color: var(--muted); max-width: 26ch; }
.tile__front, .tile__back { position: absolute; inset: 0; display: grid; transition: translate 520ms var(--ease-out), opacity 260ms ease; }
.tile__front { place-items: center; }
.tile__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 13vw, 13rem); line-height: 0.8; letter-spacing: -0.04em; translate: 0 -0.04em; }
.tile__cap { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 1.125rem; font-size: var(--fs-small); line-height: 1.3; }
.tile__back { place-items: end start; padding: 1.25rem; text-align: left; font-size: var(--fs-body); line-height: 1.45; opacity: 0; translate: 0 14%; }
.tile--fig.is-flipped .tile__front { opacity: 0; translate: 0 -14%; }
.tile--fig.is-flipped .tile__back { opacity: 1; translate: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .tile--fig:hover .tile__front { opacity: 0; translate: 0 -14%; }
  .tile--fig:hover .tile__back { opacity: 1; translate: 0 0; }
}
.tile--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-soft); }
.tile--prof img { object-position: 50% 22%; }
.tile--crest { display: grid; place-items: center; }
.tile--crest img { width: 64%; }
.tile--prof figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; background: var(--black); color: var(--white); padding: 0.45rem 0.75rem; font-size: var(--fs-small); line-height: 1.35; text-align: left; }

/* ---------- professor: two columns, highlighted words ---------- */
.prof { padding: var(--section) var(--margin); }
.prof h2 { margin-bottom: clamp(2rem, 4.5vw, 4.5rem); }
.prof__text { columns: 2; column-gap: calc(var(--gutter) * 2); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -0.008em; color: var(--muted); text-align: left; }
html[lang|="sr"] .prof__text { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.prof__text p { max-width: none; }
.prof__text strong { font-weight: 700; color: var(--ink); }
.prof__text mark { padding: 0 0.12em; color: var(--black); background-color: var(--mint); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prof__text mark.m2 { background-color: var(--blue); color: var(--white); }
.prof__text mark.m3 { background-color: var(--black); color: var(--white); }
.prof__link { padding: 0 0.15em; background-color: var(--black); color: var(--white); text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.prof__link:hover { background-color: var(--mint); color: var(--black); }

/* ---------- values: one item per poster line ---------- */
.values { display: grid; grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr); column-gap: calc(var(--gutter) * 2); padding: clamp(4rem, 7vw, 7rem) var(--margin); }
.values__lines { min-width: 0; font-size: var(--fs-poster); }
.values__lines h2, .values__lines li { font-family: var(--font-display); font-weight: 900; font-size: 1em; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.values__lines h2 { color: var(--muted); }
.values__lines li { transition: color var(--t-hover) ease; }
.values__lines li:hover { color: var(--mint); }
.values__side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-top: 0.6rem; }
.values__pic { aspect-ratio: 4 / 5; rotate: 3deg; overflow: hidden; margin-right: 0.75rem; background: var(--k2); }
.values__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- principles: pinned heading, passing rows ---------- */
.princ { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: var(--section) var(--margin); }
.princ__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 2rem); font-size: var(--fs-head); }
.princ__list { grid-column: 7 / span 6; display: grid; row-gap: clamp(2.5rem, 4.4vw, 4rem); }
.princ__list p { max-width: none; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.18; letter-spacing: -0.01em; }
.princ__list .has-pic { display: grid; grid-template-columns: clamp(8rem, 11vw, 11rem) minmax(0, 1fr); column-gap: calc(var(--gutter) * 1.25); align-items: start; }
.princ__list .has-pic--right { grid-template-columns: minmax(0, 1fr) clamp(8rem, 11vw, 11rem); }
.princ__list .has-pic--right figure { order: 2; }
.princ__list figure { aspect-ratio: 3 / 4; overflow: hidden; background: #0a4576; }
.princ__list img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tenets: mosaic of unlike tiles ---------- */
.tenets { padding: var(--section) var(--margin); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 6rem; gap: 8px; }
.mo { max-width: none; padding: 1.5rem; background: var(--t, var(--k1)); color: var(--t-ink, var(--white)); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.12; letter-spacing: -0.012em; }
.mo--head { grid-column: 1 / span 6; grid-row: 1 / span 5; --t: var(--mint); --t-ink: var(--black); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.mo--head h2 { font-size: var(--fs-head); }
.mo--head p { font-family: var(--font-text); font-weight: 400; font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0; max-width: 30ch; }
.mo--a { grid-column: 7 / span 6; grid-row: 1 / span 3; --t: var(--blue); }
.mo--b { grid-column: 7 / span 3; grid-row: 4 / span 2; --t: var(--white); --t-ink: var(--black); }
.mo--c { grid-column: 10 / span 3; grid-row: 4 / span 2; --t: var(--k2); }
.mo--d { grid-column: 1 / span 3; grid-row: 6 / span 3; --t: var(--navy); }
.mo--e { grid-column: 4 / span 6; grid-row: 6 / span 3; --t: var(--white); --t-ink: var(--black); }
.mo--f { grid-column: 10 / span 3; grid-row: 6 / span 3; --t: var(--blue); }
.mo--g { grid-column: 1 / span 6; grid-row: 9 / span 3; --t: var(--k2); }
.mo--h { grid-column: 1 / span 3; grid-row: 12 / span 2; --t: var(--blue); }
.mo--i { grid-column: 4 / span 3; grid-row: 12 / span 2; --t: var(--white); --t-ink: var(--black); }
.mo--j { grid-column: 7 / span 6; grid-row: 9 / span 5; --t: var(--mint); --t-ink: var(--black); font-weight: 900; font-size: clamp(2.75rem, 7.2vw, 7.5rem); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; }
.mo--k { grid-column: 1 / span 6; grid-row: 14 / span 3; --t: var(--navy); }
.mo--l { grid-column: 7 / span 6; grid-row: 14 / span 3; --t: var(--white); --t-ink: var(--black); font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 3.5rem); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; }

/* ---------- the extra mile: two giant figures compared ---------- */
.mile { overflow: hidden; padding: var(--section) var(--margin) var(--margin); }
.mile__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: start; }
.mile__top h2 { grid-column: 1 / span 6; font-size: var(--fs-lead); line-height: 1; letter-spacing: -0.025em; }
.mile__top p { grid-column: 7 / span 6; }
.mile__sum { max-width: none; margin-top: 10vh; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 24vw, 26rem); line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mile__plus { display: inline-block; }

/* ---------- portal: line-up at one type size ---------- */
.portal { padding: var(--section) var(--margin); }
.portal__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: end; }
.portal__top h2 { grid-column: 1 / span 6; }
.find { grid-column: 7 / span 6; }
.find__input { width: 100%; min-height: 3.75rem; padding: 0 1.1rem; background: var(--k2); color: var(--white); border: 0; border-radius: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-mid); -webkit-appearance: none; appearance: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.find__input::placeholder { color: #a8a8a8; opacity: 1; }
.find__input:focus { background: var(--white); color: var(--black); outline: 3px solid var(--mint); outline-offset: 0; }
.find__input:focus::placeholder { color: #5c5c5c; }
.find__hint { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--muted); max-width: none; }
.tools { margin-top: 1rem; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.008em; }
.tools__group h3 { position: sticky; top: var(--bar-h); z-index: 1; margin-top: 3.25rem; padding: 0.6rem 0; background: var(--black); color: var(--mint); font: inherit; letter-spacing: inherit; text-transform: none; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.5em; column-gap: var(--gutter); align-items: baseline; margin-inline: -0.75rem; padding-inline: 0.75rem; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tool__host { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t-hover) ease; }
.tool__go { text-align: right; transition: translate 300ms var(--ease-out); }
.tool.is-first { background: var(--k2); color: var(--mint); }
.tool:focus-visible { outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .tool:hover { background: var(--k2); color: var(--mint); }
  .tool:hover .tool__host { color: var(--white); }
  .tool:hover .tool__go { translate: 5px 0; }
}
.tools__empty { margin-top: 3rem; max-width: none; }
.tools__empty button { text-decoration: underline; text-underline-offset: 0.2em; color: var(--mint); }
.portal__note { margin-top: 3.5rem; font-size: var(--fs-small); color: var(--muted); }

/* ---------- contact: photo strip, three-cell bar ---------- */
.contact { overflow: clip; padding: 3rem 0 var(--section); }
.strip { overflow: hidden; }
.strip__run { display: flex; gap: 8px; width: max-content; padding-right: 8px; }
.strip img { flex: none; width: auto; height: 150px; max-width: none; aspect-ratio: var(--r); object-fit: cover; filter: grayscale(1) contrast(1.06); background: var(--blue-deep); }
.contact__body { margin-top: 4.5rem; padding-inline: var(--margin); }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2.5rem; }
.cell { display: flex; flex-direction: column; min-height: 18rem; padding: 1.5rem; background: var(--blue-deep); }
.cell__time, .cell__cta { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-head); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cell__place { margin-top: 0.5rem; }
.cell address { margin-top: auto; padding-top: 1.5rem; font-style: normal; line-height: 1.5; }
.cell--go { justify-content: space-between; gap: 1.5rem; background: var(--white); color: var(--black); text-decoration: none; transition: background-color var(--t-hover) ease; }
.cell__arrow { display: inline-block; transition: translate 300ms var(--ease-out); }
.cell__mail { overflow-wrap: anywhere; }
.cell--go:focus-visible { outline-color: var(--mint); }
@media (hover: hover) and (pointer: fine) {
  .cell--go:hover { background: var(--mint); }
  .cell--go:hover .cell__arrow { translate: 0.12em 0; }
}
.contact__note { margin-top: 1.25rem; max-width: none; }

/* ---------- footer: invitation over a cropped name ---------- */
.foot { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; padding: var(--section) var(--margin) 0; }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.foot__invite { grid-column: 1 / span 9; min-width: 0; }
.foot__invite h2 { font-size: clamp(2.25rem, 5.6vw, 5.75rem); }
.foot__invite .button { margin-top: 2.25rem; }
.foot__links { grid-column: 10 / span 3; display: grid; gap: 0.65rem; padding-top: 0.4rem; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: auto; padding-top: 5rem; font-size: var(--fs-small); }
.foot__mark { max-width: none; margin: 1.75rem 0 0.04em; font-family: var(--font-display); font-weight: 900; font-size: 20vw; line-height: 0.72; letter-spacing: -0.05em; text-transform: uppercase; }

/* ============ motion (content stays visible without JavaScript) ============ */
@media (prefers-reduced-motion: no-preference) {
  /* load sequence, settled by 1.2s */
  .js .hero__title [data-line] { transform: translateY(112%); animation: line-up 860ms var(--ease-expo) forwards; animation-delay: calc(90ms + var(--i, 0) * var(--stagger-line)); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 520ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .hero [data-open] { clip-path: inset(0 0 100% 0); animation: open 1000ms var(--ease-in-out) 160ms forwards; }
  .js .hero [data-open] img { animation: settle 1300ms var(--ease-expo) 120ms both; }
  .js .camo { opacity: 0; animation: fade 900ms ease 60ms forwards; }

  /* headings rise line by line as they enter */
  .js [data-rise] [data-line] { transform: translateY(112%); }
  .js [data-rise].is-in [data-line] { transform: none; transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--stagger-line)); }

  /* parts arrive in reading order, once */
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger-item)); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .tile[data-reveal] { transform: scale(0.94); }
  .js .tile[data-reveal].is-in { transform: none; }
  /* the frame holds its place; the picture opens inside it (the clip sits on the picture, not on the
     observed frame, so the observer still sees the frame arrive) */
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] img { clip-path: inset(0 0 100% 0); scale: 1.12; transition: clip-path 1100ms var(--ease-in-out), scale 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in img { clip-path: inset(0); scale: 1; }

  /* the highlighter goes over the facts one by one */
  .js [data-marks] mark, .js [data-marks] .prof__link { transition: background-color 420ms ease, color 300ms ease; transition-delay: calc(var(--k, 0) * 150ms + 450ms); }
  .js [data-marks]:not(.is-in) mark, .js [data-marks]:not(.is-in) .prof__link { background-color: transparent; color: inherit; }
  [data-marks] mark:nth-of-type(2) { --k: 1; }
  [data-marks] mark:nth-of-type(3) { --k: 2; }
  [data-marks] mark:nth-of-type(4) { --k: 3; }
  [data-marks] mark:nth-of-type(5) { --k: 4; }
  [data-marks] mark:nth-of-type(6) { --k: 5; }
  [data-marks] .prof__link { --k: 6; }
  .prof__link:hover { transition-delay: 0s !important; }

  /* the cropped name rises into place once */
  .js .foot__mark[data-reveal] { opacity: 1; transform: translateY(32%); transition: transform 1300ms var(--ease-expo); }
  .js .foot__mark[data-reveal].is-in { transform: none; }

  /* the extra one arrives after the counter has run */
  .js [data-plus] { translate: 0 60%; }
  .js [data-plus].is-in { translate: 0 0; transition: translate 900ms var(--ease-expo) 1200ms; }

  /* the strip of photographs drifts */
  .strip__run.is-live { animation: strip 80s linear infinite; }
  .strip:hover .strip__run, .strip__run.is-paused { animation-play-state: paused; }

  .tile--pic:hover img { scale: 1.05; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { from { scale: 1.1; } to { scale: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes strip { to { transform: translateX(-50%); } }

/* scroll-linked drift, where the browser has scroll timelines */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .princ__list img { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes drift { from { translate: 0 -4%; scale: 1.1; } to { translate: 0 4%; scale: 1.1; } }
@keyframes mark-up { from { translate: 0 38%; } to { translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
}

/* ============ tablet and phone ============ */
@media (max-width: 61.99em) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; }
  .bar__menu { display: inline-flex; align-items: center; }
  .bar__nav { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem var(--margin) 1.75rem; background: var(--black); font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.03em; text-transform: uppercase; }
  .bar.is-open .bar__nav { display: flex; }
  .bar__nav a { padding-block: 0.35rem; }

  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-top: 1.25rem; }
  .hero__title, .hero__talk, .hero__pic { grid-column: 1; grid-row: auto; }
  .hero__talk { padding: 1.75rem 0 0; }
  .hero__lead { max-width: 30ch; }
  .hero__aside { max-width: none; }
  .hero__pic { margin: 9.5rem calc(var(--margin) * -1) 0; aspect-ratio: 4 / 3; min-height: 0; }
  .hero__fact { left: var(--margin); width: min(60%, 16.25rem); }

  .intro { min-height: 0; }
  .intro__grid .statement, .intro__more { grid-column: 1 / -1; }
  .select__intro h2, .select__intro p { grid-column: 1 / -1; }
  .train__name { grid-column: 1 / span 7; }
  .train__list p { grid-column: 8 / span 5; }
  .wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--head { grid-column: 1 / -1; aspect-ratio: auto; padding-bottom: 1.5rem; }
  .tile--head h2 { font-size: var(--fs-head); }
  .tile--prof { grid-column: span 2; aspect-ratio: 2 / 1; }
  .values { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .values__side { flex-direction: row; align-items: end; padding: 0; }
  .values__pic { width: 46%; flex: none; }
  .princ__head { grid-column: 1 / -1; position: static; margin-bottom: 3rem; }
  .princ__list { grid-column: 1 / -1; }
  .mile__top h2, .mile__top p { grid-column: 1 / -1; }
  .portal__top h2, .find { grid-column: 1 / -1; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--go { grid-column: 1 / -1; min-height: 12rem; }
  .foot__invite, .foot__links { grid-column: 1 / -1; }
  .foot__links { grid-auto-flow: column; justify-content: start; gap: 0.5rem 1.75rem; }
}

@media (max-width: 47.99em) {
  :root { --bar-h: 4rem; }
  .bar__mark span { display: none; }
  .bar__end { gap: 0.4rem; }

  .chip { position: static; width: 46vw; height: auto; aspect-ratio: 3 / 2; margin: 1.75rem 0.5rem 0 auto; }
  .intro__head h2 { line-height: 0.88; }

  .acc { flex-direction: column; height: auto; margin-top: 2.5rem; }
  .acc__panel, .acc__panel.is-open { flex: none; }
  .acc__btn, .acc__panel.is-open .acc__btn { position: static; display: flex; align-items: center; width: 100%; min-height: 4rem; padding: 0 1.25rem; cursor: pointer; }
  .acc__label, .acc__panel.is-open .acc__label { position: static; writing-mode: horizontal-tb; rotate: none; font-size: 1.125rem; }
  .acc__panel.is-open .acc__label { font-size: 1.5rem; }
  .acc__body { position: static; width: auto; display: none; }
  .acc__panel.is-open .acc__body { display: block; }
  .acc__body p { padding: 0 1.25rem 1.5rem; max-width: none; }
  .acc__body figure { height: auto; aspect-ratio: 3 / 2; }

  .train { padding-block: 5rem; font-size: 9.4vw; }
  .train__list { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; margin-top: 1.75rem; }
  .train__name, .train__head { overflow-wrap: anywhere; }
  .train__list li { display: block; }
  .train__list p { margin-top: 0.4rem; padding-left: var(--margin); }

  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tile__big { font-size: 22vw; }
  .tile__back { padding: 0.75rem; font-size: 0.8125rem; line-height: 1.35; }
  .tile__cap { bottom: 0.75rem; font-size: 0.8125rem; }

  .prof__text { columns: 1; font-size: 1.25rem; line-height: 1.25; text-align: left; hyphens: manual; -webkit-hyphens: manual; }

  .values__side { flex-direction: column; align-items: stretch; }
  .values__pic { width: 70%; margin-inline: auto 1rem; }

  .princ__list .has-pic, .princ__list .has-pic--right { display: block; }
  .princ__list figure { aspect-ratio: 4 / 3; margin-bottom: 1.25rem; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }
  .mo { grid-column: 1 / -1; grid-row: auto; min-height: 7.5rem; padding: 1.1rem; font-size: 1.375rem; }
  .mo--head { min-height: 15rem; }
  .mo--b, .mo--c, .mo--h, .mo--i { grid-column: auto; aspect-ratio: 1; font-size: 1.25rem; }
  .mo--j { min-height: 13rem; font-size: 11.5vw; overflow-wrap: anywhere; }
  .mo { min-width: 0; }
  .mo--l { font-size: 9vw; }

  .mile__sum { margin-top: 3.5rem; }

  .tool { grid-template-columns: minmax(0, 1fr) 1.5em; padding-block: 0.5rem; }
  .tool__name { font-size: 1.375rem; line-height: 1.25; }
  .tool__host { grid-column: 1; grid-row: 2; font-family: var(--font-text); font-size: var(--fs-small); line-height: 1.4; }
  .tool__go { grid-column: 2; grid-row: 1; }

  .strip img { height: 110px; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 13rem; }
  .cell--go { grid-column: auto; min-height: 9rem; }

  .foot__links { grid-auto-flow: row; }
  .foot__invite .button { width: 100%; justify-content: space-between; }
  .hero__talk .button { width: 100%; justify-content: space-between; }
}
