/* ============================================================
   INFR LAB — styles.css (v2)
   System derived from the logo: absolute black, warm white,
   NO accent color. Emphasis = inversion + scale.
   Vocabulary: VJ deck. Sections are OSC addresses. Hovering a
   row/cell "triggers the clip" (full invert). Five faint column
   guides = CLEAN / SOFT / MOVE / BUILD / PEAK.
   ============================================================ */

*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:96px}

:root{
  --black:#050505;
  --white:#f2f0eb;          /* warm paper white, matches logo plate */
  --dim:rgba(242,240,235,.55);
  --line:rgba(242,240,235,.16);
  --line-2:rgba(242,240,235,.08);
  --pad:clamp(20px,4vw,56px);
  --max:1240px;
  --nav-height:48px;
  --znav:100;
  --zmodal:200;
}

body{
  min-height:100vh;
  background:var(--black);
  color:var(--white);
  font-family:"Space Grotesk",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-variation-settings:"wdth" 100;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
  padding-top:88px;
}

/* five column guides — the scene grid */
.grid-guides{position:fixed;inset:0;z-index:0;pointer-events:none;display:grid;grid-template-columns:repeat(5,1fr)}
.grid-guides i{border-right:1px solid var(--line-2)}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
main,header,footer{position:relative;z-index:10}
:focus-visible{outline:2px solid var(--white);outline-offset:3px}
img{max-width:100%}

