/* Shared desktop sizing: narrower windows are still pointer-driven desktops. */
:root {
  --site-header-height: clamp(72px, 10svh, 96px);
  --site-gutter: clamp(24px, 4vw, 88px);
}
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
.site-header, .menu-top { height: var(--site-header-height); }
.hero-stage { min-height: 0; }
.hero-caption { top: calc(var(--site-header-height) + 18px); gap: 24px; }
.hero-title { font-size: clamp(32px, min(5.7vw, 9svh), 94px); }
.hero-end-copy { font-size: clamp(36px, min(7.5vw, 13svh), 135px); }
.hero-bottom { bottom: clamp(18px, 3svh, 30px); }
.hero-bottom > a { min-height: 44px; }
@media (max-height: 760px) {
  .hero-title { top: 26%; }
  .hero-wordmark { font-size: min(31.5vw, 49svh); bottom: 58px; }
  .hero-caption { font-size: 11px; }
}

/* Two editorial rows: Orange + portrait card, then brand + commerce. Each cover keeps its own aspect ratio. */
#work { padding: clamp(40px, 6svh, 68px) clamp(16px, 2vw, 48px); }
#work .work-heading { margin-bottom: 32px; }
#work .project-grid { row-gap: clamp(36px, 6svh, 64px); }
#work .work-heading, #work .project-grid, #work .concept-note {
  width: 100%; max-width: none; margin-inline: auto;
}
#work .work-heading { gap: clamp(20px, 4vw, 64px); flex-wrap: wrap; }
#work .work-heading > div { min-width: 0; }
#work .work-heading h2 { font-size: clamp(34px, min(4.6vw, 6svh), 64px); }
#work .work-heading p { flex: 0 1 260px; max-width: none; }
#work .project-grid { grid-template-columns: minmax(0, 1fr); padding: 0; }
#work .project-row {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 64px);
}
#work .project-row-lead { grid-template-columns: minmax(0, 1fr) clamp(160px, 22%, 260px); }
#work .project-row-support { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
#work .project-row-support .project-ecommerce { grid-column: 2; margin-top: clamp(32px, 5vw, 80px); }
#work .project-orange { grid-column: 1; min-width: 0; }
#work .project-brand-site { grid-column: 1; min-width: 0; width: 100%; justify-self: start; }
#work .project-brand-site .project-cover { aspect-ratio: 8 / 5; }
#work .project-brand-site .cover-image { width: 100%; height: 100%; object-fit: contain; transform: none; }
#work .project-business-card { grid-column: 2; width: 100%; max-width: 260px; margin-top: 24px; }
#work .project-caption { flex-wrap: wrap; }
#work .project-caption > span { max-width: 100%; white-space: normal; }
@media (hover: hover) and (pointer: fine) {
  #work .hover-film { display: block; max-width: calc(100% - 24px); }
  #work .preview-landscape .hover-film { width: clamp(160px, 36%, 346.667px); }
  #work .project-orange .hover-film { width: clamp(180px, 35%, 404px); }
  #work .preview-portrait .hover-film { width: clamp(108px, 42%, 220px); }
}

/* Service cards keep their fan motion; their contents dictate the minimum size. */
#approach .format-sticky { padding: clamp(32px, 6svh, 76px) var(--site-gutter); }
#approach .format-heading { gap: 24px; margin-bottom: 28px; }
#approach .format-heading h2 { font-size: clamp(34px, min(4.6vw, 6svh), 64px); }
#approach .format-heading > p { flex-shrink: 0; font-size: 13px; }
#approach .format-stage { gap: clamp(16px, 2vw, 24px); }
#approach .format-sheet { height: clamp(360px, 57svh, 480px); }
#approach .format-card-shell { padding: clamp(6px, .6vw, 8px); }
#approach .format-card-surface { padding: clamp(16px, 1.8vw, 26px); }
#approach .format-card-surface h3 { font-size: clamp(18px, 1.9vw, 27px); white-space: normal; margin-bottom: 16px; }
#approach .format-visual { height: clamp(128px, 21svh, 190px); }
#approach .format-question { font-size: clamp(14px, 1.2vw, 17px); margin: 18px 0; }
#approach .format-service-link { min-height: 42px; font-size: 12px; gap: 14px; padding: 10px 15px; flex-shrink: 0; }
#approach .format-scene-foot { flex-wrap: wrap; margin-top: 22px; gap: 12px 24px; }
@media (min-width: 761px) and (min-height: 761px) {
  #approach.format-enhanced { height: calc(100svh + 120px); min-height: 0; }
  #approach.format-enhanced .format-sticky {
    top: var(--site-header-height); min-height: 0; height: calc(100svh - var(--site-header-height));
    padding-top: 24px; padding-bottom: 24px; justify-content: center;
  }
  #approach.format-enhanced .format-stage { height: clamp(350px, calc(100svh - var(--site-header-height) - 300px), 440px); margin-block: 0; }
  #approach.format-enhanced .format-sheet { height: 100%; width: calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3); }
  #approach.format-enhanced .format-visual { height: clamp(128px, calc(100svh - 650px), 170px); }
}
@media (min-width: 620px) and (max-width: 760px) {
  #approach .format-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  #approach .format-sheet { height: 410px; }
  #approach .format-sheet:last-child { grid-column: 1 / -1; height: 350px; }
  #approach .format-sheet:last-child .format-card-surface { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  #approach .format-sheet:last-child h3 { grid-column: 1; margin: 0; align-self: end; }
  #approach .format-sheet:last-child .format-visual { grid-column: 2; grid-row: 1 / 4; height: 250px; align-self: center; }
  #approach .format-sheet:last-child .format-question { grid-column: 1; margin: 0; }
  #approach .format-sheet:last-child .format-service-link { grid-column: 1; justify-self: start; margin: 0; }
  #approach .format-scene-foot { max-width: none; display: flex; }
}

