/* =========================================================================
   LAMIAR — Bauhaus-tech design system
   off-white + primary red/blue/yellow used categorically
   ========================================================================= */

:root {
  /* Color — Bauhaus primaries used functionally (not decoratively) */
  --paper:        #f3f1ec;   /* off-white background */
  --paper-2:      #ebe8e1;   /* slightly deeper paper for layering */
  --ink:          #111111;   /* near-black for type */
  --ink-2:        #2a2a2a;
  --ink-3:        #5a5a5a;
  --rule:         #111111;   /* hairlines are full black, not grey — Bauhaus precision */
  --rule-soft:    rgba(17,17,17,0.12);

  /* Three primaries — never blended, never gradient */
  --red:          #d6342a;   /* Mast-ish — slightly warm primary red */
  --blue:         #1d3fb3;   /* deep primary blue */
  --yellow:       #f2c200;   /* saturated primary yellow */

  /* Sector tags — one primary per service category */
  --c-marketing:  var(--red);
  --c-it:         var(--blue);
  --c-admin:      var(--ink);
  --c-media:      var(--yellow);
  --c-ecom:       var(--red);
  --c-consult:    var(--blue);

  /* Typography */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;       /* geometric grotesk display */
  --font-body:    'Manrope', 'Helvetica Neue', Arial, sans-serif;       /* humanist sans, paired with Archivo */
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --fs-display:   clamp(56px, 7.4vw, 124px);
  --fs-h1:        clamp(40px, 5.5vw, 84px);
  --fs-h2:        clamp(30px, 3.6vw, 52px);
  --fs-h3:        clamp(22px, 2vw, 30px);
  --fs-body:      17px;
  --fs-small:     14px;
  --fs-mono:      13px;

  /* Layout */
  --maxw:         1440px;
  --gutter:       clamp(20px, 4vw, 56px);
  --rail:         88px;       /* left sidebar rail width on desktop */

  /* Motion */
  --ease:         cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-family: var(--font-display); }
p  { margin: 0; }
strong { font-weight: 600; }

/* Focus — Bauhaus-precise yellow outline, hard edges */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* Selection */
::selection { background: var(--yellow); color: var(--ink); }

/* =========================================================================
   Layout primitives
   ========================================================================= */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* Mono label — used for category tags, sector codes, meta info */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section codes — Bauhaus-style numeric prefixes */
.code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Hairline rule */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* =========================================================================
   Site header — minimal, fixed top
   ========================================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
}
.brand .mark::before {
  /* Bauhaus-style: red square + blue circle + yellow triangle composite mark */
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  top: -6px; right: -7px;
}
.brand .mark::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--yellow);
  bottom: -5px; left: -6px;
}

/* Nav — flex list, all items equal-height for perfect alignment */
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav-main li {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}
.nav-main a,
.nav-main > li > .nav-trigger {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  height: 32px;
}
.nav-main a:hover,
.nav-main > li > .nav-trigger:hover { color: var(--red); }
.nav-main a.active::after,
.nav-main > li.active > .nav-trigger::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}

/* Services dropdown — trigger button + hover panel */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: -16px;
  min-width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 60;
  margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.dropdown a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 18px;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--paper-2); color: var(--ink); }
.dropdown a .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================================
   Buttons — solid → bordered swap on hover
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn .arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--red    { background: var(--red);    border-color: var(--red);    color: var(--paper); }
.btn--red:hover    { background: transparent; color: var(--red); }
.btn--blue   { background: var(--blue);   border-color: var(--blue);   color: var(--paper); }
.btn--blue:hover   { background: transparent; color: var(--blue); }

/* =========================================================================
   Snap-scroll one-page (index)
   ========================================================================= */

.snap-host {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  margin-top: 64px; /* offset for fixed header */
  height: calc(100vh - 64px);
}
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 60px 0;
}
.snap-section .container { width: 100%; }

/* =========================================================================
   Section progress indicator — bottom-left
   ========================================================================= */

