/* HexzMedia — derived from hexz.net: square grid, one accent colour,
   night (neon on near-black) and day (ink on paper). */

:root {
  --cell: 165px;
  --gutter: 16px;
  --line-w: 2px;
  --font: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

/* Accent colour: neon yellow (like the edge of the Hexz wordmark),
     with one small block of neon green as an extra. */
:root {
  --accent-base: #f7ef1e;
  --accent-neon: #ffff3a;
  --accent-ink: #6b6300;
  --green-neon: #39ff6a;
  --green-base: #30b779;
}

/* Night (main theme) */
:root,
:root[data-theme="night"] {
  --bg: #0a0a0c;
  --bg-raised: #131317;
  --text: #ededed;
  --muted: #a0a0a8;
  --line: rgba(255, 255, 255, 0.85);
  --line-soft: rgba(255, 255, 255, 0.18);
  --accent: var(--accent-neon);
  --accent-fill: var(--accent-base);
  --on-accent: #0a0a0c;
  --glow: 0 0 6px color-mix(in srgb, var(--accent-neon) 70%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-neon) 35%, transparent);
  --line-glow: drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
  --green: var(--green-neon);
  --green-glow: 0 0 10px color-mix(in srgb, var(--green-neon) 75%, transparent),
    0 0 28px color-mix(in srgb, var(--green-neon) 40%, transparent);
  --logo-media: rgba(255, 255, 255, 0.5);
  --logo-glow: drop-shadow(0 0 4px rgba(255, 255, 0, 0.55));
  /* Light fields (hero, service card) and cells that light up (js/hero.js) */
  --light-white: rgba(255, 255, 255, 0.09);
  --light-yellow: rgba(250, 238, 186, 0.13);
  --field-white: rgba(255, 255, 255, 0.14);
  --field-yellow: rgba(250, 238, 186, 0.26);
  color-scheme: dark;
}

