/* Shared layout refinements. Resolve narrow content at its source rather than hiding overflow. */
.wrap { width: 100%; }
.site-header, .home-hero, .hero-copy, .hero-composition, .section-heading > *,
.agency-note > *, .about-page > *, .values-grid > *, .service-list article > *,
.service-detail > *, .detail-note > *, .article-layout > *, .contact-page > *,
.footer-grid > *, .form-row > *, .listing-tools > * { min-width: 0; }
h1, h2, h3, .kicker, .button, .text-link, .read-more, .article-toc a,
.hero-founder, .contact-channel, .results-count { overflow-wrap: anywhere; }
.button, .text-link, .read-more { max-width: 100%; min-height: 44px; }
.button { gap: clamp(12px, 2.3vw, 33px); text-align: left; }
.button > span { flex-shrink: 0; }
.navigation { font-size: 13px; gap: clamp(14px, 1.8vw, 25px); }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-copy h1 { font-size: clamp(54px, 7vw, 100px); }
.hero-copy h1 i { position: static; display: inline-block; margin-left: .22em; font-size: .92em; line-height: .8; vertical-align: baseline; }
.hero-composition { container-type: inline-size; height: clamp(390px, 42vw, 520px); }
.hero-big-type { font-size: clamp(38px, 5vw, 66px); font-size: clamp(38px, 12cqw, 66px); padding: 48px 28px; }
.composition-star { top: 44%; right: 6%; font-size: 95px; font-size: clamp(70px, 22cqw, 120px); }
.hero-founder { gap: 12px; }
.hero-founder > div { min-width: 0; flex: 1; }
.hero-founder img { flex-shrink: 0; }
.hero-founder strong, .hero-founder span { line-height: 1.5; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-tile, .card-copy { overflow-wrap: anywhere; }
.card-image > span { max-width: calc(100% - 28px); overflow-wrap: anywhere; }
.card-meta { font-size: 11px; }
.section-heading > .button, .footer-cta .button { flex-shrink: 0; }
.ticker { gap: clamp(16px, 3vw, 45px); }
.service-detail { align-items: start; }
.service-detail aside { width: 100%; }
.listing-tools { flex-wrap: wrap; }
.listing-tools label { min-width: 150px; }
.listing-tools input, .listing-tools select { min-height: 48px; font-size: 16px; }
.pagination { flex-wrap: wrap; }
.pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.article-meta { font-size: 12px; }
.article-sidebar .copy-link { text-align: left; }
.contact-form input, .contact-form select, .contact-form textarea { min-width: 0; min-height: 48px; font-size: 16px; }
.contact-form .consent input { min-height: 0; }
.contact-form .consent { font-size: 12px; line-height: 1.7; }
.contact-form .consent span { min-width: 0; }
.footer-cta h2 { font-size: clamp(32px, 4.5vw, 60px); }
.footer-grid > div > a:not(.brand) { min-height: 36px; display: flex; align-items: center; margin: 3px 0; font-size: 13px; line-height: 1.6; }
.footer-grid p { font-size: 13px; }
.footer-grid h3 { font-size: 12px; }
.footer-bottom { flex-wrap: wrap; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 30px; }
  .hero-copy h1 { font-size: clamp(50px, 6.9vw, 76px); }
  .hero-copy > p:not(.kicker) { font-size: 16px; }
  .hero-actions { gap: 16px; }
  .hero-actions .button { font-size: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
}

@media (max-width: 900px) {
  .site-header { height: 88px; position: relative; z-index: 30; }
  .site-header .brand { width: 104px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; flex: 0 0 44px; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 24px; flex-direction: column; gap: 4px; font-size: 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 22px #13242a12; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; }
  .navigation.open { display: flex; }
  .navigation a { padding: 10px 12px; border-radius: 4px; }
  .navigation a[aria-current] { background: #eaf0ff; }
  .navigation a[aria-current]::after { display: none; }
  .ticker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding: 20px 32px; white-space: normal; text-align: center; font-size: 11px; }
  .ticker b { display: none; }
  .about-page { grid-template-columns: 1fr; gap: 36px; }
  .founder-portrait { width: 100%; max-width: 440px; }
  .about-story { max-width: 65ch; }
  .about-story h2 { font-size: clamp(32px, 5vw, 44px); }
  .about-story > p, .values-grid p { font-size: 16px; }
  .service-detail, .contact-page { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { max-width: 65ch; }
  .contact-info > p { max-width: 100%; }
  .contact-info h2 { font-size: clamp(34px, 5vw, 45px); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .contact-form { padding: 32px; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .article-body { font-size: 17px; }
  .article-sidebar { position: static; order: -1; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .article-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .article-toc a { font-size: 13px; }
  .article-sidebar .sidebar-note { display: none; }
  .article-sidebar > .copy-link { margin-top: 18px; }
  .project-website-link { flex-wrap: wrap; }
  .project-website-link .button { margin-top: 0; }
  .footer-cta > div { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .section-space { padding-top: 64px; padding-bottom: 64px; }
  .home-hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; gap: 36px; }
  .hero-copy h1 { font-size: clamp(50px, 15vw, 82px); max-width: 500px; line-height: 1.02; margin-bottom: 26px; }
  .hero-copy h1 i { font-size: .92em; }
  .hero-copy > p:not(.kicker) { max-width: 510px; font-size: 16px; }
  .hero-copy .kicker { font-size: 9px; line-height: 1.7; }
  .hero-caption { flex-wrap: wrap; gap: 10px; font-size: 9px; margin-top: 28px; }
  .hero-composition { width: 100%; max-width: 520px; height: 410px; margin: 0; justify-self: center; }
  .hero-big-type { padding: 44px 26px; }
  .hero-founder { left: 20px; right: 20px; bottom: 48px; padding: 14px; }
  .hero-founder img { width: 52px; height: 60px; }
  .hero-founder strong { font-size: 12px; }
  .hero-founder span { font-size: 10px; }
  .composition-label { top: 20px; right: 18px; font-size: 7px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > .button, .section-heading > .text-link { margin-top: 22px; }
  .section-heading-aside { max-width: 100%; margin-top: 22px; }
  .section-heading-aside > p { font-size: 15px; }
  .agency-note { grid-template-columns: 1fr; gap: 12px; }
  .values-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .values-grid h3 { font-size: 26px; }
  .detail-note { grid-template-columns: 1fr; gap: 12px; }
  .page-intro { padding-top: 44px; padding-bottom: 38px; }
  .page-intro h1 { font-size: clamp(36px, 7.5vw, 56px); }
  .page-intro > p:not(.kicker) { font-size: 16px; }
  .article-intro h1 { font-size: clamp(32px, 6.5vw, 48px); }
  .article-excerpt { font-size: 17px; }
  .footer-grid { gap: 30px; }
  .footer-cta > div { display: block; }
  .footer-cta h2 { margin-bottom: 26px; }
}

@media (max-width: 600px) {
  .site-header { height: 80px; padding: 0 20px; }
  .site-header .brand { width: 96px; }
  .navigation { padding: 12px 20px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-tile { padding: 26px; }
  .service-tile p, .card-copy p { font-size: 15px; line-height: 1.8; }
  .card-copy h3 { font-size: 24px; }
  .card-image > span { font-size: 10px; }
  .ticker { padding: 18px 20px; gap: 14px; font-size: 10px; letter-spacing: .06em; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .contact-form label { font-size: 13px; }
  .contact-form h3 { font-size: 26px; }
  .listing-tools { display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 14px; }
  .listing-tools label { min-width: 0; }
  .listing-tools label:first-child { grid-column: auto; }
  .listing-tools .button { width: 100%; font-size: 13px; }
  .listing-tools .text-link { justify-self: start; font-size: 13px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: clamp(26px, 7vw, 32px); }
  .article-body h3 { font-size: 23px; }
  .article-body th, .article-body td { padding: 8px; }
  .article-meta { gap: 10px 18px; }
  .project-website-link { padding: 20px; }
  .project-website-link .button { margin-top: 16px; }
  .project-website-link p { font-size: 14px; }
  .footer-grid > div > a:not(.brand) { min-height: 42px; }
  .footer-bottom { font-size: 11px; gap: 8px 16px; }
  .footer-bottom > div { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 360px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-founder { left: 16px; right: 16px; gap: 10px; padding: 12px; }
  .hero-founder strong { font-size: 11px; }
  .hero-founder span { font-size: 9px; }
  .hero-founder img { width: 44px; height: 52px; }
  .hero-founder > a { width: 28px; height: 28px; line-height: 27px; }
  .hero-big-type { padding-left: 22px; padding-right: 22px; }
  .article-toc { grid-template-columns: 1fr; }
}
