/* Veloxion AG - site styles. Tokens first, then layout, then components. */
@import url("fonts.css");

:root {
  --bg: #0B0D0C;
  --bg-2: #111413;
  --bg-3: #171B19;
  --line: #1F2925;
  --line-2: #2B3833;
  --text: #E9EEEB;
  --muted: #8E9A93;
  --green: #46E39C;
  --green-deep: #1E6B4A;
  --green-tint: rgba(70, 227, 156, 0.10);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--bg); }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -0.005em; }
.label {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.25rem;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--text); }
.muted { color: var(--muted); }
.mt-6 { margin-top: 1.5rem; }
.mono { font-family: var(--mono); font-size: .875rem; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-start-8 { grid-column: 8 / -1; }
@media (max-width: 900px) {
  .col-7, .col-5, .col-6, .col-start-8 { grid-column: 1 / -1; }
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: var(--bg); padding: 8px 12px; font-weight: 500; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav a { font-size: .9375rem; color: var(--muted); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--green); transition: right .3s var(--ease); }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::after { right: 0; }
.nav .btn { padding: 10px 18px; color: var(--bg); }
.nav .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font: 500 .875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 500; font-size: .9375rem;
  padding: 14px 22px; border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .25s, background-color .25s, color .25s;
}
.btn:hover, .btn:focus-visible { border-color: var(--green); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--bg); }
.btn-primary:hover, .btn-primary:focus-visible { background: #6FEDB5; border-color: #6FEDB5; color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px); min-height: calc(100vh - 72px); display: flex; align-items: center; overflow: hidden; }
.hero .grid { align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 1.5rem; max-width: 46ch; }
.hero-figure { grid-column: 8 / -1; justify-self: end; width: min(100%, 520px); }
.hero-particle { width: 100%; height: auto; overflow: visible; }
.hero-particle .env { stroke: var(--line-2); }
.hero-particle .shell { stroke: var(--green); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease); }
.hero-particle .shell-glow { stroke: var(--green); opacity: 0; filter: blur(14px); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease), opacity .8s; }
.hero-particle.assembled .shell, .hero-particle.assembled .shell-glow { stroke-dashoffset: 0; }
.hero-particle.assembled .shell-glow { opacity: .35; }
.hero-particle .dot { fill: var(--green); opacity: 0; transition: transform .9s var(--ease), opacity .45s; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-figure { grid-column: 1 / -1; justify-self: start; width: min(58vw, 320px); order: -1; }
}

/* ---------- property table ---------- */
.props { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.prop { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.prop h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.prop p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .prop { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- technology exhibit ---------- */
.exhibit { width: min(100%, 460px); margin-inline: auto; }
.exhibit svg { width: 100%; height: auto; }
.legend { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legend .swatch { width: 16px; height: 16px; border-radius: 50%; margin-top: 5px; }
.legend .swatch-core { background: #2A322E; border: 1px solid var(--line-2); }
.legend .swatch-shell { background: var(--green); }
.legend .swatch-env { background: transparent; border: 1px dashed var(--muted); }
.legend strong { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.0625rem; margin-bottom: 2px; }
.legend span { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--green); font-size: .875rem; padding-top: 6px; }
.steps h3 { font-size: 1.125rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- applications ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 3rem; }
.card { background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 12, .6)); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .tag { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.card-body p { margin: 0; color: var(--muted); font-size: .9875rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- company ---------- */
.company { position: relative; overflow: hidden; }
.company-bg { position: absolute; inset: 0; z-index: 0; }
.company-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.company-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 13, 12, .85) 45%, rgba(11, 13, 12, .55) 100%); }
.company .wrap { position: relative; z-index: 1; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; border-top: 1px solid var(--line-2); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 2px; }
.facts .k { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-weight: 500; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-link { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 4.2vw, 3.4rem); letter-spacing: -0.015em; line-height: 1.1; color: var(--green); display: inline-block; margin-top: 1.5rem; border-bottom: 2px solid transparent; transition: border-color .25s; word-break: break-all; }
.contact-link:hover, .contact-link:focus-visible { border-color: var(--green); }
.contact-link-sm { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-top: 1rem; }
.address { margin-top: 2rem; color: var(--muted); font-style: normal; line-height: 1.7; }
.col-start-7 { grid-column: 7 / -1; }
@media (max-width: 900px) { .col-start-7 { grid-column: 1 / -1; } }

/* ---------- contact form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); opacity: .7; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; padding: 13px 14px; border-radius: 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #E08B7A; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { margin: 0; color: var(--muted); font-size: .9375rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #E08B7A; }
.form-note { margin: 0; color: var(--muted); font-size: .8125rem; }
.form-note a { border-bottom: 1px solid var(--line-2); }
.form-note a:hover { border-color: var(--green); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer img { height: 18px; width: auto; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a, .site-footer span { font-size: .875rem; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
@media (max-width: 560px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- legal pages ---------- */
.page { padding-block: clamp(56px, 8vw, 110px); }
.page h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 2rem; }
.page h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 3rem 0 1rem; }
.page h3 { font-size: 1.125rem; margin: 2rem 0 .5rem; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--text); font-weight: 500; }
.page ul { padding-left: 1.2em; }
.page .lang { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.page .legal-block { max-width: 70ch; }
.page a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.page a:hover { border-color: var(--green); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-particle .shell, .hero-particle .shell-glow, .hero-particle .dot, .card-media img, .nav a::after { transition: none; }
}
