@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* colours sampled from the supplied ALTIUS00 logo */
:root {
  --dark: #181917;
  --panel: #1F201D;
  --cream: #F4F5E8;
  --lime: #CAD723;
  --soft: #B9BBAF;          /* secondary text on dark, 9:1 */
  --line: rgba(244, 245, 232, .14);
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: min(1160px, 100% - 2 * clamp(16px, 4vw, 56px));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--dark); color: var(--cream); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
img { max-width: 100%; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 6px; background: var(--cream); color: var(--dark); text-decoration: none; font-weight: 500; }
.skip:focus { top: 16px; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.top, main, .foot { position: relative; z-index: 1; }

.label { font: 400 12.5px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px max(16px, (100% - 1160px) / 2);
  background: rgba(24, 25, 23, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mini img { display: block; height: 20px; width: auto; }
.top nav { display: flex; gap: 28px; font: 400 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--soft); transition: color .2s; }
.top nav a:hover { color: var(--cream); }

/* hero */
.hero {
  min-height: calc(100vh - 57px); min-height: calc(100svh - 57px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: var(--wrap); margin-inline: auto; padding: 64px 0; text-align: center;
}
.mark { position: relative; display: inline-block; width: min(640px, 80vw); margin-top: 22px; }
.mark img { display: block; width: 100%; height: auto; }
.tm { position: absolute; top: -4%; right: -1.6em; font: 500 clamp(11px, 1.4vw, 16px) var(--sans); }
.statement { margin-top: clamp(32px, 6vh, 56px); font: 300 clamp(1.7rem, 3.8vw, 3rem)/1.2 var(--sans); letter-spacing: -.01em; }
.sub { margin-top: 18px; max-width: 36em; color: var(--soft); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-block; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px var(--sans); text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.btn.solid { background: var(--lime); color: var(--dark); }
.btn.solid:hover { background: #D8E43A; transform: translateY(-1px); }
.btn.ghost { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 245, 232, .5); background: transparent; }
.btn.ghost:hover { background: rgba(244, 245, 232, .07); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* sections */
.block { width: var(--wrap); margin-inline: auto; padding: clamp(72px, 12vh, 140px) 0; }
.head { font: 500 clamp(2rem, 4.4vw, 3.4rem)/1.1 var(--sans); letter-spacing: -.02em; }
.lead { font: 300 clamp(1.25rem, 2vw, 1.6rem)/1.4 var(--sans); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 32px;
  background: rgba(31, 32, 29, .82); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(202, 215, 35, .55); transform: translateY(-3px); }
.card h3 { font: 500 1.5rem/1.2 var(--sans); }
.card p:not(.label) { color: var(--soft); }
.state { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font: 400 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime) !important; }
.tri { width: .8em; height: .7em; background: var(--lime); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.band { border-block: 1px solid var(--line); background: rgba(31, 32, 29, .6); }
.band p { width: var(--wrap); margin-inline: auto; padding: clamp(56px, 10vh, 110px) 0; font: 300 clamp(1.8rem, 4.4vw, 3.6rem)/1.15 var(--sans); letter-spacing: -.01em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); margin-top: 44px; align-items: start; }
.facts { display: grid; gap: 6px; }
.facts dt { margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; font-size: 1.05rem; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--lime); }

.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.mail a { font: 400 clamp(1.15rem, 2vw, 1.45rem) var(--sans); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--lime); transition: color .2s; }
.mail a:hover { color: var(--lime); }
.copy { padding: 6px 12px; border: 1px solid rgba(244, 245, 232, .35); border-radius: 999px; background: none; color: var(--cream); cursor: pointer; font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.copy:hover { border-color: var(--cream); }

form { display: grid; gap: 14px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
input, textarea { padding: 12px 14px; border: 1px solid rgba(244, 245, 232, .2); border-radius: 10px; background: rgba(244, 245, 232, .04); color: var(--cream); font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; }
input:focus, textarea:focus { border-color: var(--lime); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #F2A3A3; }
textarea { min-height: 130px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 15px; }
.note { font-size: 13.5px; color: var(--soft); }
.note a { color: var(--cream); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  width: var(--wrap); margin-inline: auto; padding: 28px 0 36px; border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; border-bottom: 1px solid rgba(244, 245, 232, .4); }
.foot a:hover { color: var(--cream); border-color: var(--cream); }

/* reveals (hidden only when JS will reveal them) */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].on { opacity: 1; transform: none; }
.js .hero > * { opacity: 0; transform: translateY(16px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js.ready .hero > * { opacity: 1; transform: none; }
.js .hero > :nth-child(2) { transition-delay: .1s; }
.js .hero > :nth-child(3) { transition-delay: .2s; }
.js .hero > :nth-child(4) { transition-delay: .3s; }
.js .hero > :nth-child(5) { transition-delay: .4s; }

@media (max-width: 900px) {
  .cards, .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top nav { gap: 16px; font-size: 11.5px; }
  .mini img { height: 16px; }
  form .row { grid-template-columns: 1fr; }
  .tm { right: -1.2em; }
  .foot { flex-direction: column; }
}
@media (max-width: 420px) {
  .top nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- Effects adapted from Magic UI / Aceternity patterns, rebuilt in plain CSS/JS on ALTIUS colours ---- */

/* Shimmer button: a light sweep across the primary action */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out 1.2s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Blur-in headline, word by word (spans added by main.js) */
.js .statement .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(8px); transition: opacity .7s, filter .7s, transform .7s; }
.js.ready .statement .w { opacity: 1; filter: none; transform: none; }

/* Marquee band */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: rgba(31, 32, 29, .6); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.track span { font: 400 14px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.track i { width: 10px; height: 9px; background: var(--lime); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards: border beam + cursor spotlight */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {           /* spotlight follows the pointer (--mx/--my set by main.js) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(202, 215, 35, .13), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card::after {            /* a lime beam travelling around the border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 80%, rgba(202, 215, 35, .9) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 6s linear infinite;
}
.card:nth-child(2)::after { animation-delay: -2s; }
.card:nth-child(3)::after { animation-delay: -4s; }
@keyframes beam { to { --beam: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .shine::after, .card::after, .track { animation: none !important; }
  .card::after { opacity: 0; }
}

/* privacy page */
.legal { max-width: 760px; }
.legal .head { margin: 12px 0 28px; }
.legal h2 { margin: 36px 0 10px; font: 500 1.35rem/1.3 var(--sans); }
.legal p { color: var(--soft); margin-top: 10px; }
.legal a { color: var(--cream); }