.shell{width:min(var(--max),calc(100% - var(--pad)*2));margin-inline:auto}
.mono{font-family:"Space Mono",ui-monospace,Menlo,Consolas,monospace;text-transform:uppercase;letter-spacing:.055em;font-size:11px;line-height:1.45}
h1,h2,h3,h4,.hero-line,.title,.cell-name,.drawer-info h2,.wall-name{font-family:"Archivo",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif}
p,.row p,.cell-desc,.founder-text,.footer-note,.result-text,.cc-intro,.contact input,.contact textarea,.bio-form input,.bio-form textarea,.bio-form select{font-family:"Space Grotesk",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif}
.hide{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.trap-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

/* ---------- header ---------- */
.top{position:fixed;top:0;left:0;right:0;z-index:var(--znav);border-bottom:1px solid var(--line);background:rgba(5,5,5,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.top-inner{position:relative;min-height:88px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(18px,3vw,36px);align-items:center}
.brand{display:inline-flex;align-items:center;justify-content:center;width:58px;min-height:58px;padding:0}
.brand-logo{display:block;width:58px;height:58px;aspect-ratio:1/1;object-fit:contain}
.top-actions{justify-self:end;display:flex;align-items:center;gap:16px}
.socials{display:flex;align-items:center;gap:10px}
.social{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--white);border:1px solid var(--line-2);transition:background .15s ease,color .15s ease,border-color .15s ease}
.social svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.35}
.social:hover{background:var(--white);color:var(--black)}
.status{display:flex;align-items:center;gap:8px;color:var(--dim);white-space:nowrap}
.dot{width:7px;height:7px;background:var(--white);border-radius:50%;animation:blink 2.4s steps(2) infinite}
.menu-toggle{display:none;min-height:44px;align-items:center;justify-content:center;border:1px solid var(--line);background:transparent;color:var(--white);padding:0 14px;font-weight:700;letter-spacing:.08em}

/* ---------- studio navigation ---------- */
.transport{justify-self:center;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.transport a{display:inline-flex;align-items:center;justify-content:center;min-height:var(--nav-height);padding:0 clamp(10px,1.4vw,18px);color:var(--dim);border:1px solid transparent;letter-spacing:.035em;text-align:center;white-space:nowrap;transition:background .15s ease,color .15s ease,border-color .15s ease}
.transport a:hover,.transport a.active{border-color:var(--line);background:rgba(242,240,235,.08);color:var(--white)}

/* ---------- hero ---------- */
.hero{min-height:calc(100svh - 88px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:clamp(60px,9vw,118px) 0 clamp(60px,8vw,104px);gap:clamp(26px,4vw,48px)}
.lock{display:flex;align-items:center;justify-content:center;user-select:none}
.hero-logo{display:block;width:clamp(156px,21vw,286px);height:auto;aspect-ratio:1/1;object-fit:contain}
.hero-line{max-width:880px;font-size:clamp(34px,5.2vw,72px);line-height:1.02;color:var(--white);font-weight:760;letter-spacing:0;font-variation-settings:"wdth" 100}
.hero-line em{font-style:normal;color:var(--white)}
.hero-meta{display:flex;gap:28px;color:var(--dim)}
.hero-meta span{position:relative}
.hero-meta span+span::before{content:"/";position:absolute;left:-16px;color:var(--line)}

/* ---------- sections ---------- */
section,footer{scroll-margin-top:12px}
.section{padding:clamp(76px,9vw,132px) 0;border-top:1px solid var(--line)}
.head{display:grid;grid-template-columns:auto 1fr auto;gap:clamp(20px,3vw,40px);align-items:end;margin-bottom:clamp(36px,5vw,64px)}
.addr{color:var(--dim);letter-spacing:.09em}
.title{font-weight:780;font-size:clamp(38px,5.8vw,82px);line-height:.96;letter-spacing:0;font-variation-settings:"wdth" 100;text-transform:uppercase}
.meta{color:var(--dim)}
.head .meta{text-align:right}
.strata{margin:30px 0 0;padding:12px 0;border-bottom:1px solid var(--line);color:var(--dim);letter-spacing:.13em}

/* ---------- systems rows — clips ---------- */
.rows{border-bottom:1px solid var(--line)}
.row{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:clamp(18px,3.5vw,44px);padding:18px 16px;border-top:1px solid var(--line-2);align-items:baseline;cursor:default;transition:background .12s ease,color .12s ease}
.row .idx{color:var(--dim)}
.row h3{font-weight:720;font-size:clamp(22px,2.6vw,32px);line-height:1.08;letter-spacing:0;text-transform:uppercase;font-variation-settings:"wdth" 101}
.row p{margin-top:10px;color:var(--dim);font-size:16px;line-height:1.68;max-width:680px}
#work .row {
  grid-template-columns: 52px minmax(0,1fr) auto;
  column-gap: clamp(12px, 1.8vw, 24px);
  row-gap: 0;
  padding: 28px 12px 30px;
  align-items: start;
}
#work .row > div {
  min-width: 0;
}
#work .row .idx {
  padding-top: 3px;
  font-family: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .065em;
}
#work .row h3 {
  font-size: clamp(21px, 1.7vw, 25px);
  text-transform: none;
  font-weight: 600;
  font-variation-settings: "wdth" 96, "wght" 600;
  letter-spacing: -.015em;
  line-height: 1.08;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-wrap: balance;
}
#work .row p:not(.proof-links) {
  font-family: "Iowan Old Style", "Charter", "Baskerville", "Times New Roman", Georgia, serif;
  font-size: 15px;
  line-height: 1.46;
  letter-spacing: 0;
  margin-top: 7px;
  max-width: 42ch;
  text-align: left;
  color: rgba(242,240,235,.70);
  font-kerning: normal;
  font-optical-sizing: auto;
  text-wrap: pretty;
}
#work .proof-img {
  margin: 14px 0 0;
}
#work .row .proof-links {
  font-family: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  margin-top: 10px;
  max-width: none;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .055em;
}
#work .row .state {
  align-self: start;
  padding-top: 3px;
  font-family: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .055em;
}
#work .title {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .98;
}
#work .head {
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
#work .meta {
  max-width: 34ch;
  font-size: 10px;
  line-height: 1.5;
}
.row .state{color:var(--dim);white-space:nowrap}
/* trigger the clip */
.row:hover,.row:focus-visible{background:var(--white);color:var(--black)}
.row:hover .idx,.row:hover p,.row:hover .state,
.row:focus-visible .idx,.row:focus-visible p,.row:focus-visible .state{color:rgba(5,5,5,.62)}
#work .row:hover,
#work .row:focus-visible {
  background: rgba(242,240,235,.035);
  color: var(--white);
  border-top-color: rgba(242,240,235,.18);
}
#work .row:hover .idx,
#work .row:hover p,
#work .row:hover .state,
#work .row:focus-visible .idx,
#work .row:focus-visible p,
#work .row:focus-visible .state {
  color: var(--dim);
}

