/* VIZOMM responsive edition — desktop remains the V5 baseline.
   Breakpoints: tablet 1100/900px; phone 700/480px.
   This file must be loaded AFTER styles.css. */
:root{--v-mobile-gutter:clamp(18px,4.5vw,42px)}
html{scroll-padding-top:90px}
img,video,svg{max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
section{min-width:0}
.section .container,.footer-top,.footer-bottom{min-width:0}
@media(max-width:1100px){
  .container{width:calc(100% - 2*var(--v-mobile-gutter))!important;max-width:1120px}
  header{padding-inline:var(--v-mobile-gutter)!important}
  nav{gap:clamp(9px,1.35vw,20px)!important}
  nav a{font-size:10px!important}
  .section{padding-top:clamp(64px,8vw,100px);padding-bottom:clamp(64px,8vw,100px)}
  .package-grid{gap:12px!important}
  .package{padding:26px 20px!important}
  .package h3{font-size:clamp(22px,2.8vw,31px)}
  .about-grid{gap:5%!important}
  .about-photo{min-height:0!important}
  .footer-top{gap:24px!important}
}
@media(max-width:900px){
  html{scroll-padding-top:80px}
  header{height:82px!important;min-height:82px!important}
  #header .brand{margin-top:7px!important}
  nav{gap:12px!important}
  .hero{height:min(900px,95svh);min-height:610px}
  .hero-copy{left:var(--v-mobile-gutter)!important;right:var(--v-mobile-gutter)!important;max-width:min(780px,90%)!important}
  .hero h1{font-size:clamp(54px,8.3vw,86px)!important;line-height:1.07!important}
  .intro-layout,.book-layout,.about-grid,.contact-grid{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .intro-layout>*,.book-layout>*,.about-grid>*,.contact-grid>*{min-width:0}
  .section-head{gap:25px!important}
  .book-stage{width:100%;max-width:790px;margin:0 auto}
  .book{width:100%}
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .package-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .package-grid>.package:last-child{grid-column:1/-1;max-width:600px;width:100%;justify-self:center}
  .package{min-height:0!important}
  .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .review-grid>.review:last-child{grid-column:1/-1}
  .about-photo.about-logo-portrait{height:auto!important;min-height:0!important;width:min(650px,100%);margin:auto}
  .about-logo-portrait .founder-artwork{aspect-ratio:auto!important}
  .contact-form{max-width:720px;width:100%;margin:auto}
}
@media(max-width:700px){
  html,body{max-width:100%}
  html{scroll-padding-top:76px}
  .container{width:calc(100% - 2*var(--v-mobile-gutter))!important}
  header,#header{height:75px!important;min-height:75px!important;padding-inline:var(--v-mobile-gutter)!important}
  #header .brand{width:98px!important;min-width:98px!important;max-width:98px!important;margin-top:8px!important}
  #header .brand .brand-emblem{width:96px!important;height:56px!important;min-height:56px!important}
  .menu-btn{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;padding:0!important;font-size:25px;z-index:3}
  #nav{display:none!important;position:absolute!important;top:75px!important;left:0!important;right:0!important;width:100%!important;max-height:calc(100dvh - 75px);overflow-y:auto;background:rgba(249,247,242,.98)!important;color:#292923!important;box-shadow:0 16px 30px #302a2118;flex-direction:column!important;gap:0!important;align-items:stretch!important;padding:14px var(--v-mobile-gutter) 22px!important;z-index:2}
  #nav.open{display:flex!important}
  #nav a{display:flex!important;align-items:center;min-height:48px!important;padding:12px 4px!important;color:#292923!important;font-size:13px!important;border-bottom:1px solid #d9d3c9}
  #nav .nav-contact{margin:14px 0 0!important;justify-content:center;border:1px solid #ad9980!important;padding:14px!important}
  .hero{height:100svh!important;min-height:600px!important;max-height:950px;overflow:hidden}
  .hero-video{width:100%;height:100%;object-fit:cover!important;object-position:50% 50%!important}
  .hero-gradient{background:linear-gradient(90deg,rgba(10,12,11,.62),rgba(10,12,11,.20)),linear-gradient(to top,rgba(247,245,240,.98),transparent 19%)!important}
  .hero-copy{left:var(--v-mobile-gutter)!important;right:var(--v-mobile-gutter)!important;max-width:calc(100% - 2*var(--v-mobile-gutter))!important;top:48%!important}
  .hero h1{font-size:clamp(43px,11.7vw,73px)!important;line-height:1.1!important;overflow-wrap:normal}
  .hero-kicker{font-size:9px!important;letter-spacing:.15em!important}
  .hero-desc{font-size:clamp(13px,3.5vw,15px)!important;line-height:1.65!important;max-width:450px}
  .hero-ctas{gap:12px!important;margin-top:20px!important}
  .quiet-link{display:inline-flex;min-height:44px;align-items:center}
  .hero-foot{left:var(--v-mobile-gutter)!important;right:var(--v-mobile-gutter)!important;bottom:23px!important}
  .section{padding-top:70px!important;padding-bottom:70px!important}
  h2{font-size:clamp(36px,9vw,62px)!important;line-height:1.15!important}
  h3{max-width:100%}
  .section-head{margin-bottom:25px!important}
  .intro-layout,.book-layout,.about-grid,.contact-grid{gap:25px!important}
  .large-copy{font-size:16px!important;line-height:1.7!important}
  .gallery-tabs{display:flex!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;gap:12px!important;padding-bottom:12px!important}
  .gallery-tab{flex:0 0 clamp(115px,35vw,165px)!important;min-width:0!important;scroll-snap-align:start}
  .gallery-tab img{aspect-ratio:1.5!important}
  .comparison{width:100%;height:clamp(290px,72vw,500px)!important;min-height:0!important;touch-action:pan-y}
  .comparison-tag{font-size:9px!important;padding:7px 9px!important;bottom:12px!important}
  .gallery-meta{gap:12px!important}
  .book-layout{display:block!important}
  .book-stage{margin-top:18px}
  .book{aspect-ratio:1.35!important}
  .book-page h3{font-size:clamp(16px,4.3vw,25px)!important}
  .book-page p{font-size:clamp(9px,2.8vw,12px)!important}
  .book-intro>p{font-size:clamp(28px,7vw,42px)!important}
  .book-nav button,.gallery-arrows button{min-width:44px;min-height:44px}
  .process-grid,.package-grid,.review-grid{grid-template-columns:minmax(0,1fr)!important}
  .process-card{margin-right:0!important;padding:22px 0!important;min-height:0!important;border-right:0!important}
  .package-grid>.package:last-child,.review-grid>.review:last-child{grid-column:auto!important;max-width:none!important}
  .package{padding:26px!important;min-height:0!important}
  .package-price{font-size:clamp(40px,11vw,55px)!important}
  .package-details-toggle{min-height:44px}
  .about-logo-portrait .founder-artwork{width:100%!important}
  .about-photo.about-logo-portrait{height:auto!important;min-height:0!important;overflow:visible!important}
  .about-photo .photo-caption{position:relative!important;bottom:auto!important;left:auto!important;text-align:center!important;margin-top:18px!important;color:#302e29!important}
  .about-photo .photo-caption span{color:#9b8061!important}
  .review{min-height:0!important}
  .contact-form{padding:clamp(18px,5vw,26px)!important}
  .contact-form input,.contact-form select,.contact-form textarea{min-height:44px;font-size:16px!important}
  footer{padding-top:12px!important;padding-bottom:10px!important}
  footer .footer-top{display:grid!important;grid-template-columns:1fr auto!important;gap:8px 15px!important;align-items:center!important;padding-bottom:12px!important}
  footer .footer-top .brand{grid-row:1/3;width:115px!important;min-width:115px!important;max-width:115px!important}
  footer .footer-top .brand .brand-emblem{width:112px!important;height:55px!important;min-height:55px!important}
  footer .footer-top p{font-size:clamp(14px,3.8vw,21px)!important;line-height:1.3!important;text-align:right}
  footer .footer-top>a:last-child{font-size:9px!important;text-align:right}
  footer .footer-bottom{display:flex!important;flex-wrap:wrap;gap:5px 16px!important;font-size:8px!important;line-height:1.6!important}
  .chapter-bridge{height:100svh!important;min-height:520px!important}
  .bridge-sticky{min-height:0!important}
  .package-floating-logos,.contact-flying-marks{pointer-events:none}
  .package-floating-logos .package-flying-logo.flying-soft-cloud,#contact .contact-flying-m2.flying-soft-cloud{width:clamp(270px,85vw,550px)!important}
  #m2-first-visit-screen .m2-intro-title{max-width:94vw!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
}
@media(max-width:480px){
  :root{--v-mobile-gutter:19px}
  .hero h1{font-size:clamp(40px,11.1vw,54px)!important}
  .hero-desc{font-size:13px!important}
  .hero-kicker{font-size:8px!important}
  .book-page h3{font-size:15px!important}
  .book-page p{font-size:9px!important;line-height:1.4!important}
  .comparison{height:clamp(270px,76vw,350px)!important}
  .footer-top p{letter-spacing:-.03em}
}
@media(hover:none) and (pointer:coarse){
  a,button{ -webkit-tap-highlight-color:transparent }
  .gallery-tab,.package-details-toggle,.book-nav button,.menu-btn{touch-action:manipulation}
  .package:hover,.review:hover,.book:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal{opacity:1!important;transform:none!important;filter:none!important}
}

/* VIZOMM responsive refinement 02 — full-viewport first impression,
   dependable navigation and complete project-journey imagery. */
html,body{width:100%;min-width:0}
.hero{
  height:100vh!important;
  height:100svh!important;
  min-height:0!important;
  max-height:none!important;
  width:100%!important;
  overflow:hidden!important;
}
.hero .hero-video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%;min-height:100%;
  object-fit:cover!important;
  object-position:center center!important;
}
/* Hold the ivory transition until scrolling begins. */
.hero::after{opacity:var(--hero-scroll-fade,0)!important;transition:opacity .18s linear!important}
.hero .hero-gradient{background:linear-gradient(90deg,rgba(9,11,10,.48),rgba(12,13,11,.16) 65%,rgba(12,13,11,.04))!important}
html.m2-first-visit .hero .hero-gradient{background:linear-gradient(90deg,rgba(9,11,10,.46),rgba(12,13,11,.22) 60%,rgba(12,13,11,.06))!important}
html.m2-first-visit .hero::after{opacity:var(--hero-scroll-fade,0)!important}
.hero-copy,.hero-foot{z-index:3}
/* Keep the desktop menu, but switch to the safe right-aligned trigger
   before iPad navigation could become squeezed. */
@media(max-width:1100px){
 #header{position:fixed!important;left:0!important;right:0!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding-left:var(--v-mobile-gutter)!important;padding-right:var(--v-mobile-gutter)!important}
 #header .brand{flex:0 0 auto!important}
 #header .menu-btn{
  position:relative!important;display:flex!important;flex:0 0 46px!important;
  width:46px!important;min-width:46px!important;height:46px!important;
  align-items:center!important;justify-content:center!important;
  margin:0 0 0 auto!important;padding:0!important;
  border-radius:8px!important;z-index:50!important;
  background:rgba(22,25,23,.46)!important;color:white!important;
  font-size:27px!important;line-height:1!important;
  backdrop-filter:blur(8px);
 }
 #header.header-light-text .menu-btn,#header.scrolled .menu-btn{
  background:rgba(247,245,240,.96)!important;color:#292923!important;
  box-shadow:0 0 0 1px rgba(80,71,61,.12)!important;
 }
 #nav{
  position:absolute!important;top:100%!important;left:0!important;right:0!important;
  display:none!important;width:100%!important;max-height:calc(100dvh - 75px)!important;
  overflow-y:auto!important;background:rgba(249,247,242,.98)!important;color:#292923!important;
  box-shadow:0 16px 30px #302a2118!important;
  flex-direction:column!important;gap:0!important;align-items:stretch!important;
  padding:14px var(--v-mobile-gutter) 22px!important;z-index:40!important;
 }
 #nav.open{display:flex!important}
 #nav a{display:flex!important;align-items:center!important;min-height:48px!important;padding:12px 4px!important;color:#292923!important;font-size:13px!important;border-bottom:1px solid #d9d3c9!important}
 #nav .nav-contact{margin:14px 0 0!important;justify-content:center!important;border:1px solid #ad9980!important;padding:14px!important}
}
/* Project journey: never crop project imagery, at any size. */
.timeline-showcase .journey-visual{
  display:grid!important;place-items:center!important;
  min-height:0!important;aspect-ratio:3/2!important;
  overflow:hidden!important;background:#f5f1e9!important;
}
.timeline-showcase .journey-visual img,
.timeline-showcase .journey-visual img[src$="blueprint.jpg"]{
  position:relative!important;inset:auto!important;
  width:100%!important;height:100%!important;max-width:100%!important;
  display:block!important;object-fit:contain!important;object-position:center!important;
}
.timeline-showcase .journey-image-tag{z-index:2}
@media(min-width:851px){
 .timeline-showcase{min-height:0!important;align-items:stretch!important}
 .timeline-showcase .journey-visual{min-height:0!important;aspect-ratio:3/2!important}
}
@media(max-width:900px){
 .hero{height:100svh!important;min-height:0!important;max-height:none!important}
 .timeline-showcase{grid-template-columns:minmax(0,1fr)!important}
 .timeline-showcase .journey-visual{min-height:0!important;aspect-ratio:3/2!important}
 .journey-showcase-copy{min-width:0!important}
 .section-head h2,.journey-showcase-copy h3{overflow-wrap:break-word}
 .book-stage,.book,.journey-experience,.journey-showcase,.journey-intro{max-width:100%;min-width:0}
}
@media(max-width:700px){
 .hero{height:100svh!important;min-height:0!important;max-height:none!important}
 .hero .hero-gradient{background:linear-gradient(90deg,rgba(10,12,11,.58),rgba(10,12,11,.18))!important}
 .hero-copy{top:48%!important}
 .hero h1{font-size:clamp(38px,10.5vw,70px)!important}
 .hero-desc{max-width:min(100%,450px)}
 .hero-foot{bottom:18px!important}
 .timeline-showcase .journey-visual{aspect-ratio:3/2!important}
 .timeline-showcase .journey-showcase-copy{padding:clamp(18px,5vw,28px)!important}
 .timeline-name{font-size:11px!important}
 .intro img,.about img,.work img,.process img,.packages img,.stories img,.contact img{max-width:100%}
 .about-logo-portrait .founder-artwork img.founder-art-single{height:auto!important}
 .section-head,.section-aside,.about-copy,.journey-intro,.journey-showcase-copy{min-width:0;max-width:100%}
 .section-head p,.journey-intro p,.journey-showcase-copy p,.about-copy p{overflow-wrap:break-word}
}
@media(max-width:390px){
 .hero h1{font-size:clamp(34px,10vw,41px)!important}
 .hero-copy{top:48%!important}
 .hero-kicker{margin-bottom:12px!important}
 .hero-desc{line-height:1.45!important}
 .hero-ctas{margin-top:12px!important}
 .timeline-showcase .journey-visual{aspect-ratio:3/2!important}
}

