/* Responsive layout, including touch screens and short landscape viewports. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { min-width: 0; }
.root { width: 100%; }
.root > section, .root > header, .root > footer { min-width: 0; }
.root h1, .root h2, .root h3, .root p, .contact-links, footer { overflow-wrap: anywhere; }
.root h1, .root h2, .root h3 { text-wrap: balance; }
.root img, .root video { max-width: 100%; }
button, a, [role="slider"] { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible, .member:focus-visible { outline: 2px solid #F2F2F2; outline-offset: 4px; }
.header-inner > *, .hero-intro > *, .case-summary > *, .dialog-header > *, .case-details > *, .case-feature > *, .contact-panel > *, .team-grid > * { min-width: 0; }
.menu-toggle { display: none; }
.hero-stage-wrap { width: 100%; max-width: 1100px; }
.hero-intro { display: grid !important; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: end; }
.hero-copy { width: 100%; }
.approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.member { min-width: 0; }
.member > div:last-child { line-height: 1.45; }
.member .alt { overflow-wrap: normal; }
.case-tabs, .media-thumbs { max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #525258 #161618; scroll-snap-type: x proximity; }
.case-tabs::-webkit-scrollbar, .media-thumbs::-webkit-scrollbar { display: block; height: 4px; }
.case-tabs::-webkit-scrollbar-thumb, .media-thumbs::-webkit-scrollbar-thumb { background: #525258; border-radius: 4px; }
.case-tabs > button, .media-thumbs > button { scroll-snap-align: start; }
.case-cover { aspect-ratio: 2.15 / 1 !important; }
.case-preview-video { opacity: 0; pointer-events: none; }
.case-preview-video.is-previewing { opacity: 1; }
.case-preview-video::-webkit-media-controls,
.case-preview-video::-webkit-media-controls-start-playback-button,
.case-preview-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.play-svg { display: block; flex-shrink: 0; pointer-events: none; }
.fopen .play-svg { width: 60%; height: 60%; }
.player-play-svg { margin: auto; }
.case-details { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important; }
.case-feature { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.case-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)) !important; }
.case-overlay { height: 100dvh; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.dialog-header { position: sticky; top: 0; z-index: 10; align-items: center !important; background: #161618; border-radius: 16px 16px 0 0; padding: 8px; gap: 8px !important; }
.dialog-title { min-width: 0 !important; flex: 1; padding: 8px 12px !important; overflow-wrap: anywhere; }
.dialog-actions { flex-shrink: 0; padding: 0 !important; }
.dialog-actions button { display: inline-flex; align-items: center; justify-content: center; }
.dialog-body { border-radius: 0 0 20px 20px !important; }
.case-player { max-height: 68dvh; }
.player-controls { min-width: 0; }
.player-controls [role="slider"] { min-width: 24px; min-height: 44px; background-position: center; background-repeat: repeat-x; background-size: 8px 8px; }
.player-controls .dotfill { top: 14px !important; bottom: 14px !important; }
.player-label { max-width: calc(100% - 24px); overflow-wrap: anywhere; letter-spacing: .03em !important; }
.case-player:has(.player-link) { max-height: none; }
.contact-links { flex: 1 1 260px; }
.contact-links a { gap: 12px; align-items: center; min-height: 48px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Automatic touch reveal is independent of hover/focus left behind by a tap. */
.root[data-team-auto="true"] .member .col,
.root[data-team-auto="true"] .member .alt { opacity: 0; }
.root[data-team-auto="true"] .member .rig { transform: none; }
.root[data-team-auto="true"] .member .panel { animation: none; }
.root[data-team-auto="true"] .spot, .root[data-team-auto="true"] .follow { display: none; }
.root[data-team-auto="true"] .member.is-centered .col,
.root[data-team-auto="true"] .member.is-centered .alt { opacity: 1; transform: none; }
.root[data-team-auto="true"] .member.is-centered .rig { transform: translateY(-6px); }
.root[data-team-auto="true"] .member .col { -webkit-mask-image: none; mask-image: none; transition: opacity .45s ease; }
.root[data-team-auto="true"] .member .alt { transition: opacity .3s ease, transform .3s ease; }

