/* VT323 (SIL Open Font License), served from this site, not Google. */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/vt323-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/vt323-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/vt323-latin.woff2) format('woff2');
  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 {
    --bg: #040604;
    --screen: #050a05;
    --phosphor: #8fe07a;          /* the logo's green, lit up like a CRT */
    --phosphor-dim: #4f8a44;
    --glow: rgba(143, 224, 122, .45);
    --leaf: #406438;              /* logo */
    --leaf-dark: #34582c;         /* logo */
    --text: #e6ebe2;
    --muted: #8e9a8a;
    --line: #1c261c;
    --mono: "VT323", ui-monospace, monospace;
  }
  * { box-sizing: border-box; margin: 0; }
  body { background: var(--bg); color: var(--phosphor); font: 400 21px/1.35 var(--mono); }
  /* Buttons in the terminal's own style: green on black, a thin green
     border; selected (hover, keyboard focus) they invert like an editor line. */
  .btn { display: inline-block; padding: 6px 14px; background: var(--bg); color: var(--phosphor); text-decoration: none;
         font: 400 22px/1.1 var(--mono); letter-spacing: .04em; border: 1px solid var(--phosphor-dim); text-shadow: 0 0 6px var(--glow); }
  .btn:hover, .btn:focus-visible { background: var(--phosphor); color: var(--bg); text-shadow: none; outline: none; }
  .label { font: 400 20px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--phosphor); }

  header { position: fixed; inset: 0 0 auto 0; z-index: 10; background: var(--bg); }
  .head { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; height: 58px; }
  /* Under the header, framed like a terminal program: a thin green line with
     a title set into it, the autonomy "download" filling as the page is
     scrolled, and a line closing it off from the code. */
  .dl { position: relative; display: flex; align-items: center; gap: 16px; padding: 9px 24px 8px; height: 46px;
        border-top: 1px solid var(--phosphor-dim); border-bottom: 1px solid var(--phosphor-dim);
        font: 400 20px/1 var(--mono); color: var(--phosphor); text-shadow: 0 0 6px var(--glow); white-space: nowrap; }
  .dl .title { position: absolute; left: 40px; top: -11px; background: var(--bg); padding: 0 2px; color: var(--phosphor); font-size: 19px; line-height: 20px; }
  .dl .what { min-width: 15ch; }
  .dl .track { flex: 1; height: 18px; border: 1px solid var(--phosphor-dim); padding: 2px; }
  .dl .fill { display: block; height: 100%; width: 0; background: var(--phosphor); box-shadow: 0 0 8px var(--glow); }
  .dl .pct { min-width: 5ch; text-align: right; }
  @media (max-width: 640px) { .dl { gap: 10px; } .dl .what { min-width: 0; font-size: 13px; letter-spacing: .02em; } .dl .pct { min-width: 4ch; font-size: 15px; } }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--phosphor); text-decoration: none; font: 400 24px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 0 6px var(--glow); }
  .brand img { height: 28px; }

  .scrolly { height: 300vh; position: relative; }
  .stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: 104px; overflow: hidden; }

  /* Just the code, edge to edge, like an editor full screen: no frame, no
     glass. A status line, then a thin line in the same green, then output. */
  .crt { position: relative; width: 100%; flex: 1; min-height: 0; background: var(--bg); overflow: hidden; }
  .status { width: 100%; padding: 2px 32px; background: var(--phosphor-dim); color: var(--bg); font: 400 clamp(15px, 1.4vw, 20px)/1.3 var(--mono); display: flex; gap: 28px; white-space: pre; }

  .tty { position: absolute; inset: 0; padding: 28px 32px; overflow: hidden; font: 400 clamp(15px, 1.75vw, 24px)/1.18 var(--mono); color: var(--phosphor);
         text-shadow: 0 0 6px var(--glow), 0 0 1px var(--phosphor); white-space: pre; transition: opacity .3s; }
  .tty .dim { color: var(--phosphor-dim); text-shadow: none; }
  .tty .cur { display: inline-block; width: .55em; height: .95em; background: var(--phosphor); vertical-align: -.1em; box-shadow: 0 0 8px var(--glow); animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }


  /* Output, under the screen, instead of slogans. */
  .out { width: 100%; padding: 14px 32px 22px; border-top: 1px solid var(--phosphor-dim); font: 400 clamp(18px, 1.9vw, 26px)/1.25 var(--mono); color: var(--phosphor); text-shadow: 0 0 6px var(--glow);
         /* Always room for all five lines, shown or not: the status line above never moves. */
         position: relative; flex: none; height: calc(5 * 1.25em + 36px); overflow: hidden; }
  .out .hint { position: absolute; left: 32px; top: 14px; }
  .out div { opacity: 0; transition: opacity .25s; }
  .out div.on { opacity: 1; }
  .out .k { color: var(--phosphor-dim); text-shadow: none; }

  .sw { display: block; }
  .sw h3.big { max-width: none; }
  .sw .fits { margin-top: 44px; }
  .sw p.lead { color: var(--muted); font-size: 19px; max-width: 46ch; }
  /* In the terminal's own style: a prompt line, then its output. */
  .sw p.term { font: 400 23px/1.3 var(--mono); color: var(--phosphor-dim); max-width: none; }
  /* A file manager pane: thin green frame with a title in it, names on the
     left, a green line, the text on the right. Hover = the selected row. */
  .fits { position: relative; border: 1px solid var(--phosphor-dim); padding: 16px 0 12px; margin-top: 12px;
          display: grid; grid-template-columns: max-content 1fr; font: 400 22px/1.25 var(--mono); color: var(--phosphor); text-shadow: 0 0 6px var(--glow); }
  .fits .title { position: absolute; left: 18px; top: -12px; background: var(--bg); padding: 0 2px; }
  .fits .row { display: contents; }
  .fits .row > * { padding: 3px 16px; }
  .fits .name { border-right: 1px solid var(--phosphor-dim); }
  .fits .row:hover > * { background: var(--phosphor); color: var(--bg); text-shadow: none; }
  .fits .dim { color: var(--phosphor-dim); text-shadow: none; }
  @media (max-width: 860px) { .sw { grid-template-columns: 1fr; gap: 28px; } }

  section { padding: 110px 24px; max-width: 1240px; margin: 0 auto; }
  /* Every heading a prompt line, like the code at the top. */
  h3.big { font: 400 clamp(34px, 3.6vw, 50px)/1.05 var(--mono); color: var(--phosphor); text-shadow: 0 0 8px var(--glow); letter-spacing: .01em; margin: 16px 0 40px; max-width: 26ch; }
  h3.big .p { color: var(--phosphor-dim); text-shadow: none; }
  .split { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: min(60vh, 440px); }

  .photo { position: relative; border-radius: 10px; overflow: hidden; background: #0a0c09; border: 1px dashed #2c3a2c; }
  .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .photo { border: 0; }
  .fleet img { border-radius: 10px; border: 1px solid var(--line); width: 100%; display: block; }
  .split.steps figure { margin: 0; height: 100%; }
  .split.steps figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,4,0) 68%, rgba(4,6,4,.92)); pointer-events: none; }
  .split.steps p, .split.steps span { position: absolute; z-index: 2; }
  .split.steps p { left: 20px; right: 20px; bottom: 50px; font: 400 19px/1.2 var(--mono); color: var(--phosphor); text-shadow: 0 1px 6px #000, 0 0 2px #000; }
  .split.steps span { left: 20px; bottom: 16px; font: 400 26px var(--mono); letter-spacing: .08em; color: var(--phosphor); text-shadow: 0 0 6px var(--glow); }
  /* Between sections: a line of typed dashes, like a terminal printout. */
  .rule { max-width: 1240px; margin: 0 auto; padding: 0 24px; overflow: hidden; white-space: nowrap; font: 400 22px/1 var(--mono); color: var(--phosphor-dim); user-select: none; }
  .rule::before { content: "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"; }
  /* The contact section: typewriter Earth turning behind a small terminal window. */
  .end { position: relative; max-width: none; height: min(92vh, 860px); padding: 0; display: grid; place-items: center; overflow: hidden; text-align: center; }
  .globe { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
  .globe pre { grid-area: 1 / 1; margin: 0; font-family: var(--mono); line-height: 1; white-space: pre; }
  .globe .sea { color: var(--phosphor-dim); opacity: .55; }
  .globe .land { color: var(--phosphor); text-shadow: 0 0 6px var(--glow); opacity: .8; }
  .end .win { position: relative; z-index: 1; background: var(--bg); border: 1px solid var(--phosphor-dim); padding: 30px 40px 32px; margin: 0 16px; }
  .end .win .title { position: absolute; left: 20px; top: -12px; background: var(--bg); padding: 0 2px; color: var(--phosphor); }
  .end h3.big { margin: 0 auto 26px; max-width: none; }
  footer { border-top: 1px solid var(--line); padding: 26px 24px; display: flex; justify-content: space-between; font: 400 18px var(--mono); color: var(--muted); }

  @media (max-width: 760px) { .split { grid-template-columns: 1fr 1fr; height: auto; } .split div { height: 260px; } }
  @media (prefers-reduced-motion: reduce) { .tty .cur { animation: none; } }

  /* Phones: smaller header and footer, a tighter table with each row set apart. */
  @media (max-width: 640px) {
    .head { padding: 8px 14px; }
    .brand { font-size: 17px; gap: 8px; white-space: nowrap; letter-spacing: .04em; }
    .brand img { height: 22px; }
    .head .btn { font-size: 16px; padding: 4px 8px; white-space: nowrap; }
    .dl { padding: 9px 14px 8px; font-size: 17px; }
    .dl .title { left: 26px; font-size: 16px; }
    footer { flex-direction: column; gap: 6px; padding: 18px 14px; font-size: 13px; line-height: 1.35; }
    .fits { font-size: 17px; line-height: 1.2; padding: 14px 0 6px; }
    .fits .row > * { padding: 7px 10px; }
    .fits .row + .row > * { border-top: 1px dashed var(--phosphor-dim); }
    .fits .title { font-size: 17px; }
    .split.steps figure { height: 300px; }
    .split.steps p { left: 12px; right: 10px; bottom: 40px; font-size: 14px; line-height: 1.15; }
    .split.steps span { left: 12px; bottom: 12px; font-size: 21px; }
  }

  /* The typing cursor after the email: drawn, not typed, so copying the
     address never picks up a stray "_". */
  .caret { display: inline-block; width: .5em; height: .12em; margin-left: .08em; vertical-align: -.05em; background: currentColor; animation: blink 1s steps(1) infinite; user-select: none; }
  .btn:hover .caret, .btn:focus-visible .caret { background: var(--bg); }
  @media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

  /* The company name is the page's main heading, styled as before. */
  .brand-h { margin: 0; font: inherit; }
