/* ============================================================
   Dr Ricardo Portugal — Editorial Scientific Design System
   ============================================================ */

:root {
  /* Tons frios editorial */
  --bone: #ecedef;
  --bone-2: #e3e5e8;
  --ivory: #f5f4f0;
  --paper: #f8f7f3;
  --ink: #0c1419;
  --ink-2: #1a2530;
  --ink-soft: #2a3540;
  --mute: #6b7780;
  --mute-2: #9aa3aa;
  --line: rgba(12, 20, 25, 0.12);
  --line-soft: rgba(12, 20, 25, 0.06);

  /* Acento steel-teal (cool, profissional) */
  --accent: #1b3a4b;
  --accent-2: #244a5e;
  --accent-soft: rgba(27, 58, 75, 0.08);

  /* Highlight editorial (amber subtil para destaques) */
  --gold: oklch(0.74 0.09 75);
  --gold-dim: oklch(0.62 0.07 75);

  /* Inverso / dark sections */
  --dark-bg: #0c1419;
  --dark-paper: #131c22;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-mute: rgba(255, 255, 255, 0.55);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --grid-max: 1440px;
  --pad-x: clamp(20px, 4vw, 72px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

/* ============== TYPOGRAPHY ============== */

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-style: normal;
}

/* Force consistent LINING numerals everywhere (Cormorant defaults to
   old-style figures, which look like a different font next to each other). */
html { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.display, .serif, .lede, .metric-num, .hero-foot-num, .detail-stat-num,
.tech-spec-num, .tech-spec-val, .post-title, .t-quote, .reader-title,
.featured-title, .service-name, .nav-logo-text {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.display em, .serif em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

h1.display { font-size: clamp(64px, 11vw, 200px); }
h2.display { font-size: clamp(44px, 7vw, 112px); }
h3.display { font-size: clamp(28px, 3.6vw, 56px); }
h4.display { font-size: clamp(22px, 2.4vw, 36px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

.eyebrow .num {
  color: var(--accent);
  margin-right: 8px;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.body-l { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.body { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.caption { font-size: 12px; line-height: 1.5; color: var(--mute); }

.mono-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============== GRID / LAYOUT ============== */

.container {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

section {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============== NAV ============== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bone) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bone) 92%, transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.nav-logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo-text small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

.nav-center {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 4px 6px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--mute);
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); font-weight: 600; }
.lang-switch span.sep { color: var(--mute-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border-radius: 999px;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn-light {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--accent); }

/* ============== MOBILE NAV ============== */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 22px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 95;
  padding: 96px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-100%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.mobile-menu .nav-link {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 300;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 960px) {
  .nav-center { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ============== HERO ============== */

.hero {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 140vmin; height: 140vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 12%, transparent) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.6;
}

.hero-stage > * { position: relative; z-index: 1; }

/* ============== GLOBAL LIVING BRAND WATERMARK ============== */
/* A fixed, animated optic that the whole site scrolls over — visible across
   light sections (behind content) and gently through the dark sections too. */
.site-watermark {
  position: fixed;
  top: 50%;
  left: 56%;
  width: min(132vmin, 1180px);
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + var(--wm-y, 0px))) translateX(var(--wm-x, 0px));
  will-change: transform;
}
.site-watermark-inner {
  width: 100%;
  height: 100%;
  opacity: 0.06;
  animation: wm-breathe 30s ease-in-out infinite;
}
.site-watermark-inner .optic { max-width: none; width: 100%; }
@keyframes wm-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(8deg); }
}
@media (max-width: 768px) {
  /* On mobile, a position:fixed z-index:-1 layer can render OVER content on
     iOS Safari (appearing as a frozen image). The hero already carries the
     brand backdrop, so we drop the global watermark on small screens. */
  .site-watermark { display: none; }
}

/* Let the watermark glow softly through the dark sections */
section.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 40%, color-mix(in oklch, var(--gold) 12%, transparent) 0%, transparent 48%);
  opacity: 0.5;
  z-index: 0;
  mix-blend-mode: screen;
}
section.dark > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .site-watermark-inner { animation: none; }
  .optic .ring-outer, .optic .ring-mid, .optic .ring-inner,
  .optic .iris, .optic .ray, .optic .focal-dot { animation: none !important; }
}

/* ============== HERO BRAND BACKDROP (eye + RP monogram) ============== */
.hero-brand {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-brand-optic {
  position: absolute;
  top: 50%;
  left: -8%;
  width: min(82vh, 720px);
  aspect-ratio: 1;
  transform: translateY(calc(-50% + var(--py, 0px)));
  opacity: 0.12;
  will-change: transform;
}
.hero-brand-optic .optic { max-width: none; width: 100%; }
.hero-brand-rp {
  position: absolute;
  right: -2vw;
  left: auto;
  bottom: -6vh;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 46vh;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.05;
  transform: translateY(calc(var(--py, 0px) * 0.5));
  user-select: none;
}
@media (max-width: 768px) {
  .hero-brand-optic { left: -30%; width: 90vw; opacity: 0.08; }
  .hero-brand-rp { font-size: 34vh; opacity: 0.04; }
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  width: 100%;
  align-items: center;
}

.hero-meta {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.hero-headline {
  grid-column: 1 / span 7;
  position: relative;
  z-index: 2;
  margin-top: 0;
  align-self: center;
}

.hero-portrait {
  grid-column: 8 / span 5;
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.hero-portrait-slot {
  width: 100%;
  aspect-ratio: 4/5;
  display: block;
  --slot-bg: var(--bone-2);
}

image-slot.hero-portrait-slot, .hero-portrait > image-slot {
  width: 100% !important;
  aspect-ratio: 4/5;
  height: auto;
}

.hero-portrait > image-slot::part(root),
image-slot.hero-portrait-slot::part(root) {
  width: 100%;
  height: 100%;
}

.hero-portrait-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(12,20,25,0.75);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

.hero-portrait-optic {
  position: absolute;
  left: -64px;
  bottom: 32px;
  width: 140px;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  background: var(--bone);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 12px 36px rgba(12,20,25,0.18);
}
.hero-portrait-optic .optic { max-width: 100%; }

/* Robust portrait frame: branded backdrop always present so the labels never
   float in an empty space if the CDN photo is slow or fails to load. */
.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--accent-2) 0%, var(--dark-bg) 100%);
}
.hero-portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.hero-portrait-fallback .optic { width: 72%; max-width: none; opacity: 0.85; }
.hero-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
}