/* Day */
:root[data-theme="day"] {
  --bg: #f6f4ef;
  --bg-raised: #ffffff;
  --text: #141414;
  --muted: #55555c;
  --line: #141414;
  --line-soft: rgba(20, 20, 20, 0.14);
  --accent: var(--accent-ink);
  --accent-fill: var(--accent-base);
  --on-accent: #141414;
  --glow: none;
  --line-glow: none;
  --green: var(--green-base);
  --green-glow: none;
  --logo-media: #141414;
  --logo-glow: none;
  --light-white: rgba(255, 255, 255, 0.75);
  --light-yellow: rgba(247, 239, 30, 0.28);
  --field-white: #ffffff;
  --field-yellow: rgba(247, 239, 30, 0.4);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover,
a:focus-visible {
  text-shadow: var(--glow);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: calc(var(--cell) * 8);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

/* Logo: thin "MEDIA" in the background, the original "Hexz" in front */
.mark {
  display: block;
  color: var(--logo-media);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  text-decoration: none;
}
.logo:hover,
.logo:focus-visible {
  text-shadow: none;
}
/* On the homepage the logo in the header only appears once the large logo in the hero
   is out of view (js/logo.js sets .show-logo). Without script it is simply there. */
.site-header .logo {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}
.js .site-header.hide-logo:not(.show-logo) .logo {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  .site-header .logo,
  .js .site-header.hide-logo:not(.show-logo) .logo {
    transition: none;
    transform: none;
  }
}

/* "MEDIA" fills the height of the header */
.logo .mark {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 635 / 160;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

/* Contact button in the header: always in view, also on mobile */
.site-nav .nav-cta {
  padding: 7px 12px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--on-accent);
  box-shadow: var(--glow);
  text-shadow: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .dot {
  width: 10px;
  height: 10px;
  background: var(--accent-fill);
  box-shadow: var(--glow);
}

@media (max-width: 720px) {
  .site-nav {
    gap: 12px;
  }
  .site-nav .nav-link {
    display: none;
  }
}
@media (max-width: 400px) {
  .theme-toggle .label {
    display: none;
  }
}

/* ---------- Hero on the grid ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  --grid-edge: color-mix(in srgb, var(--line) 38%, transparent);
}

/* The grid continues on both sides to the edge of the screen */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(0px, calc((100% - var(--cell) * 8) / 2));
  background-image: linear-gradient(var(--grid-edge) 0 var(--line-w), transparent 0),
    linear-gradient(90deg, var(--grid-edge) 0 var(--line-w), transparent 0);
  background-size: var(--cell) var(--cell);
  pointer-events: none;
}
.hero::before {
  left: 0;
  background-position: right calc(var(--line-w) / -2) top calc(var(--line-w) / -2);
  -webkit-mask-image: linear-gradient(to left, #000, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(to left, #000, rgba(0, 0, 0, 0.35));
}
.hero::after {
  right: 0;
  background-position: left calc(var(--line-w) / -2) top calc(var(--line-w) / -2);
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35));
}

/* Cells that light up very faintly, in and beside the grid (js/hero.js) */
.hero-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-light span {
  position: absolute;
  opacity: 0;
}
.hero-light span.white {
  background: var(--light-white);
}
.hero-light span.yellow {
  background: var(--light-yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-light span {
    animation: cell-light var(--duration, 6s) ease-in-out var(--delay, 0s) infinite;
  }
  @keyframes cell-light {
    0%, 100% { opacity: 0; }
    45%, 55% { opacity: 1; }
  }
}

.grid {
  position: relative;
  display: grid;
  /* minmax(0, 1fr): columns do not grow with their content */
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: minmax(calc(min(100vw, var(--cell) * 8) / 8), auto);
  max-width: calc(var(--cell) * 8);
  margin: 0 auto;
  filter: var(--line-glow);
}
.grid .c {
  aspect-ratio: 1;
  border: var(--line-w) solid var(--line);
  margin: calc(var(--line-w) / -2);
}
.grid .c.fill {
  background: var(--accent-fill);
}
/* Hatching in the direction of the diagonal of the X in Hexz (59°) */
.grid .c.fill-soft {
  background: repeating-linear-gradient(
    -59deg,
    var(--accent-fill) 0 2px,
    transparent 2px 12px
  );
}
/* Light fields: transparent white or light yellow instead of solid yellow */
.grid .c.light-white {
  background: var(--field-white);
}
.grid .c.light-yellow {
  background: var(--field-yellow);
}
.grid .c.blank {
  border-color: transparent;
}
/* The one green block */
.grid .c.green {
  background: var(--green);
  box-shadow: var(--green-glow);
  position: relative;
  z-index: 1;
}

/* "MEDIA" fills the whole block, in height and width */
.hero-logo {
  grid-column: 1 / span 4;
  grid-row: 1;
  display: flex;
  border: var(--line-w) solid var(--line);
  margin: calc(var(--line-w) / -2);
  background: var(--bg);
  overflow: hidden;
}
.hero-logo .mark {
  width: 100%;
  height: 100%;
}

/* ---------- The logo comes alive (js/logo.js) ---------- */

:root[data-theme="night"] .hero-logo .mark.live .media {
  filter: drop-shadow(0 0 2px rgba(230, 240, 255, 0.55))
    drop-shadow(0 0 7px rgba(200, 220, 255, 0.25));
}
.mark .rays {
  opacity: 0.3;
  mix-blend-mode: screen;
}
:root[data-theme="day"] .mark .rays {
  mix-blend-mode: multiply;
  opacity: 0.2;
}
.mark .rays-spin {
  transform-box: view-box;
  transform-origin: 321px 83px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Fluorescent tubes, only in the hero: each segment ignites on its own and then
     flickers now and then. In the header MEDIA stands still. */
  .hero-logo .mark.live .tl {
    animation: tl-on 1.1s step-end var(--start) both,
      tl-hum var(--rhythm) step-end calc(var(--start) + 1.1s) infinite;
  }
  .hero-logo .mark.live .tl.broken {
    animation: tl-on 1.1s step-end var(--start) both,
      tl-broken 7s step-end calc(var(--start) + 1.1s) infinite;
  }
  @keyframes tl-on {
    0% { opacity: 0; }
    18% { opacity: 0.8; }
    24% { opacity: 0.05; }
    38% { opacity: 0.6; }
    44% { opacity: 0; }
    62% { opacity: 1; }
    68% { opacity: 0.3; }
    74%, 100% { opacity: 1; }
  }
  @keyframes tl-hum {
    0% { opacity: 1; }
    61% { opacity: 0.25; }
    62% { opacity: 1; }
    63% { opacity: 0.1; }
    64.5% { opacity: 0.85; }
    66%, 100% { opacity: 1; }
  }
  @keyframes tl-broken {
    0% { opacity: 1; }
    18% { opacity: 0.15; }
    19% { opacity: 0.9; }
    21% { opacity: 0.05; }
    34% { opacity: 0.7; }
    35% { opacity: 0.1; }
    37% { opacity: 1; }
    70% { opacity: 0.2; }
    71% { opacity: 1; }
    72% { opacity: 0.3; }
    74%, 100% { opacity: 1; }
  }

  /* "Hexz" lights up when the page opens, then dims a little */
  .mark.live .hexz {
    animation: hexz-rise 2.8s ease-out 0.5s both;
  }
  :root[data-theme="day"] .mark.live .hexz {
    animation: none;
  }
  @keyframes hexz-rise {
    0% { filter: drop-shadow(0 0 0 rgba(255, 255, 0, 0)); }
    30% {
      filter: drop-shadow(0 0 6px rgba(255, 255, 80, 1))
        drop-shadow(0 0 22px rgba(255, 255, 0, 0.8));
    }
    100% { filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.55)); }
  }
  .mark .rays {
    animation: rays-rise 3.2s ease-out 0.5s both;
  }
  .mark .rays-spin {
    animation: rays-turn 90s linear infinite;
  }
  @keyframes rays-rise {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0.3; }
  }
  @keyframes rays-turn {
    to { transform: rotate(360deg); }
  }
}

