:root {
  --paper: #f7f7f5;
  --soft: #ececea;
  --fog: #dadad6;
  --ink: #1e1f1d;
  --muted: #777973;
  --line: rgba(30, 31, 29, 0.14);
  --line-dark: rgba(247, 247, 245, 0.34);
  --charcoal: #383a37;
  --charcoal-deep: #262824;
  --container: min(1234px, calc(100% - 44px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: "TildaSans";
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url("fonts/TildaSans-VF.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "TildaSans", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  transform: translateY(-140%);
  transition: transform 300ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 15;
  width: min(1234px, calc(100% - clamp(84px, 20vw, 440px)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  color: var(--paper);
  transform: translateX(-50%);
  transition: color 300ms var(--ease), width 300ms var(--ease), padding 300ms var(--ease);
}

.site-header.is-scrolled,
.menu-open .site-header {
  color: var(--ink);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 16px;
  font-weight: 300;
}

.main-nav a,
.header-contact,
.outline-button,
.phone-link,
.mail-link {
  position: relative;
}

.main-nav a::after,
.phone-link::after,
.mail-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}

.main-nav a:hover::after,
.phone-link:hover::after,
.mail-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(78px, 5.6vw, 112px);
  height: clamp(73px, 5.22vw, 104px);
}

.brand-logo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 260ms var(--ease);
}

.brand-logo-black {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-white,
.menu-open .brand-logo-white {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-black,
.menu-open .brand-logo-black {
  opacity: 1;
}

.header-contact {
  justify-self: end;
  padding: 10px 30px;
  border: 2px solid currentColor;
  font-size: 16px;
  font-weight: 600;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease), transform 260ms var(--ease);
}

.header-contact:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  transform: translateY(-1px);
}

.site-header.is-scrolled .header-contact:hover,
.menu-open .header-contact:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-self: end;
  gap: 12px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle i {
  position: relative;
  width: 28px;
  height: 12px;
}

.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: transform 420ms var(--ease);
}

.menu-toggle i::before {
  top: 0;
}

.menu-toggle i::after {
  bottom: 0;
}

.menu-open .menu-toggle i::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-toggle i::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 110px 28px 48px;
  background: rgba(247, 247, 245, 0.96);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.mobile-menu a {
  font-size: clamp(34px, 14vw, 76px);
  line-height: 0.98;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-open .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
}

.menu-open .mobile-menu a:nth-child(2) {
  transition-delay: 50ms;
}

.menu-open .mobile-menu a:nth-child(3) {
  transition-delay: 100ms;
}

.menu-open .mobile-menu a:nth-child(4) {
  transition-delay: 150ms;
}

.menu-open .mobile-menu a:nth-child(5) {
  transition-delay: 200ms;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background-image: url("imagen/optimized/glav-1280.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: var(--paper);
}

@supports (background-image: image-set(url("imagen/optimized/glav-1280.avif") type("image/avif"))) {
  .hero {
    background-image: image-set(
      url("imagen/optimized/glav-1280.avif") type("image/avif"),
      url("imagen/optimized/glav-1280.webp") type("image/webp"),
      url("imagen/optimized/glav-1280.jpg") type("image/jpeg")
    );
  }
}

@media (max-width: 800px) {
  .hero {
    background-image: url("imagen/optimized/glav-768.jpg");
  }

  @supports (background-image: image-set(url("imagen/optimized/glav-768.avif") type("image/avif"))) {
    .hero {
      background-image: image-set(
        url("imagen/optimized/glav-768.avif") type("image/avif"),
        url("imagen/optimized/glav-768.webp") type("image/webp"),
        url("imagen/optimized/glav-768.jpg") type("image/jpeg")
      );
    }
  }
}

@media (min-width: 1440px) {
  .hero {
    background-image: url("imagen/optimized/glav-1920.jpg");
  }

  @supports (background-image: image-set(url("imagen/optimized/glav-1920.avif") type("image/avif"))) {
    .hero {
      background-image: image-set(
        url("imagen/optimized/glav-1920.avif") type("image/avif"),
        url("imagen/optimized/glav-1920.webp") type("image/webp"),
        url("imagen/optimized/glav-1920.jpg") type("image/jpeg")
      );
    }
  }
}

.hero-tone {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(93, 93, 93, 0.5), rgba(48, 48, 48, 0.8));
}

.hero-inner {
  position: relative;
  min-height: 100dvh;
  display: block;
  width: var(--container);
  margin: 0 auto;
  padding: 110px 0 92px;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(64px, 14vh) auto auto minmax(260px, 34vh) auto 1fr;
  justify-items: center;
  align-content: stretch;
  max-width: none;
  padding: 104px 20px 112px;
  text-align: center;
  transform: none;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  grid-row: 2;
  align-self: end;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero h1 {
  grid-row: 3;
  align-self: center;
  max-width: 520px;
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero-tagline {
  grid-row: 5;
  align-self: start;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(-2px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(5px) rotate(45deg);
  }
}

.section-pad {
  padding: clamp(72px, 9vw, 132px) clamp(42px, 10vw, 220px);
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(420px, 650px);
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 5vw, 84px);
  background: var(--paper);
}

.image-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(30, 31, 29, 0.1), transparent 26%),
    linear-gradient(145deg, #c7c8c4, #f3f3f0 46%, #a9aaa6);
  border: 1px solid var(--line);
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(30, 31, 29, 0.18) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(30, 31, 29, 0.16) 50%, transparent 51%);
  background-size: 74px 74px;
  opacity: 0.44;
}

