/* ═══════════════════════════════════════
   L² Engineering — Swiss Minimal
   White / Clean / One accent / Precision
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --off: #fafafa;
  --ink: #111111;
  --ink2: #333333;
  --muted: #777777;
  --light: #b0b0b0;
  --line: #e8e8e8;
  --line2: #f0f0f0;
  --blue: #1a56db;
  --blue-light: #e8effc;
  --blue-hover: #1446b8;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── NAV ── */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .mark {
  width: 36px; height: 36px;
  background: var(--ink);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  letter-spacing: .01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta-btn {
  display: inline-flex; align-items: center;
  padding: 9px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s;
}
.nav-cta-btn:hover { background: var(--ink2); color: #fff; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.mobile-menu {
  display: none;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  border-bottom: 1px solid var(--line2);
}

/* ── HERO (home) ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, var(--line2) 79px, var(--line2) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, var(--line2) 79px, var(--line2) 80px);
  opacity: .5;
  pointer-events: none;
  mask-image: linear-gradient(135deg, transparent 20%, black 60%);
  -webkit-mask-image: linear-gradient(135deg, transparent 20%, black 60%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--blue);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero-desc {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  font-weight: 300;
}
.hero-actions {
  display: flex; gap: 14px;
  margin-top: 40px;
}
.hero-meta {
  display: flex; gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta-item .val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.hero-meta-item .lbl {
  font-size: 13px;
  color: var(--light);
  margin-top: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink2); }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-alt { background: var(--off); }

.section-header { margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--blue);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -.015em;
  margin-top: 14px;
}
.section-header p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.7;
  font-weight: 300;
}

/* ── SERVICES GRID ── */
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.service-cell {
  background: var(--white);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  transition: background .25s;
}
.service-cell:hover { background: var(--off); }
.service-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--line);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 24px;
}
.service-cell h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-cell p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  font-weight: 300;
}
.service-link {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.service-link:hover { gap: 10px; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 36px;
}
.card .eyebrow { margin-bottom: 12px; }
.card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 12px;
}
.card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card .desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.card p { color: var(--muted); font-weight: 300; line-height: 1.65; }
.card-hover {
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card-hover:hover {
  border-color: #ccc;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue-light);
  display: grid; place-items: center;
  color: var(--blue);
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  transition: gap .2s;
}
.card-link:hover { gap: 10px; }

.card-dashed {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 24px;
  background: transparent;
}
.card-dashed b { font-size: 15px; }
.card-dashed .sub { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 300; }

/* ── LISTS ── */
.list {
  list-style: none;
  margin-top: 20px;
}
.list li {
  padding: 10px 0 10px 20px;
  position: relative;
  font-size: 15px;
  color: var(--ink2);
  border-bottom: 1px solid var(--line2);
}
.list li:last-child { border-bottom: none; }
.list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 2px;
  background: var(--blue);
}

/* ── TABLE ── */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light);
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
}
.tbl td {
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line2);
  color: var(--ink2);
}
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl tr:last-child td { border-bottom: none; }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 35%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, var(--line2) 59px, var(--line2) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, var(--line2) 59px, var(--line2) 60px);
  opacity: .35;
  pointer-events: none;
  mask-image: linear-gradient(135deg, transparent 30%, black 70%);
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, black 70%);
}
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px;
  color: var(--light);
  margin-bottom: 20px;
  position: relative; z-index: 2;
}
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--blue); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.02em;
  position: relative; z-index: 2;
}
.page-sub {
  color: var(--muted);
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 14px;
  font-weight: 300;
  position: relative; z-index: 2;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--ink);
  border-radius: 12px;
  padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta-band h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  font-weight: 400;
}
.cta-band p {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  font-weight: 300;
}
.cta-band .btn {
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
  position: relative; z-index: 2;
}
.cta-band .btn:hover { background: var(--blue-hover); }

/* ── FORM ── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── PREVIEW TILES ── */
.preview-strip { display: flex; gap: 12px; flex-wrap: nowrap; }
.preview-tile {
  flex: 1; min-width: 100px; height: 200px;
  border-radius: 8px;
  background: var(--ink);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s;
}
.preview-tile:hover { transform: translateY(-3px); }
.preview-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5));
}
.preview-tile span {
  position: absolute; left: 14px; bottom: 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  z-index: 2;
}

/* ── FOOTER ── */
.footer {
  background: var(--off);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 40px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 7px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.footer-brand b { font-size: 14px; }
.footer .sub { font-size: 12px; color: var(--light); margin-top: 1px; }
.footer .mini { font-size: 13px; color: var(--light); line-height: 1.7; }
.footer .mini b { color: var(--muted); font-weight: 500; }
.footer-col b {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--light);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .nav-links { display: none; }
  .burger { display: inline-grid; }
  .hero::after, .page-hero::after { display: none; }
  .hero-meta { gap: 28px; flex-wrap: wrap; }
  .preview-strip { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .services-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .card { padding: 28px 24px; }
  .page-hero { padding: 48px 0 32px; }
}
