@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/archivo-500-800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/archivo-500-800-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;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-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;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-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;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-400-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-400-700-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;
}


/* =========================================================
   StroMech Electronics — site stylesheet
   Look: clean, modern engineering brand. White page, soft blue-grey
   panels, graphite header/footer/dark bands, one sky-blue accent (from the
   logo). Sections are separated by colour bands, soft fades and rounded
   edges — not by rules. Photos have rounded corners and soft shadows, no borders.
   Amber/yellow is used ONLY for the draft "todo" markers.
   Fonts: Archivo (headings), Source Serif 4 (body), DM Mono (prices only).
   ========================================================= */

:root {
  --paper: #ffffff;
  --sheet: #f3f6f9;
  --sheet-2: #e9eff5;
  --ink: #1b1f23;
  --ink-2: #3a4249;
  --ink-3: #56606a;
  --accent: #5aaee8;
  --accent-deep: #1f6aa6;
  --on-accent: #10202e;
  --accent-soft: #e8f3fc;
  --todo-bg: #fbec9a;
  --link: #1f6aa6;
  --green: #1f7a46;
  --warn: #8a5a00;

  /* legacy names used by inline styles in the HTML */
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-faint: var(--ink-3);
  --accent-strong: var(--link);

  /* graphite: header, footer, dark bands */
  --dark-bg: #2b2f33;
  --dark-bg-2: #32373c;
  --dark-border: #484e55;
  --dark-text: #eef0f1;
  --dark-text-muted: #b4bcc3;
  --dark-text-faint: #a3acb4;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 22px 44px -26px rgba(27, 31, 35, 0.45);
  --shadow-sm: 0 10px 26px -18px rgba(27, 31, 35, 0.45);
  --maxw: 1180px;

  --font-head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}
.site-header :focus-visible, .site-footer :focus-visible, .section-dark :focus-visible, .hero :focus-visible, .lightbox :focus-visible {
  outline-color: var(--accent);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

.back-link {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--link); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-stretch: 92%;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- todo flag (visible reminder for missing real content) ---------- */
.todo { background: var(--todo-bg); color: #4d3600; border-bottom: 2px dashed #8a5a00; font-style: italic; }
.site-header .todo, .site-footer .todo { background: transparent; color: #ffd45c; border-color: #ffd45c; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark-bg);
  border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-family: var(--font-head);
  font-stretch: 88%;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.brand-word { display: inline-flex; }
.brand-stro { color: var(--dark-text); }
.brand-mech { color: var(--accent); }
.brand-tag {
  font-family: var(--font-head);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--dark-text-muted);
}
.footer-brand .brand-text { font-size: 1.4rem; margin-bottom: 12px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--font-head);
  font-stretch: 92%;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-text-muted);
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--dark-text); border-color: var(--accent); }
.site-nav a.nav-cta { background: var(--accent); color: var(--on-accent); padding: 8px 18px; border-radius: var(--radius-sm); border-bottom: none; font-weight: 700; }
.site-nav a.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--dark-border);
  color: var(--dark-text);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    border-bottom: 3px solid var(--accent);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--dark-border); }
  .site-nav a.nav-cta { text-align: center; margin-top: 12px; }
}

/* ---------- home hero: photo as background ---------- */
.hero {
  position: relative;
  color: var(--dark-text);
  background:
    linear-gradient(90deg, rgba(27, 31, 35, 0.93) 0%, rgba(27, 31, 35, 0.8) 42%, rgba(27, 31, 35, 0.38) 100%),
    url('../img/projects/paddleshift-wheel-hero.jpg') center 38% / cover no-repeat;
  padding: 72px 0 60px;
  border-radius: 0 0 44px 44px;
}
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.14; margin-bottom: 0.55em; }
.hero p { color: var(--dark-text-muted); font-size: 1.14rem; max-width: 560px; margin: 0; }

