/* ARG Laboratories. Built 2026-08-26 by Genesis Flow Labs.
   Palette sampled from the company's own logo. Type: Archivo + IBM Plex.
   Conceit: the page is a specification, not a brochure. Numbers lead. */

:root{
  --paper:#F4F6F8;
  --surface:#FFFFFF;
  --ink:#14181F;
  --ink-2:#4A525C;
  --muted:#646D78;
  --rule:#D3D8DE;
  --navy:#0A2B7C;
  --navy-deep:#071E58;
  --graphite:#414042;
  --signal:#B26B00;
  --signal-soft:#FDF3E2;
  --measure:74ch;
  --gut:clamp(1.15rem,4vw,2.5rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,sans-serif;
  font-size:17px;line-height:1.6;font-weight:400;
}

.wrap{max-width:74rem;margin:0 auto;padding:0 var(--gut)}
.narrow{max-width:52rem;margin-left:0;margin-right:auto}

/* ---------- type ---------- */
.display{
  font-family:Archivo,"Arial Narrow",sans-serif;
  font-weight:800;letter-spacing:-.02em;line-height:.98;
  font-stretch:112%;
}
.mono{font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace}

.field{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.68rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);display:block;margin:0 0 .5rem;
}

h1{font-family:Archivo,sans-serif;font-weight:800;font-stretch:112%;
   font-size:clamp(2.4rem,6.5vw,4.4rem);line-height:.96;letter-spacing:-.025em;margin:0 0 1.1rem}
h2{font-family:Archivo,sans-serif;font-weight:800;font-stretch:112%;
   font-size:clamp(1.7rem,3.6vw,2.5rem);line-height:1.04;letter-spacing:-.02em;margin:0 0 .9rem}
h3{font-family:Archivo,sans-serif;font-weight:700;font-stretch:105%;
   font-size:1.14rem;line-height:1.25;letter-spacing:-.005em;margin:0 0 .45rem}
p{margin:0 0 1.05rem;max-width:var(--measure)}
p:last-child{margin-bottom:0}
a{color:var(--navy);text-underline-offset:3px;text-decoration-thickness:1px}

/* ---------- header ---------- */
.masthead{border-bottom:1px solid var(--rule);background:var(--surface);position:sticky;top:0;z-index:50}
.masthead .row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  padding:.85rem 0;max-width:74rem;margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.masthead img{height:42px;width:auto;display:block}
.nav{display:flex;gap:1.5rem;flex-wrap:wrap}
.nav a{font-family:"IBM Plex Mono",monospace;font-size:.73rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-2);text-decoration:none;padding:.35rem 0;
  border-bottom:2px solid transparent}
.nav a:hover,.nav a:focus-visible{color:var(--navy);border-bottom-color:var(--navy)}
.nav a[aria-current="page"]{color:var(--navy);border-bottom-color:var(--navy)}