/* ---------- tool cells ---------- */
.cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line)}
.cell{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:260px;padding:26px;text-align:left;background:transparent;border:0;border-right:1px solid var(--line-2);color:var(--white);transition:background .12s ease,color .12s ease}
.cell:last-child{border-right:0}
.cell .idx{color:var(--dim)}
.cell-name{font-weight:720;font-size:clamp(22px,2.2vw,28px);line-height:1.08;text-transform:uppercase;font-variation-settings:"wdth" 101}
.cell-desc{color:var(--dim);font-size:15px;line-height:1.65}
.cell-cta{margin-top:auto;letter-spacing:.09em}
.cell:not(.off):hover,.cell:not(.off):focus-visible{background:var(--white);color:var(--black)}
.cell:not(.off):hover .idx,.cell:not(.off):hover .cell-desc,
.cell:not(.off):focus-visible .idx,.cell:not(.off):focus-visible .cell-desc{color:rgba(5,5,5,.62)}
.cell.off{opacity:.42;cursor:default}

/* ---------- tools — editorial presentation ---------- */
#tools .title {
  text-transform: none;
}
#tools .addr,
#tools .meta {
  font-family: "Space Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
#tools .cells {
  gap: clamp(24px, 3vw, 42px);
  border: 0;
}
#tools .cell {
  gap: 10px;
  min-height: 230px;
  padding: 24px 0 26px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-2);
}
#tools .cell .idx {
  display: none;
}
#tools .cell-name {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.1;
  font-weight: 600;
  font-variation-settings: "wdth" 96, "wght" 600;
  text-transform: none;
  letter-spacing: -.012em;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-wrap: balance;
}
#tools .cell-desc {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.46;
}
#tools .cell-cta {
  margin-top: auto;
  padding-top: 16px;
  font-family: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .075em;
}
#tools .cell:not(.off):hover,
#tools .cell:not(.off):focus-visible {
  background: rgba(242,240,235,.035);
  color: var(--white);
}
#tools .cell:not(.off):hover .cell-desc,
#tools .cell:not(.off):focus-visible .cell-desc {
  color: var(--dim);
}
#tools .cell.off {
  opacity: 1;
}

@media (max-width: 920px) {
  #tools .cells {
    gap: 0;
  }
  #tools .cell {
    min-height: auto;
    padding: 24px 0 28px;
  }
}

/* ---------- field log ---------- */
.log{list-style:none;border:1px solid var(--line)}
.log-line{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:clamp(14px,3vw,30px);padding:20px 16px;border-top:1px solid var(--line-2);align-items:baseline;font-size:16px;line-height:1.45;transition:background .12s ease,color .12s ease}
.log-line:first-child{border-top:0}
.log-line span:first-child{color:var(--dim);font-family:"Space Mono",ui-monospace,Menlo,Consolas,monospace;text-transform:uppercase;letter-spacing:.045em;font-size:12px}
.log-line .tag{color:var(--dim);border:1px solid var(--line);padding:4px 8px;white-space:nowrap}
.log-line:hover{background:var(--white);color:var(--black)}
.log-line:hover span:first-child,.log-line:hover .tag{color:rgba(5,5,5,.62);border-color:rgba(5,5,5,.3)}
.log-line.upcoming{color:var(--white)}.log-line.upcoming .tag{border-color:var(--white);color:var(--white)}.log-line.next{background:var(--white);color:var(--black)}
.log-line.next span:first-child{color:rgba(5,5,5,.62)}
.log-line.next .tag{color:var(--black);border-color:var(--black);font-weight:700}

