/* Agile Advisors: corporate system */
:root {
  --ink: #0d1f2a;
  --text: #22343f;
  --muted: #5b6c77;
  --line: #e2e7ea;
  --tint: #f4f6f7;
  --navy: #1e465b;
  --blue: #3f83b5;
  --green: #4aaa59;
  --red: #be1200;
  --night: #0c0d0e;
  --deep: #123447;

  --sans: "Commissioner", system-ui, sans-serif;
  --cond: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; scrollbar-color: #b9c4cb #fff; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.65 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: color-mix(in srgb, var(--blue) 28%, #fff); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* Metadata voice: condensed caps */
.facts dt, .table dt, .registry dt, .game__meta dt, .work__cat, .game__genre {
  font: 600 .78rem/1.4 var(--cond); letter-spacing: .09em; text-transform: uppercase;
}

/* ───────── Header ───────── */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top__in { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand img { width: 8.25rem; }
.rule { display: grid; grid-template-columns: 3fr 2fr 1fr 4fr; height: 3px; }
.rule--band { height: 8px; grid-template-columns: 4fr 3fr 2fr 3fr; }
.rule--band i:nth-child(4) { background: var(--deep); }
.rule i:nth-child(1) { background: var(--blue); }
.rule i:nth-child(2) { background: var(--green); }
.rule i:nth-child(3) { background: var(--red); }
.rule i:nth-child(4) { background: var(--navy); }

.nav { display: flex; align-items: center; gap: 1.75rem; margin: 0 0 0 auto; position: static; inset: auto; width: auto; height: auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.nav > a { font-size: .95rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav > a:hover { color: var(--ink); }
.nav > .nav__cta { color: #fff; background: var(--navy); padding: .55rem 1rem; border-radius: 6px; transition: background-color .2s; }
.nav > .nav__cta:hover { color: #fff; background: var(--ink); }
.lang { display: flex; gap: .15rem; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.lang button { font: 600 .8rem/1 var(--cond); letter-spacing: .08em; color: var(--muted); background: none; border: 0; border-radius: 4px; padding: .45rem; cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.menu-btn { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg, .arr { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.3rem;
  font: 600 .98rem/1.1 var(--sans); text-decoration: none; border: 0; border-radius: 6px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--ink); }
.btn--quiet { color: var(--ink); padding-inline: .25rem; }
.btn--quiet .arr { transition: translate .3s var(--ease); }
.btn--quiet:hover .arr { translate: 4px 0; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #e8f1f7; }
.btn--light { background: #f2efe9; color: var(--night); }
.btn--light:hover { background: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2.25rem; }

/* ───────── Hero ───────── */
.hero {
  position: relative; isolation: isolate; color: #c6d6e0; padding-block: clamp(4.5rem, 10vw, 8rem);
  background:
    radial-gradient(60rem 36rem at 85% -10%, rgb(63 131 181 / .55), transparent 70%),
    radial-gradient(40rem 30rem at -5% 110%, rgb(8 32 46 / .7), transparent 70%),
    var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / .16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.hero h1 { color: #fff; }
.hero .btn--quiet { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero__in { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -.04em; line-height: 1.04; max-width: 15ch; }
.lede { margin-top: 1.75rem; max-width: 37rem; font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: #c6d6e0; }
.facts { margin: 0; padding: .5rem 1.5rem; border-radius: 10px; background: rgb(8 32 46 / .35); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .9rem; }
.facts > div + div { border-top: 1px solid rgb(255 255 255 / .12); }
.facts dt { color: #8fb3c8; padding-top: .12rem; }
.facts dd { margin: 0; color: #fff; font-weight: 500; }
.facts a { text-decoration-color: rgb(255 255 255 / .3); }
.facts a:hover { text-decoration-color: currentColor; }

.activities { padding-block: clamp(3rem, 6vw, 4.5rem); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.act { --c: var(--blue); border-top: 4px solid var(--c); border-radius: 4px 4px 10px 10px; background: color-mix(in srgb, var(--c) 9%, #fff); transition: background-color .25s; }
.act:hover { background: color-mix(in srgb, var(--c) 15%, #fff); }
.act--red { --c: var(--red); }
.act--green { --c: var(--green); }
.act a { display: block; height: 100%; padding: 1.6rem 1.6rem 1.8rem; text-decoration: none; }
.act h3 { font-size: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.act h3::after { content: ""; flex: none; width: .5rem; height: .5rem; border-top: 1.8px solid var(--muted); border-right: 1.8px solid var(--muted); rotate: 45deg; transition: translate .3s var(--ease), border-color .2s; }
.act a:hover h3::after { translate: 4px 0; border-color: var(--ink); }
.act p { margin-top: .6rem; color: color-mix(in srgb, var(--c) 30%, var(--text)); max-width: 30rem; }
.act h3 { color: color-mix(in srgb, var(--c) 45%, var(--ink)); }

/* ───────── Sections ───────── */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); border-top: 0; }
.section--work { background: #f1f5f8; border-top: 0; }
.section--work .work, .section--work .work li { border-color: #d6e0e7; }
.section--work .work__cat { color: var(--blue); }
.section--work .work li { position: relative; }
.section h2 { color: var(--navy); }
.section--school { border-top: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--green) 16%, #fff), color-mix(in srgb, var(--green) 7%, #fff)); }
.section--school .table, .section--school .table > div { border-color: color-mix(in srgb, var(--green) 35%, #fff); }
.section--school .table dt { color: #2f7a3b; }
.section--school .btn--solid { background: #2f7a3b; }
.section--school .btn--solid:hover { background: #245f2e; }
.section--contact { border-top: 0; background: linear-gradient(180deg, #e9f1f7, #f6f9fb); }
.section--contact .form { background: #fff; padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: 12px; box-shadow: 0 1px 2px rgb(13 31 42 / .06), 0 20px 44px -24px rgb(30 70 91 / .45); }
.section h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.035em; }
.section__head { display: grid; grid-template-columns: 7fr 4fr; gap: 1.25rem clamp(2.5rem, 7vw, 7rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p, .body { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.body { margin-top: 1.25rem; }

/* Work: a ruled register */
.work { list-style: none; margin: 0; padding: 0; container-type: inline-size; border-bottom: 1px solid var(--line); }
.work li {
  display: grid; grid-template-columns: 15rem 11rem 1fr 13rem; gap: 2rem; align-items: baseline;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.work h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.work__cat { color: var(--muted); }
.work p { color: var(--muted); max-width: 38rem; }
.work__link { justify-self: end; font-weight: 500; color: var(--blue); text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); white-space: nowrap; }
.work__link:hover { color: var(--navy); }
.work__link::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .45rem; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; translate: 0 -.12em; }
.work__link:hover { text-decoration-color: currentColor; }
@container (max-width: 62rem) {
  .work li { grid-template-columns: 1fr auto; gap: .35rem 1.5rem; }
  .work h3 { grid-column: 1; }
  .work__cat { grid-column: 2; grid-row: 1; text-align: right; }
  .work p { grid-column: 1 / -1; }
  .work__link { grid-column: 1 / -1; justify-self: start; margin-top: .35rem; }
}

/* ───────── Game ───────── */
.game { position: relative; isolation: isolate; background: var(--night); color: #c9c4bc; padding-block: clamp(5rem, 11vw, 9rem) clamp(3.5rem, 7vw, 5rem); overflow: hidden; }
.game__bg {
  position: absolute; inset: 0 0 auto; width: 100%; height: min(100%, 54rem); object-fit: cover; object-position: 60% 30%; z-index: -2; opacity: .6;
  -webkit-mask-image: linear-gradient(to right, transparent 12%, #000 65%); mask-image: linear-gradient(to right, transparent 12%, #000 65%);
}
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, var(--night) 78%); }
.game__copy { max-width: 40rem; }
.game__genre { color: #a39c92; }
.game h2 { margin-top: .9rem; font-size: clamp(3rem, 7.5vw, 6rem); color: #f4f1ec; letter-spacing: -.045em; line-height: .98; }
.game__tag { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: #ece7df; line-height: 1.45; }
.game__copy > p:not(.game__tag, .game__genre) { margin-top: 1.25rem; }
.game__meta { margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .14); }
.game__meta dt { color: #a39c92; }
.game__meta dd { margin: .2rem 0 0; color: #f4f1ec; font-weight: 500; }
.game__soon { margin-top: 1.75rem; font-size: .95rem; color: #a39c92; }
.game :focus-visible { outline-color: #f4f1ec; }
.shots { list-style: none; margin: clamp(3.5rem, 7vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgb(255 255 255 / .07); }

/* ───────── Split & tables ───────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.table { margin: 0; border-bottom: 1px solid #d9e0e4; }
.table > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: .95rem; border-top: 1px solid #d9e0e4; }
.table dt { color: var(--muted); padding-top: .12rem; }
.table dd { margin: 0; color: var(--ink); font-weight: 500; }
.table a { text-decoration-color: #c7d1d7; }
.table a:hover { text-decoration-color: currentColor; }
.table--compact { margin-top: 2.5rem; border-color: var(--line); }
.table--compact > div { border-color: var(--line); }

/* ───────── Form ───────── */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form label { display: grid; gap: .45rem; }
.form label > span { font-size: .9rem; font-weight: 500; color: var(--ink); }
.form input, .form textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); caret-color: var(--blue);
  background: #fff; border: 1px solid #cdd6dc; border-radius: 6px; padding: .8rem .9rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form input:hover, .form textarea:hover { border-color: #aebcc5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.hp { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: .88rem; color: var(--muted); }
.form__status { font-weight: 500; min-height: 1.6em; }
.form__status[data-state="ok"] { color: #2f7a3b; }
.form__status[data-state="err"] { color: var(--red); }

/* ───────── Legal footer ───────── */
.legal { background: var(--deep); color: #c3cfd6; padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; }
.legal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.legal h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.legal__mark { width: 2.5rem; }
.registry { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5rem); }
.registry > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding-block: .9rem; border-top: 1px solid rgb(255 255 255 / .12); }
.registry dt { color: #8ea6b4; padding-top: .12rem; }
.registry dd { margin: 0; color: #eef3f6; }
.registry a { text-decoration-color: rgb(255 255 255 / .3); }
.registry a:hover { text-decoration-color: currentColor; }
.legal :focus-visible { outline-color: #fff; }
.legal ::selection { background: var(--blue); color: #fff; }
.privacy { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); max-width: 52rem; }
.privacy summary { cursor: pointer; font-weight: 500; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: .65rem; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before { content: ""; width: .45rem; height: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: -45deg; transition: rotate .3s var(--ease); }
.privacy[open] summary::before { rotate: 45deg; }
.privacy p { margin-top: .9rem; font-size: .94rem; }
.legal__copy { margin-top: 3rem; font-size: .86rem; color: #8ea6b4; }

/* ───────── Motion: scroll-driven entrances, cross-fade on language switch ───────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .act, .work li, .shots li, .section__head, .table > div, .registry > div {
      animation: enter linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .facts { animation: rise .9s var(--ease) .2s both; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}
@keyframes enter { from { opacity: .15; translate: 0 1.25rem; } }
@keyframes rise { from { translate: 0 .9rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; } }

/* ───────── Imagery ───────── */
.hero { overflow: hidden; }
.hero__mark { position: absolute; z-index: -1; right: -11rem; top: 50%; width: min(52rem, 64vw); translate: 0 -50%; opacity: .3; pointer-events: none; filter: saturate(1.15); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) { .hero__mark { animation: turn linear both; animation-timeline: scroll(); animation-range: 0 100vh; } }
}
@keyframes turn { to { rotate: 60deg; } }
.showcase { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.shot { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--ink); box-shadow: 0 1px 2px rgb(13 31 42 / .08), 0 18px 40px -22px rgb(30 70 91 / .5); text-decoration: none; }
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: scale .6s var(--ease); }
.shot:hover img { scale: 1.04; }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgb(8 20 28 / .85)); }

/* Brand stripe: the logo's four colours as a recurring signature */
:root { --stripe: linear-gradient(90deg, var(--blue) 0 34%, var(--green) 34% 58%, var(--red) 58% 72%, var(--navy) 72%); }
.section h2::before, .legal h2::before { content: ""; display: block; width: 3.75rem; height: 5px; margin-bottom: 1.4rem; border-radius: 2px; background: var(--stripe); }
.legal h2::before { --navy: #8fb3c8; }
.facts { position: relative; overflow: hidden; }
.facts::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripe); }

/* Activity panels carry a picture */
.act { overflow: hidden; }
.act a { padding-top: 0; }
.act__img { display: block; margin: 0 -1.6rem 1.4rem; aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink); }
.act__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .7s var(--ease); }
.act a:hover .act__img img { scale: 1.05; }
.act--red .act__img img { object-position: center 35%; }
.act__img--logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d2b5a, #0b1230 75%); }
.act__img--logo img { width: auto; height: 82%; object-fit: contain; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .menu-btn { display: grid; place-items: center; }
  .nav:not(:popover-open):not(.open) { display: none; }
  .nav:popover-open, .nav.open {
    position: fixed; inset: 4.75rem var(--gutter) auto; margin: 0; width: auto; height: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem;
    box-shadow: 0 18px 40px -16px rgb(13 31 42 / .3);
  }
  .nav > a { padding: .85rem .75rem; font-size: 1rem; color: var(--ink); border-radius: 6px; }
  .nav > a:hover { background: var(--tint); }
  .nav > .nav__cta { margin-top: .25rem; text-align: center; }
  .lang { border: 0; padding: .75rem .5rem .25rem; justify-content: center; }
  .hero__in, .section__head, .split { grid-template-columns: 1fr; }
  .hero__in { align-items: start; }
  .acts { grid-template-columns: 1fr; gap: 0; }
  .act + .act { margin-top: 1.75rem; }
  .registry { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .hero__mark { right: -12rem; width: 30rem; opacity: .1; }
  .shots { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .shots li { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 7.25rem; }
  .facts > div, .table > div, .registry > div { grid-template-columns: 1fr; gap: .1rem; }
  .form__row { grid-template-columns: 1fr; }
  .game__meta { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .game__bg { opacity: .35; -webkit-mask-image: none; mask-image: none; }
}
.shot img[src*="moment"] { object-position: 22% top; }
