/* ==========================================================================
   Digisix — digisix.be
   Stylesheet v2.0 — mobile-first rewrite.

   Breakpoints (min-width, content dictates the number, not a device):
     30rem (480px)  — phone landscape / larger phone type bump
     48rem (768px)  — small tablet: two-column content starts
     60rem (960px)  — desktop nav, full multi-column layouts
     75rem (1200px) — wide desktop: container reaches its max

   Everything below is written base-first for a small phone, then widened.
   No max-width query exists in this file — only min-width additions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* --- Brand colour ------------------------------------------------------ */
  --navy:         #1A2942;
  --navy-deep:    #101A2C;
  --navy-mid:     #2B3B57;
  --orange:       #F7941D;
  --orange-soft:  #FFF1DC;
  --orange-hover: #E5850E;
  --green:        #1F6B52;
  --green-soft:   #E0F0E9;
  --red:          #C5453B;
  --red-soft:     #FBE9E7;
  --amber:        #D89614;
  --amber-soft:   #FCF1D7;

  /* --- Neutrals ------------------------------------------------------------ */
  --paper:        #FFFFFF;
  --mist:         #F4F6F8;
  --rule:         #E3E8EE;
  --rule-strong:  #C9D2DD;
  --ink:          #1F2937;
  --slate:        #6B7280;
  --white:        #FFFFFF;

  /* --- Semantic ------------------------------------------------------------ */
  --bg:      var(--paper);
  --text:    var(--ink);
  --heading: var(--navy);
  --link:    var(--navy);
  --focus:   var(--orange);

  /* --- Shadows ------------------------------------------------------------ */
  --shadow-sm: 0 1px 3px rgba(16, 26, 44, 0.07), 0 1px 2px rgba(16, 26, 44, 0.05);
  --shadow-md: 0 8px 20px -6px rgba(16, 26, 44, 0.16);

  /* --- Type ----------------------------------------------------------------
     Fluid scale, mobile floor set first, ceiling reached ~75rem viewport. */
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-hero:  clamp(2.25rem, 1.75rem + 4vw,   4.25rem);
  --t-h1:    clamp(2rem,    1.65rem + 2.6vw, 3.25rem);
  --t-h2:    clamp(1.5rem,  1.3rem + 1.4vw,  2.125rem);
  --t-h3:    clamp(1.15rem, 1.05rem + 0.5vw, 1.4375rem);
  --t-lead:  clamp(1.0625rem, 1rem + 0.4vw,  1.3125rem);
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --lh-tight: 1.08;
  --lh-snug:  1.28;
  --lh-body:  1.65;

  /* --- Space (4px base) ------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3rem, 6vw, 6.5rem);

  /* --- Layout ------------------------------------------------------------- */
  --container: 76rem;
  --measure:   66ch;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --col-label: 16rem;

  /* --- Shape --------------------------------------------------------------- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0, 0.1, 1);
  --header-h: 4.25rem;
}

@media (min-width: 60rem) {
  :root { --header-h: 5rem; }
}

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); font-weight: 700; line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: var(--lh-snug); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: var(--lh-snug); }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }

p, ul, ol { margin: 0 0 var(--s-4); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
a:hover { color: var(--orange); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--orange); color: var(--navy); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 200;
  background: var(--orange); color: var(--navy);
  padding: var(--s-3) var(--s-5); font-weight: 600;
  text-decoration: none; border-radius: var(--r-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--navy); }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 52rem; }

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }
.section--flush { padding-block: 0; }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--mist { background: var(--mist); border-top-color: transparent; }
.section--navy {
  background: var(--navy);
  border-top-color: transparent;
  color: rgba(255, 255, 255, 0.82);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); }
.section--navy a:hover { color: var(--orange); }

/* The spec-sheet grid: stacked on mobile, label column appears at 60rem+ */
.spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.spec__label h2 { margin-bottom: var(--s-3); }
.spec__note {
  font-size: var(--t-small);
  color: var(--slate);
  max-width: var(--measure);
  margin: 0;
}
.spec__note + .spec__note { margin-top: var(--s-3); }
.spec__body > * + * { margin-top: var(--s-6); }

