/* INFR LAB — Light Room final studio layer
   Visual-only override. No API, no deploy, no structure changes. */

/* ── Contact card generator: loading skeleton + result feedback ────── */
#ccResults { scroll-margin: 90px 0; }

#ccResults.loading .preview-outer {
  position: relative;
  min-height: 360px;
}
#ccResults.loading .preview-scale { opacity: 0; }
#ccResults.loading .preview-outer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(100deg,
    rgba(17, 17, 17, .06) 25%,
    rgba(17, 17, 17, .14) 50%,
    rgba(17, 17, 17, .06) 75%);
  background-size: 220% 100%;
  animation: ccShimmer 1.15s ease-in-out infinite;
}
@keyframes ccShimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

/* Success/status line: keep it readable and reserve space (no layout jump) */
#ccStatus, #ccExport { min-height: 18px; color: var(--ink) !important; }

/* ── A11y: keyboard focus + skip link (2026-07-09) ─────────────────── */
/* Base focus outline is white — invisible on the paper sections.
   Default to ink; keep bone only on the dark header/hero/nav/drawer rail. */
:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 3px !important;
}

.top :focus-visible,
.hero :focus-visible,
.transport :focus-visible,
.bottom :focus-visible,
.drawer-info :focus-visible,
.live-now :focus-visible {
  outline-color: var(--bone) !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  background: var(--ink);
  color: var(--bone);
  padding: 10px 16px;
  font: 600 12px/1 "Space Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--bone) !important;
  outline-offset: 2px;
}

:root {
  --black: #0b0b0a !important;
  --ink: #111111 !important;
  --bone: #f2f0eb !important;
  --paper: #ede7dc !important;
  --paper-soft: #f8f4ed !important;
  --dim: #514c45 !important;
  --muted: #746c62 !important;
  --line: rgba(17, 17, 17, .18) !important;
  --line-2: rgba(17, 17, 17, .10) !important;
  --cyan: #111111 !important;
  --copper: #6f675e !important;
}

html,
body {
  background: var(--paper) !important;
  color: var(--ink) !important;
  overflow-x: hidden !important;
  text-rendering: optimizeLegibility;
}

/* Remove unresolved template/startup glow */
.glow,
body::before,
body::after {
  opacity: 0 !important;
}

.grid-guides {
  opacity: .14 !important;
  mix-blend-mode: multiply !important;
}

.grid-guides i {
  background: rgba(17, 17, 17, .08) !important;
}

