/* CLEARLYlogic, 2026.
   The 2019 site's identity carried forward: navy band, gold rails,
   the red-and-blue wordmark, the dark hex-textured ground. */

@font-face {
  font-family: "MK Sans Tall X";
  src: url("fonts/mk-sans-tall-x.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;   /* the name never shows in a stand-in face */
}

@font-face {
  font-family: "Saira";
  src: url("fonts/saira-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-0: #04061a;
  --navy-1: #090519;   /* 2019 band, top */
  --navy-2: #001235;   /* 2019 band, bottom */
  --navy-3: #0b1a44;
  --ground: #0c0d10;
  --ink: #eef1f6;
  --ink-2: #c3cad6;
  --ink-3: #9aa3b3;
  --gold-1: #ffd479;   /* 2019 gold */
  --gold-2: #fffc79;   /* 2019 highlight */
  --gold-3: #c8963e;
  --gold-text: #f4cf7d;
  --gold: linear-gradient(90deg, #a87a2c 0%, #e2b458 18%, #ffd479 38%, #fff3a8 50%, #ffd479 62%, #e2b458 82%, #a87a2c 100%);
  --gold-v: linear-gradient(180deg, #fff3a8 0%, #ffd479 30%, #e2b458 70%, #b8862f 100%);
  --cl-red: #f0675c;   /* the wordmark's red, lifted for text on navy */
  --cl-blue: #78aee2;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-glide: cubic-bezier(.22, .72, .12, 1);
  --max: min(100% - 2rem, 68rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  font-size: clamp(16px, 0.35vw + 12.5px, 22px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-stretch: 92%;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ground);
  background-image:
    radial-gradient(70rem 40rem at 50% 18rem, rgba(20, 38, 96, .38), transparent 70%),
    radial-gradient(60rem 40rem at 50% 110%, rgba(14, 24, 64, .45), transparent 70%),
    url("img/ground-tile.webp");
  background-size: auto, auto, 200px 200px;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; border-radius: 6px; }

.vh, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 50; padding: .5rem .9rem; background: var(--navy-2); color: var(--ink); border-radius: 8px; }

.cl-name { white-space: nowrap; font-stretch: 80%; font-weight: 500; letter-spacing: .005em; }
.cl-red { color: var(--cl-red); }
.cl-blue { color: var(--cl-blue); }
.gold-caps {
  text-transform: uppercase; letter-spacing: .22em; font-weight: 500; font-stretch: 100%;
  color: var(--gold-text);
}

/* ---------- The band: navy, gold rails, the wordmark ---------- */
.band {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  /* tight around the name: the rails (10px) plus a little navy */
  padding: calc(10px + .5rem) 1rem calc(10px + .45rem);
  isolation: isolate;
}
.band-fill {
  position: absolute; inset: .55rem 0;
  z-index: -1;
  /* the navy of the 20-year cover: lighter at the heart, deep at the edges */
  background:
    radial-gradient(48% 160% at 50% 50%, rgba(22, 64, 112, .55), transparent 72%),
    linear-gradient(180deg, #071a33 0%, #0a2746 50%, #061629 100%);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.rail { position: absolute; left: 0; right: 0; display: grid; gap: 3px; pointer-events: none; }
.rail i { display: block; background: var(--gold); transform-origin: 50% 50%; box-shadow: 0 0 14px rgba(255, 212, 121, .25); }
.rail-top { top: 0; }
.rail-top i:first-child { height: 5px; }
.rail-top i:last-child { height: 2px; }
.rail-bottom { bottom: 0; }
.rail-bottom i:first-child { height: 2px; }
.rail-bottom i:last-child { height: 5px; }
/* The name, set live in the logo's own face (its kerning, no image). */
.mark {
  margin: 0; line-height: 1;
  font-family: "MK Sans Tall X", "Saira", system-ui, sans-serif; font-weight: 400;
  font-size: clamp(2.5rem, 4.2vw + 1.1rem, 4.1rem);
  letter-spacing: 0; white-space: nowrap;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .55));
}
.wordmark {
  display: inline-block; padding-bottom: .04em;
  /* optical centre: the caps sit a hair above the middle so the g's descender doesn't pull the name low */
  position: relative; top: -.045em;
}
.wm-red, .wm-blue {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wm-red  { color: #c0504a; background-image: linear-gradient(180deg, #d9675e 0%, #b8463f 55%, #93322d 100%); }
.wm-blue { color: #5f93c7; background-image: linear-gradient(180deg, #86b6e3 0%, #5f93c7 55%, #3f6f9f 100%); }

/* ---------- Family ---------- */
main { flex: 1; width: var(--max); margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 0 1rem; outline: none; }
.family { display: grid; justify-items: center; }
.meet {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex; align-items: stretch; gap: clamp(.9rem, 2.4vw, 2rem);
  font-weight: 400; font-size: clamp(1.05rem, 1.4vw + .6rem, 1.5rem); line-height: 1.3;
  color: var(--ink);
}
.meet-text { align-self: center; text-align: center; padding-block: .55rem; text-wrap: balance; }
.meet .cl-name { font-size: 1.12em; }
.bracket { display: flex; gap: 4px; flex: none; }
.bracket i { display: block; width: 7px; background: var(--gold-v); border-radius: 1px; box-shadow: 0 0 12px rgba(255, 212, 121, .2); }
.bracket i + i { width: 3px; }
.bracket-r { flex-direction: row-reverse; }

.stage { position: relative; width: 100%; display: grid; justify-items: center; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.5vw, 1.25rem) clamp(1rem, 4vw, 3.5rem);
  width: min(100%, 50rem);
}
.grid li { display: grid; }
.brand {
  --lift: 0px;
  display: grid; place-items: center;
  min-height: clamp(5.5rem, 8vw, 7.5rem);
  padding: 1rem 1.25rem;
  background: none; border: 0; border-radius: 14px; cursor: pointer;
  color: inherit; font: inherit;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.brand::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: .55rem; height: 1px;
  background: var(--gold); opacity: 0; transform: scaleX(.3);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.brand img {
  width: min(var(--w), 100%);
  transition: transform .45s var(--ease-out), filter .45s var(--ease-out);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}
@media (hover: hover) {
  .brand:hover img { transform: translateY(-3px) scale(1.025); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)) brightness(1.06); }
  .brand:hover::after { opacity: .85; transform: none; }
}
.brand:focus-visible { outline-offset: -2px; }
.brand:focus-visible::after { opacity: .85; transform: none; }

/* ---------- Showcase ---------- */
.showcase { width: min(100%, 46rem); display: grid; justify-items: center; }
.showcase[hidden] { display: none; }
.sc-head { position: relative; width: 100%; display: grid; justify-items: center; padding-top: .25rem; }
.sc-title { margin: 0; line-height: 0; outline: none; }
.sc-title img { width: min(var(--w, 20rem), 78vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.back {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .9rem .45rem .6rem; min-height: 44px;
  font: inherit; font-size: .9rem; letter-spacing: .04em;
  color: var(--ink); background: rgba(9, 18, 52, .7);
  border: 1px solid rgba(255, 212, 121, .45); border-radius: 999px; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.back svg { width: 1rem; height: 1rem; }
.back:hover { background: rgba(255, 212, 121, .14); border-color: var(--gold-1); color: #fff; }

.window {
  position: relative; width: 100%;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  /* the panel meets the gold: inside the side bars (7 + 3 + 3 gap) and the 2px rails */
  padding: 2px 13px;
}
.frame { position: absolute; display: block; pointer-events: none; }
.frame-t, .frame-b { left: 0; right: 0; height: 2px; background: var(--gold); box-shadow: 0 0 12px rgba(255, 212, 121, .25); }
.frame-t { top: 0; }
.frame-b { bottom: 0; }
.frame-l, .frame-r { top: 0; bottom: 0; display: flex; gap: 3px; transform-origin: 0 0; }
.frame-l { left: 0; }
.frame-r { right: 0; flex-direction: row-reverse; }
.frame-l i, .frame-r i { display: block; width: 7px; background: var(--gold-v); box-shadow: 0 0 12px rgba(255, 212, 121, .2); }
.frame-l i + i, .frame-r i + i { width: 3px; }
.panel {
  position: relative; overflow: hidden;
  margin: 0;
  min-height: 15rem;
  display: grid; place-items: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(70, 104, 200, .22), transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 62, .94), rgba(4, 9, 30, .96)),
    url("img/ground-tile.webp");
  background-size: auto, auto, 200px 200px;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 121, .12), 0 30px 60px -30px rgba(0, 0, 0, .9);
  text-align: center;
}
.panel.is-velum {
  background:
    linear-gradient(180deg, rgba(7, 5, 6, .35), rgba(7, 5, 6, .7)),
    url("img/velum-ground-1440.webp") center / cover no-repeat,
    #070506;
}
.panel.is-velora {
  background:
    radial-gradient(80% 110% at 50% 0%, rgba(232, 176, 32, .16), transparent 62%),
    linear-gradient(180deg, #2a0b10 0%, #170609 60%, #0e0406 100%);
}
.panel.is-iyr {
  background:
    radial-gradient(70% 100% at 20% 0%, rgba(120, 190, 235, .20), transparent 62%),
    radial-gradient(60% 90% at 90% 100%, rgba(232, 150, 80, .14), transparent 60%),
    linear-gradient(180deg, #0c2a45 0%, #08192c 100%);
}
.panel.is-affordacast {
  background:
    radial-gradient(90% 110% at 15% 0%, rgba(122, 186, 161, .22), transparent 60%),
    radial-gradient(80% 90% at 90% 100%, rgba(169, 187, 152, .16), transparent 62%),
    linear-gradient(160deg, #21493f 0%, #173a33 40%, #0b1d1a 100%);
}
.flyer {
  position: absolute; z-index: 40; margin: 0; max-width: none;
  pointer-events: none; transform-origin: 0 0; will-change: transform;
}
.sc-body { display: grid; justify-items: center; gap: .9rem; max-width: 34rem; }
.sc-body p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.sc-body .lede { color: var(--ink); font-size: clamp(1.15rem, 1vw + .85rem, 1.45rem); line-height: 1.35; text-wrap: balance; }
.soon-tag { font-size: 1rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text) !important; font-stretch: 100%; padding-left: .3em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .6rem !important; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.3rem;
  border-radius: 999px; text-decoration: none; font-weight: 500; letter-spacing: .03em;
  color: #1a1204; background: var(--gold-v);
  box-shadow: 0 8px 22px -10px rgba(255, 212, 121, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px -10px rgba(255, 212, 121, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-quiet { color: var(--ink); background: rgba(10, 8, 12, .55); border: 1px solid rgba(255, 212, 121, .5); box-shadow: none; }
.btn-quiet:hover { background: rgba(255, 212, 121, .12); box-shadow: none; }
.btn-note { font-weight: 400; color: var(--ink-2); font-size: .85em; }
.sc-velum { gap: 1.1rem; }
.velum-line { width: min(30rem, 100%); }
.velum-soon { width: min(13rem, 60%); margin-top: .2rem; }


/* ---------- Mission: the 2019 "game changers" block, for 2026 ---------- */
.family-view { width: 100%; display: grid; justify-items: center; }
.mission {
  width: min(100%, 46rem);
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.9rem, 2.6vw, 2rem);
}
.mbar { display: flex; gap: 4px; }
.mbar i { display: block; width: 7px; background: var(--gold-v); border-radius: 1px; box-shadow: 0 0 14px rgba(255, 212, 121, .2); transform-origin: 50% 0; }
.mbar i + i { width: 3px; }
.mbar-r { flex-direction: row-reverse; }
.mission-body {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(.25rem, 2vw, 1.5rem);
}
.mission-body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(40, 70, 150, .22), transparent 70%),
    linear-gradient(180deg, rgba(6, 10, 26, .55), rgba(6, 10, 26, .25));
}
.mission { isolation: isolate; }
.badge { display: grid; justify-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.badge-mark { position: relative; display: block; width: 5.5rem; }
.badge-mark img { width: 100%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 225, .9) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url("img/cl-20-emblem-240.webp") center / contain no-repeat;
  mask: url("img/cl-20-emblem-240.webp") center / contain no-repeat;
  mix-blend-mode: screen;
}
.badge-years { font-size: .78rem; letter-spacing: .32em; padding-left: .32em; }
.m-head {
  margin: 0 0 .9rem; font-weight: 500; font-stretch: 95%;
  font-size: clamp(1.6rem, 2.4vw + .9rem, 2.4rem); line-height: 1.15; letter-spacing: .005em;
  color: #fff; text-wrap: balance;
}
.m-text { margin: 0; color: var(--ink-2); font-size: clamp(1rem, .4vw + .9rem, 1.12rem); line-height: 1.6; max-width: 36rem; }
.m-line { display: block; text-wrap: balance; }
.m-line:first-child { color: var(--ink); margin-bottom: .35rem; }
.m-line:last-child { margin-top: .35rem; }
.m-close { margin: 1.3rem 0 0; font-style: italic; color: var(--gold-text); font-size: .98rem; text-wrap: balance; }
@media (max-width: 719px) {
  .mission { gap: .6rem; }
  .mbar i { width: 5px; } .mbar i + i { width: 2px; }
  .m-line + .m-line { margin-top: .15rem; }
}

/* ---------- Roots, anniversary, footer ---------- */
.roots { margin: clamp(2.75rem, 6vw, 4.5rem) 0 0; text-align: center; }
.roots a {
  display: inline-flex; flex-direction: column; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink-2); padding: .5rem .75rem; border-radius: 12px;
}
.roots img { width: 11rem; opacity: .92; transition: transform .45s var(--ease-out), opacity .3s; }
.roots strong { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 212, 121, .6); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.roots a:hover img { transform: translateY(-2px); opacity: 1; }
.roots a:hover strong { text-decoration-color: var(--gold-1); }

.anniv {
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  display: grid; justify-items: center; gap: .2rem; text-align: center;
  width: min(100%, 34rem);
}
.anniv-title {
  margin: 0; font-weight: 400; font-size: 1.05rem; line-height: 1.3; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
}
.anniv-title::before, .anniv-title::after { content: ""; flex: 1 1 2rem; height: 1px; background: var(--gold); opacity: .8; }
.anniv-title::before { margin-right: .35rem; }
.anniv-title::after { margin-left: .35rem; }
.anniv-title .gold-caps { font-size: .82rem; white-space: nowrap; }
.anniv-title .cl-name { font-size: 1.25rem; }
.anniv-years { margin: .1rem 0 0; font-size: .9rem; }
.anniv-years a { color: var(--ink-2); text-underline-offset: .25em; text-decoration-color: rgba(255, 212, 121, .5); padding: .5rem .25rem; display: inline-block; }
.anniv-years a:hover { color: var(--ink); text-decoration-color: var(--gold-1); }

.foot {
  width: var(--max); margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1.5rem 0 max(1.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 212, 121, .14);
  display: grid; justify-items: center; gap: .8rem; text-align: center;
}
.lmi {
  display: grid; justify-items: center; gap: .35rem;
  text-decoration: none; color: var(--ink-3); padding: .5rem .75rem; border-radius: 10px;
}
.lmi img { width: 10rem; opacity: .78; transition: opacity .3s; }
.lmi-tie {
  font-size: .82rem; letter-spacing: .04em; line-height: 1.3;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), color .3s;
}
.lmi:hover img, .lmi:focus-visible img { opacity: 1; }
.lmi:hover .lmi-tie, .lmi:focus-visible .lmi-tie { opacity: 1; transform: none; color: var(--ink-2); }
@media (hover: none) { .lmi-tie { opacity: 1; transform: none; } }
.privacy { margin: 0; font-size: .78rem; color: var(--ink-3); }

/* ---------- Phone ---------- */
@media (max-width: 719px) {
  .grid { grid-template-columns: 1fr; width: min(100%, 26rem); gap: .25rem; }
  .brand { min-height: 5.25rem; }
  .brand img { width: min(var(--w), 74vw); }
  .brand[data-brand="affordacast"] img { width: min(var(--w), 82vw); }
  .meet { gap: .7rem; }
  .bracket i { width: 5px; } .bracket i + i { width: 2px; }
  .sc-head { padding-top: 3.4rem; }
  .back { top: 0; translate: none; }
  .window { padding-inline: 10px; }
  .frame-l i, .frame-r i { width: 5px; } .frame-l i + i, .frame-r i + i { width: 2px; }
  .panel { min-height: 13rem; }
}

/* ---------- Intro: hidden only until the build-out reveals them ---------- */
/* ---------- Display type: the logo's own face, Saira beneath it ---------- */
.cl-name, .meet-text, .m-head, .gold-caps, .badge-years, .soon-tag,
.sc-body .lede, .back, .anniv-title {
  font-family: "MK Sans Tall X", "Saira", system-ui, sans-serif;
  font-weight: 400; font-stretch: normal;
}
.cl-name { letter-spacing: 0; }
.meet .cl-name { font-size: 1.08em; }
.m-head { font-size: clamp(1.9rem, 2.8vw + 1rem, 2.9rem); letter-spacing: .01em; line-height: 1.05; }
.sc-body .lede { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem); line-height: 1.2; letter-spacing: .01em; }
.meet { font-size: clamp(1.25rem, 1.6vw + .75rem, 1.8rem); }

.pre .rail i, .pre .band-fill, .pre .mark, .pre .bracket, .pre .meet-text,
.pre .brand img, .pre .roots, .pre .anniv, .pre .foot,
.pre .mission-body::before, .pre .mbar i, .pre .m-head, .pre .m-line, .pre .badge, .pre .m-close { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