.hero-portrait-cred {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(12,20,25,0.85);
  color: var(--bone);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
  max-width: 70%;
}
.hero-portrait-cred .name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero-portrait-cred .role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  align-items: end;
}

.hero-foot-block { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; }
.hero-foot-num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.hero-foot-num em { font-style: italic; color: var(--accent); }

@media (max-width: 960px) {
  .hero-meta, .hero-headline, .hero-portrait { grid-column: 1 / -1; }
  .hero-portrait { order: -1; max-width: 300px; margin: 0 auto 8px; width: 100%; }
  .hero-headline { margin-top: 24px; }
  .hero-foot-block { grid-column: span 3; }
  .hero-portrait-optic { width: 96px; height: 96px; left: -20px; bottom: 20px; }
  .hero-portrait-cred { padding: 10px 14px; }
  .hero-portrait-cred .name { font-size: 15px; }
}
@media (max-width: 560px) {
  .hero-foot-block { grid-column: span 6; }
}

/* ============== OPTIC ANIM ============== */

.optic {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}
.optic svg { width: 100%; height: 100%; display: block; overflow: visible; }

@keyframes optic-spin { to { transform: rotate(360deg); } }
@keyframes optic-spin-rev { to { transform: rotate(-360deg); } }
@keyframes optic-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes ray-sweep {
  0% { stroke-dashoffset: 100; opacity: 0; }
  20% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes dot-pulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.6; }
}