/* VIZOMM responsive refinement 03 — true viewport-width layout and balanced pricing. */
html,body{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow-x:clip!important;
}
body{position:relative}
main,footer,header,.section,.container{min-width:0;max-width:100%}
.container{box-sizing:border-box}
/* Explicitly keep all three packages aligned across iPad mini and other tablets. */
@media(min-width:701px) and (max-width:1100px){
 #packages .package-grid{
   display:grid!important;
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:clamp(9px,1.25vw,16px)!important;
   align-items:stretch!important;
 }
 #packages .package-grid>.package,
 #packages .package-grid>.package:last-child{
   grid-column:auto!important;
   width:100%!important;
   max-width:none!important;
   min-width:0!important;
   min-height:0!important;
   align-self:stretch!important;
   justify-self:stretch!important;
   padding:clamp(12px,2vw,22px)!important;
 }
 #packages .package h3{font-size:clamp(17px,2.25vw,25px)!important;line-height:1.2!important;overflow-wrap:anywhere}
 #packages .package-index{font-size:9px!important;letter-spacing:.09em!important}
 #packages .package-price{font-size:clamp(31px,4.7vw,51px)!important;white-space:normal!important}
 #packages .package-price small{font-size:10px!important}
 #packages .package p,#packages .package li{font-size:clamp(10px,1.35vw,13px)!important;overflow-wrap:anywhere}
 #packages .package ul{padding-left:13px!important;line-height:1.65!important}
 #packages .package-cta,#packages .package-details-toggle{font-size:clamp(10px,1.3vw,12px)!important;min-width:0!important;overflow-wrap:anywhere}
 #packages .popular{right:8px!important;font-size:8px!important;letter-spacing:.06em!important}
}
/* Phones always use one full-width card; no sideways travel between offerings. */
@media(max-width:700px){
 #packages .package-grid{
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   width:100%!important;
   max-width:100%!important;
   gap:22px!important;
 }
 #packages .package-grid>.package,
 #packages .package-grid>.package:last-child{
   grid-column:1/-1!important;
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
   margin:0!important;
   padding:clamp(20px,5vw,28px)!important;
   justify-self:stretch!important;
 }
 #packages .package-price{font-size:clamp(38px,10vw,52px)!important}
 #packages .package h3{font-size:clamp(22px,6vw,29px)!important;overflow-wrap:anywhere}
 /* Constrain broad decorative/reveal elements without clipping actual content. */
 .section,.container,.section-head,.package-grid,.package,.hero-copy,.book-layout,.book-stage,.timeline-showcase,.journey-experience,.about-grid,.contact-grid,.footer-top,.footer-bottom{min-width:0!important}
 .hero-copy{width:auto!important}
 .gallery-tabs{max-width:100%;}
 .comparison,.book,.timeline-showcase,.journey-visual{max-width:100%!important}
 .package ul,.package p,.package h3,.section-head h2{overflow-wrap:anywhere}
}

