/* ============================================================
   kommunik8 — operaties in het stille spectrum
   palette inspired by k8.be — olive #5a5940 + amber accents
   ============================================================ */

:root {
   --olive-900: #2b2b1f;
   --olive-800: #3a3a2a;
   --olive-700: #4a4a36;
   --olive-600: #5a5940;          /* k8.be background */
   --olive-500: #6e6c4f;
   --olive-400: #8a8866;
   --olive-300: #a8a684;
   --olive-200: #c9c7a8;
   --olive-100: #e8e6cf;

   --amber:     #f4a022;          /* k8 logo orange */
   --amber-soft:#d98a14;
   --amber-glow:rgba(244, 160, 34, 0.25);

   --paper:     #ede9d6;
   --ink:       #1a1a12;
   --ink-soft:  #2a2a1c;

   --redact:    #1a1a12;

   --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
   --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

   --radius: 2px;
   --maxw:   1200px;

   --ease:     cubic-bezier(.16,.84,.32,1);
   --ease-out: cubic-bezier(.22,1,.36,1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--ink); }

body {
   background: var(--olive-600);
   color: var(--paper);
   font-family: var(--font-display);
   font-size: 16px;
   line-height: 1.55;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   overflow-x: hidden;
   min-height: 100vh;
   position: relative;
}

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; }
.amber { color: var(--amber); }

/* ----- ambient layers ----- */
#bg-canvas {
   position: fixed; inset: 0;
   width: 100%; height: 100%;
   z-index: 0;
   opacity: 0.18;
   pointer-events: none;
}

.grain {
   position: fixed; inset: -50%;
   z-index: 1;
   pointer-events: none;
   opacity: 0.06;
   background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
   mix-blend-mode: overlay;
}

.scanlines {
   position: fixed; inset: 0;
   z-index: 2;
   pointer-events: none;
   background: repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0.06) 3px,
      rgba(0,0,0,0) 4px
   );
   mix-blend-mode: multiply;
}

main, .site-header, .site-footer { position: relative; z-index: 3; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
   display: grid;
   grid-template-columns: auto 1fr auto;
   align-items: center;
   gap: 32px;
   padding: 22px 40px;
   border-bottom: 1px solid rgba(255,255,255,0.07);
   backdrop-filter: blur(6px);
   background: linear-gradient(to bottom, rgba(43,43,31,0.55), rgba(43,43,31,0));
   position: sticky; top: 0; z-index: 50;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
   width: 44px; height: 28px;
   object-fit: contain;
   transition: transform .3s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-2deg) scale(1.04); }

.brand__wordmark {
   font-family: var(--font-display);
   font-weight: 700;
   font-size: 18px;
   letter-spacing: 0.02em;
   color: var(--paper);
}
.brand__eight { color: var(--amber); }

