/* ---------- Design Tokens ---------- */
:root {
  --radius: 4px;

  /* Brand palette: deep navy, slate greys, paper white, brass accent */
  --background:        oklch(0.995 0 0);
  --foreground:        oklch(0.18 0.025 255);

  --ink:               #0f1a5e;
  --ink-soft:          oklch(0.32 0.035 255);
  --surface:           oklch(0.985 0.003 255);
  --surface-elevated:  oklch(1 0 0);
  --hairline:          oklch(0.9 0.008 255);
  --brass:             oklch(0.72 0.09 80);

  --card:              oklch(1 0 0);
  --popover:           oklch(1 0 0);

  --primary:           oklch(0.22 0.05 255);
  --primary-foreground:oklch(0.99 0 0);

  --secondary:         oklch(0.96 0.005 255);
  --muted:             oklch(0.96 0.005 255);
  --muted-foreground:  oklch(0.5 0.02 255);
  --accent-bg:         oklch(0.94 0.012 255);

  --border:            oklch(0.9 0.008 255);
  --input:             oklch(0.9 0.008 255);
  --ring:              oklch(0.4 0.05 255);

  --gradient-ink:  linear-gradient(180deg, oklch(0.18 0.04 255) 0%, oklch(0.12 0.03 255) 100%);
  --gradient-fade: linear-gradient(180deg, transparent 0%, oklch(0.12 0.03 255 / 0.75) 60%, oklch(0.1 0.03 255 / 0.95) 100%);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}

::selection { background: var(--ink); color: var(--primary-foreground); }

/* ---------- Layout ---------- */
.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) { .container { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .container { padding-left: 64px; padding-right: 64px; } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-light { color: rgba(255,255,255,0.7); }
.eyebrow-dim   { color: rgba(255,255,255,0.6); }

.hairline { background: var(--hairline); height: 1px; width: 100%; }

.font-display { font-family: var(--font-display); }
.font-light     { font-weight: 300; }
.font-extralight{ font-weight: 200; }
.font-medium    { font-weight: 500; }
.italic         { font-style: italic; }

.text-ink         { color: var(--ink); }
.text-ink-soft    { color: var(--ink-soft); }
.text-muted       { color: var(--muted-foreground); }
.text-white       { color: #fff; }
.text-white-70    { color: rgba(255,255,255,0.7); }
.text-white-60    { color: rgba(255,255,255,0.6); }
.text-white-85    { color: rgba(255,255,255,0.85); }
.text-white-50    { color: rgba(255,255,255,0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-ink {
  background: var(--ink);
  color: var(--primary-foreground);
}
.btn-ink:hover { background: oklch(0.1 0.03 255); transform: translateY(-1px); }

.btn-outline-ink {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-ink:hover { background: var(--ink); color: var(--primary-foreground); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: oklch(0.92 0 0); }

/* ---------- Underline link ---------- */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Form fields ---------- */
.field {
  display: block;
  width: 100%;
  height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--foreground);
  padding: 0;
  transition: border-color .25s ease;
}
.field::placeholder { color: oklch(0.5 0.02 255 / 0.7); }
.field:focus { outline: none; border-bottom-color: var(--foreground); }

.field-area {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--foreground);
  padding: 12px 0;
  resize: none;
  font-family: inherit;
  transition: border-color .25s ease;
}
.field-area::placeholder { color: oklch(0.5 0.02 255 / 0.7); }
.field-area:focus { outline: none; border-bottom-color: var(--foreground); }

.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-delay-1 { animation-delay: 0.10s; }
.reveal-delay-2 { animation-delay: 0.25s; }
.reveal-delay-3 { animation-delay: 0.40s; }
.reveal-delay-4 { animation-delay: 0.55s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@keyframes slow-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.animate-slow-zoom { animation: slow-zoom 18s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  /* width: 28px; height: 28px; */
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border: 1px solid var(--hairline);
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    z-index: 49;                 /* sits just under the sticky header (z-50) */
    background: var(--background);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 32px oklch(0.12 0.03 255 / 0.10);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s cubic-bezier(.6,.05,.3,1), opacity .25s ease, visibility .35s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  /* Each link a full-width tappable row */
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
  }
  .nav-links a::after { display: none; }  /* drop the hover underline on mobile rows */
  .nav-links li + li a { border-top: 1px solid var(--hairline); }
}

/* =========================================================
   HERO — full screen with image background
   ========================================================= */
.hero {
  position: relative;
  height: 88vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--primary-foreground);
}
.hero__image {
  position: absolute;
  inset: 0;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: var(--gradient-fade);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.18 0.04 255 / 0.30);
}
.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
@media (min-width: 768px) { .hero__content { padding-bottom: 112px; } }

.hero h1 {
  margin-top: 24px;
  max-width: 64rem;
  font-family: var(--font-display);
  color: #fff;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
@media (min-width: 768px) { .hero h1 { font-size: 72px; } }
@media (min-width: 1024px){ .hero h1 { font-size: 88px; } }
.hero h1 .italic-soft {
  font-style: italic;
  font-weight: 200;
  color: rgba(255,255,255,0.85);
}

.hero__lede {
  margin-top: 32px;
  max-width: 36rem;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero__lede { font-size: 18px; } }

.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__corner {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .hero__corner { right: 64px; } }

/* =========================================================
   GENERIC SECTION SPACING
   ========================================================= */
.section { padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 768px) { .section { padding-top: 144px; padding-bottom: 144px; } }

.section-sm { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .section-sm { padding-top: 96px; padding-bottom: 96px; } }

.section-tight { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 768px) { .section-tight { padding-top: 112px; padding-bottom: 112px; } }

.border-t-hairline { border-top: 1px solid var(--hairline); }
.border-b-hairline { border-bottom: 1px solid var(--hairline); }
.border-y-hairline { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.bg-secondary { background: var(--secondary); }
.bg-ink { background: var(--ink); color: var(--primary-foreground); }

/* =========================================================
   12-COL GRID HELPERS
   ========================================================= */
.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 48px; }
  .col-md-4  { grid-column: span 4; }
  .col-md-5  { grid-column: span 5; }
  .col-md-6  { grid-column: span 6; }
  .col-md-7  { grid-column: span 7; }
  .col-md-8  { grid-column: span 8; }
  .col-md-7-start-6 { grid-column: 6 / span 7; }
  .col-md-7-start-7 { grid-column: 7 / span 7; }
}
@media (min-width: 1024px) { .grid-12 { gap: 80px; } }

/* ---------- Intro block (homepage 01) ---------- */
.intro-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 768px) { .intro-title { font-size: 36px; } }

.intro-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}
@media (min-width: 768px) { .intro-body { font-size: 16px; } }
.intro-body p + p { margin-top: 24px; }
.intro-body .strong { color: var(--ink); font-weight: 500; }

