/* TGI 1.1: phone/tablet readability. Desktop composition remains in styles.css. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.map-viewer:not([open]) { display: none; }
.map-viewer {
  width: min(1120px, calc(100% - 24px)); max-width: none;
  height: min(90vh, 960px); height: min(90dvh, 960px);
  max-height: none; padding: 20px; border: 0; margin: auto;
  background: #fff; color: var(--navy); overflow: hidden;
}
.map-viewer[open] { display: flex; flex-direction: column; gap: 14px; }
.map-viewer::backdrop { background: rgb(6 18 25 / 85%); }
.map-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-viewer-header h2 { font-size: 28px; line-height: 1.2; }
.map-controls { display: flex; align-items: center; gap: 8px; }
.map-viewer button {
  min-width: 48px; min-height: 48px; padding: 10px 14px;
  border: 1px solid #a4b0b6; background: #fff; color: var(--navy);
  font-size: 16px; line-height: 1.2;
}
.map-viewer .map-plus, .map-viewer .map-minus { font-size: 26px; }
.map-viewer button:disabled { opacity: .4; cursor: default; }
.map-scale { min-width: 60px; text-align: center; font-size: 16px; }
.map-fit { margin-left: auto; }
.map-help { font-size: 16px; line-height: 1.5; margin: 0; }
.map-scroll {
  flex: 1; min-height: 0; min-width: 0; overflow: auto;
  background: #ededed; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom;
}
.map-scroll img { max-width: none; height: auto; display: block; }
body.map-is-open { overflow: hidden; }
.mobile-debug {
  padding: 20px; margin: 0; background: #fff; color: #152d3b;
  border: 3px solid #eb6a37; font: 16px/1.5 monospace;
  overflow-wrap: anywhere; white-space: pre-wrap;
}

@media (max-width: 1023px) {
  :root { --tgi-mobile-css: 1; }
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 88px; gap: 20px; }
  .desktop-nav { display: none; }
  .header-contact { margin-left: auto; font-size: 16px; }
  .mobile-nav { display: block; position: relative; flex: 0 0 auto; }
  .mobile-nav > summary {
    list-style: none; width: 48px; height: 48px; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; cursor: pointer; border: 1px solid var(--line);
  }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary span { display: block; width: 26px; height: 2px; background: #fff; }
  .mobile-nav[open] > summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .mobile-nav[open] > summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-nav nav {
    position: absolute; right: 0; top: 60px; width: min(340px, calc(100vw - 48px));
    min-width: 0; padding: 12px; background: var(--navy-deep);
    border: 1px solid var(--line); box-shadow: 0 16px 30px #0005;
  }
  .mobile-nav nav a { display: flex; align-items: center; min-height: 52px; padding: 12px; font-size: 18px; }
  .hero-layout, .about-grid, .full-cycle, .geography-grid, .principles-intro, .contact-grid {
    grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0;
  }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(36px, 6.5vw, 62px); white-space: normal; }
  .hero h1 span { white-space: normal; }
  .hero-description { max-width: 40em; font-size: 19px; }
  .hero-visual { height: 410px; }
  .hero-visual > img { min-height: 0; object-position: center; }
  .hero-bottom { padding-block: 28px 8px; }
  .full-cycle li { font-size: 18px; }
  .full-cycle h3 br { display: initial; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid p { font-size: 18px; max-width: none; color: #e1e8ed; }
  .services-grid .wide-service { display: block; }
  .wide-service p { margin-top: 16px; }
  .service-end { display: none; }
  .project > p, .details-content ul, .principles-list p { font-size: 18px; }
  .section-heading > p, .partners-heading p { font-size: 17px; }
  .geography-grid > div > p { max-width: none; }
  .geography-grid .geography-names { font-size: 16px; }
  .map-image { max-width: 660px; margin: 0 auto; }
  .principles-intro p, .principles-closing { font-size: 18px; }
  .principles-list > div { grid-template-columns: 34px minmax(0, 1fr); gap: 10px 16px; }
  .principles-list p { grid-column: 2; }
  .principles-list h3 { font-size: 25px; }
}

@media (max-width: 767px) {
  body { font-size: 18px; line-height: 1.65; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  .header-inner { min-height: 84px; gap: 16px; }
  .header-contact { display: none; }
  .brand { font-size: 15px; letter-spacing: .035em; gap: 10px; }
  .brand img { width: 52px; height: 52px; }
  .brand small { font-size: 12px; letter-spacing: .15em; margin-top: 5px; }
  .mobile-nav { margin-left: auto; }
  .hero { padding-top: 30px; }
  .eyebrow { font-size: 12px; letter-spacing: .02em; line-height: 1.5; }
  .hero h1 {
    font-size: clamp(36px, 9.4vw, 56px); line-height: 1.12;
    letter-spacing: -.02em; margin: 26px 0 22px;
  }
  .hero-description { font-size: 18px; color: #e5edf1; max-width: none; }
  .hero-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 12px; margin-top: 26px; }
  .button { width: 100%; min-height: 58px; font-size: 16px; padding: 16px 18px; gap: 16px; }
  .hero-actions .text-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 16px; }
  .file-type { font-size: 14px; white-space: nowrap; }
  .hero-bottom { padding-top: 24px; }
  .hero-bottom a { width: 48px; height: 48px; }
  .hero-bottom span { font-size: 12px; letter-spacing: .04em; }
  .hero-visual { height: auto; aspect-ratio: 4 / 3; min-height: 280px; }
  .hero-visual > img { min-height: 0; height: 100%; width: 100%; }
  .hero-visual figcaption { left: 20px; right: 20px; bottom: 20px; }
  .hero-visual figcaption > span { font-size: 12px; letter-spacing: .06em; }
  .hero-visual strong { font-size: 27px; }
  .cycle-ribbon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; font-size: 14px; letter-spacing: 0; padding-block: 24px; }
  .cycle-ribbon i { display: none; }
  .cycle-ribbon span::before { content: '▪'; color: var(--orange); margin-right: 8px; }
  .section-line { font-size: 12px; letter-spacing: .04em; margin-bottom: 28px; padding-bottom: 18px; }
  .section-line > span:last-child { display: none; }
  h2 { font-size: clamp(32px, 8vw, 42px); line-height: 1.15; }
  .about-grid, .full-cycle { gap: 25px; }
  .about-text .large-copy { font-size: 20px; line-height: 1.6; margin-bottom: 24px; }
  .about-text p { font-size: 18px; color: #e0e9ed; }
  .about-grid h2 br { display: initial; }
  .full-cycle { padding-top: 30px; margin-top: 36px; }
  .full-cycle h3 { font-size: 28px; }
  .full-cycle li { font-size: 18px; gap: 14px; padding-block: 18px; }
  .full-cycle li span { min-width: 24px; flex: 0 0 auto; }
  .section-heading, .partners-heading { display: block; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; font-size: 17px; }
  .section-heading > p br { display: none; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid article, .services-grid .wide-service { display: block; min-height: 0; padding: 24px; }
  .services-grid h3, .wide-service h3 { font-size: 30px; margin: 0 28px 12px 0; line-height: 1.2; overflow-wrap: normal; }
  .services-grid p, .wide-service p { font-size: 18px; line-height: 1.55; max-width: none; margin-top: 0; }
  .services-grid p br { display: none; }
  .service-index { top: 26px; right: 20px; font-size: 12px; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-tag { left: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 12px; line-height: 1.4; letter-spacing: .02em; }
  .project-title { gap: 12px; }
  .project-title h3 { font-size: 30px; line-height: 1.18; overflow-wrap: anywhere; }
  .project > p { font-size: 18px; line-height: 1.65; color: #3b505c; min-height: 0; max-width: none; }
  .project-details summary { font-size: 18px; min-height: 56px; padding-block: 14px; }
  .details-content ul { font-size: 18px; line-height: 1.6; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo-grid img, .photo-grid img:last-child:nth-child(odd) { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .geography-grid { gap: 28px; }
  .geography-grid h2 br { display: initial; }
  .geography-grid > div > p { font-size: 19px; }
  .geography-grid .geography-names { font-size: 16px; line-height: 1.75; color: #425966; }
  .dark-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 18px; }
  .map-image { margin: 0; max-width: none; }
  .map-viewer { padding: 14px; gap: 10px; }
  .map-viewer-header h2 { font-size: 23px; }
  .map-viewer .map-close { font-size: 14px; padding-inline: 10px; }
  .map-help { font-size: 16px; }
  .principles-intro h2 { font-size: clamp(32px, 8vw, 42px); }
  .principles-intro h2 br { display: initial; }
  .principles-intro h2 span { color: var(--navy-deep); }
  .principles-intro .large-copy { font-size: 26px; }
  .principles-intro p, .principles-list p, .principles-closing { font-size: 18px; line-height: 1.65; }
  .principles-list > div { grid-template-columns: 26px minmax(0, 1fr); gap: 10px 12px; padding-block: 24px; }
  .principles-list h3 { font-size: 25px; line-height: 1.25; overflow-wrap: anywhere; }
  .principles-list p { grid-column: 2; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid img { height: 126px; padding: 8px; }
  .partners-grid img { height: 110px; padding: 8px; }
  .partners-heading { margin-top: 56px; }
  .partners-heading h2 { font-size: 32px; }
  .partners-heading p { font-size: 18px; margin-top: 20px; color: #dde6eb; }
  .contact-section h2 { font-size: clamp(29px, 7.7vw, 42px); }
  .contact-grid { gap: 32px; margin-top: 32px; padding-top: 28px; }
  .contact-label { font-size: 14px; letter-spacing: .06em; }
  .phone { font-size: clamp(30px, 8.5vw, 40px); padding-block: 5px; }
  .email { font-size: 16px; line-height: 1.65; min-height: 48px; max-width: 100%; }
  .email span { margin-left: 4px; }
  .contact-grid p { font-size: 18px; line-height: 1.65; }
  .social-links { font-size: 16px; gap: 6px 20px; }
  .social-links a { display: flex; align-items: center; min-height: 48px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 18px; font-size: 14px; }
  .footer-inner > a { min-height: 44px; display: flex; align-items: center; }
  .footer-inner .footer-brand { display: block; width: 100%; font-size: 18px; }
  .footer-brand span { font-size: 12px; margin-top: 6px; }
  .back-top { margin-left: auto; }
}

@media (max-width: 360px) {
  .brand { font-size: 13px; }
  .brand img { width: 46px; height: 46px; }
  .hero h1 { font-size: 34px; }
  .cycle-ribbon { grid-template-columns: 1fr; font-size: 16px; gap: 12px; }
  .services-grid article, .services-grid .wide-service { padding: 22px 18px; }
  .services-grid h3 { font-size: 28px; }
  .map-viewer-header { align-items: flex-start; }
}