.optic .ring-outer { animation: optic-spin 60s linear infinite; transform-origin: center; }
.optic .ring-mid { animation: optic-spin-rev 40s linear infinite; transform-origin: center; }
.optic .ring-inner { animation: optic-spin 30s linear infinite; transform-origin: center; }
.optic .iris { animation: optic-pulse 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.optic .ray {
  stroke-dasharray: 100 100;
  animation: ray-sweep 3.5s ease-in-out infinite;
}
.optic .ray-2 { animation-delay: 0.6s; }
.optic .ray-3 { animation-delay: 1.2s; }
.optic .ray-4 { animation-delay: 1.8s; }
.optic .ray-5 { animation-delay: 2.4s; }
.optic .focal-dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

/* ============== CARDS / SERVICES ============== */

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr 60px;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: background 0.3s var(--ease), padding 0.4s var(--ease);
  position: relative;
}
.service-row:hover { padding-left: 12px; padding-right: 12px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row.open {
  padding-bottom: 0;
}
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--mute);
  padding-top: 6px;
}
.service-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.service-name em { color: var(--accent); font-style: italic; }
.service-summary { color: var(--mute); font-size: 14px; line-height: 1.5; padding-top: 8px; }
.service-tag { padding-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.service-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
  flex-shrink: 0;
}
.service-row:hover .service-toggle { background: var(--ink); border-color: var(--ink); }
.service-row:hover .service-toggle svg { stroke: var(--bone); }
.service-row.open .service-toggle { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.service-row.open .service-toggle svg { stroke: var(--bone); }

.service-detail {
  grid-column: 2 / 5;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s var(--ease), padding-bottom 0.4s var(--ease);
}
.service-row.open .service-detail { max-height: 600px; padding-bottom: 36px; padding-top: 8px; }
.service-row.open .service-detail:has(.femto) { max-height: 1600px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 24px;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
}
.detail-stat { display: flex; flex-direction: column; gap: 4px; }
.detail-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
}
.detail-stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 768px) {
  .service-row { grid-template-columns: 40px 1fr 40px; }
  .service-summary, .service-tag { grid-column: 1 / -1; }
  .service-detail { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============== METRICS / NUMBERS ============== */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 56px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric:last-child { border-right: 0; }
.metric-num {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.metric-num em { color: var(--accent); font-style: italic; }
.metric-num sup { font-size: 0.4em; vertical-align: top; color: var(--mute); margin-left: 4px; font-style: normal; }
.metric-label {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.4;
  max-width: 220px;
}

@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============== DARK SECTION ============== */

section.dark {
  background: var(--dark-bg);
  color: var(--bone);
}
section.dark .eyebrow, section.dark .body, section.dark .caption { color: var(--dark-mute); }
section.dark hr { border-top-color: var(--dark-line); }
section.dark .display em { color: var(--gold); }
section.dark .lede { color: rgba(255,255,255,0.78); }

/* ============== TESTIMONIALS ============== */

.t-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.t-card {
  grid-column: span 4;
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
  cursor: default;
}
.t-card:hover { border-color: var(--ink); transform: translateY(-4px); }

/* Scroll-triggered staggered entrance for testimonials */
.t-card.reveal.in { animation: tcard-in 0.85s var(--ease-out) both; }
.t-grid .t-card:nth-child(1).in { animation-delay: 0.04s; }
.t-grid .t-card:nth-child(2).in { animation-delay: 0.13s; }
.t-grid .t-card:nth-child(3).in { animation-delay: 0.22s; }
.t-grid .t-card:nth-child(4).in { animation-delay: 0.10s; }
.t-grid .t-card:nth-child(5).in { animation-delay: 0.19s; }
.t-grid .t-card:nth-child(6).in { animation-delay: 0.28s; }
@keyframes tcard-in {
  from { opacity: 0; transform: translateY(46px) scale(0.95); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.t-card .t-mark {
  display: inline-block;
  transform-origin: left center;
  animation: tmark-pop 0.6s var(--ease-out) both;
  animation-delay: 0.35s;
}
.t-card:not(.in) .t-mark { animation: none; }
@keyframes tmark-pop {
  from { opacity: 0; transform: scale(0.5) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .t-card.reveal.in, .t-card .t-mark { animation: none; }
}
.t-card .t-mark {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.8;
  color: var(--accent);
  font-style: italic;
}
.t-quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  flex: 1;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}
.t-meta { display: flex; flex-direction: column; }
.t-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.t-loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.t-procedure { font-size: 12px; color: var(--accent); margin-top: 4px; }

@media (max-width: 960px) {
  .t-card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .t-card { grid-column: span 12; }
}

/* ============== FOOTER ============== */

footer.site-footer {
  background: var(--dark-bg);
  color: var(--bone);
  padding: 80px var(--pad-x) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-col { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; }
.footer-col.brand { grid-column: span 3; }
.footer-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-link:hover { color: var(--gold); }
.footer-base {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-base small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); text-transform: uppercase; }

@media (max-width: 768px) { .footer-col, .footer-col.brand { grid-column: span 6; } }

/* ============== FORM ============== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23404040' stroke-width='1.2'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.field-error { font-size: 12.5px; color: #c0392b; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #c0392b; }
.form-confirm {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
}
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.choice {
  border: 1px solid var(--line);
  padding: 16px 18px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--ease);
  background: var(--paper);
}
.choice:hover { border-color: var(--ink); }
.choice.selected { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.choice .check {
  width: 16px; height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.choice.selected .check::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--gold); border-radius: 50%;
}

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

/* ============== REVEAL ANIM ============== */

.reveal {
  opacity: 1;
}
/* Hidden only when JS reveal is armed AND element hasn't been revealed yet.
   Once .in is present the element is visible even if the animation stalls. */
html.reveal-armed .reveal:not(.in) {
  opacity: 0;
}
.reveal.in {
  animation: reveal-in 0.9s var(--ease-out) forwards;
}
/* Safety: JS adds .reveal-done to any element whose entrance animation
   stalls in a pending state (layout thrash from web components). The
   !important guarantees visibility, beating the stuck animation. */
.reveal.reveal-done {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.reveal-d2.in { animation-delay: 0.08s; }
.reveal-d3.in { animation-delay: 0.16s; }
.reveal-d4.in { animation-delay: 0.24s; }
.reveal-d5.in { animation-delay: 0.32s; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-armed .reveal:not(.in) { opacity: 1; }
  .reveal.in { animation: none; }
}

/* ============== IMG PLACEHOLDERS ============== */
.img-ph {
  position: relative;
  background: var(--bone-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(12,20,25,0.04) 0 1px, transparent 1px 8px);
}
.img-ph::after {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(12,20,25,0.08);
}
.img-ph span { position: relative; z-index: 2; padding: 4px 8px; background: var(--bone-2); }
.img-ph.dark { background: var(--dark-paper); color: rgba(255,255,255,0.5); }
.img-ph.dark::before { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 8px); }
.img-ph.dark::after { border-color: rgba(255,255,255,0.1); }
.img-ph.dark span { background: var(--dark-paper); }

/* ============== PAGE TRANSITIONS ============== */

.page-enter {
  animation: page-enter 0.7s var(--ease-out) both;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== PAGE HEAD ============== */
.page-head {
  padding-top: 180px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.page-head .ph-meta { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.page-head .ph-title { grid-column: 4 / span 9; }
/* Interior page titles: contained scale, distinct from the dramatic hero (200px). */
.page-head h1.display { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.98; }
.page-head .lede { max-width: 50ch; }
@media (max-width: 960px) {
  .page-head .ph-meta, .page-head .ph-title { grid-column: 1 / -1; }
  .page-head { padding-top: 130px; padding-bottom: 60px; }
  .page-head h1.display { font-size: clamp(36px, 9vw, 60px); }
}

/* ============== ASYMMETRIC ROW ============== */
.row-asym {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

/* ============== TECH SPEC ============== */
.tech-spec {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.tech-spec:last-child { border-bottom: 1px solid var(--line); }
.tech-spec-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--mute); }
.tech-spec-name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.tech-spec-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.tech-spec-val { font-family: var(--serif); font-size: 28px; color: var(--accent); font-style: italic; line-height: 1; }

@media (max-width: 768px) {
  .tech-spec { grid-template-columns: 60px 1fr; }
  .tech-spec-desc, .tech-spec-val { grid-column: 2 / -1; }
}

/* ============== BIO ============== */
.bio-portrait {
  aspect-ratio: 4/5;
  background: var(--bone-2);
  position: relative;
}

/* ============== MARQUEE ============== */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--ink-soft);
}
.marquee-item::after {
  content: "✦";
  font-style: normal;
  color: var(--accent);
  font-size: 14px;
}

/* ============== UTILS ============== */
.span-12 { grid-column: auto / span 12; }
.span-8 { grid-column: auto / span 8; }
.span-7 { grid-column: auto / span 7; }
.span-6 { grid-column: auto / span 6; }
.span-5 { grid-column: auto / span 5; }
.span-4 { grid-column: auto / span 4; }
.span-3 { grid-column: auto / span 3; }
.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-9 { grid-column-start: 9; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 72px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }

@media (max-width: 960px) {
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: 1 / -1 !important; }
  .start-2, .start-3, .start-5, .start-6, .start-7, .start-9 { grid-column-start: auto; }
}

/* selection */
::selection { background: var(--accent); color: var(--bone); }

/* scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--mute) var(--bone); }

/* ============== FLOATING CTA — único botão "Marcar consulta" ============== */
.fab-book {
  position: fixed;
  right: 20px;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12,20,25,0.22);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}
.fab-book:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(12,20,25,0.28); }
.fab-book:active { transform: translateY(0); }
.fab-book-icon { width: 19px; height: 19px; flex-shrink: 0; }
.fab-book-text { white-space: nowrap; }

@media (max-width: 640px) {
  .fab-book { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 14px 20px; min-height: 52px; }
}

/* ============== PRESS / TV BADGES ============== */
.press-band {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.press-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
.press-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  align-items: center;
}
.press-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--mute);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.press-logo:hover { color: var(--ink); }
.press-logo.sans { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
@media (max-width: 768px) {
  .press-grid { grid-template-columns: 1fr; gap: 18px; }
  .press-logos { gap: 14px 32px; }
  .press-logo { font-size: 18px; }
}

/* ============== MOBILE TUNING ============== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-meta { padding-bottom: 0; }
  /* Mobile: doctor's face front-and-centre for immediate recognition */
  .hero-portrait-frame { aspect-ratio: 1 / 1; }
  .hero-portrait-img { object-position: center 22%; }
  .hero-headline { margin-top: 32px !important; }
  /* Section headings: contained on mobile (h2.display caps at 112px otherwise) */
  h2.display { font-size: clamp(34px, 8.5vw, 52px); }
  h3.display { font-size: clamp(26px, 6vw, 40px); }
  .hero-foot { padding-top: 28px; padding-bottom: 28px; gap: 18px; }
  .hero-foot-num { font-size: 28px; }
  .metric { padding: 36px 22px; }
  .metric-num { font-size: clamp(48px, 14vw, 84px); }
  .t-card { padding: 28px 24px; gap: 22px; }
  .t-quote { font-size: 18px; }
  .service-row { padding: 24px 0; gap: 14px; }
  .service-name { font-size: 22px; }
  .service-summary { font-size: 13px; }
  .service-row.open .service-detail { padding-bottom: 24px; }
  .lang-switch button { padding: 6px 4px; min-width: 24px; }
  .nav { padding: 14px var(--pad-x); }
  .nav-logo-text { font-size: 15px; }
  .nav-logo-text small { font-size: 8px; }
  .nav-logo-mark { width: 26px; height: 26px; }
  .nav-logo-mark::after { inset: 6px; }
  .container { padding: 0 22px; }
  :root { --pad-x: 22px; }
  .page-head { padding-top: 110px; padding-bottom: 48px; }
  .footer-cta-row { padding-bottom: 40px; margin-bottom: 40px; }
  .footer-grid { gap: 32px 18px; }
  .blog-toolbar { margin-bottom: 32px; }
  .post-title { font-size: 22px; }
  .work-badge { left: 12px; bottom: 12px; padding: 11px 14px; }
  .work-badge-name { font-size: 17px; }
  .share-pop { width: 220px; }
}

@media (max-width: 420px) {
  h1.display { font-size: clamp(48px, 15vw, 72px); }
  .hero-foot-block { gap: 4px; }
  .blog-filter { font-size: 12px; padding: 8px 14px; }
  .admin-toggle { font-size: 11px; }
  .blog-tools { width: 100%; justify-content: space-between; }
  .footer-cta-row { gap: 24px; }
}

/* ============== SOCIAL ICONS ============== */
.social-icons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}
.social-icon:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: translateY(-2px); }
.social-icon.dark { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }
.social-icon.dark:hover { background: var(--gold); color: var(--dark-bg); border-color: var(--gold); }