/* A whole active question fits below the header, including its focus ring. */
#journal .journal-content:has(.poster-journal) {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  min-height: calc(100svh + 95px);
  padding: clamp(28px, 4svh, 48px) 0;
}
#journal .journal-content:has(.poster-dragging),
#journal .poster-dragging .poster-viewport { cursor: grabbing; }
#journal .poster-journal {
  --poster-height: clamp(360px, calc((100svh - var(--site-header-height)) * .66), 540px);
  --poster-width: min(calc(var(--poster-height) * .9), calc(100vw - 72px));
  --poster-gap: clamp(24px, 3vw, 56px);
  /* The scene clips at the browser edge, never at an inner content column. */
  max-width: none; width: 100%;
}
#journal .poster-viewport { padding: 20px 0; }
#journal .poster-art { padding: clamp(22px, calc(var(--poster-width) * .065), 34px); }
#journal .poster-signature { gap: 12px; }
#journal .poster-signature > span:first-child { font-size: clamp(22px, calc(var(--poster-width) * .057), 27px); }
#journal .poster-signature > span:last-child { white-space: nowrap; }
#journal .poster-copy { min-height: 0; padding-block: 18px; }
#journal .poster-copy h3 { font-size: clamp(28px, calc(var(--poster-width) * .12), 58px); }
#journal .poster-question-tail { font-size: clamp(16px, calc(var(--poster-width) * .049), 23px); line-height: 1.6; }
#journal .poster-type .poster-copy { padding-top: clamp(24px, 4svh, 40px); }
#journal .poster-type .poster-question-tail { margin-top: 24px; }
#journal .poster-image { height: 38%; }
#journal .poster-photo { padding-top: calc(var(--poster-height) * .38 + 22px); }
#journal .poster-photo .poster-copy { padding: 0 0 14px; }
#journal .poster-photo h3 { font-size: clamp(21px, calc(var(--poster-width) * .072), 34px); line-height: 1.4; }
#journal .poster-photo > .poster-signature { left: 24px; right: 24px; top: 24px; }
#journal .poster-statement .poster-copy { padding-top: clamp(18px, 3svh, 38px); }
#journal .poster-statement h3 { font-size: clamp(36px, calc(var(--poster-width) * .135), 64px); }
#journal .poster-statement .poster-question-tail { padding-top: 16px; margin-top: 24px; }
#journal .poster-answer { min-height: 42px; }

/* Three complete posters, plus a visible slice of the next one at either edge. */
@media (min-width: 1200px) {
  #journal .poster-journal {
    --poster-width: min(clamp(324px, calc((100svh - var(--site-header-height)) * .594), 486px), calc((100vw - 4 * var(--poster-gap)) / 3.5));
    --poster-height: calc(var(--poster-width) / .9);
    max-width: calc(var(--poster-width) * 3.5 + var(--poster-gap) * 4);
  }
}

/* Crop the same fraction of the wordmark at every screen size. */
#site-footer .footer-wordmark { height:.61em; padding-bottom:0; line-height:.85; font-size:18.9vw; margin-top:7.2px; text-align:center; }
#site-footer .closing-meta { padding-block:10px; }

