/* Shared page chrome: the homepage is the visual source of truth. */
/* PROJECT MODAL MOBILE START */
@media (max-width:767px){
  #project-modal{padding:8px}
  #project-modal .modal-dialog{width:100%;max-width:480px;height:auto;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:20px 16px;border-radius:20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  #project-modal .modal-close{top:12px;right:12px;width:44px;height:44px}
  #project-modal .modal-heading{gap:12px;padding-right:0}
  #project-modal .modal-heading b{display:flex;align-items:center;min-height:32px;padding-right:48px;font-size:10px;line-height:14px;letter-spacing:.08em}
  #project-modal .modal-heading p{width:auto;max-width:100%;font-size:20px!important;line-height:26px!important;letter-spacing:0;overflow-wrap:normal}
  #project-modal .modal-form{margin-top:20px}
  #project-modal .modal-form .form-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  #project-modal .modal-form .field{width:100%;min-width:0;max-width:100%;height:auto;min-height:76px;padding:8px 14px;border-radius:16px;gap:2px}
  #project-modal .modal-form .field-full{grid-column:1/-1}
  #project-modal .modal-form .field label{font-size:10px;line-height:14px;letter-spacing:.04em}
  #project-modal .modal-form .field input,#project-modal .modal-form .field select:not(.application-native-select),#project-modal .modal-form .field textarea{width:100%;min-width:0;max-width:100%;height:44px;font-size:16px;line-height:24px}
  #project-modal .modal-form .field-about{min-height:0}
  #project-modal .modal-form .field textarea{height:88px;resize:vertical}
  #project-modal .modal-form .field-error{position:static;font-size:11px;line-height:16px}
  #project-modal .application-select-field>label{top:8px;left:14px}
  #project-modal .application-select-trigger{padding:24px 48px 8px 14px;font-size:16px;line-height:24px}
  #project-modal .application-select-chevron{right:2px;width:44px;height:44px}
  #project-modal .application-select-menu{padding:6px}
  #project-modal .application-select-option{min-height:44px;padding:8px 12px;font-size:16px;line-height:22px}
  #project-modal .modal-form .attachment{width:100%;min-width:0;height:auto;min-height:0;margin:0;padding:16px;border-radius:16px;flex-direction:column;align-items:stretch;gap:14px}
  #project-modal .attachment-copy{min-width:0;gap:6px}
  #project-modal .attachment-copy b{font-size:10px;line-height:14px}
  #project-modal .attachment-copy span{font-size:14px;line-height:20px;overflow-wrap:anywhere}
  #project-modal .modal-submit{margin-top:20px;padding-top:20px;gap:16px;flex-direction:column;align-items:stretch}
  #project-modal .modal-submit .checkbox{width:100%;max-width:100%;min-height:44px;align-items:flex-start;gap:12px;font-size:12px;line-height:18px}
  #project-modal .modal-submit .checkbox input{width:20px;height:20px;margin-top:2px;flex:0 0 20px}
  #project-modal .modal-form .attachment .btn,#project-modal .modal-submit .btn,#project-modal .success-panel .btn{width:100%;height:auto;min-height:48px;padding:12px 18px;font-size:11px;line-height:16px;gap:12px;justify-content:space-between}
  #project-modal .btn>span{display:block;flex-shrink:0;font-size:20px;line-height:20px}
  #project-modal .form-status{margin-top:12px;font-size:14px;line-height:21px}
  #project-modal .form-status:empty{display:none}
  #project-modal .success-panel h2{font-size:24px!important;line-height:29px!important}
  #project-modal .success-panel p{font-size:15px;line-height:23px}
  #project-modal :is(input,textarea,select,button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  #project-modal .attachment:focus-within{outline:2px solid var(--accent);outline-offset:2px}
}
/* PROJECT MODAL MOBILE END */
/* Bottom CTA arrows: embed the approved vector to avoid external mask loading. */
#content .wide-cta .btn > [class$="-cta-arrow"] {
  display:block;
  flex-shrink:0;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.1548 11.4545'%3E%3Cpath d='M7.42756 11.4545L6.44318 10.483L10.4957 6.4304H0V5.02415H10.4957L6.44318 0.984375L7.42756 0L13.1548 5.72727L7.42756 11.4545Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.1548 11.4545'%3E%3Cpath d='M7.42756 11.4545L6.44318 10.483L10.4957 6.4304H0V5.02415H10.4957L6.44318 0.984375L7.42756 0L13.1548 5.72727L7.42756 11.4545Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
