/* BrandAnimate site — shared styles for every page.
   Layout: a sticky header, then full-width bands; each band holds a 1120px column.
   Display: Bricolage Grotesque · Body: Source Serif 4 · Labels: IBM Plex Mono */
:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --ink: #18212b;
  --muted: #55606b;
  --line: #d8dcd6;
  --accent: #1d6a86;
  --accent-ink: #ffffff;
  --mark: #b9822a;
  --band: #e9ece7;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171d; --surface: #1a2129; --ink: #e8ebe7; --muted: #a3acb4;
    --line: #2e3842; --accent: #5fb3d1; --accent-ink: #0d1318; --mark: #d9a64e; --band: #171e25;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12171d; --surface: #1a2129; --ink: #e8ebe7; --muted: #a3acb4;
  --line: #2e3842; --accent: #5fb3d1; --accent-ink: #0d1318; --mark: #d9a64e; --band: #171e25;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0; max-width: 65ch; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-mark {
  width: 40px; height: 40px; flex: none; border-radius: 8px;
  background: #ffffff; color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.logo-mark:has(img) { background: #ffffff; padding: 4px; width: 44px; height: 44px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.brand-tag { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--band); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-toggle {
  display: none; margin-left: auto;
  font: 500 0.95rem var(--font-display); color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 6px;
  min-height: 44px; padding: 0 14px; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink) !important;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover, .nav .btn:hover { background: var(--ink); color: var(--bg) !important; filter: none; }
.btn-quiet:hover { background: var(--accent); color: var(--accent-ink) !important; }
.band-ink .btn:hover { background: var(--accent); color: var(--accent-ink) !important; }
.btn { white-space: nowrap; }
.nav a { white-space: nowrap; }
.brand-tag { max-width: 34ch; }
@media (max-width: 1180px) { .brand-tag { display: none; } }
.btn-quiet { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; }
  .js .nav:not(.open) { display: none; }
  .brand-tag { display: none; }
}

/* Bands and sections */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-alt { background: var(--band); }
.band-ink { background: var(--ink); color: var(--bg); }
.band-ink .label { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Know-how map: scattered sources feeding one written procedure */
.knowhow { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.knowhow-title { display: flex; flex-direction: column; gap: 4px; }
.knowhow-title strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source {
  font-family: var(--font-label); font-size: 0.95rem; line-height: 1.45; color: var(--muted);
  border: 1px dashed var(--muted); border-radius: 6px; padding: 14px 16px; min-width: 0;
}
.source b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.flow { text-align: center; font-family: var(--font-label); font-size: 0.95rem; font-weight: 500; color: var(--mark); letter-spacing: 0.08em; text-transform: uppercase; }
.sop { border: 2px solid var(--ink); border-radius: 8px; padding: 18px 20px; background: var(--bg); }
.sop-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-label); font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.sop-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.sop ol { margin: 8px 0 0; padding-left: 22px; font-size: 1.05rem; line-height: 1.55; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 480px) { .sources { grid-template-columns: 1fr; } }

/* Lists */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.moments > div { border-top: 3px solid var(--mark); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before {
  content: "Step " counter(step); font-family: var(--font-label); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mark);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card.lead { border-color: var(--accent); }
.more { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.card .more { margin-top: auto; }

/* 16:9 image slot. To use a real photo, replace the div with:
   <img class="shot" src="images/your-file.jpg" alt="Describe the image"> */
.shot {
  width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; background: var(--band); border: 1px solid var(--line);
}
div.shot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 16px; color: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 55%, transparent) 14px 15px);
}
div.shot span { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.05em; }
div.shot strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }

/* Case studies */
.cases { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.case > * { min-width: 0; }
.case:nth-child(even) .shot { order: 2; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.result { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teaser { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.teaser:hover h3 { color: var(--accent); }
.placeholder { background: color-mix(in srgb, var(--mark) 18%, transparent); padding: 0 4px; border-radius: 3px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about-grid > * { min-width: 0; }
.points { display: flex; flex-direction: column; gap: 32px; }
.points ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 65ch; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-label); font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-grid > * { min-width: 0; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-height: 46px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email { font-family: var(--font-label); font-size: 1rem; user-select: all; }
.copy { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 0.9rem var(--font-display); cursor: pointer; }
.form-note { font-size: 0.95rem; color: var(--muted); }

/* CTA strip and footer */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band-ink .btn { background: var(--bg); color: var(--ink) !important; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.92rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-row a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid, .case, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .case:nth-child(even) .shot { order: 0; }
  .cards, .moments, .steps, .teasers { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
