/* Full-width horizontal chapters, with independent vertical reading. */
:root {
  --paper: #fff;
  --olive: #777747;
  --ink: #181a16;
  --head: 118px;
  --foot: 58px;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior-x: none;
  scroll-behavior: auto;
}
body {
  height: 100dvh;
  background: #fff;
}
header {
  height: var(--head);
  padding: 28px 3.2vw;
  gap: 35px;
}
.brand {
  width: 160px;
}
.brand strong {
  font-size: 34px;
}
.brand small {
  letter-spacing: 3.8px;
  font-size: 8px;
}
.nav {
  gap: 18px;
}
.nav a {
  font-size: 14px;
  color: #aaa;
}
.nav a:not(:last-child):after {
  margin-left: 18px;
  letter-spacing: 3px;
}
.nav a[aria-current="true"] {
  color: var(--olive);
}
#obsah {
  display: flex;
  width: 100%;
  height: calc(100dvh - var(--head) - var(--foot));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
#obsah::-webkit-scrollbar {
  display: none;
}
/* Active state must not change panel geometry or override responsive padding. */
.panel.active {
  display: block;
}
.panel {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px 3.2vw 35px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  /* Each vertical scroll container must also reserve horizontal gestures. */
  touch-action: pan-y pinch-zoom;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  animation: none;
  scrollbar-width: thin;
  scrollbar-color: #d5d6ca transparent;
}
.panel img {
  user-select: none;
  -webkit-user-drag: none;
}
#obsah.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}
.panel:focus {
  outline: none;
}
.hero-grid {
  min-height: 0;
  height: 100%;
  gap: 7vw;
  grid-template-columns: 1.1fr 1fr;
}
.hero-copy {
  padding-top: 10px;
}
.hero-copy h1 {
  font-size: clamp(62px, 6.7vw, 110px);
  margin: clamp(24px, 4.5vh, 52px) 0 26px;
}
.hero-copy .intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 460px;
}
.hero-copy .text-link {
  margin-top: 22px;
}
.visual-composition {
  height: 100%;
  min-height: 440px;
  max-height: 740px;
}
.main-visual {
  height: 85%;
  width: 84%;
}
.inset-visual {
  width: 43%;
  height: 49%;
  left: -8%;
}
.visual-tag {
  bottom: 0;
}
.rule {
  width: 180px;
  height: 7px;
  margin-bottom: 25px;
}
.section-footer {
  display: none;
}
.carousel-footer {
  height: var(--foot);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.2vw;
  border-top: 1px solid #eeeee8;
  gap: 20px;
  background: white;
  position: relative;
  z-index: 5;
}
.swipe-hint {
  font-size: 10px;
  color: #929582;
  letter-spacing: 1px;
}
.swipe-hint span {
  padding-left: 16px;
  font-size: 17px;
  color: var(--olive);
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.position {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--olive);
  min-width: 44px;
}
.carousel-controls button {
  font-size: 24px;
  padding: 0 4px;
}
.carousel-controls button:disabled {
  opacity: 0.2;
  cursor: default;
}
.page-dots {
  display: flex;
  gap: 12px;
}
.page-dots button {
  width: 22px;
  height: 28px;
  position: relative;
  padding: 0;
}
.page-dots button:after {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  position: absolute;
  left: 9px;
  top: 12px;
  background: #cdcec3;
  transition:
    background 0.2s,
    transform 0.2s;
}
.page-dots button[aria-current="true"]:after {
  background: var(--olive);
  transform: scale(1.8);
}
.profile-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10vw;
}
.profile-copy h2 {
  font-size: clamp(50px, 5.2vw, 85px);
  margin: 24px 0;
}
.profile-copy .body-copy {
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.45;
  color: #272921;
  max-width: 630px;
}
.profile-lead {
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.4;
  color: var(--olive);
  margin-bottom: 24px;
}
.profile-side {
  padding-top: 5px;
}
.profile-visual {
  height: 35vh;
  min-height: 230px;
  max-height: 440px;
  position: relative;
  overflow: hidden;
}
.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.profile-stats {
  display: flex;
  gap: 60px;
  margin-top: 28px;
}
.profile-stats div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-stats strong {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -4px;
  color: var(--olive);
}
.profile-stats span {
  font-size: 12px;
  color: var(--muted);
}
.profile-next {
  margin-top: 25px;
}
.credits-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8vw;
}
.credits-intro h2 {
  font-size: clamp(45px, 4.7vw, 80px);
  margin: 30px 0;
}
.credits-intro .body-copy {
  font-size: 21px;
  max-width: 420px;
}
.credit-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 310px;
  margin-top: 35px;
}
.credit-list {
  padding-bottom: 10px;
}
.credit-row {
  display: flex;
  gap: 25px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.credit-row:first-child {
  padding-top: 0;
}
.credit-year {
  font-size: 12px;
  color: var(--olive);
  padding-top: 4px;
}
.credit-row h3 {
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.credit-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.section-top {
  padding: 0 0 28px;
}
.section-top h2 {
  font-size: clamp(42px, 4.7vw, 80px);
  margin-top: 20px;
}
.work figure {
  height: calc(100dvh - 360px);
  min-height: 250px;
  max-height: 650px;
}
.work-grid {
  gap: 28px;
}
.gallery-controls {
  margin-top: 18px;
}
.two-col {
  padding-top: 0;
  gap: 9vw;
}
.section-intro h2 {
  font-size: clamp(42px, 4.7vw, 80px);
  margin: 25px 0;
}
.service-image {
  height: 25vh;
  min-height: 160px;
  max-height: 310px;
  margin-top: 24px;
  object-position: center 40%;
  width: 90%;
}
.body-copy {
  font-size: 19px;
  line-height: 1.5;
}
.disciplines details {
  padding: 20px 0;
}
.disciplines summary {
  font-size: 23px;
}
.disciplines details p {
  line-height: 1.6;
}
.tool-caption {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 30px;
}
.collab-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8vw;
}
.collab-top h2 {
  font-size: clamp(42px, 4.7vw, 80px);
  margin-top: 25px;
}
.collab-top .body-copy {
  padding-top: 65px;
  max-width: 430px;
}
.collab-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8vw;
  margin-top: 35px;
}
.brand-list {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.65;
  letter-spacing: -1px;
  margin-top: 20px;
}
.brand-list span {
  padding-left: 35px;
  color: var(--olive);
}
.agency-list {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.7;
}
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 22px;
}
.process-line span {
  font-size: 10px;
  color: var(--olive);
}
.process-line h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 12px 0 8px;
}
.process-line p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.contact-grid {
  padding-top: 0;
}
.contact-grid h2 {
  font-size: clamp(42px, 4.8vw, 80px);
  margin: 35px 0 25px;
}
.contact-list {
  margin-top: 25px;
}
.contact-row {
  padding: 16px 0;
}
.contact-company {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
}
.contact-image {
  height: calc(100dvh - 235px);
  min-height: 380px;
  max-height: 780px;
}
.socials {
  margin-top: 18px;
}
dialog {
  touch-action: auto;
}
@media (min-width: 1700px) {
  .panel {
    padding-left: max(3.2vw, calc((100vw - 1600px) / 2));
    padding-right: max(3.2vw, calc((100vw - 1600px) / 2));
  }
}
@media (max-width: 1120px) {
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 12px;
  }
  .nav a:not(:last-child):after {
    margin-left: 12px;
  }
  .brand {
    width: 140px;
  }
  .hero-copy h1 {
    font-size: 65px;
  }
  .hero-grid {
    gap: 5vw;
  }
  .profile-layout {
    gap: 6vw;
  }
  .profile-stats {
    gap: 32px;
  }
  .profile-copy .body-copy {
    font-size: 17px;
  }
  .credit-row h3 {
    font-size: 20px;
  }
  .contact-row a {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  :root {
    --head: 90px;
    --foot: 54px;
  }
  header {
    padding: 22px 5vw;
  }
  .brand strong {
    font-size: 28px;
  }
  .brand small {
    font-size: 8px;
  }
  .menu {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 0;
  }
  .menu span {
    display: inline-block;
    margin-left: 12px;
    font-size: 20px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px 6vw 35px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    font-size: 23px;
  }
  .nav a:not(:last-child):after {
    display: none;
  }
  .panel {
    padding: 18px 5vw 35px;
  }
  .carousel-footer {
    padding: 0 5vw;
  }
  .hero-copy h1 {
    font-size: 64px;
  }
  .hero-copy .intro {
    font-size: 14px;
  }
  .profile-layout {
    gap: 5vw;
  }
  .credits-layout {
    gap: 5vw;
  }
  .page-dots {
    gap: 6px;
  }
  .carousel-controls {
    gap: 12px;
  }
  .swipe-hint {
    font-size: 9px;
    letter-spacing: 0;
  }
}
@media (max-width: 760px) {
  .hero-grid,
  .profile-layout,
  .credits-layout,
  .two-col,
  .contact-grid,
  .collab-top,
  .collab-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto;
  }
  .hero-copy {
    padding-top: 12px;
  }
  .hero-copy h1 {
    font-size: clamp(58px, 13vw, 86px);
    margin: 28px 0 22px;
  }
  .hero-copy .intro {
    font-size: 15px;
    line-height: 1.65;
  }
  .rule {
    width: 125px;
    height: 6px;
    margin-bottom: 24px;
  }
  .hero-copy .text-link {
    margin-top: 15px;
  }
  .visual-composition {
    height: 470px;
    min-height: 0;
    margin: 0 0 10px;
  }
  .main-visual {
    width: 82%;
    height: 86%;
  }
  .inset-visual {
    width: 43%;
    left: 0;
  }
  .visual-tag {
    width: 53%;
    font-size: 8px;
  }
  .carousel-footer {
    gap: 8px;
  }
  .swipe-hint {
    font-size: 0;
  }
  .swipe-hint span {
    font-size: 19px;
    padding: 0;
  }
  .page-dots {
    gap: 0;
  }
  .page-dots button {
    width: 20px;
  }
  .carousel-controls {
    gap: 10px;
  }
  .carousel-controls button {
    font-size: 21px;
  }
  .position {
    font-size: 9px;
    min-width: 38px;
  }
  .profile-copy h2 {
    font-size: 57px;
    margin: 25px 0;
  }
  .profile-lead {
    font-size: 20px;
    line-height: 1.4;
  }
  .profile-copy .body-copy {
    font-size: 17px;
  }
  .profile-visual {
    height: 300px;
    margin-top: 0;
  }
  .profile-stats {
    gap: 55px;
  }
  .profile-stats strong {
    font-size: 55px;
  }
  .profile-next {
    margin-top: 22px;
  }
  .credits-intro h2 {
    font-size: 54px;
    margin: 25px 0;
  }
  .credits-intro .body-copy {
    font-size: 18px;
  }
  .credit-note {
    margin-top: 20px;
  }
  .credit-row {
    padding: 17px 0;
  }
  .credit-row h3 {
    font-size: 22px;
  }
  .credit-row p {
    font-size: 11px;
    line-height: 1.5;
  }
  .section-top {
    gap: 18px;
  }
  .section-top h2 {
    font-size: 53px;
    line-height: 1.04;
  }
  .section-top p {
    font-size: 14px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .work figure {
    height: 420px;
    min-height: 0;
  }
  .work-caption {
    align-items: flex-start;
    gap: 10px;
  }
  .work-caption strong {
    font-size: 16px;
  }
  .work-caption small {
    font-size: 8px;
    max-width: 110px;
    text-align: right;
  }
  .section-intro h2,
  .collab-top h2,
  .contact-grid h2 {
    font-size: 54px;
  }
  .service-image {
    height: 240px;
    width: 100%;
    min-height: 0;
  }
  .disciplines details {
    padding: 20px 0;
  }
  .disciplines summary {
    font-size: 22px;
  }
  .collab-top .body-copy {
    padding-top: 0;
    font-size: 18px;
  }
  .collab-columns {
    margin-top: 15px;
    gap: 30px;
  }
  .brand-list {
    font-size: 29px;
  }
  .brand-list span {
    padding-left: 20px;
  }
  .agency-list {
    font-size: 19px;
  }
  .process-line {
    grid-template-columns: 1fr 1fr;
    gap: 25px 18px;
    margin-top: 30px;
  }
  .contact-list {
    margin-top: 25px;
  }
  .contact-row {
    flex-direction: column;
    gap: 9px;
  }
  .contact-row a {
    font-size: 22px;
  }
  .contact-image {
    height: 350px;
    min-height: 0;
  }
  .body-copy {
    font-size: 17px;
  }
  .contact-company {
    margin-top: 25px;
  }
  .socials {
    margin-top: 22px;
  }
  .panel {
    scroll-snap-stop: always;
  }
}
@media (prefers-reduced-motion: reduce) {
  #obsah {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Controlled cinematic transitions, with native vertical reading retained. */
#obsah {
  scroll-behavior: auto;
  touch-action: pan-y pinch-zoom;
}
#obsah.moving,
#obsah.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
#uvod.cinematic-intro {
  padding: 0 3.2vw 22px;
  overflow: hidden;
}
.hero-stage {
  height: 100%;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #27302b;
}
.hero-landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(13, 23, 22, 0.67),
      rgba(13, 23, 22, 0.24) 43%,
      transparent 72%
    ),
    linear-gradient(0deg, rgba(10, 19, 18, 0.5), transparent 23%);
}
.cinematic-copy {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  color: #f8f6ed;
  width: 51%;
  max-width: 690px;
}
.cinematic-copy .eyebrow {
  color: #d4d8c8;
  font-size: 10px;
  letter-spacing: 2px;
}
.cinematic-copy h1 {
  font-size: clamp(58px, 6.7vw, 112px);
  line-height: 1.03;
  letter-spacing: -0.065em;
  margin: 32px 0;
}
.cinematic-copy .rule {
  background: #c5c59b;
  width: 95px;
  height: 4px;
  margin: 0 0 22px;
}
.cinematic-copy p {
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.6;
  color: #e1e4d8;
}
.cinematic-copy .text-link {
  color: #f4f2e7;
  border-color: #c2c8ad;
  margin-top: 28px;
  font-size: 12px;
  gap: 45px;
}
.hero-bottom {
  position: absolute;
  left: 5%;
  right: 4%;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #dadbc9;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.hero-bottom span:last-child {
  text-align: right;
  letter-spacing: 0.5px;
  font-size: 8px;
}
@media (max-width: 760px) {
  #uvod.cinematic-intro {
    padding: 0 0 0;
  }
  .hero-landscape {
    object-position: 66% center;
  }
  .hero-shade {
    background: linear-gradient(
      0deg,
      rgba(9, 20, 21, 0.9),
      rgba(9, 20, 21, 0.4) 48%,
      rgba(9, 20, 21, 0.03) 80%
    );
  }
  .cinematic-copy {
    left: 7%;
    right: 7%;
    width: auto;
    top: auto;
    bottom: 75px;
    transform: none;
  }
  .cinematic-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .cinematic-copy h1 {
    font-size: clamp(51px, 12vw, 77px);
    margin: 20px 0;
  }
  .cinematic-copy p {
    font-size: 14px;
  }
  .cinematic-copy .rule {
    width: 64px;
    height: 3px;
    margin-bottom: 18px;
  }
  .cinematic-copy .text-link {
    margin-top: 18px;
  }
  .hero-bottom {
    left: 7%;
    right: 7%;
    bottom: 20px;
    align-items: flex-end;
    font-size: 8px;
  }
  .hero-bottom span:last-child {
    font-size: 7px;
    max-width: 125px;
    line-height: 1.5;
  }
}
@media (max-height: 660px) and (min-width: 761px) {
  .cinematic-copy h1 {
    font-size: 60px;
    margin: 20px 0;
  }
  .cinematic-copy .text-link {
    margin-top: 16px;
  }
  .hero-bottom {
    bottom: 15px;
  }
}