@media (min-width: 60rem) {
  .spec {
    grid-template-columns: minmax(0, var(--col-label)) minmax(0, 1fr);
    gap: var(--s-7) var(--s-8);
    align-items: start;
  }
  .spec__label { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .spec__note { max-width: 22ch; }
}

.grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}

.measure { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   5. HEADER
   Mobile: logo + burger. Nav & contact drop below on toggle.
   60rem+: full inline bar, burger gone.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: inherit; }
.brand img { width: 6.75rem; }
.brand__person {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  color: var(--slate);
  padding-left: var(--s-3);
  border-left: 1px solid var(--rule-strong);
  line-height: 1.3;
  display: none;
}

.site-nav,
.header-contact { display: none; width: 100%; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0.6rem;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--paper);
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.nav-toggle:checked ~ .site-nav,
.nav-toggle:checked ~ .header-contact { display: block; }

.nav-toggle:checked + .nav-toggle-label span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-label span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav { margin-left: 0; padding-bottom: var(--s-4); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.site-nav li + li { border-top: 1px solid var(--rule); }
.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
  padding: var(--s-4) 0 var(--s-4) var(--s-4);
  border-left: 3px solid transparent;
}
.site-nav a:hover { color: var(--orange); }
.site-nav a[aria-current='page'] { border-left-color: var(--orange); }

.header-contact {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--t-small);
  padding-top: var(--s-4);
  padding-bottom: var(--s-5);
  border-top: 1px solid var(--rule);
}
.nav-toggle:checked ~ .header-contact { display: flex; }
.header-contact a { text-decoration: none; color: var(--navy); font-weight: 500; }
.header-contact a:hover { color: var(--orange); }

.lang {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  flex: 0 0 auto;
}
.lang a {
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  line-height: 1.4;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang a + a { border-left: 1px solid var(--rule-strong); }
.lang a:hover { background: var(--mist); color: var(--navy); }
.lang a[aria-current='true'] { background: var(--navy); color: var(--white); }
.lang a[aria-current='true']:hover { background: var(--navy); color: var(--white); }

.lang--dark { border-color: rgba(255, 255, 255, 0.28); }
.lang--dark a { color: rgba(255, 255, 255, 0.7); }
.lang--dark a + a { border-left-color: rgba(255, 255, 255, 0.28); }
.lang--dark a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.lang--dark a[aria-current='true'] { background: var(--orange); color: var(--navy); }
.lang--dark a[aria-current='true']:hover { background: var(--orange); color: var(--navy); }

@media (min-width: 60rem) {
  .brand img { width: 8.25rem; }
  .brand__person { display: inline; }

  .nav-toggle,
  .nav-toggle-label { display: none; }

  .site-nav,
  .header-contact { display: flex !important; width: auto; }

  .site-nav { margin-left: auto; padding-bottom: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s-5); }
  .site-nav li + li { border-top: 0; }
  .site-nav a {
    font-size: var(--t-small);
    padding: var(--s-2) 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav a[aria-current='page'] { border-left-color: transparent; border-bottom-color: var(--orange); }

  .header-contact {
    flex-direction: row;
    align-items: center;
    gap: var(--s-4);
    padding: 0;
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   6. HERO
   Mobile: text stacked, symbol mark sits behind as a quiet corner motif.
   60rem+: two columns, mark grows into a full graphic on the right.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.75rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.hero__col {
  container-type: inline-size;
}

.hero__mark {
  display: none;
}

.hero__title {
  /* Sized off the column's own inline size (not the viewport) so each
     sentence stays on one line whether the hero is one column or two. */
  font-size: clamp(1.6rem, 7.5cqi, 4.25rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__rule {
  width: min(9rem, 40%);
  height: 5px;
  background: var(--orange);
  border-radius: var(--r-pill);
  margin: var(--s-5) 0;
  transform-origin: left center;
  animation: rule-in 0.7s var(--ease) both;
}

@keyframes rule-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink);
  max-width: 42ch;
  margin: 0 0 var(--s-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.hero__note {
  font-size: var(--t-small);
  color: var(--slate);
  margin: var(--s-3) 0 0;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  }
  .hero__mark {
    display: block;
    justify-self: end;
    width: min(100%, 32rem);
    opacity: 0.94;
  }
}

/* Navy proof strip — stats read as points along a trendline: the logo's
   device carried straight through into content, not just the mark. */
.proof {
  background: var(--navy);
  color: var(--white);
}
.proof__list {
  list-style: none;
  margin: 0;
  padding-block: var(--s-6);
  display: grid;
  gap: 0;
  position: relative;
}
.proof__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  padding: var(--s-4) 0 var(--s-4) var(--s-6);
}
.proof__item::before {
  content: '';
  position: absolute;
  left: 0.3125rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(247, 148, 29, 0.35);
}
.proof__item:first-child::before { top: 50%; }
.proof__item:last-child::before { bottom: 50%; }
.proof__item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.18);
}
.proof__figure {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.03em;
}
.proof__label {
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.78);
  max-width: 30ch;
}

