/* Section-specific styles */

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all .35s cubic-bezier(.2,.7,0,1);
}
.nav.scrolled {
  padding: 10px 0;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.02em; }
.logo svg { color: var(--accent); }
.logo-dot { color: var(--accent); margin: 0 2px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--fg-dim); }
.nav-links a { position: relative; transition: color .2s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-family: var(--ff-mono); font-size: 12px; color: var(--fg-mute); }
.lang-switch button { padding: 4px 6px; transition: color .2s ease; }
.lang-switch button.on { color: var(--accent); }
.lang-switch button:hover { color: var(--fg); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: background .2s ease;
}
.hamburger:hover span { background: var(--accent); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .lang-switch { display: none; }
  .hamburger { display: flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: mobileMenuIn .25s ease-out both;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.mobile-close {
  font-size: 22px; color: var(--fg);
  background: transparent; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: color .2s ease;
}
.mobile-close:hover { color: var(--accent); }
.mobile-menu-links {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 30px 0;
  flex: 1;
  overflow-y: auto;
}
.mobile-menu-links a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-menu-links a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.mobile-menu-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu-foot .btn { font-size: 14px; padding: 14px 22px; }

/* HERO */
.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, black 40%, transparent 90%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 140px 0 60px;
  width: min(1360px, 92vw);
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 50px;
  color: var(--fg-dim);
  font-size: 12px;
}
.hero-time { color: var(--accent); }
.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--ff-sans);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
}
.hero-title .line { display: block; }
.hero-title .line.serif { font-family: var(--ff-display); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.hero-title .accent { color: var(--accent); }
.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-bottom: 40px;
}
.hero-sub {
  max-width: 540px;
  font-size: clamp(16px, 1.25vw, 20px);
  color: var(--fg-dim);
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; }

@media (max-width: 800px) {
  .hero-foot { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { margin-bottom: 40px; }
}

/* Ticker */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg);
  z-index: 2;
}
.ticker-track {
  display: inline-flex; gap: 60px;
  white-space: nowrap;
  animation: ticker 90s linear infinite;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.ticker-item { display: inline-flex; align-items: center; gap: 12px; }
.bullet { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* STATS */
.stats { padding: 100px 0; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 40px 0;
}
.stat { padding: 10px 0; }
.stat-k {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.stat-l { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 800px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* SECTION HEADS */
.section-head {
  max-width: 760px;
  margin-bottom: 80px;
  display: flex; flex-direction: column; gap: 20px;
}
.section-title {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-style: italic;
  text-wrap: balance;
}
.section-sub {
  max-width: 580px;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* SERVICES */
.services-list { border-top: 1px solid var(--line-strong); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 40px;
  align-items: start;
  padding: 50px 20px;
  border-bottom: 1px solid var(--line-strong);
  transition: background .35s ease, padding .35s ease;
  overflow: hidden;
}
.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 8%, transparent) 50%, transparent);
  opacity: 0; transition: opacity .4s ease;
}
.service-row.hover { padding: 50px 30px; }
.service-row.hover::before { opacity: 1; }
.service-num { font-size: 14px; color: var(--fg-mute); padding-top: 8px; }
.service-row.hover .service-num { color: var(--accent); }
.service-title {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  transition: transform .4s ease;
}
.service-row.hover .service-title { transform: translateX(6px); }
.service-desc { color: var(--fg-dim); max-width: 640px; margin-bottom: 20px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tags span {
  font-size: 11px; padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--fg-dim);
}
.service-arrow { font-size: 24px; color: var(--fg-mute); padding-top: 8px; transition: all .35s ease; }
.service-row.hover .service-arrow { color: var(--accent); transform: translateX(8px) rotate(-45deg); }

@media (max-width: 700px) {
  .service-row { grid-template-columns: 50px 1fr; }
  .service-arrow { display: none; }
}

/* PROCESS */
.timeline { position: relative; display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 80px 40px 1fr;
  gap: 30px;
  padding: 30px 0;
}
.step-week { color: var(--fg-mute); font-size: 13px; padding-top: 4px; }
.step-node { position: relative; display: flex; justify-content: center; }
.step-node .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  margin-top: 6px; position: relative; z-index: 2;
  box-shadow: 0 0 20px color-mix(in oklab, var(--accent) 50%, transparent);
}
.step-node .tail {
  position: absolute; top: 22px; bottom: -30px;
  width: 2px; background: linear-gradient(var(--accent), var(--line-strong));
  left: 50%; transform: translateX(-50%);
}
.step-body { max-width: 640px; }
.step-title {
  font-size: clamp(22px, 2vw, 30px); font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-desc { color: var(--fg-dim); }

/* WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
/* Quando há nº ímpar de cards, o último ocupa as 2 colunas como destaque
   (mantém grid equilibrado em vez de deixar slot vazio à direita). */
.work-grid > .work-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 6;
}
.work-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  transition: transform .3s cubic-bezier(.2,.7,0,1), border-color .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  --mx: 50%; --my: 50%;
}
.work-card:hover { border-color: var(--accent); }
.work-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 14%, transparent), transparent 50%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.work-card:hover::after { opacity: 1; }
.work-card-inner {
  position: absolute; inset: 0;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 2;
  gap: 20px;
}
.work-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.work-card-bottom {
  display: flex; flex-direction: column; gap: 12px;
}
.work-logo {
  height: 28px; max-width: 140px;
  object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity .3s ease, filter .3s ease;
}
.work-card:hover .work-logo { opacity: 1; }

