/* Preserve the site's Space Grotesk, mono/khaki themes, and sharp geometry.
   DESIGN_VARIANCE: 6; MOTION_INTENSITY: 4; VISUAL_DENSITY: 2.
   Pointer-driven artwork and the site's original lifting buttons. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

.consultancy-body {
  --home-muted: color-mix(in srgb, var(--text) 70%, var(--bg));
  --home-line: color-mix(in srgb, var(--text) 23%, var(--bg));
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

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

:where(.consultancy-body a) {
  color: var(--text);
}

.consultancy-body[data-theme="mono"] {
  --bg: #0b0b0b;
  --text: #f4f4f4;
}

.consultancy-home {
  width: min(100% - 6rem, 1180px);
  max-width: 1180px;
  margin: 0 auto;
}

.consultancy-home nav#top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin-left: 0;
  min-height: 72px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--home-line);
  /* Reuse the existing navigation/menu layer above the canvas. */
}

.consultancy-home .nav-brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.consultancy-home .nav-brand-mark,
.consultancy-home .theme-switcher-icon {
  display: inline-flex;
  line-height: 0;
}

.consultancy-home .nav-brand-mark svg {
  width: 1.75rem;
  height: 1.75rem;
}

.consultancy-home .nav-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  padding: 0.7rem 0;
}

.consultancy-home .nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
}

.consultancy-home .theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.consultancy-home .theme-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.consultancy-home .theme-switcher-icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.consultancy-home .theme-switcher-button:hover {
  border-color: var(--home-line);
}

.consultancy-home .theme-switcher-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 110;
  min-width: 10rem;
  border: 1px solid var(--text);
  background: var(--bg);
  padding: 0.35rem;
  display: none;
}

.consultancy-home .theme-switcher:focus-within .theme-switcher-menu {
  display: block;
}

.consultancy-home .theme-switcher-list {
  display: grid;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.consultancy-home .theme-link {
  display: block;
  border: 1px solid transparent;
  padding: 0.65rem 0.55rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.consultancy-home .theme-link:hover {
  border-color: var(--text);
}

.consultancy-home .theme-link.is-active {
  background: var(--text);
  color: var(--bg);
}

.consultancy-home section {
  padding: 0;
  text-align: left;
}

.consultancy-home .home-hero {
  padding-top: clamp(1.8rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
}

.home-wordmark {
  margin: 0;
  font-size: clamp(3.7rem, 11.1vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.072em;
  overflow-wrap: normal;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 1.75rem;
}

.home-monument {
  margin: 0;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.home-hero-copy {
  grid-column: 2;
  grid-row: 1;
}

.home-monument-stage {
  position: relative;
  height: clamp(360px, 36vw, 500px);
  isolation: isolate;
}

.home-monument-fallback,
.home-monument-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-monument-fallback {
  object-fit: contain;
  padding: 4%;
  mix-blend-mode: multiply;
}

.home-monument-fallback[hidden] {
  display: none;
}

[data-theme="mono"] .home-monument-fallback {
  filter: invert(1);
  mix-blend-mode: screen;
}

.home-monument-canvas {
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
}

[data-state="animated"] .home-monument-canvas {
  opacity: 1;
  pointer-events: auto;
}

[data-state="animated"] .home-monument-fallback {
  visibility: hidden;
}

.home-headline {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-introduction {
  max-width: 32rem;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.1rem;
  padding: 0 12px 12px 0;
}

/* Same face/offset-shadow mechanism as base-20260626.css. Keep it scoped
   here so the homepage does not load the shared application stylesheet. */
.consultancy-home .btn {
  --btn-lift: 6px;
  --btn-shadow-x: 12px;
  --btn-shadow-y: 12px;
  --btn-face-bg: var(--bg);
  --btn-face-color: var(--text);
  --btn-face-border: var(--text);
  --offset-shadow: var(--text);
  --btn-shadow-border: transparent;
  position: relative;
  isolation: isolate;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.consultancy-home .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--offset-shadow);
  border: 2px solid var(--btn-shadow-border);
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  pointer-events: none;
  z-index: 0;
}

.consultancy-home .btn__face {
  position: relative;
  z-index: 1;
  display: block;
  padding: 16px 22px;
  border: 4px solid var(--btn-face-border);
  border-radius: 0;
  background: var(--btn-face-bg);
  color: var(--btn-face-color);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  transition: transform 0.12s ease;
}

.consultancy-home .btn:hover .btn__face,
.consultancy-home .btn:focus-visible .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - var(--btn-lift)),
    calc(var(--btn-shadow-y) - var(--btn-lift)),
    0
  );
}

.consultancy-home .btn:active .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - (var(--btn-lift) * 0.33)),
    calc(var(--btn-shadow-y) - (var(--btn-lift) * 0.33)),
    0
  );
}

