/* Unified design system. This stylesheet intentionally loads last. */
:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container-width: 1200px;
  --radius-input: 10px;
  --radius-card: 16px;
  --radius-button: 10px;
  --bg-primary: #1b1a19;
  --bg-secondary: #23211f;
  --bg-tertiary: #302c27;
  --accent-gold: #ddbc78;
  --accent-gold-hover: #f1d293;
  --text-primary: #f4efe5;
  --text-secondary: #c9c0b2;
  --text-muted: #9b9387;
  --border-color: rgba(221, 188, 120, 0.24);
  --font-editorial: 'Source Serif 4', Georgia, serif;
}

html {
  scroll-padding-top: 88px;
}

body {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  padding-inline: var(--space-md);
}

.section-padding {
  padding-block: var(--space-3xl);
}

.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.section-subtitle {
  margin-bottom: var(--space-sm);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.section-title {
  font-size: clamp(40px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: none;
}

.section-title::after {
  width: 48px;
  margin-top: var(--space-sm);
}

.section-description {
  max-width: 640px;
  margin-top: var(--space-md);
  font-size: 18px;
  line-height: 1.6;
}

.btn {
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.btn-primary,
.btn-whatsapp,
.practice-link {
  border-radius: 8px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.practice-link:focus-visible,
.form-control:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(221, 188, 120, 0.65);
  outline-offset: 3px;
}

.header-nav {
  border-bottom-color: var(--border-color);
}

.nav-container {
  height: 80px;
}

.header-nav.scrolled .nav-container {
  height: 72px;
}

.logo-mark {
  width: 40px;
  height: 40px;
}

.logo-main {
  font-size: 24px;
  line-height: 1;
}

.logo-sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.nav-menu {
  gap: var(--space-md);
}

.nav-link {
  padding: var(--space-xs) 0;
  font-size: 14px;
}

.nav-cta .btn {
  min-height: 40px;
  padding: 10px var(--space-sm);
  font-size: 14px;
}

.hero-section {
  height: 720px;
  min-height: 720px;
  padding: 128px 0 var(--space-2xl);
}

.hero-section::before {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 620px);
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 14px;
}

.hero-title {
  margin-bottom: var(--space-md);
  font-size: clamp(52px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 560px;
  margin-bottom: var(--space-lg);
  font-size: 18px;
  line-height: 1.6;
}

.hero-buttons .btn {
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 4px;
}

.hero-cta-note {
  margin-top: var(--space-xs);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-trust {
  display: none;
}

.hero-mobile-portrait {
  display: none;
}

#atuacao,
.about-section,
.differentials-section,
.process-section,
#perguntas {
  border-color: var(--border-color);
}

.practice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.practice-card {
  min-height: 352px;
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  border-color: var(--border-color);
  background: var(--bg-secondary);
}

.practice-card::before {
  display: none;
}

.practice-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

.practice-card h3 {
  margin: auto 0 var(--space-sm);
  font-size: 28px;
  line-height: 1.1;
}

.practice-card p {
  margin-bottom: var(--space-md);
  font-size: 16px;
  line-height: 1.55;
}

.practice-link {
  min-height: 44px;
  padding: 12px var(--space-sm);
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 600;
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  gap: var(--space-2xl);
}

.about-bio {
  gap: var(--space-md);
}

.about-bio .section-title {
  font-size: clamp(40px, 3.5vw, 44px);
  line-height: 1.1;
}

.about-bio p {
  font-size: 16px;
  line-height: 1.7;
}

.about-img {
  height: 520px;
}

.about-badge-floating {
  right: calc(var(--space-sm) * -1);
  bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-card);
}

.about-stats {
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.stat-item {
  padding: var(--space-md);
  border-radius: var(--radius-card);
}

.stat-title {
  font-size: 28px;
  line-height: 1.1;
}

.stat-label {
  margin-top: var(--space-xs);
  font-size: 14px;
}

.differentials-layout {
  gap: var(--space-lg);
}

.differentials-section {
  background: var(--bg-primary);
}

.differential-stack {
  gap: var(--space-md);
}

.differential-card {
  min-height: 152px;
  padding: var(--space-md);
  border-radius: var(--radius-card);
}

.differential-index {
  font-size: 24px;
}

.differential-card h3 {
  margin-block: var(--space-xs);
  font-size: 24px;
  line-height: 1.15;
}

.differential-card p {
  font-size: 16px;
  line-height: 1.6;
}

.differential-portrait,
.differential-portrait img {
  height: 448px;
  max-height: 448px;
}

.process-list {
  gap: var(--space-md);
}

.process-number {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-md);
}

.process-step h3 {
  font-size: 24px;
  line-height: 1.15;
}

.process-step p {
  font-size: 16px;
  line-height: 1.6;
}

.section-action {
  margin-top: var(--space-xl);
}

details.faq-item,
.contact-grid {
  border-radius: var(--radius-card);
  border-color: var(--border-color);
}

summary.faq-question {
  padding: var(--space-md) var(--space-lg);
  font-size: 24px;
  line-height: 1.25;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 16px;
  line-height: 1.65;
}

.contact-grid {
  gap: var(--space-xl);
  padding: var(--space-xl);
}

.contact-info-header {
  margin-bottom: var(--space-lg);
}

.contact-info-header h3 {
  font-size: 30px;
}

.contact-info-header p,
.method-details p,
.method-details a {
  font-size: 16px;
}

.contact-methods {
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.form-group {
  gap: var(--space-xs);
}

.form-group label {
  font-size: 14px;
}

.contact-form {
  gap: var(--space-md);
}

.form-control {
  min-height: 52px;
  padding: 14px var(--space-sm);
  border-radius: var(--radius-input);
  font-size: 16px;
}

textarea.form-control {
  min-height: 144px;
}

.main-footer {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 1199px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding-block: var(--space-2xl);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-image-wrapper {
    max-width: 640px;
  }

  .differentials-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .differential-portrait {
    grid-column: auto;
    grid-row: auto;
    width: 288px;
    order: -1;
  }

  .differential-stack {
    grid-row: auto;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-xl);
  }

  .process-list::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  .container {
    padding-inline: 20px;
  }

  .section-padding {
    padding-block: var(--space-2xl);
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-subtitle {
    font-size: 14px;
  }

  .section-title,
  .about-bio .section-title {
    font-size: clamp(30px, 8.5vw, 32px);
    line-height: 1.1;
  }

  .section-description {
    margin-top: var(--space-sm);
    font-size: 16px;
  }

  .nav-menu {
    top: 80px;
    height: calc(100dvh - 80px);
    padding: var(--space-md) 20px var(--space-lg);
  }

  .header-nav.scrolled .nav-menu {
    top: 72px;
    height: calc(100dvh - 72px);
  }

  .nav-link {
    font-size: 16px;
  }

  .hero-section {
    height: auto;
    min-height: 0;
    padding: 112px 0 var(--space-2xl);
  }

  .hero-media {
    display: none;
  }

  .hero-grid {
    display: block;
  }

  .hero-title {
    margin-bottom: var(--space-sm);
    font-size: clamp(36px, 10vw, 40px);
    line-height: 1.1;
  }

  .hero-text {
    margin-bottom: var(--space-md);
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-buttons {
    display: flex;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 52px;
    padding: 14px var(--space-md);
  }

  .hero-mobile-portrait {
    display: block;
    height: 320px;
    margin-top: var(--space-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: #11100f;
  }

  .hero-mobile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 12% center;
  }

  .hero-mobile-portrait::after {
    display: none;
  }

  .practice-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    gap: var(--space-sm);
  }

  .practice-card {
    min-height: 288px;
    padding: var(--space-md);
  }

  .practice-card h3 {
    font-size: 26px;
  }

  .practice-card p {
    font-size: 16px;
  }

  .practice-link {
    min-height: 44px;
    font-size: 14px;
  }

  .about-grid,
  .differentials-layout {
    gap: var(--space-lg);
  }

  .about-img {
    height: 352px;
  }

  .about-bio p,
  .differential-card p,
  .process-step p {
    font-size: 16px;
  }

  .about-badge-floating {
    right: var(--space-sm);
    bottom: var(--space-sm);
  }

  .differential-card {
    min-height: 0;
    padding: var(--space-md);
  }

  .differential-card h3,
  .process-step h3 {
    font-size: 24px;
  }

  .differential-portrait,
  .differential-portrait img {
    height: 384px;
    max-height: 384px;
  }

  .process-list {
    gap: var(--space-md);
  }

  .process-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 var(--space-sm);
    text-align: left;
  }

  .process-number {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .process-step h3 {
    align-self: end;
    margin: 0;
  }

  .process-step p {
    max-width: none;
    margin: var(--space-xs) 0 0;
  }

  summary.faq-question {
    padding: var(--space-md);
    font-size: 24px;
  }

  .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 16px;
  }

  .contact-grid {
    gap: var(--space-lg);
    padding: var(--space-md);
  }

  .contact-info-header h3 {
    font-size: 28px;
  }

  .map-wrapper {
    height: 240px;
  }

  .footer-grid {
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 72px;
  }

  .header-nav.scrolled .nav-container {
    height: 64px;
  }

  .nav-menu {
    top: 72px;
    height: calc(100dvh - 72px);
  }

  .header-nav.scrolled .nav-menu {
    top: 64px;
    height: calc(100dvh - 64px);
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-main {
    font-size: 20px;
  }

  .logo-sub {
    font-size: 8px;
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-badge {
    font-size: 13px;
  }

  .hero-mobile-portrait {
    height: 288px;
  }

  .about-img {
    height: 320px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Practice areas follow the editorial card treatment from the inspiration. */
#atuacao {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

#atuacao .section-header {
  max-width: 640px;
}

#atuacao .practice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

#atuacao .practice-card {
  min-height: 368px;
  height: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background: #201e1c;
  box-shadow: none;
}

#atuacao .practice-card::before {
  display: none;
}

#atuacao .practice-card:hover {
  border-color: var(--accent-gold);
  background: #26231f;
  box-shadow: none;
  transform: translateY(-4px);
}

#atuacao .practice-icon {
  display: none;
}

.practice-kicker {
  display: block;
  min-height: 36px;
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

#atuacao .practice-card h3 {
  min-height: 83px;
  margin: var(--space-sm) 0;
  font-size: 24px;
  line-height: 1.15;
}

#atuacao .practice-card p {
  flex-grow: 0;
  min-height: 87px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

#atuacao .practice-link {
  align-self: flex-start;
  min-height: 40px;
  margin-top: auto;
  padding: 10px var(--space-sm);
  border-radius: var(--radius-input);
  background: var(--accent-gold);
  color: #211e1b;
  font-size: 14px;
}