/* Header brand tagline */
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-tag {
  color: rgba(242, 240, 235, .55) !important;
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-tag .amp { font-style: italic; }
@media (max-width: 1180px) { .brand-tag { display: none !important; } }

/* Header: black studio bar */
.top {
  background: var(--black) !important;
  color: var(--bone) !important;
  border-bottom: 1px solid rgba(242, 240, 235, .16) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.top a,
.top .osc,
.top .status,
.top .menu-toggle,
.top .social,
.top .social svg {
  color: var(--bone) !important;
}

.top .social {
  background: transparent !important;
  border: 1px solid rgba(242, 240, 235, .18) !important;
}

.top .menu-toggle {
  background: transparent !important;
  border: 1px solid rgba(242, 240, 235, .22) !important;
}

.top .social:hover,
.top .menu-toggle:hover {
  background: var(--bone) !important;
  color: var(--black) !important;
}

/* Logo containers: keep square SVG proportions, no stretching */
.brand {
  background: var(--black) !important;
  color: var(--bone) !important;
  border: 1px solid rgba(242, 240, 235, .18) !important;
}

.brand-logo {
  display: block !important;
  width: clamp(34px, 4vw, 44px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

.hero-logo {
  display: block !important;
  width: min(100%, clamp(80px, 8vw, 118px)) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

/* Hero: black room — the logo + tagline + meta must fit in one screen, no scroll */
.hero {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100svh - 76px) !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  padding-top: clamp(16px, 2.5vw, 32px) !important;
  padding-bottom: clamp(16px, 2.5vw, 32px) !important;
  padding-left: max(var(--pad, 24px), env(safe-area-inset-left)) !important;
  padding-right: max(var(--pad, 24px), env(safe-area-inset-right)) !important;
  gap: clamp(12px, 1.8vw, 22px) !important;
  background: var(--black) !important;
  color: var(--bone) !important;
  border-bottom: 1px solid rgba(242, 240, 235, .16) !important;
}

/* ── Elevated hero composition (2026-07-10) ─────────────────────────
   Statement headline + descriptive subline + hairline rule + mono meta.
   One confident line instead of a 4-line wall of text. */
.hero .hero-line {
  max-width: 22ch !important;
  margin: 0 auto !important;
  font-size: clamp(34px, 6vw, 74px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
  text-wrap: balance;
}
.hero .hero-line .amp {
  font-weight: 300 !important;
  font-style: italic;
  letter-spacing: 0 !important;
}

.hero-sub {
  max-width: 44ch !important;
  margin: 0 auto !important;
  color: rgba(242, 240, 235, .62) !important;
  font-size: clamp(14px, 1.5vw, 18px) !important;
  line-height: 1.55 !important;
  text-wrap: balance;
}
.hero-sub em {
  font-style: normal !important;
  color: var(--bone) !important;
}

.hero-rule {
  width: 42px;
  height: 1px;
  background: rgba(242, 240, 235, .28);
  margin: clamp(2px, 0.6vw, 8px) auto;
}

.hero .hero-meta {
  gap: clamp(14px, 2vw, 30px) !important;
  font-size: 10.5px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  opacity: .6 !important;
}

.hero .lock,
.lock {
  background: var(--black) !important;
  color: var(--bone) !important;
  border: 1px solid rgba(242, 240, 235, .18) !important;
}

.hero .hero-line,
.hero .hero-line em,
.hero .hero-meta,
.hero-title,
.hero-title span,
.hero-title .reveal {
  color: var(--bone) !important;
}

.hero .hero-meta {
  opacity: .68 !important;
}

/* Body: light room */
.section,
main > section:not(.hero),
footer {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.title,
h1,
h2,
h3,
h4,
.cell-name,
.founder-text,
.about-text {
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

p,
.note,
.meta,
.tags,
.hero-meta,
.stream-tag,
.cell-desc,
.row p,
.footer-note,
.example-line,
.result-text,
.cc-intro {
  color: var(--dim) !important;
}

.addr,
.num,
.idx,
.state,
.cell-cta,
.tag,
.accent,
.reveal {
  color: var(--ink) !important;
}

/* Cards: editorial, not template */
.card,
.event,
.now,
.tile,
.row,
.cell,
.contact,
.drawer-panel,
.result,
.preview-card,
.select,
input,
textarea,
select {
  background: rgba(255, 252, 246, .56) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

input,
textarea,
select {
  background: rgba(255, 252, 246, .86) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(17, 17, 17, .48) !important;
}

button,
.btn,
.bio-btn,
.contact button {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border-color: var(--ink) !important;
}

button:hover,
.btn:hover,
.bio-btn:hover,
.contact button:hover {
  background: #4e4942 !important;
  border-color: #4e4942 !important;
  color: #ffffff !important;
}

/* Bottom nav */
.bottom,
.transport {
  background: var(--black) !important;
  color: var(--bone) !important;
  border-color: rgba(242, 240, 235, .16) !important;
}

.bottom a,
.transport a {
  color: rgba(242, 240, 235, .72) !important;
}

.bottom a:hover,
.transport a:hover {
  background: var(--bone) !important;
  color: var(--black) !important;
}

/* Mobile hero correction */
@media (max-width: 920px) {
  .hero {
    min-height: calc(100svh - 68px) !important;
  }

  .hero .hero-line {
    width: auto !important;
    max-width: 12ch !important;
    font-size: clamp(38px, 10vw, 56px) !important;
    line-height: 0.98 !important;
    text-wrap: balance !important;
  }

  .hero .hero-line br {
    display: none !important;
  }

  .hero .hero-meta {
    max-width: 100% !important;
    row-gap: 10px !important;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }

  .hero .hero-line {
    max-width: 10ch !important;
    font-size: clamp(34px, 11vw, 46px) !important;
    line-height: 0.98 !important;
  }

  .hero .hero-meta {
    font-size: 9px !important;
    letter-spacing: .05em !important;
    gap: 10px 18px !important;
  }

  .bottom a {
    font-size: 8.5px !important;
    letter-spacing: 0 !important;
  }
}

/* ── HOVER OVERLAY FIX for Tools cells (2026-07-08) ───────────────── */
.cell:not(.off):hover,
.cell:not(.off):focus-visible {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border-color: var(--ink) !important;
  transition: background .18s ease, color .18s ease !important;
}
.cell:not(.off):hover .cell-name,
.cell:not(.off):hover .cell-desc,
.cell:not(.off):hover .cell-cta,
.cell:not(.off):hover .idx,
.cell:not(.off):focus-visible .cell-name,
.cell:not(.off):focus-visible .cell-desc,
.cell:not(.off):focus-visible .cell-cta,
.cell:not(.off):focus-visible .idx {
  color: var(--bone) !important;
}

#tools .cells {
  border: 0 !important;
}

#tools .cell {
  background: transparent !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-top: 1px solid rgba(17, 17, 17, .14) !important;
  box-shadow: none !important;
}

#tools .cell-name {
  color: var(--ink) !important;
  letter-spacing: -.012em !important;
}

#tools .cell-desc {
  color: rgba(17, 17, 17, .68) !important;
}

#tools .cell-cta {
  color: rgba(17, 17, 17, .72) !important;
}

#tools .cell.off .cell-cta {
  color: rgba(17, 17, 17, .56) !important;
}

#tools .cell:not(.off):hover,
#tools .cell:not(.off):focus-visible {
  background: rgba(17, 17, 17, .035) !important;
  color: var(--ink) !important;
  border-top-color: rgba(17, 17, 17, .2) !important;
}

#tools .cell:not(.off):hover .cell-name,
#tools .cell:not(.off):focus-visible .cell-name {
  color: var(--ink) !important;
}

