/* Klisverse Design System â€” shared across corporate / tech / trade */

:root {
  --ink: #0c1b2a;
  --ink-soft: #243447;
  --muted: #5a6b7d;
  --line: #d5e0ea;
  --canvas: #f5f8fb;
  --surface: #ffffff;
  --accent: #c08761;
  --accent-deep: #9c6540;
  --accent-soft: #f3ebe4;
  --color-corporate: #c08761;
  --color-corporate-deep: #9c6540;
  --color-corporate-soft: #f3ebe4;
  --color-tech: #c9a227;
  --color-tech-deep: #7d6114;
  --color-tech-soft: #f3ebd8;
  --color-trade: #747f6f;
  --color-trade-deep: #5a6454;
  --color-trade-soft: #f3f1eb;
  --color-trade-gold: #c9a84c;
  --color-champagne: #e8d27a;
  --color-champagne-soft: #f3ead2;
  --color-cream: #faf8f3;
  --shadow: 0 18px 50px rgba(12, 27, 42, 0.08);
  --radius: 18px;
  --container: 1120px;
  --header-h: 72px;
  --ribbon-h: 0px;
  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --text-hero: clamp(2.55rem, 6.2vw, 4.35rem);
  --text-display: clamp(1.7rem, 3.2vw, 2.5rem);
  --text-title: clamp(1.2rem, 2vw, 1.65rem);
  --text-lead: 1.2rem;
  --text-body: 1.125rem;
  --text-ui: 0.875rem;
  --text-eyebrow: 0.75rem;
  --weight-display: 500;
  --weight-heading: 600;
  --leading-display: 1.12;
  --leading-body: 1.55;
  --tracking-display: -0.03em;
  --tracking-hero: -0.02em;
  --tracking-eyebrow: 0.08em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, color-mix(in srgb, var(--accent-deep) 14%, transparent), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, var(--canvas) 40%, #eef3f7 100%);
  background-attachment: fixed;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, .brand-name, .footer-brand, .identity-brand, .display-heading {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

.hero-brand, .hero-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-hero);
  line-height: 1.05;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

/* Identity ribbon */

.identity-ribbon {
  background: var(--ink);
  color: #d5dee8;
  min-height: var(--ribbon-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.identity-ribbon-inner {
  min-height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
}

.identity-brand {
  color: #fff;
  text-decoration: none;
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-brand:hover { color: #fff; opacity: 0.9; }

.identity-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  align-items: center;
}

.identity-nav a {
  color: #a8b4c2;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.identity-nav a:hover { color: #fff; }

.identity-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.identity-nav .sep {
  color: #5a6b7d;
  padding: 0 0.15rem;
  user-select: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 251, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(213, 224, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  flex-shrink: 0;
}

.brand-name { font-size: 1.12rem; font-weight: 500; letter-spacing: 0.02em; }

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-ui);
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav a.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.site-header.is-nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - var(--ribbon-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.15) 0%, rgba(245, 248, 251, 0.72) 48%, rgba(245, 248, 251, 0.96) 100%),
    linear-gradient(90deg, rgba(245, 248, 251, 0.92) 0%, rgba(245, 248, 251, 0.55) 45%, rgba(245, 248, 251, 0.2) 100%);
}

.hero-content {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 42rem;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 42rem);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: var(--text-hero);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-hero);
  color: var(--ink);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  font-size: var(--text-display);
  font-weight: var(--weight-display);
  max-width: 20ch;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-support {
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.75;
  max-width: 38ch;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

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

.btn.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.btn.btn-primary:hover { color: #fff; filter: brightness(1.05); }

.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.btn.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Sections */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.section h2 { font-size: var(--text-display); font-weight: var(--weight-heading); }

.section-subtitle,
.prose {
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.75;
}

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

.pillar-grid,
.why-grid {
  display: grid;
  gap: 1.5rem 2rem;
}

.pillar,
.why-grid article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pillar img,
.why-grid img,
.service-panel img,
.division-card img {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.pillar h3,
.why-grid h3,
.service-panel h3 {
  font-size: var(--text-title);
  font-weight: var(--weight-display);
  margin-bottom: 0.5rem;
}

.pillar p,
.why-grid p,
.service-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.8)),
    radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

.service-panel,
.division-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 224, 234, 0.95);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
}

.division-grid {
  display: grid;
  gap: 1.25rem;
}

.division-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}

.division-card h2 {
  font-size: var(--text-title);
  font-weight: var(--weight-display);
  margin: 0;
}

.division-card .card-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.division-card .card-points li {
  padding-left: 1rem;
  position: relative;
}

.division-card .card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.division-card .btn { align-self: flex-start; margin-top: auto; }