@media (min-width: 48rem) {
  .proof__list {
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: var(--s-6);
  }
  .proof__item {
    padding: var(--s-5) 0 0;
  }
  .proof__item::before {
    left: 0;
    right: 0;
    top: 0.3125rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .proof__item:first-child::before { left: 50%; }
  .proof__item:last-child::before { right: 50%; }
  .proof__item::after {
    left: 0;
    top: 0;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1;
  min-height: 2.75rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s var(--ease), transform 0.08s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--navy); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--block { width: 100%; }

.link-quiet {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.link-quiet:hover { color: var(--orange); border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   8. SERVICES — a ruled list, not a card deck
   -------------------------------------------------------------------------- */

.service-list { list-style: none; margin: 0; padding: 0; }

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--rule);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service h3 { margin: 0; }
.service p { color: var(--slate); max-width: var(--measure); margin: 0; }
.service__meta {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: var(--ink);
}

@media (min-width: 48rem) {
  .service {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: var(--s-4) var(--s-6);
    padding-block: var(--s-6);
  }
}

/* --------------------------------------------------------------------------
   9. CASE STUDIES
   Left rule in the sector colour instead of a boxed card.
   -------------------------------------------------------------------------- */

.case {
  position: relative;
  border-left: 3px solid var(--rule-strong);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  transition: border-color 0.18s var(--ease);
}
.case:hover { border-left-color: var(--orange); }
.case h3 { margin-bottom: var(--s-2); }
.case h3 a { text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; }
.case:hover h3 a { color: var(--orange); }
.case__client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--slate);
  margin-bottom: var(--s-3);
}
.case__summary { color: var(--ink); max-width: var(--measure); }
.case__footer {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--orange);
}
.case__footer::after { content: " →"; }

.case--business-analysis { border-left-color: var(--navy); }
.case--ai-implementation { border-left-color: var(--orange); }
.case--automation        { border-left-color: var(--green); }
.case--data-management   { border-left-color: var(--amber); }
.case--marketing         { border-left-color: var(--slate); }

.result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--green-soft);
  border-radius: var(--r-md);
  margin-top: var(--s-4);
}
.result__figure {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
}
.result__text { font-size: var(--t-small); color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); padding: 0; list-style: none; }
.tag {
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 500;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. CALLOUTS
   -------------------------------------------------------------------------- */

.callout {
  border-left: 4px solid var(--rule-strong);
  background: var(--mist);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-small);
}
.callout strong { font-family: var(--font-display); font-weight: 700; }

