/* ==========================================================================
   Altum Robotics, pre-launch site
   Design language taken from the mark: an origami angelfish built from
   triangles and a square, brushed-silver on black, 45° cuts everywhere.
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #09090a;
  --panel: #0d0d0f;
  --panel-2: #121215;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ece9e2;
  --muted: #8d9097;
  --silver: #c9ccd1;
  --silver-hi: #f4f6f8;
  --orange: #e8641e;
  --orange-hi: #ff9a5c;
  --orange-deep: #d45303;

  --display: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 52px);
  --max: 1240px;
  --cut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
}
.eyebrow b { color: var(--orange); font-weight: 500; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.silver-text {
  background: linear-gradient(172deg, #ffffff 8%, #c3c6cc 55%, #7d8088 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
p { margin: 0; }
.lede { color: #b3b3b0; font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 56ch; }
.mono { font-family: var(--mono); }

/* ---------- 45°-cut panels (echoing the tangram pieces) ---------- */
.cut {
  --c: var(--cut); position: relative; background: var(--line-2);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cut::before {
  content: ""; position: absolute; inset: 1px; background: var(--panel); z-index: 0;
  clip-path: polygon(calc(var(--c) - 0.42px) 0, 100% 0, 100% calc(100% - var(--c) + 0.42px), calc(100% - var(--c) + 0.42px) 100%, 0 100%, 0 calc(var(--c) - 0.42px));
}
.cut > * { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  --c: 11px; display: inline-flex; align-items: center; gap: 12px; position: relative;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 16px 24px; color: #0a0a0a; background: var(--orange); border: 0; cursor: pointer;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { color: var(--silver-hi); background: var(--line-2); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 1px; background: rgba(5, 5, 5, 0.92); z-index: 0;
  clip-path: polygon(calc(var(--c) - 0.42px) 0, 100% 0, 100% calc(100% - var(--c) + 0.42px), calc(100% - var(--c) + 0.42px) 100%, 0 100%, 0 calc(var(--c) - 0.42px));
  transition: background 0.2s;
}
.btn-ghost > * , .btn-ghost span { position: relative; z-index: 1; }
.btn-ghost:hover { background: var(--silver); color: #fff; }
.btn-ghost:hover::before { background: rgba(14, 14, 16, 0.94); }
.btn-sm { padding: 10px 16px; font-size: 12px; --c: 8px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; }
.flag-badge { height: 13px; width: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,0.22); display: block; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav a:not(.btn) {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--silver);
  padding: 6px 0; position: relative; transition: color 0.2s;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero canvas, .page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -3; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 56% at 18% 64%, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.66) 48%, rgba(5,5,5,0) 100%),
    linear-gradient(to top, #050505 0%, rgba(5,5,5,0.5) 13%, rgba(5,5,5,0) 32%),
    linear-gradient(to bottom, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0) 16%);
}
.hero::after { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px);
}
.hero-inner { padding-top: 120px; padding-bottom: clamp(88px, 12vh, 128px); }
.hero-copy { max-width: 640px; }

.status {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; padding: 9px 14px 9px 12px;
  font-family: var(--pixel); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-hi);
  border: 1px solid rgba(232, 100, 30, 0.4); background: rgba(232, 100, 30, 0.07);
}
.blip { width: 8px; height: 8px; background: var(--orange); animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.15; } }

.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); margin-bottom: 26px; text-transform: none; }
.hero h1 .accent { color: var(--orange); -webkit-text-fill-color: var(--orange); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; padding-block: 22px; }
.hero-foot .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-foot .where { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); }
.hero-foot .where img { width: 22px; height: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,0.22); }
.hero-foot .stage { color: var(--silver); }
.hint { color: var(--muted); }
.hint .dot { display: inline-block; width: 6px; height: 6px; background: var(--orange); margin-right: 10px; vertical-align: 1px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px 30px 34px; display: flex; flex-direction: column; transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--orange); margin-bottom: 44px; display: flex; justify-content: space-between; }
.card .tag span:last-child { color: var(--muted); }
.card h3 { font-size: 1.45rem; margin: 0 0 14px; }
.card p { color: #a9a9a6; font-size: 0.98rem; line-height: 1.6; }
.card .glyph { height: 34px; width: auto; margin-bottom: 26px; opacity: 0.9; }

/* sailfish */
.sailfish { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 14%, var(--bg-2) 86%, var(--bg) 100%); }
.sf-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sf-copy p { color: #b3b3b0; margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.stats div { background: var(--bg-2); padding: 18px 20px; }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--silver-hi); }
.sf-media { display: grid; gap: 18px; }
.sf-media figure { margin: 0; position: relative; }
.sf-media .render { aspect-ratio: 2000 / 938; background: #101010; overflow: hidden; }
.sf-media .render img { width: 100%; height: 100%; object-fit: cover; }
.sf-media .photo { aspect-ratio: 16 / 7.4; overflow: hidden; }
.sf-media .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.04); }
.sf-media figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-hi); background: rgba(5, 5, 5, 0.72); padding: 5px 9px; }
.sf-media figure.cut::before { display: none; }
.sf-media figure.cut { background: transparent; }

