﻿/* ==========================================================================
   Dokimos Consulting â€” Design Tokens
   ========================================================================== */
:root {
  --ink: #1C1710;
  --ink-soft: #5B5648;
  --ink-faint: #8A8574;
  --paper: #F7F4EE;
  --paper-alt: #EDE8DC;
  --line: rgba(28, 23, 16, 0.12);
  --line-dark: rgba(247, 244, 238, 0.16);
  --blue: #2E63C4;
  --green: #2FA968;
  --dark: #14120D;
  --dark-text: #F2EFE7;
  --dark-text-soft: rgba(242, 239, 231, 0.68);
  --header-bg: rgba(247, 244, 238, 0.94);
  --fallback-stripe: #E3DCC9;
  --input-bg: #FFFFFF;

  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;

  --container-w: 1240px;
  --pad-inline: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode â€” toggled via <html data-theme="dark">, set by js/main.js and
   persisted in localStorage. Every color below the design-tokens block is
   sourced from these variables, so this is the only place theme colors
   need to be defined. */
html[data-theme="dark"] {
  --ink: #F0ECE3;
  --ink-soft: rgba(240, 236, 227, 0.7);
  --ink-faint: rgba(240, 236, 227, 0.48);
  --paper: #15130E;
  --paper-alt: #201C15;
  --line: rgba(240, 236, 227, 0.14);
  --line-dark: rgba(240, 236, 227, 0.08);
  --blue: #6693E8;
  --green: #45C888;
  --dark: #0A0906;
  --dark-text: #F2EFE7;
  --dark-text-soft: rgba(242, 239, 231, 0.68);
  --header-bg: rgba(21, 19, 14, 0.92);
  --fallback-stripe: #2A251D;
  --input-bg: #1C1912;
}

body,
.site-header,
.stats-bar,
.site-footer,
.section-dark,
.value-card,
.img-fallback,
.form-field input,
.form-field textarea,
.filter-btn,
.social-row a {
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--dark-text);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.content-load-error { padding: 4rem 1.5rem; font-family: sans-serif; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.section-dark .eyebrow, .dark .eyebrow { color: var(--green); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(1.125rem, 2.25vw, 2rem); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.9rem; }
.section-head .lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head .lead { color: var(--dark-text-soft); }

h2.display, .display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin-top: 1.1rem;
}

/* reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: #244f9f; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.brand-name-sub {
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
}
.site-nav ul { display: flex; gap: 2.1rem; }
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--blue);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { opacity: 1; transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px; height: 38px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  padding: 0;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.header-actions .nav-cta { height: 40px;}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .header-actions .nav-cta { display: none; }

  /* Push-drawer mobile nav: opening it shifts the whole page left instead
     of overlaying on top of it. #page-shell wraps everything except the
     drawer itself, so the drawer (a sibling, fixed to the true viewport)
     slides into the space the page reveals as it moves out of the way. */
  #page-shell {
    transition: transform 0.35s var(--ease);
  }
  body.nav-open #page-shell {
    transform: translateX(calc(-1 * min(300px, 85vw)));
    pointer-events: none;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  z-index: 250;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  padding: 0 1rem;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}
body.nav-open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1.15rem;
  padding-right: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-brand span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.mobile-nav-brand small {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.mobile-nav-drawer ul { display: flex; flex-direction: column; gap: 1rem; padding-block-start: 1rem; }
.mobile-nav-drawer a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.4rem;
  position: relative;
}
.mobile-nav-drawer a[aria-current="page"] { color: var(--blue); }
.mobile-nav-close {
  position: absolute;
  top: 1.75rem; right: 1.75rem;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}
.mobile-nav-close svg { width: 20px; height: 20px; }
@media (min-width: 861px) {
  .mobile-nav-drawer { display: none; }
}

/* Inner pages have no full-bleed hero pushing content below the fixed
   header, so give the first section a little extra clearance. */
body:not([data-page="home"]) #main-content { padding-top: 24px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,13,9,0.45) 0%, rgba(15,13,9,0.35) 40%, rgba(15,13,9,0.88) 100%);
}
.hero-bottom {
  position: relative; z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-text { max-width: 46ch; }
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}
.hero-text .lead {
  display: block;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.86);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.hero-text h1,
.hero-text .lead { transition: opacity 0.3s var(--ease), text-decoration-color 0.3s var(--ease); }
.hero-text .lead:hover { text-decoration-color: currentColor; }
.hero-text h1.is-fading,
.hero-text .lead.is-fading { opacity: 0; }

.hero-carousel { flex-shrink: 0; }
.carousel-bars { display: flex; gap: 0.4rem; width: clamp(140px, 20vw, 220px); }
.carousel-bar {
  position: relative;
  flex: 1 1 0;
  height: 3px;
  background: rgba(255,255,255,0.28);
  border: none;
  padding: 0;
  overflow: hidden;
}
.carousel-bar-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: #fff;
}
.carousel-bar.is-past .carousel-bar-fill { width: 100%; }
.carousel-bar.is-active .carousel-bar-fill {
  animation-name: carouselBarFill;
  animation-duration: var(--carousel-duration, 5s);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes carouselBarFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Wrapper JS puts around every <img>; lets object-fit:cover work regardless
   of which section (hero / card / project) is hosting it. */
.media-frame { width: 100%; height: 100%; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame .img-fallback { width: 100%; height: 100%; }

/* Image fallback placeholder (shown via JS when a real image fails to load) */
.img-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--paper-alt), var(--paper-alt) 10px, var(--fallback-stripe) 10px, var(--fallback-stripe) 20px);
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 1rem;
}
.hero-media .img-fallback { position: absolute; inset: 0; }

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar { background: var(--dark); color: var(--dark-text); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--green);
  line-height: 1;
}
.stat-label {
  margin-top: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--dark-text-soft);
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   About (home page)
   ========================================================================== */
