:root {
  color-scheme: light;
  --paper: #fbf7f1;
  --ink: #34232a;
  --muted: #62545a;
  --wine: #562d3c;
  --line: #ded1c8;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a75542; outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 3; padding: .6rem 1rem; background: white; }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.header, nav, .brand, .actions { display: flex; align-items: center; }
.header { min-height: 90px; justify-content: space-between; gap: 1.5rem; }
.brand { gap: .85rem; font: 500 1.35rem/1.1 var(--serif); text-decoration: none; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--wine); color: var(--paper); border-radius: 50% 50% 3px 3px; }
.brand small, .signature small { display: block; font: 700 .64rem/1.3 "DM Sans", sans-serif; letter-spacing: .2em; text-transform: uppercase; margin-top: .35rem; }
nav { gap: clamp(1rem, 3vw, 2.6rem); font-size: .9rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact { border: 1px solid var(--line); padding: .5rem .85rem; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.75rem); }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 1.2rem; }
.eyebrow span { width: 1.55rem; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 8.6vw, 8.15rem); }
h1 em { color: var(--wine); font-weight: 500; }
h2 { font-size: clamp(2.5rem, 4.8vw, 4.45rem); }
p { margin: 1rem 0 0; }
.intro { max-width: 36ch; font-size: clamp(1rem, 1.6vw, 1.22rem); margin-top: 1.65rem; }
.intro, .areas p:not(.eyebrow), .about p:not(.eyebrow) { color: var(--muted); }
.actions { gap: 1.15rem; flex-wrap: wrap; margin-top: 1.8rem; }
.button { display: inline-flex; gap: .8rem; align-items: center; justify-content: center; padding: .8rem 1rem; background: var(--wine); color: white; font-size: .88rem; font-weight: 700; text-decoration: none; min-height: 48px; }
.button:hover { background: #39202a; }
.text-link { font-size: .9rem; font-weight: 700; text-decoration: none; padding-block: .6rem; }
.hero-photo { margin: 0; position: relative; min-width: 0; background: #e4cfbd; border-radius: 48% 48% 0 0 / 38% 38% 0 0; overflow: hidden; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1.01; object-fit: cover; object-position: 49% center; filter: saturate(.76); }
figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem .75rem; padding: .9rem 1.1rem; background: #eaddd2; font-size: .9rem; }
figcaption span:first-child { font-size: .63rem; font-weight: 700; letter-spacing: .16em; }
.diamond { color: var(--wine); }
.section-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 7vw, 6rem); }
.areas, .about, .contact { padding-block: clamp(3.5rem, 8vw, 7rem); }
.areas { background: #f1e8df; }
.topics { border-top: 1px solid #cbbab2; }
details { border-bottom: 1px solid #cbbab2; }
summary { cursor: pointer; display: grid; grid-template-columns: 2rem 1fr 1rem; align-items: baseline; gap: .65rem; list-style: none; padding-block: 1.15rem; font: 500 clamp(1.12rem, 2vw, 1.5rem)/1.3 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 1rem/1 system-ui, sans-serif; color: var(--wine); }
details[open] summary::after { content: "−"; }
.num { color: #704754; font: 700 .7rem/1 "DM Sans", sans-serif; }
details p { margin: -.25rem 1.65rem 1.25rem 2.65rem; }
.about { align-items: center; }
.signature { min-height: 260px; padding: 2rem; background: #eadad2; display: grid; justify-items: center; align-content: center; text-align: center; gap: 1rem; color: var(--wine); }
.signature > span { font: 500 5rem/1 var(--serif); letter-spacing: -.12em; padding: .15em .23em .23em .12em; border: 1px solid #9f7a86; border-radius: 50% 50% 0 0; }
.signature strong, .footer strong { font: 500 1.3rem var(--serif); }
.contact { background: #432831; color: var(--paper); }
.contact .button { margin-top: 1.5rem; color: var(--ink); background: #f0ded0; }
.contact .button:hover { background: white; }
.contact dl { margin: 0; align-self: end; }
.contact dt { border-top: 1px solid #926e7c; padding-top: 1rem; font: 500 1.4rem var(--serif); }
.contact dd { margin: .45rem 0 1.15rem; color: #f2dfdc; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: 1.6rem; font-size: .85rem; }
.footer p { margin: 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header { flex-wrap: wrap; gap: .65rem; padding-block: .9rem; }
  nav { flex-wrap: wrap; gap: .3rem 1rem; }
  nav a { padding-block: .45rem; }
  .hero, .section-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 1.25; }
  .about > div:last-child { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.photo-stage { position: relative; }
.hero-photo .photo {
  opacity: 0;
  transition: opacity 850ms ease;
}
.hero-photo .photo + .photo { position: absolute; inset: 0; height: 100%; }
.hero-photo .photo.is-current { opacity: 1; }
.photo-pause {
  border: 0;
  padding: .35rem 0;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .photo { transition: none; }
}

.profile-card {
  display: grid;
  align-content: center;
  min-height: 280px;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--wine);
  border-left: 4px solid #926e7c;
  color: var(--paper);
}
.about .profile-card p:not(.eyebrow), .profile-card small {
  color: #f2dfdc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.profile-card p { margin: 0 0 1.3rem; }
.profile-card strong { font: 500 clamp(2rem, 4vw, 3.5rem)/1.1 var(--serif); }
.profile-card small { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #926e7c; }
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(2.8rem, 15vw, 3.7rem); }
}

.bio-page { background: #f1e8df; }
.bio { max-width: 36rem; margin-inline: auto; padding: clamp(2rem, 8vw, 5rem) 1.25rem; text-align: center; }
.bio .mark { margin: 0 auto 1.25rem; width: 62px; height: 62px; font: 1.65rem var(--serif); }
.bio .eyebrow { justify-content: center; }
.bio h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); }
.bio-links { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; text-align: left; }
.bio-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.bio-links a:hover, .bio-links li:first-child a { background: var(--wine); color: var(--paper); }
.bio-links small { display: block; }

.photo-credits { padding-bottom: 1rem; font-size: .75rem; color: var(--muted); }

.tax-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  color: var(--paper);
  background: #432831;
}
.tax-hero .hero-copy {
  grid-area: 1 / 1;
  align-self: center;
  z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 8rem);
}
.tax-hero h1 { font-size: clamp(2.65rem, 7.4vw, 7rem); }
.tax-hero h1 em { color: #f3d6c8; }
.tax-hero .intro { color: var(--paper); }
.tax-hero .button { background: var(--paper); color: var(--wine); }
.tax-hero .button:hover { background: #eaddd2; }
.tax-hero .hero-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-area: 1 / 1 / 3 / 2;
  border-radius: 0;
  background: #432831;
}
.tax-hero .photo-stage {
  min-height: clamp(480px, 49vw, 690px);
  overflow: hidden;
}
.tax-hero .photo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #201319f2, #201319b8 42%, #20131924 100%);
}
.tax-hero .photo {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  object-position: center 40%;
  filter: none;
}
.tax-hero figcaption {
  justify-content: flex-start;
  padding-inline: max(1.25rem, calc((100% - 1160px) / 2));
  background: #432831;
  color: var(--paper);
}
.tax-hero .photo-pause { color: inherit; margin-left: auto; }
@media (max-width: 600px) {
  .tax-hero .photo-stage::after {
    background: linear-gradient(90deg, #201319ec, #2013199e);
  }
}
.tax-hero { grid-template-rows: minmax(0, 1fr) auto; }
.tax-hero .hero-photo { grid-template-rows: subgrid; }

.mark {
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent url("if.svg") center / contain no-repeat;
  font-size: 0;
}
.bio .mark { font-size: 0; }
.service-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
.service-strip strong { font-weight: 700; }
.tax-hero figcaption .service-strip span { font: inherit; letter-spacing: normal; }
@media (max-width: 920px) {
  .header { flex-wrap: wrap; padding-block: .9rem; }
  .header nav { flex-wrap: wrap; }
}

.course-hero { background: #432831; color: var(--paper); padding-block: clamp(2.5rem, 7vw, 6rem); }
.course-hero .eyebrow { margin-top: 2rem; }
.course-hero h1 { font-size: clamp(2.65rem, 7vw, 6rem); }
.course-hero h1 em { color: #f3d6c8; }
.course-hero .actions .button { background: var(--paper); color: var(--wine); }
.course-credit { font-size: .85rem; }
.course-program { padding-block: clamp(3rem, 6vw, 5rem); }
.course-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.course-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--paper); }
.course-card .course-label { margin: 0 0 .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.course-card h3 { margin: 0; font: 500 clamp(1.4rem, 3vw, 2rem)/1.2 var(--serif); }
.course-card .button { margin-top: 1.2rem; }
.lesson-list { padding: 0; margin: 1.1rem 0 0; list-style: none; }
.lesson-list a { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.lesson-list a:hover { text-decoration: underline; }
.lesson-list span { flex: none; font-size: .8rem; color: var(--muted); }
@media (max-width: 680px) { .course-modules { grid-template-columns: 1fr; } }

.course-notice { background: #f1e8df; border-left: 3px solid var(--wine); padding: 1rem; }
.course-nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-block: 1.5rem 2rem; }
.course-nav a { color: var(--wine); text-underline-offset: .2em; }
.course-module { margin-top: 1rem; scroll-margin-top: 1rem; }
.course-module h3 { margin-bottom: .7rem; }
.course-lesson summary { grid-template-columns: minmax(0, 1fr) 1rem; }
.lesson-content { max-width: 76ch; padding-bottom: 1.25rem; }
.lesson-content p { margin: .75rem 0; }
.lesson-content h4 { margin: 1.35rem 0 .5rem; color: var(--wine); }
.course-table { overflow-x: auto; background: #f1e8df; border: 1px solid var(--line); padding: .8rem; margin-block: 1rem; }
.course-table pre { margin: 0; font-size: .78rem; }

.practice { padding-block: 1.4rem; border-bottom: 1px solid #cbbab2; }
.practice h3 { margin: 0; font: 500 clamp(1.35rem, 2.5vw, 1.85rem)/1.25 var(--serif); color: var(--wine); }
.practice p { margin-top: .5rem; max-width: 56ch; }

.tool-title { font-size: clamp(2.5rem, 6vw, 5rem); }
.tool-panel { max-width: 48rem; margin-top: 1.5rem; }
.tool-form { display: grid; gap: 1rem; }
.tool-form label { display: grid; gap: .25rem; font-weight: 600; }
.tool-form input:not([type="checkbox"]), .tool-form select {
  width: 100%; min-height: 44px; padding: .55rem .7rem;
  color: var(--ink); background: white; border: 1px solid #8b767d; font: inherit;
}
.tool-form :focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.tool-form .button { justify-self: start; border: 0; cursor: pointer; }
.tool-form .tool-consent { display: flex; align-items: baseline; font-weight: 400; }
.tool-form p { margin: 0; }
#lead-section form { margin-top: 1rem; }
#tool-result .button { margin-top: 1rem; }
#tool-result dt { font-weight: 700; }
#tool-result dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.privacy-copy h2 { font-size: 1.7rem; margin-top: 1rem; }

.tax-hero .photo-whale { object-position: center 65%; }
.tax-hero .photo-infinity { object-position: center 28%; }
@media (max-width: 600px) {
  .tax-hero .photo-whale { object-position: 62% center; }
}
.tax-hero .photo-plaza { object-position: center 20%; }

.tax-hero .photo-twins { object-position: center 25%; }
.tax-hero .photo-b32 { object-position: center 30%; }
.bio-page {
  min-height: 100vh;
  background: #261b22;
  position: relative;
  isolation: isolate;
  color: var(--paper);
}
.bio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#23161c75, #23161cbf), url("baleia-faria-lima.jpg") 62% center / cover no-repeat;
}
.bio-page .bio { max-width: 38rem; }
.bio-page .bio-links a {
  background: #fbf7f1ee;
  color: var(--ink);
  border-color: #ffffff70;
}
.bio-page .bio-links a:hover,
.bio-page .bio-links li:first-child a {
  background: var(--wine);
  color: var(--paper);
}
.bio-credit { margin-top: 2rem; font-size: .7rem; }