.consultancy-home .btn.primary {
  --btn-face-bg: var(--theme-btn-face-bg);
  --btn-face-color: var(--theme-btn-face-color);
  --btn-face-border: var(--theme-btn-face-border);
  --offset-shadow: var(--theme-offset-shadow);
  --btn-shadow-border: var(--theme-btn-shadow-border);
}

.consultancy-home .btn.inverse {
  --btn-face-bg: var(--theme-btn-inverse-face-bg);
  --btn-face-color: var(--theme-btn-inverse-face-color);
  --btn-face-border: var(--theme-btn-inverse-face-border);
  --offset-shadow: var(--theme-btn-inverse-offset-shadow);
  --btn-shadow-border: var(--theme-btn-inverse-shadow-border);
}

.home-hero-actions .btn__face {
  white-space: nowrap;
}

.consultancy-home .home-offerings {
  padding: 2.75rem 0 3rem;
  border-top: 1px solid var(--home-line);
  scroll-margin-top: 1.5rem;
}

.home-offerings-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.home-offerings-introduction {
  max-width: 40rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-offerings-list {
  margin: 2rem 0 0;
}

.home-offering {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  column-gap: 3rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--home-line);
}

.home-offering dt {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
}

.home-offering dd {
  max-width: 43rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.home-ai-rollouts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.8rem 2rem 2.2rem;
  border: 1px solid var(--home-line);
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
}

.home-rollout-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.home-rollout-copy p {
  max-width: 43rem;
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, var(--bg));
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-rollout-contact {
  margin-right: 12px;
}

.home-rollout-contact .btn__face {
  white-space: nowrap;
}

.consultancy-home .home-work {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--home-line);
  scroll-margin-top: 1.5rem;
}

.home-section-title {
  margin: 0 0 2.4rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.home-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  padding: 0 12px 12px 0;
}

.consultancy-home .home-project {
  display: block;
  min-width: 0;
  height: 100%;
}

.consultancy-home .home-project-face {
  height: 100%;
  min-height: 11rem;
  padding: 1.6rem 1.75rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

.home-project h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.home-project p {
  max-width: 28rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.65;
}

.consultancy-home .home-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 4rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--home-line);
  scroll-margin-top: 1.5rem;
}

.home-contact-introduction {
  max-width: 24rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-contact-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
}

.home-contact-wide {
  grid-column: 1 / -1;
}

.home-contact-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.home-contact-field input,
.home-contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--home-muted);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.home-contact-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.home-contact-field input:focus-visible,
.home-contact-field textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.home-contact-field [aria-invalid="true"] {
  border-width: 2px;
}

.home-field-error,
.home-contact-notice {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
}

.home-contact-notice {
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--text);
}