/* Menus and detail pages remain usable at split-window and laptop heights. */
.menu-links { top: calc(var(--site-header-height) + 30px); bottom: 82px; overflow-y: auto; overscroll-behavior: contain; }
.menu-links a { flex-shrink: 0; min-height: 44px; font-size: clamp(26px, min(3.25vw, 6.5svh), 48px); }
.menu-image { top: calc(var(--site-header-height) + 38px); height: calc(100% - var(--site-header-height) - 140px); }
.menu-image p { font-size: clamp(18px, 2.1vw, 29px); right: 14px; }
.page-view { padding-top: calc(var(--site-header-height) + 32px); }
.ed-page, .editorial-layout, .work-launch-layout { overflow-wrap: break-word; }
.ed-page { width: 100%; }
.ed-page :is(.service-option, .ed-budget > *, .faq-layout > *, .answer-body > *) { min-width: 0; }
.service-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.service-option h2 { font-size: clamp(21px, 2.2vw, 28px); }
.ed-budget { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: clamp(24px, 3vw, 42px); gap: 24px; }
.ed-budget strong { font-size: clamp(28px, 3.5vw, 58px); overflow-wrap: normal; }
.ed-page-heading h1 { font-size: clamp(34px, 5.5vw, 82px); }
.ed-process li { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.1fr); }
.faq-layout { grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.answer-body { grid-template-columns: minmax(140px, .6fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 90px); }
.ed-end-links, .closing-meta, .closing-help { flex-wrap: wrap; }
.page-bar { gap: 20px; }
.work-launch-heading { flex-wrap: wrap; }
@media (max-width: 900px) {
  .ed-budget { grid-template-columns: 1fr; }
  .ed-process li { grid-template-columns: 32px minmax(0, 1fr); }
  .ed-process li p { grid-column: 2; }
  .answer-body { grid-template-columns: 1fr; }
  .answer-topic { display: none; }
  .menu-image { left: 64%; width: 29%; opacity: .65; }
  .menu-links { left: 6%; width: 54%; }
  .editorial-large { font-size: clamp(34px, 6vw, 65px); }
  .editorial-image { min-height: 0; height: min(62svh, 540px); }
}
@media (max-width: 760px) {
  .service-options { grid-template-columns: 1fr; }
  .service-option p { max-width: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-filters { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .contact-channels { flex-wrap: wrap; }
  .contact-slot { flex: 1 1 220px; }
  #work .work-heading { display: block; }
  #work .work-heading h2 br { display: none; }
  #work .work-heading h2 span { margin-left: 0; }
  #work .work-heading p { margin-top: 18px; }
  .case-details .project-next { position: static; margin-top: 22px; padding-bottom: 16px; }
  .case-details-gallery { padding-bottom: 0; }
  .project-toolbar { min-height: 76px; }
}
@media (max-width: 760px) {
  #work .work-heading, #work .project-grid, #work .concept-note { max-width: 100%; }
}
@media (max-width: 619px) {
  #work .project-row { grid-template-columns: minmax(0, 1fr); }
  #work .project-row-support .project-ecommerce { grid-column: 1; margin-top: 0; }
  #work .project-business-card { grid-column: 1; width: min(70%, 300px); margin-top: 0; justify-self: center; }
  #approach .format-stage { grid-template-columns: 1fr; }
  #approach .format-heading > p { margin-top: 18px; }
  #approach .format-sheet { height: 430px; }
  #approach .format-visual { height: 170px; }
  #journal .poster-journal { --poster-width: min(76vw, 370px); --poster-height: max(400px, calc(var(--poster-width) * 1.3)); }
  .menu-image { display: none; }
  .menu-links { width: 86%; }
  .menu-bottom { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #approach.format-enhanced { height: auto; }
  #approach.format-enhanced .format-sticky { height: auto; min-height: 0; position: relative; }
  #approach.format-enhanced .format-stage { height: auto; }
  #approach.format-enhanced .format-sheet { width: auto; height: 430px; }
}

/* Homepage headings: one centered title, without supporting microcopy. */
#work .work-heading {
  display: flex;
  justify-content: center;
  text-align: center;
}
#work .work-heading h2 { text-wrap: balance; }
#work .work-heading h2 span { margin-left: 0; }
#work .work-heading h2 br { display: none; }
#approach .format-heading { display: block; text-align: center; }
#approach .format-scene-foot { justify-content: center; }
#cooperation-questions .faq-gateway {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
  text-align: center;
}
#cooperation-questions .faq-gateway > * {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
}

#cooperation-questions .faq-gateway h2 { font-size: clamp(34px, min(4.6vw, 6svh), 64px); }

/* Compact commerce preview emphasizes product and checkout interfaces. */
#work .project-ecommerce { grid-column: 1; min-width: 0; }
#work .project-ecommerce .project-cover { aspect-ratio: 1265 / 720; background: #fff6e6; }
#work .project-ecommerce .cover-image { width: 100%; height: 100%; object-fit: contain; transform: none; }
#work .project-ecommerce .hover-window { aspect-ratio: 1265 / 720; background: #fff6e6; }
@media (hover: hover) and (pointer: fine) {
  #work .project-ecommerce .hover-film { width: clamp(180px, 35%, 404px); }
}

/* Compact project footers retain readable links and their hit areas. */
body.project-view #site-footer .closing-meta { padding-block:2.8px;min-height:45.6px; }

/* Keep the five footer destinations centered after removing back-to-top. */
#site-footer .closing-meta { display:grid;grid-template-columns:1fr auto 1fr; }
#site-footer .closing-help { grid-column:2; }
@media(max-width:650px) { #site-footer .closing-meta { display:flex;flex-wrap:wrap;justify-content:center; } }