/* =========================================================
   VALUES — 3 columns with hairlines
   ========================================================= */
.values {
  display: grid;
  grid-template-columns: 1fr;
}
.values > div {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.values > div:first-child { border-top: 0; }
@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .values > div {
    padding: 80px 48px;
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }
  .values > div:first-child { border-left: 0; }
}
.values h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.values p {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.icon { color: var(--ink); }

/* =========================================================
   SHOWCASE — homepage 02
   ========================================================= */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
}
.h-section {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 32rem;
}
@media (min-width: 768px) { .h-section { font-size: 48px; } }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .showcase-grid { grid-template-columns: repeat(12, 1fr); }
  .showcase-grid > figure:nth-child(1) { grid-column: span 7; }
  .showcase-grid > figure:nth-child(2) { grid-column: span 5; }
}
.showcase-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 11;
}
.showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22,1,0.36,1);
}
.showcase-grid figure:hover img { transform: scale(1.05); }
.showcase-grid figcaption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 14px;
}
.showcase-grid figcaption .num { color: rgba(255,255,255,0.6); }

/* =========================================================
   PARTNERS strip
   ========================================================= */
.partners-strip {
  padding: 48px 0;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.partners-row .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.partners-row .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}
.partners-row .logos span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: oklch(0.32 0.035 255 / 0.7);
}

/* =========================================================
   DEMO FORM (homepage 03)
   ========================================================= */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .demo-grid { grid-template-columns: repeat(12, 1fr); gap: 48px; }
  .demo-grid > .demo-text { grid-column: span 5; }
  .demo-grid > .demo-form { grid-column: 7 / span 7; }
}
@media (min-width: 1024px) { .demo-grid { gap: 80px; } }

.demo-text h2 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .demo-text h2 { font-size: 48px; } }
.demo-text p {
  margin-top: 32px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 28rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .col-span-2 { grid-column: span 2; }
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 18px;
}