.section-indicator {
  position: fixed;
  bottom: 28px;
  left: var(--gutter);
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.section-indicator .si-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-indicator .si-total {
  color: var(--ink-3);
}
.section-indicator .si-label {
  border-left: 1px solid var(--rule);
  padding-left: 14px;
  margin-left: 4px;
  color: var(--ink-2);
}

/* Dot pagination — right side */
.dot-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dot-nav button {
  width: 10px; height: 10px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s var(--ease);
  position: relative;
}
.dot-nav button.active { background: var(--ink); }
.dot-nav button::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  color: var(--ink);
  background: var(--paper);
  padding: 2px 8px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.dot-nav button:hover::after { opacity: 1; }

/* =========================================================================
   Hero (snap section 1)
   ========================================================================= */

/* Hero section uses top alignment so content sits naturally near the top */
.snap-section.hero-section {
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Two-column hero: left = text stack, right = figure (vertically centered, occupies the empty space) */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  position: relative;
  align-items: stretch;
  min-height: calc(100vh - 64px - 64px); /* fill the visible area between header and section padding */
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta.left  { align-items: flex-start; text-align: left; }
.hero-meta.right { align-items: flex-end;   text-align: right; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: auto;  /* push to the bottom of the left column */
}
.hero-cta-row .small-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-figure {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Bauhaus composition mark — geometric primary shapes */
.bauhaus-mark {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  position: relative;
  animation: markEntrance 0.9s var(--ease-out) both;
}
@keyframes markEntrance {
  from { opacity: 0; transform: scale(0.94) rotate(-1.2deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* =========================================================================
   Services overview (snap section 2)
   ========================================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  background: var(--paper);
  position: relative;
  transition: background 0.25s var(--ease);
  text-decoration: none;
  color: var(--ink);
}
.service-cell:hover {
  background: var(--paper-2);
}
.service-cell .sc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.service-cell .sc-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.service-cell .sc-tag {
  width: 10px; height: 10px;
  background: var(--c-marketing);
  flex-shrink: 0;
}
.service-cell.s-marketing .sc-tag  { background: var(--red); }
.service-cell.s-it        .sc-tag  { background: var(--blue); }
.service-cell.s-admin     .sc-tag  { background: var(--ink); }
.service-cell.s-media     .sc-tag  { background: var(--yellow); }
.service-cell.s-ecom      .sc-tag  { background: var(--red); border: 1px solid var(--ink); }
.service-cell.s-consult   .sc-tag  { background: var(--blue); border: 1px solid var(--ink); }

.service-cell .sc-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 30px;
}
.service-cell .sc-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 12px;
}
.service-cell .sc-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 24px;
  color: var(--ink);
}
.service-cell .sc-cta .arrow { transition: transform 0.2s var(--ease); }
.service-cell:hover .sc-cta .arrow { transform: translateX(4px); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-header h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  max-width: 720px;
}
.section-header .sh-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  min-width: 200px;
}

/* =========================================================================
   Industries (snap section 3)
   ========================================================================= */

/* =========================================================================
   Industries (snap section 3) — richer layout, colored numerals, hover lift
   ========================================================================= */

.ind-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}
.ind-section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  max-width: 720px;
}
.ind-counter {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ind-counter .counter-num {
  display: inline-block;
  position: relative;
  min-width: 1.2em;
}
.ind-counter .counter-num::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: -6px; right: -6px;
  height: 14%;
  background: var(--yellow);
  z-index: -1;
}
.ind-counter .counter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.ind-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
  transition: padding 0.25s var(--ease);
}
.ind-row:first-child,
.ind-row:nth-child(5) { /* in second column too */ }
.ind-grid > div > .ind-row:first-child { border-top: 1px solid var(--rule); }

.ind-row .ir-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  transition: transform 0.25s var(--ease);
}
.ind-row .ir-body { display: flex; flex-direction: column; gap: 4px; }
.ind-row .ir-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.ind-row .ir-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 360px;
}