.about-copy { max-width: 760px; }
.about-copy .lead { font-size: 1.2rem; margin-top: 1.2rem; }
.about-copy .body { margin-top: 1.3rem; color: var(--ink-soft); }
.values-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-card {
  background: var(--paper);
  padding: 2rem 1.6rem;
}
.value-index {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.85;
  color: var(--blue);
}
.value-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.9rem;
}
.value-desc { margin-top: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.pillar-card { display: flex; flex-direction: column; }
.pillar-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-media-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 25%, rgba(10,9,6,0.9) 100%);
  color: #fff;
}
.pillar-media-overlay .pillar-icon { width: 28px; height: 28px; color: #fff; }
.pillar-media-overlay .pillar-name {
  margin: 1px 0 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
}
.pillar-media-overlay .pillar-summary { margin-top: 0.5rem; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.pillar-capabilities { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.pillar-capabilities li {
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  display: flex;
  gap: 0.6em;
}
.pillar-capabilities li::before { content: '\2192'; color: var(--blue); }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Approach
   ========================================================================== */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.step-card { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.85;
  color: var(--green);
}
.step-title {
  margin: 0.125rem 0 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
}
.step-desc { margin-top: 0.6rem; font-size: 0.92rem; color: var(--dark-text-soft); }
@media (max-width: 900px) {
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .approach-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Shared "info inside the image" card pattern — used by project, person,
   and news cards alike. Each keeps its own class name as an HTML hook
   (and for the few genuinely different rules below), but the identical
   declarations are grouped here instead of repeated per card type. */
.project-card, .person-card, .news-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}
.project-card.is-hidden { display: none; }
.project-card img, .person-card img, .news-card img { transition: transform 0.6s var(--ease); }
.project-card:hover img, .person-card:hover img, .news-card:hover img { transform: scale(1.06); }
.project-overlay, .person-overlay, .news-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12,10,7,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}
.project-tag, .news-tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}
.project-title, .person-name, .news-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}
.project-meta, .news-date {
  margin-top: 0.4rem;
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.project-desc, .person-bio {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
/* Project descriptions are hover/tap-revealed; person bios and news
   excerpts are always visible, so only .project-desc gets this override. */
.project-desc {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease);
}
.project-card:hover .project-desc,
.project-card:focus-within .project-desc,
.project-card.is-active .project-desc { max-height: 140px; opacity: 1; margin-top: 0.8rem; }

.person-role {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.projects-grid, .people-grid, .news-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.people-grid, .news-grid { grid-template-columns: repeat(4, 1fr); }

.projects-grid + .btn { margin-top: clamp(2rem, 4vw, 3rem); }

/* Home page's "Featured Work" teaser: 3 projects on larger screens,
   a 4th appears only on narrow/mobile viewports. */
#featured-work .projects-grid .project-card:nth-child(4) { display: none; }
@media (max-width: 560px) {
  #featured-work .projects-grid .project-card:nth-child(4) { display: block; }
}

@media (max-width: 1100px) {
  .people-grid, .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .people-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid, .people-grid, .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Trust (logo wall)
   ========================================================================== */
.trust-logos {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.trust-logo {
  width: 140px;
  height: 44px;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.trust-logo:hover { filter: grayscale(0) opacity(1); }
.trust-logo .media-frame img { object-fit: contain; }
.trust-logo .img-fallback { font-size: 0.65rem; padding: 0.4rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-info .lead { margin-top: 1rem; color: var(--ink-soft); }
.contact-detail { margin-top: 2rem; }
.contact-detail dt {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-detail dd { margin: 0.3rem 0 1.2rem; font-size: 1rem; }
.social-row { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.social-row a:hover { background: var(--ink); color: var(--paper); }
.social-row svg { width: 18px; height: 18px; }

.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: var(--radius);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: -0.3rem; }
.form-note--success { color: var(--blue); }
.form-note--error { color: #c0392b; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--dark-text); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-note { margin-top: 1rem; max-width: 34ch; color: var(--dark-text-soft); font-size: 0.9rem; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text-soft);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col li { font-size: 0.92rem; padding-block: 0.3rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--dark-text-soft);
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner-inner {
  position: fixed;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  z-index: 150;
  max-width: 620px;
  margin-inline: auto;
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner-inner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text { font-size: 0.88rem; color: var(--dark-text-soft); max-width: 380px; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 0.6rem 1.15rem; font-size: 0.82rem; }
@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound-inner { max-width: 640px; }
.notfound-heading { margin-top: 0.8rem; font-size: clamp(3rem, 8vw, 6rem); }
.notfound .lead { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.1rem; }
.notfound-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