/* =========================================================
   PAGE HEROES (Obrien Amatek, Pepperl)
   ========================================================= */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--primary-foreground);
  overflow: hidden;
}
.page-hero__image {
  position: absolute;
  inset: 0;
  opacity: 0.30;
}
.page-hero__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, oklch(0.18 0.04 255 / 0.8) 50%, transparent 100%);
}
.page-hero__inner {
  position: relative;
  padding-top: 128px;
  padding-bottom: 128px;
}
@media (min-width: 768px) {
  .page-hero__inner { padding-top: 176px; padding-bottom: 176px; }
}
.page-hero h1 {
  margin-top: 24px;
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 72px; } }
@media (min-width: 1024px){ .page-hero h1 { font-size: 88px; } }
.page-hero__lede {
  margin-top: 32px;
  max-width: 36rem;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 768px) { .page-hero__lede { font-size: 18px; } }

/* Variant: image-driven hero (pepperl) */
.page-hero--media {
  height: 70vh;
  min-height: 520px;
}
.page-hero--media .page-hero__image { opacity: 0.65; }
.page-hero--media .page-hero__gradient { background: var(--gradient-fade); }
.page-hero--media .page-hero__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 80px;
}

/* =========================================================
   STATEMENT (Obrien)
   ========================================================= */
.statement-quote {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .statement-quote { font-size: 30px; } }
.statement-body {
  color: var(--ink-soft);
  line-height: 1.8;
}
.statement-body p + p { margin-top: 24px; }

/* =========================================================
   PRODUCT GRID (Obrien)
   ========================================================= */