/* ============== SHARE ============== */
.share-wrap { position: relative; display: inline-block; }
.share-compact { padding: 10px 18px; font-size: 12px; }
.share-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--bone);
  padding: 20px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 48px rgba(12,20,25,0.3);
  border-radius: 4px;
}
.share-pop-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.share-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-channel {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 999px;
}
.share-channel:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.share-copy {
  background: var(--gold);
  color: var(--dark-bg);
  border: 0;
  padding: 11px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.share-copy:hover { opacity: 0.88; }

/* ============== FOOTER CTA ROW ============== */
.footer-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--dark-line);
  flex-wrap: wrap;
}
.contact-info-item { display: block; transition: opacity 0.2s; }
.contact-info-item:hover { opacity: 0.6; }
.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--line);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.04);
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.2s;
}
.contact-map-link:hover { opacity: 0.65; }

/* ============== WORK BADGE ============== */
.work-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(12,20,25,0.85);
  color: var(--bone);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  max-width: 80%;
}
.work-badge-name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; }
.work-badge-role { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ============== WORK SECTION (location) ============== */
.work-section { position: relative; overflow: hidden; }
.work-brand { z-index: 0; }
.work-brand .hero-brand-optic {
  top: 50%; right: auto; left: -14%;
  width: min(80vh, 680px);
  opacity: 0.1;
  transform: translateY(-50%);
}
.work-section .container { position: relative; z-index: 1; }

.trofa-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.trofa-cross {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.work-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  border-radius: 14px;
  background: var(--dark-paper);
  border: 1px solid rgba(255,255,255,0.1);
}
.work-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}
.work-section .work-badge {
  background: rgba(12,20,25,0.92);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ============== BLOG ============== */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-filter {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.blog-filter:hover { color: var(--ink); border-color: var(--ink); }
.blog-filter.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.blog-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-toggle { font-size: 12px; padding: 10px 16px; }

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 18px 40px rgba(12,20,25,0.08); }
.post-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bone-2);
}
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(12,20,25,0.85);
  color: var(--bone);
  padding: 6px 11px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.post-del {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(220,50,50,0.92);
  color: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.post-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.post-meta .dot { color: var(--mute-2); }
.post-title { font-family: var(--serif); font-size: 24px; line-height: 1.12; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.post-excerpt { font-size: 14px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.post-foot { padding-top: 8px; }
.post-read { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--accent); transition: gap 0.3s; }
.post-card:hover .post-read { gap: 12px; }
.post-clickable { cursor: pointer; }
.post-optic-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #234a5e 0%, #0c1419 100%);
}
.post-optic-fallback .optic { width: 72%; max-width: none; opacity: 0.55; }

/* ============== THANK-YOU (contact confirmation) ============== */
.thanks {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.thanks-brand {
  position: absolute;
  top: 50%; right: -14%;
  width: min(78vh, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.thanks-brand .optic { max-width: none; width: 100%; }
.thanks-inner { position: relative; z-index: 1; max-width: 720px; }
.thanks-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: reveal-in 0.6s var(--ease-out) both;
}
.thanks-title {
  font-size: clamp(40px, 7vw, 88px);
  margin-top: 24px;
  animation: reveal-in 0.7s 0.05s var(--ease-out) both;
}
.thanks-lede { margin-top: 24px; max-width: 46ch; animation: reveal-in 0.7s 0.12s var(--ease-out) both; }
.thanks-ref {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--paper);
  animation: reveal-in 0.7s 0.18s var(--ease-out) both;
}
.thanks-ref-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.thanks-ref-v { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }
.thanks-fallback {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--mute);
  animation: reveal-in 0.7s 0.4s var(--ease-out) both;
}
.thanks-copy {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.thanks-copy:hover { opacity: 0.7; }
.thanks-steps {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  animation: reveal-in 0.7s 0.2s var(--ease-out) both;
}
.thanks-step {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.thanks-step-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex-shrink: 0;
}
.thanks-step-t { font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.thanks-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: reveal-in 0.7s 0.28s var(--ease-out) both;
}
@media (max-width: 640px) {
  .thanks { min-height: 78vh; padding: 100px 0 64px; text-align: left; }
  .thanks-brand { right: auto; left: 50%; top: 46%; width: 120vw; transform: translate(-50%, -50%); opacity: 0.06; }
  .thanks-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-badge, .thanks-title, .thanks-lede, .thanks-steps, .thanks-actions { animation: none; }
}

/* ============== FEMTO-LASIK VIDEO ============== */
.femto {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}
.femto-compact { grid-template-columns: 1fr; gap: 16px; }
.proc-media { display: flex; flex-direction: column; gap: 14px; }
.femto-video {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0c1419;
  cursor: pointer;
  aspect-ratio: 16 / 10;
}
.femto-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c1419;
}
.femto-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: linear-gradient(180deg, rgba(12,20,25,0.15), rgba(12,20,25,0.55));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s;
}
.femto-play:hover { background: linear-gradient(180deg, rgba(12,20,25,0.1), rgba(12,20,25,0.45)); }
.femto-play-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.femto-play:hover .femto-play-btn { transform: scale(1.07); background: var(--gold); }
.femto-play-btn svg { margin-left: 4px; }
.femto-play-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.femto-flag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dark-bg);
  background: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  pointer-events: none;
}
.femto-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.femto-compact .femto-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.femto-point { display: flex; flex-direction: column; gap: 5px; }
.femto-point-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.femto-point-v { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
section.dark .femto-point-v { color: rgba(255,255,255,0.72); }
section.dark .femto-point-k { color: var(--gold); }

@media (max-width: 860px) {
  .femto { grid-template-columns: 1fr; gap: 18px; }
  .femto-compact .femto-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .femto-video { aspect-ratio: 4 / 5; }
  .femto-compact .femto-points { grid-template-columns: 1fr; }
}

/* ============== PROCEDURE TECHNIQUE ART ============== */
.proc-art-wrap { width: 100%; }
.proc-art {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: #f1efe9;
  border: 1px solid var(--line);
}
.proc-art svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .proc-art animate { display: none; }
}