/* Status pulsante (LIVE / EM CONSTRUÇÃO) */
.work-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 10px; letter-spacing: 0.12em;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  flex-shrink: 0;
}
.work-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: workStatusPulse 1.6s ease-in-out infinite;
}
.work-status-live { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 30%, var(--line-strong)); }
.work-status-live .status-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.work-status-building { color: oklch(0.78 0.15 75); border-color: color-mix(in oklab, oklch(0.78 0.15 75) 30%, var(--line-strong)); }
.work-status-building .status-dot { background: oklch(0.78 0.15 75); box-shadow: 0 0 8px oklch(0.78 0.15 75); }
@keyframes workStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

.work-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.work-title { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; font-style: italic; letter-spacing: -0.02em; max-width: 85%; }
.work-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.work-stat { font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }

/* "Visitar site →" — aparece no hover dos cards clicáveis */
.work-visit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
.work-card-clickable:hover .work-visit {
  opacity: 1; transform: translateX(0);
  color: var(--accent);
}
.work-visit .arrow { transition: transform .3s ease; }
.work-card-clickable:hover .work-visit .arrow { transform: translate(2px, -2px); }

/* Card como link <a> não deve ter underline herdado nem mudar cor de texto */
a.work-card { text-decoration: none; color: inherit; cursor: none; }

/* Cards "em construção" ficam um pouco menos saturados */
.work-card-building { opacity: 0.85; }
.work-card-building:hover { opacity: 1; }

.work-art { position: absolute; inset: 0; opacity: 0.55; transition: opacity .4s ease; }
.work-card:hover .work-art { opacity: 0.85; }

