/* Responsive layout for phones, tablets and touch input. Loaded after styles.css. */
html { -webkit-text-size-adjust: 100%; }
.hero > *, .studio-grid > *, .founder-grid > *, .contact-grid > *,
.service-grid > *, .portfolio-grid > *, .admin-project-row > * { min-width: 0; }
.hero-actions { flex-wrap: wrap; }
.project-details, .admin-project-row h3 { overflow-wrap: anywhere; }
.form-heading > b { flex-shrink: 0; }
.form-card input, .form-card textarea, .form-card select { max-width: 100%; }
.contact-whatsapp { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.contact-whatsapp:hover { color: var(--purple); }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: 0; padding-block: 64px 88px; }
  .hero h1 { font-size: clamp(46px, 5.5vw, 62px); }
  .hero-art { width: 100%; max-width: 500px; margin: 0; }
  .hero-actions { gap: 16px; }
  .hero-footnote { margin-top: 28px; }
  .holo-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: auto; padding: 20px 0; perspective: none; }
  .holo-card, .holo-web, .holo-world, .holo-scan { position: relative; inset: auto; width: 100%; height: 280px; transform: none; translate: none; animation: none; }
  .holo-card-label, .holo-card-foot { align-items: flex-start; flex-direction: column; gap: 5px; line-height: 1.5; }
  .holo-card-label > i { text-align: left; }
  .holo-stage::before, .holo-floor, .holo-axis { display: none; }
  .service-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-copy .intro { max-width: 55ch; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid > .form-card { width: 100%; max-width: 720px; }
  .channel-option { min-height: 48px; }
  .form-card input, .form-card textarea, .form-card select,
  .admin-upload-card input, .admin-upload-card textarea { font-size: 16px; }
  .form-card input, .form-card select, .form-card button { min-height: 48px; }
  .form-card textarea { min-height: 140px; }
  .form-card label, .channel-picker legend { font-size: 14px; }
  .form-heading p, .form-note { font-size: 12px; }
  .founder-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 32px; }
  .founder-name { font-size: clamp(44px, 5.5vw, 62px); }
  .founder-frame > small { right: 16px; bottom: 24px; left: 16px; letter-spacing: .05em; }
  .footer-main { flex-wrap: wrap; gap: 20px; padding-block: 24px; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  .nav-wrap { width: calc(100% - 40px); height: 72px; gap: 16px; }
  .brand-logo-frame { width: 180px; height: 48px; }
  .menu-toggle { display: flex; flex: 0 0 44px; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: #fff; }
  .menu-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); }
  .menu-toggle[aria-expanded=true] i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  #nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 24px #24163812; }
  #nav.open { display: flex; flex-direction: column; }
  #nav a { display: flex; align-items: center; min-height: 48px; padding: 12px; font-size: 15px; border-bottom: 1px solid var(--line); }
  #nav .nav-cta { align-self: stretch; justify-content: space-between; margin-top: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 48px 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(44px, 8vw, 72px); }
  .hero-description { max-width: 52ch; font-size: 16px; }
  .hero-art { justify-self: center; width: min(100%, 480px); margin: 0 auto; }
  .pixel-arena { inset: 12% 0 14%; transform: none; }
  .art-tag-top { top: 0; right: 8px; }
  .art-tag-bottom { right: 8px; bottom: 0; }
  .art-index { display: none; }
  .scroll-cue { position: static; justify-self: start; min-height: 44px; }
  .hero-coordinate { display: none; }
  .holo-heading, .title-row { align-items: flex-start; flex-direction: column; gap: 20px; }
  .heading, .holo-heading .heading { font-size: clamp(36px, 6vw, 56px); }
  .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .studio-copy .lead, .studio-copy > p:not(.lead) { max-width: 65ch; }
  .studio-copy, .founder-copy > p:not(.founder-label), .intro { font-size: 16px; }
  .lead { font-size: 18px; }
  .holograms, .studio, .services, .founder, .portfolio, .contact { padding-block: 64px; }
  .holo-disclaimer { font-size: 12px; }
  .footer-main > p { order: 3; width: 100%; }
  .footer-main .back-top { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 760px) {
  .holo-stage { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .holo-card, .holo-world { height: 300px; padding: 16px; }
  .holo-card-label, .holo-card-foot { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
  .holo-card-label { font-size: 10px; }
  .holo-card-foot { font-size: 9px; }
  .pixel-web-art, .pixel-world-art, .pixel-scan-art { max-width: 360px; align-self: center; }
  .founder-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .founder-visual { width: min(100%, 340px); margin: auto; }
  .founder-name { font-size: clamp(44px, 9vw, 60px); }
  .founder-label { margin-top: 24px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .nav-wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(40px, 10.5vw, 60px); letter-spacing: -.06em; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .button, .hero-actions .text-link { justify-content: center; min-height: 48px; font-size: 14px; }
  .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .hero-footnote { font-size: 9px; letter-spacing: .06em; gap: 8px; }
  .hero-art { margin-top: 16px; }
  .pixel-arena { inset: 14% 0 16%; transform: none; }
  .art-tag { max-width: calc(100% - 16px); padding: 6px 8px; font-size: 9px; }
  .art-tag-top { top: 2%; right: 8px; }
  .art-tag-bottom { right: 8px; bottom: 3%; }
  .art-index { display: none; }
  .arena-label { font-size: 8px; letter-spacing: 0; padding: 4px 6px; }
  .arena-label--top { top: 4%; left: 3%; }
  .arena-label--bottom { right: 3%; bottom: 3%; }
  .hero-art .pixel-battle { inset: 10% 0 6%; height: 84%; }
  .kicker { gap: 10px; font-size: 10px; letter-spacing: .08em; }
  .kicker > i { width: 24px; flex-shrink: 0; }
  .holo-caption { font-size: 10px; flex-wrap: wrap; }
  .service-grid, .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card { padding: 22px; }
  .service-card h3 { min-height: 0; font-size: 19px; }
  .service-card p { max-width: none; font-size: 15px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail p { font-size: 14px; }
  .detail small { font-size: 10px; }
  .form-card { padding: 20px 16px; }
  .channel-picker { flex-direction: column; gap: 8px; }
  .channel-option { flex: 0 0 auto; font-size: 14px !important; }
  .form-heading h3 { font-size: 18px; }
  .form-card button { font-size: 15px; }
  .footer-main { column-gap: 12px; }
  .footer-main .brand-logo-frame { width: 154px; height: 42px; }
  .footer-main .back-top { gap: 8px; font-size: 9px; }
  .footer-bottom { font-size: 10px; }
  .footer-bottom span:last-child { display: block; }
  .admin-public-link { max-width: 120px; text-align: right; font-size: 12px; }
  .admin-body .nav-wrap .brand-logo-frame { width: 140px; height: 42px; }
  .admin-auth-card .heading { overflow-wrap: anywhere; }
  .admin-heading-row .heading { font-size: 38px; }
  .admin-projects-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .admin-delete, .admin-logout, .project-link { min-height: 44px; }
}

@media (hover: none) {
  .service-card:hover, .portfolio-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-tag, .pixel-fighter, .pixel-punch, .impact-flash, .hit-spark, .holo-card { animation: none; }
}

/* Visible brand identity within each public page heading. */
.hero h1 .heading-brand, .heading .heading-brand {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 650;
  color: var(--purple);
}

/* Keep the exact brand as the main heading; the slogan remains supporting copy. */
.hero .hero-tagline {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 500;
}
.hero-tagline em { color: var(--purple); font-style: normal; }
.service-card[id] { scroll-margin-top: 110px; }
