/* Final accessibility and small-screen refinements. */
/* Keep the intentionally tilted ticker inside the page without a horizontal scroll container. */
html { overflow-x: clip; }
main { overflow-x: clip; }
.portfolio-project-arrows button,
.portfolio-detail-top button { min-height: 44px; }
.portfolio-image-navigation button { width: 44px; height: 44px; }
.portfolio-thumbs button { flex-basis: 44px; height: 44px; }
.portfolio-detail-bottom { height: 140px; }
.portfolio-detail-track { height: calc(var(--frame-height) - 188px); }
.portfolio-nav button { min-height: 44px; }
.form-step legend, .form-step h3, .form-success,
.form-step input, .form-step textarea, .form-step select { scroll-margin-block: 110px 30px; }
.footer-bottom > div { flex-wrap: wrap; }
.footer-bottom a, .footer-bottom button { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 760px) {
  html { scroll-padding-top: 101px; }
  .header { gap: 12px; }
  .header-contact { min-height: 44px; font-size: 12px; gap: 10px; padding: 10px 13px; }
  .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; align-items: center; }
  .mobile-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  }
  .mobile-nav > a { flex-shrink: 0; font-size: clamp(30px, 8vw, 43px); min-height: 60px; }
  .mobile-nav > p { flex-shrink: 0; font-size: 14px; line-height: 1.5; }
  .hero-footnote { flex-wrap: wrap; }
  .hero-footnote a, .hero-footnote button { min-height: 44px; font-size: 12px; letter-spacing: .02em; }
  .hero-bottom p, .section-heading > p, .portfolio .section-heading > p,
  .service-content p, .service-content li, .about-copy p, .faq details p,
  .idea-heading > p, .idea-explanation p, .idea-explanation li { font-size: 14px; line-height: 1.65; }
  .qualifications { font-size: 12px; }
  .text-link, .idea-link { min-height: 44px; font-size: 14px; }
  .idea-eyebrow, .idea-context { font-size: 12px; letter-spacing: .025em; }
  .idea-context > span:last-child { display: none; }
  .idea-tabs > button { min-height: 70px; }
  .idea-tabs > button > b { font-size: 15px; }
  .idea-footer { font-size: 12px; }
  .idea-explanation { padding: 28px 23px; }
  .idea-explanation h3 { font-size: 30px; }

  .portfolio { --frame-height: 720px; }
  .portfolio-nav button { font-size: 12px; padding-top: 13px; padding-bottom: 10px; }
  .case-role { font-size: 12px; letter-spacing: .04em; }
  .case-client { font-size: 30px; overflow-wrap: break-word; }
  .case-headline { font-size: 18px; line-height: 1.3; }
  .case-result > span, .case-result > small { font-size: 12px; line-height: 1.4; }
  .case-result > small { opacity: .85; }
  .case-result:not(.metric) strong { font-size: 23px; white-space: normal; }
  .case-open { top: calc(var(--frame-height) - 88px); min-height: 44px; font-size: 14px; }
  .case-open > span { font-size: 12px; opacity: .8; }
  .portfolio-project-arrows button { min-height: 44px; font-size: 12px; gap: 10px; }
  .portfolio-detail-top { height: 54px; gap: 10px; }
  .portfolio-detail-top button, .portfolio-detail-top > span { font-size: 12px; }
  .portfolio-detail-top > span { text-align: right; }
  .portfolio-detail-track { height: calc(var(--frame-height) - 214px); }
  .portfolio-detail-track > figure { gap: 15px; padding-top: 20px; padding-bottom: 20px; }
  .portfolio-detail-context h3 { font-size: 24px; line-height: 1.12; }
  .portfolio-detail-context p { font-size: 14px; line-height: 1.5; }
  .portfolio-detail-kind { font-size: 12px; line-height: 1.4; }
  .portfolio-detail-bottom { height: 160px; }
  .portfolio-image-controls { flex-wrap: wrap; row-gap: 8px; }
  .portfolio-image-caption { font-size: 12px; max-width: none; flex-basis: 100%; }
  .portfolio-image-navigation { margin-left: auto; }
  .portfolio-image-count { font-size: 12px; }
  .portfolio-thumbs { margin-top: 8px; }
  .portfolio-thumbs button { flex-basis: 44px; height: 44px; }
  .aasee-reference span, .aasee-reference p { font-size: 12px; }
  .aasee-reference strong { font-size: 16px; }
  .portfolio-further > a { min-height: 44px; font-size: 14px; white-space: normal; }

  .contact-direct > span { font-size: 14px; }
  .contact-direct > span a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-direct > a { overflow-wrap: anywhere; }
  .form-progress { gap: 6px; font-size: 12px; align-items: flex-start; }
  .form-progress > span { flex: 1; align-items: flex-start; flex-direction: column; gap: 5px; white-space: normal; }
  .form-progress b { font-size: 12px; line-height: 1.35; }
  .form-progress > i { flex: 0 0 10px; margin-top: 7px; }
  .step-copy, .form-note, .form-error { font-size: 14px; line-height: 1.6; }
  .form-fields label, .message-label, .budget-label, .company-label,
  .timeline-field legend, .budget-label > span, .company-label > span { font-size: 14px; line-height: 1.5; }
  .form-step input:not([type=checkbox]):not([type=radio]),
  .form-step textarea, .form-step select { font-size: 16px; min-height: 48px; }
  .form-step textarea { min-height: 140px; line-height: 1.5; }
  .topic-choice > span { min-height: 145px; padding: 18px 14px 38px; }
  .topic-choice small { font-size: 12px; letter-spacing: 0; margin-bottom: 12px; }
  .topic-choice b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
  .choice span { min-height: 44px; display: flex; align-items: center; font-size: 14px; padding: 11px 14px; }
  .privacy-choice { font-size: 14px; line-height: 1.6; gap: 12px; }
  .privacy-choice > input { width: 22px; height: 22px; flex-basis: 22px; margin-top: 2px; }
  .form-back, .form-next, .form-navigation .form-submit { min-height: 50px; font-size: 14px; }
  .form-success > small { font-size: 12px; }
  .form-success > button { min-height: 44px; font-size: 14px; line-height: 1.5; }
  .footer-bottom, .back-top { font-size: 12px; }
  .footer-bottom > div { gap: 8px 20px; }
}