.areas-action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

@media (max-width: 1199px) {
  #atuacao .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #atuacao .practice-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  #atuacao .practice-card {
    min-height: 0;
  }

  .practice-kicker {
    min-height: 0;
  }

  #atuacao .practice-card h3 {
    min-height: 0;
    font-size: 24px;
  }

  #atuacao .practice-card p {
    min-height: 0;
    font-size: 16px;
  }

  .areas-action .btn {
    width: 100%;
  }
}

/* One CTA treatment across navigation, sections, forms and practice cards. */
.btn-primary,
.btn-whatsapp,
.practice-link,
.header-nav .nav-cta .btn {
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .btn-primary,
  .btn-whatsapp,
  .practice-link,
  .header-nav .nav-cta .btn {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* Shared WhatsApp CTA pattern. */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.cta-note,
.hero-cta-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.header-nav .nav-cta .cta-stack {
  align-items: center;
  gap: 4px;
}

.header-nav .nav-cta .cta-note {
  font-size: 10px;
  white-space: nowrap;
}

.hero-buttons + .hero-cta-note {
  margin-top: var(--space-xs);
}

.practice-card .cta-stack {
  margin-top: auto;
}

#atuacao .practice-link {
  align-self: flex-start;
  margin: 0;
  min-height: 52px;
  padding: 14px var(--space-md);
}

.areas-action .cta-stack,
.section-action .cta-stack {
  align-items: center;
  text-align: center;
}

.form-cta {
  width: 100%;
}

.form-cta .btn {
  justify-content: center;
}

@media (max-width: 768px) {
  .header-nav .nav-cta .cta-note {
    font-size: 11px;
  }

  #atuacao .practice-card {
    min-height: 0;
  }

  .practice-card .cta-stack,
  .practice-card .practice-link {
    width: 100%;
  }

  .practice-card .cta-note {
    text-align: center;
  }
}