#tools .cell:not(.off):hover .cell-desc,
#tools .cell:not(.off):focus-visible .cell-desc {
  color: rgba(17, 17, 17, .68) !important;
}

#tools .cell:not(.off):hover .cell-cta,
#tools .cell:not(.off):focus-visible .cell-cta {
  color: rgba(17, 17, 17, .72) !important;
}

/* Mesmo padrão pra .log-line e .row */
.log-line:hover,
.log-line:focus-visible {
  background: var(--ink) !important;
  color: var(--bone) !important;
}
.log-line:hover span,
.log-line:hover .tag,
.log-line:focus-visible span,
.log-line:focus-visible .tag {
  color: var(--bone) !important;
  border-color: var(--bone) !important;
}

#tests .log,
#tests .log-line,
#tests .log-line.next,
#tests .log-line.upcoming {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: rgba(17, 17, 17, .14) !important;
  box-shadow: none !important;
}

#tests .log-line > span:first-child,
#tests .log-line small,
#tests .log-line .tag {
  color: rgba(17, 17, 17, .62) !important;
}

#tests .log-line > span:nth-child(2),
#tests .log-line strong {
  color: var(--ink) !important;
}

#tests .log-line .tag {
  background: transparent !important;
  border: 0 !important;
}

#tests .log-line:hover,
#tests .log-line:focus-visible {
  background: rgba(17, 17, 17, .035) !important;
  color: var(--ink) !important;
}

#tests .log-line:hover span,
#tests .log-line:hover .tag,
#tests .log-line:focus-visible span,
#tests .log-line:focus-visible .tag {
  color: inherit !important;
  border-color: transparent !important;
}

#tests .log-line:hover > span:first-child,
#tests .log-line:hover small,
#tests .log-line:hover .tag,
#tests .log-line:focus-visible > span:first-child,
#tests .log-line:focus-visible small,
#tests .log-line:focus-visible .tag {
  color: rgba(17, 17, 17, .62) !important;
}

.row:hover,
.row:focus-visible {
  background: var(--ink) !important;
  color: var(--bone) !important;
}
.row:hover *,
.row:focus-visible * {
  color: var(--bone) !important;
}

#work .row,
#work .row:nth-child(odd),
#work .row:nth-child(even) {
  background: transparent !important;
  color: #111 !important;
}

#work .row h3 {
  color: #111 !important;
  letter-spacing: -.015em !important;
}

#work .row .idx,
#work .row .state {
  color: rgba(17,17,17,.46) !important;
}

#work .idx,
#work .state {
  display: none;
}

#work .rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
}

#work .row p:not(.proof-links) {
  color: rgba(17,17,17,.70) !important;
}

#work .row .proof-links {
  color: rgba(17,17,17,.72) !important;
}

#work .row:hover,
#work .row:focus-visible {
  background: rgba(17,17,17,.035) !important;
  color: #111 !important;
}

#work .row:hover a,
#work .row:focus-visible a {
  color: #111 !important;
  border-color: currentColor !important;
}

#work .row {
  grid-template-columns: minmax(0, 1fr) !important;
  border-top: 1px solid rgba(17,17,17,.14) !important;
}

#work .row > div {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1024px) {
  #work .rows {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
}