/* ---------- live work — editorial presentation ---------- */
#tests .head {
  grid-template-columns:minmax(0,1fr) auto;
}
#tests .addr,
#tests .strata {
  display:none;
}
#tests .title {
  text-transform:none;
}
#tests .meta {
  max-width:38ch;
  font-family:"Space Grotesk",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  text-transform:none;
  letter-spacing:0;
}
#tests .timeline {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(32px,5vw,72px);
}
#tests .timeline-group {
  min-width:0;
}
#tests .log {
  border:0;
}
#tests .log-line,
#tests .log-line.next,
#tests .log-line.upcoming {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:22px 0 24px;
  background:transparent;
  border-top:1px solid var(--line-2);
  color:var(--black);
  align-items:start;
}
#tests .log-line:first-child {
  border-top:1px solid var(--line-2);
}
#tests .log-line:last-child {
  border-bottom:1px solid var(--line-2);
}
#tests .log-line > span:first-child {
  font-family:"Space Mono",ui-monospace,Menlo,Consolas,monospace;
  font-size:10px;
  line-height:1.4;
  letter-spacing:.055em;
  text-transform:none;
}
#tests .log-line > span:nth-child(2) {
  display:grid;
  gap:6px;
}
#tests .log-line strong {
  font-size:clamp(20px,1.75vw,24px);
  line-height:1.1;
  font-weight:600;
  font-variation-settings:"wdth" 96,"wght" 600;
  letter-spacing:-.012em;
  text-wrap:balance;
}
#tests .log-line small {
  display:block;
  font-size:14px;
  line-height:1.45;
}
#tests .log-line .tag {
  width:fit-content;
  padding:0;
  border:0;
  font-size:10px;
  line-height:1.4;
  letter-spacing:.055em;
  font-weight:400;
}
#tests .log-line:hover,
#tests .log-line:focus-visible {
  background:rgba(242,240,235,.035);
  color:var(--white);
}

@media (max-width:920px) {
  #tests .head,
  #tests .timeline {
    grid-template-columns:1fr;
  }
  #tests .head {
    gap:10px;
  }
  #tests .meta {
    max-width:34ch;
    text-align:left;
  }
  #tests .timeline {
    gap:34px;
  }
  #tests .log-line,
  #tests .log-line.next,
  #tests .log-line.upcoming {
    padding:18px 0 20px;
  }
}

/* ---------- founder ---------- */
.founder-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1fr);gap:clamp(24px,5vw,60px);align-items:center}
.photo{border:1px solid var(--line);aspect-ratio:16/9;overflow:hidden;background:#0c0c0c}
.photo img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) contrast(1.05)}
.founder-text{font-size:clamp(20px,2.25vw,28px);line-height:1.42;letter-spacing:0;max-width:620px}
.links{margin-top:26px;display:flex;gap:16px;flex-wrap:wrap}

/* ---------- buttons ---------- */
.btn,.contact button,.bio-btn{min-height:50px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--white);background:transparent;color:var(--white);padding:0 18px;font-weight:700;letter-spacing:.07em;transition:background .15s ease,color .15s ease}
.btn:hover,.contact button:hover,.bio-btn:hover{background:var(--white);color:var(--black)}
.contact button:disabled,.bio-btn:disabled{opacity:.5;cursor:not-allowed}

/* ---------- footer / contact ---------- */
footer{border-top:1px solid var(--line);padding:clamp(68px,8vw,116px) 0 30px}
.footer-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(28px,6vw,72px);margin-top:8px}
.email{display:inline-flex;width:fit-content;font-size:clamp(15px,2vw,20px);border-bottom:1px solid var(--white);padding-bottom:4px}
.email:hover{background:var(--white);color:var(--black)}
.footer-note{margin-top:18px;color:var(--dim);font-size:16px;line-height:1.65}
.footer-bottom{margin-top:52px;padding-top:18px;border-top:1px solid var(--line-2);display:flex;justify-content:space-between;gap:20px;color:var(--dim)}

