/* ETM shared styles — light, modern, credible */
:root {
  --bg: oklch(98.5% 0.004 80);
  --bg-2: oklch(96% 0.005 80);
  --bg-3: oklch(93% 0.006 80);
  --ink: oklch(18% 0.005 80);
  --ink-2: oklch(32% 0.005 80);
  --ink-3: oklch(52% 0.005 80);
  --ink-4: oklch(72% 0.005 80);
  --line: oklch(88% 0.005 80);
  --line-2: oklch(80% 0.005 80);
  --accent: oklch(75% 0.15 85);
  --accent-ink: oklch(98% 0 0);
  --accent-tint: oklch(98% 0.0375 85);
  --ok: oklch(55% 0.12 145);
  --radius: 10px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 48px);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: oklch(16% 0.005 80);
  --bg-2: oklch(20% 0.005 80);
  --bg-3: oklch(24% 0.005 80);
  --ink: oklch(97% 0.003 80);
  --ink-2: oklch(85% 0.004 80);
  --ink-3: oklch(65% 0.004 80);
  --ink-4: oklch(45% 0.004 80);
  --line: oklch(28% 0.005 80);
  --line-2: oklch(36% 0.005 80);
  --accent-tint: oklch(28% 0.07 25);
}

* { box-sizing: border-box; }
*, *::before, *::after { min-width: 0; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; }
h4 { font-size: 17px; letter-spacing: -0.015em; }
p  { margin: 0; color: var(--ink-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--line-2);
}
.eyebrow.center::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--line-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-link.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-menu-toggle,
.mobile-nav-menu { display: none; }
.nav-phone {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-phone .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(65% 0.16 145);
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(65% 0.16 145) 20%, transparent);
}
.nav-menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--bg);
}
.nav-menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-menu {
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 16px;
}
.mobile-nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 4px;
  color: var(--ink-2);
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-link.active { color: var(--ink); font-weight: 600; }
.mobile-nav-quote {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.logo-mark .dot { color: var(--accent); }
.logo-word {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-word .name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 16px; }
.logo-word .sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

/* Sections */
section { padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
  max-width: 760px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }
.section-lede { color: var(--ink-3); font-size: 18px; line-height: 1.55; max-width: 620px; }

/* Placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 2px,
      transparent 2px 12px),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.ph > span {
  margin: 14px;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      oklch(100% 0 0 / 8%) 0 2px,
      transparent 2px 12px),
    oklch(22% 0.005 80);
  color: oklch(85% 0 0);
  border-color: oklch(30% 0.005 80);
}
.ph.dark > span { background: oklch(15% 0 0 / 60%); border-color: oklch(35% 0 0); }

/* Pill/tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Footer */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-3); font-size: 13px;
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-phone { display: none; }
  .nav-inner {
    height: 64px;
    gap: 12px;
  }
  .nav-cta { display: none; }
  .nav-menu-toggle { display: inline-flex; flex-shrink: 0; }
  .mobile-nav-menu.open { display: block; }
  .logo img {
    max-width: min(176px, 58vw);
    height: auto !important;
  }
  h1, h2, h3, h4, p, a, span, li {
    overflow-wrap: anywhere;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Icons */
.icn { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Utilities */
.grid { display: grid; }
.flex { display: flex; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.hairline { height: 1px; background: var(--line); width: 100%; }

/* Photos — real project imagery */
.photo {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(6px);
}
.photo-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
