/*
Theme Name: KTBL
Author: KTBL
Description: De officiële website van KTBL, digitale studio voor eigen producten, interactieve werelden en software op maat.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ktbl-digital-lab
Tags: portfolio, one-column, custom-logo, featured-images
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
      color-scheme: light;
      --ink: #101012;
      --muted: #6e6e73;
      --paper: #f5f5f7;
      --surface: rgba(255,255,255,.72);
      --line: rgba(16,16,18,.1);
      --blue: #2557f4;
      --radius: 34px;
      --shadow: 0 32px 80px rgba(18,18,22,.1);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body::selection { background: #b9cbff; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }
    img { display: block; width: 100%; }

    .site-nav {
      position: fixed;
      z-index: 50;
      top: 16px;
      left: 50%;
      width: min(860px, calc(100% - 28px));
      height: 54px;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 7px 8px 7px 18px;
      border: 1px solid rgba(255,255,255,.7);
      border-radius: 999px;
      background: rgba(250,250,252,.76);
      box-shadow: 0 12px 34px rgba(25,25,30,.08);
      backdrop-filter: blur(20px) saturate(150%);
    }

    .wordmark {
      font-size: .94rem;
      font-weight: 760;
      letter-spacing: -.03em;
    }

    .nav-links { display: flex; align-items: center; gap: 4px; }
    .nav-links a, .nav-links button {
      padding: 10px 14px;
      color: #4a4a4f;
      border: 0;
      border-radius: 999px;
      background: transparent;
      font-size: .84rem;
      font-weight: 560;
      cursor: pointer;
      transition: background .25s ease, color .25s ease;
    }
    .nav-links a:hover, .nav-links a:focus-visible, .nav-links button:hover, .nav-links button:focus-visible { background: #fff; color: var(--ink); outline: none; }
    .nav-pill { background: var(--ink) !important; color: #fff !important; }

    main { overflow: hidden; }
    .hero {
      position: relative;
      min-height: 94vh;
      display: grid;
      align-items: center;
      padding: 140px 24px 80px;
      isolation: isolate;
    }

    .hero::before {
      content: "";
      position: absolute;
      z-index: -2;
      width: min(960px, 92vw);
      aspect-ratio: 1;
      border-radius: 50%;
      background:
        radial-gradient(circle at 45% 42%, rgba(255,255,255,.96) 0 23%, rgba(225,232,255,.78) 43%, rgba(236,238,245,.25) 63%, transparent 71%);
      filter: blur(4px);
    }

    .hero::after {
      content: "KTBL";
      position: absolute;
      z-index: -1;
      left: 50%;
      bottom: -3.5vw;
      transform: translateX(-50%);
      font-size: min(25vw, 340px);
      font-weight: 800;
      line-height: .7;
      letter-spacing: -.09em;
      color: rgba(12,12,15,.027);
      white-space: nowrap;
      pointer-events: none;
    }

    .hero-layout {
      width: min(1240px, 100%);
      margin: 0 auto;
    }
    .hero-copy-block {
      position: relative;
      z-index: 3;
      width: min(700px, 61%);
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 24px;
      color: #5d5d63;
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .eyebrow-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 0 5px rgba(37,87,244,.1);
    }

    h1 {
      max-width: 780px;
      margin: 0;
      font-size: clamp(4.6rem, 8.7vw, 8.6rem);
      line-height: .88;
      letter-spacing: -.077em;
      font-weight: 760;
    }

    .hero-copy {
      max-width: 650px;
      margin: 34px 0 0;
      color: var(--muted);
      font-size: clamp(1.14rem, 2vw, 1.45rem);
      line-height: 1.48;
      letter-spacing: -.022em;
    }

    .hero-actions {
      margin-top: 38px;
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      flex-wrap: wrap;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      padding: 0 22px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: var(--ink);
      color: #fff;
      font-size: .95rem;
      font-weight: 650;
      transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    }
    .button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,16,18,.16); }
    .button:focus-visible { outline: 3px solid rgba(37,87,244,.35); outline-offset: 3px; }
    .button.secondary { color: var(--ink); background: rgba(255,255,255,.7); border-color: var(--line); }
    button.button { cursor: pointer; }

    .scroll-mark {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 11px;
      color: #8b8b91;
      font-size: .76rem;
      font-weight: 650;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .scroll-line { width: 42px; height: 1px; background: #b6b6ba; }

    .lab-visual {
      position: relative;
      min-height: 680px;
      display: flex;
      align-items: center;
      padding: clamp(48px, 6vw, 84px);
      overflow: hidden;
      border: 1px solid rgba(16,16,18,.08);
      border-radius: 42px;
      background:
        linear-gradient(rgba(37,87,244,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,87,244,.055) 1px, transparent 1px),
        radial-gradient(circle at 12% 14%, rgba(215,225,255,.86), transparent 34%),
        radial-gradient(circle at 76% 46%, rgba(168,191,255,.9), rgba(238,242,252,.92) 34%, rgba(255,255,255,.86) 70%);
      background-size: 34px 34px, 34px 34px, auto, auto;
      box-shadow: 0 34px 90px rgba(31,44,82,.13);
      isolation: isolate;
    }
    .lab-visual::before {
      content: "";
      position: absolute;
      z-index: 1;
      top: 9%;
      right: 3%;
      width: 45%;
      aspect-ratio: 1;
      border: 1px solid rgba(37,87,244,.13);
      border-radius: 50%;
      animation: lab-spin 22s linear infinite;
    }
    .lab-visual::after {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      background: linear-gradient(90deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.15) 42%, rgba(255,255,255,0) 68%);
      pointer-events: none;
    }
    .lab-orbit {
      position: absolute;
      z-index: 1;
      top: 24%;
      right: 10%;
      width: 31%;
      aspect-ratio: 1;
      border: 1px dashed rgba(37,87,244,.27);
      border-radius: 50%;
      animation: lab-spin 15s linear infinite reverse;
    }
    .lab-orbit::before, .lab-orbit::after {
      content: "";
      position: absolute;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 0 8px rgba(37,87,244,.1), 0 0 36px rgba(37,87,244,.42);
    }
    .lab-orbit::before { top: 12%; left: 8%; }
    .lab-orbit::after { right: 4%; bottom: 18%; }
    .lab-core {
      position: absolute;
      z-index: 3;
      top: 50%;
      left: 76%;
      width: 190px;
      aspect-ratio: 1;
      transform: translate(-50%,-50%);
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.82);
      border-radius: 38%;
      background: rgba(255,255,255,.62);
      box-shadow: inset 0 0 50px rgba(37,87,244,.12), 0 24px 70px rgba(37,87,244,.18);
      backdrop-filter: blur(18px);
      font-size: 2.2rem;
      font-weight: 800;
      letter-spacing: -.065em;
      animation: lab-float 5s ease-in-out infinite;
    }
    .lab-module {
      position: absolute;
      z-index: 4;
      width: 190px;
      padding: 18px;
      border: 1px solid rgba(255,255,255,.78);
      border-radius: 20px;
      background: rgba(255,255,255,.68);
      box-shadow: 0 18px 50px rgba(35,44,74,.1);
      backdrop-filter: blur(18px);
    }
    .lab-module span { display: block; color: #777780; font-size: .68rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
    .lab-module strong { display: block; margin-top: 8px; font-size: 1rem; letter-spacing: -.025em; }
    .lab-module.top { top: 30px; right: 30px; }
    .lab-module.bottom { right: 30px; bottom: 30px; }
    .lab-bars { display: flex; align-items: end; gap: 5px; height: 34px; margin-top: 14px; }
    .lab-bars i { width: 7px; border-radius: 5px; background: var(--blue); opacity: .82; animation: lab-signal 1.8s ease-in-out infinite alternate; }
    .lab-bars i:nth-child(1) { height: 30%; }
    .lab-bars i:nth-child(2) { height: 72%; animation-delay: -.4s; }
    .lab-bars i:nth-child(3) { height: 48%; animation-delay: -.8s; }
    .lab-bars i:nth-child(4) { height: 92%; animation-delay: -1.2s; }
    .lab-coordinate { position: absolute; z-index: 4; right: 250px; top: 38px; color: #777780; font: 700 .7rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
    @keyframes lab-spin { to { transform: rotate(360deg); } }
    @keyframes lab-float { 50% { transform: translate(-50%, calc(-50% - 12px)) rotate(2deg); } }
    @keyframes lab-signal { to { height: 100%; opacity: 1; } }

    .section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
    .section-heading {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: end;
      margin-bottom: 54px;
    }
    .section-kicker { margin: 0 0 12px; color: var(--blue); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
    h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.065em; font-weight: 740; }
    .section-intro { max-width: 470px; justify-self: end; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.58; letter-spacing: -.015em; }

    .projects { display: grid; gap: 28px; }
    .project-card {
      position: relative;
      min-height: 650px;
      display: grid;
      grid-template-rows: 1fr auto;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius);
      background: #0a0a0b;
      color: #fff;
      box-shadow: var(--shadow);
      transform: translateZ(0);
    }
    .project-card.light { background: #e9edf5; color: var(--ink); border-color: rgba(12,12,15,.06); }
    .project-media { position: absolute; inset: 0; overflow: hidden; }
    .project-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,.04) 36%, rgba(0,0,0,.78) 100%);
    }
    .light .project-media::after { background: linear-gradient(180deg, rgba(255,255,255,.02) 36%, rgba(239,242,249,.92) 100%); }
    .project-media img { height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.75,.2,1); }
    .project-card:hover .project-media img { transform: scale(1.025); }

    .project-top {
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 28px;
    }
    .project-number { font-size: .78rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
    .project-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .status {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 13px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 999px;
      background: rgba(10,10,12,.34);
      color: #fff;
      backdrop-filter: blur(14px);
      font-size: .78rem;
      font-weight: 650;
    }
    .light .status { border-color: rgba(10,10,12,.1); background: rgba(255,255,255,.48); color: var(--ink); }
    .project-kind {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 13px;
      border: 1px solid rgba(255,255,255,.24);
      border-radius: 999px;
      background: rgba(255,255,255,.92);
      color: var(--ink);
      font-size: .78rem;
      font-weight: 720;
      backdrop-filter: blur(14px);
    }
    .light .project-kind { border-color: rgba(10,10,12,.1); background: rgba(16,16,18,.88); color: #fff; }
    .project-card.cartel .project-media img { filter: brightness(.82) saturate(.88); }

    .project-content {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: end;
      gap: 26px;
      padding: 40px;
    }
    .project-content h3 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .92; letter-spacing: -.065em; font-weight: 710; }
    .project-content p { max-width: 530px; margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 1.06rem; line-height: 1.5; }
    .light .project-content p { color: rgba(16,16,18,.6); }
    .card-button {
      width: 52px;
      height: 52px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 50%;
      background: rgba(255,255,255,.12);
      color: #fff;
      cursor: pointer;
      backdrop-filter: blur(12px);
      transition: transform .25s ease, background .25s ease;
      font-size: 0;
    }
    .card-button::before, .card-button::after { content: ""; position: absolute; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
    .card-button::after { transform: translate(-50%,-50%) rotate(90deg); }
    .card-button { position: relative; }
    .card-button:hover { transform: rotate(8deg) scale(1.04); background: rgba(255,255,255,.22); }
    .card-button:focus-visible { outline: 3px solid rgba(255,255,255,.5); outline-offset: 3px; }
    .light .card-button { border-color: rgba(10,10,12,.16); background: rgba(255,255,255,.5); color: var(--ink); }

    .manifesto {
      width: min(1240px, calc(100% - 40px));
      margin: 0 auto;
      padding: 80px 0 130px;
    }
    .manifesto-shell {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      min-height: 620px;
      overflow: hidden;
      border-radius: var(--radius);
      background: #111114;
      color: #fff;
      box-shadow: var(--shadow);
    }
    .manifesto-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 6vw, 78px); }
    .manifesto-copy h2 { max-width: 600px; font-size: clamp(3.4rem, 6vw, 6.8rem); }
    .manifesto-copy p { max-width: 540px; margin: 48px 0 0; color: #99999f; font-size: 1.1rem; line-height: 1.6; }
    .manifesto-meta { margin-top: 60px; color: #77777d; font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
    .principles { display: grid; align-content: center; padding: 40px clamp(28px,5vw,70px); border-left: 1px solid rgba(255,255,255,.1); }
    .principle { padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .principle:last-child { border-bottom: 0; }
    .principle span { display: block; margin-bottom: 12px; color: #707078; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
    .principle strong { display: block; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 620; }

    .about {
      width: min(1060px, calc(100% - 40px));
      margin: 0 auto;
      padding: 120px 0 140px;
      text-align: center;
    }
    .about h2 { max-width: 900px; margin: 0 auto; }
    .about-copy { max-width: 740px; margin: 34px auto 0; }
    .about p { margin: 0; color: var(--muted); font-size: 1.18rem; line-height: 1.62; }
    .about p + p { margin-top: 18px; }
    .about .button { margin-top: 36px; }

    footer {
      width: min(1240px, calc(100% - 40px));
      margin: 0 auto;
      padding: 28px 0 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--line);
      color: #77777d;
      font-size: .83rem;
    }
    .footer-mark { color: var(--ink); font-weight: 760; letter-spacing: -.025em; }

    .modal {
      position: fixed;
      z-index: 100;
      inset: 0;
      display: none;
      place-items: center;
      padding: 14px;
      background: rgba(15,15,18,.5);
      backdrop-filter: blur(10px);
    }
    .modal.open { display: grid; }
    .modal-panel {
      width: min(1080px, calc(100% - 28px));
      max-height: calc(100vh - 28px);
      padding: 0;
      overflow-x: hidden;
      overflow-y: auto;
      border: 1px solid rgba(255,255,255,.6);
      border-radius: 30px;
      background: rgba(249,249,251,.94);
      color: var(--ink);
      box-shadow: 0 36px 120px rgba(0,0,0,.28);
      backdrop-filter: blur(30px);
    }
    .dialog-media { height: clamp(230px, 34vw, 390px); overflow: hidden; background: #101114; }
    .dialog-media img { width: 100%; height: 100%; object-fit: cover; }
    .dialog-inner { padding: clamp(28px, 6vw, 56px); }
    .dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
    .dialog-label { margin: 0 0 12px; color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
    .modal h3 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.8rem); line-height: .94; letter-spacing: -.06em; }
    .dialog-close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #e9e9ec; color: var(--ink); cursor: pointer; font-size: 1.25rem; }
    .dialog-close:focus-visible { outline: 3px solid rgba(37,87,244,.35); }
    .dialog-copy { margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.62; }
    .dialog-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 34px; }
    .fact { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
    .fact span { display: block; color: #8b8b91; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .fact strong { display: block; margin-top: 8px; font-size: .95rem; font-weight: 650; }
    .dialog-notes { margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line); }
    .notes-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
    .notes-kicker { margin: 0 0 8px; color: #997015; font-size: .76rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
    .dialog-notes h4 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.05em; }
    .notes-total { color: #838389; font-size: .84rem; font-weight: 650; white-space: nowrap; }
    .notes-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
    .notes-tabs { display: grid; align-content: start; gap: 7px; }
    .notes-tab {
      min-height: 46px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 0 15px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.62);
      color: #5f5f66;
      font: inherit;
      font-size: .9rem;
      font-weight: 650;
      text-align: left;
      cursor: pointer;
    }
    .notes-tab span { color: #9a9aa0; font-size: .76rem; }
    .notes-tab.active { border-color: #171719; background: #171719; color: #fff; }
    .notes-tab.active span { color: #c7a457; }
    .notes-tab:focus-visible { outline: 3px solid rgba(37,87,244,.3); outline-offset: 2px; }
    .notes-panel { min-height: 250px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
    .notes-panel h5 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
    .notes-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
    .notes-list li { position: relative; padding: 13px 0 13px 22px; border-top: 1px solid var(--line); color: #5f5f66; font-size: 1rem; line-height: 1.55; }
    .notes-list li::before { content: ""; position: absolute; top: 22px; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #c99733; }

    .contact-panel { width: min(980px, calc(100% - 28px)); }
    .contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; padding: clamp(30px, 6vw, 58px); }
    .contact-copy h3 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); }
    .contact-copy > p { max-width: 580px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.62; }
    .contact-form { display: grid; gap: 13px; margin-top: 34px; }
    .contact-field { display: grid; gap: 7px; }
    .contact-field label { color: #777780; font-size: .72rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
    .contact-field input, .contact-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); color: var(--ink); padding: 15px 16px; font: inherit; outline: none; }
    .contact-field textarea { min-height: 132px; resize: vertical; }
    .contact-field input:focus, .contact-field textarea:focus { border-color: rgba(37,87,244,.5); box-shadow: 0 0 0 4px rgba(37,87,244,.09); }
    .contact-form .button { justify-self: start; border: 0; cursor: pointer; }
    .form-status { margin: 4px 0 0; color: #315c3d; font-weight: 650; }
    .contact-side { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: 26px; border-radius: 24px; background: #111114; color: #fff; }
    .contact-side h4 { margin: 0; font-size: 1.4rem; letter-spacing: -.035em; }
    .contact-side p { color: #99999f; line-height: 1.6; }
    .contact-detail { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
    .contact-detail span { display: block; color: #73737b; font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .contact-detail strong { display: block; margin-top: 8px; font-size: 1rem; }

    .page-main { overflow: hidden; }
    .page-hero { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 90px; }
    .page-hero h1 { max-width: 1050px; font-size: clamp(4rem, 9vw, 8.7rem); }
    .page-hero p { max-width: 680px; margin: 30px 0 0; color: var(--muted); font-size: 1.24rem; line-height: 1.56; }
    .page-section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 130px; }
    .page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
    .project-index-card { overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
    .project-index-card img { aspect-ratio: 16/10; object-fit: cover; }
    .project-index-body { padding: 30px; }
    .project-index-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
    .project-index-meta span { padding: 8px 11px; border-radius: 999px; background: #ececf0; color: #5f5f66; font-size: .76rem; font-weight: 700; }
    .project-index-body h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
    .project-index-body p { color: var(--muted); font-size: 1.04rem; line-height: 1.58; }
    .text-link { display: inline-flex; margin-top: 14px; color: var(--blue); font-weight: 700; }

    .detail-hero { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; border-radius: 0 0 44px 44px; background: #0a0a0b; color: #fff; }
    .detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.56) saturate(.9); }
    .detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.82)); }
    .detail-hero-inner { position: relative; z-index: 2; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 180px 0 70px; }
    .detail-hero h1 { max-width: 1000px; font-size: clamp(4.8rem, 12vw, 10rem); }
    .detail-hero p { max-width: 700px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 1.2rem; line-height: 1.56; }
    .detail-plus { position: absolute; z-index: 3; right: max(28px, calc((100% - 1240px)/2)); bottom: 74px; }
    .detail-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
    .detail-lead { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
    .detail-lead h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
    .detail-lead p { margin: 0; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }
    .feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 70px; }
    .feature-card { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.65); }
    .feature-card span { color: var(--blue); font-size: .74rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
    .feature-card h3 { margin: 52px 0 0; font-size: 1.8rem; letter-spacing: -.04em; }
    .feature-card p { color: var(--muted); line-height: 1.55; }
    .about-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
    .about-story-copy p { margin: 0 0 22px; color: var(--muted); font-size: 1.17rem; line-height: 1.72; }
    .about-quote { position: sticky; top: 110px; padding: 34px; border-radius: 28px; background: #111114; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.05em; }

    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 760px) {
      .site-nav { padding-left: 15px; }
      .nav-links a:first-child { display: none; }
      .hero { min-height: auto; padding: 128px 18px 90px; }
      h1 { font-size: clamp(3.9rem, 17vw, 5.8rem); }
      .hero-copy { font-size: 1.08rem; }
      .hero-copy-block { width: 100%; align-self: flex-start; }
      .lab-visual { min-height: 760px; align-items: flex-start; padding: 42px 24px; border-radius: 30px; }
      .lab-visual::before { top: auto; right: 4%; bottom: 7%; width: 92%; }
      .lab-visual::after { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 76%); }
      .lab-orbit { top: auto; right: 12%; bottom: 12%; width: 76%; }
      .lab-core { top: auto; left: 50%; bottom: 148px; width: 136px; }
      .lab-module { width: 135px; padding: 12px; border-radius: 16px; }
      .lab-module strong { font-size: .84rem; }
      .lab-module.top { top: auto; right: 18px; bottom: 20px; }
      .lab-module.bottom { left: 18px; right: auto; bottom: 20px; }
      .lab-coordinate { display: none; }
      .scroll-mark { display: none; }
      .section { width: min(100% - 24px, 1240px); padding: 90px 0; }
      .section-heading { grid-template-columns: 1fr; gap: 24px; }
      .section-intro { justify-self: start; }
      .project-card { min-height: 580px; border-radius: 26px; }
      .project-content { grid-template-columns: 1fr auto; padding: 26px; }
      .project-content h3 { font-size: clamp(3.2rem, 16vw, 5rem); }
      .project-top { padding: 22px; }
      .project-badges { max-width: 190px; }
      .manifesto { width: min(100% - 24px, 1240px); padding: 30px 0 90px; }
      .manifesto-shell { grid-template-columns: 1fr; border-radius: 26px; }
      .manifesto-copy { min-height: 510px; }
      .principles { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
      .about { padding: 90px 0 110px; }
      .dialog-facts { grid-template-columns: 1fr; }
      .dialog-media { height: 230px; }
      .notes-head { align-items: flex-start; flex-direction: column; }
      .notes-layout { grid-template-columns: 1fr; }
      .notes-tabs { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
      .notes-tabs::-webkit-scrollbar { display: none; }
      .notes-tab { flex: 0 0 auto; }
      .notes-panel { padding: 22px; }
      .contact-layout { grid-template-columns: 1fr; gap: 24px; }
      .contact-side { min-height: 320px; }
      .page-hero { width: min(100% - 28px, 1240px); padding: 140px 0 60px; }
      .page-hero h1 { font-size: clamp(4rem, 18vw, 6rem); }
      .page-section { width: min(100% - 24px, 1240px); padding: 60px 0 90px; }
      .page-grid, .detail-lead, .feature-grid, .about-story { grid-template-columns: 1fr; }
      .detail-hero { min-height: 690px; border-radius: 0 0 28px 28px; }
      .detail-plus { right: 22px; bottom: 34px; }
      .detail-hero-inner { width: calc(100% - 40px); padding-bottom: 120px; }
      .detail-section { width: calc(100% - 32px); padding: 80px 0; }
      .about-quote { position: static; }
      footer { width: calc(100% - 32px); }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
      .reveal { opacity: 1; transform: none; }
    }

/* WordPress integration */
.admin-bar .site-nav { top: 50px; }
.content-shell { width: min(900px, calc(100% - 40px)); min-height: 70vh; margin: 0 auto; padding: 150px 0 100px; }
.content-shell article { padding: 36px 0; border-bottom: 1px solid var(--line); }
.content-shell h1, .content-shell h2 { overflow-wrap: anywhere; }
.content-shell .entry-content { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.content-shell .entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 64px; } }
