/* Homepage-only composition; shared tool styles remain in styles.css. */
.home-page {
    --bg: #fcfcfb;
    --bg-secondary: #f2f2ef;
    --text: #20211f;
    --text-secondary: #61625e;
    --text-muted: #61625e;
    --border: #deded8;
    --input-border: #83847e;
    --anchor-bg: #232622;
    --anchor-text: #f7f8f3;
    --anchor-secondary: #c4c8be;
    --status: #16803c;
    --max-width: 1160px;
    --btn-primary-bg: #232622;
    --btn-primary-text: #ffffff;
    overflow-x: visible;
}
[data-theme="dark"] .home-page {
    --bg: #191b19;
    --bg-secondary: #242724;
    --text: #f1f2ec;
    --text-secondary: #b8bcb3;
    --text-muted: #b8bcb3;
    --border: #3e443d;
    --input-border: #80877b;
    --anchor-bg: #e5e8dd;
    --anchor-text: #252923;
    --anchor-secondary: #50584a;
    --status: #4ade80;
    --btn-primary-bg: #e5e8dd;
    --btn-primary-text: #252923;
}
.home-page > header {
    position: sticky;
    min-height: 84px;
    padding: 16px max(24px, calc((100% - var(--max-width)) / 2));
    gap: 24px;
}
.home-page .logo { margin-right: auto; flex-shrink: 0; }
.home-page .logo img { width: 138px; height: auto; }
.home-page .header-nav { gap: 26px; }
.home-page nav ul { gap: 22px; }
.home-page nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; }
.home-page nav a.active::after { bottom: 3px; height: 1px; }
.home-page nav a.active { font-weight: 500; }
.home-page .language-switcher { gap: 2px; }
.home-page .language-switcher button { min-width: 44px; min-height: 44px; border-color: transparent; padding: 8px; }
.home-page .theme-toggle { display: flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 4px; border: 0; border-radius: 4px; }
.theme-switch { width: 42px; height: 24px; padding: 3px; display: block; border-radius: 20px; background: var(--text-secondary); }
.theme-switch-thumb { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--bg); color: var(--text); font-size: 11px; border-radius: 50%; transition: transform .18s ease; }
[data-theme="dark"] .theme-switch-thumb { transform: translateX(18px); }
.home-page main { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; }
.home-page section { scroll-margin-top: 110px; }
.intro { padding: 58px 0 68px; }
.intro-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--text-secondary); font-size: .75rem; margin-bottom: 40px; }
.availability { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--status); animation: availability-pulse 3s ease-in-out infinite; }
@keyframes availability-pulse { 50% { transform: scale(.75); } }
.intro h1 { max-width: 1050px; font-size: clamp(2.55rem, 5.25vw, 4.6rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; text-wrap: balance; }
.intro-bottom { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.intro-bottom p { max-width: 535px; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.home-page .cta-button { padding: 14px 22px; min-height: 48px; font-size: .875rem; border-radius: 5px; font-weight: 500; box-shadow: none; text-decoration: none; }
.home-page .cta-button.primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border: 1px solid var(--btn-primary-bg); }
.home-page .cta-button:hover { transform: none; opacity: .85; }
.home-page .cta-button:disabled { opacity: .65; cursor: wait; }
.intro-bottom .cta-button { flex-shrink: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 24px; }
.section-heading h2 { font-size: 1.125rem; font-weight: 550; letter-spacing: -.025em; }
.section-heading p { font-size: .8125rem; color: var(--text-secondary); }
.home-page #services { padding: 0; background: transparent; }
.home-page #services h2 { font-size: 1.125rem; font-weight: 550; margin: 0; }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bento-tile { min-width: 0; padding: 30px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; }
.tile-category { font-size: .75rem; font-weight: 500; margin-bottom: 20px; color: var(--text-secondary); }
.bento-tile h3 { max-width: 440px; font-size: 1.5rem; line-height: 1.2; font-weight: 550; letter-spacing: -.035em; margin-bottom: 16px; }
.tile-description { color: var(--text-secondary); font-size: .875rem; line-height: 1.75; }
.tile-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .6875rem; }
.bento-anchor { display: flex; flex-direction: column; padding: 36px; background: var(--anchor-bg); color: var(--anchor-text); border-color: var(--anchor-bg); }
.bento-anchor .tile-category, .bento-anchor .tile-description { color: var(--anchor-secondary); }
.bento-anchor h3 { font-size: clamp(2rem, 3.2vw, 2.85rem); max-width: 460px; margin: 18px 0 24px; }
.bento-anchor .tile-description { max-width: 410px; }
.expertise-list { list-style: none; margin: 28px 0 40px; font-size: .8125rem; }
.expertise-list li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--anchor-text) 18%, transparent); }
.delivery-path { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; color: var(--anchor-secondary); font-size: .75rem; }
.delivery-path span:last-child { color: var(--anchor-text); }
.bento-consulting { display: flex; flex-direction: column; gap: 18px; }
.bento-consulting .tile-category { margin-bottom: 10px; }
.bento-consulting h3 { margin: 0; font-size: 1.25rem; }
.bento-consulting .tile-description { max-width: 430px; }
.home-page #about { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 100px 0 88px; background: transparent; border-bottom: 1px solid var(--border); }
.section-label { color: var(--text-secondary); font-size: .8125rem; }
.studio h2 { max-width: 550px; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; margin-bottom: 28px; text-wrap: balance; }
.studio > div > p { max-width: 630px; color: var(--text-secondary); font-size: .9375rem; line-height: 1.8; }
.studio .studio-principle { margin-top: 24px; color: var(--text); font-weight: 500; }
.home-page #clients { padding: 48px 0 70px; background: transparent; }
.client-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin-top: 36px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.client-list li { min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.client-list img { max-width: 100%; width: 155px; height: 48px; object-fit: contain; }
.client-list li:nth-child(3) img { width: 95px; }
.home-page #contact { background: transparent; padding: 64px 0 72px; border-top: 1px solid var(--border); }
.home-page .contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-left h2 { max-width: 430px; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; margin: 20px 0; }
.home-page .contact-left .contact-intro { max-width: 370px; color: var(--text-secondary); font-size: .875rem; line-height: 1.75; margin-bottom: 30px; }
.contact-email { color: var(--text); font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -.035em; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-details { margin-top: 22px; font-size: .8125rem; color: var(--text-secondary); }
.contact-details a { display: inline-block; padding: 12px 0; color: inherit; text-decoration: none; }
.home-page .contact-form { gap: 20px; }
.home-page .form-group > label { display: block; color: var(--text); font-size: .8125rem; margin-bottom: 8px; }
.home-page .contact-form input, .home-page .contact-form textarea { border-color: var(--input-border); color: var(--text); background: var(--bg); border-radius: 5px; font-size: 1rem; }
.home-page .contact-form input::placeholder, .home-page .contact-form textarea::placeholder { color: var(--text-secondary); }
.home-page .captcha-group { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 0; border: 0; background: transparent; }
.home-page .captcha-group > label { grid-column: 1 / -1; margin-bottom: 0; }
.home-page .captcha-group input[type="number"] { max-width: none; min-width: 0; }
.home-page .refresh-captcha { min-width: 44px; min-height: 44px; border-color: var(--input-border); }
.home-page .cta-container { margin-top: 0; }
.home-page .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px max(24px, calc((100% - var(--max-width)) / 2)); font-size: .6875rem; color: var(--text-secondary); }
.site-footer a { color: var(--text); flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.home-page :is(a, button, input, textarea):focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.home-page .notification { max-width: calc(100vw - 40px) !important; }
@media (min-width: 769px) {
    .bento-grid { grid-template-columns: 1.15fr 1fr; }
    .bento-anchor { grid-row: span 2; }
    .bento-consulting { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
    .home-page #about { grid-template-columns: 1fr 1.7fr; }
    .client-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-page .contact-layout { grid-template-columns: 1fr 1fr; gap: 100px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .home-page > header { gap: 12px; }
    .home-page .header-nav { gap: 12px; }
    .home-page nav ul { gap: 12px; }
    .home-page .logo img { width: 115px; }
    .home-page .contact-layout { gap: 48px; }
}
@media (max-width: 768px) {
    .home-page > header { min-height: 72px; gap: 14px; padding-block: 12px; }
    .home-page .nav-toggle { display: flex; gap: 10px; min-height: 44px; padding: 8px; font-size: .8125rem; }
    .home-page .header-nav { top: 72px; padding: 16px 24px; gap: 0; }
    .home-page .header-nav nav a { display: flex; padding: 12px 0; }
    .home-page .header-nav nav a.active::after { display: none; }
    .home-page .header-nav .language-switcher { margin-top: 12px; padding-top: 12px; }
    .home-page section { scroll-margin-top: 92px; }
    .intro { padding: 40px 0 48px; }
    .intro-meta { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
    .intro-bottom { align-items: flex-start; flex-direction: column; gap: 24px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .bento-anchor { min-height: 480px; }
    .home-page #about { padding: 64px 0; }
    .home-page #clients { padding: 36px 0 48px; }
    .home-page #contact { padding: 48px 0; }
    .home-page .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
    .home-page main { width: calc(100% - 40px); }
    .home-page > header { padding-inline: 20px; gap: 6px; }
    .home-page .logo img { width: 120px; }
    .intro h1 { font-size: clamp(2.15rem, 8.8vw, 2.7rem); }
    .intro-meta { font-size: .6875rem; }
    .bento-tile { padding: 24px; }
    .bento-anchor h3 { font-size: 2rem; }
    .client-list li { padding: 20px; min-height: 100px; }
    .client-list img { height: 42px; }
    .home-page .site-footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
}
