/* VetorGov — civic futurism */

:root {
  --ink-950: #070b12;
  --ink-900: #0e1520;
  --brand: #f0b429;
  --brand-soft: #f7c948;
  --signal: #2ec4b6;
  --mist: #eef2f7;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
header,
footer {
  width: 100%;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

canvas#vector-canvas,
canvas#cta-canvas {
  height: 100%;
}

::selection {
  background: rgba(240, 180, 41, 0.35);
  color: #070b12;
}

/* —— Cursor glow (desktop) —— */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  z-index: 40;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.12) 0%, transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

body.has-pointer .cursor-glow.is-on {
  opacity: 1;
}

/* —— Logo —— */
.site-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.site-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-logo__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 1.65rem;
  object-fit: contain;
}

.site-logo__img--hero {
  width: min(100%, 20rem);
  height: auto;
  max-height: 3.25rem;
}

.site-logo__img--cta {
  width: min(100%, 18rem);
  height: auto;
  max-height: 2.75rem;
}

.site-logo__img--footer {
  height: 1.45rem;
  width: auto;
  max-width: 11rem;
}

@media (min-width: 640px) {
  .site-logo--nav .site-logo__img {
    height: 2rem;
  }

  .site-logo__img--hero {
    width: min(100%, 28rem);
    max-height: 4rem;
  }

  .site-logo__img--cta {
    width: min(100%, 22rem);
    max-height: 3.25rem;
  }

  .site-logo__img--footer {
    height: 1.65rem;
    max-width: 13rem;
  }
}

@media (min-width: 1024px) {
  .site-logo--nav .site-logo__img {
    height: 2.25rem;
  }

  .site-logo__img--hero {
    width: min(100%, 34rem);
    max-height: 4.75rem;
  }
}

/* —— Buttons —— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-950);
  background: var(--brand);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.btn-primary:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.btn-primary--lg {
  padding: 0.85rem 1.5rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

/* —— Hero —— */
.hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.62) 0%, rgba(7, 11, 18, 0.28) 38%, rgba(7, 11, 18, 0.88) 100%),
    linear-gradient(105deg, rgba(7, 11, 18, 0.72) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(46, 196, 182, 0.18), transparent 60%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

.brand-hero {
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.35));
  animation: brand-in 1.1s var(--ease-out) both;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
  transform-origin: left center;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* —— Nav —— */
#nav.is-scrolled,
body.nav-solid #nav {
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* —— Sections —— */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b45309;
}

.section-label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--brand);
}

.section-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(46, 196, 182, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(240, 180, 41, 0.08), transparent 50%),
    var(--mist);
}

.section-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 11, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 11, 18, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

/* —— Photo tiles —— */
.photo-tile {
  position: relative;
  overflow: hidden;
  background: #c5ccd6;
  transform-style: preserve-3d;
  will-change: transform;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.photo-tile__img {
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 14rem;
}

.photo-tile__img--tall {
  aspect-ratio: 4 / 5;
  min-height: 18rem;
}

.photo-tile__img--wide {
  aspect-ratio: 16 / 9;
  min-height: 14rem;
}

@media (min-width: 640px) {
  .photo-tile {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  }

  .photo-tile__img {
    aspect-ratio: auto;
    min-height: 18rem;
    height: 18rem;
  }

  .photo-tile__img--tall {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }

  .photo-tile__img--wide {
    aspect-ratio: auto;
    min-height: 18rem;
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .photo-tile__img {
    min-height: 18rem;
    height: 18rem;
  }

  .photo-tile__img--tall {
    min-height: 35rem;
  }
}

.photo-grid {
  perspective: none;
}

@media (min-width: 1024px) {
  .photo-grid,
  .ciclo-track {
    perspective: 1200px;
  }
}

.photo-tile img {
  transition: transform 0.9s var(--ease-out);
}

.photo-tile:hover img {
  transform: scale(1.05);
}

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 18, 0.92));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .photo-caption {
    padding: 1.25rem 1.35rem 1.4rem;
    transform: translateZ(28px);
  }
}

.photo-caption strong {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.photo-caption span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow:
    0 28px 60px -32px rgba(7, 11, 18, 0.45),
    0 0 0 1px rgba(7, 11, 18, 0.06);
}

.photo-frame--dark {
  box-shadow:
    0 28px 60px -24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.photo-frame img {
  display: block;
  transition: transform 1s var(--ease-out);
}

.photo-frame:hover img {
  transform: scale(1.04);
}

.frame-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(46, 196, 182, 0.12) 48%,
    transparent 52%
  );
  background-size: 100% 200%;
  animation: scan 4.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes scan {
  0%, 100% { background-position: 0 -40%; }
  50% { background-position: 0 140%; }
}