:root body site-header{background:transparent;color:var(--fg)}
:root body .site-header,
:root body .site-header.is-scrolled{color:var(--fg)}
:root body site-header::before{
  background:color-mix(in oklab,var(--surface),transparent 30%);
  -webkit-backdrop-filter:blur(18px) saturate(118%) contrast(103%);
  backdrop-filter:blur(18px) saturate(118%) contrast(103%);
  box-shadow:0 0 0 rgb(0 0 0 / 0%);
}
:root body site-header.is-scrolled::before{
  background:color-mix(in oklab,var(--surface),transparent 34%);
  -webkit-backdrop-filter:blur(18px) saturate(118%) contrast(103%);
  backdrop-filter:blur(18px) saturate(118%) contrast(103%);
  box-shadow:0 4px 4px rgb(0 0 0 / 5%);
}
:root body .site-header::before,
:root body .site-header.is-scrolled::before{opacity:.82}
:root body .site-header::after,
:root body .site-header.is-scrolled::after{opacity:.72}

:root body .site-footer{padding:64px var(--gutter) 50px}
:root body .site-footer::before{top:64px}
@media(min-width:1840px){
  :root body .site-footer{padding-block:0}
  :root body .site-footer::before{top:0}
}
@media(min-width:1280px) and (max-width:1599px){
  :root body .site-footer{padding:0 var(--gutter) 42px}
  :root body .site-footer::before{top:0}
  :root body .footer-inner{padding-top:56px;gap:42px}
  :root body .footer-top{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:56px}
  :root body .footer-slogan{font-size:46px}
  :root body .footer-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
  :root body .footer-column a,:root body .footer-column span{font-size:13px}
  :root body .footer-strip{padding:22px 32px;gap:28px}
  :root body .footer-address strong,:root body .footer-hours{font-size:19px}
  :root body .footer-strip .btn{width:230px}
}
@media(max-width:767px){
  :root body .site-header .header-row{width:calc(100% - 32px);max-width:none;margin-inline:auto;gap:12px}
  :root body .site-header .brand{min-width:0;flex:1 1 auto}
  :root body .site-header .brand-copy{min-width:0}
  :root body .site-header .menu-button{flex:0 0 44px}
      :root body .site-footer{
        width:100%;
        max-width:100%;
        padding:40px 16px 32px;
        overflow:hidden;
      }
      :root body .footer-inner,
      :root body .footer-top,
      :root body .footer-brand,
      :root body .footer-links,
      :root body .footer-strip,
      :root body .footer-bottom{
        width:100%;
        max-width:none;
        min-width:0;
      }
      :root body .footer-inner{
        padding-top:40px;
        gap:36px;
      }
      :root body .footer-slogan{
        width:100%;
        max-width:none;
        font-size:clamp(34px,10vw,42px);
        overflow-wrap:break-word;
      }
      :root body .footer-column,
      :root body .footer-address{
        min-width:0;
      }
      :root body .footer-strip{
        padding:22px;
        grid-template-columns:minmax(0,1fr);
        gap:24px;
      }
      :root body .footer-address strong,
      :root body .footer-hours{
        min-width:0;
        overflow-wrap:break-word;
      }
      :root body .footer-bottom{
        align-items:flex-start;
      }


}

/* logo */
@media (max-width:767px) {
      :root body .site-header .brand { min-height:44px; }
      :root body .site-header .brand-mark,
      :root body .site-header .brand-copy { display:none; }
      :root body .site-header .brand-lockup-1440 {
        display:block;
        width:240px;
        max-width:100%;
        height:auto;
        object-fit:contain;
      }
    }

/* footer-gap-fix */
@media (max-width:767px) {
      :root body .site-footer { padding-top:0; }
      :root body .site-footer::before { top:0; }
      :root body .footer-slogan { text-wrap:wrap; }
    }

/* footer-navigation */
@media (max-width:767px) {
      :root body .site-footer .footer-links {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:28px 20px;
      }
      :root body .site-footer .footer-column {
        min-width:0;
        gap:0;
      }
      :root body .site-footer .footer-column h3 {
        margin-bottom:12px;
        font-size:14px !important;
        line-height:20px !important;
        letter-spacing:.04em;
      }
      :root body .site-footer .footer-column a,
      :root body .site-footer .footer-column > span {
        min-width:0;
        font-size:16px;
        line-height:22px;
        overflow-wrap:anywhere;
      }
      :root body .site-footer .footer-column a {
        display:flex;
        align-items:center;
        min-height:44px;
        padding-block:8px;
      }
      :root body .site-footer .footer-column:nth-child(3) {
        grid-column:1 / -1;
        grid-template-columns:repeat(2,minmax(0,1fr));
        column-gap:20px;
      }
      :root body .site-footer .footer-column:nth-child(3) h3 {
        grid-column:1 / -1;
      }
      :root body .site-footer .footer-column:last-child {
        grid-column:1 / -1;
      }
      :root body .site-footer .footer-address strong,
      :root body .site-footer .footer-hours {
        font-size:18px;
        line-height:26px;
      }
    }