.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.products-head .count {
  font-size: 14px;
  color: var(--muted-foreground);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--background);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.3s ease;
  color: var(--ink);
}
@media (min-width: 768px) { .product-card { padding: 32px; } }
.product-card:hover { background: #fff; }

.product-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-thumb img { transform: scale(1.10); }

.product-text {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
}
.product-card .ico-arrow {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.3s ease;
}
.product-card:hover .ico-arrow { transform: translate(4px, -4px); }

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  margin-top: 64px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-cell {
  background: var(--background);
  padding: 32px;
}
@media (min-width: 768px) { .service-cell { padding: 40px; } }
.service-cell h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.service-cell p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* =========================================================
   DOCUMENTATION (dark)
   ========================================================= */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(12, 1fr); }
  .docs-grid .docs-head { grid-column: span 5; }
  .docs-grid .docs-list { grid-column: 6 / span 7; }
}
.docs-head h2 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .docs-head h2 { font-size: 48px; } }
.docs-head p {
  margin-top: 24px;
  max-width: 28rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.docs-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.docs-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.docs-list li:last-child { border-bottom: 0; }
.docs-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: #fff;
}
.docs-list .doc-title {
  font-size: 16px;
  transition: transform 0.3s ease;
}
@media (min-width: 768px) { .docs-list .doc-title { font-size: 18px; } }
.docs-list a:hover .doc-title { transform: translateX(4px); }
.docs-list .doc-size {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.docs-list a:hover .ico-download { color: #fff; }
.ico-download { color: rgba(255,255,255,0.6); transition: color .3s ease; flex-shrink: 0; }

/* =========================================================
   PEPPERL — CTA box (dark inside section)
   ========================================================= */
.cta-dark {
  background: var(--ink);
  color: var(--primary-foreground);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-dark { padding: 80px; grid-template-columns: repeat(12, 1fr); }
  .cta-dark .cta-text { grid-column: span 8; }
  .cta-dark .cta-action { grid-column: span 4; display: flex; justify-content: flex-end; }
}
.cta-dark h3 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .cta-dark h3 { font-size: 48px; } }
.cta-dark h3 .italic-soft {
  font-style: italic;
  font-weight: 200;
  color: rgba(255,255,255,0.6);
}
.cta-dark p {
  margin-top: 24px;
  max-width: 36rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.followup {
  padding: 80px 0;
  text-align: center;
}
.followup p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   KONTAKTAI page
   ========================================================= */
.contact-title {
  margin-top: 24px;
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 768px) { .contact-title { font-size: 72px; } }
@media (min-width: 1024px){ .contact-title { font-size: 88px; } }
.contact-lede {
  margin-top: 32px;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-split { grid-template-columns: 1fr 1fr; } }
.contact-details {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 768px) {
  .contact-details {
    padding: 96px 64px 96px 0;
  }
}
.contact-form-col {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .contact-form-col {
    padding: 96px 0 96px 64px;
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }
}

.detail-row {
  display: flex;
  gap: 24px;
}
.detail-row svg { margin-top: 4px; flex-shrink: 0; color: var(--ink); }
.detail-row .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.detail-row .lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 16px;
}

.map-frame {
  aspect-ratio: 21 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--secondary);
}
.map-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--primary-foreground);
  padding: 96px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-brand p {
  margin: 20px 0 0;
  max-width: 32rem;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.65;
}
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-col a { color: rgba(255,255,255,0.85); transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-col li.muted { color: rgba(255,255,255,0.6); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   UTILITY HELPERS
   ========================================================= */
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.flex-end { display: flex; justify-content: flex-end; }
.text-center { text-align: center; }

/* =========================================================
   FORM ENHANCEMENTS — honeypot, GDPR, status states, success
   ========================================================= */

/* Honeypot — must be invisible to humans but present in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* GDPR consent row */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent-row a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-row a:hover { color: oklch(0.1 0.03 255); }

/* Status message */
.form-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.form-status--error   { color: oklch(0.55 0.2 27); }
.form-status--success { color: oklch(0.45 0.15 145); }

/* Success state — shown when form.submitted class is present */
.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 24px 0;
  text-align: left;
}
.form-success svg {
  margin-bottom: 20px;
  color: oklch(0.45 0.15 145);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.form-success p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
  max-width: 32rem;
}

/* When form is submitted: hide everything except .form-success */
form[data-form].submitted > *:not(.form-success) {
  display: none !important;
}
form[data-form].submitted .form-success {
  display: block;
  animation: reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Disabled submit state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   LANGUAGE SWITCH — topbar LT / EN  (matches hairline / ink system)
   ========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.lang-switch button {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  padding: 6px 8px;
  line-height: 1;
  transition: color .25s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); }
.lang-switch .lang-sep {
  width: 1px;
  height: 12px;
  background: var(--hairline);
}

/* =========================================================
   LANGUAGE MODAL — first visit
   ========================================================= */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: oklch(0.12 0.03 255 / 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .35s ease, backdrop-filter .35s ease;
}
.lang-modal.open {
  background: oklch(0.12 0.03 255 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-modal.closing {
  background: oklch(0.12 0.03 255 / 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.lang-modal__box {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  max-width: 440px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.22,1,0.36,1), opacity .4s ease;
}
.lang-modal.open .lang-modal__box { transform: translateY(0); opacity: 1; }
.lang-modal__brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}
.lang-modal__box h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.lang-modal__box > p {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0 0 32px;
}
.lang-modal__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lang-modal__choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.lang-modal__choices button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.lang-modal__choices .flag { font-size: 18px; line-height: 1; }

@media (max-width: 480px) {
  .lang-modal__box { padding: 36px 24px; }
  .lang-modal__choices { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE RESPONSIVENESS — refinements
   ========================================================= */

/* Keep language switch visible & nicely placed in mobile header */
@media (max-width: 880px) {
  .nav { gap: 8px; }
  .brand { margin-right: auto; }            /* brand stays left, pushes rest right */
  .lang-switch { margin-left: 0; margin-right: 4px; }
  /* Solid header on mobile so the open menu never shows through it */
  .site-header { background: var(--background); }
}

/* Hero: avoid over-tall hero on short mobile screens; tighten spacing */
@media (max-width: 640px) {
  .hero { height: auto; min-height: 600px; }
  .hero__content { padding-top: 120px; padding-bottom: 56px; }
  .hero h1 { font-size: 34px; }
  .hero__lede { font-size: 15px; }
  .hero__cta { margin-top: 28px; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  .hero__corner { display: none; }
}

/* Buttons: full width on very small screens for easier tapping */
@media (max-width: 480px) {
  .btn { padding: 0 20px; }
}

/* Footer bottom: stack the two lines on mobile instead of cramped row */
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer { padding: 64px 0 32px; }
  .footer-grid { gap: 40px; margin-bottom: 56px; }
}

/* Contact page: comfortable padding on mobile, hide heavy left padding */
@media (max-width: 767px) {
  .contact-details { padding: 48px 0; gap: 36px; }
  .contact-form-col { padding: 48px 0; }
  .contact-title { font-size: 40px; }
}

/* Forms: single column already <640px via .form-grid; tighten row gap */
@media (max-width: 639px) {
  .form-grid { gap: 28px; }
}

/* Section vertical rhythm: a touch tighter on phones */
@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .intro-body { font-size: 15px; }
  .page-hero__inner { padding-top: 104px; padding-bottom: 88px; }
  .page-hero h1 { font-size: 40px; }
}

/* Product / services grids: ensure single column reads well on phones */
@media (max-width: 639px) {
  .products-head, .showcase-head { margin-bottom: 40px; }
  .cta-dark { padding: 36px 28px; }
}

/* Prevent horizontal overflow from any wide inline content */
html, body { overflow-x: hidden; }