/* —— Orbit decoration —— */
.modulos-orbit {
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(46, 196, 182, 0.22);
}

.orbit-ring--1 {
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
  border-style: dashed;
}

.orbit-ring--2 {
  width: 68%;
  height: 68%;
  top: 16%;
  left: 16%;
  animation: spin 18s linear infinite reverse;
  border-color: rgba(240, 180, 41, 0.28);
}

.orbit-ring--3 {
  width: 38%;
  height: 38%;
  top: 31%;
  left: 31%;
  animation: spin 12s linear infinite;
  border-color: rgba(30, 45, 69, 0.2);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--brand);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: pulse-core 2.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* —— Features —— */
.feature-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-index {
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
  padding-top: 0.2rem;
}

/* —— Steps —— */
.step-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: box-shadow 0.4s ease;
}

.step-card:hover {
  box-shadow: 0 22px 48px -28px rgba(7, 11, 18, 0.4);
}

.step-media {
  overflow: hidden;
}

.step-media img {
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.step-card:hover .step-media img {
  transform: scale(1.06);
}

.step-num {
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b45309;
}

/* —— Quote —— */
.quote-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
}

.quote-mark {
  display: block;
  font-size: 3.5rem;
  line-height: 0.7;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .quote-mark {
    font-size: 5rem;
  }
}

/* —— CTA —— */
.cta-haze {
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(240, 180, 41, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 50% at 85% 40%, rgba(46, 196, 182, 0.1), transparent 50%);
}

/* —— Parallax helpers —— */
.parallax-layer {
  will-change: transform;
}