.home-contact-privacy {
  margin: 1.25rem 0 0;
  color: var(--home-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.home-contact-privacy a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.home-contact-submit-row {
  margin-top: 1.5rem;
  padding: 0 12px 12px 0;
}

.home-contact-submit .btn__face {
  white-space: nowrap;
}

.home-contact-submit:disabled {
  cursor: wait;
}

.contact-submit-loading,
.htmx-request .contact-submit-idle,
.home-contact-honeypot {
  display: none;
}

.htmx-request .contact-submit-loading {
  display: inline;
}

.home-contact-confirmation {
  padding: 1.5rem 0;
  border-top: 1px solid var(--home-muted);
}

.home-contact-confirmation h3 {
  margin: 0 0 0.65rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.home-contact-confirmation p {
  margin: 0;
  color: var(--home-muted);
  overflow-wrap: anywhere;
}

.home-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 1rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 0.75rem;
}

.home-footer-brand {
  color: var(--text);
  font-weight: 600;
}

.home-footer-apps,
.home-footer-legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.8rem;
}

.home-footer-legal {
  margin-left: auto;
}

.home-footer a {
  color: inherit;
  text-decoration: none;
}

.home-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.consultancy-home a:focus-visible,
.consultancy-home button:focus-visible,
.home-monument-canvas:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.home-skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
  /* Same navigation layer as the reused theme menu; no overlay on the artwork. */
  z-index: 110;
}

.home-skip-link:focus {
  transform: none;
}

@media (min-width: 768px) and (max-height: 780px) {
  .consultancy-home .home-hero {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }
  .home-wordmark {
    font-size: clamp(3.7rem, 9vw, 7rem);
  }
  .home-monument-stage {
    height: 360px;
  }
  .home-hero-layout {
    margin-top: 1rem;
  }
}

@media (max-width: 1023px) {
  .consultancy-home {
    width: calc(100% - 4rem);
  }
  .home-hero-layout {
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .consultancy-home {
    width: calc(100% - 2rem);
  }
  .consultancy-home nav#top-nav {
    min-height: 64px;
    padding: 0.7rem 0;
    gap: 0.75rem;
  }
  .consultancy-home .nav-actions {
    gap: 0.75rem;
  }
  .consultancy-home .nav-link {
    font-size: 0.8rem;
  }
  .consultancy-home .home-hero {
    padding: 1.7rem 0 1.25rem;
  }
  .home-wordmark {
    font-size: clamp(3.15rem, 12vw, 5.5rem);
    letter-spacing: -0.07em;
  }
  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.9rem;
  }
  .home-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .home-monument {
    grid-column: 1;
    grid-row: 2;
  }
  .home-headline {
    font-size: clamp(2.05rem, 7.5vw, 3.1rem);
    margin-bottom: 1rem;
  }
  .home-introduction {
    max-width: 31rem;
    font-size: 1rem;
  }
  .home-hero-actions {
    margin-top: 1.4rem;
    gap: 0.875rem;
  }
  .home-monument-stage {
    height: 330px;
  }
  .consultancy-home .home-offerings {
    padding: 2rem 0 2.5rem;
  }
  .home-offerings-introduction {
    font-size: 1rem;
  }
  .home-offerings-list {
    margin-top: 1.35rem;
  }
  .home-offering {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 1.2rem 0;
  }
  .home-offering dt {
    font-size: 1.05rem;
  }
  .home-offering dd {
    font-size: 0.95rem;
  }
  .home-ai-rollouts {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.25rem 1.25rem 2rem;
  }
  .home-rollout-contact {
    justify-self: start;
  }
  .consultancy-home .home-work {
    padding: 2rem 0 2.5rem;
  }
  .consultancy-home .home-contact-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    padding: 2rem 0 3rem;
  }
  .home-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-section-title {
    margin-bottom: 1.9rem;
  }
  .home-projects {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .home-hero-actions .btn__face {
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.08;
  }
  .consultancy-home .home-project-face {
    padding: 1.25rem;
  }
  .home-footer {
    column-gap: 1.5rem;
    padding: 1.5rem 0 2rem;
  }
  .home-footer-legal {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .consultancy-home .nav-actions {
    gap: 0.5rem;
  }
  .consultancy-home .nav-link {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consultancy-home .btn__face {
    transition: none;
  }
}
