/* Valji relaunch. Dark industrial theme: the brand lives in foundry light, so the page is dark-only by design. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.muted { color: var(--muted); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 16ch; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-top: 1.1rem; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }

.textlink { display: inline-flex; align-items: center; gap: 0.5em; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 2rem; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }


/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 70% 55%, #1a120b 0%, var(--bg) 60%); }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 1.2s var(--ease); }
.hero.has-3d .hero__poster { opacity: 0; }
.hero__stage { position: absolute; inset: 0; touch-action: pan-y; }
.hero__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.hero.is-dragging .hero__stage canvas { cursor: grabbing; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,13,0.7) 0%, rgba(11,15,13,0) 16%), linear-gradient(90deg, rgba(11,15,13,0.75) 0%, rgba(11,15,13,0.25) 34%, rgba(11,15,13,0) 52%), linear-gradient(0deg, var(--bg) 0%, rgba(11,15,13,0) 18%); pointer-events: none; transition: opacity 0.8s var(--ease); }
.hero.is-exploded .hero__shade { opacity: 0.35; }
.hero__content { pointer-events: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero.is-exploded .hero__content { opacity: 0; transform: translateX(-24px); }
.hero.is-exploded .hero__content a { pointer-events: none; }
/* Tools: rotate hint + take-apart toggle */
.hero__tools { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 2rem; display: flex; align-items: center; gap: 1.2rem; opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero.is-ready .hero__tools { opacity: 1; transform: none; }
.hero__hint { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.1rem; border: 1px solid rgba(233, 236, 230, 0.22); border-radius: 999px; background: rgba(11, 15, 13, 0.6); backdrop-filter: blur(10px); color: var(--text); font: 600 0.86rem "JetBrains Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__hint i { font-size: 1.45rem; color: var(--accent); animation: hintDrag 2.4s var(--ease) infinite; }
@keyframes hintDrag { 0%, 100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(-5px) rotate(-10deg); } 65% { transform: translateX(5px) rotate(10deg); } }
.hero__explode { position: relative; padding: 1rem 1.6rem; font-size: 1.08rem; font-weight: 600; border-color: #2fc46a; background: rgba(15, 145, 62, 0.45); backdrop-filter: blur(10px); color: var(--text); box-shadow: 0 0 0 0 rgba(31, 174, 85, 0.55); animation: explodePulse 2.6s ease-out infinite; }
.hero__explode i { color: #7ef0a8; font-size: 1.3rem; }
.hero__explode:hover { background: rgba(15, 145, 62, 0.65); }
@keyframes explodePulse { 0% { box-shadow: 0 0 0 0 rgba(31, 174, 85, 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(31, 174, 85, 0); } }
.hero__explode[aria-pressed="true"] { animation: none; background: var(--accent); color: #0b0f0d; }
.hero__explode[aria-pressed="true"] i { color: #0b0f0d; }
/* Part labels (only while taken apart) */
/* Big outlined claim behind the roll + short barrel/core key */
.hero__bgword { position: absolute; right: clamp(16px, 4vw, 48px); top: calc(var(--nav-h) + 7vh); margin: 0; text-align: right; font-size: clamp(3rem, 7vw, 8rem); font-stretch: 118%; font-weight: 800; line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); pointer-events: none; user-select: none; transition: opacity 0.8s var(--ease); }
.hero.is-exploded .hero__bgword { opacity: 0; }
.hero__key { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 6.2rem; margin: 0; display: flex; gap: 2rem; opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.hero.is-ready .hero__key { opacity: 1; transform: none; }
.hero.is-exploded .hero__key { opacity: 0; }
.hero__key div { border-left: 2px solid var(--accent); padding-left: 0.8rem; }
.hero__key dt { font: 600 0.72rem "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero__key dd { margin: 0.2rem 0 0; color: #c3cac5; font-size: 0.92rem; max-width: 22ch; }
.hero__labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease); }
.hero.is-exploded.is-ready .hero__labels { opacity: 1; transition-delay: 1.2s; }
.hero.is-exploded .rl { pointer-events: auto; }
.rl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rl-lines line { stroke: rgba(31,174,85,0.55); stroke-width: 1; }
.rl-lines circle { fill: var(--accent); }
.rl-lines line.is-on { stroke: var(--accent); stroke-width: 1.5; }
.rl-lines circle.is-on { r: 4.5px; }
.rl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.55rem 0.28rem 0.3rem; border: 1px solid rgba(233,236,230,0.16); border-radius: var(--radius); background: #0b0f0d; color: var(--text); font: 500 0.74rem "Archivo", sans-serif; white-space: nowrap; cursor: pointer; translate: 0 -50%; transition: border-color 0.25s, background 0.25s; }
.rl__num { font: 600 0.66rem "JetBrains Mono", monospace; color: var(--accent-ink); background: var(--accent); border-radius: 2px; padding: 0.1rem 0.28rem; }
.rl:hover, .rl.is-on { border-color: var(--accent); background: rgba(14,84,63,0.85); }
.hero__legend { display: none; }
/* Part info card */
.rc { position: absolute; z-index: 3; right: clamp(16px, 4vw, 48px); bottom: 5.4rem; width: min(340px, calc(100vw - 32px)); padding: 1.1rem 1.2rem 1.2rem; border: 1px solid rgba(31,174,85,0.45); border-radius: var(--radius); background: rgba(11,15,13,0.94); backdrop-filter: blur(14px); display: grid; gap: 0.25rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.rc.is-open { opacity: 1; transform: none; pointer-events: auto; }
.rc__num { font: 600 0.72rem "JetBrains Mono", monospace; color: var(--accent); letter-spacing: 0.08em; }
.rc__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.rc__desc { color: #c3cac5; font-size: 0.9rem; margin-top: 0.35rem; }
.rc__close { position: absolute; top: 0.6rem; right: 0.6rem; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.hero__content { position: relative; padding-top: var(--nav-h); }
.hero__title { font-size: clamp(2.8rem, 6.4vw, 6rem); font-stretch: 118%; font-weight: 800; letter-spacing: -0.035em; max-width: 11ch; line-height: 1.02; }
.hero__title em { font-style: normal; color: var(--accent); display: inline-block; padding-bottom: 0.08em; }
.hero__sub { color: #c3cac5; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 40ch; margin-top: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .ln > span { display: inline-block; animation: lineUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero__title .ln:nth-child(1) > span { animation-delay: 0.25s; }
.hero__title .ln:nth-child(2) > span { animation-delay: 0.38s; }
.hero__title .ln:nth-child(3) > span { animation-delay: 0.51s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero__sub, .hero__ctas { animation: heroIn 1.1s var(--ease) 0.75s both; }
.hero__ctas { animation-delay: 0.9s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* Figures */
.figures { border-block: 1px solid var(--line); background: var(--bg-2); }
.figures__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.fig { padding: 2.2rem 1.4rem 2.2rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fig + .fig { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.fig__num { font: 500 clamp(1.8rem, 3vw, 2.7rem)/1 "JetBrains Mono", monospace; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fig__num small { font-size: 0.45em; color: var(--muted); margin-left: 0.25em; letter-spacing: 0; }
.fig__num .fig__pre { margin: 0 0.35em 0 0; }
.fig__lbl { color: var(--muted); font-size: 0.9rem; line-height: 1.4; max-width: 22ch; }

/* Process */
.process { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); }
.process__sticky { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2.6rem; overflow: hidden; padding-top: var(--nav-h); }
.process__head .h2 { max-width: 20ch; }
.process__track { display: flex; gap: 1.4rem; padding: 0 clamp(16px, 4vw, 48px); padding-left: max(clamp(16px, 4vw, 48px), calc((100vw - var(--wrap)) / 2 + 48px)); will-change: transform; }
.pcard { flex: 0 0 clamp(280px, 30vw, 440px); }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(0.9); }
.pcard__body { padding-top: 1.1rem; }
.pcard h3 { font-size: 1.3rem; font-stretch: 105%; }
.pcard p { color: var(--muted); font-size: 0.95rem; margin-top: 0.45rem; max-width: 40ch; }

/* Grades */
.grades { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.6rem 0 2rem; }
.tab { font: 500 0.92rem "Archivo", sans-serif; padding: 0.7em 1.15em; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.25s var(--ease); }
.tab:hover { color: var(--text); border-color: rgba(233,236,230,0.3); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.textlink--next { display: flex; width: fit-content; margin-top: 0.9rem; }

/* Tools */
.tools { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.tools__title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; max-width: 22ch; }
.tools__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.toolpanel { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 32vw, 460px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); text-decoration: none; isolation: isolate; transition: border-color 0.4s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.toolpanel:hover, .toolpanel:focus-visible { border-color: var(--accent); }
.toolpanel__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.toolpanel:hover .toolpanel__bg { transform: scale(1.04); filter: brightness(0.74); }
.toolpanel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 15, 13, 0.96) 12%, rgba(11, 15, 13, 0.55) 48%, rgba(11, 15, 13, 0) 76%); }
.toolpanel__body { display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); max-width: 34rem; color: var(--muted); }
.toolpanel__body .eyebrow { margin: 0; }
.toolpanel strong { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); text-wrap: balance; }
.toolpanel__go { display: inline-flex; align-items: center; gap: 0.5em; padding-top: 0.5rem; color: var(--accent); font-weight: 600; }
.toolpanel__go .ph { transition: transform 0.3s var(--ease); }
.toolpanel:hover .toolpanel__go .ph { transform: translateX(4px); }
/* Val stands on the panel's lower text band, lit from behind by the pour */
.toolpanel__val { position: absolute; right: 3%; bottom: 0; z-index: -1; height: 92%; width: auto; filter: drop-shadow(0 0 28px rgba(255, 122, 26, 0.3)); transition: transform 0.9s var(--ease); }
.toolpanel:hover .toolpanel__val { transform: translateY(-6px); }

/* A tool opened in place: tab bar under the nav, the tool in a frame below */
.tools.is-open .tools__grid { display: none; }
.toolpanel--rollo .toolpanel__bg { object-position: 50% 40%; }
.toolstage { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; background: var(--bg); }
.toolstage__bar { position: sticky; top: var(--nav-h); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0.6rem 0 0; background: rgba(16, 22, 19, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toolstage__short { display: none; }
.toolstage__tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.toolstage__tabs button, .toolstage__close { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; background: none; border: 0; color: var(--muted); font: 600 0.92rem/1 "Archivo", sans-serif; padding: 1.15rem 1.2rem; cursor: pointer; transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.toolstage__tabs button:hover, .toolstage__close:hover { color: var(--text); }
.toolstage__tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.toolstage__close { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); }
.toolstage__frame { display: block; width: 100%; height: 70vh; border: 0; background: var(--bg); transition: height 0.4s var(--ease); }
.toolstage__end { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.toolstage__max { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 1.15rem; cursor: pointer; }
.toolstage__max:hover, .toolstage__max[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
/* Maximised: the stage covers the whole window (real full screen where the browser allows it, iPhone gets this fixed layer) */
.toolstage.is-max { position: fixed; inset: 0; z-index: 100; margin: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; height: 100dvh; }
.toolstage.is-max .toolstage__bar { position: relative; top: 0; }
.toolstage.is-max .toolstage__frame { flex: 1; height: auto !important; transition: none; }
html.tool-max, html.tool-max body { overflow: hidden; }
.gradegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; min-height: 360px; }
.grade { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; animation: gradeIn 0.6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.grade:first-child { background: linear-gradient(160deg, var(--brand-deep) 0%, var(--bg-2) 70%); }
@keyframes gradeIn { from { opacity: 0; transform: translateY(16px); } }
.grade__code { font: 500 0.78rem "JetBrains Mono", monospace; color: var(--accent); letter-spacing: 0.04em; }
.grade h3 { font-size: 1.3rem; font-stretch: 104%; }
.grade p { color: var(--muted); font-size: 0.93rem; }
.grade__hard { margin-top: auto; padding-top: 0.6rem; }
.grade__hard b { font: 500 1.6rem "JetBrains Mono", monospace; letter-spacing: -0.03em; }
.grade__hard b small { font-size: 0.5em; color: var(--muted); margin-left: 0.3em; }
.scale { position: relative; height: 18px; margin-top: 0.7rem; }
.scale::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line); }
.scale span { position: absolute; top: 5px; height: 7px; background: var(--accent); border-radius: 1px; }
.scale i { position: absolute; top: 14px; font: 400 0.62rem "JetBrains Mono", monospace; color: var(--muted); font-style: normal; transform: translateX(-50%); }

/* Industries */
.industries { padding-bottom: clamp(4rem, 8vw, 7rem); }
.ind__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; }
.ind { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.ind:hover img { transform: scale(1.04); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,15,13,0.95) 8%, rgba(11,15,13,0.2) 65%); }
.ind__body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.ind__body p { color: #c3cac5; margin-top: 0.8rem; max-width: 44ch; }
.ind--rubber .textlink { margin-top: 1.4rem; }
.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { font: 500 0.78rem "JetBrains Mono", monospace; padding: 0.45em 0.8em; border: 1px solid rgba(233,236,230,0.25); border-radius: var(--radius); background: rgba(11,15,13,0.5); }

/* Heritage */
.heritage { padding: clamp(5rem, 10vw, 8.5rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.heritage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.heritage__media { position: sticky; top: calc(var(--nav-h) + 2rem); }
.heritage__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #111; }
.hist { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s ease; }
.hist.is-on { opacity: 1; }
.hist img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06); transform: scale(1.06); transition: transform 6s ease-out; }
.hist.is-on img { transform: scale(1); }
.hist-nav { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem; border-radius: 999px; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); }
.hist-nav__b { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.hist-nav__b:hover, .hist-nav__b:focus-visible { background: rgba(255,255,255,0.3); }
.hist-nav__dots { display: flex; gap: 0.35rem; }
.hist-nav__dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.hist-nav__dots i.is-on { background: #fff; transform: scale(1.3); }
.hist figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem 0.9rem; font: 500 0.78rem/1.3 "JetBrains Mono", monospace; letter-spacing: 0.02em; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.archive { margin-top: clamp(3rem, 6vw, 5rem); }
.archive__h { font: 500 0.78rem/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.archive__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.archive__row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * 0.6); filter: grayscale(1) contrast(1.05); opacity: 0.85; transition: opacity 0.3s, filter 0.3s; }
.archive__row img:hover { opacity: 1; filter: grayscale(1) contrast(1.15); }
.timeline { list-style: none; padding: 0; margin: 2.6rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--tl, 0%); background: var(--accent); transition: height 0.2s linear; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.3rem 0 1.3rem 1.6rem; align-items: baseline; }
.yr { font: 500 1.9rem/1 "JetBrains Mono", monospace; letter-spacing: -0.04em; }
.timeline p { color: var(--muted); }

/* Quality bento */
.quality { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.qgrid { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 1rem; }
.q { border-radius: var(--radius); overflow: hidden; margin: 0; }
.q--img img { width: 100%; height: 100%; object-fit: cover; }
.q--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.q--b { grid-column: 4; grid-row: 2; }
.q--iso { background: var(--bg-3); border: 1px solid var(--line); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.q--iso .ph { font-size: 2rem; color: var(--accent); margin-bottom: auto; }
.q--iso h3 { font: 500 1.25rem "JetBrains Mono", monospace; letter-spacing: -0.02em; }
.q--iso p, .q--rd p { color: var(--muted); font-size: 0.92rem; }
.q--rd { grid-column: 3; grid-row: 2; background: linear-gradient(150deg, var(--brand-deep), #0c241b); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.q--rd h3 { font-size: 1.2rem; font-stretch: 104%; }
.q--rd p:first-of-type { color: #cfe0d6; }

/* Contact */
.contact { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.5; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 25%, rgba(11,15,13,0.8) 60%, rgba(11,15,13,0.94)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
address { font-style: normal; margin-top: 2rem; color: #c3cac5; }
address a { text-decoration: none; }
address a:hover { color: var(--accent); }
.salesmail { display: inline-flex; flex-direction: column; gap: 0.3rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); text-decoration: none; }
.salesmail__lbl { color: var(--muted); font-size: 0.88rem; }
.salesmail__addr { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; font-stretch: 110%; letter-spacing: -0.02em; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3em; }
.salesmail__addr .ph { font-size: 0.7em; transition: transform 0.3s var(--ease); }
.salesmail:hover .salesmail__addr .ph { transform: translate(3px, -3px); }
.form { background: rgba(16, 22, 19, 0.88); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-self: start; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: #c3cac5; }
.field input, .field select, .field textarea { font: 400 1rem "Archivo", sans-serif; color: var(--text); background: var(--bg); border: 1px solid rgba(233,236,230,0.2); border-radius: var(--radius); padding: 0.8em 0.9em; transition: border-color 0.2s; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,174,85,0.25); }
.field [aria-invalid="true"] { border-color: #f07a5a; }
.err { color: #f4937a; font-size: 0.82rem; }
.form__status { margin-top: 0.8rem; font-size: 0.9rem; color: var(--accent); min-height: 1.4em; }


/* Sub pages */
.page { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem); min-height: 70dvh; }
.page__title { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 18ch; overflow-wrap: anywhere; }
.page__title ~ .prose { margin-top: clamp(2rem, 4vw, 3rem); }
.page .lead { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); max-width: 60ch; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.doc { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc > .ph { font-size: 1.6rem; color: var(--accent); flex: none; }
.doc__name { flex: 1; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.doc__name small { display: block; font: 400 0.8rem "JetBrains Mono", monospace; color: var(--muted); margin-top: 0.35rem; overflow-wrap: anywhere; }
.doc__get { display: inline-flex; align-items: center; gap: 0.4em; color: var(--accent); font-weight: 600; font-size: 0.92rem; flex: none; }
.doc:hover .doc__name { color: var(--accent); }
.prose { max-width: 72ch; color: #c3cac5; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--text); margin: 3.2rem 0 1.1rem; }
.prose h3 { font-size: 1.12rem; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; color: var(--text); margin: 2.1rem 0 0.6rem; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 0.8rem 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose .btn { color: var(--text); }
.prose .note { font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 1rem; margin-bottom: 2rem; }
.prose .sign { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }
.pagejump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.pagejump .btn { white-space: normal; line-height: 1.2; }
.page__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 3rem; max-width: 860px; margin-top: 3rem; }
.page__facts h3 { font-size: 1.12rem; margin: 0.8rem 0 0.5rem; }
.page__facts .ph { font-size: 1.6rem; color: var(--accent); }
.page__facts p { color: var(--muted); font-size: 0.96rem; }
.page__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page__split aside { color: var(--muted); font-size: 0.95rem; }
.page__split aside strong { color: var(--text); display: block; }
.page__split aside a { color: var(--accent); text-decoration: none; }
.field--check label { display: flex; gap: 0.7em; align-items: flex-start; font-size: 0.92rem; }
.field--check input { width: auto; margin-top: 0.25em; accent-color: var(--accent); }
.field--check a { color: var(--accent); }
.form__fallback { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.form__fallback a { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
.brochures { margin: 2.6rem 0 1.6rem; }
.brochures__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.brochure { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); text-decoration: none; color: var(--text); }
.brochure img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 636; object-fit: cover; transition: transform 0.9s var(--ease); }
.brochure:hover img { transform: scale(1.03); }
.brochure__body { position: relative; display: grid; gap: 0.35rem; padding: 1.1rem 1.2rem 1.3rem; background: var(--bg-2); }
.brochure__body strong { font: 700 1.25rem/1.2 "Archivo", sans-serif; }
.brochure__text { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.brochure__get { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.35rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.brochure:hover strong { color: var(--accent); }
.range { margin-top: 2.6rem; padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.range .eyebrow { margin-bottom: 1rem; }
.range__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.range__grid dt { color: var(--muted); font-size: 0.85rem; }
.range__grid dd { font: 500 clamp(1.1rem, 1.8vw, 1.45rem)/1.2 "JetBrains Mono", monospace; letter-spacing: -0.02em; margin: 0.3rem 0 0; }
.range__note { display: flex; gap: 0.5em; align-items: baseline; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.range__note i { color: var(--accent); flex: none; }
.jobs { padding: clamp(5rem, 10vw, 8.5rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.jobs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.jobs__media img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.jobs__areas { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jobs__areas li { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; }
.jobs__areas i { color: var(--accent); }
@media (max-width: 900px) { .jobs__grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .range__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .figures__grid { grid-template-columns: repeat(3, 1fr); }
  .fig:nth-child(4) { border-left: 0; padding-left: 0; }
  .fig:nth-child(n+4) { border-top: 1px solid var(--line); }
  .qgrid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px auto auto 260px; }
  .q--a { grid-column: 1 / 3; grid-row: 1; }
  .q--rd { grid-column: 1; grid-row: 4; }
  .q--b { grid-column: 2; grid-row: 4; }
}
/* Too narrow for named chips in one rail: numbers on the model, names in a legend */
@media (min-width: 1181px) {
  .rc { right: auto; left: clamp(16px, 4vw, 48px); bottom: 2rem; }
}
@media (min-width: 768px) and (max-width: 1180px) {
  .rl { padding: 0.2rem; }
  .rl__name { display: none; }
  .hero__legend { position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 5.6rem; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem 0.8rem; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
  .hero.is-exploded.is-ready .hero__legend { opacity: 1; pointer-events: auto; }
  .hero__legend button { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.2rem 0; border: 0; background: none; color: #c3cac5; font: 500 0.78rem "Archivo", sans-serif; text-align: left; cursor: pointer; }
}
@media (max-width: 767px) {
  .brochures__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { align-items: flex-end; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 14%, rgba(11,15,13,0.8) 42%, rgba(11,15,13,0) 62%); }
  .hero__content { padding-bottom: 6.5rem; padding-top: calc(var(--nav-h) + 10.5rem); } /* keeps a band above the headline for the 3D roll on short phones */
  .hero__tools { left: 16px; right: 16px; bottom: 1.4rem; justify-content: space-between; }
  .hero__hint { font-size: 0.68rem; padding: 0.6rem 0.85rem; }
  .hero__explode { padding: 0.8rem 1.1rem; font-size: 0.95rem; }
  .hero__bgword { top: calc(var(--nav-h) + 4.6rem); right: 16px; transform: none; font-size: 2.6rem; }
  .hero__key { left: 16px; right: 16px; top: calc(var(--nav-h) + 0.6rem); bottom: auto; gap: 1rem; }
  .hero__key dd { font-size: 0.8rem; }
  .rl { padding: 0.2rem; }
  .rl__name { display: none; }
  .rc { left: 16px; right: 16px; width: auto; bottom: 4.6rem; }
  .hero__explode { flex: none; }
  .hero__legend { position: absolute; left: 16px; right: 16px; top: 54%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.8rem; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
  .hero.is-exploded.is-ready .hero__legend { display: grid; opacity: 1; pointer-events: auto; }
  .hero__legend button { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.2rem 0; border: 0; background: none; color: #c3cac5; font: 500 0.78rem "Archivo", sans-serif; text-align: left; cursor: pointer; }
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .fig, .fig + .fig { padding: 1.4rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .fig:nth-child(-n+2) { border-top: 0; }
  .fig:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .fig:last-child { grid-column: 1 / -1; }
  .process__sticky { position: relative; height: auto; padding: 5rem 0; }
  .process__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-bottom: 1rem; transform: none !important; scrollbar-width: none; }
  .pcard { flex-basis: 82vw; scroll-snap-align: start; }
  .ind__grid, .heritage__grid, .contact__grid { grid-template-columns: 1fr; }
  .ind { min-height: 380px; }
  .heritage__media { position: relative; top: 0; }
  .heritage__media { aspect-ratio: 16 / 10; }
  .archive__row { grid-template-columns: repeat(3, 1fr); }
  .archive__row li:nth-child(n+4) { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .qgrid { grid-template-columns: 1fr; grid-template-rows: none; }
  .q--a, .q--b, .q--rd { grid-column: auto; grid-row: auto; }
  .q--img { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .page__split { grid-template-columns: minmax(0, 1fr); }
  .doc { flex-wrap: wrap; }
  .doc__name { flex-basis: calc(100% - 3rem); }
  .doc__get { margin-left: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grade, .hero__title .ln > span, .hero__sub, .hero__ctas, .hero__hint i, .hero__explode { animation: none; }
}

@media (max-width: 900px) {
  .tools__grid { grid-template-columns: 1fr; }
  .toolstage { margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); border-width: 1px 0 0; border-radius: 0; }
  .toolstage__close span { display: none; }
  .toolstage__long { display: none; }
  .toolstage__short { display: inline; }
  .toolstage__tabs button { padding-inline: 1rem; }
  .toolpanel { min-height: 260px; }
  .toolpanel__val { height: 80%; }
}
.prose code { font: 0.88em "JetBrains Mono", monospace; color: var(--accent); }

/* download cards for forms in legal pages */
.prose .dlcards { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.75rem; }
.prose .dlcards li + li { margin-top: 0; }
.dlcard { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.025); }
.dlcard > .ph { font-size: 1.8rem; color: var(--accent); flex: none; }
.dlcard__name { flex: 1; color: var(--text); font-weight: 600; line-height: 1.35; }
.dlcard__name small { display: block; margin-top: 0.3rem; font: 400 0.75rem "JetBrains Mono", monospace; color: var(--muted); letter-spacing: 0.04em; }
.dlcard__get { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: none; }
.prose .dlcard__get a { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5rem 0.9rem; border: 1px solid rgba(15, 145, 62, 0.55); border-radius: 999px; font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.25s, color 0.25s; }
.prose .dlcard__get a:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .dlcard { flex-wrap: wrap; }
  .dlcard__name { flex-basis: calc(100% - 3rem); }
  .dlcard__get { width: 100%; padding-left: 2.9rem; }
}

.tbd { background: #fff3c4; color: #6b4e00; padding: 0 .3em; border-radius: 3px; font-weight: 600; }

.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; padding: 1rem 1.2rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5); color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.cookiebar[hidden], .cookiebar [hidden] { display: none; }
.cookiebar__act { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: flex-end; margin-top: 0.8rem; }
.cookiebar__act a { color: var(--text); text-decoration: underline; margin-right: auto; }

/* Microsoft Forms application form, loaded on click */
.msform { grid-template-columns: 1fr; }
.msform__gate p { color: var(--muted); margin: 0 0 1rem; }
.msform__gate a { color: var(--accent); }
.msform__frame { width: 100%; height: min(1400px, 160vh); border: 0; border-radius: calc(var(--radius) / 2); background: #fff; }