.art-stripes {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--accent) 20%, transparent) 0 2px,
      transparent 2px 22px);
}
.art-grid {
  background-image:
    linear-gradient(var(--line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.art-grid::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 50%);
}
.art-rings {
  background:
    radial-gradient(ellipse at 70% 30%, color-mix(in oklab, var(--accent) 22%, transparent) 0 2px, transparent 3px 20%),
    repeating-radial-gradient(circle at 70% 30%,
      transparent 0 28px,
      color-mix(in oklab, var(--fg) 8%, transparent) 28px 29px);
}
.art-mesh {
  background:
    radial-gradient(ellipse at 20% 20%, color-mix(in oklab, var(--accent) 28%, transparent) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, color-mix(in oklab, var(--accent-2, var(--accent)) 24%, transparent) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 30%, color-mix(in oklab, var(--fg) 10%, transparent) 0%, transparent 40%);
  filter: blur(2px);
}

@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

/* STACK */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-top: 1px solid var(--line-strong); padding-top: 40px; }
.stack-label { color: var(--fg-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.stack-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.stack-item { display: flex; align-items: center; gap: 12px; font-size: 18px; letter-spacing: -0.01em; }
.stack-bullet { color: var(--accent); font-size: 10px; }
@media (max-width: 800px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }

/* LAB */
.lab-shell { max-width: 920px; margin: 0 auto; }
.lab-window {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lab-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-dim);
}
.lab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(0.7); } }
.lab-tag { margin-left: auto; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; }
.lab-log { padding: 24px; min-height: 300px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.msg { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.msg-role { font-size: 11px; color: var(--fg-mute); padding-top: 3px; letter-spacing: 0.1em; }
.msg-user .msg-role { color: var(--accent); }
.msg-body { line-height: 1.55; color: var(--fg); }
.msg-user .msg-body { color: var(--fg-dim); }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 20px; }
.typing span { width: 6px; height: 6px; background: var(--fg-dim); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }

.msg-error .msg-role { color: #ff6b6b; }
.msg-error .msg-body { color: #ff9d9d; font-size: 14px; }

.msg-handoff .handoff-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line-strong));
  border-radius: 12px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.handoff-title { font-size: 20px; font-style: italic; line-height: 1.2; color: var(--fg); }
.handoff-body { color: var(--fg-dim); font-size: 14px; line-height: 1.55; max-width: 480px; }
.handoff-btn { margin-top: 6px; }
.handoff-btn svg { flex-shrink: 0; }

.lab-seeds { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 16px; }
.seed {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 12px; color: var(--fg-dim);
  transition: all .2s ease;
}
.seed:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.lab-input {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border-top: 1px solid var(--line);
}
.lab-input .prompt { color: var(--accent); font-size: 18px; }
.lab-input input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--fg); font: inherit; font-size: 15px;
  padding: 10px 0;
}
.lab-input input::placeholder { color: var(--fg-mute); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); cursor: pointer; transition: padding .3s ease; }
.faq-q { display: grid; grid-template-columns: 60px 1fr 40px; gap: 20px; align-items: center; padding: 28px 0; }
.faq-n { color: var(--fg-mute); font-size: 12px; }
.faq-qt { font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.01em; }
.faq-toggle { font-size: 24px; color: var(--fg-dim); text-align: right; transition: color .2s; }
.faq-item:hover .faq-toggle { color: var(--accent); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,0,1);
}
.faq-a > div { overflow: hidden; padding-left: 80px; padding-right: 60px; color: var(--fg-dim); max-width: 780px; line-height: 1.55; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { padding-bottom: 28px; }

/* CONTACT FORM */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin: 30px 0; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-elev); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span { font-size: 11px; color: var(--fg-mute); letter-spacing: 0.12em; }
.contact-form input, .contact-form textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--fg); font: inherit; font-size: 16px; padding: 10px 0;
  outline: none; transition: border-color .2s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.cf-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cf-ok { color: var(--accent); font-size: 12px; }
.cf-err { color: #ff6b6b; font-size: 12px; }
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cf-row { grid-template-columns: 1fr; }
}
/* remove old contact-grid, layout replaced */
.contact-grid { display: none; }

/* CONTACT FORM */
.contact { padding: clamp(100px, 14vw, 220px) 0; }
.contact-inner { display: flex; flex-direction: column; gap: 30px; max-width: 1100px; }
.contact-title {
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-style: italic;
  display: flex; flex-direction: column;
}
.contact-title .line { display: block; }
.contact-title .accent { color: var(--accent); }
.contact-sub { max-width: 620px; color: var(--fg-dim); font-size: clamp(16px, 1.2vw, 20px); line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 40px 80px; margin: 30px 0; }
.contact-link { display: flex; flex-direction: column; gap: 6px; transition: transform .3s ease; }
.contact-link:hover { transform: translateX(6px); }
.contact-link .mono { font-size: 11px; color: var(--fg-mute); letter-spacing: 0.12em; }
.contact-link .serif { font-size: clamp(22px, 2vw, 30px); font-style: italic; color: var(--fg); }
.btn.big { font-size: 15px; padding: 20px 32px; align-self: flex-start; }

/* FOOTER */
.footer { padding: 40px 0 80px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-mark { font-size: clamp(60px, 10vw, 160px); line-height: 1; letter-spacing: -0.04em; font-style: italic; }
.footer-mark .accent { color: var(--accent); }
.footer-tag { font-size: 12px; color: var(--fg-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg-mute); text-align: right; }

/* TWEAKS */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tweaks-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.15em; }
.tweaks-body { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.tweaks-label { font-size: 11px; color: var(--fg-mute); margin-bottom: 10px; letter-spacing: 0.1em; }
.tweaks-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px;
  transition: border-color .2s ease;
}
.swatch.on { border-color: var(--accent); }
.swatch > span:not(.swatch-name) { display: block; width: 40px; height: 14px; border-radius: 3px; }
.swatch-name { font-size: 10px; color: var(--fg-dim); letter-spacing: 0.05em; margin-top: 2px; }
.pill {
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; color: var(--fg-dim);
  transition: all .2s ease;
}
.pill.on { border-color: var(--accent); color: var(--accent); }