.image-placeholder.has-image::before {
  display: none;
}

.image-placeholder span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(30, 31, 29, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portrait-placeholder {
  width: min(500px, 100%);
  aspect-ratio: 0.72;
  max-height: 700px;
  background: transparent;
}

.studio-copy {
  text-align: center;
}

.studio-copy h2,
.section-heading h2,
.contacts-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.studio-copy .section-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
}

.rule {
  width: 72px;
  height: 1px;
  margin: 28px auto;
  background: var(--ink);
}

.studio-copy p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.principles {
  display: grid;
  gap: 14px;
  max-width: 650px;
  margin: 42px auto 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.principles strong {
  color: var(--ink);
}

.portfolio-section,
.realization-section {
  padding: 34px 0 74px;
}

.section-heading {
  width: var(--container);
  margin: 0 auto 34px;
}

.section-heading.centered {
  margin-bottom: 56px;
  text-align: center;
}

.section-heading p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading.centered p {
  margin: 12px auto 0;
}

.mosaic-grid {
  --project-row-height: clamp(150px, 12.4vw, 250px);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.mosaic-grid::after {
  content: "";
  flex-grow: 999;
}

.realization-grid {
  --realiz-row-height: clamp(190px, 15vw, 300px);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.project-tile,
.realiz-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: block;
  padding: 0;
  color: inherit;
  border: 0;
  background: #d0d0cd;
  cursor: pointer;
}

.project-tile {
  flex: calc(var(--ratio, 1.778) * 100) 1 calc(var(--ratio, 1.778) * var(--project-row-height));
  height: var(--project-row-height);
}

.project-tile::before,
.realiz-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(145deg, rgba(247, 247, 245, 0.58), rgba(30, 31, 29, 0.08) 38%, rgba(30, 31, 29, 0.44)),
    linear-gradient(90deg, rgba(30, 31, 29, 0.14), transparent);
  transition: opacity 360ms var(--ease);
}

.project-tile::after,
.realiz-tile::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(30, 31, 29, 0.24);
  clip-path: polygon(0 55%, 35% 18%, 60% 42%, 100% 8%, 100% 100%, 0 100%);
  opacity: 0.45;
  transform: translateY(10px);
  transition: transform 420ms var(--ease), opacity 420ms var(--ease);
}

.project-tile.has-image::after,
.realiz-tile.has-image::after {
  display: none;
}

.project-tile img,
.realiz-tile img {
  filter: grayscale(1);
  transition: filter 420ms var(--ease), transform 620ms var(--ease);
}