/* Contact Card result: preview first, actions second, no nested frame. */
.cc-results .preview-card,
.cc-results .cc-result-actions {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cc-results .preview-card {
  padding: 0 !important;
}

.cc-results .preview-outer {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.cc-actions .cc-primary {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border-color: var(--ink) !important;
}

.cc-actions .cc-secondary,
.tool-back {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.drawer-info .tool-back {
  color: var(--bone) !important;
  border-color: rgba(242, 240, 235, .22) !important;
}

.cc-actions .cc-secondary:hover,
.tool-back:hover {
  background: #4e4942 !important;
  color: #fff !important;
  border-color: #4e4942 !important;
}

/* ── TOOL DRAWER — light room polish (2026-07-09) ─────────────────── */
/* Left rail stays the black studio bar; body becomes clean paper. */
.drawer .scrim {
  background: rgba(11, 11, 10, .45) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.drawer-panel {
  background: var(--paper-soft) !important;
  border-right: 1px solid var(--line) !important;
}

.drawer-info {
  background: var(--black) !important;
  color: var(--bone) !important;
  border-right: 0 !important;
}

.drawer-info h2 { color: var(--bone) !important; }
.drawer-info p { color: rgba(242, 240, 235, .66) !important; }
.drawer-info .addr { color: rgba(242, 240, 235, .5) !important; }

.drawer-info .btn {
  background: transparent !important;
  color: var(--bone) !important;
  border: 1px solid rgba(242, 240, 235, .4) !important;
}

.drawer-info .btn:hover {
  background: var(--bone) !important;
  color: var(--black) !important;
}

.drawer-body {
  background: var(--paper-soft) !important;
  padding: 32px 34px !important;
}

/* Form fields: solid paper boxes, crisp 1px line, ink focus ring */
.bio-form label,
.contact label {
  display: block;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
}

.bio-form input,
.bio-form textarea,
.bio-form select,
.drawer-body .contact input,
.drawer-body .contact textarea {
  background: #fffdf8 !important;
  border: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bio-form input:focus,
.bio-form textarea:focus,
.bio-form select:focus,
.drawer-body .contact input:focus,
.drawer-body .contact textarea:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 1px var(--ink) !important;
  outline: 0 !important;
}

.bio-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23111111' stroke-width='1.5' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 38px !important;
}

.bio-form select option { background: #fffdf8 !important; color: var(--ink) !important; }

.example-line {
  border-left: 3px solid var(--ink) !important;
  background: rgba(17, 17, 17, .05) !important;
  color: var(--ink) !important;
}

.bio-btn { padding: 0 26px !important; min-height: 48px !important; }

/* Result cards: solid, bordered, breathable */
.bio-results .result {
  background: #fffdf8 !important;
  border: 1px solid var(--line) !important;
  padding: 20px 22px !important;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.result-text { color: var(--ink) !important; }

.copy-bio {
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  padding: 6px 12px !important;
  font-size: 10px !important;
  letter-spacing: .1em !important;
}

.copy-bio:hover {
  background: var(--ink) !important;
  color: var(--bone) !important;
}

.char-count { color: var(--muted) !important; font-size: 10px !important; }
.cc-status { color: var(--copper) !important; }

/* A11y: contact form labels need >= 4.5:1 on paper background (Lighthouse) */
#contactForm .lbl-txt,
.contact label,
.bio-form label {
  color: var(--dim) !important; /* #514c45 on #ede7dc ≈ 6.5:1 */
}

/* ── LIVE NOW (Kick) — hidden unless streaming ─────────────────────── */
.live-now {
  background: var(--black) !important;
  border-bottom: 1px solid rgba(242, 240, 235, .16);
  padding: 20px max(24px, env(safe-area-inset-left));
}

.live-now[hidden] { display: none !important; }

.live-now-inner { max-width: 1100px; margin: 0 auto; }

.live-now-head {
  color: var(--bone) !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.live-now-head a { color: var(--bone) !important; opacity: .7; margin-left: auto; }
.live-now-head a:hover { opacity: 1; }
.live-title { opacity: .7; text-transform: none; letter-spacing: 0; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5484d;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.live-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Drawer on mobile: full-width, comfortable padding */
@media (max-width: 720px) {
  .drawer-body { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)) !important; }
  .drawer-info { padding: calc(14px + env(safe-area-inset-top)) 16px 14px !important; }
  .bio-btn { width: 100% !important; }
}


/* ── Protect copy: text not selectable (form fields stay editable) ── */
body { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text !important; user-select: text !important; }
