:root {
  --bg: #efede8;
  --black: #030303;
  --text: #101010;
  --muted: #77736d;
  --left-width: 80vw;
  --right-width: 20vw;
  --font-main: "Montserrat", Arial, sans-serif;
  --light: 300;
  --medium: 500;
  --slide-margin: clamp(24px, 2.4vw, 46px);
  --home-title-size: clamp(28px, min(3.35vw, 6.45vh), 66px);
  --home-intro-size: clamp(12px, min(0.9vw, 1.9vh), 17px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main) !important;
  font-weight: var(--light);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a,
input,
textarea,
select,
address,
h1,
h2,
h3,
p,
span,
div {
  font-family: var(--font-main) !important;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fixed-logo {
  position: fixed;
  top: clamp(28px, 4.1vh, 42px);
  left: clamp(30px, 4vw, 52px);
  z-index: 40;
  width: clamp(243px, 14vw, 343px);
  display: block;
  line-height: 0;
}

.fixed-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  width: 100vw;
  height: 100vh;
  transition: filter 220ms ease;
}

.site-shell.is-blurred,
.fixed-logo.is-blurred {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.page-scroll {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--left-width);
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.page-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: clamp(82px, 8.5vh, 118px) 6.5vw clamp(52px, 6.2vh, 86px);
  display: none;
  overflow: hidden;
}

.page-section.active-section {
  display: block;
}

.home-section.active-section {
  display: grid;
  place-items: center;
}

.hero-copy {
  width: min(790px, 68%);
  max-height: calc(100vh - clamp(130px, 16vh, 200px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: clamp(9px, min(0.72vw, 1.6vh), 13px);
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--light);
}

.hero-copy h1 {
  margin: clamp(12px, 1.6vh, 18px) 0 clamp(18px, 3vh, 30px);
  font-size: var(--home-title-size);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: var(--light);
}

.intro-copy {
  width: min(660px, 86%);
  margin-left: min(10.3vw, 130px);
  font-size: var(--home-intro-size);
  line-height: 1.38;
  letter-spacing: -0.025em;
  font-weight: var(--light);
}

.intro-copy p {
  margin: 0 0 clamp(8px, 1.3vh, 14px);
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--right-width);
  height: 100vh;
  background: #000;
  color: #fff;
  z-index: 35;
}

.language-switch {
  position: absolute;
  top: 34px;
  right: 34px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #fff;
  font-size: clamp(10px, 0.7vw, 13px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.lang-button {
  color: #fff;
  font-weight: var(--light);
  padding: 0;
}

.lang-button.active {
  font-weight: var(--medium);
}

.side-nav {
  position: absolute;
  top: 9.2vh;
  left: 3.3vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.side-nav button {
  color: #fff;
  padding: 0;
  margin: 0;
  font-size: clamp(15px, min(1.05vw, 2.18vh), 23px);
  line-height: 1.08;
  letter-spacing: -0.07em;
  font-weight: var(--light);
  text-align: left;
}

.side-nav button.active {
  font-weight: var(--medium);
}

/* PROJECT GRID */

.projects-section {
  padding-top: 120px;
}

.projects-content {
  width: 100%;
  height: 100%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
  align-content: start;
  justify-content: start;
  gap: clamp(14px, 1.4vw, 24px);
  width: 100%;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border: 0;
  padding: 0;
  color: #000;
}

.project-card img,
.project-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  transition: filter 220ms ease, transform 420ms ease;
}

.project-card:hover img,
.project-card:hover iframe {
  filter: blur(6px) brightness(1.28);
  transform: scale(1.025);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.68);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  opacity: 0;
  color: #000;
  font-size: clamp(14px, 1.08vw, 22px);
  line-height: 1;
  letter-spacing: -0.045em;
  transition: opacity 220ms ease, transform 220ms ease;
  transform: translateY(8px);
}

.project-card:hover .project-card-title {
  opacity: 1;
  transform: translateY(0);
}

.no-projects {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* CONTACTS */

.contacts-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(280px, 34%);
  align-items: center;
  justify-content: center;
  gap: clamp(54px, 5vw, 110px);
}

.contact-photo-wrap {
  width: 80%;
  justify-self: end;
}

.contact-photo {
  width: 100%;
  height: auto;
  display: block;
}

.contact-details {
  font-style: normal;
  justify-self: start;
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.42;
  letter-spacing: -0.035em;
}

.contact-details h2 {
  margin: 0 0 24px;
  font-size: clamp(25px, 1.65vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: var(--light);
}

.contact-role-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}



.contact-phone,
.contact-email,
.contact-cv,
.contact-cert {
  display: block;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  padding: 0;
  margin: 0 0 6px;
  letter-spacing: -0.035em;
}

.contact-email:hover,
.contact-phone:hover,
.contact-cv:hover,
.contact-cert:hover {
  opacity: 0.62;
}

.copy-status {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.contact-icons a {
  line-height: 0;
  display: inline-flex;
  align-items: center;
}

.contact-icons img {
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0.63);
  opacity: 0.72;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.contact-icons a:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

.linkedin-icon {
  width: 31px;
  height: 31px;
}

.rekvizitai-icon {
  width: 22px;
  height: 22px;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
}

.modal-overlay.open {
  display: grid;
}

.modal-window {
  position: relative;
  width: min(90vw, 1680px);
  height: min(90vh, 940px);
  background: var(--bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 12;
  color: #000;
  font-size: 28px;
  line-height: 1;
}

.modal-topline {
  position: absolute;
  top: 30px;
  left: 38px;
  right: 84px;
  z-index: 11;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

#modalProjectTitle {
  display: none;
}

.modal-slides {
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
}

.modal-slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: clamp(58px, 6vh, 90px) clamp(70px, 7vw, 130px) clamp(58px, 6vh, 90px);
}

.modal-slide.active {
  display: grid;
}

.modal-slide-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
}

.modal-arrow {
  position: absolute;
  right: 34px;
  z-index: 13;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  color: #000;
  font-size: 18px;
  line-height: 1;
}

.modal-arrow-up {
  bottom: 78px;
}

.modal-arrow-down {
  bottom: 28px;
}

/* FIRST MODAL SLIDE */

.slide-title {
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  column-gap: clamp(36px, 4.2vw, 90px);
  align-items: start;
}

.slide-title-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  align-items: center;
}

.slide-title-media img,
.slide-title-media iframe {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  display: block;
}

.slide-title-info {
  align-self: start;
  max-height: 100%;
  overflow: auto;
  padding-right: 10px;
}

.project-title {
  margin: 0 0 24px;
  font-size: clamp(25px, 1.8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: var(--light);
}

.project-meta {
  display: grid;
  row-gap: 7px;
  margin-bottom: 22px;
  font-size: clamp(12px, 0.82vw, 15px);
}

.project-meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.project-meta-key {
  color: var(--muted);
}

.project-meta-key::after {
  content: ":";
}

.project-description {
  margin-top: 14px;
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-align: justify;
  text-align-last: left;
}

.project-description p {
  margin: 0 0 12px;
}

/* SLIDE MEDIA */

.slide-media-area {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.slide-media-wrap,
.slide-two-media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.slide-media-wrap img,
.slide-media-wrap iframe,
.slide-two-media img,
.slide-two-media iframe {
  display: block;
  border: 0;
  object-fit: contain;
  object-position: center center;
  max-width: 100%;
  max-height: 100%;
}

/* SINGLE IMAGE, NO TEXT */

.slide-media-only {
  place-items: center;
}

.slide-media-only .slide-media-area {
  width: 100%;
  height: 100%;
  padding: var(--slide-margin);
  display: grid;
  place-items: center;
}

.slide-media-only .slide-media-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.slide-media-only .slide-media-wrap img,
.slide-media-only .slide-media-wrap iframe {
  width: 100%;
  height: 100%;
}

/* TWO IMAGES */

.slide-two-media {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 1.5vw, 34px);
  align-items: center;
  justify-items: center;
}

.slide-two-media img,
.slide-two-media iframe {
  width: 100%;
  height: 100%;
}

/* RIGHT TEXT SLIDES */

.slide-with-right-text {
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.slide-with-right-text .slide-media-area {
  width: 100%;
  height: 100%;
  padding-left: var(--slide-margin);
  padding-right: var(--slide-margin);
  display: grid;
  place-items: center;
}

.slide-with-right-text .slide-media-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.slide-with-right-text .slide-media-wrap img,
.slide-with-right-text .slide-media-wrap iframe {
  width: 100%;
  height: 100%;
}

.slide-with-right-text .slide-two-media {
  width: 100%;
  height: 100%;
}

.slide-with-right-text .slide-text-right {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-left: var(--slide-margin);
  padding-right: var(--slide-margin);
  align-self: start;
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-align: justify;
  text-align-last: left;
}

/* BOTTOM TEXT SLIDES */

.slide-with-bottom-text {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  row-gap: clamp(14px, 1.4vh, 24px);
}

.slide-with-bottom-text .slide-media-area {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-left: var(--slide-margin);
  padding-right: var(--slide-margin);
  display: grid;
  place-items: center;
}

.slide-with-bottom-text .slide-media-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.slide-with-bottom-text .slide-media-wrap img,
.slide-with-bottom-text .slide-media-wrap iframe {
  width: 100%;
  height: 100%;
}

.slide-with-bottom-text .slide-two-media {
  width: 100%;
  height: 100%;
}

.slide-with-bottom-text .slide-text-bottom {
  max-height: 24vh;
  overflow: auto;
  padding-left: var(--slide-margin);
  padding-right: var(--slide-margin);
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-align: justify;
  text-align-last: left;
}

.slide-text-bottom p,
.slide-text-right p {
  margin: 0 0 12px;
}

@media (max-height: 780px) {
  .fixed-logo {
    width: clamp(210px, 12vw, 300px);
    top: 28px;
  }

  .hero-copy {
    width: min(760px, 72%);
  }

  .intro-copy {
    margin-left: min(7vw, 90px);
  }
}

@media (max-height: 660px) {
  :root {
    --home-title-size: clamp(25px, min(3vw, 6.2vh), 54px);
    --home-intro-size: clamp(12px, min(0.82vw, 1.75vh), 15px);
  }

  .page-section {
    padding-top: 70px;
    padding-bottom: 40px;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
  }
}



/* HIDDEN PROJECT PLACEHOLDER */
.project-card-hidden {
  display: grid;
  place-items: center;
  background: #fff;
  cursor: default;
}

.project-card-hidden::after {
  display: none;
}

.project-card-hidden:hover {
  cursor: default;
}

.project-card-hidden:hover img,
.project-card-hidden:hover iframe {
  filter: none;
  transform: none;
}

.coming-soon-label {
  color: var(--muted);
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: center;
}

/* CONTACTS COPYRIGHT */
.contacts-content {
  position: relative;
}

.contacts-copyright {
  position: absolute;
  left: clamp(30px, 4vw, 52px);
  bottom: clamp(28px, 4vh, 44px);
  color: var(--muted);
  font-size: clamp(10px, 0.72vw, 13px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* MOBILE */

@media (max-width: 900px) {
  :root {
    --mobile-panel-width: clamp(76px, 20vw, 106px);
    --left-width: calc(100vw - var(--mobile-panel-width));
    --right-width: var(--mobile-panel-width);
    --slide-margin: clamp(8px, 2vw, 16px);
    --home-title-size: clamp(21px, min(6.2vw, 5.4vh), 38px);
    --home-intro-size: clamp(9px, min(2.35vw, 1.45vh), 12px);
  }

  html,
  body {
    overflow: hidden;
  }

  .side-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: var(--mobile-panel-width);
    height: 100vh;
  }

  .language-switch {
    top: 20px;
    right: clamp(10px, 3vw, 18px);
    left: auto;
    font-size: clamp(8px, 2.3vw, 10px);
    gap: 5px;
  }

  .side-nav {
    top: 76px;
    left: clamp(10px, 2.8vw, 16px);
    right: 8px;
    flex-direction: column;
    gap: 2px;
  }

  .side-nav button {
    font-size: clamp(13px, 4.1vw, 18px);
    line-height: 1.04;
    letter-spacing: -0.07em;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .page-scroll {
    left: 0;
    right: var(--mobile-panel-width);
    width: calc(100vw - var(--mobile-panel-width));
    height: 100vh;
  }

  .fixed-logo {
    top: clamp(18px, 4vh, 28px);
    left: clamp(14px, 3.6vw, 24px);
    width: clamp(108px, 30vw, 170px);
  }

  .page-section {
    padding: clamp(74px, 11vh, 100px) clamp(14px, 4vw, 30px) clamp(20px, 4vh, 40px);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .home-section.active-section {
    display: grid;
    place-items: center;
  }

  .hero-copy {
    width: 100%;
    max-height: calc(100vh - clamp(110px, 16vh, 145px));
    justify-content: center;
  }

  .eyebrow {
    font-size: clamp(7px, min(1.9vw, 1.3vh), 9.5px);
    letter-spacing: 0.12em;
    line-height: 1.25;
  }

  .hero-copy h1 {
    font-size: var(--home-title-size);
    line-height: 1.07;
    letter-spacing: -0.065em;
    margin: clamp(10px, 1.5vh, 14px) 0 clamp(14px, 2.4vh, 22px);
  }

  .intro-copy {
    width: 100%;
    margin-left: 0;
    font-size: var(--home-intro-size);
    line-height: 1.34;
  }

  .intro-copy p {
    margin: 0;
  }

  .projects-section {
    padding-top: clamp(80px, 12vh, 105px);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2.4vw, 14px);
    align-content: start;
  }

  .project-card-title,
  .coming-soon-label {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: clamp(9px, 2.5vw, 13px);
  }

  .contacts-section {
    padding-top: clamp(70px, 10vh, 92px);
    padding-bottom: clamp(16px, 3vh, 30px);
  }

  .contacts-content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: clamp(10px, 2.2vh, 16px);
  }

  .contact-photo-wrap {
    grid-column: 1;
    grid-row: 1;
    width: min(58vw, 280px);
    max-width: 92%;
    justify-self: center;
  }

  .contact-photo {
    width: 100%;
    max-height: min(34vh, 285px);
    height: auto;
    object-fit: contain;
  }

  .contact-details {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    max-width: min(58vw, 310px);
    font-size: clamp(9px, min(2.35vw, 1.55vh), 12px);
    line-height: 1.26;
    letter-spacing: -0.035em;
    text-align: left;
  }

  .contact-details h2 {
    font-size: clamp(12px, min(3.25vw, 2vh), 18px);
    line-height: 1.08;
    margin: 0 0 clamp(8px, 1.3vh, 12px);
  }

  .contact-role-lines {
    gap: 2px;
    margin-bottom: clamp(8px, 1.3vh, 12px);
  }

  .contact-phone,
  .contact-email,
  .contact-cv,
  .contact-cert {
    margin-bottom: 2px;
  }

  .copy-status {
    min-height: 10px;
    font-size: 8px;
    margin-top: 3px;
  }

  .contact-icons {
    gap: 10px;
    margin-top: clamp(8px, 1.5vh, 12px);
  }

  .linkedin-icon {
    width: 21px;
    height: 21px;
  }

  .rekvizitai-icon {
    width: 15px;
    height: 15px;
  }

  .contacts-copyright {
    position: static;
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: clamp(2px, 0.8vh, 8px);
    color: var(--muted);
    font-size: clamp(8px, 2vw, 10px);
  }

  .modal-overlay {
    padding-right: var(--mobile-panel-width);
    padding-left: 0;
    place-items: center;
  }

  .modal-window {
    width: calc(100vw - var(--mobile-panel-width) - 12px);
    height: calc(100vh - 20px);
  }

  .modal-close {
    top: 14px;
    right: 16px;
    font-size: 22px;
  }

  .modal-topline {
    top: 17px;
    left: 18px;
    right: 56px;
    font-size: 9px;
  }

  .modal-slide {
    padding: 42px 14px 42px;
  }

  .modal-arrow {
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .modal-arrow-up {
    bottom: 52px;
  }

  .modal-arrow-down {
    bottom: 16px;
  }

  .slide-title {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 45%) minmax(0, 55%);
    row-gap: 12px;
  }

  .slide-title-media,
  .slide-title-info {
    min-height: 0;
  }

  .slide-title-media img,
  .slide-title-media iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .slide-title-info {
    overflow: auto;
    padding-right: 4px;
  }

  .project-title {
    font-size: clamp(15px, 3.8vw, 22px);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .project-meta {
    row-gap: 3px;
    margin-bottom: 10px;
    font-size: clamp(9px, 2.2vw, 12px);
  }

  .project-description {
    font-size: clamp(9px, 2.2vw, 12px);
    line-height: 1.34;
    margin-top: 8px;
  }

  .project-description p {
    margin-bottom: 8px;
  }

  .slide-with-right-text {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    height: 100%;
    align-items: stretch;
  }

  .slide-with-right-text .slide-media-area {
    padding-left: var(--slide-margin);
    padding-right: var(--slide-margin);
  }

  .slide-with-right-text .slide-text-right {
    padding-left: var(--slide-margin);
    padding-right: var(--slide-margin);
    font-size: clamp(8px, 2vw, 10.5px);
    line-height: 1.25;
    overflow: auto;
  }

  .slide-with-bottom-text {
    grid-template-rows: minmax(0, 74%) minmax(0, 26%);
    row-gap: 8px;
  }

  .slide-with-bottom-text .slide-text-bottom {
    max-height: none;
    height: 100%;
    overflow: auto;
    padding-left: var(--slide-margin);
    padding-right: var(--slide-margin);
    font-size: clamp(8px, 2vw, 10.5px);
    line-height: 1.25;
  }

  .slide-two-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(8px, 2vw, 14px);
  }

  .slide-media-wrap img,
  .slide-media-wrap iframe,
  .slide-two-media img,
  .slide-two-media iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  :root {
    --mobile-panel-width: clamp(72px, 20vw, 92px);
    --home-title-size: clamp(19px, min(5.8vw, 4.9vh), 31px);
    --home-intro-size: clamp(8.5px, min(2.15vw, 1.32vh), 11px);
  }

  .side-nav {
    top: 72px;
    left: clamp(8px, 2.4vw, 12px);
    right: 6px;
  }

  .side-nav button {
    font-size: clamp(12px, 3.9vw, 16px);
  }

  .language-switch {
    right: clamp(8px, 2.4vw, 12px);
  }

  .fixed-logo {
    width: clamp(100px, 29vw, 142px);
  }

  .page-section {
    padding-left: clamp(12px, 3.2vw, 18px);
    padding-right: clamp(12px, 3.2vw, 18px);
  }

  .contact-photo-wrap {
    width: min(54vw, 220px);
  }

  .contact-photo {
    max-height: min(30vh, 230px);
  }

  .contact-details {
    max-width: min(58vw, 240px);
    font-size: clamp(8.5px, min(2.1vw, 1.35vh), 10.5px);
  }

  .contact-details h2 {
    font-size: clamp(11px, min(2.8vw, 1.8vh), 15px);
  }

  .contact-icons {
    margin-top: 7px;
  }
}

/* v32 mobile/contact refinements */
.contacts-copyright {
  left: 0;
  bottom: 0;
  text-align: left;
}

@media (max-width: 900px) {
  /* Hide the long studio intro on mobile so the home/about screen fits cleanly. */
  .intro-copy {
    display: none;
  }

  .hero-copy {
    max-height: calc(100vh - clamp(92px, 14vh, 125px));
  }

  .contacts-content {
    position: relative;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: clamp(10px, 1.8vh, 14px);
    padding-bottom: clamp(18px, 3.5vh, 34px);
  }

  .contact-photo-wrap {
    width: min(66vw, 340px);
    max-width: 100%;
    justify-self: center;
  }

  .contact-photo {
    width: 100%;
    max-height: min(40vh, 330px);
    height: auto;
    object-fit: contain;
  }

  .contact-details {
    width: min(66vw, 340px);
    max-width: 100%;
    justify-self: center;
    text-align: center;
  }

  .contact-details h2 {
    text-align: center;
  }

  .contact-phone,
  .contact-email,
  .contact-cv,
  .contact-cert {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-icons {
    justify-content: center;
  }

  .contacts-copyright {
    position: absolute;
    left: 0;
    bottom: 0;
    justify-self: auto;
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .contact-photo-wrap,
  .contact-details {
    width: min(68vw, 285px);
    max-width: 100%;
  }

  .contact-photo {
    max-height: min(39vh, 285px);
  }
}


/* v33 contact alignment refinement: center the contact block, keep text left-aligned. */
@media (max-width: 900px) {
  .contacts-content {
    justify-items: center;
  }

  .contact-photo-wrap,
  .contact-details {
    justify-self: center;
    width: min(66vw, 340px);
    max-width: 100%;
  }

  .contact-details,
  .contact-details h2 {
    text-align: left;
  }

  .contact-phone,
  .contact-email,
  .contact-cv,
  .contact-cert {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .contact-photo-wrap,
  .contact-details {
    width: min(68vw, 285px);
    max-width: 100%;
  }
}


/* v34 mobile contacts: align photo and all contact text to the same left edge. */
@media (max-width: 900px) {
  .contacts-content {
    justify-items: start;
    align-content: center;
  }

  .contact-photo-wrap,
  .contact-details {
    justify-self: start;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-details,
  .contact-details h2 {
    text-align: left;
  }

  .contact-phone,
  .contact-email,
  .contact-cv,
  .contact-cert {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-icons {
    justify-content: flex-start;
  }
}


/* v35 mobile contacts: center the whole contacts block in the page,
   but make the photo and every contact line start at the same left edge. */
@media (max-width: 900px) {
  .contacts-content {
    justify-items: center;
    align-content: center;
    gap: clamp(10px, 1.8vh, 16px);
  }

  .contact-photo-wrap,
  .contact-details {
    width: min(65vw, 270px, calc(100vw - var(--mobile-panel-width) - 48px));
    max-width: 100%;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-photo {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center center;
  }

  .contact-details,
  .contact-details h2 {
    text-align: left;
  }

  .contact-phone,
  .contact-email,
  .contact-cv,
  .contact-cert {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .contact-photo-wrap,
  .contact-details {
    width: min(66vw, 270px, calc(100vw - var(--mobile-panel-width) - 42px));
  }
}


/* v36: wider right-panel navigation spacing and restore mobile intro text */
.side-nav {
  gap: clamp(8px, 1.2vh, 14px);
}

@media (max-width: 900px) {
  .side-nav {
    gap: clamp(7px, 1.7vh, 12px);
  }

  .intro-copy {
    display: block;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .side-nav {
    gap: 8px;
  }

  .intro-copy {
    display: block;
    font-size: clamp(8px, min(2vw, 1.15vh), 10px);
    line-height: 1.28;
  }
}


/* v38: move mobile home/about text 10 percent further upward */
@media (max-width: 900px) {
  .home-section.active-section {
    place-items: center;
  }

  .hero-copy {
    transform: translateY(clamp(-64px, -7.7vh, -37px));
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .hero-copy {
    transform: translateY(clamp(-51px, -6.6vh, -31px));
  }
}


/* v39: mobile home text starts just after the right-panel navigation ends */
@media (max-width: 900px) {
  .home-section.active-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-copy {
    transform: none;
    margin-top: clamp(118px, 18vh, 158px);
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .hero-copy {
    transform: none;
    margin-top: clamp(122px, 17vh, 148px);
  }
}


/* v40: mobile home text starts immediately after the right-panel navigation */
@media (max-width: 900px) {
  .home-section.active-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
  }

  .hero-copy {
    transform: none;
    margin-top: clamp(136px, 20vh, 156px);
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .home-section.active-section {
    padding-top: 0;
  }

  .hero-copy {
    transform: none;
    margin-top: clamp(134px, 19vh, 150px);
  }
}

/* v45 SERVICES SECTION */
.services-section {
  padding-top: clamp(82px, 8.5vh, 118px);
}

.services-content {
  width: min(830px, 68%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-intro {
  margin: 0 0 clamp(28px, 4.6vh, 52px);
  font-size: clamp(22px, min(1.55vw, 3.05vh), 31px);
  line-height: 1.18;
  letter-spacing: -0.06em;
  font-weight: var(--light);
}

.services-list {
  --service-chevron-size: clamp(12px, 0.9vw, 16px);
  --service-chevron-gap: clamp(10px, 0.8vw, 18px);
  --service-indent: calc(var(--service-chevron-size) + var(--service-chevron-gap));
  display: flex;
  flex-direction: column;
  width: 100%;
}

.service-item {
  border: 0;
  padding: clamp(8px, 1.05vh, 14px) 0;
}

.service-item:last-child {
  border: 0;
}

.service-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: var(--service-chevron-size) minmax(0, 1fr);
  column-gap: var(--service-chevron-gap);
  align-items: baseline;
  font-size: clamp(18px, min(1.25vw, 2.55vh), 27px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: var(--light);
  outline: none;
}

.service-item summary::-webkit-details-marker {
  display: none;
}

.service-item summary::before {
  content: "▸";
  display: inline-block;
  width: var(--service-chevron-size);
  height: auto;
  line-height: 1;
  transform: translateY(-0.02em);
  opacity: 1;
}

.service-item[open] summary {
  font-weight: var(--light);
}

.service-item[open] summary::before {
  content: "▾";
  transform: translateY(-0.02em);
  opacity: 1;
}

.service-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  width: min(690px, calc(100% - var(--service-indent)));
  margin-left: var(--service-indent);
  font-size: clamp(15px, min(1.05vw, 2.18vh), 23px);
  line-height: 1.16;
  letter-spacing: -0.05em;
  font-weight: var(--light);
  font-style: normal;
  color: var(--muted);
  transition: max-height 260ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.service-item[open] .service-text {
  max-height: 260px;
  opacity: 1;
  margin-top: clamp(4px, 0.55vh, 9px);
}

.service-text p {
  margin: 0;
}

@media (max-width: 900px) {
  .side-nav {
    gap: clamp(6px, 1.25vh, 10px);
  }

  .side-nav button {
    font-size: clamp(11px, min(2.6vw, 1.65vh), 14px);
  }

  .services-section {
    padding: clamp(70px, 9.5vh, 90px) clamp(14px, 4vw, 30px) clamp(18px, 3vh, 30px);
    overflow: hidden;
  }

  .services-content {
    width: 100%;
    max-height: 100%;
    justify-content: flex-start;
    padding-top: clamp(8px, 1.5vh, 16px);
  }

  .services-intro {
    margin-bottom: clamp(13px, 2.3vh, 20px);
    font-size: clamp(14px, min(3.2vw, 2.25vh), 18px);
    line-height: 1.18;
    letter-spacing: -0.055em;
  }

  .services-list {
    --service-chevron-size: clamp(10px, 2.6vw, 13px);
    --service-chevron-gap: clamp(7px, 2vw, 11px);
    overflow: auto;
    max-height: calc(100vh - 178px);
    padding-right: 4px;
  }

  .service-item {
    padding: clamp(5px, 1vh, 9px) 0;
  }

  .service-item summary {
    font-size: clamp(12px, min(3vw, 1.9vh), 16px);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .service-text {
    width: calc(100% - var(--service-indent));
    font-size: clamp(11px, min(2.6vw, 1.65vh), 14px);
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  .service-item[open] .service-text {
    max-height: 170px;
    margin-top: clamp(3px, 0.75vh, 7px);
  }

  .hero-copy {
    margin-top: clamp(170px, 24vh, 205px);
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .side-nav {
    top: 70px;
    gap: 7px;
  }

  .side-nav button {
    font-size: clamp(9.8px, min(2.45vw, 1.45vh), 12.5px);
  }

  .hero-copy {
    margin-top: clamp(166px, 23vh, 195px);
  }

  .services-section {
    padding-top: clamp(66px, 9vh, 82px);
  }

  .services-intro {
    font-size: clamp(11px, min(2.65vw, 1.7vh), 14px);
    margin-bottom: clamp(10px, 1.8vh, 15px);
  }

  .services-list {
    max-height: calc(100vh - 154px);
  }

  .service-item summary,
  .service-text {
    font-size: clamp(9.8px, min(2.45vw, 1.45vh), 12.5px);
  }
}

/* v46 mobile services vertical alignment:
   start services content below the right-panel language/nav block,
   visually matching where the contacts photo begins on mobile. */
@media (max-width: 900px) {
  .services-section {
    padding-top: 0;
    padding-bottom: clamp(16px, 3vh, 30px);
  }

  .services-content {
    justify-content: flex-start;
    padding-top: clamp(150px, 22vh, 185px);
    height: 100%;
    max-height: 100%;
  }

  .services-list {
    max-height: calc(100vh - clamp(255px, 36vh, 310px));
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .services-content {
    padding-top: clamp(142px, 20.5vh, 170px);
  }

  .services-list {
    max-height: calc(100vh - clamp(228px, 32vh, 270px));
  }
}
