/* suqo.dev
   Palette taken from machine-tool paint: RAL 7035 housing grey,
   RAL 1003 signal yellow, RAL 5005 signal blue, HMI screen slate. */
:root {
  --housing: #E3E5E1;
  --housing-2: #D2D6D0;
  --housing-edge: #B9BEB7;
  --ink: #18212B;
  --ink-2: #48535F;
  --signal: #F2B100;
  --signal-ink: #2A2000;
  --blue: #1E4F8E;
  --screen: #1F2B36;
  --screen-2: #2A3946;
  --screen-ink: #E8EEF2;
  --screen-dim: #93A3B1;
  --run: #3CC46D;
  --stop: #F0503F;
  --setup: #F2B100;
  --focus: #1E4F8E;

  --f: "Archivo", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --housing: #1B2128;
    --housing-2: #232B33;
    --housing-edge: #36414C;
    --ink: #E6EAEC;
    --ink-2: #A3AEB8;
    --blue: #7DAAE6;
    --screen: #10171E;
    --screen-2: #1C2630;
    --focus: #F2B100;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --housing: #1B2128;
  --housing-2: #232B33;
  --housing-edge: #36414C;
  --ink: #E6EAEC;
  --ink-2: #A3AEB8;
  --blue: #7DAAE6;
  --screen: #10171E;
  --screen-2: #1C2630;
  --focus: #F2B100;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--housing);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
h1, h2 { font-variation-settings: "wdth" 125; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 112; line-height: 1.2; }
p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--signal); color: var(--signal-ink); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Nameplate (the logo) ---------- */
.plate {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .38em .7em .42em;
  background: linear-gradient(180deg, #C9CEC8, #AEB4AD);
  color: #18212B;
  border: 1px solid #8F968E;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.12);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  font-variation-settings: "wdth" 125;
  line-height: 1;
}
.plate .dot { color: var(--blue); margin: 0 -.45em; }
:root[data-theme="dark"] .plate .dot { color: #1E4F8E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate .dot { color: #1E4F8E; } }
.rivet {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F4F5F2, #7E857D 70%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}

/* ---------- Header ---------- */
.top {
  max-width: var(--max); margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { text-decoration: none; }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.top nav a:hover { color: var(--blue); }
.top nav .nav-cta {
  background: var(--ink); color: var(--housing); padding: .5em .95em; border-radius: 6px;
}
.top nav .nav-cta:hover { color: var(--housing); background: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 13ch;
}
.lede { margin-top: 1.4rem; font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.actions { margin-top: 2rem; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .85em 1.3em; border-radius: 7px; font-size: 1rem;
  font-variation-settings: "wdth" 108;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: #FFC21A; }
.btn-ghost { color: var(--ink); border: 2px solid var(--housing-edge); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- HMI panel (the memorable thing) ---------- */
.hmi { margin: 0; }
.hmi-housing {
  background: var(--housing-2);
  border: 1px solid var(--housing-edge);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 24px 48px -28px rgba(24,33,43,.45);
  position: relative;
}
.hmi-housing::before {
  /* hazard strip on the housing top edge, the only place it appears */
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 6px;
  border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 9px, #18212B 9px 18px);
  opacity: .9;
}
.hmi-screen {
  background: var(--screen);
  color: var(--screen-ink);
  border-radius: 9px;
  padding: 18px;
  display: grid; gap: 16px;
  font-variation-settings: "wdth" 88;
  font-feature-settings: "tnum" 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.hmi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hmi-head strong { font-size: 1.15rem; font-weight: 800; margin-right: .45em; }
.hmi-head span { color: var(--screen-dim); font-size: .92rem; }
.hmi-clock { color: var(--screen-dim); font-size: .95rem; font-weight: 600; }

.hmi-output { background: var(--screen-2); border-radius: 7px; padding: 14px 16px; }
.hmi-count { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; }
.hmi-num { font-size: clamp(2.4rem, 5vw, 3.3rem); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 75; }
.hmi-unit { color: var(--screen-dim); }
.bar { margin-top: 12px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--run); border-radius: 4px; transition: width .6s ease; }
.hmi-kpi { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hmi-kpi div { border-left: 2px solid rgba(255,255,255,.12); padding-left: 10px; }
.hmi-kpi dt { color: var(--screen-dim); font-size: .85rem; }
.hmi-kpi dd { margin: 0; font-size: 1.2rem; font-weight: 700; }

.machines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.machines li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center;
  background: var(--screen-2); border-radius: 7px; padding: 10px 12px;
}
.machines b { font-weight: 700; }
.machines li > span:last-child { grid-column: 2; color: var(--screen-dim); font-size: .86rem; line-height: 1.3; }
.lamp { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; align-self: start; margin-top: 6px; }
[data-state="run"] .lamp { background: var(--run); box-shadow: 0 0 10px var(--run); }
[data-state="setup"] .lamp { background: var(--setup); box-shadow: 0 0 10px var(--setup); }
[data-state="stop"] .lamp { background: var(--stop); box-shadow: 0 0 10px var(--stop); animation: blink 1.2s steps(2, jump-none) infinite; }
[data-state="stop"] { box-shadow: inset 0 0 0 1px rgba(240,80,63,.5); }
@keyframes blink { 50% { opacity: .25; } }

.log { list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--screen-dim); display: grid; gap: 4px; min-height: 2.8em; }
.log time { color: var(--screen-ink); font-weight: 600; margin-right: .5em; }
.log li.new { animation: logIn .5s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(-4px); } }

.hmi figcaption { margin-top: 12px; font-size: .88rem; color: var(--ink-2); text-align: right; }

/* ---------- Factory section ---------- */
.factory {
  background: var(--ink); color: var(--housing);
}
:root[data-theme="dark"] .factory { background: #0F1419; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .factory { background: #0F1419; color: var(--ink); } }

.factory > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.factory { padding: clamp(64px, 9vw, 120px) 0; }
.factory-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.factory-intro p { font-size: 1.15rem; opacity: .82; max-width: 36em; }
.modules {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px; row-gap: 40px;
}
.modules article { border-top: 3px solid var(--signal); padding-top: 18px; }
.modules p { margin-top: .6rem; opacity: .78; font-size: 1rem; }

/* ---------- Services ---------- */
.services, .process {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}
.section-lede { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.service-rows { margin-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid var(--housing-edge);
}
.service h3 { font-size: 1.45rem; font-variation-settings: "wdth" 120; font-weight: 800; }
.service p { color: var(--ink-2); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--signal); border-radius: 2px; }

/* ---------- Process (a real sequence, so numbered) ---------- */
.steps {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 0 20px 0 0;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--housing); border: 2px solid var(--ink);
  font-weight: 800; font-size: 1.1rem; position: relative; z-index: 1;
  margin-bottom: 18px;
}
.steps li::after {
  /* conveyor line between steps */
  content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 16px);
}
.steps li:last-child::after { display: none; }
.steps p { margin-top: .5rem; color: var(--ink-2); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter); }
.contact-inner {
  background: var(--signal); color: var(--signal-ink);
  border-radius: 18px; padding: clamp(28px, 5vw, 64px);
}
.contact h2 { max-width: none; }
.contact p { margin-top: 1rem; font-size: 1.15rem; max-width: 38em; }
.mail {
  display: inline-block; margin-top: 1.6rem;
  font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1;
  font-variation-settings: "wdth" 115;
  color: var(--signal-ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-thickness: 6px; }
.contact .mail:focus-visible { outline-color: var(--signal-ink); }
.contact-note { font-size: 1rem !important; opacity: .8; }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--housing-edge);
  display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap;
  color: var(--ink-2); font-size: .95rem;
}
.plate-sm { font-size: .9rem; }
.foot .copy { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .factory-intro { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 1fr 1fr; }
  .service h3 { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li::after { top: 44px; bottom: -34px; left: 21px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 10px, transparent 10px 16px); }
}
@media (max-width: 620px) {
  .top nav ul { gap: 6px 16px; }
  .top nav li:not(:last-child) { display: none; }
  .modules { grid-template-columns: 1fr; row-gap: 32px; }
  .service { grid-template-columns: 1fr; }
  .machines { grid-template-columns: 1fr; }
  .hmi-screen { padding: 14px; }
  .hmi-head { flex-direction: column; gap: 2px; }
  .foot .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