/* ---------- forms ---------- */
.contact,.bio-form{display:grid;gap:18px}
.contact input,.contact textarea,.bio-form input,.bio-form textarea,.bio-form select{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--white);padding:10px 2px 11px;outline:0;font-size:16px;line-height:1.45;min-height:44px}
.contact textarea,.bio-form textarea{resize:vertical;min-height:84px;line-height:1.5}
.contact input::placeholder,.contact textarea::placeholder,.bio-form input::placeholder,.bio-form textarea::placeholder{color:var(--dim)}
.contact input:focus,.contact textarea:focus,.bio-form input:focus,.bio-form textarea:focus,.bio-form select:focus{border-bottom-color:var(--white)}
.bio-form select{appearance:none;-webkit-appearance:none;border-radius:0;color:var(--white)}
.bio-form select option{background:#111;color:var(--white)}
.contact button,.bio-btn{width:fit-content;font-size:11px}
.message,.cc-status{color:var(--dim);font-size:12px;line-height:1.5;min-height:18px}
#bioApiStatus{color:var(--white);font-size:13px;font-weight:600}
.select{display:grid;gap:9px;position:relative}
.select>span{color:var(--dim)}
.select::after{content:"";position:absolute;right:16px;bottom:20px;width:8px;height:8px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;color:var(--dim);transform:rotate(45deg);pointer-events:none}
.select select{width:100%;min-height:58px;appearance:none;-webkit-appearance:none;border:1px solid var(--line);background:var(--black);color:var(--white);padding:0 44px 0 16px;outline:none}
.select select:focus{border-color:var(--white)}
.select select option{background:#111;color:var(--white)}

/* ---------- drawer ---------- */
.drawer{position:fixed;inset:0;z-index:var(--zmodal);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
.drawer.open{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(0,0,0,.72)}
.drawer-panel{position:absolute;top:0;left:0;width:min(1120px,calc(100% - 18px));height:100dvh;background:var(--black);border-right:1px solid var(--line);transform:translateX(-102%);transition:transform .3s cubic-bezier(.16,1,.3,1);overflow:hidden}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-shell{height:100%;display:grid;grid-template-columns:300px minmax(0,1fr)}
.drawer-info{padding:22px;border-right:1px solid var(--line-2);display:flex;flex-direction:column;gap:16px}
.drawer-info h2{font-weight:780;font-size:clamp(28px,3.4vw,44px);line-height:.98;text-transform:uppercase;font-variation-settings:"wdth" 100;overflow-wrap:anywhere}
.drawer-info p{color:var(--dim);font-size:14px;line-height:1.7}
.tool-back{width:fit-content;min-height:44px;padding:0 12px;font-size:10px}
.drawer-body{min-width:0;min-height:0;overflow-y:auto;padding:24px}
.bio-form{max-width:600px}
.bio-form label{display:block;margin-bottom:4px;color:var(--dim)}
.example-line{margin:0 0 18px;padding:14px 16px;border-left:3px solid var(--white);background:rgba(242,240,235,.06);color:var(--white);font-size:15px;font-weight:500;line-height:1.45}

/* bio results */
.bio-results{margin-top:32px;display:none;flex-direction:column;gap:24px}
.result{padding:20px;border:1px solid var(--line)}
.result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.result-head h4{margin:0;flex:1;min-width:0}
.result h4{color:var(--white);margin-bottom:12px;font-size:14px}
.char-count{color:var(--dim);font-family:"Space Mono",monospace;font-size:11px;white-space:nowrap}
.result-text{line-height:1.65;color:var(--white);white-space:pre-line;overflow-wrap:anywhere;word-break:break-word}
.copy-bio{margin:0;min-height:44px;padding:0 16px;border:1px solid var(--line);background:transparent;color:var(--white);font-size:11px;transition:background .15s ease,color .15s ease}
.copy-bio:hover{background:var(--white);color:var(--black)}

/* ---------- contact card builder ---------- */
.cc-builder{display:grid;gap:18px;max-width:860px}
.cc-intro{display:grid;gap:14px;color:var(--dim);font-size:14px;line-height:1.6;max-width:620px}
.steps{display:flex;align-items:center;gap:16px;margin:4px 0 10px}
.step{display:flex;align-items:center;gap:10px;opacity:.35;animation:step 12s infinite}
.step:nth-child(1){animation-delay:0s}
.step:nth-child(3){animation-delay:4s}
.step:nth-child(5){animation-delay:8s}
.step svg{width:28px;height:28px;color:var(--white);flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.5}
.line{flex:1;min-width:22px;height:1px;background:var(--line)}
.fieldset{border:0;display:grid;gap:10px;margin-top:2px}
.fieldset legend{margin-bottom:4px;color:var(--dim)}
.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mode{position:relative;display:block;cursor:pointer}
.mode input{position:absolute;opacity:0;pointer-events:none}
.mode span{min-height:64px;display:grid;place-items:center;gap:4px;padding:12px 10px;border:1px solid var(--line);background:transparent;text-align:center;transition:background .15s ease,color .15s ease,border-color .15s ease}
.mode strong{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.mode small{display:block;color:var(--dim);font-size:11px;line-height:1.35}
.mode input:checked+span,.mode span:hover{background:var(--white);color:var(--black);border-color:var(--white)}
.mode input:checked+span small,.mode span:hover small{color:rgba(5,5,5,.62)}
.cc-results{display:none;gap:18px}
.cc-results.on{display:grid}
.cc-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,230px);gap:18px;align-items:start}
.preview-card{padding:0}
.preview-label{color:var(--dim);margin-bottom:12px}
.preview-outer{display:flex;justify-content:center;overflow:visible;border:0;padding:0}
.preview-scale{position:relative;width:min(100%,320px);overflow:visible}
.fit-note{margin-top:12px;color:var(--dim);font-size:12px;line-height:1.5}
.cc-result-actions{position:sticky;top:8px;padding:0;border:0;background:transparent}
.cc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:0}
.cc-actions .bio-btn{width:100%}
.cc-actions .cc-primary{min-height:54px}
.cc-actions .cc-secondary{min-height:44px}
.export-stage{position:fixed;left:-99999px;top:0;pointer-events:none;opacity:0}
.size-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;color:var(--dim);font-size:11px}
.size-pill{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid var(--line);color:var(--white)}

