/* noxelrobotics.ai. Night (brand/BRAND.md): no theme switch. One exception, a user decision:
   <main> of the newsroom, its articles and the careers page is light, see "light pages" below.
   Colours come from the vendored design tokens (css/tokens.css, "night"); the
   names below are the ones the handover page used. */
:root{--bg:var(--surface-100);--bg-2:var(--surface-200);--muted:var(--ink-muted);
  --blue:var(--signal);--blue-hover:var(--signal-hover);--on-blue:var(--on-signal);
  /* The handover page draws its hairlines quieter than the token (#7f888e). Kept as designed. */
  --line:#3a4247;
  /* Height of the fixed header: the one value for the header itself, the menu below it
     and where an anchor target lands (scroll-padding-top). */
  --header-h:72px;
  /* The content column: at most --wrap-max wide, centred, --gutter of padding on each side.
     --edge is the distance from a full-width box's side to that column's content (use it as
     side padding: the percentage is the box's own width). Header, hero and footer use it,
     so the logo, the Contact button and the section hairlines share their left and right ends. */
  --wrap-max:1440px;--gutter:32px;
  /* Light pages only (user decision, docs/noxel-status.md): the surface and ink of the
     newsroom, its articles and the careers page, measured on Anduril's newsroom; --light-paper
     is the white of an article. Not brand tokens; nothing else on the site may use them.
     --light-weight is the headline weight of those pages. */
  --light-bg:#f1f0ea;--light-paper:#fff;--light-ink:#010101;--light-weight:400;
  --edge:max(var(--gutter),calc((100% - var(--wrap-max))/2 + var(--gutter)))}
*{box-sizing:border-box}
/* A link to #id lands with the section's top edge exactly at the header's bottom edge. */
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/26px "Instrument Sans","Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
.label{font:500 12px/16px "Roboto Mono",ui-monospace,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase}
.wrap{padding:0 var(--gutter);max-width:var(--wrap-max);margin:0 auto}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.m-0{margin:0}
.muted{color:var(--muted)}