/* ---------- hero: the specification block ---------- */
.hero{background:var(--navy);color:#fff;padding:clamp(2.6rem,7vw,5rem) 0 0}
.hero .kicker{font-family:"IBM Plex Mono",monospace;font-size:.72rem;letter-spacing:.16em;
  text-transform:uppercase;color:#9FB4E8;margin:0 0 1.4rem;text-wrap:balance}
.hero h1{color:#fff;max-width:20ch}
.hero .lede{color:#C9D6F2;font-size:clamp(1.02rem,2vw,1.2rem);max-width:56ch;margin:0 0 2.6rem}

.spec{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));
  border-top:1px solid rgba(255,255,255,.24);
  background:var(--navy-deep);margin:0 calc(var(--gut)*-1);padding:0 var(--gut);
}
.spec > div{padding:1.5rem 1.15rem 1.7rem;border-right:1px solid rgba(255,255,255,.14)}
.spec > div:last-child{border-right:0}
.spec .field{color:#8FA6DE}
.spec .val{font-family:Archivo,sans-serif;font-weight:800;font-stretch:112%;
  font-size:clamp(1.9rem,4.4vw,2.7rem);line-height:.9;letter-spacing:-.03em;color:#fff}
.spec .val sup{font-size:.42em;font-weight:600;letter-spacing:.02em;vertical-align:.85em;margin-left:.15em;color:#9FB4E8}
.spec .note{font-size:.83rem;color:#9FB4E8;margin:.55rem 0 0;line-height:1.4}
@media (max-width:620px){
  .spec{grid-template-columns:1fr 1fr}
  .spec > div{border-bottom:1px solid rgba(255,255,255,.14)}
  .spec > div:nth-child(2n){border-right:0}
}

/* ---------- sections ---------- */
section{padding:clamp(2.6rem,6vw,4.6rem) 0;border-bottom:1px solid var(--rule)}
section:last-of-type{border-bottom:0}
.lead-in{color:var(--ink-2);font-size:1.05rem;max-width:60ch;margin-bottom:2rem}

.cols{display:grid;gap:1px;background:var(--rule);border:1px solid var(--rule);
  grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.cols{grid-template-columns:1fr}}
.card{background:var(--surface);border:0;padding:1.5rem 1.4rem 1.7rem}
.card p{font-size:.95rem;color:var(--ink-2);margin:0}

/* the process: a real sequence, so it is numbered */
ol.seq{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:1.5rem}
ol.seq > li{counter-increment:s;display:grid;grid-template-columns:3.2rem 1fr;gap:1.2rem;align-items:start}
ol.seq > li::before{
  content:counter(s,decimal-leading-zero);
  font-family:"IBM Plex Mono",monospace;font-size:.86rem;font-weight:500;
  color:var(--navy);letter-spacing:.06em;line-height:1.25;
  border-bottom:2px solid var(--navy);padding-bottom:.35rem;
}
ol.seq h3{margin-bottom:.3rem}
ol.seq p{font-size:.95rem;color:var(--ink-2);margin:0}

/* capability groups */
.grouphead{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  border-bottom:1px solid var(--ink);padding-bottom:.5rem;margin:0 0 1.1rem}
.grouphead h3{margin:0;font-size:1.28rem}
.count{font-family:"IBM Plex Mono",monospace;font-size:.74rem;color:var(--muted);letter-spacing:.08em;white-space:nowrap}
ul.items{list-style:none;margin:0 0 2.6rem;padding:0;
  display:grid;gap:.4rem .9rem;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));min-width:0}
ul.items li{font-size:.96rem;color:var(--ink-2);padding-left:.95rem;position:relative}
ul.items li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;background:var(--navy)}

/* the confirm state, functional not decorative */
.confirm{background:var(--signal-soft);border-left:3px solid var(--signal);padding:1rem 1.15rem;margin:0 0 1.2rem}
.confirm .field{color:var(--signal)}
.confirm p{font-size:.93rem;color:#6B4300;margin:0}
ul.items li.pending{color:var(--signal);font-weight:500}
ul.items li.pending::before{background:var(--signal)}

/* ---------- callout ---------- */
.callout{background:var(--ink);color:#fff;padding:clamp(1.7rem,4vw,2.6rem)}
.callout h2{color:#fff}
.callout p{color:#B9C2CD}
.callout .field{color:#8A94A0}

/* ---------- cta ---------- */
.cta{background:var(--surface);border:2px solid var(--navy);padding:clamp(1.6rem,4vw,2.4rem)}
.btn{display:inline-block;background:var(--navy);color:#fff;text-decoration:none;
  font-family:Archivo,sans-serif;font-weight:700;font-stretch:105%;font-size:1rem;
  letter-spacing:.02em;padding:.85rem 1.7rem;border:2px solid var(--navy);min-height:46px}
.btn:hover,.btn:focus-visible{background:var(--navy-deep);border-color:var(--navy-deep)}
.btn.ghost{background:transparent;color:var(--navy)}
.btn.ghost:hover,.btn.ghost:focus-visible{background:var(--navy);color:#fff}

:where(a,button,input,select,textarea):focus-visible{outline:3px solid var(--signal);outline-offset:2px}

/* ---------- footer ---------- */
footer{background:var(--graphite);color:#D6D9DC;padding:2.6rem 0 3rem;font-size:.92rem}
footer a{color:#fff}
footer .fgrid{display:grid;gap:1.6rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
footer .field{color:#AFB5BB}
footer .legal{border-top:1px solid #565759;margin-top:2rem;padding-top:1.2rem;color:#AFB5BB;font-size:.88rem}

/* ---------- enquiry form: the qualifier ---------- */
.enq{max-width:44rem}
.fieldrow{margin:0 0 1.5rem}
.fieldrow label{display:block;font-family:Archivo,sans-serif;font-weight:700;font-stretch:105%;
  font-size:1.02rem;margin:0 0 .45rem;color:var(--ink)}
.enq input,.enq select,.enq textarea{
  width:100%;font-family:"IBM Plex Sans",sans-serif;font-size:1rem;color:var(--ink);
  background:var(--surface);border:1px solid var(--rule);border-radius:0;
  padding:.72rem .85rem;min-height:46px;
}
.enq textarea{min-height:110px;resize:vertical}
.enq select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),
  linear-gradient(135deg,var(--navy) 50%,transparent 50%);
  background-position:calc(100% - 19px) calc(1.32em),calc(100% - 14px) calc(1.32em);
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:2.6rem}
.enq input:focus,.enq select:focus,.enq textarea:focus{border-color:var(--navy);outline:3px solid var(--signal);outline-offset:1px}
.hint{font-size:.88rem;color:var(--muted);margin:.5rem 0 0;line-height:1.45}
.grid2{display:grid;gap:0 1.2rem;grid-template-columns:1fr 1fr}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}
.enq button{cursor:pointer;font-family:Archivo,sans-serif}

/* ---------- contact split ---------- */
.split{display:grid;gap:clamp(1.8rem,4vw,3.4rem);grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}
@media (max-width:820px){.split{grid-template-columns:1fr}}
.aside{border-left:1px solid var(--rule);padding-left:clamp(1.2rem,2.6vw,2.2rem)}
@media (max-width:820px){.aside{border-left:0;border-top:1px solid var(--rule);padding-left:0;padding-top:1.8rem}}
.aside h3{margin-bottom:.3rem}
.aside p{font-size:.97rem;color:var(--ink-2)}
.aside .big{font-family:Archivo,sans-serif;font-weight:800;font-stretch:105%;font-size:1.5rem;margin:0 0 .3rem}
.aside .big a{text-decoration:none}
.asidespec{background:var(--navy);color:#fff;padding:1.2rem 1.25rem 1.35rem;margin-top:2rem}
.asidespec .field{color:#9FB4E8}
.asidespec .val{display:block;font-family:Archivo,sans-serif;font-weight:800;font-stretch:112%;
  font-size:1.75rem;line-height:1;letter-spacing:-.02em;color:#fff;margin-bottom:.5rem}
.asidespec .hint{color:#B9C9EC;margin:0}

/* ================= imagery ================= */
figure{margin:0}
.fig{position:relative;overflow:hidden;background:var(--surface)}
.fig img{display:block;width:100%;height:100%;object-fit:cover}
.fig figcaption{font-family:"IBM Plex Mono",monospace;font-size:.68rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted);padding:.7rem 0 0}

/* hero: the image bleeds off the right edge and the navy dissolves into it */
.hero{position:relative;overflow:hidden}
.hero > .wrap{position:relative;z-index:2}
.heroimg{position:absolute;top:0;right:0;width:100%;height:100%;z-index:1;pointer-events:none}
.heroimg img{width:100%;height:100%;object-fit:cover;object-position:center 42%;
  filter:contrast(1.12) saturate(.25) brightness(.92)}
/* navy only where the type needs protection. The right third stays a real photograph. */
.heroimg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(96deg,
    var(--navy) 0%, var(--navy) 40%,
    rgba(10,43,124,.92) 52%, rgba(10,43,124,.58) 66%,
    rgba(10,43,124,.20) 82%, rgba(10,43,124,.04) 96%);}
.hero .herocopy{max-width:40rem}
.hero h1{max-width:15ch}
@media (max-width:920px){
  .heroimg{position:relative;width:auto;height:clamp(190px,42vw,300px);
    margin:1.8rem calc(var(--gut)*-1) 0}
  .heroimg img{object-position:center 45%}
  .heroimg::after{background:linear-gradient(to bottom,rgba(10,43,124,.55),rgba(7,30,88,.25))}
}

/* a full-bleed material band between sections */
.band{position:relative;height:clamp(200px,26vw,340px);overflow:hidden;border-bottom:1px solid var(--rule)}
.band img{width:100%;height:100%;object-fit:cover;display:block}
.band .over{position:absolute;inset:0;display:flex;align-items:flex-end;
  background:linear-gradient(to top,rgba(10,43,124,.86) 0%,rgba(10,43,124,.15) 55%,transparent 100%)}
.band .over div{padding:clamp(1.2rem,3vw,2.2rem);max-width:74rem;margin:0 auto;width:100%;
  padding-left:var(--gut);padding-right:var(--gut)}
.band .over p{color:#fff;font-family:Archivo,sans-serif;font-weight:800;font-stretch:112%;
  font-size:clamp(1.25rem,3vw,2rem);line-height:1.06;letter-spacing:-.02em;margin:0;max-width:26ch}

/* category cards carry a texture */
.card .fig{aspect-ratio:16/10;margin:-1.5rem -1.4rem 1.1rem}
.card .fig img{transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.card:hover .fig img{transform:scale(1.045)}

/* ================= diagrams ================= */
.diagram{background:var(--surface);border:1px solid var(--rule);padding:clamp(1.3rem,3vw,2.2rem)}
.diagram svg{display:block;width:100%;height:auto}
.dg-label{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.13em;
  text-transform:uppercase;fill:var(--muted)}
.dg-title{font-family:Archivo,sans-serif;font-weight:700;font-size:13px;fill:var(--ink)}
.dg-body{font-family:"IBM Plex Sans",sans-serif;font-size:11px;fill:var(--ink-2)}
.dg-num{font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:500;fill:var(--navy)}
.dg-rule{stroke:var(--rule);stroke-width:1}
.dg-navy{fill:var(--navy)}
.dg-track{stroke:var(--rule);stroke-width:2;stroke-linecap:round}
.dg-prog{stroke:var(--navy);stroke-width:2;stroke-linecap:round}

/* ================= motion, restrained ================= */
@media (prefers-reduced-motion:no-preference){
  .rise{opacity:0;transform:translateY(14px);
    transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1)}
  .rise.in{opacity:1;transform:none}
  .rise.d1{transition-delay:.08s} .rise.d2{transition-delay:.16s}
  .rise.d3{transition-delay:.24s} .rise.d4{transition-delay:.32s}

  /* hero spec cells settle in sequence on load */
  .spec > div{opacity:0;transform:translateY(10px);animation:cell .65s cubic-bezier(.2,.7,.3,1) forwards}
  .spec > div:nth-child(1){animation-delay:.30s}
  .spec > div:nth-child(2){animation-delay:.40s}
  .spec > div:nth-child(3){animation-delay:.50s}
  .spec > div:nth-child(4){animation-delay:.60s}
  @keyframes cell{to{opacity:1;transform:none}}

  .hero h1,.hero .lede,.hero .kicker{opacity:0;animation:cell .7s cubic-bezier(.2,.7,.3,1) forwards}
  .hero .kicker{animation-delay:.05s} .hero h1{animation-delay:.12s} .hero .lede{animation-delay:.22s}

  /* the process diagram draws itself once */
  .dg-prog{stroke-dasharray:var(--len,900);stroke-dashoffset:var(--len,900);
    transition:stroke-dashoffset 1.5s cubic-bezier(.3,.7,.3,1)}
  .diagram.in .dg-prog{stroke-dashoffset:0}
  .dg-step{opacity:0;transition:opacity .5s ease}
  .diagram.in .dg-step{opacity:1}
  .diagram.in .dg-step:nth-of-type(1){transition-delay:.25s}
  .diagram.in .dg-step:nth-of-type(2){transition-delay:.5s}
  .diagram.in .dg-step:nth-of-type(3){transition-delay:.75s}
  .diagram.in .dg-step:nth-of-type(4){transition-delay:1s}
  .diagram.in .dg-step:nth-of-type(5){transition-delay:1.25s}
}
@media (prefers-reduced-motion:reduce){
  .rise{opacity:1;transform:none}
  .spec > div,.hero h1,.hero .lede,.hero .kicker{opacity:1}
  .dg-step{opacity:1}
}


/* ---------- overflow guards ---------- */
/* grid and flex children default to min-content, which lets a 1600px image
   blow the column out. This is the fix, applied everywhere it can bite. */
.cols > *, .split > *, .herogrid > *, .fgrid > *, ol.seq > li, ol.seq > li > div{min-width:0}
img, svg, video{max-width:100%}
.card{overflow:hidden}
html, body{overflow-x:clip}

/* ================= HTML diagrams, so they reflow on a phone =================
   These replace the SVG versions. SVG scales its text down with the viewBox,
   which rendered diagram labels at 2.7px to 4.3px on a 360 to 414px phone.
   Measured, not guessed. HTML reflows instead of shrinking. */

.flow{list-style:none;margin:0;padding:0;display:grid;gap:0;
  grid-template-columns:repeat(5,minmax(0,1fr));counter-reset:f}
.flow > li{counter-increment:f;position:relative;padding:2.4rem .9rem 0 0}
.flow > li::before{content:"";position:absolute;left:0;top:12px;right:0;height:2px;background:var(--rule)}
.flow > li::after{content:"";position:absolute;left:0;top:6px;width:14px;height:14px;
  border-radius:50%;background:var(--navy);border:3px solid var(--paper)}
.flow > li:last-child{padding-right:0}
.flow .n{font-family:"IBM Plex Mono",monospace;font-size:.72rem;font-weight:500;color:var(--navy);
  letter-spacing:.1em;display:block;margin-bottom:.3rem}
.flow h4{font-family:Archivo,sans-serif;font-weight:700;font-size:1rem;margin:0 0 .25rem;color:var(--ink)}
.flow p{font-size:.92rem;color:var(--ink-2);margin:0;line-height:1.4}
@media (max-width:760px){
  .flow{grid-template-columns:1fr;gap:0}
  .flow > li{padding:0 0 1.6rem 2.4rem}
  .flow > li::before{left:6px;top:0;bottom:0;right:auto;width:2px;height:auto}
  .flow > li:last-child::before{bottom:auto;height:14px}
  .flow > li::after{left:0;top:2px}
  .flow h4{font-size:1.06rem}
  .flow p{font-size:.97rem}
}
.flow-foot{border-top:1px solid var(--rule);margin-top:1.6rem;padding-top:1rem;
  font-family:"IBM Plex Mono",monospace;font-size:.75rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted)}

.split2{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(1.4rem,3vw,2.6rem)}
@media (max-width:760px){.split2{grid-template-columns:1fr;gap:2rem}}
.split2 h4{font-family:"IBM Plex Mono",monospace;font-size:.72rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  border-bottom:1px solid var(--ink);padding-bottom:.5rem;margin:0 0 1rem}
.split2 ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.split2 ul.pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1.4rem}
@media (max-width:560px){.split2 ul.pair{grid-template-columns:1fr}}
.split2 li{font-size:.99rem;color:var(--ink-2);padding-left:1rem;position:relative;line-height:1.45}
.split2 li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;background:var(--navy)}
.split2 .opt{font-family:"IBM Plex Mono",monospace;font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin:.9rem 0 0}

/* ================= small type: readable on a phone ================= */
@media (max-width:760px){
  body{font-size:17px}
  .field{font-size:.76rem;letter-spacing:.1em}
  .hero .kicker{font-size:.76rem;letter-spacing:.09em}
  .spec .note{font-size:.9rem}
  .hint{font-size:.93rem}
  .count{font-size:.8rem}
  .nav a{font-size:.78rem;letter-spacing:.08em}
  ul.items li{font-size:1rem}
  .card p{font-size:1rem}
  .band .over p{font-size:clamp(1.15rem,5.2vw,1.5rem)}
  footer{font-size:.97rem}
  .flow-foot{font-size:.8rem;letter-spacing:.06em}
}

/* ================= mobile header and hero =================
   Measured in a 390px and 360px frame, not guessed.
   Before: 6 nav links wrapped to 3 rows and ate 170px above the fold,
   and the hero opened on an empty navy strip above the image. */
@media (max-width:760px){
  .masthead .row{flex-direction:column;align-items:stretch;gap:.55rem;padding:.7rem 0 0}
  .masthead img{height:38px}
  /* one scrolling row keeps every link reachable without a menu button */
  .nav{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    gap:1.15rem;padding:0 0 .55rem;margin:0 calc(var(--gut)*-1);
    padding-left:var(--gut);padding-right:var(--gut)}
  .nav::-webkit-scrollbar{display:none}
  .nav a{white-space:nowrap;flex:0 0 auto;padding:.3rem 0}

  /* image flush to the top, no dead navy band, copy directly under it */
  .hero{padding-top:0}
  .heroimg{margin:0 calc(var(--gut)*-1) 1.5rem;height:clamp(170px,38vw,240px)}
  .hero > .wrap:first-of-type{padding-top:0}
  .hero .kicker{margin-bottom:1rem}
}

/* a soft edge so the scrolling nav reads as scrollable rather than cut off */
@media (max-width:760px){
  .masthead{position:relative}
  .masthead::after{content:"";position:absolute;right:0;bottom:0;width:34px;height:34px;
    pointer-events:none;background:linear-gradient(to right,rgba(255,255,255,0),var(--surface))}
  /* keep the kicker on one line per phrase instead of orphaning a dot */
  .hero .kicker{max-width:26ch}
}
