/* Arian Labs: "precision lab" look. Dark charcoal, white, silver accent. */
:root {
  --bg: #16181b;
  --bg-alt: #1d2024;
  --panel: #23272c;
  --line: #34393f;
  --text: #f4f5f6;
  --muted: #a3aab2;
  --silver: #c9ced4;
  --silver-hi: #eef1f4;
  --hard: #d9dde2;
  --service: #9fb7cf;
  --error: #ff9b9b;
  --ok: #9fe3b5;
  --radius: 10px;
  --wrap: 68rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--silver-hi); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: .5rem; background: #fff; color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(22, 24, 27, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--silver-hi); text-decoration: none; letter-spacing: .22em; font-size: .95rem; font-weight: 500; }
.wordmark b { font-weight: 300; color: var(--silver); }
.mark { width: 28px; height: 28px; color: var(--silver); }
nav { display: flex; gap: 1.1rem; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; }
nav a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; }
/* Narrow screens: the links move to their own row and scroll sideways. */
@media (max-width: 960px) {
  .topbar-inner { padding-top: .5rem; }
  .mainnav { order: 2; width: 100%; overflow-x: auto; padding: .25rem 0 .6rem; scrollbar-width: thin; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 6rem 0 5rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(60rem 30rem at 85% -10%, rgba(201, 206, 212, .12), transparent 60%), var(--bg); }
.eyebrow { color: var(--silver); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1.25rem; max-width: 18ch; font-weight: 650; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 0 2rem; }
.trace { position: absolute; right: -2rem; bottom: 2rem; width: 22rem; height: 10rem; opacity: .35; pointer-events: none;
  background:
    linear-gradient(var(--silver), var(--silver)) 0 30% / 55% 2px no-repeat,
    linear-gradient(var(--silver), var(--silver)) 55% 30% / 2px 45% no-repeat,
    linear-gradient(var(--silver), var(--silver)) 55% 75% / 45% 2px no-repeat,
    radial-gradient(circle, var(--silver) 5px, transparent 6px) 55% 30% / 12px 12px no-repeat; }
@media (max-width: 700px) { .trace { display: none; } .hero { padding: 4rem 0 3.5rem; } }
.hero > .wrap { position: relative; z-index: 1; }

/* Hero background: animated trace print */
.hero-print{position:absolute;inset:0 0 0 auto;width:min(68%,1000px);height:100%;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%);
  transition:opacity .9s}
