/* ============================================================
   Electrobyte Labs — Design System (taste.md aligned)
   Light theme · Outfit typography · No glows · Diffused shadows
   ============================================================ */

:root {
  /* Palette */
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-edge: rgba(226, 232, 240, 0.5);
  --text: #18181B;
  --text-muted: #71717A;
  --text-tertiary: #94A3B8;
  --overlay: rgba(249, 250, 251, 0.55);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.09);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* Layout */
  --nav-height: 72px;
  --radius-card: 2.5rem;
  --radius-btn: 0.75rem;
  --radius-input: 0.75rem;

  /* Video */
  --video-blur: 6px;
  --circuit-blur: 1.5px;
  --home-video-tone: saturate(0.55) brightness(1.1);

  /* Motion — spring feel */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-wrap: balance;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

/* ---- Container ---- */
.container {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding-inline: 4rem;
}

@media (max-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1rem;
  }
}

/* ============================================================
   HEADER / NAV — Light frosted glass
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(249, 250, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-edge);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Inline Icon Formatting */
.inline-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}

.inline-icon {
  height: 1.15em;
  width: auto;
  object-fit: contain;
  vertical-align: text-bottom;
  position: relative;
  top: -1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition:
    color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(249, 250, 251, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--surface-edge);
    padding: 0.5rem 4%;
    display: flex;
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    transform-origin: top;
    pointer-events: none;
    transition: transform 0.4s var(--spring), opacity 0.4s var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0.6rem;
    min-height: 44px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero--home {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero-overlay--home-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 42%, rgba(249, 250, 251, 0.72) 100%);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.hero-left-content {
  max-width: 62ch;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero--home {
    min-height: auto;
    padding-block: 6rem 12rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-overlay--home-fade {
    background: linear-gradient(180deg, #F9FAFB 50%, rgba(249, 250, 251, 0.85) 75%, rgba(249, 250, 251, 0.3) 100%);
  }

  .hero-left-content {
    max-width: 100%;
    text-align: left;
  }
}

.hero--short {
  min-height: 46dvh;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--video-blur));
  transform: scale(1.05);
  z-index: 0;
}

.hero-video--toned {
  filter: blur(var(--video-blur)) var(--home-video-tone);
}

.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(var(--circuit-blur));
  transform: scale(1.02);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(249, 250, 251, 0.78);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 22ch;
  color: var(--text);
  font-weight: 700;
}

.hero .hero-sub {
  margin-top: 1.2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- Accent rule ---- */
.rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--spring),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
  min-height: 44px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-edge);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--tint {
  background: linear-gradient(180deg,
      transparent,
      rgba(226, 232, 240, 0.15),
      transparent);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-intro {
  margin-top: 1.2rem;
  max-width: 62ch;
  color: var(--text-muted);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2rem 2rem;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--spring),
    box-shadow 0.35s var(--ease-out);
}

.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card .card-icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.card .card-more {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s var(--ease-out);
}

.card:hover .card-more {
  color: var(--accent-hover);
}

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  padding: 1.5rem;
  border-radius: 1.5rem;
  transition: background 0.2s var(--ease-out);
}

.why-item:hover {
  background: rgba(226, 232, 240, 0.2);
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.why-item h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================================
   SERVICE PAGES
   ============================================================ */
.service-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .service-body {
    grid-template-columns: 1fr;
  }
}

.service-text p+p {
  margin-top: 1.3rem;
}

.service-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 65ch;
}

/* Includes sidebar */
.includes-box {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2rem 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  box-shadow: var(--shadow-card);
}

.includes-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.includes-box ul {
  list-style: none;
}

.includes-box li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.includes-box li:last-child {
  border-bottom: none;
}

.includes-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 1.6rem;
}

/* ============================================================
   VIDEO BAND (3D printing page)
   ============================================================ */
.video-band {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
}

.video-band .hero-video,
.video-band .hero-overlay {
  position: absolute;
}

.video-band .band-content {
  position: relative;
  z-index: 2;
}

.video-band h2 {
  max-width: 24ch;
}