.project-tile img,
.realiz-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-tile:hover img,
.realiz-tile:hover img {
  filter: grayscale(0.15);
  transform: scale(1.035);
}

.project-tile:hover::before,
.realiz-tile:hover::before {
  opacity: 0.58;
}

.project-tile:hover::after,
.realiz-tile:hover::after {
  opacity: 0.75;
  transform: translateY(0);
}

.realiz-tile {
  flex: calc(var(--ratio, 1.333) * 100) 1 calc(var(--ratio, 1.333) * var(--realiz-row-height));
  height: var(--realiz-row-height);
}

.center-action {
  display: grid;
  place-items: center;
  padding: 34px 22px 0;
}

.outline-button {
  min-width: 210px;
  padding: 13px 22px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 260ms var(--ease), background 260ms var(--ease), transform 260ms var(--ease);
}

.outline-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-1px);
}

.outline-button:active {
  transform: translateY(1px);
}

.services-section {
  background: var(--paper);
  margin-bottom: 74px;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(420px, 650px);
  align-items: center;
  gap: clamp(48px, 5vw, 84px);
  width: min(1234px, 100%);
  margin: 0 auto;
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-card {
  padding: 28px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}

.service-card.is-active,
.service-card:hover {
  background: rgba(255, 255, 255, 0.56);
  border-color: var(--line);
  transform: translateX(4px);
}

.service-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-visual {
  aspect-ratio: 1;
  min-height: 0;
  background: transparent;
}

.service-visual img {
  filter: grayscale(1);
  transition: opacity 260ms var(--ease), filter 300ms var(--ease);
}

.service-visual.is-changing img {
  opacity: 0.2;
}

.realization-section {
  padding-top: 74px;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 28px;
  width: var(--container);
  margin: 58px auto 0;
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11120f;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.video-card img {
  filter: grayscale(1);
  opacity: 0.86;
  transition: filter 360ms var(--ease), opacity 360ms var(--ease), transform 520ms var(--ease);
}

.video-card:hover img {
  filter: grayscale(0.2);
  opacity: 1;
  transform: scale(1.035);
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(19, 20, 18, 0.2);
}

.video-play::before {
  content: "";
  width: 54px;
  height: 54px;
  border: 2px solid rgba(247, 247, 245, 0.9);
  border-radius: 50%;
  background: rgba(19, 20, 18, 0.28);
}

.video-play::after {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: calc(50% - 10px);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--paper);
}

.video-card.is-loaded {
  cursor: default;
}

.video-card iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-section {
  padding: 54px 22px 72px;
  text-align: center;
  background: var(--soft);
}

.projects-page {
  background: var(--paper);
}

.projects-archive {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(150px, 14vw, 210px) 0 86px;
}

.projects-archive-heading {
  margin-bottom: clamp(72px, 8vw, 112px);
}

.projects-archive-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 3.05vw, 50px);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0;
}

.projects-archive-heading .rule {
  margin: 60px 0 0;
  background: var(--line);
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 88px;
}

.project-card {
  display: block;
  color: inherit;
  text-align: center;
}

.project-card picture,
.project-card img {
  width: 100%;
  aspect-ratio: 1.52;
  height: auto;
  object-fit: cover;
}

.project-card h2 {
  max-width: 520px;
  margin: 26px auto 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 700;
}

.project-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-detail-page {
  background: var(--paper);
}

.project-detail-container {
  padding: clamp(140px, 13vw, 190px) 0 0;
}

.project-detail-heading,
.project-detail-intro,
.project-stats,
.project-detail-section-title {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.project-detail-heading {
  margin-bottom: 58px;
}

.project-detail-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.35;
  font-weight: 400;
}

.project-detail-heading .rule,
.project-detail-section-title .rule {
  margin: 54px 0 0;
  background: var(--line);
}

.project-detail-intro {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.project-detail-intro picture,
.project-detail-intro img {
  width: 100%;
  aspect-ratio: 1.72;
  height: auto;
  object-fit: cover;
}

.project-detail-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.22;
  font-weight: 400;
}