/* header */
.header{position:fixed;top:0;left:0;right:0;z-index:10;height:var(--header-h);display:flex;align-items:center;gap:32px;padding:0 var(--edge);background:var(--night-900);color:#fff}
/* The wordmark file has 40 of its 2726 units of empty space left of the n (and right of the l).
   Pulled back by that share of its own width, so the ink starts where the hairlines start. */
.logo{display:block;transform:translateX(calc(-100%*40/2726))}
.header nav{margin-left:auto;display:flex;gap:32px}
.header nav a{font-size:14px;text-decoration:none;opacity:.72}
.header nav a:hover{opacity:1}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 24px;border-radius:999px;border:1px solid transparent;font:500 15px/1 "Instrument Sans",sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .16s ease-out,color .16s ease-out}
.btn.sm{height:34px;padding:0 16px;font-size:13px}
.btn.primary{background:var(--blue);color:var(--on-blue)}
.btn.primary:hover{background:var(--blue-hover)}
.btn.secondary{background:transparent;color:inherit;border-color:currentColor}
.btn.secondary:hover{background:#fff;color:#0b0d0e;border-color:#fff}
.link{display:inline-block;padding-bottom:4px;border-bottom:1px solid currentColor;text-decoration:none}

/* arrows: forward (right), read more (up right), back (left). Drawn in img/arrow-*.svg on a
   12-unit grid: straight shaft, square ends, a sharp 90° head with mitred corner; the line is
   1.25 units, the stem of Instrument Sans 400 at the size the arrow gets (0.08em). Shown as
   a mask in the text colour, 0.75em square (a whole number of pixels where round() exists),
   its middle on the middle of the x-height. On hover or focus it moves 4px its way. */
.arrow-r::after,.arrow-ur::after,.arrow-l::before{content:"";display:inline-block;width:.75em;height:.75em;vertical-align:calc(.5ex - .375em);background:currentColor;-webkit-mask:url(../img/arrow-right.svg?v=1) center/100% 100% no-repeat;mask:url(../img/arrow-right.svg?v=1) center/100% 100% no-repeat}
@supports (width:round(1em,1px)){.arrow-r::after,.arrow-ur::after,.arrow-l::before{--arrow:round(.75em,1px);width:var(--arrow);height:var(--arrow);vertical-align:calc(.5ex - var(--arrow)/2)}}
.arrow-r::after,.arrow-ur::after{margin-left:.5em}
.arrow-ur::after{-webkit-mask-image:url(../img/arrow-up-right.svg?v=1);mask-image:url(../img/arrow-up-right.svg?v=1)}
.arrow-l::before{margin-right:.5em;-webkit-mask-image:url(../img/arrow-left.svg?v=1);mask-image:url(../img/arrow-left.svg?v=1)}
@media (prefers-reduced-motion:no-preference){
  .arrow-r::after,.arrow-ur::after,.arrow-l::before{transition:transform .16s ease-out}
  a.arrow-r:hover::after,a.arrow-r:focus-visible::after,a:hover .arrow-r::after,a:focus-visible .arrow-r::after{transform:translateX(4px)}
  a.arrow-ur:hover::after,a.arrow-ur:focus-visible::after,a:hover .arrow-ur::after,a:focus-visible .arrow-ur::after{transform:translate(2.83px,-2.83px)}
  a.arrow-l:hover::before,a.arrow-l:focus-visible::before{transform:translateX(-4px)}
}
/* Up to 820px, and only when the script that opens it has run: two lines that turn into a
   plain X (straight lines; the >< belongs to the logo). */
.menu-toggle{display:none}

/* image slots */
.slot{position:relative;margin:0;background:var(--anthracite);overflow:hidden}
.slot figcaption.label{position:absolute;left:16px;bottom:16px;color:#c3c9ce}

/* hero */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;background:var(--night-900);color:#fff;overflow:hidden}
.hero .slot{position:absolute;inset:0}
.hero .slot figcaption{left:auto;right:var(--edge);bottom:32px}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(11,13,14,.85),rgba(11,13,14,0) 62%)}
.hero-body{position:relative;z-index:1;padding:160px var(--gutter) 48px;max-width:920px;margin-left:max(0px,calc((100% - var(--wrap-max))/2))}
.hero-body .label{margin:0;opacity:.8}
.hero h1{margin:16px 0 0;font-weight:500;font-size:clamp(44px,7.4vw,104px);line-height:1;line-height:round(1em,1px);letter-spacing:-.035em}
.hero p.lede{margin:24px 0 0;max-width:560px;font-size:20px;line-height:30px;opacity:.86}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}

/* sections */
/* Every block above an anchor target is a whole number of pixels tall, so the target's top
   edge can sit exactly on the header's bottom edge (a scroll position is a whole pixel; a
   section starting at y = 2648.5 would always land half a pixel off). Hence round() on the
   line heights of the fluid type and on the image height below; the unrounded value before
   it is the fallback for browsers without round(). */