/* VIZOMM responsive refinement 04 — gentler header logo and readable small type. */
/* Initial arrival: slower ease-in-out, keeping the existing opening handoff. */
#header .brand {
  transition: opacity 3.8s cubic-bezier(.42,0,.22,1), visibility 0s !important;
}
html.m2-headline-handoff-complete #header .brand {
  animation: vizomm-brand-arrive 3.8s cubic-bezier(.42,0,.22,1) both !important;
}
/* Scroll state: white lettering dissolves gradually into charcoal. */
#header .brand .brand-emblem::after {
  transition: opacity 1.85s cubic-bezier(.42,0,.2,1) !important;
}
@media(prefers-reduced-motion:reduce){
  html.m2-headline-handoff-complete #header .brand{animation:none!important;opacity:1!important}
  #header .brand .brand-emblem::after{transition:none!important}
}
/* Readability rules for narrow devices, without affecting the desktop design. */
@media(max-width:700px){
  /* Fine-print labels and overlines: avoid 8–11 px text on iPhones. */
  .kicker,.hero-kicker,.book-small,.book-hint,.page-eyebrow,.package-index,
  .delivery,.popular,.journey-eyebrow,.journey-tab-no,.journey-active-count,
  .journey-bottom>span,.journey-image-tag,.journey-label,.journey-number,
  .process-card>span,.process-footer,.gallery-tab span,.gallery-meta>div:first-child span,
  .comparison-tag,.concept-note,.review div,.review div span,.review-disclaimer,
  .form-intro span,.form-subheading,.file-status,.contact-form small,
  .letter-document-type,.package-letter-paper .letter-eyebrow,
  .package-letter-paper .letter-label,.package-letter-paper .letter-foot,
  .footer-bottom,.footer-top>a:last-child,.hero-foot,.hero-foot button span{
    font-size:12px!important;
    line-height:1.55!important;
    letter-spacing:clamp(.02em,.22vw,.11em)!important;
  }
  /* Small navigation, interactive controls, card details and captions. */
  #nav a,.btn,.quiet-link,.gallery-meta p,.book-page p,.package p,
  .package ul,.package li,.package-cta,.package-details-toggle,
  .journey-tab-title,.journey-intro p,.journey-showcase-copy p,
  .journey-step p,.journey-step .journey-label,.process-card p,
  .contact-form label,.contact-form .consent-label,.contact-form input,
  .contact-form select,.contact-form textarea,.form-intro p,
  .upload-intro,.contact-form input[type=file],.review p{
    font-size:max(14px,1em)!important;
    line-height:1.6!important;
  }
  /* Explicit 14 px minimum for elements whose parent font-size is unusually small. */
  #packages .package p,#packages .package li,#packages .package-cta,
  #packages .package-details-toggle,.journey-tab-title,.journey-showcase-copy p,
  .journey-intro p,.process-card p,.about-copy p,.review-disclaimer,
  .contact-form .consent-label,.contact-form small{font-size:14px!important}
  .hero-desc,.large-copy,.section-aside{font-size:clamp(15px,3.8vw,17px)!important;line-height:1.65!important}
  .package-price small{font-size:12px!important}
  .package ul{line-height:1.7!important}
  .footer-bottom{gap:8px!important;flex-wrap:wrap!important}
  .journey-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .journey-tab{min-width:0!important;padding:12px 8px!important}
}
/* Tablet mini remains three aligned columns; nudge microtype up for legibility. */
@media(min-width:701px) and (max-width:1100px){
  #packages .package-index,#packages .popular{font-size:10px!important}
  #packages .package p,#packages .package li{font-size:clamp(11px,1.4vw,14px)!important}
  #packages .package-cta,#packages .package-details-toggle{font-size:clamp(11px,1.4vw,13px)!important}
}
