/* Vividworks LLC - "Machine Front Panel" theme.
   Adapted from machinefrontpanelcode.txt (MIT): dark anodised-aluminium plates, copper screws,
   amber accents, Archivo + JetBrains Mono. Static only: no scripts, no animation beyond hover fades.
   Theme tokens are the :root custom properties. */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

:root {
  --void: #08090b;
  --alu-hi: #2a2d33;
  --alu: #1e2025;
  --alu-lo: #16171b;
  --seam: #07080a;

  --text: #d4d8de;
  --body: #aeb4bc;
  --mute: #8b919b;
  --dim: #6a707a;
  --engrave: #7a808a;

  --amber: #ff9426;
  --ember: #ff4f14;

  /* the laminated copper edge under every plate */
  --stack:
    0 3px 0 #0b0d10, 0 5px 0 #180702, 0 6px 0 #3d190a, 0 7px 0 #8a4218, 0 8px 0 #d1783a,
    0 9px 0 #ffdcb8, 0 10px 0 #c1692c, 0 11px 0 #6e3416, 0 12px 0 #180702, 0 14px 0 #0b0d10,
    0 16px 0 #06080a;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(80% 55% at 50% -10%, #17181c, transparent 62%), var(--void);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffb765; text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1100px, 100% - 36px); margin: 0 auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: #111; padding: .5rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 1rem; color: #111; text-decoration: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 70;
  background: rgba(8, 9, 11, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid #15161a;
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 8px 0; }
.brand { display: block; line-height: 0; }
.brand:hover { text-decoration: none; }
/* the original logo has a white background, so it sits on a light label plate */
.brand img {
  display: block; height: 62px; width: auto; padding: 3px 10px; border-radius: 8px;
  background: #f4f5f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .6);
}

.bar nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.bar nav a {
  display: block; padding: 8px 0 5px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); transition: color .25s var(--ease);
}
.bar nav a:hover { color: var(--amber); text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--text); box-shadow: 0 2px 0 var(--amber); }

.callbar {
  padding: 14px 0 0;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--engrave);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06);
}
.callbar p { margin: 0; }
.callbar a { color: var(--amber); font-weight: 700; white-space: nowrap; }

/* ---------- the plate: anodised aluminium ---------- */
.plate {
  position: relative;
  border-radius: 14px;
  background:
    radial-gradient(130% 90% at 28% 12%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 55%),
    linear-gradient(104deg, transparent 22%, rgba(255, 255, 255, .035) 40%, rgba(255, 255, 255, .012) 52%, transparent 64%),
    radial-gradient(70% 45% at 50% 100%, rgba(255, 148, 38, .045), rgba(255, 148, 38, 0) 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, rgba(0, 0, 0, .03) 1px 3px),
    linear-gradient(165deg, #30343b 0%, var(--alu-hi) 22%, var(--alu) 50%, var(--alu-lo) 80%, #121317);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .12),
    inset 3px 0 6px rgba(255, 255, 255, .025),
    inset -3px 0 7px rgba(0, 0, 0, .3),
    inset 0 -3px 7px rgba(0, 0, 0, .55),
    0 0 0 1px var(--seam),
    var(--stack),
    0 30px 60px -24px #000,
    0 18px 26px -12px rgba(0, 0, 0, .8);
}
/* engraved border line + four turned copper screws */
.plate::before {
  content: ""; position: absolute; inset: 11px; border-radius: 8px; pointer-events: none;
  border: 1px solid rgba(0, 0, 0, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .025);
}
/* brushed metal grain */
.plate::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='220'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.005 0.95' numOctaves='2' seed='4'/><feColorMatrix type='saturate' values='0'/></filter><rect width='420' height='220' filter='url(%23b)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay; opacity: .32;
}
.plate > * { position: relative; z-index: 2; }