/* ============== FEATURED ARTICLE (homepage) ============== */
.featured { position: relative; }
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.featured-grid > * { min-width: 0; }
.featured-body { min-width: 0; }
.featured-body .lede, .featured .featured-title { overflow-wrap: break-word; }
.featured-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.7s var(--ease);
}
.featured-media:hover img { transform: scale(1.04); }
.featured-optic {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--accent-2), var(--dark-bg));
}
.featured-optic .optic { width: 78%; max-width: none; }
.featured-optic-bg {
  z-index: 0;
  opacity: 0.14;
}
.featured-optic-bg .optic { width: 92%; }
.post-optic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.14;
}
.post-optic-bg .optic { width: 88%; max-width: none; }
.featured-flag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--gold);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.featured-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.featured-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bone);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}
.featured .featured-title {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 18px;
  cursor: pointer;
  transition: color 0.3s;
}
.featured .featured-title:hover { color: var(--accent); }
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; gap: 22px; }
  .featured-media { aspect-ratio: 3/2; }
  /* Compact, Instagram-like card on mobile — appealing but not overwhelming */
  .featured .featured-title { font-size: clamp(24px, 6.4vw, 32px); margin-top: 14px; }
  .featured-body .lede {
    font-size: 16px;
    margin-top: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-body .btn-ghost { display: inline-flex; }
  .featured-body > div { margin-top: 22px !important; }
}

