@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/dm-sans-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/dm-sans-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #f7f3ef;
  --white: #fdfaf7;
  --sand: #efe7dc;
  --ink: #49392f;
  --muted: #66584e;
  --clay: #885239;
  --brick: #924532;
  --gold: #c29455;
  --apricot: #f6dfcf;
  --copper: #a66f4f;
  --pale: #d7a889;
  --line: #ded1c6;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body, h1, h2, h3, p, figure, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, textarea { font: inherit; }
[hidden] { display: none !important; }
::selection { background: #ead1c0; color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 5px; }
[tabindex="-1"]:focus-visible { outline-offset: -3px; }
section[tabindex="-1"]:focus-visible { outline: none; }
section[tabindex="-1"]:focus-visible h2 { outline: 2px solid var(--clay); outline-offset: 6px; border-radius: .15rem; }
#contato:focus-visible h2 { outline-color: #e7b899; }

.wrap { width: min(100% - 3.5rem, 75rem); margin-inline: auto; }
section[id] { scroll-margin-top: 1.5rem; }
.skip-link { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; transform: translateY(-160%); background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); }
.site-info { background: var(--ink); color: var(--paper); font-size: .875rem; }
.site-info-row { min-height: 2.35rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; padding-block: .35rem; }
.site-location { font-weight: 600; }
.info-divider { padding-inline: .32rem; }
.site-clock { color: #f0d9cb; }
.site-clock time { margin-left: .35rem; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-row { min-height: 5.65rem; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap; text-decoration: none; }
.brand img { width: 3rem; height: 3.7rem; object-fit: contain; }
.brand span { border-left: 1px solid var(--line); padding-left: .9rem; font-size: .875rem; line-height: 1.25; color: var(--muted); }
.navigation { display: flex; align-items: center; gap: clamp(.95rem, 2.2vw, 2.1rem); }
.navigation a { font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.navigation a:not(.button) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .35em; transition: color .18s ease, text-decoration-color .18s ease; }
.navigation a:not(.button):is(:hover, :focus-visible) { color: var(--clay); text-decoration-color: currentColor; }
.footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-button { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .72rem 1.45rem;
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--white); background: var(--brick); }
.button-primary:hover { background: #763526; box-shadow: 0 7px 18px #49392f24; }
.button-outline { color: var(--ink); background: transparent; border-color: #bca799; }
.button-outline:hover { background: #eee1d5; border-color: var(--copper); }
.navigation .button { min-height: 2.65rem; padding-inline: 1.35rem; }

.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; padding-block: 2.5rem 3.3rem; }
.hero-copy { padding-block: .8rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--clay); font-size: .875rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow::before { content: ""; background: currentColor; width: 1.45rem; height: 1px; flex: 0 0 1.45rem; }
h1, h2, h3 { font-weight: 400; font-family: var(--serif); }
h1 { margin-block: 1rem 1.15rem; font-size: clamp(4.1rem, 6.5vw, 6.3rem); letter-spacing: -.03em; line-height: .88; }
h1 em { display: block; color: var(--brick); font-weight: inherit; }
h2 { font-size: clamp(3.2rem, 5.2vw, 5rem); letter-spacing: -.027em; line-height: .96; }
h3 { font-size: 2.05rem; letter-spacing: -.012em; line-height: 1.02; }
.hero-intro { max-width: 27rem; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.22rem); line-height: 1.62; }
.hero-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; overflow: hidden; border-radius: 2.1rem 2.1rem 5.25rem 2.1rem; background: #baa288; }
.hero-art::after { content: ""; position: absolute; pointer-events: none; inset: .65rem; border: 1px solid #fff5e68c; border-radius: 1.5rem 1.5rem 4.65rem 1.5rem; }
.hero-image { width: 100%; height: clamp(25rem, 39vw, 34rem); object-fit: cover; object-position: center 50%; }

.services { background: #eee5db; border-block: 1px solid #e5d8c8; padding-block: 4.75rem 5.25rem; }
.section-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-intro h2, .about h2, .process h2, .contact-panel h2 { margin-top: .72rem; }
.section-intro > p { color: var(--muted); max-width: 26rem; padding-bottom: .2rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid #e6d9cc; border-top: 2px solid #c18d72; border-radius: 1.3rem; background: var(--white); transition: border-color .22s ease, box-shadow .22s ease; }
.service-card:hover, .service-card:focus-within { border-color: #c6a48e; box-shadow: 0 8px 22px #49392f0a; }
.service-card p { color: var(--muted); }
.service-card-wide { grid-column: 1 / -1; scroll-margin-top: 1.5rem; }
.service-copy { display: grid; gap: .55rem; }
.service-example { width: 100%; border-top: 1px solid var(--line); padding-top: .7rem; font-size: .9375rem; }
.service-example strong { margin-right: .4em; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; font-size: .9375rem; font-weight: 700; color: var(--clay); text-decoration-color: #a67155; text-underline-offset: .24em; }
.text-link:hover { text-decoration-color: currentColor; }
.service-icon { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: #f0e1d4; color: var(--clay); border-radius: .7rem .7rem 1.25rem .7rem; }
.service-icon i { display: block; position: relative; width: 1.15rem; height: 1.15rem; border: 1.4px solid currentColor; }
.icon-consultoria i { border-radius: 45% 45% 45% 13%; height: .9rem; }
.icon-consultoria i::after, .icon-assessoria i::after { content: ""; position: absolute; width: .48rem; left: .23rem; top: .34rem; border-top: 1px solid; }
.icon-planejamento i { border-radius: 50%; }
.icon-planejamento i::after { content: ""; position: absolute; width: .4rem; height: .4rem; border-left: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); left: .35rem; top: .24rem; }
.icon-assessoria i { width: .86rem; border-radius: .15rem; }
.icon-assessoria i::after { width: .37rem; left: .15rem; box-shadow: 0 .18rem; }
.icon-beneficios i { border-radius: .45rem .45rem .6rem .6rem; width: 1rem; }
.icon-beneficios i::after { content: ""; position: absolute; width: .45rem; height: .26rem; border-left: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); left: .18rem; top: .29rem; }
.icon-calculos i { width: .92rem; border-radius: .16rem; }
.icon-calculos i::before { content: ""; position: absolute; inset: .23rem .15rem auto; border-top: 1px solid; }
.icon-calculos i::after { content: ""; position: absolute; width: 2px; height: 2px; left: .17rem; top: .47rem; background: currentColor; box-shadow: .28rem 0, 0 .22rem, .28rem .22rem; }

@media (min-width: 48rem) {
  .service-card-wide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 1.25rem; }
  .service-card-wide .service-icon { grid-row: 1 / span 2; }
  .service-card-wide .service-copy, .service-card-wide .service-example { grid-column: 2; }
  .service-card-wide .text-link { grid-area: 1 / 3 / span 2; align-self: center; margin-top: 0; }
}

.about { padding-block: 6rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.about-art { grid-column: 1; grid-row: 1; }
.about-art img { width: 100%; height: clamp(20rem, 32vw, 28rem); object-fit: cover; border-radius: 1.6rem 1.6rem 6rem 1.6rem; background: #c3a68d; }
.about-art figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.about-art figcaption a { text-underline-offset: .2em; }
.about-art figcaption a:hover { color: var(--clay); }
.about-copy { grid-column: 2; }
.about-copy strong { color: var(--ink); }
.about-copy p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.about-copy .button { margin-top: 1.45rem; }

.process { padding-block: 4.8rem; background: #eee9e0; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.steps { display: grid; list-style: none; padding: 0; }
.steps li { padding: 1.1rem 0 1.25rem 1.65rem; border-top: 1px solid #d9cbbd; position: relative; }
.steps li::before { content: ""; position: absolute; top: 1.65rem; left: 0; width: .52rem; height: .52rem; border: 1px solid var(--clay); border-radius: 50%; }
.steps li:last-child { border-bottom: 1px solid #d9cbbd; }
.steps h3 { font-size: 1.9rem; }
.steps p { margin-top: .4rem; color: var(--muted); }

.pricing { padding-block: 4.75rem; }
.price-surface { overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--white); }
.price-surface table { width: 100%; border-collapse: collapse; }
.price-surface th, .price-surface td { padding: .95rem clamp(1rem, 3.5vw, 2.25rem); text-align: left; }
.price-surface thead { background: var(--sand); }
.price-surface tbody th { font-weight: 600; }
.price-surface tbody tr { border-top: 1px solid var(--line); }
.price-surface tr > :last-child { width: 30%; }

.editorial { background: #eee9e0; padding-block: 4.75rem; }
.editorial-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.65rem 1.4rem; }
.editorial-tabs a { min-height: 2.75rem; display: inline-flex; align-items: center; padding: .45rem 1rem; border: 1px solid #bca799; border-radius: 999px; text-decoration: none; font-weight: 700; transition: background-color .18s ease, color .18s ease; }
.editorial-tabs a:hover { background: #eadbcd; }
.editorial-tabs [aria-selected="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
section.editorial-panel[id] { scroll-margin-top: 7rem; }
.editorial-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; align-items: start; }
.editorial-item { min-width: 0; display: grid; gap: .7rem; background: var(--white); border: 1px solid var(--line); border-radius: 1.18rem; padding: 1.35rem; scroll-margin-top: 1.5rem; }
.editorial-item h3 { font-size: clamp(1.9rem, 3vw, 2.25rem); }
.editorial-item p, .news-intro { color: var(--muted); }
.editorial-item summary, .editorial-item a { color: var(--clay); font-weight: 700; }
.editorial-item summary { cursor: pointer; }
.editorial-item a { text-underline-offset: .22em; }
.editorial-item .news-date { color: var(--clay); font-size: .875rem; font-weight: 700; }
.article-body { display: grid; gap: .65rem; margin-top: .75rem; }
.news-intro { margin-bottom: 1rem; }
.news-more { margin-top: 1.25rem; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 6vw, 5rem); padding-block: 4.5rem 2rem; }
.faq h2 { margin-top: .72rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .85rem .25rem; list-style: none; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 .65rem; height: .65rem; margin-right: .35rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.13rem) rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: translateY(.13rem) rotate(225deg); }
.faq summary:hover { color: var(--clay); }
.faq details p { padding: 0 1.5rem 1rem .25rem; color: var(--muted); }

.contact-wrap { padding-block: 3.5rem 5.5rem; }
.contact-panel { background: var(--ink); color: var(--paper); border-radius: 1.8rem; padding: clamp(2rem, 5.5vw, 5rem); display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-panel .eyebrow { color: #e5b99d; }
.contact-copy > p:not(.eyebrow) { margin-top: 1rem; color: #f2e4d8; max-width: 25rem; }
.contact-actions { display: grid; align-content: start; gap: .65rem; }
.contact-actions label { font-weight: 600; }
select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #d9c1af; border-radius: .7rem; padding: .73rem .9rem; color: var(--ink); background: var(--white); }
select { appearance: none; padding-right: 2.65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%2349392F' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1rem; background-position: right .9rem center; }
.contact-panel :focus-visible, .footer :focus-visible { outline-color: #e7b899; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.contact-buttons:empty { display: none; }
.button-contact { background: #efd5c1; color: #443127; }
.button-contact:hover { background: #f8e4d4; box-shadow: 0 6px 14px #261d1654; }
.contact-placeholder { color: #f2e4d8; padding-top: 1rem; margin-top: 1.3rem; border-top: 1px solid #8f7565; max-width: 26rem; font-size: .9375rem; }
.contact-placeholder dl { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-block: .65rem 0; }
.contact-placeholder dt { font-weight: 700; }
.contact-placeholder dd { margin: 0; overflow-wrap: anywhere; }
.contact-status { width: 100%; color: #ead7c9; font-size: .875rem; line-height: 1.45; }
.message-preview { display: grid; justify-items: start; gap: .6rem; margin-top: .2rem; }
.contact-status:empty { margin: 0; }
textarea { resize: vertical; }

.footer { background: #3b2c24; color: var(--paper); }
.footer-main { padding-block: 2.15rem; display: flex; align-items: center; gap: 2rem; }
.footer-brand img { width: 4.6rem; height: 6.2rem; object-fit: contain; }
.footer-main p { font: 2rem/1 var(--serif); }
.footer-main nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }
.footer a { text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-block: .95rem 1.25rem; border-top: 1px solid #725b4f; color: #ead7c9; font-size: .875rem; }
.footer-base small { font-size: inherit; }

.bachan-stage {
  --sprite-size: 3rem;
  flex: 0 0 auto; width: calc(var(--sprite-size) + .45rem); height: calc(var(--sprite-size) + .45rem);
  display: grid; place-items: center; position: relative; isolation: isolate;
  background: var(--apricot); color: var(--brick);
  clip-path: polygon(.35rem 0, calc(100% - .35rem) 0, calc(100% - .35rem) .35rem, 100% .35rem, 100% calc(100% - .35rem), calc(100% - .35rem) calc(100% - .35rem), calc(100% - .35rem) 100%, .35rem 100%, .35rem calc(100% - .35rem), 0 calc(100% - .35rem), 0 .35rem, .35rem .35rem);
}
.bachan-stage::before {
  content: ""; position: absolute; z-index: -1; width: 3px; height: 3px; left: .5rem; top: .55rem;
  background: var(--gold); box-shadow: 3px 3px var(--gold), -3px 3px var(--gold), 0 6px var(--gold), 0 3px var(--gold);
}
.bachan-sprite {
  display: block; width: var(--sprite-size); height: var(--sprite-size);
  background: url("assets/bachan-pixel.png") center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.bachan-invite {
  --invite-border: #d3aa94;
  display: inline-flex; gap: .85rem; align-items: center; margin-top: 1.2rem; max-width: 100%;
  padding: .45rem 1.15rem .45rem .45rem; background: #f9eadf; color: var(--ink);
  border: 1px solid var(--invite-border); border-radius: .9rem 1.5rem 1.5rem .9rem; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bachan-invite:hover { background: #f6e2d3; border-color: var(--brick); box-shadow: 0 5px 16px #8a4b271c; }
.bachan-invite .bachan-stage { --sprite-size: 4.1rem; }
.bachan-invite-copy { display: grid; gap: .05rem; line-height: 1.25; }
.bachan-invite-copy > span { color: var(--muted); font-size: .9rem; }
.bachan-invite-copy strong { font-weight: 700; color: var(--brick); }
.bachan-launch {
  position: fixed; z-index: 4; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; padding: 0;
  border: 1px solid var(--copper); border-radius: 50%; background: var(--apricot);
  cursor: pointer; box-shadow: 0 4px 18px #35231833;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.bachan-launch[data-invite-visible]:not(:focus) { visibility: hidden; }
.bachan-launch:hover { background: #f9eadf; border-color: var(--brick); transform: translateY(-3px); }
.bachan-launch .bachan-stage { --sprite-size: 3.25rem; background: transparent; clip-path: none; }
.bachan-dialog {
  position: fixed; inset: auto max(1.1rem, env(safe-area-inset-right)) max(1.1rem, env(safe-area-inset-bottom)) auto;
  margin: 0; width: min(27rem, calc(100% - 2.2rem)); max-width: none;
  max-height: calc(100dvh - 2.2rem - env(safe-area-inset-bottom));
  border: 1px solid var(--line); padding: 0; border-radius: 1.4rem; background: var(--white); color: var(--ink);
  box-shadow: 0 14px 55px #261a164d; overflow: hidden;
}
.bachan-dialog[open] { display: flex; flex-direction: column; }
.bachan-dialog::backdrop { background: #39291f38; }
.bachan-header { display: flex; gap: .85rem; align-items: center; padding: .7rem 1rem; background: var(--ink); color: var(--white); }
.bachan-header .bachan-stage { --sprite-size: 4.5rem; }
.bachan-header h2 { font-size: 2.3rem; }
.bachan-header p { font-size: .875rem; color: #f2e4d8; }
.bachan-close { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; padding: 0; margin-left: auto; border: 1px solid #927868; border-radius: 50%; background: transparent; color: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.bachan-close:focus-visible { outline-color: #e7b899; }
.bachan-menu { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: .85rem 1rem; }
.bachan-menu ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.bachan-menu :is(button, a) {
  display: flex; align-items: center; width: 100%; min-height: 2.85rem; padding: .55rem .85rem;
  border: 1px solid #cebaab; border-radius: .65rem; background: var(--white); color: var(--ink);
  font-weight: 600; line-height: 1.35; text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.bachan-menu :is(button, a):hover { border-color: var(--clay); background: #f9eee5; }
.bachan-menu :is(button, a):focus-visible { outline-offset: -3px; }
.bachan-actions { flex: none; display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
.bachan-actions button { min-height: 2.75rem; padding: .35rem .85rem; border: 1px solid #ad8b7a; border-radius: .55rem; background: var(--white); color: var(--ink); font-weight: 700; cursor: pointer; }
.bachan-actions button:hover { background: #f9eee5; }
.bachan-actions a { display: grid; align-items: center; min-height: 2.75rem; margin-left: auto; color: var(--brick); font-weight: 700; text-underline-offset: .2em; }
.bachan-topic-view { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem; }
.bachan-topic-summary { margin-bottom: 1rem; padding: .8rem .9rem; border-left: 2px solid var(--gold); border-radius: .55rem; background: var(--sand); }
.bachan-topic-summary:focus { outline-offset: -3px; }
.bachan-topic-actions { display: grid; gap: .65rem; }

@media (max-width: 52rem) {
  .header-row { min-height: 5.2rem; }
  .menu-button { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; background: transparent; border: 1px solid #bca799; border-radius: 999px; color: var(--ink); font-weight: 700; }
  .menu-button span { display: block; width: .63rem; height: .63rem; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg) translateY(-.13rem); }
  .menu-button[aria-expanded="true"] span { transform: rotate(225deg) translate(-.1rem, -.1rem); }
  .navigation { display: none; position: absolute; inset: calc(100% + .35rem) 0 auto; z-index: 3; background: var(--white); padding: .85rem; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 22px #49392f19; }
  .menu-button[aria-expanded="true"] + .navigation { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; }
  .navigation a:not(.button) { padding: .55rem .7rem; }
}

@media (max-width: 47rem) {
  .wrap { width: min(100% - 2rem, 75rem); }
  .brand img { width: 2.65rem; height: 3.35rem; }
  .hero, .section-intro, .about, .process-grid, .faq, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-block: 1.45rem 2.75rem; gap: 1.6rem; }
  .hero-copy { padding-block: .9rem 0; }
  .hero-art { border-radius: 1.5rem 1.5rem 3.5rem 1.5rem; }
  .hero-art::after { inset: .45rem; border-radius: 1.1rem 1.1rem 3.1rem 1.1rem; }
  .hero-image { height: clamp(13rem, 62vw, 23rem); }
  h1 { font-size: clamp(3.55rem, 11.4vw, 6rem); }
  .services, .about, .process, .pricing, .editorial, .faq, .contact-wrap { padding-block: 3.5rem; }
  .section-intro { gap: .8rem; }
  .about { gap: 1.55rem; }
  .about-copy, .about-art { grid-column: auto; grid-row: auto; }
  .about-art img { height: clamp(16rem, 71vw, 24rem); }
  .faq { padding-bottom: 1.5rem; }
  .contact-wrap { padding-top: 1.75rem; }
  .footer-main { gap: 1rem 1.5rem; flex-wrap: wrap; }
  .footer-main nav { margin-left: 0; width: 100%; gap: .65rem 1.1rem; }
  .editorial-list { grid-template-columns: 1fr; }
}

@media (max-width: 32rem) {
  .service-grid { grid-template-columns: 1fr; }
  .hero-actions .button { padding-inline: 1rem; flex: 0 1 auto; }
  .contact-panel { padding-inline: 1.35rem; }
  .message-preview textarea { min-height: 7.5rem; }
  .site-info-row { padding-block: .35rem; }
  .site-clock time { margin-left: .15rem; }
  .bachan-launch { right: max(.7rem, env(safe-area-inset-right)); bottom: max(.7rem, env(safe-area-inset-bottom)); width: 3.625rem; height: 3.625rem; }
  .bachan-launch .bachan-stage { --sprite-size: 2.8rem; }
  .bachan-invite .bachan-stage { --sprite-size: 3.55rem; }
  .bachan-header .bachan-stage { --sprite-size: 3.7rem; }
  .bachan-dialog { inset: auto .55rem max(.55rem, env(safe-area-inset-bottom)) .55rem; width: auto; max-height: calc(100dvh - 1.1rem - env(safe-area-inset-bottom)); }
  .footer-base { padding-bottom: 4.7rem; }
}

@media (max-width: 23rem) {
  h1 { font-size: clamp(2.85rem, 14.5vw, 3.55rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: settle-in .65s cubic-bezier(.2, .65, .35, 1) both; }
  .reveal { animation: reveal-in .34s ease-out both; }
  .bachan-stage[data-motion="wave"] .bachan-sprite {
    background-image: url("assets/bachan-wave.png");
    background-size: 700% 100%;
    animation: bachan-wave .9s steps(6, end) both;
  }
}

@keyframes bachan-wave {
  from { background-position-x: 0%; }
  to { background-position-x: 100%; }
}

@keyframes settle-in {
  from { transform: scale(1.025); opacity: .87; }
  to { transform: none; opacity: 1; }
}

@keyframes reveal-in {
  from { transform: translateY(7px); opacity: .75; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .bachan-launch:hover { transform: none; }
}