section{padding:96px 0}
section.flush{padding-top:0}
.statement{font-weight:500;font-size:clamp(30px,4vw,56px);line-height:1.08;line-height:round(1.08em,1px);letter-spacing:-.03em;max-width:900px;margin:0}
.product{display:grid;grid-template-columns:3fr 2fr;gap:32px;align-items:end;padding:32px 0;border-top:1px solid var(--line)}
.product.flip{grid-template-columns:2fr 3fr}.product.flip .slot{order:2}
.product .slot{aspect-ratio:4/3}
/* 4:3 again, as a whole number of pixels: the image column is 3/5 of the row minus the gap. */
@supports (height:round(1cqw,1px)){
  .product{container-type:inline-size}
  .product .slot{aspect-ratio:auto;height:round(calc((100cqw - 32px)*.45),1px)}
}
.product .label{color:var(--muted);margin:0 0 16px}
.product h2{margin:0;font-weight:500;font-size:clamp(30px,3.6vw,52px);line-height:1.08;line-height:round(1.08em,1px);letter-spacing:-.03em}
.product p.tag{margin:12px 0 32px;font-size:20px;line-height:30px;color:var(--muted);max-width:420px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;border-top:1px solid var(--line);padding-top:32px}
.steps h3{margin:16px 0 8px;font-weight:500;font-size:28px;line-height:34px;letter-spacing:-.02em}
.steps p{margin:0;color:var(--muted);max-width:340px}
.steps .label{color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin:0;border-top:1px solid var(--line);padding-top:32px}
.stats dd{margin:0 0 8px;font-weight:500;font-size:clamp(48px,6vw,88px);line-height:1;line-height:round(1em,1px);letter-spacing:-.035em}
.stats dd small{font:400 18px/1 "Roboto Mono",monospace;letter-spacing:0;color:var(--muted)}
.stats dt{color:var(--muted)}
.news{list-style:none;margin:16px 0 0;padding:0}
.news li{border-top:1px solid var(--line)}
.news a{display:grid;grid-template-columns:240px 1fr auto;gap:32px;align-items:baseline;padding:20px 0;text-decoration:none}
.news .label{color:var(--muted)}
.news .t{font-weight:500;font-size:28px;line-height:34px;letter-spacing:-.02em}
.news .a::after{margin-left:0}
/* The last section is at least as tall as the screen between header and footer. Only a
   window taller than the last section and the footer together gets extra space from this
   (none at 900px height): without it the page would end too early for a link to that
   section (#news) to bring it up to the header. site.js measures the footer (--footer-h);
   without script the footer starts below the fold. lvh: a phone's collapsed address bar
   makes the screen taller. 1px of slack for sub-pixel layout. #contact, in the footer, is
   the end of the page: a link to it scrolls to the bottom. */
main>section:last-child{min-height:calc(100vh - var(--header-h) - var(--footer-h,0px) + 1px);min-height:calc(100lvh - var(--header-h) - var(--footer-h,0px) + 1px)}
.news-all{margin-top:32px}

/* light pages: the newsroom, its articles and the careers page, laid out after Anduril's
   newsroom (a user decision; header and footer stay ours and dark). <main class="light"
   data-theme="day"> takes the focus colour from the tokens' day theme; surface, ink and
   hairline are the --light-* values on :root. The aliases are declared again here because a
   custom property is resolved where it is declared. Image slots stay anthracite and square. */
.light{--bg:var(--light-bg);--ink:var(--light-ink);--muted:var(--light-ink);--line:var(--light-ink);background:var(--bg);color:var(--ink)}
.light.paper{--bg:var(--light-paper)}
.newsroom .label,.article-page .label{margin:0}
.newsroom h1,.newsroom h2,.article-page h1{margin:0;font-weight:var(--light-weight)}

/* newsroom: label and title, the featured story (text left, 16:9 image right), all articles */
.newsroom{padding:160px 0 96px}
.newsroom h1{margin-top:16px;font-size:56px;line-height:62px;letter-spacing:-.02em}
.featured{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:84px}
.featured .text{display:flex;flex-direction:column;align-items:flex-start;max-width:563px}
.featured h2{margin-top:8px;font-size:32px;line-height:37px;letter-spacing:-.01em}
.featured h2 a{text-decoration:none}
.featured .summary{margin:48px 0 0;max-width:338px;font-size:15px;line-height:18px}
.featured .link,.articles .more{font-size:14px;line-height:15px}
.featured .link{margin-top:48px}
.featured .slot{aspect-ratio:16/9}
.newsroom h2.all{margin-top:64px;font-size:32px;line-height:37px;letter-spacing:-.01em}
/* A row: label, title and "Read more" in the left column, a small 16:9 image at the right. */
.articles{list-style:none;margin:48px 0 0;padding:0}
.articles li{border-top:1px solid var(--line)}
.articles a{display:grid;grid-template-columns:minmax(0,611px) 214px;grid-template-rows:auto auto 1fr;justify-content:space-between;column-gap:32px;padding:16px 0 48px;text-decoration:none}
.articles .label,.articles .t,.articles .more{grid-column:1}
.articles .t{margin-top:9px;font-size:24px;line-height:28px;letter-spacing:-.01em}
.articles .more{align-self:end;justify-self:start;margin-top:28px;padding-bottom:4px;border-bottom:1px solid currentColor}
.articles .thumb{grid-column:2;grid-row:1/4;align-self:start;display:block;aspect-ratio:16/9}