@media (max-width: 1100px) {
  .header-inner { gap: 14px !important; }
  .header-inner nav { gap: 16px !important; }
  .header-inner nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand span { font-size: 15px !important; }
  .hero-intro { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px !important; }
  .hero h1 { font-size: clamp(30px, 4.2vw, 48px) !important; line-height: 1.1 !important; }
  .contact-person { width: 100%; align-items: center !important; }
}
@media (max-width: 900px) {
  .header-inner { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; padding-block: 12px !important; }
  .brand { width: max-content; max-width: 100%; }
  .brand svg { flex-shrink: 0; }
  .brand span { font-size: clamp(12px, 2.4vw, 16px) !important; }
  .header-cta { display: none !important; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 76px; min-height: 44px; padding: 10px 12px; border-radius: 999px; border: 1px solid #3A3A3F; color: #F2F2F2; background: #161618; font: 12px 'JetBrains Mono', monospace; cursor: pointer; }
  .menu-toggle span { font-size: 18px; }
  .header-inner nav { display: none !important; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; padding-top: 10px; border-top: 1px solid #232327; }
  .site-header[data-menu-open="true"] nav { display: grid !important; }
  .header-inner nav a { padding: 10px 12px; border-radius: 10px; background: #111113; }
  .hero-stage-wrap { width: 100%; }
  .hero h1 { font-size: clamp(28px, 4.5vw, 42px) !important; }
  .hero-copy p { font-size: 14px !important; }
  .case-summary { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 16px !important; }
  .case-summary > .led { display: none; }
  .case-summary > div { flex-basis: auto !important; }
  .case-summary h3 { font-size: clamp(23px, 4vw, 36px) !important; line-height: 1.12 !important; }
  .case-summary .fopen { width: 52px !important; height: 52px !important; }
  .team-grid { gap: 32px 18px !important; }
  .member > div:last-child > div:first-child { font-size: 14px !important; }
  .member .alt { font-size: 11px !important; padding: 8px !important; }
  .case-feature { grid-template-columns: minmax(0, 1fr) !important; }
  .case-feature > a { min-height: 0 !important; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .hero, #cases, #contact, .header-inner, #approach > div, #team > div, .statement > div, footer > div { padding-left: max(18px, env(safe-area-inset-left)) !important; padding-right: max(18px, env(safe-area-inset-right)) !important; }
  .hero { padding-top: 28px !important; padding-bottom: 40px !important; gap: 24px !important; }
  .hero-intro { grid-template-columns: minmax(0, 1fr); gap: 22px !important; }
  .hero h1 { font-size: clamp(25px, 5.8vw, 34px) !important; line-height: 1.14 !important; letter-spacing: -.035em !important; }
  .hero-copy { max-width: 100% !important; gap: 18px !important; }
  .hero-copy p { max-width: 36ch; font-size: 14px !important; line-height: 1.65 !important; }
  .hero .stage { padding: 14px 10px 0 !important; border-radius: 14px !important; }
  .hero .stage .tab { font-size: 9px !important; padding: 5px 14px 5px 6px !important; }
  .hero-plaque { font-size: 8px !important; padding: 6px 8px !important; gap: 4px !important; letter-spacing: 0 !important; }
  .hero-plaque .blink { width: 5px !important; height: 5px !important; }
  .hero-sound { bottom: 6px !important; font-size: 8px !important; padding: 4px 6px !important; gap: 4px !important; letter-spacing: 0 !important; }
  .hero-sound svg { width: 12px; height: 12px; }
  .statement > div { padding-block: 32px !important; gap: 18px !important; }
  .statement > div > div:first-child { font-size: clamp(31px, 8.2vw, 48px) !important; line-height: 1.05 !important; }
  .statement > div > div:last-child { max-width: 100% !important; font-size: 13px !important; }
  .ticker { padding-block: 12px !important; }
  .ticker .led { font-size: 22px !important; }
  #cases, #approach > div, #team > div { padding-top: 48px !important; padding-bottom: 48px !important; gap: 26px !important; }
  .root h2 { font-size: clamp(27px, 6.8vw, 36px) !important; line-height: 1.14 !important; }
  .case-tabs > button { flex-basis: 178px !important; padding: 14px !important; }
  .case-tabs .ftab2-t { white-space: normal !important; font-size: 13px !important; }
  .case-preview { padding: 6px !important; box-shadow: none !important; }
  .case-cover { aspect-ratio: 4 / 3 !important; }
  .case-summary { padding: 18px 14px !important; }
  .case-summary h3 { font-size: clamp(21px, 5.5vw, 30px) !important; }
  .case-summary p { font-size: 13px !important; line-height: 1.6 !important; }
  .case-summary > div > div { font-size: 10px !important; line-height: 1.5; }
  .case-summary .fopen { width: 44px !important; height: 44px !important; align-self: end; }
  .approach-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
  .approach-grid .px { padding: 22px !important; min-height: 0 !important; }
  .approach-grid h3 { font-size: clamp(21px, 5.2vw, 28px) !important; }
  .approach-grid p { font-size: 14px !important; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 30px 16px !important; }
  .contact-panel { padding: 24px 20px !important; gap: 28px !important; }
  .contact-panel .led { font-size: clamp(25px, 6.8vw, 38px) !important; line-height: 1.15 !important; }
  .contact-panel p { font-size: 14px !important; }
  .contact-person { gap: 18px !important; }
  .contact-portrait { width: 104px !important; }
  .contact-links { width: 100%; min-width: 0 !important; flex-basis: 100%; }
  .contact-links a { padding: 14px !important; font-size: clamp(12px, 3.4vw, 15px) !important; }
  #contact { padding-bottom: 48px !important; }
  footer > div { gap: 20px !important; padding-block: 28px !important; }
  footer > div > div { width: 100%; }
  footer > div > div:first-child > span:first-child { font-size: 16px !important; }
  .case-overlay { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important; }
  .dialog-header { flex-wrap: wrap; gap: 4px !important; padding: 6px !important; }
  .dialog-title { flex: 1 1 100%; padding: 6px 8px !important; gap: 3px !important; }
  .dialog-title > span:last-child { font-size: 13px !important; }
  .dialog-actions { width: 100%; justify-content: flex-end; gap: 8px !important; }
  .dialog-actions .fclose { margin-left: auto; }
  .dialog-body { padding: 10px !important; gap: 22px !important; }
  .player-controls { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto 44px; gap: 6px 8px !important; padding: 10px !important; }
  .player-controls > button:first-child { width: 44px !important; height: 44px !important; }
  .player-controls > span { min-width: 0 !important; font-size: 10px !important; font-variant-numeric: tabular-nums; }
  .player-controls > [role="slider"] { grid-row: 2; grid-column: 1 / -1; }
  .player-controls > button:nth-last-child(2) { padding-inline: 8px !important; font-size: 9px !important; }
  .player-label { top: 8px !important; left: 8px !important; font-size: 9px !important; padding: 5px 7px !important; }
  .media-thumbs > button { flex-basis: 148px !important; }
  .media-thumbs > button > div:first-child { height: 84px !important; }
  .case-dialog h3 { font-size: clamp(25px, 6.8vw, 36px) !important; line-height: 1.1 !important; }
  .case-dialog p { font-size: 14px !important; }
  .case-details, .case-facts { gap: 16px !important; padding-inline: 0 !important; }
  .case-feature { margin-inline: 0 !important; }
  .case-feature > div { padding: 18px !important; }
  .case-player:has(.player-link) { aspect-ratio: auto !important; min-height: 350px; }
  .player-link { padding: 18px !important; gap: 12px !important; }
  .player-link > div > div:first-child { font-size: 22px !important; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: minmax(0, 1fr) !important; width: 100%; max-width: 340px; margin-inline: auto; gap: 36px !important; }
  .member > div:last-child > div:first-child { font-size: 17px !important; }
  .member .alt { font-size: 12px !important; padding: 10px !important; }
}
/* All six project folders stay visible together on computer-sized screens. */
@media (min-width: 901px) {
  .case-tabs { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible !important; scroll-snap-type: none; }
  .case-tabs > button { min-width: 0; min-height: 96px; padding: 14px 10px !important; justify-content: flex-start; }
  .case-tabs > button[aria-selected="true"] { min-height: 104px; }
  .case-tabs > button > span:first-child { font-size: clamp(9px, .78vw, 11px) !important; line-height: 1.4; letter-spacing: .04em !important; }
  .case-tabs .ftab2-t { white-space: normal !important; overflow-wrap: normal; font-size: clamp(12px, 1.1vw, 14px) !important; line-height: 1.4; }
}
@media (max-width: 350px) {
  .player-controls > span { font-size: 9px !important; }
}
/* Landscape uses the available width; height never determines a 320px stage. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1200px) {
  .hero { padding-block: 20px 30px !important; gap: 22px !important; }
  .hero-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px !important; }
  .hero h1 { font-size: clamp(24px, 3.8vw, 38px) !important; }
  .hero-copy p { font-size: 12px !important; }
  .hero-copy .btn-lime { font-size: 12px !important; padding: 12px 16px !important; }
  .hero-stage-wrap { max-width: 740px; }
  .hero .stage { padding-top: 14px !important; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: none; }
  .member .alt { font-size: 10px !important; }
  .case-overlay { padding-block: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom)) !important; }
  .dialog-header { flex-wrap: nowrap; }
  .dialog-title { flex: 1 !important; padding: 4px 8px !important; }
  .dialog-title > span:first-child { font-size: 9px !important; }
  .dialog-actions { width: auto; }
  .case-player { aspect-ratio: auto !important; height: clamp(140px, calc(100dvh - 170px), 370px); max-height: none; }
  .case-player:has(.player-link) { height: auto; min-height: 280px; }
  .player-controls { padding-block: 6px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .member .col, .member .alt, .member .rig { transition: none !important; }
  .member .panel { animation: none !important; }
}
