/* Phone layouts also cover iPhone landscape without changing wide-screen layouts. */
@media (max-width:760px), (max-width:950px) and (max-height:500px) {
  html {scroll-padding-top:0;scroll-padding-bottom:24px}
  body {--phone-gutter:clamp(20px,5.6vw,24px);-webkit-text-size-adjust:100%;text-size-adjust:100%}
  main,section,article {min-width:0}
  h1,h2,h3,p,li {overflow-wrap:break-word}
  button,a,input,select,textarea,summary {-webkit-tap-highlight-color:transparent}
  .site-header {inset:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) auto max(16px,env(safe-area-inset-left,0px));grid-template-columns:1fr 44px 1fr;gap:8px;min-height:52px;z-index:30}
  .site-header .theme-switch {grid-column:1;grid-row:1;padding:3px;gap:0;justify-self:start}
  .site-header .theme-switch button {width:44px;height:44px}
  .site-header .theme-switch button::after {display:none}
  .site-header .brand-mark {grid-column:2;grid-row:1;justify-self:center;width:44px;height:44px;padding:7px;border-radius:13px;background:rgba(18,18,18,.84)}
  html[data-theme="light"] .site-header .brand-mark {background:rgba(245,244,240,.94)}
  html[data-theme="light"] .site-header .brand-mark img {filter:brightness(0)}
  .site-header .mobile-menu-toggle {display:grid;grid-column:3;grid-row:1;justify-self:end;width:48px;height:48px;place-items:center;padding:12px;pointer-events:auto;border-radius:50%}
  .site-header .mobile-menu-toggle svg {width:22px;height:22px}
  .site-header .menu-pill {display:none;position:absolute;inset:calc(100% + 10px) 0 auto auto;transform:none;width:min(340px,100%);max-width:100%;max-height:calc(var(--mobile-viewport-height,100svh) - 92px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;margin:0;padding:10px;border-radius:24px;background:rgba(20,20,20,.97)}
  html[data-theme="light"] .site-header .menu-pill {background:rgba(245,244,240,.98)}
  .site-header.menu-open .menu-pill {display:flex;flex-direction:column;align-items:stretch;gap:2px}
  .site-header .menu-link {display:flex;align-items:center;min-height:48px;padding:12px 16px;text-align:left;white-space:normal;font-size:16px;border-radius:15px}
  .site-header .menu-pill .language-switch {position:static;display:flex;align-items:center;justify-content:center;align-self:stretch;gap:12px;min-height:52px;width:100%;margin:8px 0 0;padding:4px;border:0;border-top:0;border-radius:0;background:transparent!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-size:13px;letter-spacing:.08em}
  .site-header .language-switch button {min-width:64px;min-height:44px;border-radius:12px;background:transparent!important}
  .site-header .language-switch button[aria-pressed="true"] {background:transparent!important}
  .gold-pill,.sh-footer .sh-footer-cta {min-height:48px;max-width:100%;padding:14px 22px;font-size:15px;line-height:1.4;text-align:center;white-space:normal}
  [id] {scroll-margin-top:96px}

  /* A readable introduction in page flow: words, paragraph, then contact action. */
  .image-section--first {position:relative;height:82svh;min-height:420px}
  .image-section--first .section-image {min-height:0;height:100%}
  #projects.image-section--second {--intro-gutter:var(--phone-gutter);scroll-margin-top:88px}
  #projects .intro-scroll-scene,#projects .intro-scroll-scene.has-motion {height:auto}
  #projects .intro-pin,#projects .has-motion .intro-pin {position:relative;top:auto;display:block;padding:36px var(--phone-gutter) 28px}
  #projects .intro-composition {display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
  #projects .intro-type {grid-column:1;grid-row:1;width:100%;font-size:clamp(23px,6vw,27px);line-height:1.2;letter-spacing:-.04em}
  #projects .intro-type-visual {display:flex;flex-direction:column;gap:10px}
  #projects .intro-type-prefix {min-width:0;white-space:normal}
  #projects .intro-type-window {width:100%;height:2.36em;font-size:clamp(27px,7.3vw,32px)}
  #projects .intro-copy-group .ipad-copy {grid-column:1;grid-row:2;width:100%;font-size:17px;line-height:1.6;letter-spacing:-.01em;text-align:left;text-align-last:auto;text-wrap:pretty}
  #projects .intro-copy-sentence {text-wrap:pretty;margin-bottom:1em}
  #projects .intro-copy-tail {white-space:normal}
  #projects .reveal-word {opacity:1!important}
  #projects .intro-cta {grid-column:1;grid-row:3;justify-self:stretch}
  #projects .intro-cta .gold-pill {display:flex;width:100%}
  .volume-stage {height:clamp(380px,58svh,500px);min-height:380px;max-height:500px}
  .volume-input-zone {inset-inline:0}

  .home-neo-services {padding:56px var(--phone-gutter) 40px}
  .home-neo-services>.section-heading-row {margin-bottom:24px}
  .home-neo-services .services-heading {font-size:34px;line-height:1.1;margin:0}
  .home-services-toolbar {display:flex;gap:18px;align-items:stretch}
  .home-neo-services .home-services-toolbar .services-tab-scroll {width:100%}
  html[data-theme] .home-neo-services .services-tabs {display:flex;width:100%;gap:2px;padding:4px}
  html[data-theme] .home-neo-services .services-tabs [role="tab"] {flex:1;min-width:0;min-height:48px;font-size:14px;line-height:1.3;padding:10px 12px;white-space:normal}
  .home-services-toolbar>.gold-pill {margin:0;align-self:flex-start}
  .home-neo-services .service-summary {font-size:17px;line-height:1.5;text-align:left;margin:24px 0}
  .home-neo-services .service-grid {gap:20px}
  html[data-theme] .home-neo-services .neo-card::after {display:none!important}
  html[data-theme] .home-neo-services .neo-card {width:100%;max-width:none;padding:12px;border-radius:24px}
  html[data-theme] .home-neo-services .neo-photo {height:220px;border-radius:18px}
  html[data-theme] .home-neo-services .neo-caption h2 {font-size:20px;line-height:1.25}
  html[data-theme] .home-neo-services .neo-details {padding:14px 6px 10px}
  html[data-theme] .home-neo-services .neo-service-description {font-size:16px;line-height:1.55}

  /* Projects and local photo navigation keep generous touch targets. */
  .projects-main {padding-top:100px}
  .project-gallery {padding:16px var(--phone-gutter) 48px}
  .project-stack {display:grid;gap:20px;padding:0}
  .project-category-card,.project-category-card+.project-category-card {height:clamp(280px,50svh,420px);margin:0;padding:26px 22px;border-radius:24px}
  .project-category-card h2 {font-size:32px;line-height:1.1;max-width:85%}
  .projects-main .project-hero-scene {position:relative!important;top:auto}
  .projects-main:is([data-project-category="sites-web"],[data-project-category="contenu-de-marque"]) .project-category-surface {position:relative;height:min(78svh,640px);min-height:420px;padding:112px var(--phone-gutter) 24px}
  .projects-main:is([data-project-category="sites-web"],[data-project-category="contenu-de-marque"]) .project-category-surface h1 {font-size:36px;line-height:1.08;max-width:100%}
  .photography {min-height:0;padding:48px var(--phone-gutter) 50px;scroll-margin-top:88px}
  .photography .visual-nav {width:100%;max-width:100%;margin-bottom:32px}
  .visual-nav-track {width:100%;gap:0;padding:5px}
  .visual-nav-item {flex:1;min-width:0;min-height:48px;padding:10px 8px;font-size:13px;line-height:1.3;white-space:normal;text-align:center}
  .visual-nav-frame {display:none}
  .visual-nav.is-tracking .visual-nav-item:not(.is-target) .visual-nav-label {filter:none;opacity:1}
  .photography-heading,.social-reels-heading,.films-heading {font-size:34px;line-height:1.1;letter-spacing:-.04em;scroll-margin-top:96px}
  .photography-heading {margin-bottom:24px}
  .photography-filters {width:100%;padding:4px;margin-bottom:12px;box-shadow:none}
  .photography-filter {min-height:44px;font-size:14px;padding:11px 14px}
  .photography-venue-row {min-height:0;margin-bottom:24px}
  .photography-venues {justify-content:flex-start;flex-wrap:wrap;gap:8px}
  .photography-venue {min-height:44px;padding:10px 14px;font-size:14px;max-width:100%;white-space:normal}
  .photography-grid {--photo-columns:2;--photo-gap:8px}
  .photography-more .gold-pill {min-height:48px;font-size:15px}

  /* Media stay within their sections, with one active video and legible captions. */
  .social-reels {--reel-width:min(64vw,280px,calc(56svh * .5625));padding:44px 0 40px;scroll-margin-top:88px}
  .social-reels-heading,.social-reels-instagram {width:calc(100% - var(--phone-gutter) * 2)}
  .social-reels-heading {margin-bottom:20px}
  .social-reels-instagram {margin-bottom:20px}
  .social-reels-instagram .gold-pill {display:flex;width:100%;font-size:14px;padding-inline:18px}
  .social-reels-stage {height:calc(var(--reel-width) * 16 / 9 + 110px)}
  .social-reels-input-zone,.brand-films-input-zone {inset-inline:0}
  .social-reel {filter:none!important;will-change:transform}
  .social-reel:not(.is-active) .video-project-caption {visibility:hidden}
  .video-project-name {font-size:16px;line-height:1.25}
  .video-project-place {font-size:14px;line-height:1.3;opacity:.72}
  .social-reels-pagination {max-width:calc(100% - 32px);gap:18px;padding:4px 8px;justify-content:center}
  .social-reels-dot {display:none}
  .social-reels-step {display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:24px;cursor:pointer}
  .social-reels-count {display:block;min-width:42px;text-align:center;font-size:14px}
  .brand-films {scroll-margin-top:88px}
  .brand-films-viewport {height:auto;min-height:0;padding:44px 0 32px}
  .films-heading {width:calc(100% - var(--phone-gutter) * 2);margin-bottom:20px}
  .brand-films-carousel-panels,.brand-films-stage {flex:none;height:clamp(330px,89vw,410px);min-height:330px;width:100%}
  .brand-films-ring {top:60%}
  .brand-film-surface {border-radius:8px}
  .brand-film-panel .video-project-name {font-size:14px}
  .brand-film-panel .video-project-place {font-size:12px}

  .projects-main #project-showcase {padding:48px var(--phone-gutter) 40px;min-height:0}
  .project-showcase .section-heading-row {gap:18px;margin-bottom:24px}
  .project-showcase .projects-heading {font-size:34px;line-height:1.1}
  .studio-editor {max-width:100%;border-radius:22px}
  .studio-editor .editor-body {display:flex;flex-direction:column;height:680px}
  .studio-editor .editor-pages {display:block;width:100%}
  .studio-editor .editor-pages .editor-tabs {display:none}
  .studio-editor .project-description {padding:16px;display:flex;flex-wrap:wrap;gap:8px 12px}
  .studio-editor .project-description h3 {font-size:20px;flex-basis:100%}
  .studio-editor .project-description p {font-size:14px}
  .studio-editor .project-description .gold-pill {margin:6px 0 0;min-height:44px;font-size:14px;padding:11px 18px}
  .studio-editor .editor-canvas {min-height:0;flex:1}
  .studio-editor .editor-inspector {display:none}

  /* Service content is normal flowing text on a phone. */
  .services-page .service-experience {padding:108px 0 40px}
  .service-scene {width:calc(100% - var(--phone-gutter) * 2);padding-bottom:0}
  .service-category-bar {width:100%;max-width:100%;margin-bottom:24px;align-items:stretch;gap:2px;padding:4px}
  .service-category-bar button {flex:1;min-width:0;min-height:56px;padding:10px 12px;font-size:14px;line-height:1.35}
  .service-composition {gap:18px}
  .service-deck,.service-gallery.is-pinned .service-deck {display:grid;height:auto!important;perspective:none;touch-action:pan-y pinch-zoom;scroll-margin-top:96px}
  .services-page .service-card,.service-gallery.is-pinned .service-card {position:relative;grid-area:1/1;display:none;padding:24px 20px;border-radius:24px;transform:none!important;opacity:1!important}
  .services-page .service-card[aria-hidden="false"] {display:block}
  .services-page .service-copy {padding:0;text-align:left}
  .services-page .service-copy h1 {font-size:30px;line-height:1.12;margin-bottom:20px}
  .services-page .service-copy .service-lead {font-size:18px;line-height:1.5}
  .services-page .service-copy p,.services-page .service-inclusions li,.services-page .service-inclusions p {font-size:16px;line-height:1.6}
  .services-page .service-inclusions ul {grid-template-columns:1fr;gap:12px;padding-left:18px}
  .services-page .service-inclusions h2 {font-size:20px}
  .service-pager {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;font-size:15px}
  .service-pager button {width:52px;height:48px;border:1px solid var(--studio-edge);border-radius:999px;background:var(--glass-panel);font-size:24px}
  .service-pager button:disabled {opacity:.35;cursor:default}

  .contact-main {padding:112px var(--phone-gutter) 40px}
  .contact-intro {margin-bottom:28px;text-align:left}
  .contact-intro h1 {font-size:38px;line-height:1.08;margin-block:22px}
  .contact-intro>p {font-size:17px;line-height:1.6}
  .contact-columns {grid-template-columns:minmax(0,1fr);gap:24px}
  .contact-info,.contact-form-card {padding:24px 20px;border-radius:24px;min-width:0}
  .contact-info>p,.contact-method p,.contact-form-card header p {font-size:16px;line-height:1.6}
  .contact-method {gap:12px;margin-top:28px}
  .contact-method>div {min-width:0}
  .contact-method h3 {font-size:16px}
  .contact-method a:not(.gold-pill) {display:inline-flex;align-items:center;min-height:44px;font-size:17px;overflow-wrap:anywhere}
  .contact-method .gold-pill {width:100%;padding-inline:14px;font-size:14px}
  .contact-method .contact-note,.contact-availability,.contact-privacy {font-size:14px;line-height:1.55}
  .contact-fields {grid-template-columns:minmax(0,1fr);gap:22px}
  .contact-field label {font-size:15px;line-height:1.4}
  .contact-field label span {font-size:14px}
  .contact-field input,.contact-field select,.contact-field textarea {min-height:52px;font-size:16px;scroll-margin-block:112px 24px}
  .contact-field textarea {min-height:160px}
  .field-error,#contact-status {font-size:14px;line-height:1.5;overflow-wrap:anywhere}
  #contact-submit {width:100%}

  .sh-footer {padding:28px var(--phone-gutter) calc(32px + env(safe-area-inset-bottom,0px));font-size:16px;line-height:1.55}
  .sh-footer-panel {padding:28px 22px;border-radius:24px}
  .sh-footer-grid,.sh-footer-grid.without-social {grid-template-columns:minmax(0,1fr);gap:30px}
  .sh-footer .sh-footer-project h2 {font-size:28px}
  .sh-footer h2 {font-size:17px;margin-bottom:12px}
  .sh-footer .sh-footer-cta {display:flex;width:100%}
  .sh-footer-bottom {margin-top:28px;padding-top:22px;font-size:14px}
  html[data-theme] :is(.home-neo-services .neo-card,.contact-info,.contact-form-card,.sh-footer-panel) {backdrop-filter:none;-webkit-backdrop-filter:none}
}
.service-pager {display:none}
.social-reels-step,.social-reels-count {display:none}
@media (max-width:760px), (max-width:950px) and (max-height:500px) {.service-pager{display:flex}}
@media (max-width:760px), (max-width:950px) and (max-height:500px) {.social-reels-step{display:grid}.social-reels-count{display:block}}
@media (max-width:950px) and (max-height:500px) {
  .site-header {inset-block-start:calc(6px + env(safe-area-inset-top,0px))}
  .site-header .menu-pill {max-height:calc(var(--mobile-viewport-height,100svh) - 78px - env(safe-area-inset-top,0px))}
  .site-header .menu-link {min-height:44px;padding-block:9px}
  .image-section--first {height:100svh;min-height:280px}
  #projects .intro-composition {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:28px}
  #projects .intro-type {grid-row:1;grid-column:1;font-size:24px}
  #projects .intro-type-window {font-size:28px}
  #projects .intro-copy-group .ipad-copy {grid-column:2;grid-row:1 / span 2}
  #projects .intro-cta {grid-column:1;grid-row:2;align-self:start}
  .volume-stage {height:360px;min-height:360px}
  .photography-grid {--photo-columns:4}
  .social-reels {--reel-width:min(220px,calc(60svh * .5625))}
  .social-reels-stage {height:calc(var(--reel-width) * 16 / 9 + 100px)}
  .brand-films-carousel-panels,.brand-films-stage {height:340px;min-height:340px}
  .projects-main:is([data-project-category="sites-web"],[data-project-category="contenu-de-marque"]) .project-category-surface {height:100svh;min-height:320px;padding-top:100px}
  .studio-editor .editor-body {height:560px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce), (max-width:950px) and (max-height:500px) and (prefers-reduced-motion:reduce) {
  #projects .intro-type-window {height:auto}
  .brand-films-carousel-panels {height:auto;min-height:0}
  .brand-films-stage {height:auto;min-height:0;margin:16px 24px;width:calc(100% - 48px)}
  .brand-films-ring {grid-template-columns:minmax(0,1fr);gap:80px}
  .brand-film-panel {margin-top:64px}
}

/* Mobile visual-production introduction: show the complete landscape frame. */
@media (max-width:760px), (max-width:950px) and (max-height:500px) {
  html[data-theme] .projects-main[data-project-category="contenu-de-marque"] .project-category-surface {display:flex;flex-direction:column;height:auto;min-height:0;padding:112px var(--phone-gutter) 0;background:var(--page-bg,#000)}
  html[data-theme] .projects-main[data-project-category="contenu-de-marque"] .project-category-surface::after {display:none}
  html[data-theme] .projects-main[data-project-category="contenu-de-marque"] .project-category-surface h1 {order:0;color:var(--ink);text-shadow:none;font-size:32px}
  html[data-theme] .projects-main[data-project-category="contenu-de-marque"] .project-return {order:1;position:relative;inset:auto;align-self:flex-start;margin:12px 0 24px;color:var(--ink);text-shadow:none}
  .projects-main[data-project-category="contenu-de-marque"] [data-visual-hero] {order:2;position:relative;inset:auto;width:calc(100% + var(--phone-gutter) * 2);margin-inline:calc(-1 * var(--phone-gutter));aspect-ratio:16/9;background:#000;border-radius:0}
  .projects-main[data-project-category="contenu-de-marque"] [data-visual-hero] :is(img,video) {object-fit:contain}
  .service-pager {scroll-margin-top:96px}
}

/* Contact: project enquiry followed by live appointment booking. */
.contact-page .contact-columns {grid-template-columns:minmax(0,1fr);max-width:960px;gap:32px}
.contact-page .contact-info>p {max-width:none}
.contact-booking {margin-top:28px;background:#fff;border-radius:18px;overflow:hidden;color-scheme:light}
.contact-booking iframe {display:block;width:100%;height:700px;border:0}
@media(max-width:760px){.contact-booking{margin-inline:-12px;border-radius:12px}.contact-booking iframe{height:720px}.contact-info .booking-button{white-space:normal;text-align:center}}