/* careers: the newsroom's column, title and rows; a short line under the title; a row has
   no image, so its text may use the whole width up to the reading measure, and its action
   is "Apply by e-mail" */
.newsroom .lede{margin:24px 0 0;max-width:563px;font-size:20px;line-height:30px}
.roles a{grid-template-columns:minmax(0,611px)}

/* article: back link, headline, label, byline, a full-width 16:9 image, then a hairline and
   the text in the right half (a summary, if there is one, in the left) */
.article-page{padding:104px 0 96px}
.back{display:inline-block;text-decoration:none}
.article-page h1{margin-top:24px;max-width:795px;font-size:40px;line-height:46px;letter-spacing:-.02em;overflow-wrap:break-word}
.article-page .meta{margin-top:36px}
.byline{margin:16px 0 0;font-size:15px;line-height:18px}
.article-page .slot{margin-top:52px;aspect-ratio:16/9}
.article-body{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:36px;padding-top:32px;border-top:1px solid var(--line)}
.article-body .summary{margin:0;max-width:331px;font-size:15px;line-height:18px}
.article-body .text{grid-column:2;font-size:17px;line-height:22px}
.article-body .text p{margin:0 0 22px}

/* legal pages, 404 */
.doc{padding:168px 0 96px}
.doc .wrap{max-width:820px;margin:0 0 0 max(0px,calc((100% - var(--wrap-max))/2))}
.doc h1{overflow-wrap:break-word;margin:16px 0 48px;font-weight:500;font-size:clamp(36px,4.6vw,56px);line-height:1.08;letter-spacing:-.03em}
.doc h2{margin:48px 0 12px;padding-top:24px;border-top:1px solid var(--line);font-weight:500;font-size:28px;line-height:34px;letter-spacing:-.02em}
.doc p{margin:0 0 12px;max-width:680px}
.doc .label{margin:0;color:var(--muted)}
.doc .lede{margin:0 0 32px;font-size:20px;line-height:30px;color:var(--muted)}

/* footer: two airy rows on the content column, no boxes and no hairlines (the page above
   has the same background). Top: wordmark left; from the middle of the column three equal
   tracks, Cell and Company in the first two. Bottom: operator and legal links left, the
   contact address at the third track. That block is the page's only contact (#contact). */
