:root {
  --bg: #f7f7f5;
  --bg-alt: #eef0ee;
  --surface: #ffffff;
  --border: #dde1e0;
  --text: #14181c;
  --text-dim: #565f66;
  --accent: #ff6a1f;
  --accent-hover: #e85c14;
  --accent-dim: #ffd9c2;
  --cyan: #0f8fae;
  --on-accent: #ffffff;
  --radius: 10px;
  --max-width: 1180px;
  --bg-rgb: 247, 247, 245;
  --ph-a: #eceeec;
  --ph-b: #e2e5e2;
  --ph-border: #c7cdcb;
  --ph-text: #7a828a;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Placeholder image utility */
.placeholder-img {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--ph-a), var(--ph-a) 10px, var(--ph-b) 10px, var(--ph-b) 20px);
  border: 1px dashed var(--ph-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}
.placeholder-img::after {
  content: attr(data-label);
  color: var(--ph-text);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  background: rgba(var(--bg-rgb), 0.55);
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.logo span { color: var(--accent); }
.logo-mark {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 16px;
  border-radius: 6px;
}
.main-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }

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

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.hero-media {
  display: flex;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); }

/* Mission */
.mission {
  padding: 60px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mission-text {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto;
  font-weight: 500;
}

/* Section head */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-sub { color: var(--text-dim); }

section { padding: 90px 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--cyan);
}
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p { margin: 0; font-size: 0.92rem; }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split + .split { margin-top: 80px; }
.split-media { min-height: 340px; }
.split-media-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.savant3d, .split-section { background: var(--bg); }

.product-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
}
.product-feature:first-of-type { margin-top: 8px; }
.product-feature-head {
  max-width: 640px;
  margin-bottom: 32px;
}
.product-feature-head h3 {
  font-size: 1.6rem;
  color: var(--text);
}
.product-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.product-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.product-shot figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.product-check-list {
  margin-top: 0;
}
.product-cta {
  text-align: center;
  margin-top: 36px;
}
.split-section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Contact */
.contact { background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-copy {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-copy .contact-info {
  align-items: center;
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cyan);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin: 4px 0; font-size: 0.9rem; }
.footer-links h4, .footer-social h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a { color: var(--text); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color .15s, border-color .15s;
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent); }
.social-icons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-copy { order: initial; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  section { padding: 60px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