.tilt {
  transition: transform 0.15s ease-out;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transform-origin: center bottom;
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

@media (min-width: 1024px) {
  .reveal {
    transform: translateY(32px) rotateX(6deg);
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid,
  .brand-hero,
  .scroll-line,
  .frame-scan,
  .orbit-ring,
  .orbit-core,
  .cursor-glow {
    animation: none !important;
  }

  .photo-tile img,
  .photo-frame img,
  .step-media img,
  .tilt {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-layer {
    transform: none !important;
  }
}

/* —— Contact form —— */
.contact-form {
  position: relative;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

@media (min-width: 640px) {
  .contact-form {
    padding: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  }
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.8);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 11, 18, 0.65);
  color: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(240, 180, 41, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field-error {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #fca5a5;
}

.turnstile-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 65px;
}

.turnstile-wrap.is-invalid .field-error {
  display: block;
}


.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash-wrap {
  margin-bottom: 1rem;
}

.flash {
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.flash--ok {
  color: #0f3d36;
  background: rgba(46, 196, 182, 0.85);
}

.flash--err {
  color: #fff;
  background: rgba(185, 28, 28, 0.9);
}

@media (max-width: 640px) {
  .cursor-glow {
    display: none;
  }
}

/* —— Mobile / tablet safeguards —— */
@media (max-width: 1023px) {
  .tilt {
    transform: none !important;
  }

  .photo-tile,
  .photo-frame,
  .step-card {
    transform-style: flat;
    will-change: auto;
  }

  .modulos-orbit {
    display: none;
  }

  #vector-canvas,
  #cta-canvas {
    opacity: 0.55;
  }
}

@media (max-width: 767px) {
  .btn-primary--lg,
  .btn-ghost {
    min-height: 2.85rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  .photo-caption strong {
    font-size: 0.98rem;
  }

  .photo-caption span {
    font-size: 0.8rem;
  }

  .section-mesh::before {
    background-size: 36px 36px;
  }
}

@media (hover: none), (pointer: coarse) {
  .tilt {
    transform: none !important;
  }

  .cursor-glow {
    display: none !important;
  }
}

/* —— Planilha (área interna) —— */
.planilha-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.planilha-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.planilha-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.85rem;
}

.planilha-table th,
.planilha-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.planilha-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.65);
  background: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.planilha-table td {
  color: rgba(248, 250, 252, 0.92);
}

.planilha-msg {
  max-width: 18rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.planilha-muted {
  max-width: 12rem;
  color: rgba(148, 163, 184, 0.95);
  word-break: break-word;
}

.planilha-body .field span {
  color: rgba(226, 232, 240, 0.8);
}

.planilha-body .flash-wrap {
  margin-top: 1rem;
}

/* —— Thanks modal —— */
body.modal-open {
  overflow: hidden;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.thanks-modal[hidden] {
  display: none !important;
}

.thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(6px);
}

.thanks-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 2rem 1.5rem 1.5rem;
  background: #0e1520;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  outline: none;
  animation: modal-in 0.35s var(--ease-out) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.thanks-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.thanks-modal__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.thanks-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: rgba(46, 196, 182, 0.18);
  color: #2ec4b6;
  font-size: 1.25rem;
  font-weight: 700;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.thanks-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.thanks-modal__text {
  margin-top: 0.75rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.5;
  font-size: 0.95rem;
}

.thanks-modal__cta {
  margin-top: 1.35rem;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .thanks-modal__dialog {
    animation: none;
  }
}

/* —— Shared shell (alinha header / blog / footer) —— */
.site-shell {
  width: 100%;
  max-width: 72rem; /* mesmo que max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* —— Blog (hub / cards / post) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.of-hub { background: #fff; }

.of-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  padding: 0.7rem 1rem;
}
.of-search svg { width: 1.05rem; height: 1.05rem; color: #94a3b8; flex-shrink: 0; }
.of-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink-950);
}

.of-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 0.9rem;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.of-chip:hover { border-color: #cbd5e1; color: var(--ink-950); }
.of-chip.is-active { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }

.of-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .of-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .of-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }

.of-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.of-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1); }

.of-card__media {
  display: block;
  margin: 0.85rem 0.85rem 0;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
}
.of-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.of-card:hover .of-card__media img { transform: scale(1.04); }
.of-card__placeholder {
  display: flex; height: 100%; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0e1520, #1e2d45);
  color: var(--brand); font-family: "Syne", sans-serif; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.of-card__body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.15rem 1.25rem; }

.of-pill {
  display: inline-flex; align-self: flex-start; border-radius: 999px;
  background: #eef2f7; padding: 0.3rem 0.7rem; color: #64748b;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.of-card__title {
  margin-top: 0.85rem; color: var(--ink-950); font-family: "Syne", sans-serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
}
.of-card__title a:hover { color: var(--brand); }
.of-card__excerpt {
  margin-top: 0.7rem; color: #64748b; font-size: 0.95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.of-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px dotted #dbe3ef; }
.of-card__more { color: var(--ink-950); font-size: 0.92rem; font-weight: 700; }
.of-card__more:hover { color: var(--brand); text-decoration: underline; }

.of-page {
  border: 1px solid #e2e8f0; border-radius: 999px; background: #fff;
  padding: 0.5rem 1rem; color: var(--ink-950); font-size: 0.85rem; font-weight: 600;
}
.of-page:hover { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }

.of-band { background: var(--ink-950); padding: 1.75rem 0; }
.of-band__btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--brand); padding: 0.85rem 1.4rem;
  color: var(--ink-950); font-size: 0.95rem; font-weight: 700; white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.of-band__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.of-post-cover {
  overflow: hidden; border-radius: 1rem; background: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.of-post-cover img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}

.of-avatar {
  display: inline-flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--ink-950); color: #fff; font-size: 0.9rem; font-weight: 700;
}

.of-aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) {
  .of-aside { position: sticky; top: 6rem; align-self: start; }
}
.of-aside__box, .of-aside__promo {
  border: 1px solid #e8edf3; border-radius: 1rem; background: #fff; padding: 1.15rem;
}
.of-share {
  display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0; border-radius: 999px; color: #64748b; transition: all 0.2s ease;
}
.of-share svg { width: 1rem; height: 1rem; }
.of-share:hover { border-color: var(--brand); color: var(--ink-950); }

.of-prose { color: #334155; font-size: 1.0625rem; line-height: 1.8; }
.of-prose--wide {
  max-width: none;
  width: 100%;
}
.of-prose > *:first-child {
  margin-top: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink-950);
}
.of-prose h2 {
  margin: 2.1rem 0 0.9rem; color: var(--ink-950); font-family: "Syne", sans-serif;
  font-size: 1.55rem; font-weight: 700; line-height: 1.25;
}
.of-prose h3 {
  margin: 1.6rem 0 0.7rem; color: var(--ink-950); font-family: "Syne", sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.of-prose p { margin: 0 0 1.15rem; }
.of-prose ul, .of-prose ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.of-prose li { margin: 0.4rem 0; }
.of-prose a { color: var(--ink-950); text-decoration: underline; text-underline-offset: 3px; }
.of-prose a:hover { color: var(--brand); }
.of-prose img { display: block; width: 100%; height: auto; margin: 1.5rem 0; border-radius: 0.85rem; }
.of-prose iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; margin: 1.5rem 0; border: 0; border-radius: 0.85rem;
}
.of-prose blockquote {
  margin: 1.4rem 0; padding: 0.9rem 0 0.9rem 1rem; border-left: 3px solid var(--brand);
  color: #475569; font-style: italic;
}
.of-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid #e2e8f0; }
.of-prose strong { color: var(--ink-950); font-weight: 650; }

.section-label--light { color: rgba(240, 180, 41, 0.95); }
.section-label--light::before { background: var(--brand); }