/* Categorical color rotation across the 8 rows — applied via :nth-child */
.ind-row[data-c="r"] .ir-num { color: var(--red); }
.ind-row[data-c="b"] .ir-num { color: var(--blue); }
.ind-row[data-c="y"] .ir-num { color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.ind-row[data-c="k"] .ir-num { color: var(--ink); }

/* Hover: number scales slightly + small colored marker bar slides in on the left */
.ind-row::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 0; height: 24px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: width 0.25s var(--ease);
}
.ind-row:hover { padding-left: 16px; }
.ind-row:hover::before { width: 4px; }
.ind-row:hover .ir-num { transform: translateY(-2px); }
.ind-row[data-c="r"]:hover::before { background: var(--red); }
.ind-row[data-c="b"]:hover::before { background: var(--blue); }
.ind-row[data-c="y"]:hover::before { background: var(--yellow); }
.ind-row[data-c="k"]:hover::before { background: var(--ink); }

/* =========================================================================
   About / Mission (snap section 4)
   ========================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.about-grid h2 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.about-grid h2 em {
  font-style: normal;
  color: var(--blue);
}
.about-body p {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 18px;
  color: var(--ink-2);
}
.about-body p:last-child { margin-bottom: 0; }
.about-principles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.about-principles .pr-item {
  padding: 22px 28px 22px 0;
  border-right: 1px solid var(--rule);
}
.about-principles .pr-item + .pr-item { padding-left: 28px; }
.about-principles .pr-item:last-child { border-right: 0; padding-right: 0; }
.about-principles .pr-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: block;
}
.about-principles h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.about-principles p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* =========================================================================
   Contact (snap section 5)
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.contact-grid h2 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.contact-grid h2 em {
  font-style: normal;
  color: var(--yellow);
  background: var(--ink);
  padding: 0 8px;
}
.contact-lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 460px;
}
.contact-info {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.contact-info .ci-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.contact-info .ci-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.contact-info .ci-value a:hover { color: var(--red); text-decoration: underline; }

/* Contact form — compact inline single-column (Lamiar style) */
.contact-form {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px 28px 24px;
  position: relative;
}
.contact-form::before {
  content: "FORM / 01";
  position: absolute;
  top: -10px; left: 16px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 0 8px;
  color: var(--ink-3);
}
.contact-form h3 {
  font-size: 20px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.contact-form .form-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.18s var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.form-field textarea { min-height: 70px; resize: vertical; }
.form-field .err {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.04em;
}
.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select { border-bottom-color: var(--red); }
.form-field.invalid .err { display: block; }
.form-success {
  display: none;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.form-success.show { display: block; }
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-footer .form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* =========================================================================
   Footer
   ========================================================================= */

footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 28px;
  margin-top: 0;
  scroll-snap-align: start;
}
footer.site .container {}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.18);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 16px;
}
.foot-brand .mark {
  width: 26px; height: 26px;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
}
.foot-brand .mark::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  top: -6px; right: -7px;
}
.foot-brand .mark::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--yellow);
  bottom: -5px; left: -6px;
}
.foot-desc {
  font-size: 14.5px;
  color: rgba(243, 241, 236, 0.7);
  max-width: 360px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.foot-legal-mini {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(243, 241, 236, 0.55);
}
footer.site h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}
footer.site ul li { margin-bottom: 10px; font-size: 14px; }
footer.site ul li a { color: rgba(243, 241, 236, 0.85); transition: color 0.18s var(--ease); }
footer.site ul li a:hover { color: var(--yellow); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(243, 241, 236, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom .links { display: flex; gap: 22px; align-items: center; }
.foot-bottom .links a:hover { color: var(--paper); }

/* Memorial easter egg — helmet icon at end of .links row */
.memorial {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

/* Legal page typography — readable spacing between paragraphs, lists, sections */
.legal-wrap {
  padding: 80px 0 96px;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule, rgba(0,0,0,0.12));
}
.legal-header h1 {
  margin-top: 14px;
  margin-bottom: 18px;
}
.legal-header .legal-meta {
  font-size: 14.5px;
  color: var(--ink-2, #555);
  line-height: 1.55;
  margin: 0;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 18px;
}
.legal-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 15.5px;
  line-height: 1.62;
  margin: 0 0 16px 0;
  color: var(--ink-2, #333);
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}
.legal-section ul li {
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--ink-2, #333);
}
.legal-section ul li:last-child {
  margin-bottom: 0;
}
.legal-section a {
  color: var(--blue, #1d3fb3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover {
  color: var(--ink, #111);
}

/* =========================================================================
   Internal page layout (used by service-*.html, legal pages, etc.)
   ========================================================================= */

.page-wrap {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.page-hero .ph-meta {
  display: flex;
  gap: 22px;
  margin-bottom: 32px;
  align-items: center;
}
.page-hero .ph-tag {
  width: 14px; height: 14px;
}
.page-hero h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 1000px;
}
.page-hero .ph-lede {
  margin-top: 28px;
  font-size: 20px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 720px;
}

/* Service detail sections */
.svc-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}
.svc-section:last-child { border-bottom: 0; }
.svc-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}
.svc-grid h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
}
.svc-grid .svc-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: block;
}
.svc-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.svc-body p:last-child { margin-bottom: 0; }
.svc-body strong { color: var(--ink); font-weight: 600; }

/* Capability list — Bauhaus crisp */
.cap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cap-list .ci {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
}
.cap-list .ci .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.cap-list .ci .nm {
  font-size: 16px;
  color: var(--ink);
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
}
.process-steps .ps {
  border-right: 1px solid var(--rule);
  padding: 22px 28px 26px 0;
}
.process-steps .ps + .ps { padding-left: 28px; }
.process-steps .ps:last-child { border-right: 0; padding-right: 0; }
.process-steps .ps-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.process-steps .ps-num.c1 { color: var(--red); }
.process-steps .ps-num.c2 { color: var(--blue); }
.process-steps .ps-num.c3 { color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.process-steps .ps-num.c4 { color: var(--ink); }
.process-steps .ps h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.process-steps .ps p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Audience callout */
.audience-box {
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  padding: 22px 26px;
}
.audience-box h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-3);
}
.audience-box p { font-size: 16px; color: var(--ink); line-height: 1.55; }
.audience-box ul { margin-top: 10px; }
.audience-box ul li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.audience-box ul li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--ink);
  flex-shrink: 0;
}

