/* ================= Tokens ================= */
:root {
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-sunken: #F5F5F7;
  --ink: #1D1D1F;
  --ink-muted: #6E6E73;
  --line: #D2D2D7;
  --accent: #C4501C;
  --accent-ink: #FFFFFF;
  --danger: #C0392B;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29,29,31,0.07);
  --shadow-md: 0 12px 32px rgba(29,29,31,0.09);
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --surface: #131315;
    --surface-sunken: #18181b;
    --ink: #F5F5F7;
    --ink-muted: #98989D;
    --line: #2C2C2E;
    --accent: #E06A3A;
    --accent-ink: #0B0B0C;
    --danger: #FF6B5B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-md: 0 16px 40px rgba(0,0,0,0.5);
  }
}

/* ================= Reset & base ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  text-wrap: balance;
}
/* Keeps a paragraph from ending on a single stranded word. */
p { margin: 0; text-wrap: pretty; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* One tracking value for every uppercase micro-label on the site (kickers,
   eyebrows, spec labels, stage indices) -- they read as one system instead
   of three slightly different ones. */
.section-kicker,
.mat-kicker,
.tooling-kicker,
.qual-kicker,
.qual-cert-eyebrow,
.profile-kicker,
.profile-message-label,
.contact-kicker,
.stage-index,
.cap-index,
.spec-item .label,
.profile-facts span,
.contact-meta li span {
  letter-spacing: 0.1em;
}

/* Figures line up in columns instead of drifting -- part numbers, GSTIN,
   dates, phone numbers and the certificate number all read as data. */
.spec-item,
.stage-index,
.cap-index,
.profile-facts strong,
.qual-cert-title,
.qual-cert-meta dt,
.qual-cert-meta dd,
.contact-meta li strong,
.contact-address,
.contact-action-sub,
.profile-message-year,
.footer-meta,
.footer-credit-links {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Scroll reveal ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================= Nav ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  min-height: 68px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: var(--shadow-sm);
}
.site-nav .brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-nav .brand span { color: var(--accent); }
.site-nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.site-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .28s var(--ease);
}
.site-nav .nav-links a:hover { color: var(--ink); }
.site-nav .nav-links a:hover::after { right: 0; }
.site-nav .nav-links a.is-active { color: var(--ink); }
.site-nav .nav-links a.is-active::after { right: 0; background: var(--accent); }
.site-nav .nav-links a.nav-login {
  padding: 7px 16px;
  color: var(--ink);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 980px;
}
.site-nav .nav-links a.nav-login::after { display: none; }
.site-nav .nav-links a.nav-login:hover { border-color: var(--accent); color: var(--accent); }
.site-nav .nav-links a.nav-login.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn-secondary {
  gap: 6px;
  padding: 13px 2px;
  background: none;
  border: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  transition: gap .25s var(--ease), color .2s ease;
}
.btn-secondary::after {
  content: "\203A";
  display: inline-block;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.btn-secondary:hover { gap: 10px; }
.btn-secondary:hover::after { transform: translateX(2px); }

/* ================= Hero ================= */
.hero {
  min-height: calc(100dvh - 69px);
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.hero-headline {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 15ch;
  animation: fadeUp .9s var(--ease) both;
}
.hero-sub {
  margin-top: 22px;
  max-width: 44ch;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  animation: fadeUp .9s var(--ease) .12s both;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  animation: fadeUp .9s var(--ease) .22s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Technical drawing panel (real engineering content, not decoration) ---- */
.spec-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 22px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 1s var(--ease) .3s both;
}
.spec-panel svg { width: 100%; height: auto; display: block; }
.spec-outline { fill: none; stroke: var(--ink); stroke-width: 2; }
.spec-hole { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.spec-dim { stroke: var(--accent); stroke-width: 1; fill: none; }
.spec-dim-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; fill: var(--accent); }

.spec-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.spec-item { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.spec-item .label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.spec-item .value { color: var(--ink); }

/* ================= Section shell ================= */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

/* Shared head pattern -- kicker + title + sub, centered -- used by every
   section below the hero (Operations, Capabilities, and matched by the
   section-specific mat-/qual-/profile-/contact- equivalents) so the site
   reads with one consistent heading rhythm throughout. */
.section-head { max-width: 620px; margin: 0 auto; text-align: center; }
.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.section-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ================= Process belt ================= */
.process-intro { padding: 120px 0 48px; border-top: 1px solid var(--line); }

/* One continuous pinned scene: the belt pans through a single long S-curve
   as the whole section scrolls, instead of resetting stage by stage. */
.process-track {
  position: relative;
  height: 600vh;
}
.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Full-bleed embedded scene: a real rendered SVG of the whole press line
   (blanking through coating/polishing), not a video/iframe. Sits behind
   the captions and covers the entire scroll track. */
.belt-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.belt-scene.is-active { opacity: 1; }
.blanking-svg { width: 100%; height: 100%; display: block; }

.stage-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 7%;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stage-copy.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.stage-copy[data-bulge="left"] { justify-content: flex-end; }
.stage-copy[data-bulge="right"] { justify-content: flex-start; }

.stage-copy-body { max-width: 340px; }
.stage-copy[data-bulge="right"] .stage-copy-body { text-align: right; }

/* Blanking / Punching sit over the full-bleed scene, so their caption
   becomes a glass card anchored to a corner instead of a side column. */
.stage-copy[data-cinematic] {
  align-items: flex-end;
  padding: 0 0 64px 64px;
}
.stage-copy[data-cinematic] .stage-copy-body {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
}
.stage-copy[data-cinematic][data-bulge="right"] {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 64px 64px 0;
}
.stage-copy[data-cinematic][data-bulge="right"] .stage-copy-body { text-align: left; }

.stage-index {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stage-name {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage-desc {
  margin-top: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 36ch;
}

/* Static / reduced-motion / mobile fallback: no pin, no pan -- the preview
   loop up top plus the four stations as a 2x2 tile grid underneath it, so
   the whole line reads in one glance instead of a long station-by-station
   scroll. */
.process-track.is-static { height: auto; }
.process-track.is-static .process-sticky {
  position: static;
  height: auto;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 32px 24px;
}
/* The pinned, scroll-scrubbed scene doesn't translate to a normal-scrolling
   phone, so the fallback shows it instead as a small looping preview panel
   sitting above the station tiles -- same rendered animation, just playing
   on its own timer instead of being driven by scroll position. */
.process-track.is-static .belt-scene {
  grid-column: 1 / -1;
  position: static;
  inset: auto;
  display: block;
  opacity: 1;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #050505;
}
.process-track.is-static .stage-copy {
  position: static;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
  display: block;
  padding: 18px 16px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process-track.is-static .stage-copy-body {
  max-width: 100%;
  text-align: left !important;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.process-track.is-static .stage-name { margin-top: 6px; font-size: 1.05rem; }
.process-track.is-static .stage-desc {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= Capabilities slider =================
   Full-bleed peek carousel (Apple "Get the highlights" pattern): the active
   card sits centered with its neighbours cropped at the viewport edges, and
   a dot/play scrubber below drives navigation instead of tabs or arrows. */
.capabilities { padding: 100px 0 120px; border-top: 1px solid var(--line); }
.capabilities-head { padding-bottom: 40px; }

.cap-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cap-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 9vw;
}
.cap-track::-webkit-scrollbar { display: none; }

.cap-panel {
  flex: 0 0 min(920px, 82vw);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cap-visual {
  position: relative;
  aspect-ratio: 20 / 7;
  overflow: hidden;
}
.cap-visual-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .4s ease;
}
.cap-visual.has-scene .cap-visual-scene { opacity: 1; }
.cap-visual.has-scene .cap-visual-fallback { opacity: 0; visibility: hidden; }

.cap-visual-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-sunken);
  transition: opacity .3s ease;
}
.cap-visual-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.cap-visual-note {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cap-caption { padding: 32px 40px 40px; }
.cap-index {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cap-name {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cap-desc {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.cap-controls {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cap-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 980px;
}
.cap-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--ink-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: width .3s var(--ease), background .3s ease, opacity .3s ease;
}
.cap-dot:hover { opacity: 0.8; }
.cap-dot.is-active { width: 22px; background: var(--accent); opacity: 1; }

.cap-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s var(--ease);
}
.cap-play:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cap-play-icon { width: 15px; height: 15px; fill: var(--ink); }
.cap-play-icon--pause { display: none; }
.cap-play.is-playing .cap-play-icon--play { display: none; }
.cap-play.is-playing .cap-play-icon--pause { display: block; }

@media (max-width: 760px) {
  .cap-track { padding: 0 6vw; gap: 16px; }
  .cap-panel { flex-basis: 88vw; }
  .cap-caption { padding: 24px 24px 28px; }
  .cap-visual-icon { width: 32px; height: 32px; }
}

/* ================= Materials bento panel ================= */
.materials { padding: 100px 0 120px; border-top: 1px solid var(--line); }

.mat-panel {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.mat-panel-head { max-width: 620px; margin: 0 auto; text-align: center; }
.mat-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.mat-panel-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mat-panel-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.mat-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.mat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.mat-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The material itself is the headline of each tile — bold and unmistakable,
   with the property spec as a smaller accent-coloured line underneath. */
.mat-tag {
  margin-top: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.mat-highlight {
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1.3;
}
.mat-sub {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.mat-sub + .mat-sub { margin-top: 6px; }

@media (max-width: 980px) {
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mat-panel { padding: 32px 24px; }
  .mat-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .mat-tile { padding: 26px 22px; }
}

/* ================= Tooling / expertise ================= */
.tooling {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 900px 480px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--surface-sunken);
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--line);
}
.tooling-inner { max-width: 920px; margin: 0 auto; }

.tooling-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tooling-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.tooling-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tooling-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
  text-align: center;
}
.tooling-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tooling-icon-badge {
  width: 52px;
  height: 52px;
  border: 1.4px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s ease, border-color .3s ease;
}
.tooling-tile:hover .tooling-icon-badge {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}
.tooling-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tooling-tile-title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.tooling-rule {
  width: 34px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  margin: 18px 0;
}
.tooling-tile-desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 30ch;
}

@media (max-width: 900px) {
  .tooling-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (max-width: 560px) {
  .tooling { padding: 88px 0; }
  .tooling-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 52px; }
}

/* ================= Quality / ISO certification ================= */
.quality { padding: 100px 0 120px; border-top: 1px solid var(--line); }

.qual-head { max-width: 620px; margin: 0 auto; text-align: center; }
.qual-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.qual-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.qual-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.qual-layout {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.qual-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.qual-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.qual-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qual-tile-title {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.qual-tile-desc {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.qual-cert {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.qual-cert-mark {
  width: 44px;
  height: 44px;
}
.qual-cert-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qual-cert-eyebrow {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qual-cert-title {
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.qual-cert-scope {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.qual-cert-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qual-cert-meta div { display: flex; justify-content: space-between; gap: 12px; }
.qual-cert-meta dt { color: var(--ink-muted); font-size: 0.82rem; }
.qual-cert-meta dd { color: var(--ink); font-size: 0.82rem; font-weight: 600; text-align: right; }

@media (max-width: 980px) {
  .qual-layout { grid-template-columns: 1fr; }
  .qual-cert { order: -1; }
}
@media (max-width: 760px) {
  .qual-grid { grid-template-columns: 1fr; gap: 14px; }
  .qual-tile { padding: 26px 22px; }
  .qual-cert { padding: 30px 26px; }
}

/* ================= Profile / About ================= */
.profile { padding: 100px 0 120px; border-top: 1px solid var(--line); }

.profile-head { max-width: 620px; margin: 0 auto; text-align: center; }
.profile-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.profile-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.profile-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.profile-facts {
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 620px;
}
.profile-facts li {
  flex: 1;
  padding: 0 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.profile-facts li:first-child { border-left: none; }
.profile-facts strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-facts span {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-body {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.profile-lead {
  max-width: 52ch;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.65;
}
.profile-text {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.profile-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-tag {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.profile-message {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.profile-message-year {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.profile-message-label {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.profile-message-quote {
  margin-top: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: balance;
  /* Pulls the opening quote mark into the margin so the first line of text
     still reads as flush-left (Safari; ignored elsewhere). */
  hanging-punctuation: first last;
}
.profile-message-sub {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .profile-body { grid-template-columns: 1fr; gap: 48px; }
  .profile-message { order: -1; }
}
@media (max-width: 620px) {
  .profile-facts { max-width: 360px; flex-wrap: wrap; row-gap: 24px; }
  .profile-facts li { flex: 0 0 50%; border-left: none; padding: 0 12px; }
}
@media (max-width: 560px) {
  .profile { padding: 80px 0 96px; }
  .profile-body { margin-top: 52px; }
  .profile-message { padding: 32px 26px; }
}

/* ================= Contact ================= */
.contact { padding: 100px 0 120px; border-top: 1px solid var(--line); }

.contact-head { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.contact-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-card {
  margin-top: 56px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-meta li {
  padding: 0 32px;
  border-left: 1px solid var(--line);
}
.contact-meta li:first-child { padding-left: 0; border-left: none; }
.contact-meta li span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.contact-meta li strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-meta li strong a { color: inherit; transition: color .2s ease; }
.contact-meta li strong a:hover { color: var(--accent); }

.contact-address {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-address svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.contact-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.contact-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .3s ease;
}
.contact-action:hover .contact-action-icon { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.contact-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-action-title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.contact-action-sub { margin-top: 6px; font-size: 0.86rem; color: var(--ink-muted); }

@media (max-width: 760px) {
  .contact-actions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact { padding: 80px 0 96px; }
  .contact-card { margin-top: 44px; padding: 28px 26px; }
  /* The two-column pairing above relies on every field being one line
     tall so rows stay aligned -- "New Kamal Metal Works" wraps to two at
     this width and throws the border/padding pattern out of step. A
     single stacked column has no such assumption to break. */
  .contact-meta { flex-direction: column; gap: 16px; }
  .contact-meta li {
    flex: 1 1 auto;
    padding: 0 0 16px;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .contact-meta li:last-child { padding-bottom: 0; border-bottom: none; }
  .contact-action { padding: 28px 20px; }
}

/* ================= Footer ================= */
.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  font-size: 0.86rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-legal,
.footer-meta,
.footer-credit-name,
.footer-credit-links {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0;
}

.footer-meta { order: 2; }
.footer-credit { order: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.footer-credit-name { color: var(--ink); font-weight: 500; }
.footer-credit-highlight { color: var(--accent); }
.footer-credit-links { display: flex; align-items: center; gap: 8px; }
.footer-credit-links a { color: var(--ink-muted); text-decoration: none; transition: color .2s ease; }
.footer-credit-links a:hover { color: var(--accent); }
.footer-credit-dot { color: var(--line); }

@media (max-width: 620px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 10px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta, .footer-credit { order: initial; }
  .footer-credit { align-items: flex-start; }
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline, .hero-sub { max-width: 100%; }
}

@media (max-width: 760px) {
  .site-nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 40px 0 48px; }

  .process-track { height: auto !important; }
  .process-sticky {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 32px 24px;
  }
  .belt-scene {
    grid-column: 1 / -1;
    position: static !important;
    inset: auto !important;
    display: block !important;
    opacity: 1 !important;
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    background: #050505;
  }
  .stage-copy {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    display: block !important;
    padding: 18px 16px;
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .stage-copy-body {
    max-width: 100%;
    text-align: left !important;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .stage-name { margin-top: 6px; font-size: 1.05rem; }
  .stage-desc {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-headline, .hero-sub, .hero-cta, .spec-panel {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= Login page ================= */
.login-page { display: flex; flex-direction: column; min-height: 100dvh; }
.login-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .2s ease;
}
.login-back:hover { color: var(--ink); }
button.login-back {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.login-loading-card { text-align: center; }
.login-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 6px 0 22px;
}
.login-spinner span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  animation: login-stamp 1.1s ease-in-out infinite;
}
.login-spinner span:nth-child(2) { animation-delay: .15s; }
.login-spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes login-stamp {
  0%, 80%, 100% { opacity: .28; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-spinner span { animation: none; opacity: .7; }
}

.welcome-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  padding: 20px 12px;
}
.welcome-heading {
  margin-top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.welcome-sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--ink-muted);
}
.welcome-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.welcome-action { padding: 14px 34px; }
.welcome-action-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .2s ease;
}
.welcome-action-link:hover { color: var(--accent); }

.welcome-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: welcome-fade-in .7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes welcome-fade-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-fade { animation: none; opacity: 1; transform: none; }
}

.login-empty {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--surface-sunken);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.login-empty .login-sub { margin: 0; font-size: 0.88rem; }

.login-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px 36px 36px;
}
.login-enter { animation: login-card-in .6s var(--ease) both; }
@keyframes login-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-enter { animation: none; }
}

.login-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-heading {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.login-sub {
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.login-tabs {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
}
.login-tab {
  flex: 1;
  padding: 9px 0;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.login-tab:hover { color: var(--ink); }
.login-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.login-form { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.login-form[hidden] { display: none; }
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.login-field.has-error input {
  border-color: var(--danger);
}
.login-field.has-error input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}
.login-field-error {
  margin: 0;
  font-size: 0.78rem;
  color: var(--danger);
}
.login-field-error[hidden] { display: none; }

.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 44px; }
.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-muted);
  transition: color .2s ease;
}
.login-password-toggle:hover { color: var(--ink); }
.login-eye-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-password-toggle.is-visible { color: var(--accent); }

.login-forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.login-forgot-link {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.login-forgot-link:hover { color: var(--accent); }

.login-submit { width: 100%; justify-content: center; margin-top: 4px; }

.login-status {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity .3s ease, max-height .3s ease, margin-top .3s ease;
}
.login-status.is-visible {
  opacity: 1;
  max-height: 80px;
  margin-top: 2px;
  padding: 12px 14px;
  background: var(--surface-sunken);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}

.login-signed-in { margin-top: 30px; text-align: center; }
.login-signed-in .login-heading { margin-top: 12px; }
.login-signed-in .login-sub { margin-top: 10px; }
.login-signed-in .login-submit { margin-top: 24px; }

.login-footnote {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
}
.login-footnote a { color: var(--accent); font-weight: 500; }
.login-footnote a:hover { text-decoration: underline; }

.login-footer {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

@media (max-width: 480px) {
  .login-shell { padding: 40px 20px; }
  .login-card { padding: 32px 22px 28px; }
}