/* Service cards: clear subjects, useful detail and descriptive links. */
#atuacao .areas-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}
#atuacao .areas-heading .section-title {
  margin: 0;
  text-align: left;
}
#atuacao .areas-heading .section-description {
  max-width: 440px;
  margin: 0;
  text-align: left;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: linear-gradient(130deg, #24211d, #1c1a18);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--accent-gold);
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.service-category {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.service-number {
  color: var(--accent-gold);
  opacity: .65;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1;
}
.service-card h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1.15;
}
.service-card > p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.service-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: auto 0 24px;
  list-style: none;
}
.service-topics li {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}
.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.service-link svg { flex-shrink: 0; }
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 6px;
  border-radius: 2px;
}
#atuacao .areas-action {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
}
.areas-action > p { margin: 0; font-size: 17px; line-height: 1.6; }
.areas-action > p span { color: var(--text-secondary); font-size: 15px; }
@media (max-width: 768px) {
  #atuacao .areas-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; }
  .service-card-top { margin-bottom: 20px; }
  .service-card h3 { font-size: 28px; }
  #atuacao .areas-action { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .areas-action > p { text-align: center; }
}

/* Personal introduction with portrait and professional registration. */
#sobre {
  --about-portrait-height: 636px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 0;
  background: #24221e;
}
#sobre::before,
#sobre::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#sobre::before {
  z-index: -2;
  background: url('../images/hero-stone-background.webp') center / cover no-repeat;
  opacity: .6;
  transform: scaleX(-1);
  /* Mirror the side light toward the portrait and fade texture away from the copy. */
  mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
}
#sobre::after {
  z-index: -1;
  background:
    linear-gradient(180deg, var(--section-join-color), rgba(25, 26, 25, 0) var(--section-join-height)),
    radial-gradient(ellipse at 22% 30%, rgba(204, 165, 104, .16), transparent 55%),
    linear-gradient(180deg, rgba(16, 16, 15, .4), transparent 24%, transparent 68%, rgba(16, 16, 15, .55)),
    linear-gradient(90deg, transparent 30%, rgba(29, 28, 26, .76) 66%, #1d1c1a);
}
#sobre .about-grid {
  position: relative;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "portrait intro" "portrait bio";
  column-gap: clamp(32px, 6vw, 80px);
  row-gap: 24px;
  align-items: start;
}
#sobre .about-image-wrapper {
  grid-area: portrait;
  order: 0;
  align-self: end;
  width: 100%;
}
#sobre .about-intro {
  grid-area: intro;
  align-self: end;
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(221, 188, 120, .16);
}
#sobre .about-bio {
  grid-area: bio;
  order: 0;
  gap: 28px;
  min-width: 0;
  padding-bottom: var(--space-3xl);
}
#sobre .about-frame {
  height: var(--about-portrait-height);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mask-image: none;
}
#sobre .about-frame::before,
#sobre .about-frame::after { display: none; }
#sobre .about-img {
  display: block;
  width: 100%;
  /* Keep the shared mask's lower fade below the visible section edge. */
  height: calc(var(--about-portrait-height) + 48px);
  object-position: 77% center;
  mask-image: url('../images/marcio-portrait-mask.svg');
  mask-size: cover;
  mask-position: 77% center;
  mask-repeat: no-repeat;
}
#sobre .about-intro .section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
#sobre .about-intro .section-subtitle::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
#sobre .about-intro .section-title {
  margin: 0 0 8px;
  text-align: left;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.1;
}
#sobre .about-intro .section-title::after { display: none; }
#sobre .about-credential {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
}
#sobre .about-copy {
  display: grid;
  gap: 18px;
  max-width: 58ch;
}
#sobre .about-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}
#sobre .about-contact {
  display: grid;
  justify-items: start;
}
@media (min-width: 992px) and (max-width: 1199px) {
  #sobre { --about-portrait-height: 600px; }
  #sobre .about-img { object-position: 74% center; mask-position: 74% center; }
}
@media (max-width: 991px) {
  #sobre { --about-portrait-height: 500px; }
  #sobre::before {
    background-image: url('../images/hero-stone-background-mobile.webp');
    background-position: center bottom;
    background-size: auto 760px;
    opacity: .5;
    mask-image: linear-gradient(180deg, transparent 20%, #000 70%);
  }
  #sobre::after {
    background:
      linear-gradient(180deg, var(--section-join-color), rgba(25, 26, 25, 0) var(--section-join-height)),
      radial-gradient(ellipse at 50% 80%, rgba(204, 165, 104, .14), transparent 54%),
      linear-gradient(180deg, #1d1c1a 18%, transparent 64%, transparent 90%, rgba(16, 16, 15, .3));
  }
  #sobre .about-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "bio" "portrait";
    max-width: 688px;
    row-gap: 28px;
  }
  #sobre .about-bio { padding-bottom: 0; }
  #sobre .about-image-wrapper { max-width: 440px; margin-inline: auto; }
  #sobre .about-img { object-position: 81% center; mask-position: 81% center; }
}
@media (max-width: 768px) {
  #sobre { --about-portrait-height: clamp(340px, 100vw, 420px); }
  #sobre .about-grid { row-gap: 24px; }
  #sobre .about-intro { padding-bottom: 16px; }
  #sobre .about-image-wrapper { max-width: 400px; }
  #sobre .about-bio { gap: 24px; }
  #sobre .about-copy { gap: 16px; }
  #sobre .about-copy p { font-size: 16px; }
  #sobre .about-contact .btn { width: 100%; }
}