/* Inline contact card on service pages */
.svc-contact {
  background: var(--ink);
  color: var(--paper);
  padding: 48px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  margin: 0;
}
.svc-contact h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1;
}
.svc-contact .sc-body p {
  font-size: 16px;
  color: rgba(243, 241, 236, 0.78);
  margin-bottom: 16px;
}
.svc-contact .sc-emails {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.svc-contact .sc-emails a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--yellow);
  border-bottom: 1px solid rgba(242, 194, 0, 0.4);
  padding-bottom: 2px;
}
.svc-contact .sc-emails a:hover { border-bottom-color: var(--yellow); }

/* Cross-link panel */
.cross-links {
  padding: 60px 0;
  background: var(--paper);
}
.cross-links h3 {
  font-size: var(--fs-h3);
  margin-bottom: 28px;
}
.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cross-grid a {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 22px 28px 22px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.2s var(--ease);
  font-size: 16px;
}
.cross-grid a + a { padding-left: 28px; }
.cross-grid a:hover { background: var(--paper-2); }
.cross-grid a:last-child { border-right: 0; }
.cross-grid .cg-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.cross-grid .cg-arrow {
  margin-left: auto;
  transition: transform 0.2s var(--ease);
}
.cross-grid a:hover .cg-arrow { transform: translateX(4px); }

/* =========================================================================
   Legal pages
   ========================================================================= */

.legal-wrap {
  padding: 80px 0 100px;
}
.legal-wrap .legal-meta {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-wrap h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.legal-wrap .legal-body {
  max-width: 760px;
}
.legal-wrap .legal-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 44px;
  margin-bottom: 16px;
  font-weight: 600;
}
.legal-wrap .legal-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.005em;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}
.legal-wrap .legal-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.legal-wrap .legal-body ul {
  margin-bottom: 18px;
  padding-left: 0;
}
.legal-wrap .legal-body ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 4px 0 4px 22px;
  position: relative;
}
.legal-wrap .legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--ink);
}
.legal-wrap .legal-body a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.legal-wrap .legal-body a:hover { background: var(--blue); color: var(--paper); }