/* ============== ROUNDED MEDIA + INSTAGRAM-STYLE FILTER ============== */
.post-img,
.reader-cover,
.hero-portrait > div,
.bio-portrait,
.work-badge ~ img,
.vid-thumb { border-radius: 14px; }
.post-img img,
.reader-cover img,
.vid-thumb img { border-radius: inherit; }

/* slight rounding on the standalone photos */
.hero-portrait img,
.page-enter section img { border-radius: 14px; }

/* IG-style colour treatment on photographic media */
.post-img img,
.vid-thumb img,
.hero-portrait img,
.reader-cover img,
.work-photo img {
  filter: saturate(1.08) contrast(1.04) brightness(1.01);
}

/* ============== VIDEOS — INSTAGRAM GRID ============== */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.vid-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.vid-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark-paper);
}
.vid-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.vid-card:hover .vid-thumb img { transform: scale(1.06); filter: saturate(1.15) contrast(1.06); }
.vid-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,25,0) 45%, rgba(12,20,25,0.55) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.vid-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform 0.35s var(--ease), background 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.vid-play svg { margin-left: 3px; }
.vid-card:hover .vid-play { transform: translate(-50%, -50%) scale(1.06); background: var(--gold); }
.vid-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(12,20,25,0.7);
  color: var(--bone);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.vid-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}
