/* RS Industry — site styles
   Palette is taken from the company logo (navy arc, signal-yellow gear).
   One family (Archivo, variable width axis): expanded for display, normal for text. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14254f;      /* logo navy: text, rules, footer */
  --steel: #56617a;    /* secondary text, 6:1 on white */
  --plate: #ffffff;    /* page ground */
  --mill: #eef0f3;     /* quiet bands */
  --line: #d8dce3;     /* hairlines */
  --signal: #e3ae12;   /* logo gear yellow: marks only, never body text on white */
  --heat: #ff6a1a;     /* the lance tip, used in the cut line only */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; font-stretch: 115%; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.1; }
h3 { font-size: 1.3125rem; line-height: 1.2; font-stretch: 108%; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 38rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--plate); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-weight: 800; font-stretch: 125%; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1; }
.brand:hover { text-decoration: none; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.nav a {
  display: inline-block; padding-block: 0.4rem; font-size: 1rem; font-weight: 500;
  text-decoration: none; background: linear-gradient(var(--signal), var(--signal)) left bottom / 0 3px no-repeat;
  transition: background-size 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 3px; }

/* ---------- The cut line ----------
   A cold ink kerf with a white-hot lance tip that travels once across it on the home page. */

.kerf { position: relative; height: 3px; background: var(--ink); margin-block: clamp(2rem, 4vw, 3rem); }
.kerf::before, .kerf::after { content: ""; position: absolute; pointer-events: none; }
.kerf::before { /* glowing freshly-cut section behind the tip */
  inset: 0; right: 0;
  background: linear-gradient(90deg, transparent 55%, #b8420f 80%, var(--heat) 92%, #ffd27a 98%, #fff8e1);
  opacity: 0;
}
.kerf::after { /* the tip */
  top: 50%; right: -7px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: #fff8e1;
  box-shadow: 0 0 6px 2px #ffd27a, 0 0 18px 6px rgba(255, 106, 26, 0.75), 0 0 44px 16px rgba(255, 106, 26, 0.3);
  opacity: 0;
}
.kerf--live { animation: kerf-cut 1.9s cubic-bezier(0.55, 0.05, 0.35, 1) 0.25s both; }
.kerf--live::before { animation: kerf-cool 2.4s ease-out 0.25s both; }
.kerf--live::after { animation: kerf-tip 2.6s ease-out 0.25s both; }

@keyframes kerf-cut { from { width: 0; } to { width: 100%; } }
@keyframes kerf-cool { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kerf-tip { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* A small static tip marks page headers on inner pages */
.kerf--still::after { opacity: 1; right: 0; width: 3rem; height: 3px; margin-top: -1.5px; border-radius: 0; box-shadow: none; background: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  .kerf--live, .kerf--live::before, .kerf--live::after { animation: none; }
  .nav a { transition: none; }
}

/* ---------- Hero / page head ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--section); }
.hero h1 { max-width: 14ch; }
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 16ch; }

.lede-grid { display: grid; gap: 1.5rem 3rem; }
.motto { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; font-stretch: 112%; line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: 16ch; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.lead p { max-width: 34rem; }

.button {
  display: inline-block; margin-top: 2rem; padding: 0.9rem 1.5rem;
  background: var(--ink); color: var(--plate); font-weight: 600; font-size: 1rem; text-decoration: none;
  border-radius: 2px; transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--signal); color: var(--ink); }

/* ---------- Sections: heading rail on the left, content on the right ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--mill { background: var(--mill); border-top: 0; }
.rail { display: grid; gap: 2rem 3rem; }
.rail > h2 { max-width: 14ch; }
.rail__intro { color: var(--steel); }

@media (min-width: 56rem) {
  .lede-grid, .rail { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .rail > h2 { position: sticky; top: 2rem; align-self: start; }
}

/* Activities: three plain statements with a yellow tick */
.activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 3rem; }
.activities li { padding-top: 1.25rem; border-top: 3px solid var(--ink); position: relative; }
.activities li::before { content: ""; position: absolute; left: 0; top: -3px; width: 2.5rem; height: 3px; background: var(--signal); }
.activities h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.activities p { margin-top: 0.75rem; color: var(--steel); font-size: 1rem; }
@media (min-width: 40rem) { .activities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Definition grid: team roles, crucible properties */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-stretch: 108%; font-size: 1.1875rem; line-height: 1.3; }
.facts dd { margin: 0.35rem 0 0; color: var(--steel); max-width: 34rem; }
@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

.langs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.langs li { padding: 0.35rem 0.85rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 1rem; font-weight: 500; }

.pair { display: grid; gap: 2.5rem 3rem; }
.pair h3 { margin-bottom: 0.75rem; }
@media (min-width: 40rem) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product links */
.products { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.product__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); position: relative; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media--lance { display: grid; align-items: center; padding-inline: 12%; }
.product__media--lance .kerf { margin: 0; background: #3a4a72; }
.product__media--lance .kerf::before { opacity: 1; }
.product__media--lance .kerf::after { opacity: 1; }
.product__body { padding-top: 1.25rem; }
.product__body h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); display: inline; background: linear-gradient(var(--signal), var(--signal)) left 100% / 0 3px no-repeat; transition: background-size 0.2s ease; }
.product__body p { margin-top: 0.6rem; color: var(--steel); font-size: 1rem; }
.product:hover { text-decoration: none; }
.product:hover h3 { background-size: 100% 3px; }
@media (prefers-reduced-motion: reduce) { .product__body h3, .button { transition: none; } }

/* Numbered process (oxygen lance operation is a true sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1.25rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-weight: 800; font-stretch: 125%; font-size: 2.25rem; line-height: 1; color: var(--ink);
  border-top: 3px solid var(--signal); padding-top: 0.5rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--steel); }

/* Figures */
.figure-wide { margin: 0; }
.figure-wide img { width: 100%; aspect-ratio: 1906 / 639; object-fit: cover; }
.gallery { display: grid; gap: 1.5rem; margin-top: 3rem; }
.gallery figure { margin: 0; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .span-2 { grid-column: 1 / -1; }
}

/* Contact call-out */
.callout { background: var(--ink); color: var(--plate); padding-block: var(--section); }
.callout h2 { max-width: 20ch; }
.callout p { color: #c9d0de; }
.callout a { color: var(--plate); }
.callout :focus-visible { outline-color: var(--signal); }
.big-link { display: inline-block; margin-top: 1.5rem; font-size: clamp(1.4rem, 4vw, 2.5rem); font-weight: 700; font-stretch: 112%; line-height: 1.15; letter-spacing: -0.01em; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.big-link:hover { text-decoration-thickness: 5px; }
.callout .links { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; }

/* Contacts page */
.contact-main a { display: block; width: fit-content; }
.contact-main .big-link { margin-top: 0; font-size: clamp(1.35rem, 2.2vw, 1.875rem); white-space: nowrap; overflow-wrap: normal; }
.contact-main .big-link + .big-link { margin-top: 1rem; }
.contact-main p { margin-top: 1.5rem; color: var(--steel); }
.details { margin: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; gap: 0.15rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.details dt { color: var(--steel); font-size: 1rem; }
.details dd { margin: 0; font-weight: 500; }
@media (min-width: 40rem) { .details > div { grid-template-columns: 11rem minmax(0, 1fr); } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c9d0de; font-size: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer a { color: var(--plate); }
.site-footer :focus-visible { outline-color: var(--signal); }
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { color: var(--plate); font-weight: 800; font-stretch: 125%; font-size: 1.375rem; line-height: 1.1; margin: 0 0 0.5rem; }
.site-footer h2 { font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--plate); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer address { font-style: normal; }
.legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; font-size: 0.875rem; }
.legal p { margin: 0; }