.division-card.division-tech {
  --accent: var(--color-tech);
  --accent-deep: var(--color-tech-deep);
  --accent-soft: var(--color-tech-soft);
}

.division-card.division-trade {
  --accent: var(--color-trade);
  --accent-deep: var(--color-trade-deep);
  --accent-soft: var(--color-trade-soft);
}

.btn.btn-tech {
  background: var(--color-tech-deep);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.btn-tech:hover { color: #fff; filter: brightness(1.1); }

.btn.btn-trade {
  background: var(--color-trade-deep);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn.btn-trade:hover { color: #fff; filter: brightness(1.1); }

.list-label {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.service-panel ul {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.tech-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tech-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.tech-grid img {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

/* Cross-site CTA */

.cross-cta {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
}

.cross-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cross-cta h2 {
  font-size: var(--text-title);
  font-weight: var(--weight-display);
  margin-bottom: 0.4rem;
}

.cross-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

/* Contact */

.contact {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85));
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: var(--tracking-display);
}

.contact-details a {
  text-decoration: none;
  color: var(--ink);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status:not(:empty) {
  color: var(--accent-deep);
  font-weight: 600;
}

/* Footer â€” identical structure across sites */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-nav,
.footer-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a,
.footer-divisions a,
.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-divisions a {
  font-weight: 600;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Legal */

.legal-page { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal-page article { max-width: 42rem; }
.legal-page .updated { color: var(--muted); font-size: 0.9rem; }
.legal-page .prose { margin-top: 1.5rem; }

/* Motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Breakpoints */

@media (min-width: 720px) {
  .pillar-grid,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-toggle { display: none; }
  .nav { display: flex; }
}

@media (min-width: 800px) {
  .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
  .copyright { grid-column: 1 / -1; }
  .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  /* The header sets backdrop-filter, which makes it the containing block for
     fixed descendants, so the panel is positioned against the header instead. */
  .site-header.is-nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--canvas);
    border-top: 1px solid var(--line);
  }

  .site-header.is-nav-open .nav a {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-bottom-width: 1px;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Technology — editorial champagne theme with gold accents (Trade grammar)
   ========================================================================== */

body.site-tech {
  --tech-gold: #c9a227;
  --tech-gold-light: #e2c76f;
  --tech-gold-deep: #7d6114;
  --tech-champagne: #e9dcb9;
  --tech-champagne-deep: #dbcb9f;
  --tech-champagne-soft: #f3ebd8;
  --tech-pearl: #fbf9f3;
  --tech-sand: #f7f2e6;
  --tech-linen: #f1e9d8;
  --tech-ivory: #fdfcf8;
  --tech-ink: #2a2620;
  --tech-ink-soft: #443e33;
  --tech-muted: #6d6550;
  --tech-line: rgba(42, 38, 32, 0.14);

  --accent: var(--tech-gold);
  --accent-deep: var(--tech-gold-deep);
  --accent-soft: var(--tech-champagne-soft);
  --canvas: var(--tech-sand);
  --surface: var(--tech-pearl);
  --line: var(--tech-line);
  --ink: var(--tech-ink);
  --ink-soft: var(--tech-ink-soft);
  --muted: var(--tech-muted);
  background:
    radial-gradient(1200px 600px at 88% -10%, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0) 60%),
    radial-gradient(900px 520px at -8% 16%, rgba(219, 203, 159, 0.28), rgba(219, 203, 159, 0) 58%),
    linear-gradient(180deg, #fdfbf5 0%, var(--tech-sand) 45%, #efe6d2 100%);
  background-attachment: fixed;
  color: var(--tech-ink);
}

body.site-tech a { color: var(--tech-gold-deep); }
body.site-tech a:hover { color: var(--tech-gold); }

/* Header on light champagne hero */
body.site-tech .site-header--tech {
  background: rgba(243, 235, 216, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(42, 38, 32, 0.1);
}

body.site-tech .site-header--tech.is-scrolled {
  background: rgba(251, 249, 243, 0.94);
  border-bottom-color: var(--tech-line);
}

body.site-tech .site-header--tech:not(.is-scrolled) .brand,
body.site-tech .site-header--tech:not(.is-scrolled) .nav a {
  color: var(--tech-ink);
}

body.site-tech .site-header--tech:not(.is-scrolled) .nav a.is-active {
  color: var(--tech-gold-deep);
  border-bottom-color: var(--tech-gold);
}

body.site-tech .site-header--tech:not(.is-scrolled) .nav-toggle span {
  background: var(--tech-ink);
}

body.site-tech .site-header--tech:not(.is-scrolled) .lang-switch {
  border-color: rgba(42, 38, 32, 0.16);
  background: rgba(251, 249, 243, 0.6);
}

body.site-tech .site-header--tech:not(.is-scrolled) .lang-btn {
  color: var(--tech-muted);
}

body.site-tech .site-header--tech:not(.is-scrolled) .lang-btn.is-active {
  background: var(--tech-gold-deep);
  color: #fff;
}

body.site-tech .brand-mark {
  background: linear-gradient(140deg, var(--tech-champagne-soft) 0%, var(--tech-gold-light) 42%, var(--tech-gold) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 4px rgba(201, 162, 39, 0.2),
    0 6px 20px rgba(125, 97, 20, 0.22);
}

/* Chapters */
body.site-tech .chapter { padding: clamp(4.5rem, 10vw, 8rem) 0; }

body.site-tech .chapter-cream {
  background: var(--tech-pearl);
  color: var(--tech-ink);
}

body.site-tech .chapter-champagne {
  background: var(--tech-linen);
  color: var(--tech-ink);
}

body.site-tech .chapter-amber,
body.site-tech .chapter-contact {
  background:
    radial-gradient(900px 520px at 82% 0%, rgba(201, 162, 39, 0.26), rgba(201, 162, 39, 0) 62%),
    var(--tech-champagne);
  color: var(--tech-ink);
}

body.site-tech .chapter-cta {
  border: none;
  background: var(--tech-pearl);
  color: var(--tech-ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

body.site-tech .chapter-cta h2 { color: var(--tech-ink); }

body.site-tech .chapter-cta .cross-cta-inner p { color: var(--tech-muted); }

/* Hero */
body.site-tech .chapter-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - var(--ribbon-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: var(--tech-champagne);
}

body.site-tech .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.site-tech .hero-atmosphere .hero-media {
  position: absolute;
  inset: 0;
}

body.site-tech .hero-atmosphere .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
}

body.site-tech .hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(860px 480px at 78% 14%, rgba(201, 162, 39, 0.26), rgba(201, 162, 39, 0) 60%),
    linear-gradient(180deg, rgba(247, 242, 230, 0) 0%, rgba(247, 242, 230, 0.34) 56%, rgba(247, 242, 230, 0.76) 100%),
    linear-gradient(90deg, rgba(247, 242, 230, 0.84) 0%, rgba(247, 242, 230, 0.34) 54%, rgba(247, 242, 230, 0) 100%);
  pointer-events: none;
}

body.site-tech .hero-editorial {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  max-width: 52rem;
}

body.site-tech .hero-display {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-display);
  line-height: 1.14;
  letter-spacing: var(--tracking-hero);
  color: var(--tech-ink);
}

body.site-tech .hero-display-accent {
  display: block;
  background: linear-gradient(100deg, #8a6c15 0%, var(--tech-gold) 46%, var(--tech-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.site-tech .hero-lead {
  max-width: 40ch;
  font-size: var(--text-lead);
  line-height: 1.75;
  font-weight: 400;
  color: var(--tech-ink-soft);
  margin-bottom: 2rem;
}

body.site-tech .hero::after { display: none; }

body.site-tech .eyebrow { color: var(--tech-gold-deep); }
body.site-tech .eyebrow--amber { color: var(--tech-gold-deep); }

body.site-tech .chapter-hero .eyebrow,
body.site-tech .chapter-amber .eyebrow,
body.site-tech .chapter-contact .eyebrow {
  color: var(--tech-gold-deep);
}

body.site-tech .display-heading {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--tech-ink);
  margin: 0 0 1rem;
}

body.site-tech .display-heading--light { color: var(--tech-ink); }

body.site-tech .section-subtitle--light {
  color: var(--tech-muted);
}

body.site-tech .approach-header {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Buttons */
body.site-tech .btn-amber {
  background: linear-gradient(140deg, var(--tech-gold-light) 0%, var(--tech-gold) 52%, #a8851b 100%);
  color: #33280a;
  border: 1px solid rgba(125, 97, 20, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 26px rgba(125, 97, 20, 0.26);
}

body.site-tech .btn-amber:hover {
  color: #33280a;
  filter: brightness(1.05);
}

body.site-tech .btn-ghost {
  background: transparent;
  border: 1px solid rgba(42, 38, 32, 0.28);
  color: var(--tech-ink);
}

body.site-tech .btn-ghost:hover {
  border-color: var(--tech-gold);
  color: var(--tech-gold-deep);
}

/* Services — hairline rows */
body.site-tech .tech-services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tech-line);
}

body.site-tech .tech-service {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--tech-line);
  transition: padding-left 0.35s var(--ease);
}

body.site-tech .tech-service:hover {
  padding-left: 0.5rem;
}

body.site-tech .tech-service h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: var(--text-title);
  font-weight: var(--weight-display);
  color: var(--tech-gold-deep);
}

body.site-tech .tech-service > p {
  margin: 0 0 0.75rem;
  max-width: 48ch;
  color: var(--tech-muted);
}

body.site-tech .tech-service .list-label {
  margin: 0 0 0.35rem;
  color: var(--tech-ink-soft);
}

body.site-tech .tech-service ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--tech-muted);
  display: grid;
  gap: 0.25rem;
}

/* Expertise marks */
body.site-tech .tech-marks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--tech-line);
}

body.site-tech .tech-marks li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--tech-line);
  font-family: var(--font-heading);
  font-weight: var(--weight-display);
  font-size: var(--text-title);
  color: var(--tech-ink);
}

body.site-tech .tech-marks li span {
  border-left: 2px solid var(--tech-gold);
  border-image: linear-gradient(180deg, var(--tech-gold-light), var(--tech-gold-deep)) 1;
  padding-left: 0.85rem;
}

body.site-tech .chapter-amber h1,
body.site-tech .chapter-amber h2,
body.site-tech .chapter-amber h3,
body.site-tech .chapter-contact h1,
body.site-tech .chapter-contact h2,
body.site-tech .chapter-contact h3 {
  color: var(--tech-ink);
}

/* Why pillars on champagne */
body.site-tech .tech-pillars {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

body.site-tech .tech-pillar {
  padding-top: 1.25rem;
  border-top: 2px solid var(--tech-gold);
  border-image: linear-gradient(90deg, var(--tech-gold-deep), var(--tech-gold) 45%, rgba(201, 162, 39, 0)) 1;
  max-width: 36rem;
}

body.site-tech .tech-pillars .tech-pillar h3 {
  font-family: var(--font-heading);
  font-size: var(--text-title);
  font-weight: var(--weight-display);
  margin-bottom: 0.5rem;
  color: var(--tech-gold-deep);
}

body.site-tech .tech-pillar p {
  margin: 0;
  color: var(--tech-ink-soft);
}

body.site-tech .chapter-cta .btn-ghost {
  border-color: rgba(42, 38, 32, 0.28);
  color: var(--tech-ink);
}

body.site-tech .chapter-cta .btn-ghost:hover {
  border-color: var(--tech-gold);
  color: var(--tech-gold-deep);
}

/* Contact */
body.site-tech .chapter-contact .contact-details dt {
  color: var(--tech-muted);
}

body.site-tech .chapter-contact .contact-details dd,
body.site-tech .chapter-contact .contact-details a {
  color: var(--tech-ink);
}

body.site-tech .chapter-contact .contact-form {
  background: rgba(251, 249, 243, 0.97);
  border-color: rgba(125, 97, 20, 0.2);
  box-shadow: 0 20px 50px rgba(74, 58, 12, 0.16);
}

body.site-tech .chapter-contact .form-note {
  color: var(--tech-muted);
}

/* Footer */
body.site-tech .site-footer--tech {
  background: var(--tech-champagne-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--tech-ink-soft);
}

body.site-tech .site-footer--tech .footer-brand,
body.site-tech .site-footer--tech a {
  color: var(--tech-ink);
}

body.site-tech .site-footer--tech a:hover {
  color: var(--tech-gold-deep);
}

body.site-tech .site-footer--tech .copyright {
  color: var(--tech-muted);
}

/* Menu panel is opaque, so the header strip must be too */
body.site-tech .site-header--tech.is-nav-open,
body.site-tech .site-header--tech.is-nav-open.is-scrolled {
  background: var(--tech-sand);
}

body.site-tech .site-header--tech.is-nav-open .brand,
body.site-tech .site-header--tech.is-nav-open .brand-sub,
body.site-tech .site-header--tech.is-nav-open .nav a {
  color: var(--tech-ink-soft);
}

body.site-tech .site-header--tech.is-nav-open .nav-toggle span {
  background: var(--tech-ink);
}

body.site-tech .site-header--tech.is-nav-open .nav a.is-active {
  color: var(--tech-gold-deep);
  border-bottom-color: var(--tech-gold);
}

@keyframes tech-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5%, 1%) scale(1.03); }
}

body.site-tech .hero-atmosphere .hero-media img {
  animation: tech-drift 28s ease-in-out infinite;
}

body.site-tech .hero-glow {
  animation: tech-drift 32s ease-in-out infinite reverse;
}

@media (min-width: 720px) {
  body.site-tech .tech-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }

  body.site-tech .tech-marks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.site-tech .tech-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-tech .hero-atmosphere .hero-media img,
  body.site-tech .hero-glow {
    animation: none;
  }
}

