/* Site styles for okalotechnologies.com, v007.
   COLOUR  White page, Okalo night #111418 for type and the tiles, coral #FF5A36 as the one accent.
   TYPE    Sora light for headlines; Work Sans for text and spaced capitals, as on the Okalo Technologies banner.
   LAYOUT  A fixed particle stage behind the page. Text on the left on computers; on phones the stage sits
           above and the text below it, over a soft white shade so it always reads. */

@font-face { font-family: "Sora"; font-weight: 300; font-display: swap; src: url("../fonts/sora-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("../fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --ink: #111418;
  --soft: #3d434b;
  --muted: #6b717a;
  --faint: #a3a8af;
  --coral: #ff5a36;
  --tile: #f4f5f7;
  --rule: #e3e5e8;
  --display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --top-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The stage and the shade that keeps text readable over it */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 60%); }

/* Top bar */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 20px; width: auto; }
.brand span { font: 500 10.5px/1 var(--body); letter-spacing: .36em; text-transform: uppercase; padding-top: 2px; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; position: relative; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--coral); transform: scaleX(0); transition: transform .35s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after { transform: scaleX(1); }
.menu { display: none; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #ffffff; font: 500 15px/1 var(--body); text-decoration: none; border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: #cfd3d8; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 13.5px; background: transparent; color: var(--ink); border-color: #cfd3d8; }
.btn.small:hover { border-color: var(--coral); background: transparent; }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--coral); padding-bottom: 2px; }
.link:hover { color: #d63d1c; }

/* Sections */
main { position: relative; z-index: 2; }
.sec { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--top-h) + 48px) var(--gutter) 80px; position: relative; }
.copy { width: min(560px, 46vw); }
.eyebrow { display: flex; align-items: center; gap: 14px; font: 500 11.5px/1.2 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--coral); }
.hero .eyebrow::before { display: none; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.025em; }
h1 .dim, h2 .dim { color: var(--faint); }
h1 { font-size: clamp(36px, 4vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; margin-bottom: 22px; }
h3 { font: 400 19px/1.3 var(--display); }
.lead { color: var(--soft); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 34em; }
h1 + .lead { margin-top: 26px; }
.role { font: 500 12px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: #d63d1c; margin-bottom: 18px; }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Lists */
.rows { margin-top: 34px; border-top: 1px solid var(--rule); }
.rows > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rows > li > .holo { grid-row: span 2; margin-top: 2px; }
.rows h3 { margin-bottom: 4px; }
.rows p { color: var(--muted); font-size: 15px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.pill { flex: none; font: 500 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 11px; }
.pill.live { color: var(--ink); border-color: rgba(255, 90, 54, .6); }
.pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: 1px; }
.apps { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; color: var(--muted); font-size: 14px; }
.apps img { width: 36px; height: 36px; border-radius: 9px; }
.apps p { margin-left: 6px; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.principles li { border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; color: var(--soft); background: rgba(244, 245, 247, .85); }
.mail { margin-top: 30px; border-top: 1px solid var(--rule); }
.mail li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.mail li > .holo { grid-row: span 2; }
.mail span { font: 500 11px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.mail a { font: 300 clamp(20px, 2vw, 26px)/1.2 var(--display); text-decoration: none; width: fit-content; }
.mail a:hover { color: #d63d1c; }

/* Dot holograms beside the text (drawn by js/holo/holo.js) */
.holo { display: block; width: 44px; height: 44px; }
.holo.big { width: 150px; height: 150px; margin-top: 44px; }
.holo.wide { width: 100%; height: 52px; }
.timeline { margin-top: 40px; max-width: 520px; }
.years { display: flex; justify-content: space-between; margin-top: 4px; font: 500 11px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* Hero details */
.hero .copy { width: min(700px, 54vw); }
.hero h1 { max-width: 12.5em; }
.hero .lead { max-width: 30em; }
.fallback { display: none; }
.cue { position: absolute; left: var(--gutter); bottom: 34px; width: 22px; height: 36px; border: 1px solid var(--rule); border-radius: 12px; }
.cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--coral); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* Footer */
.legal { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 13px; }
.legal a { text-decoration: none; margin-left: 20px; }
.legal a:hover { color: var(--ink); }

/* Text arrives softly as each section comes into view */
.js .copy > * { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .sec.seen .copy > * { opacity: 1; transform: none; }
.js .sec.seen .copy > *:nth-child(2) { transition-delay: .08s; }
.js .sec.seen .copy > *:nth-child(3) { transition-delay: .16s; }
.js .sec.seen .copy > *:nth-child(n+4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .copy > * { opacity: 1; transform: none; transition: none; } .cue span { animation: none; } }

/* Without WebGL: the Okalo symbol stands in for the stage */
.no-gl #stage { display: none; }
.no-gl .hero .fallback { display: block; position: absolute; right: 12vw; top: 50%; width: min(28vw, 300px); height: auto; transform: translateY(-50%); }

/* Phones and small tablets: stage above, text below */
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .top { gap: 14px; }
  .top .btn.small { display: none; }
  .menu { display: grid; place-items: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%;
    background: transparent; cursor: pointer; padding: 0; align-content: center; }
  .menu span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--top-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .veil { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .25) 34%, rgba(255, 255, 255, .9) 58%); }
  .sec { align-items: flex-end; padding-top: 46svh; padding-bottom: 72px; }
  .copy, .hero .copy { width: 100%; position: relative; isolation: isolate; }
  .copy::before { content: ""; position: absolute; inset: -18px -16px; z-index: -1; border-radius: 22px;
    background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .hero { padding-bottom: 96px; }
  .cue { left: 50%; margin-left: -11px; bottom: 26px; }
  .legal { flex-direction: column; bottom: 20px; }
  .legal a { margin: 0 20px 0 0; }
  #contact { padding-bottom: 120px; }
  .no-gl .hero .fallback { right: 50%; top: 22svh; width: 44vw; transform: translate(50%, -50%); }
}