section:not(.dark) .vid-title { color: var(--ink-soft); }

@media (max-width: 960px) { .vid-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .vid-play { width: 46px; height: 46px; } }

.vid-optic {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #244a5e 0%, #0c1419 100%);
}
.vid-optic .optic { width: 74%; max-width: none; opacity: 0.6; }

/* ============== VIDEO LIGHTBOX ============== */
.vlb-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,15,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: reader-fade 0.3s var(--ease-out);
}
.vlb-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  z-index: 2;
}
.vlb-close:hover { background: rgba(255,255,255,0.2); }
.vlb-frame {
  width: 100%;
  max-width: 1000px;
  animation: reader-rise 0.4s var(--ease-out);
}
.vlb-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  display: block;
  background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.vlb-cap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.vlb-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--gold);
  padding: 5px 11px;
  border-radius: 999px;
}
.vlb-title {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .vlb-overlay { padding: 16px; }
  .vlb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .vlb-title { font-size: 16px; }
}

/* ============== ARTICLE READER ============== */
.reader-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,15,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 40px 20px 80px;
  animation: reader-fade 0.35s var(--ease-out);
}
@keyframes reader-fade { from { opacity: 0; } to { opacity: 1; } }
.reader {
  background: var(--paper);
  width: 100%;
  max-width: 760px;
  padding: clamp(28px, 5vw, 72px);
  position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  border-radius: 16px;
  animation: reader-rise 0.45s var(--ease-out);
  height: auto;
  flex-shrink: 0;
}
@keyframes reader-rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reader-close {
  position: sticky;
  float: right;
  top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
  z-index: 5;
  margin-bottom: -44px;
}
.reader-close:hover { background: var(--ink); color: var(--bone); }
.reader-head { margin-bottom: 32px; }
.reader-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.reader-meta .post-cat { background: var(--accent); }
.reader .reader-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.reader-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bone-2);
  margin-bottom: 40px;
}
.reader-cover img { width: 100%; height: 100%; object-fit: cover; }
.reader-cover-contain { aspect-ratio: 4/3; position: relative; }
.reader-cover-contain img { object-fit: contain; }
.reader-cover-optic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.14;
}
.reader-cover-optic .optic { width: 74%; max-width: none; }