.callout--result   { background: var(--green-soft);  border-left-color: var(--green); }
.callout--result strong { color: var(--green); }
.callout--open     { background: var(--orange-soft); border-left-color: var(--amber); }
.callout--open strong { color: var(--amber); }
.callout--warning  { background: var(--amber-soft);  border-left-color: var(--amber); }
.callout--critical { background: var(--red-soft);    border-left-color: var(--red); }
.callout--critical strong { color: var(--red); }

/* --------------------------------------------------------------------------
   11. INSIGHTS / BLOG
   -------------------------------------------------------------------------- */

.pill-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.pill {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--slate);
}
.pill:hover { color: var(--orange); border-color: var(--orange); text-decoration: none; }
.pill--active { background: var(--orange-soft); border-color: var(--orange); color: var(--ink); }

.post-list { list-style: none; margin: 0; padding: 0; }

.post-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-top: 1px solid var(--rule);
}
.post-item:first-child { border-top: 0; padding-top: 0; }
.post-item__date {
  font-size: var(--t-small);
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.post-item h3 { margin-bottom: var(--s-2); }
.post-item h3 a { text-decoration: none; }
.post-item h3 a::after { content: ""; position: absolute; inset: 0; }
.post-item:hover h3 a { color: var(--orange); }
.post-item p { color: var(--slate); max-width: var(--measure); margin: 0; }
.post-item__more {
  display: inline-block;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--orange);
}
.post-item__more::after { content: " →"; }

@media (min-width: 48rem) {
  .post-item {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: var(--s-4) var(--s-6);
    align-items: baseline;
    padding-block: var(--s-6);
  }
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--t-h2); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--orange); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding-left: var(--s-5);
  border-left: 4px solid var(--orange);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--navy);
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--s-5);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: var(--t-small);
  line-height: 1.55;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { border-radius: var(--r-md); margin-block: var(--s-6); }
.prose figcaption { font-size: var(--t-small); color: var(--slate); margin-top: var(--s-2); }

.article-header { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s-6); }
.article-header h1 { max-width: 20ch; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--t-small);
  color: var(--slate);
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------------------
   12. TABLES
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: var(--s-3) var(--s-4);
  white-space: nowrap;
}
tbody td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); }
tbody tr:nth-child(even) { background: var(--mist); }

/* --------------------------------------------------------------------------
   13. FORMS
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--navy);
  margin-bottom: var(--s-2);
}
.field__hint { font-size: var(--t-micro); color: var(--slate); font-weight: 400; }

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 0.8rem var(--s-4);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }

input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.35);
}

.field--error input,
.field--error textarea { border-color: var(--red); }
.field__error {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  color: var(--red);
}

.form-status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-size: var(--t-small);
}
.form-status--ok   { background: var(--green-soft); color: var(--green); }
.form-status--fail { background: var(--red-soft);   color: var(--red); }

/* --------------------------------------------------------------------------
   14. CONTACT BAND
   -------------------------------------------------------------------------- */

.contact-band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.contact-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
}
.contact-band h2 { color: var(--white); max-width: 16ch; }
.contact-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  margin-top: var(--s-3);
}
.contact-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

@media (min-width: 48rem) {
  .contact-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
  }
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--t-small);
  padding-block: var(--s-7) var(--s-5);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer img { width: 8rem; margin-bottom: var(--s-4); }

.site-footer h4 {
  color: var(--white);
  font-size: var(--t-small);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--s-2); }

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-footer a:hover { color: var(--orange); }

.footer-contact li { display: flex; gap: var(--s-2); }
.footer-contact a { color: var(--white); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: var(--t-micro);
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

@media (min-width: 40rem) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   16. PREFERENCES & PRINT
   -------------------------------------------------------------------------- */

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

@media print {
  .site-header, .site-footer, .contact-band, .lang, .btn, .hero__mark { display: none; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 1rem; border-top: 1px solid #ccc; }
  a { text-decoration: none; color: #000; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