/* two big photo tiles inside the hero */
.hero .tile-grid { position: relative; z-index: 1; margin-top: 40px; }
.hero .tile { aspect-ratio: 4 / 3; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.85); }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile-grid.three { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--dark-bg);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.tile-grid.three .tile { aspect-ratio: 1 / 1; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; z-index: -2; }
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 31, 35, 0) 38%, rgba(27, 31, 35, 0.86) 100%);
  z-index: -1;
}
.tile:hover img { transform: scale(1.05); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; color: #fff; }
.tile-title { display: block; font-family: var(--font-head); font-stretch: 88%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.tile-grid.three .tile-title { font-size: 1.25rem; }
.tile-note { display: block; font-size: 0.98rem; color: #d3dae0; margin-top: 4px; }
@media (max-width: 800px) {
  .hero {
    padding: 56px 0 56px;
    border-radius: 0 0 32px 32px;
    background:
      linear-gradient(180deg, rgba(27, 31, 35, 0.9) 0%, rgba(27, 31, 35, 0.82) 100%),
      url('../img/projects/paddleshift-wheel-hero.jpg') 60% center / cover no-repeat;
  }
  .hero .tile-grid { margin-top: 40px; }
  .hero .tile { aspect-ratio: 4 / 3; }
  .tile-grid, .tile-grid.three { grid-template-columns: 1fr; }
  .tile-grid.three .tile { aspect-ratio: 1 / 1; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, var(--paper) 0, var(--sheet) 110px, var(--sheet) calc(100% - 110px), var(--paper) 100%); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-bottom: 0; }

.section-dark {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 112px;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--dark-text-muted); }
.section-dark .btn-outline { color: #fff; border-color: #fff; }
.section-dark .btn-outline:hover { background: #fff; color: var(--ink); }

.page-hero { padding: 68px 0 44px; background: linear-gradient(180deg, var(--sheet) 0%, var(--paper) 100%); }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero p { font-size: 1.14rem; }

/* "what we do": soft panels */
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
.defs > div { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 30px 30px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.defs > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.defs dt { font-family: var(--font-head); font-stretch: 88%; font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.defs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .defs { grid-template-columns: 1fr; } }

/* ---------- tags / badges ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-2);
  background: var(--sheet-2);
  padding: 3px 11px;
  border-radius: 100px;
  margin: 0 8px 8px 0;
}
.badge-in-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  background: var(--green);
  padding: 3px 11px;
  border-radius: 100px;
  margin: 0 8px 8px 0;
}
.badge-in-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; }
.tag-row .tag, .tag-row .badge-in-stock { margin-bottom: 0; }

/* ---------- product rows (home + products) ---------- */
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  padding: 28px;
  margin-bottom: 28px;
  background: var(--sheet);
  border-radius: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-row.reverse .product-media { order: 2; }
.product-row .product-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product-row .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-row:hover .product-media img { transform: scale(1.04); }
.product-row h3 { font-size: 1.75rem; margin: 14px 0 10px; }
.product-row p { max-width: 52ch; }
.product-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 18px 0 16px; }
.product-price small { font-size: 0.8rem; color: var(--ink-3); margin-left: 8px; font-weight: 400; }
@media (max-width: 800px) {
  .product-row { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .product-row.reverse .product-media { order: initial; }
}

/* split block (about teaser) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- product detail pages ---------- */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; padding: 24px 0 40px; }
.product-gallery { display: grid; gap: 14px; }
.product-gallery .main-shot { overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product-gallery .main-shot img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 14px; }
.product-gallery .thumb-row a { overflow: hidden; aspect-ratio: 1/1; display: block; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.product-gallery .thumb-row img { width: 100%; height: 100%; object-fit: cover; }

/* vertical stack of equal 1:1 images (product pages) — must stay square */
.gallery-column { display: flex; flex-direction: column; gap: 18px; }
.gallery-column a { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-column img, .project-gallery img, .thumb-row img, .main-shot img { transition: transform 0.45s ease; }
.gallery-column a:hover img, .project-gallery a:hover img, .thumb-row a:hover img { transform: scale(1.04); }
.gallery-column img { width: 100%; height: 100%; object-fit: cover; }

/* specification table: striped rows, no lines */
.spec-list { list-style: none; margin: 22px 0; padding: 0; font-size: 0.98rem; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 14px; border-radius: 8px; color: var(--ink-3); }
.spec-list li:nth-child(odd) { background: var(--sheet); }
.spec-list li span:last-child { color: var(--ink); text-align: right; font-weight: 500; }

@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- ordering / how-it-works ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 78px;
  background: var(--sheet);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px; top: 18px;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; color: var(--ink); font-family: var(--font-head); font-stretch: 92%; font-weight: 700; font-size: 1.1rem; margin-bottom: 2px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.order-box { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; margin-top: 22px; border-top: 6px solid var(--accent); }

.profile-figure { overflow: hidden; width: min(360px, 100%); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.profile-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

.note-box { background: var(--sheet); border-radius: var(--radius); padding: 18px 22px; font-size: 0.98rem; color: var(--ink-2); }
.note-box p { color: var(--ink-2); }

/* ---------- projects ---------- */
.project-block { padding: 56px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.project-block:first-child { padding-top: 16px; }
.project-block.reverse .project-copy { order: 2; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-gallery a { overflow: hidden; aspect-ratio: 1/1; display: block; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .project-block { grid-template-columns: 1fr; gap: 28px; }
  .project-block.reverse .project-copy { order: initial; }
}

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }

/* ---------- order summary ---------- */

/* ---------- forms / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-head); font-stretch: 92%; font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid #bcc7d1;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #8d9aa6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-field textarea { resize: vertical; min-height: 130px; }
.honey-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-side { background: var(--sheet); border-radius: var(--radius-lg); padding: 10px 26px; align-self: start; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.contact-method .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--dark-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-side .card { padding: 14px 0; }
.contact-side .card + .card { margin-top: 6px; }
.contact-side .card h4 { font-family: var(--font-head) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700; color: var(--ink) !important; font-size: 1rem !important; }
.contact-side .card .contact-method { padding: 8px 0; }

.form-success { background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--ink); padding: 14px 18px; margin-bottom: 20px; font-size: 1rem; display: none; }
.form-success.visible { display: block; }

/* ---------- cta panel ---------- */
.cta-banner {
  background: var(--accent);
  border-radius: 28px;
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 { margin-bottom: 8px; color: var(--on-accent); }
.cta-banner p { margin: 0; color: var(--on-accent); }
.cta-banner .hero-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.cta-banner .btn-primary { background: var(--dark-bg); color: #fff; }
.cta-banner .btn-primary:hover { background: #fff; color: var(--ink); }
.cta-banner .btn-outline { border-color: var(--on-accent); color: var(--on-accent); }
.cta-banner .btn-outline:hover { background: var(--on-accent); color: #fff; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-banner { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-banner .hero-actions { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--dark-bg);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 88px;
  color: var(--dark-text-muted);
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand p { font-size: 0.98rem; color: var(--dark-text-muted); }
.site-footer h4 { font-family: var(--font-head); font-stretch: 92%; font-weight: 700; font-size: 1rem; color: var(--dark-text); margin-bottom: 14px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.98rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { flex-shrink: 0; opacity: 0.85; }
.footer-links a, .footer-contact a { color: var(--dark-text-muted); transition: color 0.15s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--dark-text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-legal { border-top: 1px solid var(--dark-border); padding: 22px 24px; font-size: 0.9rem; line-height: 1.6; color: var(--dark-text-faint); }
.footer-legal p { margin: 0 0 8px; color: var(--dark-text-faint); }
.footer-legal strong { color: var(--dark-text-muted); font-weight: 600; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px !important; }
.footer-legal-links a { color: var(--dark-text-muted); }
.footer-legal-links a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; }
.legal-page h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--link); }
.legal-draft { background: var(--todo-bg); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 32px; font-size: 0.95rem; }
.legal-draft p { margin: 0; color: var(--ink); }

/* ---------- image lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(20, 23, 26, 0.95); touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; user-select: none; border-radius: 10px; }
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 47, 51, 0.92);
  border: 1.5px solid #6b747c;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-size: 0.9rem; color: var(--dark-text-muted); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}

/* ---------- gentle reveal on scroll (added by main.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* tighter gap between an inner page's title block and its first section */
.page-hero { padding-bottom: 28px; }
.page-hero + .section { padding-top: 36px; }
.page-hero { padding-bottom: 20px; }
.page-hero p:last-child { margin-bottom: 0; }
.page-hero + .section { padding-top: 28px; }

/* ---------- legal documents (bilingual) ---------- */
.legal-updated { color: var(--ink-3); font-size: 0.92rem; }
.legal-address { background: var(--sheet); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); }
.legal-page ol { margin: 0 0 1em; padding-left: 1.3em; color: var(--ink-2); }
.legal-page [id] { scroll-margin-top: 90px; }
.legal-table { overflow-x: auto; margin: 0 0 1em; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; vertical-align: top; color: var(--ink-2); }
.legal-table thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; }
.legal-table thead th:first-child { border-radius: 8px 0 0 8px; }
.legal-table thead th:last-child { border-radius: 0 8px 8px 0; }
.legal-table tbody tr:nth-child(even) td, .legal-table tbody tr:nth-child(even) th { background: var(--sheet); }
.form-table th { width: 42%; color: var(--ink); font-family: var(--font-head); font-weight: 600; background: var(--sheet); }
.form-table td { background: var(--sheet); min-width: 160px; height: 46px; }
.form-table tbody tr:nth-child(even) td, .form-table tbody tr:nth-child(even) th { background: var(--sheet-2); }
.form-line { border-bottom: 1.5px solid var(--ink); height: 40px; margin: 0 0 1em; max-width: 360px; }
@media print {
  .site-header, .site-footer, .page-hero, .skip-link { display: none; }
  .section { padding: 0; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- captioned PCB image strip (layouts + 3D renders) ---------- */
.pcb-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.section-head + .pcb-strip { margin-top: 0; }
.pcb-strip a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--dark-bg); isolation: isolate; }
.pcb-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; z-index: -2; }
.pcb-strip a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 31, 35, 0) 55%, rgba(27, 31, 35, 0.82) 100%); z-index: -1; }
.pcb-strip a:hover img { transform: scale(1.05); }
.pcb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; color: #fff; font-family: var(--font-head); font-stretch: 92%; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 800px) { .pcb-strip { grid-template-columns: 1fr; gap: 16px; } }
.pcb-strip-top { margin-top: 0; margin-bottom: 64px; }

/* ---------- skip link (keyboard / screen reader) ---------- */
main { display: block; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 2000; background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top 0.15s ease; }
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: -3px; }
#main:focus { outline: none; }