.screws {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  --s: radial-gradient(circle at 35% 30%, #ffd9b8, #e07830 38%, #8a4218 66%, #2a0f06 92%, transparent 94%);
  background:
    var(--s) 12px 12px / 16px 16px no-repeat,
    var(--s) calc(100% - 12px) 12px / 16px 16px no-repeat,
    var(--s) 12px calc(100% - 12px) / 16px 16px no-repeat,
    var(--s) calc(100% - 12px) calc(100% - 12px) / 16px 16px no-repeat;
}

.page { margin-top: 14px; margin-bottom: 40px; padding: clamp(30px, 4.4vw, 56px) clamp(22px, 4.6vw, 60px) clamp(34px, 4vw, 52px); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 900; letter-spacing: -.03em; line-height: 1.02; text-transform: uppercase; color: #e3e6ea; margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 2.2rem 0 .8rem; }
h1 em, .hero h1 em { font-style: normal; color: var(--amber); text-shadow: 0 0 30px rgba(255, 148, 38, .45); }
p, li { color: var(--body); }
p { margin: 0 0 1rem; max-width: 72ch; }

.stencil, .date, .crumb {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--engrave); text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06);
}
.stencil { margin: 0 0 1rem; }
.date { margin: -.4rem 0 1.2rem; }

.more {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 8px;
  color: #fff; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(180deg, #2a1d12, #17110c);
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 140, .16), inset 0 -1px 0 rgba(0, 0, 0, .5),
    0 0 0 1px var(--amber), 0 0 24px -6px rgba(255, 148, 38, .55), 0 4px 10px rgba(0, 0, 0, .7);
  transition: box-shadow .32s var(--ease), color .32s var(--ease);
}
.btn:hover { color: #fff; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 200, 140, .2), 0 0 0 1px #ffb765, 0 0 30px rgba(255, 148, 38, .6), 0 4px 10px rgba(0, 0, 0, .7); }

/* ---------- machined pockets (wells) ---------- */
.well, .tiles li, .card, .logos li, .map iframe, .partner {
  border-radius: 12px;
  background: linear-gradient(180deg, #0d0e11, #141519 70%, #16171b);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 3px 7px rgba(0, 0, 0, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .04), 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- home ---------- */
.hero { text-align: left; }
.hero img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  margin: 0 0 1.6rem;
  filter: saturate(.85) brightness(.88) contrast(1.05);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 7px #0d0e11, 0 0 0 8px rgba(255, 255, 255, .05);
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.9rem); line-height: .94; letter-spacing: -.04em; margin: .4rem 0 1.4rem; max-width: 18ch; }
.hero h1 em { display: block; }
.hero .btn { margin-top: .4rem; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 3rem; margin-top: 2.4rem; }

.tiles { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: t; }
.tiles li {
  counter-increment: t; padding: 16px 18px; color: var(--text); font-weight: 700; font-size: .95rem;
}
.tiles li::before {
  content: counter(t, decimal-leading-zero); display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .24em; color: var(--amber);
}

.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding: .45rem 0 .45rem 1.9rem; position: relative; border-bottom: 1px solid rgba(0, 0, 0, .6); box-shadow: 0 1px 0 rgba(255, 255, 255, .035); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0dc, var(--amber) 50%); box-shadow: 0 0 9px var(--amber);
}
img.wide { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin: 0 0 1.6rem; filter: saturate(.85) brightness(.88); box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 7px #0d0e11, 0 0 0 8px rgba(255, 255, 255, .05); }

/* ---------- cards (services, benefits) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; counter-reset: c; }
.card { padding: 22px 24px 20px; counter-increment: c; }
.card h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.card h2::before {
  content: counter(c, decimal-leading-zero); display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .24em; color: var(--amber);
}
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: .55rem; }
.card li::marker { color: var(--amber); }
.card p:last-child { margin-bottom: 0; }

/* ---------- products ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.logos li { padding: 8px; }
.logos a { display: flex; align-items: center; justify-content: center; height: 170px; padding: 14px; border-radius: 8px; background: #f4f5f7; transition: box-shadow .3s var(--ease); }
.logos a:hover { box-shadow: 0 0 0 2px var(--amber), 0 0 22px rgba(255, 148, 38, .45); }
.logos img { max-height: 100%; width: auto; object-fit: contain; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
.contact address { font-style: normal; }
.contact address p { color: var(--text); }
.contact address strong { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--engrave); }
.map iframe { width: 100%; height: 420px; display: block; border: 0; padding: 6px; }
@media (max-width: 720px) {
  .contact { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}

.partner { padding: 6px; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding: 24px 0 42px; border-top: 1px solid #15161a;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; line-height: 1.85; color: var(--dim);
}
.footer p { margin: 0; color: var(--dim); }
.footer a { color: var(--mute); }
.footer a:hover { color: var(--amber); }

@media (max-width: 600px) {
  .bar nav ul { gap: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* centred content block (Support page) */
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* click-to-load map placeholder */
.map-ph {
  min-height: 420px; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d0e11, #141519 70%, #16171b);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 3px 7px rgba(0, 0, 0, .85), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 1px 0 rgba(255, 255, 255, .06);
}
.map-ph p { max-width: 40ch; }
.map-ph .btn { margin: .6rem 0 .4rem; cursor: pointer; border: 0; }
@media (max-width: 720px) { .map-ph { min-height: 280px; } }

/* ============================================================
   MIX PREVIEW: Front Panel dark plates + Clay soft-UI ideas
   (violet accent, pill nav, lit-from-inside buttons, Funnel Display)
   ============================================================ */
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/funnel-display-latin-var.woff2") format("woff2");
}
:root {
  --amber: #9d92ff;                 /* accent var reused: now violet */
  --primary: #6d5dfc;
  --primary-light: #8abdff;
  --primary-dark: #5b0eeb;
  --display: "Funnel Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* neutral steel edge instead of the copper laminate */
  --stack: 0 3px 0 #0b0d10, 0 5px 0 #2a2e3d, 0 6px 0 #4a5068, 0 8px 0 #0b0d10, 0 12px 0 #06080a;
}
body {
  background: radial-gradient(80% 55% at 50% -10%, #1c1a34, transparent 62%), var(--void);
  background-attachment: fixed;
}
.plate { border-radius: 28px; }
.plate::before { border-radius: 20px; }
.screws {
  --s: radial-gradient(circle at 35% 30%, #e8ebf2, #8c93a3 40%, #4a4f5c 68%, #1a1c22 92%, transparent 94%);
}

/* headings: sentence-case Funnel Display instead of shouty caps */
h1, h2, h3 { font-weight: 600; text-transform: none; letter-spacing: -.035em; line-height: 1.08; }
h1 em, .hero h1 em { color: var(--amber); text-shadow: 0 0 34px rgba(109, 93, 252, .55); }
.hero h1 { line-height: 1; letter-spacing: -.045em; }

/* pill nav: raised, current one pressed */
.bar nav ul { gap: 8px; }
.bar nav a {
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--display); font-size: .84rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #b9bfd0;
  background: linear-gradient(180deg, #23262e, #1a1c22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 6px rgba(0, 0, 0, .55), 0 0 0 1px #0a0b0e;
}
.bar nav a:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--primary), 0 0 16px rgba(109, 93, 252, .4); }
.bar nav a[aria-current="page"] {
  color: #fff; background: linear-gradient(180deg, #14151a, #1b1d24);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .8), 0 0 0 1px var(--primary);
}