.hero-text {
  grid-column: 1 / span 5;
  grid-row: 2 / span 2;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  background: var(--bg);
  border: var(--line-w) solid var(--line);
  margin: calc(var(--line-w) / -2);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: var(--glow);
}
.hero .sub {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
}

.hero-intro {
  grid-column: 6 / span 3;
  grid-row: 3;
  aspect-ratio: auto;
  padding: 20px 24px;
  background: var(--accent-fill);
  color: var(--on-accent);
  border: var(--line-w) solid var(--line);
  margin: calc(var(--line-w) / -2);
  font-size: 0.98rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .grid .c,
  .hero-text,
  .hero-intro {
    animation: ignite 900ms ease-out both;
  }
  .grid .c:nth-child(3n) {
    animation-delay: 120ms;
  }
  .grid .c:nth-child(4n + 1) {
    animation-delay: 260ms;
  }
  @keyframes ignite {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 0.7;
    }
    40% {
      opacity: 0.2;
    }
    100% {
      opacity: 1;
    }
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(25vw, auto);
  }
  .grid .c.wide-only {
    display: none;
  }
  .hero-text {
    grid-column: 1 / span 4;
    grid-row: 2;
    padding: 28px 24px;
  }
  .hero-intro {
    grid-column: 1 / span 4;
    grid-row: 3;
    padding: 20px 24px;
  }
  .grid .c {
    aspect-ratio: auto;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: var(--cell) 1fr;
  gap: 0 32px;
  margin-bottom: 40px;
}
.section-head .mono {
  padding-top: 10px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.section-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

@media (max-width: 720px) {
  section {
    padding: 48px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 62ch;
}
.prose p {
  margin: 0 0 1em;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line-w) solid var(--line);
  border-left: var(--line-w) solid var(--line);
  filter: var(--line-glow);
}
.card {
  display: flex;
  flex-direction: column;
  border-right: var(--line-w) solid var(--line);
  border-bottom: var(--line-w) solid var(--line);
  background: var(--bg);
}
.card-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: var(--cell);
  padding: 20px 24px;
  border-bottom: var(--line-w) solid var(--line);
}
.card-top h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
}
.card-top .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.card:nth-child(1) .card-top {
  background: var(--accent-fill);
  color: var(--on-accent);
}
.card:nth-child(1) .card-top .num {
  color: var(--on-accent);
}
.card:nth-child(2) .card-top {
  background: repeating-linear-gradient(
    -59deg,
    color-mix(in srgb, var(--accent-fill) 55%, transparent) 0 2px,
    transparent 2px 12px
  );
}
/* Implementeren: translucent yellow, like the light fields in the hero */
.card:nth-child(3) .card-top {
  background: var(--field-yellow);
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.97rem;
}
/* The result of each service: concept, design, product */
.card-body .result {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.card-body .result .mono {
  display: block;
  margin-bottom: 4px;
}
.card-body .result strong {
  display: block;
  color: var(--text);
  font-size: 1.25rem;
}
.card-body .lead {
  margin: 0 0 16px;
  font-weight: bold;
}
.card-body ul {
  margin: 0 0 16px;
  padding-left: 1.1em;
}
.card-body li {
  margin-bottom: 6px;
}
.card-body li::marker {
  color: var(--accent);
}
.card-body .note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-body .case {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.card-cta {
  display: block;
  margin: 12px -24px -24px;
  padding: 14px 24px;
  border-top: var(--line-w) solid var(--line);
  font-weight: bold;
  text-decoration: none;
}
.card-cta:hover,
.card-cta:focus-visible {
  background: var(--accent-fill);
  color: var(--on-accent);
  text-shadow: none;
}

/* Next step after a section */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  border: var(--line-w) solid var(--accent);
  box-shadow: var(--glow);
}
.cta-band p {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .card-top {
    min-height: 96px;
  }
}

/* ---------- Common thread: goals → make → measure → adjust ---------- */

.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--line-w) solid var(--line);
  border-left: var(--line-w) solid var(--line);
  filter: var(--line-glow);
  counter-reset: stap;
}
.loop li {
  list-style: none;
  position: relative;
  aspect-ratio: 1;
  max-height: var(--cell);
  padding: 16px;
  border-right: var(--line-w) solid var(--line);
  border-bottom: var(--line-w) solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loop li::before {
  counter-increment: stap;
  content: "0" counter(stap);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.loop strong {
  font-size: 1.15rem;
}
.loop li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.65em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  padding: 0 2px;
  background: var(--bg);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: var(--glow);
}
.loop-wrap {
  display: grid;
  gap: 28px;
  max-width: calc(var(--cell) * 4);
}
.loop-wrap > ul {
  margin: 0;
  padding: 0;
}
.loop-back {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .loop {
    grid-template-columns: repeat(2, 1fr);
  }
  .loop li {
    max-height: none;
  }
  .loop li:nth-child(2)::after {
    display: none;
  }
}

/* ---------- How we start ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  max-width: 760px;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--line-w) solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: bold;
  box-shadow: var(--glow);
}
.steps strong {
  display: block;
}
.blocks {
  margin-top: 32px;
  max-width: 760px;
  padding: 20px 24px;
  border-left: 6px solid var(--accent-fill);
  background: var(--bg-raised);
}
.blocks p {
  margin: 0 0 8px;
}
.blocks p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  border: var(--line-w) solid var(--line-soft);
  background: var(--bg-raised);
  transition: border-color 150ms, box-shadow 150ms;
}
a.case-card:hover,
a.case-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--glow);
  text-shadow: none;
}
.case-visual {
  aspect-ratio: 2 / 1;
  border-bottom: var(--line-w) solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.case-visual svg {
  width: 100%;
  height: 100%;
}
.case-visual:has(video) {
  position: relative;
}
/* Absolute, so the video's own width does not stretch the card */
.case-visual video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0c;
}
.case-visual .ln {
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  filter: var(--line-glow);
}
.case-visual .nd {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}
.case-visual .nd-fill {
  fill: var(--accent-fill);
}
.case-text {
  padding: 20px 24px 24px;
}
.case-text h3 {
  margin: 6px 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}
.case-text p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
form label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
form .field {
  margin-bottom: 18px;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-raised);
  color: var(--text);
  border: var(--line-w) solid var(--line-soft);
  border-radius: 0;
  font: inherit;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
form textarea {
  min-height: 140px;
  resize: vertical;
}
form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
form .after-send {
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent-fill);
  color: var(--on-accent);
  border: var(--line-w) solid var(--accent-fill);
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
.btn:focus-visible {
  box-shadow: var(--glow);
  text-shadow: none;
}

/* ---------- Colophon ---------- */

.site-footer {
  padding: 40px 0 56px;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}
@media (max-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cookie notice (in house style) ---------- */

.hexz-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  max-width: 495px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--bg-raised);
  border: var(--line-w) solid var(--accent);
  box-shadow: var(--glow);
  color: var(--text);
  font-size: 0.9rem;
}
.hexz-cookie p {
  margin: 0 0 12px;
}
.hexz-cookie-buttons button {
  margin-right: 8px;
  padding: 6px 16px;
  border: var(--line-w) solid var(--accent-fill);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.hexz-cookie-buttons button[data-consent="granted"] {
  background: var(--accent-fill);
  color: var(--on-accent);
}

/* ---------- Thanks page ---------- */

.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