.project-detail-location {
  margin: 6px 0 22px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.project-detail-copy p:not(.project-detail-location) {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 92px;
  text-align: center;
}

.project-stats div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.project-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1;
  font-weight: 700;
}

.project-stats span {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.project-detail-gallery {
  margin: 112px 0;
}

.project-static-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.project-static-gallery picture,
.project-static-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.68;
  height: auto;
  object-fit: cover;
}

.project-gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(420px, 1.95fr) minmax(180px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  overflow: hidden;
}

.project-gallery-main-wrap,
.project-gallery-main {
  width: 100%;
  aspect-ratio: 1.68;
  height: auto;
  object-fit: cover;
}

.project-gallery-preview-wrap,
.project-gallery-preview {
  width: 100%;
  aspect-ratio: 1.68;
  height: auto;
  object-fit: cover;
}

.project-gallery-preview {
  opacity: 0.24;
}

.project-gallery-preview-wrap.is-prev {
  transform: translateX(-22%);
}

.project-gallery-preview-wrap.is-next {
  transform: translateX(22%);
}

.project-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 31, 29, 0.09);
  cursor: pointer;
  transform: translateY(-50%);
}

.project-gallery-arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(30, 31, 29, 0.44);
  border-left: 2px solid rgba(30, 31, 29, 0.44);
}

.project-gallery-arrow.is-prev {
  left: calc(50% - min(470px, 36vw) - 46px);
}

.project-gallery-arrow.is-prev::before {
  left: 12px;
  transform: rotate(-45deg);
}

.project-gallery-arrow.is-next {
  right: calc(50% - min(470px, 36vw) - 46px);
}

.project-gallery-arrow.is-next::before {
  right: 12px;
  transform: rotate(135deg);
}

.project-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.project-gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 31, 29, 0.24);
  cursor: pointer;
}

.project-gallery-dots button.is-active {
  background: var(--ink);
}

.project-detail-section-title {
  margin-top: 110px;
  margin-bottom: 66px;
}

.project-detail-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.28;
  font-weight: 400;
}

.project-detail-video {
  width: var(--container);
  margin: 100px auto;
}

.project-detail-video .project-detail-section-title {
  width: 100%;
  margin: 0 0 46px;
}

.project-video-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.modal-media picture {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
}

.contacts-section h2 {
  margin: 12px 0 22px;
  font-size: 14px;
  font-weight: 600;
}

.phone-link,
.mail-link {
  display: table;
  margin: 8px auto;
  color: var(--ink);
  font-size: 20px;
}

address {
  max-width: 280px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: transform 260ms var(--ease), background 260ms var(--ease);
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.socials a:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 58px 84px 44px;
  background: rgba(19, 20, 18, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  padding: 11px 16px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(247, 247, 245, 0.54);
  cursor: pointer;
}

.modal-media {
  display: grid;
  place-items: center;
  width: calc(100vw - 168px);
  height: calc(100dvh - 118px);
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.modal-media.is-upgrading picture {
  grid-area: 1 / 1;
}

.modal-media .modal-preview {
  opacity: 1;
}

.modal-media .modal-full {
  opacity: 0;
  transition: opacity 280ms var(--ease);
}

.modal-media .modal-full.is-loaded {
  opacity: 1;
}

.modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(247, 247, 245, 0.48);
  border-radius: 50%;
  background: rgba(247, 247, 245, 0.06);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.modal-arrow:hover {
  background: rgba(247, 247, 245, 0.14);
  border-color: rgba(247, 247, 245, 0.78);
}

.modal-arrow::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--paper);
  border-left: 2px solid var(--paper);
}

.modal-arrow-prev {
  left: 24px;
}

.modal-arrow-prev::before {
  left: 21px;
  transform: rotate(-45deg);
}

.modal-arrow-next {
  right: 24px;
}

.modal-arrow-next::before {
  right: 21px;
  transform: rotate(135deg);
}