/* =========================================================================
   Cookie banner
   ========================================================================= */

.cc-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: 460px;
  background: var(--ink);
  color: var(--paper);
  padding: 24px 24px 22px;
  z-index: 100;
  border: 0;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
  font-family: var(--font-body);
}
.cc-banner.show { transform: translateY(0); opacity: 1; }
.cc-banner h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--paper);
}
.cc-banner p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(243, 241, 236, 0.78);
  margin-bottom: 16px;
}
.cc-banner p a { color: var(--yellow); border-bottom: 1px solid rgba(242, 194, 0, 0.5); }
.cc-banner p a:hover { border-bottom-color: var(--yellow); }
.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.cc-btn {
  padding: 10px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.cc-btn:hover { background: var(--paper); color: var(--ink); }
.cc-btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cc-btn--primary:hover { background: var(--paper); border-color: var(--paper); }

/* Customize panel */
.cc-customize {
  display: none;
  margin-top: 14px;
  border-top: 1px solid rgba(243, 241, 236, 0.2);
  padding-top: 14px;
}
.cc-customize.show { display: block; }
.cc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(243, 241, 236, 0.1);
  font-size: 13px;
}
.cc-row:last-child { border-bottom: 0; }
.cc-row label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.cc-row .cc-locked { color: rgba(243, 241, 236, 0.45); font-size: 10px; }
.cc-toggle {
  position: relative;
  width: 34px; height: 18px;
  background: rgba(243, 241, 236, 0.2);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.cc-toggle::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  top: 2px; left: 2px;
  background: var(--paper);
  transition: left 0.18s var(--ease);
}
.cc-toggle.on { background: var(--yellow); }
.cc-toggle.on::before { left: 18px; }

/* Save button in customize */
.cc-save-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cc-save-row .cc-btn { flex: 1; }

/* =========================================================================
   Reveal animation
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .svc-grid, .svc-contact { grid-template-columns: 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps .ps:nth-child(2) { border-right: 0; }
  .process-steps .ps:nth-child(3) { padding-left: 0; }
  .ind-grid { grid-template-columns: 1fr; gap: 0; }
  .ind-section-head { grid-template-columns: 1fr; align-items: start; }
  .ind-counter { font-size: 88px; }
  .cap-list { grid-template-columns: 1fr; }
  .cross-grid { grid-template-columns: 1fr; }
  .cross-grid a { border-right: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  /* Hero stacks vertically on tablet — text first, figure below */
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 32px; }
  .hero-right { align-items: flex-start; text-align: left; }
  .hero-meta.right { align-items: flex-start; text-align: left; }
  .hero-figure { margin-top: 8px; margin-bottom: 8px; }
  .bauhaus-mark { max-width: 280px; }
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-principles { grid-template-columns: 1fr; }
  .about-principles .pr-item { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 16px;
    border-bottom: 1px solid var(--ink);
    align-items: flex-start;
    height: auto;
  }
  .nav-main.open li { height: auto; }
  .menu-toggle { display: inline-flex; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; padding-left: 16px; border: 0; min-width: auto; }
  .dot-nav { display: none; }
  .section-indicator { bottom: 16px; left: var(--gutter); }
  .section-indicator .si-label { display: none; }
  .cross-grid a { border-right: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .cc-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .cc-actions { grid-template-columns: 1fr; }
  .svc-contact { padding: 32px 24px; }
  .ind-row { grid-template-columns: 72px 1fr; }
  .ind-row .ir-num { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .snap-host { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}

/* Case Studies grid — added for v3 */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 36px;
}
.case-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 28px 28px;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
}
.case-card:nth-child(1) {
  grid-column: 1 / -1;
}
.case-card .cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.case-card .cc-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.case-card .cc-tag {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.case-card .cc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.case-card .cc-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
}
.case-card .cc-stats li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.case-card .cc-stats li strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  display: block;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.case-card .cc-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-card:nth-child(1) {
    grid-column: 1;
  }
}