/* buttons: violet, lit from inside */
.btn {
  background: var(--primary); border-radius: 24px;
  font-family: var(--display); font-size: .98rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  box-shadow:
    inset .2rem .2rem 1rem var(--primary-light), inset -.2rem -.2rem 1rem var(--primary-dark),
    0 0 26px -6px rgba(109, 93, 252, .7), 0 4px 10px rgba(0, 0, 0, .7);
}
.btn:hover {
  background: var(--primary-dark); color: #fff;
  box-shadow: inset .2rem .2rem 1rem var(--primary), inset -.2rem -.2rem 1rem #3a05a8, 0 0 34px rgba(109, 93, 252, .8), 0 4px 10px rgba(0, 0, 0, .7);
}

/* rounder wells and tiles */
.well, .tiles li, .card, .logos li, .map iframe, .partner, .map-ph { border-radius: 20px; }
.logos a { border-radius: 14px; }
.logos a:hover { box-shadow: 0 0 0 2px var(--primary), 0 0 22px rgba(109, 93, 252, .5); }
.hero img, img.wide { border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 7px #0d0e11, 0 0 0 8px rgba(255, 255, 255, .05); }
.checks li::before { background: radial-gradient(circle at 35% 30%, #e7e4ff, var(--amber) 50%); box-shadow: 0 0 9px var(--primary); }
.footer a:hover, .callbar a { color: var(--amber); }