.nav { display: flex; gap: 28px; justify-self: center; }
.nav a {
   font-family: var(--font-mono);
   font-size: 13px;
   color: var(--olive-200);
   position: relative;
   padding: 4px 0;
   transition: color .2s var(--ease);
}
.nav a::after {
   content: "";
   position: absolute; left: 0; bottom: 0;
   width: 0; height: 1px;
   background: var(--amber);
   transition: width .3s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { width: 100%; }

.status {
   display: flex; align-items: center; gap: 10px;
   font-family: var(--font-mono); font-size: 12px;
   color: var(--olive-200);
}
.status__dot {
   width: 8px; height: 8px; border-radius: 50%;
   background: #6dd66d;
   box-shadow: 0 0 8px rgba(109,214,109,0.7);
   animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
   0%, 100% { opacity: 1; transform: scale(1); }
   50%      { opacity: 0.45; transform: scale(0.85); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
   position: relative;
   max-width: var(--maxw);
   margin: 0 auto;
   padding: 100px 40px 80px;
   min-height: calc(100vh - 88px);
   display: flex; flex-direction: column;
   justify-content: center;
}

.hero__crosshair {
   position: absolute; inset: 60px 40px auto 40px;
   pointer-events: none;
}
.hero__crosshair span {
   position: absolute; width: 16px; height: 16px;
   border: 1px solid var(--amber);
   opacity: 0.55;
}
.hero__crosshair span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__crosshair span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__crosshair span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__crosshair span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero__meta {
   display: flex; gap: 28px; flex-wrap: wrap;
   font-size: 12px;
   color: var(--olive-200);
   margin-bottom: 36px;
}

.hero__title {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: clamp(48px, 8vw, 112px);
   line-height: 0.98;
   letter-spacing: -0.025em;
   margin: 0 0 28px;
}
.hero__title .line {
   display: block;
   position: relative;
   color: var(--paper);
   opacity: 0;
   transform: translateY(20px);
   animation: rise .9s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) { animation-delay: .15s; }
.hero__title .line:nth-child(2) { animation-delay: .35s; }
.hero__title .line:nth-child(3) { animation-delay: .55s; }
.hero__title .accent {
   color: var(--amber);
   font-style: italic;
   font-weight: 400;
}
@keyframes rise {
   to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
   max-width: 620px;
   font-size: 18px;
   color: var(--olive-200);
   line-height: 1.65;
   margin: 0 0 40px;
   opacity: 0;
   animation: rise .9s var(--ease-out) .8s forwards;
}
.hero__lede .reveal {
   display: block;
   margin-top: 10px;
   font-family: var(--font-mono);
   font-size: 14px;
   color: var(--paper);
   letter-spacing: 0.02em;
}

.hero__cta {
   display: flex; gap: 14px; flex-wrap: wrap;
   margin-bottom: 64px;
   opacity: 0;
   animation: rise .9s var(--ease-out) 1s forwards;
}

.btn {
   display: inline-flex; align-items: center; gap: 10px;
   padding: 14px 22px;
   font-family: var(--font-mono);
   font-size: 13px;
   font-weight: 500;
   letter-spacing: 0.05em;
   text-transform: lowercase;
   border: 1px solid transparent;
   border-radius: var(--radius);
   cursor: pointer;
   transition: all .25s var(--ease);
   position: relative;
}
.btn--primary {
   background: var(--amber);
   color: var(--ink);
   border-color: var(--amber);
}
.btn--primary:hover {
   background: var(--paper);
   border-color: var(--paper);
   transform: translateX(2px);
   box-shadow: -2px 2px 0 var(--amber);
}
.btn--ghost {
   background: transparent;
   color: var(--paper);
   border-color: rgba(255,255,255,0.2);
}
.btn--ghost:hover {
   border-color: var(--amber);
   color: var(--amber);
}

/* terminal */
.hero__terminal {
   margin-top: auto;
   max-width: 720px;
   border: 1px solid rgba(244,160,34,0.25);
   background: rgba(26,26,18,0.7);
   border-radius: var(--radius);
   overflow: hidden;
   opacity: 0;
   animation: rise .9s var(--ease-out) 1.2s forwards;
}
.term__bar {
   display: flex; align-items: center; gap: 8px;
   padding: 10px 14px;
   background: rgba(0,0,0,0.3);
   border-bottom: 1px solid rgba(244,160,34,0.2);
   font-family: var(--font-mono);
   font-size: 11px;
   color: var(--olive-200);
}
.term__bar span {
   width: 10px; height: 10px; border-radius: 50%;
   background: rgba(244,160,34,0.4);
}
.term__bar span:nth-child(1) { background: #ff5f56; }
.term__bar span:nth-child(2) { background: var(--amber); }
.term__bar span:nth-child(3) { background: #6dd66d; }
.term__bar em { margin-left: auto; font-style: normal; opacity: 0.7; }

.term__body {
   margin: 0;
   padding: 18px 20px;
   font-family: var(--font-mono);
   font-size: 13px;
   line-height: 1.7;
   color: var(--olive-100);
   min-height: 130px;
   white-space: pre-wrap;
}
.term__body .ok    { color: #6dd66d; }
.term__body .warn  { color: var(--amber); }
.term__body .dim   { color: var(--olive-300); }
.term__body .cur::after {
   content: "▍";
   color: var(--amber);
   animation: blink 1s steps(2) infinite;
}
@keyframes blink {
   50% { opacity: 0; }
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
section {
   max-width: var(--maxw);
   margin: 0 auto;
   padding: 100px 40px;
}

.section__head {
   max-width: 760px;
   margin: 0 0 56px;
}
.section__tag {
   display: inline-block;
   font-size: 12px;
   color: var(--amber);
   letter-spacing: 0.15em;
   text-transform: uppercase;
   padding: 4px 10px;
   border: 1px solid rgba(244,160,34,0.4);
   border-radius: var(--radius);
   margin-bottom: 22px;
}
.section__head h2 {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: clamp(34px, 5vw, 56px);
   line-height: 1.05;
   letter-spacing: -0.02em;
   margin: 0 0 18px;
   color: var(--paper);
}
.section__head p {
   font-size: 17px;
   color: var(--olive-200);
   margin: 0;
   max-width: 60ch;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
   border-top: 1px solid rgba(255,255,255,0.07);
}
.services__grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1px;
   background: rgba(255,255,255,0.07);
   border: 1px solid rgba(255,255,255,0.07);
}
.service {
   padding: 36px 32px 40px;
   background: var(--olive-600);
   position: relative;
   transition: background .35s var(--ease);
}
.service:hover {
   background: var(--olive-700);
}
.service::before {
   content: "";
   position: absolute;
   left: 0; top: 0;
   width: 0; height: 2px;
   background: var(--amber);
   transition: width .4s var(--ease-out);
}
.service:hover::before { width: 100%; }

.service__num {
   font-size: 12px;
   color: var(--amber);
   letter-spacing: 0.15em;
   text-transform: uppercase;
   margin-bottom: 32px;
}
.service h3 {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: 26px;
   letter-spacing: -0.01em;
   margin: 0 0 14px;
   color: var(--paper);
}
.service > p {
   color: var(--olive-200);
   font-size: 15px;
   margin: 0 0 22px;
}
.service__list {
   list-style: none;
   padding: 0; margin: 0;
   border-top: 1px dashed rgba(255,255,255,0.12);
   padding-top: 18px;
}
.service__list li {
   font-size: 12.5px;
   color: var(--olive-100);
   padding: 6px 0 6px 18px;
   position: relative;
}
.service__list li::before {
   content: "▸";
   position: absolute; left: 0;
   color: var(--amber);
   opacity: 0.7;
}

/* ============================================================
   MANIFEST
   ============================================================ */
.manifest__grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1px;
   background: rgba(255,255,255,0.07);
   border: 1px solid rgba(255,255,255,0.07);
}
.tenet {
   padding: 36px 32px;
   background: var(--olive-600);
   display: grid;
   grid-template-columns: 60px 1fr;
   grid-template-rows: auto auto;
   column-gap: 18px;
   row-gap: 8px;
   align-items: start;
}
.tenet__num {
   grid-column: 1;
   grid-row: 1 / span 2;
   font-family: var(--font-mono);
   font-size: 28px;
   color: var(--amber);
   font-weight: 300;
   line-height: 1;
   padding-top: 6px;
}
.tenet h3 {
   grid-column: 2;
   grid-row: 1;
   font-family: var(--font-display);
   font-weight: 500;
   font-size: 20px;
   margin: 0;
   color: var(--paper);
}
.tenet p {
   grid-column: 2;
   grid-row: 2;
   color: var(--olive-200);
   font-size: 15px;
   margin: 0;
}

/* ============================================================
   DOSSIER
   ============================================================ */
.dossier__list {
   border-top: 1px solid rgba(255,255,255,0.1);
}
.case {
   display: grid;
   grid-template-columns: 180px 1fr;
   gap: 32px;
   padding: 32px 0;
   border-bottom: 1px solid rgba(255,255,255,0.1);
   transition: padding-left .3s var(--ease);
}
.case:hover { padding-left: 12px; }

.case__year {
   font-size: 13px;
   color: var(--amber);
   letter-spacing: 0.05em;
   padding-top: 4px;
}
.case__body h3 {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: 24px;
   margin: 0 0 10px;
   color: var(--paper);
}
.case__body p {
   color: var(--olive-200);
   font-size: 16px;
   margin: 0;
   max-width: 70ch;
}
.case__body strong { color: var(--paper); font-weight: 600; }

.redact {
   background: var(--redact);
   color: var(--redact);
   padding: 0 6px;
   border-radius: 1px;
   user-select: none;
   letter-spacing: -0.05em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
   border-top: 1px solid rgba(255,255,255,0.07);
}
.contact__grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1px;
   background: rgba(255,255,255,0.07);
   border: 1px solid rgba(255,255,255,0.07);
   margin-bottom: 56px;
}
.channel {
   padding: 28px 28px 30px;
   background: var(--olive-600);
   display: flex; flex-direction: column;
   gap: 6px;
   transition: background .25s var(--ease);
}
.channel:hover { background: var(--olive-700); }
.channel__label {
   font-size: 11px;
   color: var(--amber);
   letter-spacing: 0.15em;
   text-transform: uppercase;
}
.channel__value {
   font-family: var(--font-display);
   font-size: 22px;
   color: var(--paper);
   font-weight: 500;
}
.channel__hint {
   font-size: 12px;
   color: var(--olive-300);
   margin-top: 4px;
}

/* live local-time clock on the in-person channel */
.channel--time { position: relative; overflow: hidden; }
.channel__clock {
   margin-top: 6px;
   display: inline-flex;
   align-items: baseline;
   gap: 2px;
   font-size: 28px;
   line-height: 1;
   font-variant-numeric: tabular-nums;
   font-feature-settings: "tnum" 1;
   color: var(--amber);
   letter-spacing: 0.04em;
   text-shadow: 0 0 18px rgba(244,160,34,0.18);
}
.clk__seg {
   display: inline-block;
   min-width: 1.2ch;
   text-align: center;
}
.clk__seg--s {
   transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.clk__seg--s.is-tick {
   transform: translateY(-2px) scale(1.04);
   opacity: 0.6;
}
.clk__sep {
   display: inline-block;
   transform: translateY(-2px);
   animation: clk-blink 1s steps(2, end) infinite;
   color: var(--amber);
   opacity: 0.85;
}
.clk__tz {
   margin-left: 10px;
   font-size: 11px;
   letter-spacing: 0.18em;
   text-transform: uppercase;
   color: var(--olive-300);
   align-self: center;
   transform: translateY(-1px);
}
.channel__bar {
   display: block;
   margin-top: 14px;
   height: 1px;
   width: 100%;
   background: rgba(244,160,34,0.12);
   overflow: hidden;
}
.channel__bar-fill {
   display: block;
   height: 100%;
   width: 0%;
   background: linear-gradient(90deg,
      rgba(244,160,34,0.0) 0%,
      rgba(244,160,34,0.55) 50%,
      rgba(244,160,34,0.95) 100%);
   transition: width .18s linear;
}
@keyframes clk-blink {
   0%, 49%   { opacity: 0.95; }
   50%, 100% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
   .clk__sep { animation: none; opacity: 0.85; }
   .clk__seg--s, .channel__bar-fill { transition: none; }
}

/* form */
.form {
   max-width: 720px;
   border: 1px solid rgba(244,160,34,0.25);
   background: rgba(26,26,18,0.4);
   padding: 32px;
   border-radius: var(--radius);
   display: flex; flex-direction: column;
   gap: 20px;
}
.form__row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
}
.form label {
   display: flex; flex-direction: column;
   gap: 6px;
}
.form label > span {
   font-size: 11px;
   color: var(--olive-300);
   letter-spacing: 0.05em;
}
.form input,
.form textarea {
   background: rgba(0,0,0,0.25);
   border: 1px solid rgba(255,255,255,0.12);
   border-radius: var(--radius);
   padding: 12px 14px;
   color: var(--paper);
   font-family: var(--font-mono);
   font-size: 14px;
   transition: border-color .2s var(--ease), background .2s var(--ease);
   resize: vertical;
}
.form input:focus,
.form textarea:focus {
   outline: none;
   border-color: var(--amber);
   background: rgba(0,0,0,0.4);
   box-shadow: 0 0 0 3px var(--amber-glow);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--olive-400); }

.form button { align-self: flex-start; }
.form__sent {
   color: #6dd66d;
   font-size: 13px;
   margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
   border-top: 1px solid rgba(255,255,255,0.07);
   padding: 60px 40px 24px;
   margin-top: 40px;
   background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.25));
}
.foot__grid {
   max-width: var(--maxw);
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 40px;
   padding-bottom: 40px;
   border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot__logo { width: 70px; margin-bottom: 16px; opacity: 0.85; }
.foot__grid p { font-size: 12px; color: var(--olive-300); margin: 0; }

.foot__cols {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
   font-size: 12px;
}
.foot__cols h4 {
   color: var(--amber);
   font-size: 11px;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   margin: 0 0 12px;
   font-weight: 500;
}
.foot__cols a {
   display: block;
   color: var(--olive-200);
   padding: 4px 0;
   transition: color .2s var(--ease);
}
.foot__cols a:hover { color: var(--paper); }

.foot__bar {
   max-width: var(--maxw);
   margin: 0 auto;
   padding-top: 24px;
   display: flex; justify-content: space-between;
   font-size: 11px;
   color: var(--olive-300);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
   .site-header {
      grid-template-columns: 1fr auto;
      padding: 16px 20px;
   }
   .nav { display: none; }
   .status { font-size: 11px; }
   section, .hero { padding-left: 20px; padding-right: 20px; }
   .services__grid,
   .contact__grid { grid-template-columns: 1fr; }
   .manifest__grid { grid-template-columns: 1fr; }
   .case { grid-template-columns: 1fr; gap: 8px; }
   .form__row { grid-template-columns: 1fr; }
   .foot__grid { grid-template-columns: 1fr; }
   .foot__cols { grid-template-columns: repeat(3, 1fr); }
   .foot__bar { flex-direction: column; gap: 6px; }
   .hero__crosshair { inset: 30px 20px auto 20px; }
}