.article-body { display: flex; flex-direction: column; gap: 22px; }
.article-p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: -0.003em;
  text-wrap: pretty;
}
.article-p strong { color: var(--ink); font-weight: 600; }
.article-h {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.article-ul { display: flex; flex-direction: column; gap: 10px; padding-left: 4px; list-style: none; }
.article-ul li {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.article-ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.article-ul li strong { color: var(--ink); font-weight: 600; }
.article-note {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--mute);
  text-transform: none;
}
.reader-foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .reader-overlay { padding: 0; }
  .reader { max-width: none; min-height: 100vh; height: auto; padding: 72px 22px 60px; border-radius: 0; }
  .reader .reader-title { font-size: 28px; }
  .article-p { font-size: 16.5px; }
}

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============== ADMIN FORM ============== */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(12,20,25,0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.admin-form {
  background: var(--bone);
  width: 100%;
  max-width: 640px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  margin: auto;
}
.admin-form-head { display: flex; justify-content: space-between; align-items: center; }
.admin-close { width: 40px; height: 40px; border: 1px solid var(--line); background: none; border-radius: 50%; font-size: 24px; cursor: pointer; color: var(--ink); line-height: 1; }
.admin-close:hover { background: var(--ink); color: var(--bone); }
.admin-cover {
  aspect-ratio: 16/9;
  background: var(--bone-2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--mute-2);
}
.admin-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-cover-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.admin-cover:hover .admin-cover-empty { color: var(--ink); }

@media (max-width: 560px) {
  .admin-form { padding: 24px; }
  .admin-form > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ============== GOOGLE REVIEWS ============== */
.reviews { position: relative; }
.stars { display: inline-flex; gap: 2px; align-items: center; }
.gr-summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
section.dark .gr-summary { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.gr-summary-top { display: flex; align-items: center; gap: 8px; }
.gr-logo-text { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.gr-score { display: flex; align-items: center; gap: 14px; }
.gr-score-num { font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 400; color: var(--accent); }
section.dark .gr-score-num { color: var(--gold); }
.gr-count { font-size: 12px; color: var(--mute); margin-top: 5px; }
.gr-write { align-self: flex-start; }
.gr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gr-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
section.dark .gr-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.gr-card-head { display: flex; align-items: center; gap: 12px; }
.gr-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; flex-shrink: 0;
}
.gr-name { font-size: 14px; font-weight: 600; color: var(--ink); }
section.dark .gr-name { color: #fff; }
.gr-when { font-size: 11.5px; color: var(--mute); }
.gr-g { margin-left: auto; }
.gr-text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
section.dark .gr-text { color: rgba(255,255,255,0.72); }
.gr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 900px) { .gr-grid { grid-template-columns: 1fr; } }

/* Trustpilot */
.tp-box {
  margin-top: 40px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
section.dark .tp-box { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.tp-brand { display: flex; align-items: center; gap: 8px; }
.tp-word { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.tp-stars { display: inline-flex; gap: 3px; }
.tp-star { display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; }
.tp-line { font-size: 14px; color: var(--mute); }
section.dark .tp-line { color: rgba(255,255,255,0.6); }
.tp-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ============== FAQ ============== */
.faq { position: relative; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.faq-toggle {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease), padding 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 26px; }
.faq-a p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }

/* loader */
.loader {
  position: fixed; inset: 0; background: var(--bone);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s 0.2s var(--ease);
}
.loader.gone { opacity: 0; }
.loader-mark {
  width: 80px; height: 80px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
  animation: optic-spin 2s linear infinite;
}
.loader-mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid var(--accent);
  border-top-color: transparent;
}

/* Marca do olho (nav/rodapé) */
.eye-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
/* Convite a avaliar (bloco Google) */
.gr-invite { font-size: 14px; line-height: 1.55; color: var(--mute); }
section.dark .gr-invite { color: rgba(255,255,255,0.62); }
/* Ligação para a notícia original no leitor */
.reader-source { white-space: nowrap; }

/* Instagram no rodapé */
.footer-ig { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; color: #fff; transition: color 0.25s, transform 0.25s var(--ease); }
.footer-ig span { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.01em; line-height: 1.05; }
.footer-ig:hover { color: var(--gold); transform: translateX(2px); }
@media (max-width: 640px) { .footer-ig span { font-size: 24px; } .footer-ig svg { width: 24px; height: 24px; } }

/* Vídeo mais recente em destaque (homepage) */
.vid-latest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 40px; cursor: pointer; }
.vid-latest-media { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--dark-paper); }
.vid-latest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vid-latest:hover .vid-latest-media img { transform: scale(1.04); }
.vid-latest-flag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-bg); background: var(--gold); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.vid-latest-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.35s var(--ease), background 0.3s; }
.vid-latest-play svg { margin-left: 3px; }
.vid-latest:hover .vid-latest-play { transform: translate(-50%,-50%) scale(1.07); background: var(--gold); }
.vid-latest-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vid-latest-title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; line-height: 1.15; color: #fff; letter-spacing: -0.01em; overflow-wrap: break-word; }
@media (max-width: 860px) { .vid-latest { grid-template-columns: 1fr; } }

.skip-link{position:fixed;top:-100px;left:16px;z-index:9999;background:var(--ink);color:#fff;padding:12px 18px;border-radius:999px;font-size:14px;text-decoration:none;transition:top .2s var(--ease)}
.skip-link:focus{top:16px;outline:2px solid var(--accent);outline-offset:2px}
