/* Kairalla — composição editorial sobre a identidade existente. */
:root {
  --ink: #20384b;
  --muted: #53616a;
  --paper: #f2f3f1;
  --white: #fafaf8;
  --line: #cbd1d3;
  --gutter: max(clamp(1.25rem, 5vw, 5rem), calc((100vw - 1320px) / 2));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .3em; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 6.1vw, 5.7rem); line-height: 1.04; }
h2 { font-size: clamp(2.35rem, 4.2vw, 4.2rem); line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.8rem; line-height: 1.18; }
p { font-size: 1rem; line-height: 1.75; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.skip-link { position: fixed; left: var(--gutter); top: -5rem; z-index: 150; padding: 1rem; color: var(--white); background: var(--ink); }
.skip-link:focus { top: .5rem; }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.65rem var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: block; flex: 0 0 auto; }
.brand-logo { width: 15.4rem; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a:last-child { border-bottom: 1px solid var(--ink); }
.site-main { display: block; }
.panel { padding: 6.5rem var(--gutter); }
.eyebrow, .role, .detail-label, .insight-date, figcaption { font-family: Inter, sans-serif; font-size: .7rem; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.5rem; }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 5rem; }
.section-intro, .lead { max-width: 39rem; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: 3rem; padding-top: 4rem; padding-bottom: 0; }
.hero .eyebrow { font-size: .68rem; letter-spacing: .11em; }
.hero h1 { max-width: 16ch; }
.hero-aside { padding-bottom: .35rem; }
.hero-aside .lead { max-width: 27rem; }
.hero-actions { display: flex; flex-wrap: wrap; margin-top: 1.8rem; gap: 1rem; }
.text-link, .button, .map-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; padding: .7rem 0; font-size: .875rem; font-weight: 500; text-decoration: none; border: 0; border-bottom: 1px solid currentColor; }
.text-link:hover, .button:hover, .map-link:hover { text-decoration: underline; }
.text-link span, .button span { font-size: 1.3rem; }
.hero-media { grid-column: 1 / -1; margin-top: .5rem; }
.hero-image { height: clamp(20rem, 34vw, 31rem); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .8rem; color: var(--muted); font-size: .64rem; }
.photo-caption { margin-top: .8rem; font-size: .7rem; color: var(--muted); }
.identity { padding-top: 6rem; }
.identity .section-heading { align-items: start; }
.identity h2 { max-width: 17ch; }
.office-story { padding-top: 2.55rem; }
.office-evolution { margin-top: 1.3rem; color: var(--muted); }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 4rem; }
.value-card { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.value-card > span { display: block; margin-bottom: 1.5rem; font-size: .72rem; font-weight: 500; color: var(--muted); }
.value-card h3 { margin-bottom: .9rem; }
.value-card p { color: var(--muted); font-size: .94rem; }
.practice { background: var(--ink); color: var(--white); }
.practice .section-intro { color: #d1d9de; }
.practice-grid { display: grid; margin-top: 3.5rem; }
.practice-card { display: grid; grid-template-columns: 2.5rem .9fr 1.15fr .9fr; align-items: start; gap: 2rem; padding: 2.3rem 0; border-top: 1px solid #607381; }
.practice-card:last-child { border-bottom: 1px solid #607381; }
.practice-index { padding-top: .35rem; color: #c4cfd6; font-size: .72rem; }
.practice-card h3 { font-size: clamp(1.65rem, 2.2vw, 2.25rem); }
.practice-card p, .practice-services { color: #d1d9de; font-size: .91rem; line-height: 1.8; }
.practice-services { margin: 0; padding: 0 0 0 1.25em; }
.practice-services li + li { margin-top: .25rem; }
/* Recorte angular do monograma original; espelhado para apontar à direita.
   O marcador nativo permanece na lista, transparente, para preservar sua semântica. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .practice-services li { position: relative; }
  .practice-services li::marker { color: transparent; }
  .practice-services li::before {
    content: "";
    position: absolute;
    left: -1.25em;
    top: .48em;
    width: .64em;
    height: .84em;
    background: currentColor;
    pointer-events: none;
    --k-marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='27.99933 0 72.00067 93.61707'%3E%3Cpath d='M72.34026 0.00000 L93.61723 0.00000 C97.87214 0.00000 100.00000 4.25540 95.74444 8.51047 L59.57440 44.68035 C59.00258 45.24114 58.68050 46.00789 58.68050 46.80805 C58.68050 47.60918 59.00258 48.37593 59.57440 48.93607 L95.74444 85.10596 C100.00000 89.36167 97.87214 93.61707 93.61723 93.61707 L72.34026 93.61707 L29.78744 51.06377 C28.64332 49.94348 27.99933 48.40998 27.99933 46.80805 C27.99933 45.20709 28.64332 43.67359 29.78744 42.55330 L72.34026 0.00000 Z'/%3E%3C/svg%3E");
    -webkit-mask: var(--k-marker) center / contain no-repeat;
    mask: var(--k-marker) center / contain no-repeat;
    transform: scaleX(-1);
    print-color-adjust: exact;
  }
  @media (prefers-reduced-motion: no-preference) {
    .practice-services li::before { transition: transform 240ms ease-out; }
    .practice-card[data-motion-running] .practice-services li::before {
      animation: k-marker-arrive 300ms ease-out both;
      animation-delay: 0ms;
    }
    .practice-card[data-motion-running] .practice-services li:nth-child(2)::before { animation-delay: 40ms; }
    .practice-card[data-motion-running] .practice-services li:nth-child(3)::before { animation-delay: 80ms; }
    .practice-card[data-motion-running] .practice-services li:nth-child(n+4)::before { animation-delay: 120ms; }
    @media (hover: hover) and (pointer: fine) {
      .practice-services li:hover::before { transform: translateX(3px) scaleX(-1); }
    }
  }
}
@keyframes k-marker-arrive {
  0% { opacity: .55; transform: translateX(-2px) scaleX(-1); }
  65% { opacity: 1; transform: translateX(2px) scaleX(-1); }
  100% { opacity: 1; transform: scaleX(-1); }
}
@media (forced-colors: active) {
  .practice-services li::marker { color: CanvasText; }
  .practice-services li::before { display: none; }
}
.studio { padding-block: 7rem; }
.studio-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 6rem; }
.studio-copy { order: 2; }
.studio-copy h2 { max-width: 13ch; }
.studio-copy .lead { margin-top: 1.5rem; }
.studio-copy .text-link { margin-top: 1.5rem; }
.studio-stack { order: 1; }
.studio-photo { overflow: hidden; aspect-ratio: 1.15; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }
.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 1.65rem; margin-top: 3rem; }
.team-card { min-width: 0; }
.team-photo { aspect-ratio: 1; overflow: hidden; background: #e7e9e7; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.team-photo-bruna img { object-position: 50% 10%; }
.team-photo-lucas, .team-photo-guilherme { background: #fff; }
.team-photo-lucas img { object-fit: contain; object-position: center bottom; }
.team-photo-guilherme img { padding-top: 1.6rem; object-fit: cover; object-position: center top; }
.team-copy { padding-top: 1.5rem; }
.team-copy h3 { font-size: 1.65rem; letter-spacing: -.02em; }
.role { display: block; margin-block: .8rem 1.2rem; font-size: .61rem; letter-spacing: .06em; color: var(--muted); }
.team-copy p { font-size: .86rem; line-height: 1.75; color: var(--muted); }
.partner-details { margin-top: 1.15rem; border-top: 1px solid var(--line); }
.partner-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: .8rem; list-style: none; font-size: .77rem; cursor: pointer; }
.partner-details summary::-webkit-details-marker { display: none; }
.partner-details summary:hover { text-decoration: underline; }
.partner-details .detail-mark { font-size: 1.25rem; }
.partner-details[open] .detail-mark { transform: rotate(45deg); }
.partner-details p { margin: .6rem 0 1rem; }
.partner-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: .2rem; font-size: .76rem; overflow-wrap: anywhere; max-width: 100%; }
.team-professionals { padding-top: 1rem; padding-bottom: 6rem; }
.team-professionals .section-heading { border-top: 1px solid var(--line); padding-top: 3.5rem; }
.team-professionals h2 { font-size: 2.65rem; }
.professional-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.65rem; margin-top: 2.6rem; }
.professional-card { min-width: 0; }
.professional-photo { aspect-ratio: 3 / 4; overflow: hidden; background: #e7e9e7; }
.professional-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.professional-photo-karla img { object-position: center 18%; }
.professional-copy { padding-top: 1.15rem; }
.professional-copy h3 { font-size: 1.4rem; letter-spacing: -.015em; }
.professional-copy .role { margin: .6rem 0; }
.professional-bio, .profile-pending { margin-top: .85rem; font-size: .875rem; line-height: 1.75; color: var(--muted); }
.insights .section-heading { align-items: start; }
.insight-grid { margin-top: 3rem; display: grid; }
.insight-card { display: grid; grid-template-columns: .65fr 1.8fr 1.05fr; gap: 3rem; position: relative; padding: 2rem 2.5rem 2rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.insight-card:last-child { border-bottom: 1px solid var(--line); }
.insight-date { padding-top: .3rem; letter-spacing: .05em; font-size: .64rem; color: var(--muted); }
.insight-card h3 { font-size: 1.8rem; }
.insight-card p { font-size: .88rem; color: var(--muted); }
.insight-card::after { content: '↗'; position: absolute; right: 0; top: 2rem; font-size: 1.35rem; }
.insight-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.insights .hero-actions { justify-content: flex-end; margin-top: 1.5rem; }
.contact { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5rem; background: var(--ink); color: var(--white); }
.contact h2 { max-width: 11ch; }
.contact .lead { color: #d1d9de; margin-top: 1.5rem; max-width: 28rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.contact .button { color: var(--white); }
.contact-card { display: grid; align-content: start; gap: 1.8rem; padding-top: .2rem; }
.detail-label { display: block; margin-bottom: .6rem; color: #c4cfd6; }
.contact-card p { font-size: .98rem; }
.map-link { justify-self: start; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.6rem var(--gutter); }
.footer-brand .brand-logo { width: 13rem; }
.footer-copy { text-align: right; }
.footer-copy p, .footer-copy a { font-size: .75rem; line-height: 1.8; color: var(--muted); }
.footer-copy a { display: inline-flex; align-items: center; min-height: 44px; }
section[id] { scroll-margin-top: 2rem; }

@media (min-width: 1600px) { .hero h1 { max-width: 18ch; } }
@media (max-width: 1100px) {
  .site-nav { gap: 1.2rem; }
  .hero { grid-template-columns: 1.5fr 1fr; gap: 2rem; }
  h1 { font-size: clamp(3rem, 6vw, 4.4rem); }
  .section-heading, .contact { gap: 3rem; }
  .practice-card { grid-template-columns: 2rem 1fr 1.3fr; gap: 1.6rem; }
  .practice-card p { grid-column: 3; }
  .practice-services { grid-column: 3; }
  .studio-grid { gap: 3rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .team-photo { aspect-ratio: 1; }
  .team-copy h3 { font-size: 2rem; }
  .team-copy p { font-size: .95rem; }
  .professional-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .insight-card { grid-template-columns: .7fr 2fr; gap: 1rem 2rem; }
  .insight-card p { grid-column: 2; }
}
@media (max-width: 760px) {
  .site-header { display: block; padding-block: 1.5rem .8rem; }
  .brand-logo { width: 14rem; }
  .site-nav { justify-content: space-between; gap: .1rem 1rem; margin-top: 1.1rem; }
  .site-nav a { font-size: .75rem; }
  .panel { padding-block: 4rem; }
  .hero { display: block; padding-top: 2.6rem; padding-bottom: 0; }
  h1 { font-size: clamp(2.75rem, 8.5vw, 4rem); }
  .hero h1 { max-width: 18ch; }
  .hero .eyebrow { font-size: .57rem; margin-bottom: 1.25rem; }
  .hero-aside { margin-top: 1.5rem; }
  .hero-aside .lead { max-width: 34rem; font-size: 1rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-media { margin-top: 2.3rem; }
  .hero-image { height: auto; aspect-ratio: 1.35; }
  .hero-image img { object-position: center; }
  figcaption { font-size: .57rem; }
  h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
  .section-heading, .studio-grid, .contact { grid-template-columns: 1fr; gap: 1.6rem; }
  .section-intro, .lead { font-size: 1rem; }
  .office-story { padding-top: 0; }
  .identity-grid { grid-template-columns: 1fr; margin-top: 2.5rem; gap: 1.6rem; }
  .value-card { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0 1rem; }
  .value-card > span { margin-top: .3rem; }
  .value-card p { grid-column: 2; }
  .value-card h3 { font-size: 1.65rem; }
  .practice-grid { margin-top: 2.5rem; }
  .practice-card { grid-template-columns: 1.5rem 1fr; gap: .9rem 1rem; padding-block: 1.8rem; }
  .practice-card p, .practice-services { grid-column: 2; }
  .practice-card h3 { font-size: 1.8rem; }
  .studio-copy { order: 1; }
  .studio-stack { order: 2; margin-top: .5rem; }
  .studio-copy h2 { max-width: 16ch; }
  .studio-photo { aspect-ratio: 1.3; }
  .team-grid { gap: 2.5rem 1.5rem; margin-top: 2rem; }
  .team-photo { aspect-ratio: 4 / 5; }
  .team-copy h3 { font-size: 1.6rem; }
  .team-copy p { font-size: .88rem; }
  .team-professionals { padding-top: 0; }
  .team-professionals .section-heading { padding-top: 2rem; }
  .team-professionals h2 { font-size: 2.3rem; }
  .professional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.5rem; }
  .professional-copy h3 { font-size: 1.4rem; }
  .insight-card { grid-template-columns: 1fr; gap: .8rem; padding-block: 1.7rem; }
  .insight-card p { grid-column: 1; }
  .insight-card h3 { font-size: 1.65rem; }
  .insights .hero-actions { justify-content: flex-start; }
  .contact { gap: 3rem; }
  .contact-actions { gap: 1.2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .footer-copy { text-align: left; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .team-photo { aspect-ratio: 1; }
  .team-copy h3 { font-size: 1.9rem; }
  .professional-grid { gap: 2rem 1rem; }
  .professional-copy h3 { font-size: 1.25rem; }
  .professional-bio, .profile-pending { font-size: .875rem; }
  .role { font-size: .62rem; }
  .partner-email { font-size: .86rem; }
}
@media (max-width: 360px) {
  .professional-grid { grid-template-columns: 1fr; }
  .professional-photo { aspect-ratio: 1; }
  .professional-copy h3 { font-size: 1.65rem; }
  .professional-bio, .profile-pending { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .practice-services li::before { animation: none !important; transition: none !important; transform: scaleX(-1) !important; }
  .panel { padding: 2rem 0; }
  .practice, .contact, .team { background: white; color: #20384b; }
  .practice p, .practice-services, .contact .lead, .detail-label { color: #20384b; }
  .site-nav, .hero-actions, .contact-actions, .reading-progress { display: none; }
  .partner-details::details-content { content-visibility: visible !important; display: block !important; }
  .partner-details > :not(summary) { display: block !important; }
  .partner-details summary { display: none; }
}