footer{background:var(--night-900);color:#fff;padding:96px 0 64px}
.foot{display:grid;grid-template-columns:3fr 1fr 1fr 1fr;row-gap:112px}
.foot .col{display:flex;flex-direction:column;align-items:flex-start;font-size:20px;line-height:28px}
.foot .col .label{margin:0 0 56px;color:var(--muted)}
.foot .col a{text-decoration:none}
.foot .col a:hover,.foot .col a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.foot .legal{grid-column:1;grid-row:2;font-size:14px;line-height:22px}
.foot .legal a{color:var(--muted)}
.foot .mail{grid-column:4;grid-row:2}
.foot .legal .label,.foot .mail .label{margin-bottom:16px}
/* The address is wider than one track on a narrow desktop: start it one track earlier. */
@media (max-width:1300px){.foot .mail{grid-column:3/span 2}}

/* Sections fade in on scroll. Hidden only once the script that reveals them runs. */
/* The 16px rise is an animation that starts with the reveal, not a transform on the hidden
   element: Chrome restores the scroll position on back/forward relative to an element in
   view, and a hidden section shifted by 16px put the page 16px off. */
.js .reveal{opacity:0;transition:opacity .6s ease-out}
.js .reveal.in{opacity:1;animation:rise .6s ease-out}
@keyframes rise{from{transform:translateY(16px)}}
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transition:none}.js .reveal.in{animation:none}html{scroll-behavior:auto}.menu-toggle::before,.menu-toggle::after{transition:none}}
@media (max-width:820px){
  :root{--gutter:20px}
  .header{gap:4px}.header nav{display:none}.header .btn{margin-left:auto}
  /* 44px to hit; the lines are 22px wide and end on the content column's right edge. */
  .js .header .menu-toggle{display:block;position:relative;flex:none;width:44px;height:44px;margin:0;padding:0;border:0;background:none;color:inherit;cursor:pointer}
  .menu-toggle::before,.menu-toggle::after{content:"";position:absolute;right:0;top:21px;width:22px;height:2px;background:currentColor;transition:transform .16s ease-out}
  .menu-toggle::before{transform:translateY(-4px)}.menu-toggle::after{transform:translateY(4px)}
  .menu-toggle[aria-expanded="true"]::before{transform:rotate(45deg)}.menu-toggle[aria-expanded="true"]::after{transform:rotate(-45deg)}
  /* The open menu: a dark panel from the bar to the bottom of the screen; the page behind it does not scroll. */
  .js .header.open nav{display:flex;flex-direction:column;gap:0;position:absolute;top:var(--header-h);left:0;right:0;height:calc(100vh - var(--header-h));height:calc(100dvh - var(--header-h));margin:0;padding:8px var(--gutter) 32px;background:var(--night-900);overflow-y:auto;overscroll-behavior:contain}
  .header.open nav a{padding:20px 0;font-weight:500;font-size:28px;line-height:34px;letter-spacing:-.02em;opacity:1}
  .header.open nav a+a{border-top:1px solid var(--line)}
  .menu-open{overflow:hidden}
  .hero-body{padding:140px var(--gutter) 40px}.hero .slot figcaption{display:none}
  section{padding:64px 0}
  .doc{padding:128px 0 64px}
  /* newsroom and article in one column: the featured story's image first */
  .newsroom{padding:98px 0 64px}
  .newsroom h1{margin-top:14px;font-size:34px;line-height:39px}
  .featured{grid-template-columns:1fr;gap:28px;margin-top:42px}.featured .slot{order:-1}
  .featured .text{max-width:none}
  .featured h2{margin-top:7px;font-size:27px;line-height:31px}
  .featured .summary{margin-top:28px;max-width:none;font-size:16px;line-height:19px}
  .featured .link{margin-top:28px}.featured .link,.articles .more{font-size:15px;line-height:16px}
  .newsroom h2.all{margin-top:56px;font-size:27px;line-height:31px}
  .articles{margin-top:28px}
  .articles a{grid-template-columns:minmax(0,1fr) 80px;column-gap:30px;padding:15px 0 46px}
  .roles a{grid-template-columns:minmax(0,1fr)}
  .articles .t{margin-top:8px;font-size:16px;line-height:19px}
  .article-page{padding:96px 0 64px}
  .article-page h1{margin-top:20px;font-size:32px;line-height:34px}
  .article-page .meta{margin-top:28px}
  .article-page .slot{margin-top:40px}
  .article-body{grid-template-columns:1fr;gap:28px;margin-top:28px;padding-top:28px}
  .article-body .text{grid-column:1;font-size:16px;line-height:19px}
  .article-body .text p{margin-bottom:19px}
  .product,.product.flip,.steps{grid-template-columns:1fr}
  @supports (height:round(1cqw,1px)){.product .slot{height:round(75cqw,1px)}}
  .product.flip .slot{order:0}
  /* footer, stacked: wordmark; Cell and Company side by side; legal; contact */
  footer{padding:64px 0 48px}
  .foot{grid-template-columns:1fr 1fr;gap:48px 16px}
  .foot>.logo,.foot .legal,.foot .mail{grid-column:1/-1;grid-row:auto}
  .foot .col .label{margin-bottom:24px}
  .foot .legal .label,.foot .mail .label{margin-bottom:16px}
  .stats{grid-template-columns:1fr;gap:24px}
  .news a{grid-template-columns:1fr auto;gap:8px 16px}.news .label{grid-column:1/-1}.news .t{font-size:22px;line-height:28px}
}