/* Hero: a single headline, quiet location and direct paths to contact/services. */
.hero-modern {
  height: auto;
  min-height: 740px;
  padding: 152px 0 64px;
  background: radial-gradient(ellipse at 78% 42%, #38342c 0%, #242320 32%, #191a19 72%);
}
.hero-modern::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/hero-stone-background.webp') center / cover no-repeat;
  opacity: .15;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4), #000 72%);
  pointer-events: none;
}

.hero-modern::after {
  content: '';
  display: block;
  position: absolute;
  inset: auto 0 0;
  height: var(--section-join-height);
  /* Blend the background below the portrait and all foreground content. */
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 26, 25, 0), var(--section-join-color));
  pointer-events: none;
}
.hero-monogram {
  position: absolute;
  z-index: 0;
  top: 65px;
  right: -70px;
  width: 900px;
  height: 900px;
  opacity: .2;
  pointer-events: none;
  overflow: hidden;
}
.hero-monogram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(0 0 17% 0);
  filter: saturate(.6);
}
@media (min-width: 769px) {
  .hero-monogram {
    /* Fade before the waist so isolated strokes cannot show below the portrait. */
    mask-image: linear-gradient(180deg, #000 42%, transparent 60%);
  }
}
.hero-modern .hero-media {
  display: block;
  z-index: 0;
  inset: auto 4% 0 auto;
  width: 540px;
  height: 635px;
  background: transparent;
  mask-image: url('../images/marcio-portrait-mask.svg');
  mask-size: cover;
  mask-position: 73% center;
  mask-repeat: no-repeat;
}
.hero-modern .hero-media img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: 73% center;
  transform: none;
  mix-blend-mode: normal;
  mask-image: none;
}
.hero-modern .hero-grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: 475px;
  gap: 48px;
}
.hero-modern .hero-content { max-width: 570px; }
.hero-location {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.hero-modern .hero-title {
  margin: 0 0 20px;
  font-family: var(--font-editorial);
  font-optical-sizing: auto;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-modern .hero-text {
  max-width: 100%;
  margin: 0 0 32px;
  color: #d8d0c3;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
  text-wrap: balance;
}
.hero-modern .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0;
}
.hero-modern .hero-buttons .btn { border-radius: 8px; padding: 16px 24px; }
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--border-color);
}
.hero-secondary-link:hover { text-decoration-color: var(--accent-gold); }
.hero-secondary-link:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 5px; }
.hero-secondary-link svg { flex-shrink: 0; }
.hero-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #d8d0c3;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
}
.hero-availability li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-availability svg {
  flex: 0 0 18px;
  color: var(--accent-gold);
}
.hero-identity {
  position: relative;
  background: linear-gradient(90deg, rgba(25,26,25,.8), rgba(25,26,25,.4));
  border-radius: 0 0 8px 8px;
  align-self: end;
  justify-self: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(221,188,120,.35);
}
.hero-name { margin: 0 0 6px; color: var(--text-primary); font-size: 16px; font-weight: 500; }
.hero-registration { margin: 0; color: var(--text-secondary); font-size: 12px; letter-spacing: .05em; }
.hero-avatar { display: none; }
@media (min-width: 1101px) {
  .hero-modern { min-height: 820px; }
  .hero-modern .hero-grid { min-height: 555px; }
  .hero-modern .hero-media {
    /* Anchor the portrait to the content container on wider screens. */
    left: calc(max(0px, (100% - var(--container-width)) / 2) + 484px);
    right: auto;
    width: 594px;
    height: 698.5px;
    transform: translateX(40px) scale(1.05);
    transform-origin: 58.5% 100%;
  }
  .hero-modern .hero-identity {
    position: absolute;
    left: 872px;
    bottom: 16px;
    transform: translateX(-50%);
  }
  .hero-monogram {
    left: calc(max(0px, (100% - var(--container-width)) / 2) + 358px);
    right: auto;
  }
}
@media (min-width: 1101px) and (min-height: 900px) {
  .hero-modern { min-height: 860px; }
  /* Match the content's centered shift within the extra 40px of height. */
  .hero-modern .hero-media { bottom: 20px; }
}
@media (max-width: 1100px) {
  .hero-modern .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; }
  .hero-modern .hero-title { font-size: 36px; }
  .hero-modern .hero-media { right: -60px; width: 480px; height: 600px; }
  .hero-monogram { right: -170px; width: 790px; height: 790px; }
  .hero-modern .hero-identity { max-width: 230px; }
  .hero-name { font-size: 14px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-modern {
    --hero-portrait-height: clamp(480px, calc(72vw - 74px), 600px);
    /* Account for the photograph's transparent left margin to leave a 32px gap. */
    --hero-portrait-left: calc(56px + min(570px, (100% - 72px) * .6) - var(--hero-portrait-height) * .167);
  }
  .hero-modern .hero-media {
    left: var(--hero-portrait-left);
    right: auto;
    bottom: calc((600px - var(--hero-portrait-height)) / 2);
    width: calc(var(--hero-portrait-height) * .8);
    height: var(--hero-portrait-height);
    transform: translateX(12px) scale(1.03);
    transform-origin: 57.25% 100%;
  }
  .hero-monogram {
    left: calc(var(--hero-portrait-left) - var(--hero-portrait-height) / 3 + 12px);
    right: auto;
    width: calc(var(--hero-portrait-height) * 1.316667);
    height: calc(var(--hero-portrait-height) * 1.316667);
  }
  .hero-modern .hero-identity {
    position: absolute;
    left: calc(var(--hero-portrait-left) + var(--hero-portrait-height) * .458 + 12px);
    bottom: calc((600px - var(--hero-portrait-height)) * .22);
    width: max-content;
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .hero-modern { min-height: 0; padding: 120px 0 48px; background: radial-gradient(ellipse at 100% 20%, #302e26, #191a19 75%); }
  .hero-modern::before {
    background-image: url('../images/hero-stone-background-mobile.webp');
    background-position: 68% center;
    opacity: .1;
    mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .4) 85%);
  }
  .hero-monogram { top: 80px; right: -160px; width: 540px; height: 540px; opacity: .09; }
  .hero-modern .hero-media { display: none; }
  .hero-modern .hero-grid { display: grid; grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-modern .hero-content { max-width: 560px; }
  .hero-location { margin-bottom: 24px; font-size: 12px; }
  .hero-modern .hero-title { font-size: 30px; margin-bottom: 20px; }
  .hero-modern .hero-text { font-size: 16px; margin-bottom: 24px; }
  .hero-modern .hero-buttons { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-modern .hero-buttons .btn { width: 100%; }
  .hero-secondary-link { justify-content: center; }
  .hero-availability { justify-content: center; column-gap: 20px; text-align: center; }
  .hero-modern .hero-identity { max-width: none; background: none; padding: 24px 0 0; }
  .hero-identity { display: flex; align-items: center; justify-self: stretch; gap: 16px; padding-top: 24px; }
  .hero-avatar { display: block; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center top; }
  .hero-name { font-size: 14px; line-height: 1.5; }
}

/* Shared header and home CTAs, with a stronger hero action. */
.home-page .btn,
.header-nav .nav-cta .btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.home-page .btn:is(:hover, :active),
.header-nav .nav-cta .btn:is(:hover, :active) {
  transform: none;
  box-shadow: none;
}

.home-page .btn > svg,
.header-nav .nav-cta .btn > svg {
  flex-shrink: 0;
}

.home-page .hero-modern .hero-buttons .btn {
  min-height: 56px;
  padding: 16px 24px;
}

/* Home typography follows the hero; brand lettering keeps its own styles. */
.home-page {
  --section-join-color: #191a19;
  --section-join-height: 180px;
  --font-title: var(--font-editorial);
  --font-heading: var(--font-editorial);
}

.home-page > .section-padding {
  --text-secondary: #d8d0c3;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: normal;
}

.home-page :is(h2, h3, h4, summary.faq-question),
.home-page :is(.service-number, .differential-index, .process-number),
.home-page + .main-footer .footer-col h4 {
  font-family: var(--font-editorial);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.home-page .section-title,
.home-page #sobre .about-intro .section-title {
  font-size: 34px;
  line-height: 1.2;
}

.home-page .section-description {
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.home-page .service-card h3,
.home-page .contact-info-header h3 {
  font-size: 26px;
}

.home-page .differential-card h3,
.home-page .process-step h3 {
  font-size: 22px;
}

.home-page summary.faq-question {
  font-size: 20px;
  line-height: 1.4;
}

.home-page :is(.form-group label, .form-control) {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
}

.home-page .method-details h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
}

.home-page + .main-footer .footer-col h4 {
  font-size: 20px;
}

.home-page + .main-footer :is(.footer-brand-desc, .footer-links, .footer-bottom) {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
}

@media (max-width: 768px) {
  .home-page { --section-join-height: 96px; }
  .home-page .section-title,
  .home-page #sobre .about-intro .section-title {
    font-size: 28px;
  }

  .home-page .section-description {
    font-size: 16px;
  }

  .home-page .service-card h3,
  .home-page .contact-info-header h3 {
    font-size: 24px;
  }

  .home-page .differential-card h3,
  .home-page .process-step h3 {
    font-size: 20px;
  }

  .home-page summary.faq-question {
    font-size: 18px;
  }
}