.video-band p {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--text-muted);
}

/* ============================================================
   TRACE BG (subtle grid pattern)
   ============================================================ */
.trace-bg {
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2rem 2rem;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.contact-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-block: 0.75rem;
}

.contact-row svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.contact-row .value {
  color: var(--text);
  word-break: break-word;
}

.contact-row a.value {
  transition: color 0.15s var(--ease-out);
}

.contact-row a.value:hover {
  color: var(--accent);
}

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote-form {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}

.quote-form h3 {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.quote-form .form-intro {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 1.6rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--surface-edge);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.phone-row {
  display: flex;
  gap: 0.6rem;
}

.phone-row select {
  flex: 0 0 auto;
  max-width: 46%;
  background: var(--bg);
  border: 1.5px solid var(--surface-edge);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.phone-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.phone-row input {
  flex: 1;
}

.field input[type="file"] {
  padding: 0.6rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1.5px solid var(--surface-edge);
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-right: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out);
}

.field input[type="file"]::file-selector-button:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
}

.file-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.form-status {
  display: none;
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-input);
  background: var(--accent-subtle);
  border: 1px solid var(--surface-edge);
  color: var(--text);
  font-size: 0.9rem;
}

.form-status.show {
  display: block;
}

/* ============================================================
   FOOTER — Light
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--surface-edge);
  background: var(--bg);
  padding-block: 3.5rem 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  transition: color 0.15s var(--ease-out);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  padding-block: 0.25rem;
}

.footer-blurb {
  max-width: 36ch;
  margin-top: 0.8rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-edge);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   REVEAL ANIMATION — Spring physics
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--spring);
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ============================================================
   VIEW TRANSITIONS — Cross-page physics
   ============================================================ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes vt-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Persistent header across transitions */
.site-header {
  view-transition-name: site-header;
}

::view-transition-group(site-header) {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   ILLUSTRATION LAYOUTS
   ============================================================ */
.illustrated-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.illustrated-section--reverse {
  direction: rtl;
}

.illustrated-section--reverse>* {
  direction: ltr;
}

.section-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-illustration img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 1.5rem;
  transition: transform 0.5s var(--spring);
}

.section-illustration img:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .illustrated-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .illustrated-section--reverse {
    direction: ltr;
  }

  .section-illustration img {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ============================================================
   PROCESS STEPS (PCB Design)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: 1.5rem;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAPABILITIES (PCB Assembly)
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.capability-item {
  text-align: center;
  padding: 2rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--spring);
}

.capability-item:hover {
  transform: translateY(-2px);
}

.capability-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.capability-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MATERIALS (3D Printing)
   ============================================================ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.material-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: 1.5rem;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--spring);
}

.material-card:hover {
  transform: translateY(-2px);
}

.material-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.material-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.material-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PHASES TIMELINE (Product Design)
   ============================================================ */
.phases-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--surface-edge);
}

.phase-item:last-child {
  border-bottom: none;
}

.phase-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phase-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.phase-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 55ch;
}

/* ============================================================
   VALUES SECTION (About)
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   PAGE-SPECIFIC HERO TINTS
   ============================================================ */
[data-page="pcb-design"] .hero-overlay {
  background: rgba(249, 250, 251, 0.7);
}

[data-page="pcb-assembly"] .hero-overlay {
  background: rgba(249, 250, 251, 0.55);
}

[data-page="3d-printing"] .hero-overlay {
  background: rgba(249, 250, 251, 0.55);
}

[data-page="product-design"] .hero-overlay {
  background: rgba(249, 250, 251, 0.55);
}

/* About: larger text section */
.about-prose {
  max-width: 68ch;
}

.about-prose p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-prose p+p {
  margin-top: 1.3rem;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-row {
  display: grid;
  gap: 1.5rem;
}

.bento-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.bento-row--2 {
  grid-template-columns: 1.7fr 1fr;
}

.bento-tile {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-card);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out);
}

.bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.bento-tile h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.bento-tile p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {

  .bento-row--3,
  .bento-row--2 {
    grid-template-columns: 1fr;
  }
}