/* A shared, quieter reading rhythm for Magic's public pages. */
:root {
  --panel: #131416;
  --muted: #b9b9bc;
  --rule: #303135;
  --hero-scrim: linear-gradient(90deg, rgb(8 8 8 / 87%) 0%, rgb(8 8 8 / 66%) 42%, rgb(8 8 8 / 15%) 100%);
  --hero-shade: linear-gradient(180deg, rgb(8 8 8 / 30%), transparent 40%, rgb(8 8 8 / 36%));
}
:root[data-theme="light"] {
  --panel: #f1efeb;
  --muted: #5b5856;
  --rule: #d7d3cf;
  --hero-scrim: linear-gradient(90deg, rgb(251 250 247 / 96%) 0%, rgb(251 250 247 / 78%) 42%, rgb(251 250 247 / 12%) 100%);
  --hero-shade: linear-gradient(180deg, rgb(251 250 247 / 30%), transparent 40%, rgb(251 250 247 / 35%));
}
body { font-size: 16px; line-height: 1.6; }
#magic-main h1 { font-size: clamp(42px, 5.4vw, 72px); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
#magic-main h2, #magic-main .section-title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
#magic-main h1.section-title { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -.045em; }
#magic-main h3, #magic-main .consultation-card-title { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
#magic-main p, #magic-main .consultation-card-description { font-size: 16px; line-height: 1.65; letter-spacing: normal; }
#magic-main .section-kicker, #magic-main .hero-eyebrow, #magic-main .work-category { font-size: 13px; line-height: 1.5; font-weight: 400; letter-spacing: .035em; text-transform: none; }
#magic-main .detail-hero .section-kicker, #magic-main .growth-hero .section-kicker { color: #f05a74; }
:root[data-theme="light"] #magic-main .detail-hero .section-kicker, :root[data-theme="light"] #magic-main .growth-hero .section-kicker { color: #b7002b; }
#magic-main .section-intro { max-width: 43ch; }
#magic-main :is(.service-card-meta, .detail-breadcrumb, .growth-breadcrumb, .insights-breadcrumb, .catalog-results, .catalog-search label, .detail-scope-note, .growth-note, .consultation-confirmation-note, .quiz-result-note, .insights-feature-note, .quiz-progress-item, .quiz-option small) { font-size: 13px; line-height: 1.6; }
#magic-main :is(.service-add, .growth-button, .detail-button, .catalog-filter, .catalog-review-button, .catalog-preview-link, .growth-link, .consultation-card-action, .service-card-explore, .insights-text-link) { font-size: 14px; line-height: 1.5; }
#magic-main :is(.service-add, .growth-button, .detail-button, .catalog-filter, .catalog-review-button, .consultation-catalog-link) { border-radius: 7px; }
.home-section { padding-block: clamp(56px, 6vw, 88px); }
.section-heading-row, .service-catalog-section .catalog-heading { align-items: start; gap: 28px; }
.section-heading-row .section-intro { margin-top: 4px; }
.hero-shell { min-height: min(900px, 100svh); }
.hero.section-container { min-height: clamp(620px, calc(100svh - 144px), 860px); padding-block: 72px; }
.hero-copy { width: min(66%, 780px); }
#magic-main .hero-title { max-width: 13ch; font-size: clamp(52px, 6.1vw, 86px); }
.hero-description { max-width: 44ch; margin-top: 26px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-consultation-actions { align-items: center; gap: 24px; margin-top: 30px; }
.hero-cta { border-radius: 7px; min-height: 52px; font-size: 14px; }
.hero-secondary-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--foreground); font-size: 14px; text-decoration: none; }
.hero-secondary-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-signature { width: 150px; }
.client-strip { padding-block: 18px 8px; }
.client-wordmark { font-size: 24px; }
.client-logo-group { min-height: 80px; padding-block: 16px; }
.client-strip .section-kicker { font-size: 13px; text-transform: none; letter-spacing: 0; }
.strip-toggle { font-size: 13px; }
.service-catalog-section .catalog-heading .section-title { max-width: 22ch; }
.services-preview .catalog-heading .section-title::before { display: none; }
.home-services-photo, .services-editorial-image, .service-editorial-image, .page-editorial-image { margin: 36px 0 0; overflow: hidden; border-radius: 14px; }
.home-services-photo img, .services-editorial-image img, .service-editorial-image img, .page-editorial-image img { display: block; width: 100%; height: 100%; aspect-ratio: 2.8 / 1; object-fit: cover; }
.service-editorial-image { margin-top: 0; margin-bottom: 56px; }
.service-editorial-image img { border-radius: 14px; }
.services-preview .service-card-grid { margin-top: 30px; }
.services-preview .service-card, .service-card, .growth-capability { border: 1px solid var(--rule); border-radius: 12px; }
.services-preview .service-card { border-top: 1px solid var(--rule); padding: 24px; }
#magic-main .service-card-description { margin-block: 16px; }
.service-card-meta span:last-child { display: none; }
.service-card-media { margin-bottom: 22px; }
.service-card-explore { margin-top: 10px; }
.bundle-offer { grid-template-columns: 1fr; gap: 22px; padding: 24px; border-radius: 12px; }
.bundle-offer-copy .bundle-eyebrow { display: none; }
#magic-main .bundle-offer-heading { max-width: none; font-size: 22px; margin-bottom: 8px; }
#magic-main .bundle-offer-description { max-width: 65ch; font-size: 14px; }
#magic-main .bundle-offer-progress { font-size: 14px; margin-top: 10px; }
.bundle-tier-option { min-height: 88px; padding: 16px; border-radius: 8px; }
.bundle-tier-number { font-size: 26px; }
.bundle-tier-status { font-size: 12px; }
.bundle-offer:has(.bundle-individual-preview) .bundle-pack-preview { display: none; }
.bundle-preview-number { display: none; }
.bundle-preview-title { font-size: 14px; }
.bundle-preview-tile { min-height: 62px; }
.bundle-pack-label { font-size: 13px; }
.services-page #bundle-offer .bundle-pack-preview,
.services-page #bundle-offer .bundle-offer-copy > :not(.bundle-offer-progress) { display: none; }
.services-page #bundle-offer .bundle-offer-progress { margin-top: 0; }
.catalog-filters { gap: 8px; }
.calm-process-layout, .calm-work-layout, .calm-media-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.calm-process-photo, .calm-media-layout figure { margin: 0; overflow: hidden; border-radius: 14px; }
.calm-process-photo img { display: block; width: 100%; height: 500px; object-fit: cover; }
.calm-process-list { margin-top: 30px; }
.calm-process-list article { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.calm-process-list article > span { color: #ee3152; font-size: 13px; padding-top: 5px; }
:root[data-theme="light"] .calm-process-list article > span { color: #b6002a; }
.calm-process-list h3 { margin: 0 0 8px; }
.calm-process-list p { max-width: 40ch; margin: 0; color: var(--muted); }
.calm-industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.calm-industry-grid > a { min-width: 0; color: var(--foreground); text-decoration: none; }
.calm-industry-grid img { display: block; width: 100%; height: 235px; object-fit: cover; border-radius: 12px; transition: filter 160ms ease; }
.calm-industry-grid a:hover img { filter: brightness(1.1); }
.calm-industry-grid h3 { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin: 20px 0 0; }
.calm-industry-grid h3 span { color: #ee3152; }
.calm-finder { padding-top: 12px; }
.calm-finder .growth-choice { grid-template-columns: 1fr auto; padding: 36px; border-radius: 12px; }
.calm-finder .growth-choice h2 { max-width: none; }
.calm-finder .growth-choice p { margin-bottom: 0; }
.calm-work { background: var(--panel); }
.calm-work-layout { grid-template-columns: 1fr 1fr; }
.calm-work .section-intro { max-width: 40ch; }
.calm-work-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 280px; padding: 32px; border: 1px solid var(--rule); border-radius: 14px; background: var(--background); }
.calm-work-placeholder > span:first-child { color: #e4002b; font-size: 52px; line-height: 1; }
#magic-main .calm-work-placeholder p { margin-bottom: 0; font-size: 22px; }
.calm-work-placeholder > span:last-child { color: var(--muted); font-size: 13px; }
.calm-client-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); scroll-margin-top: 30px; }
.calm-client-note h3 { margin: 0; }
.calm-client-note p { margin-bottom: 0; color: var(--muted); }
.team-section .section-title { max-width: 20ch; }
.team-introduction { max-width: 38ch; }
.team-grid { margin-top: 36px; gap: 32px; }
.team-portrait { width: 140px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; }
.team-portrait-label, .team-card-index { display: none; }
.team-card-heading { display: flex; flex-direction: column-reverse; gap: 8px; padding-top: 20px; }
#magic-main .team-card-heading p { min-height: 0; margin: 0; font-size: 14px; }
.team-card-heading h3 { margin: 0; }
.team-replay { font-size: 13px; }
.calm-media-layout { grid-template-columns: 1.2fr .8fr; }
.calm-media-layout img { display: block; width: 100%; height: 380px; object-fit: cover; }
.consultation-options { gap: 20px; margin-top: 32px; }
.consultation-card { padding: 26px; border-radius: 12px; border-top-width: 1px; }
.consultation-card-top { margin-bottom: 24px; }
.consultation-card-top svg { width: 28px; height: 28px; color: #ee3152; }
.consultation-card-description { margin-bottom: 24px; }
.consultation-confirmation-note { margin-top: 20px; }
.closing-section { padding-block: 56px; }
.closing-layout { align-items: center; }
#magic-main .closing-section h2 { max-width: 20ch; }
.closing-contact { font-size: 14px; min-height: 52px; }
.footer { padding-top: 34px; }
.footer-links { gap: 8px 22px; }
.footer-links a, .footer-copyright, .intro-replay { font-size: 13px; }
.footer-line { font-size: 16px; }
.announcement-copy, .announcement-link { font-size: 13px; letter-spacing: 0; }
.detail-hero { padding-block: 24px 48px; }
.detail-hero h1 { max-width: 18ch; }
.detail-lead { margin-top: 24px; }
.detail-capabilities { padding-block: 56px; }
.detail-capability-grid { gap: 30px; margin-top: 32px; }
.detail-capability h3 { margin-top: 18px; }
.detail-number { display: none; }
.detail-related-card { border-radius: 12px; }
.detail-hero .section-kicker { margin-bottom: 18px; }
.detail-project-information { padding-block: 28px; border-block: 1px solid var(--rule); }
.detail-project-information { margin-top: 36px; }
.detail-project-information summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 18px; cursor: pointer; list-style: none; }
.detail-project-information summary::-webkit-details-marker { display: none; }
.detail-project-information summary span { color: #ee3152; font-size: 24px; }
.detail-project-information[open] summary span { transform: rotate(45deg); }
.detail-project-information summary:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; }
.detail-project-information[open] summary { margin-bottom: 30px; }
.detail-project-content { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
.detail-project-content > p { margin: 0; color: var(--muted); }
.detail-faq-section, .detail-related-section, .detail-bundle-section { padding-block: 56px; }
.growth-hero, .insights-hero { padding-block: 36px 56px; }
.growth-capability-grid, .growth-focus-grid { margin-top: 30px; }
.growth-bottom-cta { border-radius: 12px; }
.growth-card-link { min-height: 0; }
.growth-industry-card { overflow: hidden; border-radius: 12px; }
.quiz-shell { border-radius: 12px; overflow: hidden; }
.quiz-option { border-radius: 8px; }
#magic-main .quiz-option strong { font-size: 16px; }
#magic-main .quiz-fieldset legend { font-size: 28px; line-height: 1.2; }
.quiz-profile span { font-size: 13px; }
.insights-feature-art, .insights-card-art { border-radius: 14px; }
.insights-edition-status { font-size: 13px; }
:is(.contact-dialog, .bundle-dialog, .consultation-dialog) { border-radius: 12px; }
:is(.contact-dialog, .bundle-dialog, .consultation-dialog) h2 { font-family: inherit; font-style: normal; font-weight: 500; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
:is(.contact-dialog, .bundle-dialog, .consultation-dialog) :is(p, label) { font-size: 14px; line-height: 1.6; }
:is(.contact-dialog, .bundle-dialog, .consultation-dialog) :is(input, textarea, select) { font-size: 16px; }
.dialog-eyebrow, .consultation-eyebrow, .bundle-dialog-heading .bundle-eyebrow { display: none; }
@media (max-width: 900px) {
  .hero-copy { width: 78%; }
  .calm-process-layout { grid-template-columns: .9fr 1.1fr; gap: 32px; }
  .calm-process-photo img { height: 440px; }
  .calm-industry-grid img { height: 180px; }
  .calm-finder .growth-choice { grid-template-columns: 1fr; gap: 24px; }
  .calm-finder .growth-button { justify-self: start; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero-shell { min-height: 760px; }
  .hero.section-container { min-height: 620px; padding-block: 54px 36px; }
  .hero-copy { width: 100%; }
  #magic-main .hero-title { font-size: clamp(46px, 10.2vw, 65px); }
  .hero-signature { width: 115px; margin-top: 32px; }
  .hero-backdrop { background-position: 62% center; }
  .hero-consultation-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-consultation-actions .hero-cta { width: auto; }
  .section-heading-row, .service-catalog-section .catalog-heading { display: flex; flex-direction: column; gap: 18px; }
  .section-heading-row .section-intro, .service-catalog-section .catalog-heading .section-intro { margin: 0; }
  .calm-process-layout, .calm-work-layout, .calm-media-layout { grid-template-columns: 1fr; gap: 30px; }
  .calm-process-photo img { height: 290px; }
  .calm-process-list { margin-top: 24px; }
  .calm-industry-grid { grid-template-columns: 1fr; gap: 30px; }
  .calm-industry-grid img { height: 230px; }
  .calm-industry-grid h3 { margin-top: 16px; }
  .home-services-photo img, .services-editorial-image img, .service-editorial-image img, .page-editorial-image img { aspect-ratio: 1.6; }
  .home-services-photo, .services-editorial-image { margin-top: 26px; }
  .calm-finder .growth-choice { padding: 26px; }
  .calm-media-layout img { height: 270px; }
  .team-grid { gap: 30px 20px; }
  .team-portrait { width: 110px; }
  #magic-main .team-card-heading h3 { font-size: 22px; }
  .consultation-heading { grid-template-columns: 1fr; gap: 18px; }
  .consultation-heading .section-intro { margin: 0; }
  .consultation-options { grid-template-columns: 1fr; gap: 14px; }
  .consultation-card { padding: 24px; }
  .consultation-card-top { margin-bottom: 18px; }
  .consultation-card-description { margin-bottom: 16px; }
  .detail-hero { padding-top: 20px; }
  .detail-capabilities, .detail-faq-section, .detail-related-section, .detail-bundle-section { padding-block: 44px; }
  .detail-project-content { grid-template-columns: 1fr; gap: 24px; }
  .closing-layout { gap: 28px; }
  .footer-links { gap: 6px 20px; }
}
@media (prefers-reduced-motion: reduce) { .calm-industry-grid img { transition: none; } }
