/* 29.09.2026 — wider desktop margins and a continuous mobile composition.
   Animation modules/layers, brand artwork, venue collage and partner styles
   remain in their original files. This sheet only adapts their surroundings. */

/* The film is already color graded. Retain only a very light edge tint;
   the existing silhouette mask, not a blur filter, blends it into the page. */
.hero-video, .hero-video-poster { filter: none; }
.hero-image::after { background: linear-gradient(180deg, #04172f05, #04172f14); }

/* Retain 75% of the previous desktop side gutter, including on ultrawides.
   Do not change --max: the approved venue photo strip uses that value. */
@media (min-width: 1151px) {
  :root { --page-gutter: max(36px, calc(37.5vw - 510px)); }
  .wrap { width: calc(100% - var(--page-gutter) - var(--page-gutter)); }
  .header { padding-inline: var(--page-gutter); }
}

@media (min-width: 801px) {
  .mobile-nav { display: none; }
}

@media (max-width: 800px) {
  .header { height: 68px; }
  .mobile-nav {
    top: 68px;
    max-height: calc(100svh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-toggle { min-width: 44px; flex-shrink: 0; }

  /* The film is part of the hero, with open picture space between the brand
     and the message. There is no separate video block below the buttons. */
  .hero { min-height: 700px; min-height: max(700px, 100svh); align-items: stretch; }
  .hero-copy {
    min-height: inherit;
    margin-block: 0;
    padding-block: 100px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-copy > * { flex-shrink: 0; }
  .hero-copy .eyebrow {
    font-size: .75rem;
    letter-spacing: .08em;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .hero-image {
    inset: 18% -22% 12%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  }
  .hero-shade {
    background: linear-gradient(180deg, #04172f 0%, #04172ff2 16%, #04172f3d 35%, #04172f1a 49%, #04172fdb 66%, #04172f 86%);
  }
  .hero-copy .red-rule { margin: auto 0 18px; }
  .hero-description {
    max-width: 26ch;
    font-size: 1.25rem;
    line-height: 1.25;
    text-wrap: balance;
    margin-bottom: 6px;
  }
  .hero-sub { font-size: 1rem; line-height: 1.5; margin-bottom: 22px; }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 490px);
    max-width: none;
    gap: 10px;
  }
  .hero-actions .button { min-width: 0; min-height: 50px; font-size: .9375rem; }
  .hero-motto {
    margin-top: 22px;
    font-size: .75rem;
    line-height: 1.5;
    letter-spacing: .12em;
    gap: 12px;
  }
  .scroll-hint { display: none; }

  .services .section-heading { margin-bottom: 28px; }
  .services h2, .team-values h2 {
    font-size: clamp(1.875rem, 5.6vw, 2.6rem);
    line-height: 1.12;
    text-wrap: balance;
  }
  .services h2 .mobile-only { display: none; }
  .service-meta h3 { overflow-wrap: break-word; line-height: 1.25; }
  .service-meta p { font-size: 1rem; line-height: 1.5; }

  .team-values .section-lead {
    max-width: 30ch;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #edf6ff;
    margin-bottom: 28px;
  }
  .team-values-copy { gap: 24px; }
  .team-values-copy p { line-height: 1.7; }
  .team-values-copy p + p { padding-top: 24px; border-top: 1px solid #739ab638; }
  .contact h2 { font-size: clamp(2.6rem, 7vw, 3rem); line-height: 1.08; }
  .project-form { padding: 20px; }
  #contact-links a { overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .hero-actions { grid-template-columns: minmax(0, 1fr); max-width: 390px; gap: 4px; }
  .hero-actions .button.primary { min-height: 52px; }
  .hero-actions .button.glass {
    justify-content: flex-start;
    padding-inline: 0;
    min-height: 44px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-card { border-radius: 8px; }
  /* Preserve the exact aspect ratio/crop of the approved first two images. */
  .service-art { aspect-ratio: 2.32; height: auto; }
  .service-art svg { position: absolute; left: 20px; bottom: 14px; margin: 0; width: 34px; height: 34px; }
  .service-meta { padding: 20px; }
  .service-meta h3 { font-size: 1.25rem; padding-right: 22px; margin-bottom: 7px; }
  .service-meta .arrow { right: 20px; top: 20px; }
  .service-meta p { max-width: 34ch; }
  .project-form { padding: 18px; }
  .project-form label { font-size: .875rem; }

  /* A phone-width portfolio, with persistent title, close and contact action. */
  .service-dialog[open] {
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .service-detail-head { padding: calc(20px + env(safe-area-inset-top, 0px)) 70px 18px 20px; }
  .service-detail-head .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  .service-detail-head .dialog-title { font-size: clamp(1.35rem, 5.4vw, 1.65rem); overflow-wrap: break-word; }
  .service-dialog .dialog-close { top: calc(15px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; }
  .service-detail-scroll { padding-inline: 20px; }
  .service-detail-intro, .service-project-description, .service-project-list { font-size: 1rem; line-height: 1.65; }
  .service-detail-tags span, .service-project-kicker, .service-photo figcaption { font-size: .75rem; }
  .service-detail-index { gap: 4px 16px; }
  .service-detail-index button { min-height: 44px; font-size: .875rem; padding-block: 9px; }
  .service-detail-foot { padding-inline: 20px; }
  .service-detail-foot .button { min-height: 52px; font-size: 1rem; }
}

/* Wide phones and tablets use a side-by-side hero; narrow portrait phones
   retain the approved composition above. The animation layers are unchanged. */
@media (min-width: 480px) and (max-width: 1150px) and (orientation: landscape),
       (min-width: 701px) and (max-width: 1150px) and (orientation: portrait) {
  .hero { min-height: clamp(520px, 78svh, 720px); align-items: center; }
  .hero-copy {
    --compact-copy-width: 49%;
    display: block;
    min-height: 0;
    margin-block: 0;
    padding-block: clamp(92px, 13svh, 112px) 36px;
  }
  .hero-copy > * { max-width: var(--compact-copy-width); }
  .hero-copy .eyebrow { font-size: .75rem; letter-spacing: .055em; line-height: 1.6; margin-bottom: 12px; }
  .hero-copy .hero-brand-heading { width: var(--compact-copy-width); max-width: var(--compact-copy-width); }
  .hero-copy .red-rule { width: 80px; max-width: 80px; margin: 14px 0 18px; }
  .hero-description { font-size: clamp(1.125rem, 2.2vw, 1.45rem); line-height: 1.3; margin-bottom: 6px; text-wrap: balance; }
  .hero-sub { font-size: 1rem; line-height: 1.5; margin-bottom: 20px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: var(--compact-copy-width); max-width: var(--compact-copy-width); gap: 10px; }
  .hero-actions .button { min-width: 0; min-height: 48px; padding: 12px 10px; font-size: .875rem; gap: 8px; }
  .hero-actions .button.glass { justify-content: center; border: 1px solid #b1cbe2; background: #071c36d9; box-shadow: none; }
  .hero-motto { margin-top: 22px; font-size: .75rem; line-height: 1.5; letter-spacing: .08em; gap: 10px; }
  .hero-image { inset: 72px -8% 5% 44%; height: auto; -webkit-mask-image: url('assets/video/hero-flow-mask.svg'); mask-image: url('assets/video/hero-flow-mask.svg'); }
  .hero-shade { background: linear-gradient(90deg,#04172ff7 0%,#04172fd9 31%,#04172f2b 57%,#04172f00 75%),linear-gradient(0deg,#04172f 0%,transparent 18%); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .service-meta h3 { font-size: 1.2rem; }
  .service-meta p { font-size: .9375rem; }
}

/* Low landscape viewports leave room for the portfolio itself between controls. */
@media (min-width: 480px) and (max-width: 1150px) and (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: 480px; }
  .hero-copy { padding-block: 84px 26px; }
  .hero-copy .eyebrow { margin-bottom: 8px; }
  .hero-copy .red-rule { margin-block: 8px 12px; }
  .hero-sub { margin-bottom: 14px; }
  .hero-motto { margin-top: 18px; }
  .service-dialog[open] { width: calc(100% - 20px); height: 96dvh; max-height: 96dvh; margin: auto; border-radius: 8px; }
  .service-detail-head { padding: 16px 70px 16px 20px; }
  .service-detail-head .eyebrow { display: none; }
  .service-detail-head .dialog-title { font-size: 1.4rem; }
  .service-dialog .dialog-close { top: 9px; right: 12px; }
  .service-detail-scroll { padding: 20px; }
  .service-project-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
  .service-detail-foot { padding: 10px 20px; }
  .service-detail-foot p { display: none; }
  .service-detail-foot .button { min-height: 46px; }
}

@media (hover: none) {
  .service-card:hover, .button:hover { transform: none; }
}

/* 08.10.2026: the requested sixth venue extends the approved lower photo strip.
   Medeo remains the leading panorama; existing photos retain their sequence. */
.venue-secondary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.venue-secondary .venue-sunkar { object-position: center top; }
@media (max-width: 700px) {
  .objects { padding-bottom: 330px; }
  .venue-secondary { height: 276px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 74px 74px 116px; }
  .venue-secondary .venue-sunkar { grid-column: 1 / -1; height: 116px; }
  .objects::after { bottom: 300px; }
}

/* Clear, always-visible service affordance on touch screens and desktop. */
.service-card .service-meta { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.service-card .service-meta h3 { padding-right: 0; }
.service-card .service-meta > p { flex: 1; }
.service-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 2px 8px 2px 15px;
  border: 1px solid #578ab16b;
  border-radius: 6px;
  background: #0b2b455c;
  color: #d8f1ff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
}
.service-more-atom { display: block; position: relative; width: 52px; height: 46px; flex: 0 0 52px; pointer-events: none; }
.service-atom-fallback, .service-atom-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.service-atom-canvas { opacity: 0; filter: url(#trust-brand-clear-matte); }
.service-atom-ready .service-atom-canvas { opacity: 1; }
.service-atom-ready .service-atom-fallback { visibility: hidden; }
.service-card:hover .service-more, .service-card:focus-visible .service-more { color: #fff; border-color: #80c9ef; background: #133f5b; }

/* 10.10.2026: a more compact, composed portrait-phone presentation. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero { min-height: 540px; align-items: center; }
  .hero-copy { display: block; min-height: 0; padding-block: 94px 28px; }
  .hero-copy .eyebrow { max-width: 82%; font-size: .75rem; letter-spacing: .035em; line-height: 1.5; margin-bottom: 12px; }
  .hero-copy .hero-brand-heading { width: 78%; max-width: 340px; }
  .hero-copy .red-rule { width: 64px; margin: 14px 0 18px; }
  .hero-description { max-width: 64%; font-size: 1.125rem; line-height: 1.3; margin-bottom: 8px; }
  .hero-sub { max-width: 62%; font-size: .9375rem; line-height: 1.5; margin-bottom: 24px; }
  .hero-image { inset: 115px -34% 15% 39%; height: auto; -webkit-mask-image: url('assets/video/hero-flow-mask.svg'); mask-image: url('assets/video/hero-flow-mask.svg'); }
  .hero-shade { background: linear-gradient(90deg,#04172ff5 0%,#04172fdf 26%,#04172f70 48%,#04172f10 76%),linear-gradient(0deg,#04172f 0%,#04172fdf 15%,transparent 44%); }
  .hero-actions { width: 100%; max-width: 370px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .hero-actions .button { min-height: 48px; padding: 10px 9px; font-size: .8125rem; line-height: 1.3; gap: 6px; }
  .hero-actions .button.primary { min-height: 48px; }
  .hero-actions .button.glass { justify-content: center; padding: 10px 9px; border: 1px solid #b1cbe2; background: #071c36d9; }
  .hero-motto { width: 100%; margin-top: 20px; gap: 12px; font-size: .75rem; letter-spacing: .08em; }
}

@media (max-width: 600px) {
  .services, .team-values, .contact { padding-block: 38px; }
  .services .section-heading { margin-bottom: 22px; }
  .services h2, .team-values h2, .objects h2 { font-size: clamp(1.5rem,6vw,1.9rem); line-height: 1.15; }
  .contact h2 { font-size: 2rem; }
  .services .eyebrow, .team-values .eyebrow, .objects .eyebrow { font-size: .75rem; margin-bottom: 14px; letter-spacing: .1em; }
  .services .red-rule, .team-values .red-rule, .objects .red-rule { margin-block: 18px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .service-card .service-meta { padding: 14px 12px; }
  .service-card .service-meta h3 { font-size: 1rem; line-height: 1.25; margin-bottom: 8px; }
  .service-card .service-meta p { font-size: .875rem; line-height: 1.5; }
  .service-art svg { width: 28px; height: 28px; left: 12px; bottom: 10px; }
  .service-more { width: 100%; margin-top: 16px; min-height: 42px; padding: 2px 6px; gap: 4px; justify-content: space-between; font-size: .8125rem; }
  .service-more-atom { width: 36px; height: 34px; flex-basis: 36px; }
  .team-values .section-lead { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 22px; }
  .team-values-copy { gap: 18px; }
  .team-values-copy p { font-size: .9375rem; line-height: 1.65; }
  .team-values-copy p + p { padding-top: 18px; }
  .object-statement p { font-size: 1.125rem; }
  .object-row { gap: 14px; padding-block: 14px; }
  .object-row h3 { font-size: 1rem; }
  .contact .section-lead { font-size: 1rem; }
  .service-detail-head .dialog-title { font-size: 1.3rem; }
  .service-detail-intro, .service-project-description, .service-project-list { font-size: .9375rem; line-height: 1.6; }
  .service-project h3 { font-size: 1.3rem; }
  .service-system-card h4 { font-size: 1.2rem; }
  .service-system-text { font-size: .9375rem; }
}

@media (max-width: 359px) {
  .service-card .service-meta { padding-inline: 10px; }
  .service-card .service-meta h3 { font-size: .875rem; }
  .service-more { padding-inline: 4px; }
  .service-more-atom { width: 28px; height: 30px; flex-basis: 28px; }
}
