/* Phone-only changes (640px and narrower), from the "Website - mobile only changes" review doc.
   Linked with media="(max-width:640px)" on every page, so nothing here can reach desktop or tablet.
   Loaded after modals.css so the dialog overrides win. */

/* ---- Full-screen menu (reference: anduril.com) ---- */
.mx-menu{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;padding:96px 28px 40px;border:0;border-radius:0;
  background:#0C0C0E;overflow-y:auto;overscroll-behavior:contain}
.mx-menu a{padding:14px 0;border-bottom:1px solid #1E1E21;border-radius:0;background:none;font-size:clamp(28px,7.4vw,40px);
  letter-spacing:-.02em;line-height:1.1;color:#F4F4F2}
.mx-menu a:hover,.mx-menu a[aria-current="page"]{background:none;color:#6EF2A7}
.mx-menu .mx-menu-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.mx-menu .mx-menu-actions a{display:inline-flex;align-items:center;justify-content:center;padding:15px 28px;border:1px solid #464646;border-radius:999px;font-size:15px;font-weight:500;letter-spacing:normal;line-height:1;color:#F4F4F2}
.mx-menu .mx-menu-actions a:hover{border-color:#F4F4F2;background:none;color:#F4F4F2}
.mx-menu .mx-menu-actions .mx-menu-ra{border-color:#F4F4F2;background:#F4F4F2;color:#0C0C0E}
.mx-menu .mx-menu-actions .mx-menu-ra:hover{border-color:#6EF2A7;background:#6EF2A7;color:#0C0C0E}
.mx-menu .mx-menu-x{display:inline-flex;position:absolute;top:24px;right:24px;width:44px;height:44px;align-items:center;justify-content:center;padding:0;
  border:1px solid #464646;border-radius:999px;background:transparent;color:#F4F4F2;cursor:pointer}
.mx-menu .mx-menu-x:hover{border-color:#F4F4F2}

/* ---- Footer: US flag + cities only make sense with the per-office nav beside them on desktop ---- */
.sf-top>div:has(.sf-flag){display:none}

/* ---- Home hero: Request access moves from the header to under the headline ---- */
body.home .mx-header .b1{display:none}
.hero-cta{display:inline-flex;margin-top:28px;padding:15px 30px;font-size:15px}
#hero > div:last-child{padding-bottom:110px !important}
/* The hero's own gradient only reaches 97% at its bottom edge, and on a tall phone screen the video showed through
   just above the logo strip. A fade that ends in the strip's exact colour closes the seam. */
#hero > div:first-child::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;
  background:linear-gradient(180deg,rgba(12,12,14,0) 0%,#0C0C0E 85%)}

/* ---- Dialogs sized for a phone screen ----
   The Request access card was ~790px tall, so on an iPhone with Safari's toolbars showing the Submit button
   sat below the fold. Tighter spacing, 16px inputs (stops iOS zooming into a focused field) and the two
   buttons side by side bring it to ~590px; if the Turnstile widget or a long error adds more, the card scrolls
   inside itself and never exceeds the visible viewport. */
.af-overlay{padding:12px}
.af-modal{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);-webkit-overflow-scrolling:touch;padding:24px 22px 22px}
.af-modal[aria-labelledby="af-title"]{padding:26px 22px 22px;border-radius:22px}
.af-modal[aria-labelledby="af-title"] .af-close{top:14px;right:14px}
.af-modal[aria-labelledby="af-title"] .af-title{margin:8px 0 16px;font-size:28px}
.af-modal[aria-labelledby="af-title"] .af-note{margin:-6px 0 14px}
.af-modal[aria-labelledby="af-title"] .af-form label{margin-bottom:14px}
.af-modal[aria-labelledby="af-title"] .af-form input,.af-modal[aria-labelledby="af-title"] .af-form textarea{padding:6px 0 9px;font-size:16px}
.af-form input,.af-form textarea{font-size:16px}
.af-hint{margin:0 0 14px}
.af-modal[aria-labelledby="af-title"] .af-actions,.af-actions{flex-direction:row;gap:10px;margin-top:4px}
.af-modal[aria-labelledby="af-title"] .btn,.af-actions .btn{flex:1 1 auto;width:auto;min-height:46px;padding:13px 16px;font-size:15px}
.af-modal[aria-labelledby="af-title"] .af-actions .btn-solid{flex:2 1 auto}
.cc-overlay{padding:12px}
.cc-modal{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:22px 20px}

/* ---- Logo strip: the band fits the logos ---- */
.strip{padding:16px 0 !important}
.strip .k{width:auto !important;white-space:nowrap;font-size:12px}
.strip .w > div:first-child{gap:20px !important}
.strip .k::after{width:23px}   /* the 20px phone gap + 3px into the logo row (see v2-main.css) */
/* The desktop 72px gaps left about one and a half logos on screen at a time. 32px gaps, and the loop offset
   (half a gap) to match so the seam stays invisible. Reduce Motion keeps v2-main.css's animation:none. */
.strip .mq{gap:32px !important}
/* Reduce Motion: the row is static, so the gap is a minimum that shrinks with the viewport. js/maximum.js
   drops any logo that won't fit whole, then spreads the leftover room into the gaps, up to --mq-gap-max. */
@media (prefers-reduced-motion:reduce){.strip .w > div:first-child{gap:12px !important}.strip .mq{gap:clamp(16px,6vw - 8px,28px) !important;--mq-gap-max:40px}}
@media (prefers-reduced-motion:no-preference){.strip .mq{animation-name:mq-phone}}
@keyframes mq-phone{to{transform:translateX(calc(-50% - 16px))}}
/* The edge fades are 10% of the logo row's width: ~100px on desktop but ~20px on a phone, so logos looked chopped
   off at the edges instead of fading out. A fixed 56px fade, solid for the first 8px. */
.strip .mq + div[aria-hidden="true"]{background:linear-gradient(90deg,#0C0C0E 0,#0C0C0E 8px,rgba(12,12,14,0) 56px,rgba(12,12,14,0) calc(100% - 56px),#0C0C0E calc(100% - 8px),#0C0C0E 100%) !important}

/* ---- Home scroll sequence on a phone ----
   The orb sits in the upper part of the screen and each scene's copy is anchored to the bottom over a dark
   gradient, so the words never cross the orb. The sequence itself (globe zoom into the nucleus, then the
   shield closing around it) is driven by js/viz-home-engine.js exactly as on desktop. */
.csq-scene{align-items:flex-end}
.csq-fg{padding-bottom:max(48px,env(safe-area-inset-bottom,0px))}
/* The pinned frame is 100vh, which on iPhone is the full screen including the area behind Safari's bottom toolbar,
   so with the toolbar showing the bottom of each scene's button was cut off. Lift the copy by the toolbar's height
   (100vh - 100svh: zero where there is no toolbar). 72px on top of that sat too high; 24px (or the home-indicator
   inset, if larger) left "Powered by agents" (laid out a little lower) 10px from it; 36px keeps every button clear. */
@supports (height:100svh){.csq-fg{padding-bottom:calc(max(36px,env(safe-area-inset-bottom,0px)) + 100vh - 100svh)}}
.csq-copy{align-items:flex-start !important;margin-left:0 !important;text-align:left !important;max-width:none;gap:14px}
/* "Powered by agents" stays right-aligned, as on desktop, so the three scenes alternate left / right / left. */
.csq-scene-b .csq-copy{align-items:flex-end !important;margin-left:auto !important;text-align:right !important}
/* One heading size and one subhead size for the three scenes and "Leave legacy behind", which follows them. */
.csq-h,.lg-sec .h2{font-size:clamp(34px,10vw,44px) !important;line-height:.97}
.csq-sub,.lg-sec .w > p{font-size:16px !important;line-height:1.5 !important;color:#ACACAC !important}
.csq-scrim,.csq-scene-b .csq-scrim{background:linear-gradient(0deg,rgba(8,8,10,.97) 0%,rgba(8,8,10,.9) 34%,rgba(8,8,10,.5) 56%,rgba(8,8,10,0) 76%) !important}
.csq-bg > *,.csq-scene .csq-canvas > *{transform:translateY(-17%)}
/* No 120px desktop gap under the logo strip. */
.core-seq{margin-top:0}

/* ---- Section spacing, every page: one phone scale instead of the desktop 120-240px ----
   96px between sections, and 96px from the last content to the footer (48px here + the footer's 48px). Each page's sections carry their desktop padding inline
   (only ever 120/160/220/240px on top and 0/200/240px at the bottom), hence the attribute selectors.
   Classed sections (.strip, .lg-sec, .sec-list) have their own phone rules and are left out. */
main > section:not([class]):is([style*="padding: 120px 0"],[style*="padding: 160px 0"],[style*="padding: 220px 0"],[style*="padding: 240px 0"]){padding-top:96px !important}
main > section:not([class]):is([style*="0 200px"],[style*="0 240px"]){padding-bottom:48px !important}
.lgl,.roles-section{padding-bottom:48px}
.lgl > :last-child{margin-bottom:0}
.sf{padding-top:48px}
/* Home: the green Emprise quote band (140px inside its .w on desktop) */
section[style*="#6EF2A7"] > .w{padding-top:88px !important;padding-bottom:88px !important}

/* ---- The same three scenes for visitors with Reduce Motion on ----
   The sequence doesn't run (.core-seq without .live), so the scenes stack. The orb appears once, as a still
   image, above "AI-native technology for banks"; "Powered by agents" and "Engineered to defend" follow as text
   only (v2-main.css hides the nucleus visual in this layout at every width). */
.core-seq:not(.live){margin-top:56px}
.core-seq:not(.live) .csq-bg{bottom:auto;height:340px;
  -webkit-mask-image:linear-gradient(180deg,#000 80%,transparent 100%);mask-image:linear-gradient(180deg,#000 80%,transparent 100%)}
.core-seq:not(.live) .csq-bg > *{transform:none}
.core-seq:not(.live) .csq-scene{display:block;min-height:0;padding:0 0 88px}
.core-seq:not(.live) .csq-scene-a{padding-top:340px}
.core-seq:not(.live) .csq-scene-c{padding-bottom:0}   /* "Leave legacy behind" brings its own 88px */
.core-seq:not(.live) .csq-scrim{display:none}
.core-seq:not(.live) .csq-fg{padding-bottom:0}

/* ---- Leave legacy behind: the animation becomes its own block under the copy, so no words cross the orb ---- */
.lg-sec{display:flex;flex-direction:column;padding:88px 0 24px !important}
.lg-sec > .w{order:1}
.lg-sec > .lg-cv{position:relative !important;order:2;top:auto !important;bottom:auto !important;right:auto !important;width:100% !important;height:min(380px,100vw);margin-top:28px}

/* ---- Hero subheads: always readable in front of a hero visual ---- */
.plat-hero .lead,.sec-hero .lead,.ai-hero .lead{text-shadow:0 0 14px #0C0C0E,0 0 28px #0C0C0E}
.sec-hero .lead,.plat-hero .lead{position:relative;padding:14px 20px;margin:-14px -20px;background:radial-gradient(closest-side,rgba(12,12,14,.92) 55%,rgba(12,12,14,0) 100%)}

/* ---- Platform ---- */
/* The hero is the visible screen under the header (74px), so on first load the crown sits on the bottom edge of the
   phone's browser, whatever the device, and the categories only appear as you scroll. svh, the height with Safari's
   toolbars showing, is the screen as first loaded; vh is the fallback. */
.plat-hero{min-height:calc(100vh - 74px) !important;min-height:max(480px,calc(100svh - 74px)) !important}
/* "A comprehensive" on one line: at 54px it is 414px wide and the lone "A" wrapped onto its own line. */
.plat-hero h1{font-size:min(54px,11.3vw)}
.plat-hero > .w{padding-top:104px !important}
/* Category titles top-aligned across the two columns (a two-line title no longer drops its neighbour). */
.cat{align-items:flex-start}
.cat svg{margin-top:2px;flex:none}
/* Space between the infrastructure categories so each reads as its own group. */
/* Advanced infrastructure: the 44px row gap meant to separate the groups also spread every line inside them (the
   cards are subgrids of the same rows). Each card is its own column now, on the phone list rhythm (see Maximum AI). */
.fgrid{row-gap:72px !important}
.fcard{display:grid !important;grid-template-columns:18px minmax(0,1fr);grid-template-rows:none !important;grid-row:auto !important;column-gap:12px;row-gap:12px}
.fcard > svg{grid-column:1;grid-row:1;align-self:center}
.fcard > .ct{grid-column:2;grid-row:1;padding-bottom:12px !important;font-size:20px}   /* heading > items: 12px + 12px gap = 24px */
.fcard > .frow{grid-column:2;padding-top:0;font-size:15px}

/* ---- Maximum AI ---- */
/* The hero is the visible screen under the header; the copy sits at the top and the orb's canvas fills the rest, so
   the orb is centred between the subhead and the bottom of the phone's browser on any device. flex-basis 0 (not
   height:auto, which would size the canvas from its own bitmap) makes the canvas exactly the leftover space. */
.ai-hero{display:flex;flex-direction:column;min-height:calc(100vh - 74px) !important;min-height:calc(100svh - 74px) !important}
.ai-hero > .w{order:1;flex:none}
.ai-hero #ai-field{position:relative !important;inset:auto !important;order:2;flex:1 1 0px;height:auto !important;min-height:220px}
/* The capability tabs become a plain list: each heading with its subhead and its items, one after another.
   Phone list rhythm (also Platform's infrastructure groups): the space grows with how unrelated two things are.
   Item title > description 4px; item > item 20px (agent grid 14px); heading > its items 24px; teal label > heading
   8px; group > group 72px; section > section 96px. */
.hs-steps{display:none}
.hsx{gap:0}
.hsx .vp[hidden]{display:block !important}
.hsx .vp + .vp{margin-top:72px}
.hsx .vhead{display:flex;margin-bottom:24px}
.hsx .vhead > span:last-child{font-size:26px !important;line-height:1.12;gap:8px !important}
.hsx .vhead > span:last-child > span:first-child{font-family:"Geist Mono",ui-monospace,monospace;font-size:12px !important;
  letter-spacing:.2em;text-transform:uppercase;color:#6EF2A7 !important;line-height:1.5}
.hsx .agrid{row-gap:14px}
.hsx .acell{padding:0 !important;align-items:flex-start;line-height:1.3}
.hsx .acell > svg{margin-top:1px}
.hsx .igrid{row-gap:20px}
.hsx .icell{display:grid !important;grid-template-columns:16px minmax(0,1fr);column-gap:12px;row-gap:4px;padding:0 !important}
.hsx .icell > svg{grid-row:1 / span 2;margin-top:2px}
.hsx .icell > span{grid-column:2;line-height:1.35}
.hsx .vtile{display:none}

/* ---- Transformation ---- */
/* Desktop's canvas is at least 380px tall, which put the spheres and their labels behind Safari's bottom toolbar.
   220px keeps the whole visual, labels included (drawn just under the spheres on phones), on the first screen. */
.mig-wrap canvas{height:220px !important}
/* The hero is the visible screen under the header and the visual sits at its bottom, so it lands just above Safari's
   toolbar on any phone and the next section ("Every record extracted...") starts below the fold. */
section:has(> .mig-wrap){box-sizing:border-box;display:flex;flex-direction:column;min-height:calc(100vh - 74px);min-height:calc(100svh - 74px)}
section:has(> .mig-wrap) > .w{margin-bottom:12px}
/* The canvas has ~35px of empty space under the labels; let it hang 16px into the next section's 96px top padding
   so the visual sits a little lower. */
.mig-wrap{width:100%;margin-top:auto !important;margin-bottom:-16px !important}
.stg-bar{display:none}
.stg-t{min-height:0 !important}
section:has(> .w .g5m) > .w{gap:48px !important}
/* The five stages: the desktop horizontal track with square markers became a stack of hollow squares on a
   phone, which read as a checklist. Here they hang off a vertical track instead: a dot on the line, the stage
   label beside it, and the title and copy indented under the label. The last segment fades to green into Live. */
.g5m{grid-template-columns:minmax(0,1fr) !important;row-gap:0 !important}
.g5m > div{position:relative;display:grid !important;grid-template-columns:11px minmax(0,1fr);column-gap:18px;row-gap:10px !important;padding-bottom:40px}
.g5m > div:last-child{padding-bottom:0}
.g5m > div > span{grid-column:2}
.g5m > div > span:first-child{grid-column:1;grid-row:1;align-self:center;justify-self:center;position:relative;z-index:1;margin:0;
  width:7px !important;height:7px !important;border:0 !important;border-radius:50%;background:#868686 !important}
.g5m > div:last-child > span:first-child{width:9px !important;height:9px !important;margin:0;background:#6EF2A7 !important;box-shadow:0 0 0 4px rgba(110,242,167,.16),0 0 12px rgba(110,242,167,.5)}
@font-face{font-family:"Geist Mono";src:url(/fonts/geist-mono-var.woff2) format("woff2");font-weight:100 900;font-display:swap}
.g5m > div > span:nth-child(2){grid-row:1;font-family:"Geist Mono",ui-monospace,monospace;font-size:12px !important;letter-spacing:.16em;text-transform:uppercase}
.g5m > div > span.stg-t{margin-top:4px}
.g5m > div::before{content:"";position:absolute;left:5px;top:10px;bottom:-10px;width:1px;background:#464646}
.g5m > div:nth-last-child(2)::before{background:linear-gradient(#464646,#6EF2A7)}
.g5m > div:last-child::before{display:none}

/* ---- Security ---- */
/* section.sec-hero, not .sec-hero: v2-base.css's generic phone rule section[style*="min-height: 780px"] (600px) is
   more specific and was overriding this, leaving the shield 200px tall. */
section.sec-hero{min-height:max(720px,100svh) !important}
.sec-hero canvas{top:0 !important;bottom:auto !important;height:100% !important;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,#000 70%,transparent 100%)}
.sec-list{padding-top:96px !important}

/* ---- Company ---- */
/* Hero fills the first screen so Leadership only appears once the user scrolls. */
.ab-hz{box-sizing:border-box;min-height:100svh}
/* Extra space above the bold mission line only (adds to the <br><br> blank line). */
.ab-hz-p strong{display:block;margin-top:40px}
/* Hero orb raised into the gap between "About Maximum." and the paragraph. */
.ab-hz-cv{top:-86px;height:calc(100% + 86px)}
/* Leadership: three on the first row, two centred on the second, smaller. */
.lead-plain{display:flex !important;flex-wrap:wrap;justify-content:center;gap:30px 14px !important}
.lead-plain > div{flex:0 0 calc((100% - 28px) / 3);align-items:center;text-align:center;gap:12px !important}
.lead-plain .tile-w{width:100%;display:flex;justify-content:center}
.lead-plain .tile{max-width:100px !important}
.lead-plain > div > div:last-child{align-items:center}
.lead-plain > div span:first-child{font-size:14px !important}
.lead-plain .k{font-size:11.5px}
/* Investors: five on one row left them 6-15px apart. Two centred rows (CRV, Pear, Restive; then Plug and Play,
   Anthemis), heights balanced so the wide wordmarks don't outweigh the square marks. */
.cells{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:32px 12px !important;align-items:center}
.cells > *{grid-column:span 2;display:flex;align-items:center;justify-content:center}
.cs .cells > *{height:auto !important}   /* v2-company.css sets 96px cells with this specificity */
.cells > :nth-child(n+4){grid-column:span 3}
.cells img{width:auto !important;max-width:100%;object-fit:contain}
.cells img[alt="CRV"]{height:28px !important}
.cells img[alt="Pear"]{height:26px !important}
.cells img[alt="Restive"]{height:17px !important}
.cells img[alt="Plug and Play"]{height:15px !important}
.cells img[alt="Anthemis"]{height:13px !important}
/* Less empty space between the investors and "News." */
section:has(.nr){padding-top:96px !important}
/* News rows (Company and Newsroom): date and source share the first line, the headline sits under them,
   instead of three stacked lines with 28px padding. */
.nr{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px !important;padding:18px 0 !important}
.nr > .k:first-child{grid-row:1;grid-column:1}
.nr > .k:last-child{grid-row:1;grid-column:2;text-align:right}
.nr > .nt{grid-row:2;grid-column:1 / -1;font-size:18px !important}

/* ---- Small phones (360px and narrower): the header must fit ----
   Logo + Request access + menu button needed ~366px, so on a 360px Android phone every page except Home
   (where Request access has moved into the hero) scrolled sideways. Tighten the pill, then the logo. */
@media (max-width:380px){
  .mx-header .pill{gap:8px !important}
  .mx-header .b1{padding:9px 13px !important;font-size:12.5px !important}
  .mx-header img[alt="Maximum"]{height:11px !important}
}
/* Headlines: same size as before at 390px and up, a little smaller where 44px no longer fits ("transformation") */
.h2{font-size:clamp(34px,11.4vw,44px)}
/* The closing headlines are 54px; "transformation." no longer fits a 320px screen at that size. */
@media (max-width:360px){.h2[style*="clamp(54px"]{font-size:42px !important}}

/* ---- Maximum AI: Action record card ----
   The 150px label column and 28px padding left the values a narrow column wrapping to three or four lines. */
[style*="grid-template-columns: 150px 1fr"]{grid-template-columns:96px minmax(0,1fr) !important;gap:12px !important;padding:13px 18px !important}
[style*="grid-template-columns: 150px 1fr"] > span:last-child{font-size:14px !important}
div:has(> [style*="grid-template-columns: 150px 1fr"]) > div:first-child{padding:16px 18px !important}

/* ---- Transformation: phased timeline ----
   Phones put each label above its bar (v2-base.css). The 8-column grid lines then ran behind the labels; drop
   them here and tighten the rows so the seven phases fit closer to one screen. */
.gantt::before{display:none}
.gantt .grow{padding:8px 0 !important;row-gap:8px !important;min-height:0 !important}
.gantt .grow > span{font-size:14px !important}
/* With Reduce Motion the bars don't grow in, so the last one is a ~40px stub under the end of "Phased migration"
   that reads as a stray tick mark. */
@media (prefers-reduced-motion:reduce){.gantt .grow:last-child > div{display:none}}
