.section { padding: 88px 0; }
.hero .lead { max-width: 665px; }
.hero-small { max-width: 600px; }
.hero-note { max-width: 205px; }

.audit-grid { align-items: center; }
.audit-card { padding: 36px; }
.audit-card h3 { margin: 24px 0 20px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.audit-card ul { margin: 0; padding-left: 1.35rem; }
.audit-card li { padding-left: .25rem; margin: 12px 0; }
.audit-card li::marker { color: var(--wine); }

.case-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.case-card { min-width: 0; border: 1px solid var(--ink); background: var(--cream); box-shadow: 7px 7px 0 var(--pale); }
.case-card:nth-child(2) { background: #e7f0fb; box-shadow: 7px 7px 0 var(--wine); }
.case-card:nth-child(3) { background: #f5ead9; }
.case-card summary { display: flex; flex-direction: column; min-height: 260px; padding: 27px; cursor: pointer; list-style: none; }
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary:focus-visible, .faq-list summary:focus-visible { outline: 3px solid var(--wine); outline-offset: -4px; }
.case-no { font: 500 .76rem 'DM Mono',monospace; color: var(--wine); letter-spacing: .04em; }
.case-card summary strong { display: block; max-width: 330px; margin: 33px 0 15px; font: 600 clamp(1.45rem, 2.1vw, 2rem)/1.18 Unbounded,sans-serif; letter-spacing: -.055em; }
.case-short { display: block; line-height: 1.4; }
.case-toggle { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 24px; font-size: .85rem; font-weight: 800; color: var(--wine); }
.case-toggle span { display: inline-block; transition: transform .2s ease; }
.case-card[open] .case-toggle span { transform: rotate(45deg); }
.case-body { border-top: 1px solid var(--ink); padding: 25px 27px 28px; }
.case-body p { margin: 0 0 16px; font-size: .94rem; }
.case-body b { color: var(--wine); }
.case-body .mono { display: block; margin-top: 22px; color: var(--muted); }

.about-collage { height: 490px; max-width: 400px; }
.about-copy > p { font-size: 1.05rem; }
.about-copy > p:last-child { margin-bottom: 0; }

.tariff-open { width: 100%; cursor: pointer; }
.tariff-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: min(92vh, 920px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 18px 20px 0 rgba(149,187,234,.8);
}
.tariff-dialog::backdrop { background: rgba(50,27,26,.72); backdrop-filter: blur(3px); }
body.dialog-open { overflow: hidden; }
.tariff-dialog[open]:not(.is-closing) { animation: tariff-dialog-enter 240ms var(--ease-out) both; }
.tariff-dialog[open]:not(.is-closing)::backdrop { animation: tariff-backdrop-enter 240ms var(--ease-out) both; }
.tariff-dialog.is-closing { animation: tariff-dialog-exit 180ms var(--ease-out) both; }
.tariff-dialog.is-closing::backdrop { animation: tariff-backdrop-exit 180ms var(--ease-out) both; }
@keyframes tariff-dialog-enter {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes tariff-dialog-exit {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(.96) translateY(10px); }
}
@keyframes tariff-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes tariff-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
.tariff-modal { padding: clamp(22px, 4vw, 45px); }
.tariff-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.tariff-modal-head > div { min-width: 0; }
.tariff-modal-head h2 { margin: 14px 0 32px; font-size: clamp(2rem, 4vw, 4rem); }
.tariff-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.tariff-close:hover { background: var(--wine); color: var(--cream); }
.tariff-table-wrap { overflow-x: auto; border: 1px solid var(--ink); }
.tariff-table { width: 100%; min-width: 1000px; border-collapse: collapse; table-layout: fixed; }
.tariff-table th, .tariff-table td { padding: 19px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); vertical-align: top; text-align: left; font-size: .88rem; line-height: 1.5; }
.tariff-table tr > :last-child { border-right: 0; }
.tariff-table tbody tr:last-child > * { border-bottom: 0; }
.tariff-table thead th { background: var(--blue); font: 600 .72rem 'DM Mono',monospace; text-transform: uppercase; letter-spacing: .035em; }
.tariff-table thead th:first-child { width: 13%; }
.tariff-table thead th:nth-child(2) { width: 24%; }
.tariff-table thead th:nth-child(3) { width: 21%; }
.tariff-table thead th:nth-child(4) { width: 20%; }
.tariff-table thead th:nth-child(5) { width: 22%; }
.tariff-table tbody th { background: var(--wine); color: var(--cream); font: 600 1.05rem Unbounded,sans-serif; }
.tariff-table tbody tr:nth-child(2) td { background: var(--pale); }
.tariff-table td strong { display: block; margin-bottom: 10px; color: var(--wine); font: 600 1.02rem/1.45 Unbounded,sans-serif; letter-spacing: -.04em; }
.tariff-table td small { display: block; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.tariff-modal-actions { display: flex; justify-content: flex-end; padding-top: 26px; }
.tariff-modal-actions .button { min-width: min(100%, 330px); }

.discount-dialog {
  width: min(590px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 15px 17px 0 var(--blue);
}
.discount-dialog::backdrop { background: rgba(50,27,26,.72); backdrop-filter: blur(3px); }
.discount-dialog[open]:not(.is-closing) { animation: tariff-dialog-enter 240ms var(--ease-out) both; }
.discount-dialog[open]:not(.is-closing)::backdrop { animation: tariff-backdrop-enter 240ms var(--ease-out) both; }
.discount-dialog.is-closing { animation: tariff-dialog-exit 180ms var(--ease-out) both; }
.discount-dialog.is-closing::backdrop { animation: tariff-backdrop-exit 180ms var(--ease-out) both; }
.discount-modal { position: relative; isolation: isolate; overflow: hidden; padding: clamp(30px, 6vw, 52px); }
.discount-modal::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -100px;
  bottom: -120px;
  border: 1px solid rgba(147,5,0,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(149,187,234,.16), 0 0 0 68px rgba(149,187,234,.1);
}
.discount-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.discount-close:hover { background: var(--wine); color: var(--cream); }
.discount-dialog .eyebrow { padding-right: 58px; }
.discount-badge {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 30px 0 22px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  font: 600 1.45rem Unbounded,sans-serif;
  transform: rotate(-8deg);
}
.discount-dialog h2 { max-width: 500px; margin: 0 0 20px; font-size: clamp(2rem, 5.2vw, 3.5rem); }
.discount-dialog h2 em { color: var(--wine); font-style: normal; }
.discount-dialog p { max-width: 490px; color: var(--muted); }
.discount-dialog .button { width: 100%; margin-top: 10px; }
.discount-dialog small { display: block; margin-top: 14px; color: var(--muted); font-size: .75rem; }

.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 105px); }
.faq h2 { margin: 20px 0; }
.faq-grid > div:first-child > p { max-width: 370px; font-size: 1.08rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list summary { position: relative; cursor: pointer; list-style: none; padding: 24px 46px 24px 0; font: 600 clamp(1rem, 1.6vw, 1.23rem)/1.4 Manrope,sans-serif; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 400 1.8rem/1 Manrope,sans-serif; color: var(--wine); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { max-width: 660px; margin: 0; padding: 0 40px 25px 0; color: var(--muted); }

.contact-links { display: grid; gap: 12px; }
.contact-links a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255,248,231,.4); }
.contact-links a:first-child { border-top: 1px solid rgba(255,248,231,.4); }
.contact-links a span { font: 500 .72rem 'DM Mono',monospace; text-transform: uppercase; }
.contact-links a strong { font: 600 clamp(1.05rem, 2vw, 1.35rem) Unbounded,sans-serif; letter-spacing: -.045em; }
.contact-format { margin-top: 24px; }

/* Short motion accents guide the eye without moving readable content continuously. */
.button:active { transform: scale(.97); }
.button > span:last-child { transition: transform 160ms var(--ease-out); }
.js-motion .reveal.stagger-group { opacity: 1; transform: none; transition: none; }
.js-motion .stagger-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(var(--item-index, 0) * 50ms);
}
.js-motion .stagger-group.is-visible > .stagger-item { opacity: 1; transform: translateY(0); }
.js-motion .about-photo .about-paper,
.js-motion .about-photo .about-label,
.js-motion .about-photo .about-sticker {
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.js-motion .about-photo:not(.is-visible) .about-paper { opacity: 0; transform: translateY(-14px) rotate(11deg); }
.js-motion .about-photo:not(.is-visible) .about-label { opacity: 0; transform: translateY(14px) rotate(-2deg); }
.js-motion .about-photo:not(.is-visible) .about-sticker { opacity: 0; transform: translateY(16px) rotate(18deg); }
.js-motion .about-photo.is-visible .about-paper { transition-delay: 120ms; }
.js-motion .about-photo.is-visible .about-label { transition-delay: 190ms; }
.js-motion .about-photo.is-visible .about-sticker { transition-delay: 260ms; }

@media (hover: hover) and (pointer: fine) {
  .button:hover > span:last-child { transform: translateX(4px); }
  .contact-links a { transition: transform 160ms var(--ease-out); }
  .contact-links a:hover { transform: translateX(5px); }
}

@media (max-width: 900px) {
  .case-cards { grid-template-columns: 1fr; gap: 12px; }
  .case-card summary { min-height: 0; }
  .case-card summary strong { max-width: none; margin: 15px 0 10px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .about-collage { height: 400px; }
  .audit-card { padding: 27px; }
  .hero-note { max-width: 240px; }
  .tariff-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); box-shadow: 7px 8px 0 var(--blue); }
  .tariff-modal { padding: 20px 16px 24px; }
  .tariff-modal-head { position: relative; display: block; }
  .tariff-modal-head h2 { margin-bottom: 23px; padding-right: 42px; }
  .tariff-close { position: absolute; top: 0; right: 0; width: 42px; height: 42px; }
  .tariff-table-wrap { overflow: visible; border: 0; }
  .tariff-table, .tariff-table tbody, .tariff-table tr, .tariff-table th, .tariff-table td { display: block; min-width: 0; width: 100%; }
  .tariff-table thead { display: none; }
  .tariff-table tbody { display: grid; gap: 14px; }
  .tariff-table tbody tr { border: 1px solid var(--ink); }
  .tariff-table th, .tariff-table td { border-right: 0; padding: 16px; }
  .tariff-table tbody th { font-size: 1.2rem; }
  .tariff-table td::before { content: attr(data-label); display: block; margin-bottom: 7px; color: var(--wine); font: 500 .67rem 'DM Mono',monospace; text-transform: uppercase; letter-spacing: .035em; }
  .tariff-table tbody tr > td:last-child { border-bottom: 0; }
  .tariff-modal-actions { position: sticky; bottom: -24px; margin: 0 -16px -24px; padding: 14px 16px; border-top: 1px solid var(--ink); background: var(--cream); }
  .tariff-modal-actions .button { width: 100%; }
  .discount-dialog { width: calc(100% - 20px); box-shadow: 7px 8px 0 var(--blue); }
  .discount-modal { padding: 28px 20px 24px; }
  .discount-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .discount-badge { width: 82px; height: 82px; margin: 26px 0 18px; font-size: 1.2rem; }
  .discount-dialog h2 { font-size: clamp(1.8rem, 8vw, 2.45rem); }
}

@media (max-width: 440px) {
  .case-card summary { padding: 22px; }
  .case-body { padding: 22px; }
  .about-collage { height: 390px; }
  .faq-list summary { padding-right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-toggle span { transition: none; }
  .tariff-dialog[open], .tariff-dialog[open]::backdrop,
  .discount-dialog[open], .discount-dialog[open]::backdrop { animation: none; }
  .button > span:last-child,
  .contact-links a,
  .js-motion .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .button:active { transform: none; }
  .js-motion .about-photo :is(.about-paper,.about-label,.about-sticker) { opacity: 1; transition: none; }
  .js-motion .about-photo .about-paper { transform: rotate(7deg); }
  .js-motion .about-photo .about-label { transform: rotate(-5deg); }
  .js-motion .about-photo .about-sticker { transform: rotate(12deg); }
}