.hero-print.fade{opacity:0}
.hero-print path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.hero-print .ghost path{stroke:#fff;stroke-opacity:.07;stroke-width:5}
.hero-print .t{stroke:url(#silver);stroke-width:5;stroke-dasharray:1;stroke-dashoffset:1}
.hero-print .h{stroke:#fff;stroke-width:9;stroke-dasharray:.035 1;stroke-dashoffset:.035;opacity:0;filter:url(#glow)}
.hero-print .v{opacity:0;fill:url(#silver)}
.hero-print .v .hole{fill:var(--bg)}
.hero-print .chip{opacity:0}
.hero-print.run .chip{animation:hp-pop .6s .1s forwards}
.hero-print.run .t{animation:hp-draw 1.5s ease-in-out var(--d) forwards}
.hero-print.run .h{animation:hp-head 1.5s ease-in-out var(--d) forwards}
.hero-print.run .v{animation:hp-pop .4s calc(var(--d) + 1.35s) forwards}
@keyframes hp-draw{to{stroke-dashoffset:0}}
@keyframes hp-head{0%{stroke-dashoffset:.035;opacity:1}92%{opacity:1}100%{stroke-dashoffset:-1;opacity:0}}
@keyframes hp-pop{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hero-print .t{stroke-dashoffset:0}.hero-print .v,.hero-print .chip{opacity:1}}
@media (max-width:760px){.hero-print{width:100%;opacity:.35}}

.btn { display: inline-block; background: linear-gradient(180deg, var(--silver-hi), var(--silver)); color: #111316; font-weight: 600;
  text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { color: #000; filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; margin: 0 0 1.5rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.note { color: var(--muted); margin: 1rem 0 0; }
.muted { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.num { font-variant-numeric: tabular-nums; color: var(--silver); font-size: .8rem; letter-spacing: .15em; }

.quote { font-size: 1.2rem; line-height: 1.5; border-left: 2px solid var(--silver); padding-left: 1rem; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .75rem; height: 2px; background: var(--silver); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-weight: 500; }

/* Limits table */
.table-wrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
table.limits { width: 100%; border-collapse: collapse; font-size: .95rem; }
.limits th, .limits td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.limits thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; background: var(--panel); }
.limits tbody th { font-weight: 500; white-space: nowrap; }
.limits tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) { .limits tbody th { white-space: normal; } }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; border: 1px solid; }
.tag.hard { color: var(--hard); border-color: rgba(217, 221, 226, .45); }
.tag.service { color: var(--service); border-color: rgba(159, 183, 207, .5); }
.legend { color: var(--muted); font-size: .88rem; margin-top: .9rem; }

.pricing .price { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .5rem; }
.pricing strong { color: var(--silver-hi); }

/* Form */
form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
label { display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--silver); outline: none; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.5em; margin: .9rem 0 0; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }
.opt { font-size: .8rem; opacity: .8; }
.field { display: grid; gap: .35rem; }
.help { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.help.notice { color: var(--request, #f0c674); }
.help .error, .help.error { color: var(--error); margin: .3rem 0 0; }
.help p { margin: .3rem 0 0; }
/* Attach files: always visible, but lighter than the link field above it. */
.upload { border: 1px dashed var(--line); border-radius: 8px; padding: .75rem .85rem; }
.upload label { font-size: .84rem; }
.upload input[type=file] { background: transparent; border: 0; padding: .2rem 0; font-size: .85rem; color: var(--muted); }
.file-list { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--text); }
.link-btn { font: inherit; font-size: .82rem; color: var(--silver-hi); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; justify-self: start; }
.check { display: flex; align-items: flex-start; gap: .6rem; color: var(--text); }
.check input { width: auto; margin: .2rem 0 0; accent-color: var(--silver); }
.confidential { font-size: .82rem; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--silver); padding-left: .8rem; margin: 0 0 1.1rem; }

.footer { padding: 2.5rem 0; color: var(--muted); font-size: .88rem; }
.footer p { margin: .25rem 0; }

/* ---------- Added for the expanded page ---------- */
html { scroll-padding-top: 6.5rem; }
.small { font-size: .88rem; }
.note.top { margin: -.75rem 0 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-ghost { background: transparent; color: var(--silver-hi); border: 1px solid var(--silver); }
.btn-ghost:hover { background: rgba(201, 206, 212, .1); color: #fff; filter: none; }
.prose p { margin: 0 0 1rem; }
h3 { line-height: 1.35; }

/* Service and conductor cards */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .service-grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.card-head h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: .75rem 0 0; }
.card .ticks { gap: .45rem; }
.product { font-weight: 400; font-size: .9rem; }
.badge { display: inline-block; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(201, 206, 212, .45); color: var(--silver-hi); white-space: nowrap; }
.badge-request { border-color: rgba(240, 198, 116, .55); color: var(--request); }
.price { color: var(--silver-hi); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge-featured { background: linear-gradient(180deg, var(--silver-hi), var(--silver)); color: #111316; border-color: transparent; font-weight: 600; }
.card-featured { grid-column: 1 / -1; border-color: rgba(201, 206, 212, .45); }
.card-featured .card-head h3 { font-size: 1.3rem; }
.card .card-intro { color: var(--text); font-size: 1.05rem; margin: 0 0 .75rem; }
.card-note { font-size: .88rem; color: var(--muted); }
.promise { margin: 1.5rem 0 0; font-size: 1.05rem; max-width: 60ch; }

/* Availability tags in tables */
:root { --request: #f0c674; }
.tag.standard { color: var(--hard); border-color: rgba(217, 221, 226, .45); }
.tag.request { color: var(--request); border-color: rgba(240, 198, 116, .5); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.data-table tbody th { white-space: normal; min-width: 11rem; }
.notes-list { margin: 1.25rem 0 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .35rem; }

/* Process: five steps */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-5 { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid.video-grid { margin-bottom: 2rem; }
.thumb.play { position: relative; cursor: pointer; }
.thumb .no-poster { display: block; aspect-ratio: 4 / 3; background: #000; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); transition: transform .2s; }
.play-icon circle { fill: rgba(22, 24, 27, .7); stroke: var(--silver-hi); stroke-width: 2; }
.play-icon path { fill: var(--silver-hi); }
.thumb.play:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .play-icon { transition: none; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { font: inherit; font-size: .88rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--silver); }
.chip[aria-pressed="true"] { background: var(--silver); border-color: var(--silver); color: #111316; font-weight: 600; }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; }
.thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); cursor: zoom-in; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.thumb:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } .thumb:hover img { transform: none; } }
.gallery-grid figcaption { font-size: .88rem; color: var(--muted); margin-top: .45rem; }
.stage { color: var(--silver); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-right: .3rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox-inner { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox-inner img, .lightbox-inner video { display: block; margin: 0 auto; max-width: 100%; max-height: 80vh; border-radius: 6px; cursor: default; background: #000; }
.lightbox-inner [hidden] { display: none; }
.lightbox-inner figcaption { color: var(--silver-hi); margin-top: .6rem; }
.lightbox-close { position: absolute; top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--silver); background: var(--panel); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.no-scroll { overflow: hidden; }

/* Why silver */
.spaced { gap: .8rem; }
.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.crosses li { padding-left: 1.6rem; position: relative; }
.crosses li::before { content: "×"; position: absolute; left: .1rem; top: -.05em; color: var(--muted); font-size: 1.15rem; }
.closing { margin-top: 2rem; }
.why-intro { max-width: 60ch; margin: 0 0 2rem; font-size: 1.05rem; }

/* Applications */
.app-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.app-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.app-card h3 { margin: .6rem 0 .3rem; font-size: 1rem; }
.app-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.app-icon { width: 28px; height: 28px; color: var(--silver); }

/* What we need from you */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: 52rem; }
.checklist li { position: relative; padding: .75rem 1rem .75rem 2.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before { content: ""; position: absolute; left: 1rem; top: 1rem; width: .9rem; height: .9rem; border: 1.5px solid var(--silver); border-radius: 3px; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1rem 0; list-style-position: outside; }
.faq summary h3 { display: inline; font-size: 1rem; margin: 0; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }
.turnaround-note { display: block; margin-top: .6rem; font-size: .95rem; color: var(--muted); }

/* Confidentiality and privacy pages */
.legal { max-width: 46rem; }
.legal h1 { max-width: none; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.legal p { margin: 0 0 1rem; }
.legal .lead { max-width: none; }
.legal-list { padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: .6rem; }
.confidential a { color: var(--silver-hi); }

/* Technical page intro, and the "Before you design" / "Ready to send" bands */
.page-intro { border-bottom: 1px solid var(--line); }
.page-intro .lead a { color: var(--silver-hi); }
.tech-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.tech-teaser h2 { margin-bottom: .5rem; }
.tech-teaser p { margin: 0; max-width: 46ch; }

/* For researchers */
.service-area { color: var(--silver-hi); font-weight: 500; margin: 0 0 1.75rem; }
.research-cols { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .research-cols { grid-template-columns: 3fr 2fr; align-items: start; } }
.research-cols h3 { margin-top: 0; }
.research-offer { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .research-offer { grid-template-columns: 1fr 1fr; } }
.research-offer .card { padding: 1.1rem 1.25rem; }
.research-offer h4 { margin: 0 0 .35rem; font-size: 1rem; }
.research-offer p { margin: 0; color: var(--muted); font-size: .92rem; }
.research-side { display: grid; gap: 1rem; }
.research-side .card p { margin: 0; }
.delivery-note { margin: 1.25rem 0 0; max-width: 70ch; }