.modal-counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  color: rgba(247, 247, 245, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.modal-placeholder {
  display: grid;
  place-items: center;
  min-height: min(66vh, 620px);
  color: rgba(247, 247, 245, 0.76);
  background:
    linear-gradient(135deg, rgba(247, 247, 245, 0.1), transparent 42%),
    var(--charcoal-deep);
  text-align: center;
  padding: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .mosaic-grid {
    --project-row-height: clamp(118px, 24vw, 190px);
  }

  .site-header {
    grid-template-columns: auto 1fr;
    width: calc(100% - 44px);
    padding: 18px 0;
  }

  .main-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-mark {
    justify-self: start;
    width: 72px;
    height: 67px;
  }

  .hero-inner {
    padding-top: 96px;
  }

  .hero-copy {
    grid-template-rows: minmax(54px, 12vh) auto auto minmax(174px, 28vh) auto 1fr;
    padding: 88px 16px 104px;
  }

  .hero-tagline {
    margin: 0;
  }

  .studio-section,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .realization-grid {
    --realiz-row-height: clamp(150px, 30vw, 230px);
  }

  .video-row {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 16px;
  }

  .projects-list {
    column-gap: 22px;
    row-gap: 62px;
  }

  .project-detail-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-gallery-stage {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 44px));
    margin: 0 auto;
  }

  .project-gallery-preview-wrap,
  .project-gallery-preview {
    display: none;
  }

  .project-gallery-arrow.is-prev {
    left: 14px;
  }

  .project-gallery-arrow.is-next {
    right: 14px;
  }
}

@media (max-width: 560px) {
  .mosaic-grid {
    --project-row-height: 128px;
  }

  .section-pad {
    padding: 64px 20px;
  }

  .modal {
    padding: 58px 18px 48px;
  }

  .modal-media {
    width: 100%;
    height: calc(100dvh - 116px);
  }

  .modal-arrow {
    width: 42px;
    height: 42px;
    background: rgba(19, 20, 18, 0.46);
  }

  .modal-arrow::before {
    top: 14px;
    width: 13px;
    height: 13px;
  }

  .modal-arrow-prev {
    left: 12px;
  }

  .modal-arrow-prev::before {
    left: 16px;
  }

  .modal-arrow-next {
    right: 12px;
  }

  .modal-arrow-next::before {
    right: 16px;
  }

  .hero h1 {
    max-width: 300px;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .studio-copy {
    text-align: left;
  }

  .rule {
    margin-left: 0;
  }

  .studio-copy p,
  .principles {
    margin-left: 0;
    margin-right: 0;
  }

  .section-heading,
  .section-heading.centered {
    width: calc(100% - 40px);
    text-align: left;
  }

  .section-heading.centered p {
    margin-left: 0;
  }

  .realization-grid {
    --realiz-row-height: 132px;
  }

  .service-card {
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }

  .service-card.is-active,
  .service-card:hover {
    background: transparent;
    border-color: var(--line);
    transform: none;
  }

  .service-visual {
    min-height: 310px;
  }

  .video-row {
    grid-template-columns: 1fr;
  }

  .projects-archive {
    width: calc(100% - 40px);
    padding-top: 126px;
    padding-bottom: 64px;
  }

  .projects-archive-heading {
    margin-bottom: 52px;
  }

  .projects-archive-heading .rule {
    margin-top: 34px;
  }

  .projects-list {
    grid-template-columns: 1fr;
    row-gap: 52px;
  }

  .project-card h2 {
    font-size: 16px;
  }

  .project-detail-container {
    padding-top: 118px;
  }

  .project-detail-heading,
  .project-detail-intro,
  .project-stats,
  .project-detail-section-title {
    width: calc(100% - 40px);
  }

  .project-detail-heading {
    margin-bottom: 42px;
  }

  .project-detail-heading .rule,
  .project-detail-section-title .rule {
    margin-top: 34px;
  }

  .project-stats {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 58px;
  }

  .project-detail-gallery {
    margin: 72px 0;
  }

  .project-static-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery-stage {
    width: calc(100% - 40px);
  }

  .project-detail-section-title {
    margin-top: 72px;
    margin-bottom: 42px;
  }

  .project-detail-video {
    width: calc(100% - 40px);
    margin: 72px auto;
  }
}