/* ---------- exported ghost card (unchanged export artifact) ---------- */
.wall{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;background:#111;color:#f7f4ef;font-family:"Archivo",system-ui,sans-serif}
.wall.light{background:#f0ede9;color:#111}
.wall.dark .wall-panel{background:#111;border:1px solid rgba(247,244,239,.14)}
.wall.light .wall-panel{background:#f0ede9;border:1px solid rgba(17,17,17,.12)}
.wall-panel{display:flex;flex-direction:column;justify-content:space-between;align-items:center;box-sizing:border-box;flex-shrink:0;text-align:center}
.wall-top,.wall-bottom{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}
.ghost{margin-bottom:20px}
.ghost svg{display:block;width:46px;height:auto}
.wall-name{max-width:86%;margin-bottom:12px;font-size:38px;font-weight:300;line-height:.98;letter-spacing:-.035em;word-break:normal;overflow-wrap:anywhere;hyphens:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wall-tag{max-width:84%;margin-bottom:20px;font-size:17px;font-weight:400;line-height:1.32}
.divider{width:36px;height:1px;margin-bottom:14px;background:currentColor;opacity:.20}
.hint,.event1,.event2{font-family:"Space Mono",ui-monospace,monospace;text-transform:uppercase}
.hint{margin-bottom:14px;font-size:9px;letter-spacing:.18em;opacity:.82}
.qr{margin-bottom:12px}
.qr canvas,.qr img{display:block}
.event1{margin-bottom:4px;font-size:9px;font-weight:700;letter-spacing:.16em;opacity:.74}
.event2{font-size:8px;letter-spacing:.05em;opacity:.58}
.wall.light .event1{opacity:.48}
.wall.light .event2{opacity:.40}
.wall.light .hint{opacity:.64}

/* ---------- animation ---------- */
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes scan{0%,18%{transform:translateY(0);opacity:0}30%{opacity:1}70%{opacity:.6}100%{transform:translateY(1200%);opacity:0}}
@keyframes step{0%,5%{opacity:.35}12%,35%{opacity:1}42%,100%{opacity:.35}}

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

/* ---------- responsive ---------- */
@media (max-width:1100px){.status{display:none}.osc{display:none}}
@media (max-width:920px){
  html{scroll-padding-top:76px}
  html,body{max-width:100%;overflow-x:hidden}
  body{padding-top:68px}
  section,footer{scroll-margin-top:12px}
  .top-inner{grid-template-columns:auto auto;min-height:68px;justify-content:space-between}
  .brand{width:44px;min-height:56px}
  .brand-logo{width:34px}
  .top-actions{justify-self:end}
  .top-actions .socials{display:none}
  .menu-toggle{display:inline-flex}
  .transport{position:absolute;top:100%;left:0;right:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;background:var(--black);border:1px solid var(--line);box-shadow:0 18px 28px rgba(0,0,0,.24);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s}
  .top.menu-open .transport{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition-delay:0s}
  .transport a{min-height:48px;padding:0 10px;font-size:11px;letter-spacing:.04em;border-color:var(--line-2);white-space:normal}
  .hero{min-height:calc(100svh - 68px);gap:28px;padding:44px 0 48px}
  .hero-logo{width:clamp(118px,34vw,162px)}
  .hero-line{font-size:clamp(29px,9.2vw,48px);line-height:1;padding:0 2px}
  .hero-meta{flex-wrap:wrap;justify-content:center;gap:18px 26px}
  .section{padding:58px 0}
  .head{grid-template-columns:1fr;gap:10px;margin-bottom:28px}
  .head .meta{text-align:left}
  .title{font-size:clamp(32px,9.5vw,52px)}
  .row{grid-template-columns:1fr;gap:10px;padding:20px 12px}
  .row .state{justify-self:start}
  .cells{grid-template-columns:1fr}
  .cell{border-right:0;border-bottom:1px solid var(--line-2);min-height:auto}
  .cell:last-child{border-bottom:0}
  .log-line{grid-template-columns:1fr;gap:8px;padding:14px 12px}
  .log-line .tag{justify-self:start}
  .founder-grid{grid-template-columns:1fr;gap:20px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:8px}
  .drawer-panel{width:100%;max-width:100%;border-right:0}
  .drawer-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .drawer-info{border-right:0;border-bottom:1px solid var(--line-2);padding:calc(16px + env(safe-area-inset-top)) 16px 16px;gap:10px}
  .drawer-info h2{font-size:26px}
  .drawer-body{padding:16px 16px calc(24px + env(safe-area-inset-bottom))}
  .modes,.cc-grid{grid-template-columns:1fr}
  .preview-card{padding:14px}
  .cc-result-actions{position:static;padding:0}
  .bio-btn{width:100%;font-size:12px}
  .result{padding:16px}
}
@media (max-width:520px){
  body{--pad:18px}
  .top-actions{gap:8px}
  .socials{gap:6px}
  .social{width:42px;height:42px}
  .transport{grid-template-columns:1fr}
  .transport a{font-size:11px;letter-spacing:.04em}
}
@media (max-width: 640px) {
  #work .row {
    grid-template-columns: minmax(0,1fr);
    column-gap: 0;
    row-gap: 0;
    padding: 26px 0 30px;
  }
  #work .row > div {
    width: 100%;
  }
  #work .row .idx {
    margin-bottom: 6px;
    padding-top: 0;
  }
  #work .row h3 {
    font-size: 22px;
    line-height: 1.08;
  }
  #work .row p:not(.proof-links) {
    font-size: 15.5px;
    line-height: 1.48;
    max-width: 100%;
    margin-top: 7px;
  }
  #work .proof-img {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
  }
  #work .row .proof-links {
    margin-top: 10px;
  }
  #work .row .state {
    margin-top: 10px;
    padding-top: 0;
  }
}