@media (max-width: 420px) {
  .header { gap: 8px; }
  .brand img { width: 70px; height: 44px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-choice > span { min-height: 100px; padding: 15px 48px 17px 16px; }
  .topic-choice small { margin-bottom: 8px; }
  .topic-choice b { overflow-wrap: normal; }
  .topic-choice i { bottom: 18px; }
  .portfolio-detail-top > span { max-width: 48%; }
  .case-result { grid-template-columns: auto minmax(0, 1fr); }
  .case-result.metric strong { font-size: 32px; }
  .case-result:not(.metric) strong { font-size: 21px; }
  .contact-direct > a { font-size: 26px; gap: 10px; }
}

@media (max-width: 760px) and (max-height: 520px) {
  .mobile-nav { padding-top: 12px; gap: 5px; }
  .mobile-nav > a { font-size: 28px; padding-block: 10px; min-height: 52px; }
  .mobile-nav > p { margin-top: 12px; }
}

/* Requested project status and optional call request. */
.portfolio .section-heading h2 { font-size:clamp(38px,5.1vw,76px); }
.portfolio .section-heading>p {max-width:360px;line-height:1.65;}
.call-request {margin-top:26px;border-top:1px solid #13141155;border-bottom:1px solid #13141155;}
.call-request summary {display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 0;font-size:14px;font-weight:600;cursor:pointer;list-style:none;min-height:54px;}
.call-request summary::-webkit-details-marker {display:none;}
.call-request summary span {font-size:25px;}
.call-request[open] summary span {transform:rotate(45deg);}
.call-request-content {padding-bottom:22px;}
.call-request-content p {font-size:13px;line-height:1.65;margin-bottom:18px;}
.call-fields {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;}
.call-fields label {font-size:13px;min-width:0;}
.call-fields input,.call-fields select {display:block;min-width:0;width:100%;font-size:16px;min-height:48px;}
.call-request-content #call-note {font-size:12px;margin:15px 0 0;}
@media(max-width:760px){.portfolio .section-heading h2 {font-size:clamp(29px,8.8vw,46px);}.call-fields{grid-template-columns:1fr;gap:18px;}.call-request-content p {font-size:14px;}.mobile-nav a{font-size:clamp(27px,7vw,43px);}}

.booking-section {background:var(--paper);color:var(--ink);}
.booking-heading {display:flex;align-items:end;justify-content:space-between;gap:40px;margin:40px 0;}
.booking-heading h2 {font-size:clamp(42px,6vw,88px);line-height:1;letter-spacing:-.06em;font-weight:550;}
.booking-heading h2 em {font-weight:350;}
.booking-heading>p {max-width:350px;font-size:16px;line-height:1.7;}
.booking-details {display:flex;gap:24px;flex-wrap:wrap;font-size:13px;line-height:1.6;border-block:1px solid #afb4a4;padding:20px 0;}
.booking-placeholder {padding:50px clamp(24px,5vw,70px);margin-top:28px;background:var(--ink);color:var(--paper);position:relative;}
.booking-symbol {display:block;font-size:68px;line-height:1;color:var(--lime);margin-bottom:20px;}
.booking-placeholder h3 {font-size:clamp(25px,3vw,40px);line-height:1.1;letter-spacing:-.04em;max-width:660px;}
.booking-placeholder p {font-size:15px;line-height:1.7;max-width:700px;color:#bec1b5;margin:20px 0 28px;}
.booking-placeholder button {display:flex;align-items:center;justify-content:space-between;gap:30px;background:var(--lime);border:1px solid var(--lime);color:var(--ink);padding:17px 22px;min-height:50px;font-weight:600;font-size:14px;}
.booking-alternative {display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:20px;font-size:13px;}
.booking-alternative a,.booking-alternative button{min-height:44px;display:inline-flex;align-items:center;gap:12px;text-decoration:underline;text-underline-offset:4px;}
.booking-alternative button {font:inherit;border:0;background:none;padding:0;color:inherit;}
[data-calendar-status] {font-size:13px;line-height:1.6;margin-top:15px;}
.contact-direct>a.contact-booking-link {font-size:15px;line-height:1.6;letter-spacing:0;margin:20px 0 27px;border-bottom:1px solid currentColor;padding-bottom:12px;display:inline-flex;}
.admin-bar .header {top:32px;}
@media(max-width:782px){.admin-bar .header{top:46px;}}
@media(max-width:600px){.admin-bar .header{top:0;}}
@media(max-width:760px){.booking-heading{display:block;margin:30px 0;}.booking-heading>p{margin-top:22px;}.booking-heading h2{font-size:clamp(36px,9vw,58px);}.booking-details{gap:10px;flex-direction:column;}.booking-placeholder{padding:32px 24px;}.booking-placeholder button{width:100%;}.booking-section>.section-kicker>span:last-child{display:none;}.mobile-nav a{font-size:clamp(25px,6.7vw,36px);}}