/* canada */
.canada-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.flag-wrap { position: relative; aspect-ratio: 11 / 6; max-width: 720px; width: 100%; }
.flag-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); border: 1px solid var(--line-2); padding: 8px 12px; display: inline-flex; gap: 8px; align-items: center; }
.chip img { width: 20px; height: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,0.22); }
.canada-copy p { margin-top: 22px; color: #b3b3b0; max-width: 54ch; }

/* cta */
.cta { padding-block: clamp(56px, 8vw, 100px); }
.cta-panel { --cut: 30px; padding: clamp(32px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-panel::before { background: linear-gradient(120deg, #101012 0%, #0a0a0b 60%, rgba(232, 100, 30, 0.12) 130%); }
.cta-panel h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 22ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #040404; padding-top: clamp(48px, 7vw, 84px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); padding-bottom: 56px; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 22px; }
.foot-brand p { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.foot-brand .locs { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); }
.reg-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.reg { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reg li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--silver); }
.reg li span:first-child small { display: block; color: var(--muted); font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.04em; margin-top: 2px; }
.pill { flex: none; font-family: var(--pixel); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-hi); border: 1px solid rgba(232, 100, 30, 0.45); padding: 5px 9px; display: inline-flex; align-items: center; }
.foot-bar { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); }
.foot-bar .ca { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); text-transform: uppercase; letter-spacing: 0.14em; }
.foot-bar .ca img { width: 22px; height: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,0.22); }
.foot-bar a { text-decoration: none; } .foot-bar a:hover { color: #fff; }

/* ---------- contact page ---------- */
.page-hero { position: relative; min-height: min(60svh, 540px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-scrim { background: linear-gradient(to right, rgba(5,5,5,0.92), rgba(5,5,5,0.35) 70%, rgba(5,5,5,0.1)), linear-gradient(to top, #050505 0%, rgba(5,5,5,0) 50%), linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0) 30%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px); }
.page-hero .inner { padding-top: 130px; padding-bottom: clamp(70px, 11vw, 120px); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin-bottom: 18px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 14px; }
.info { padding: 24px 26px; --cut: 14px; }
.info .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.info .v { font-size: 1.08rem; color: var(--silver-hi); word-break: break-word; }
.info .v a { text-decoration: none; border-bottom: 1px solid var(--orange); } .info .v a:hover { color: var(--orange-hi); }
.info ul { margin: 0; padding: 0; list-style: none; color: #b3b3b0; font-size: 0.98rem; }
.info li { padding: 5px 0 5px 18px; position: relative; }
.info li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; background: var(--orange); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.form { padding: clamp(24px, 4vw, 44px); --cut: 24px; }
.form h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 26px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #060607; border: 1px solid var(--line-2); border-radius: 0; padding: 14px 16px; transition: border-color 0.2s, background 0.2s;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: #0a0a0b; }
.form .note { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .sf-grid, .canada-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .flag-wrap { max-width: 560px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .header-inner { height: 64px; } .brand img { height: 22px; }
  /* phones: art occupies the top of the screen, copy flows underneath it */
  .hero { min-height: 0; justify-content: flex-start; }
  .hero canvas { height: 62svh; bottom: auto; }
  .hero-scrim { background:
      linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0) 14%),
      linear-gradient(to bottom, rgba(5,5,5,0) 0, rgba(5,5,5,0) 46svh, #050505 62svh); }
  .hero::after { height: 62svh; bottom: auto; }
  .hero-inner { padding-top: 54svh; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.6rem); }
  .status { font-size: 10px; letter-spacing: 0.08em; padding: 8px 12px 8px 10px; }
  .cta-row { margin-top: 28px; }
  .hero-foot { position: relative; padding-block: 0 22px; }
  .hero-foot .hint, .hero-foot .stage { display: none; }
  .flag-badge { width: 22px; height: 11px; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blip { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