/* ---------- selected productions — editorial cards ---------- */
.productions-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(28px,3.6vw,52px);
}
.production-card{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto;
  align-content:start;
}
.production-thumb{
  display:block;
  width:calc(100% - 8px);
  aspect-ratio:16/9;
  overflow:hidden;
}
.production-thumb picture,
.production-thumb img{
  display:block;
  width:100%;
  height:100%;
}
.production-thumb img{
  object-fit:cover;
  filter:grayscale(1) contrast(.9) brightness(1.02);
  transition:filter .24s ease;
}
.production-content{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto auto;
  align-items:start;
  gap:4px;
  padding-top:9px;
}
.production-title{
  font-size:clamp(18px,1.55vw,22px);
  font-weight:720;
  line-height:1.15;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.production-description{
  max-width:56ch;
  color:var(--dim);
  font-size:14px;
  line-height:1.45;
}
.production-link{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:fit-content;
  min-height:44px;
  padding:0 2px;
  font-size:10px;
}
.production-link:hover{opacity:.65}
.production-thumb:focus-visible,
.production-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

@media (hover:hover){
  .production-thumb:hover img{filter:grayscale(.82) contrast(.92) brightness(1.02)}
}

@media (max-width:1100px){
  .productions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 40px}
}
@media (max-width:700px){
  .productions-grid{grid-template-columns:1fr;gap:44px}
}
