:root {
  --bg: #0b1012;
  --text: #eae7e4;
  --muted: #b8ac9f;
  --container: min(1120px, 92vw);
  --ink: #e9dfd4;
  --menuW: 44vw;
}

/* reset */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}


.profile_img {
  width: 100%;
  max-width: min(30em, 90vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div {
  font-family: 'PT Serif', serif !important;
}

.font-playfair {
  font-family: 'PT Serif', serif !important;
}

.section-title,
.sv-title,
.sv-card h3,
.sv-intro-text {
  font-family: 'PT Serif', serif !important;
}

.services {
  padding-bottom: 10vh !important;
}

.freeze {
  position: absolute !important;
  margin-bottom: none;
}

.section-wrapper {
  height: 30vh;
  /* Эсвэл өөрийн хүссэн өндөр, жишээ нь 200px */
  width: 100%;
  position: relative;
}

.item {
  width: 500px;
  /* height: 200px; Элементийн харагдах өндөр */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  font-weight: bold;
  transition: box-shadow 0.3s;
}

.fixed-top {
  position: fixed;
  width: 500px;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6
}

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

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Top bar */
.topbar {
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 2000 !important;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12%;
  pointer-events: none;
  background-color: #000 !important;
}

.topbar>* {
  pointer-events: auto
}

.email {
  justify-self: start;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .9
}

.logo {
  justify-self: center;
  font-size: 14px;
  letter-spacing: .26em
}

.hamburger {
  justify-self: end;
  width: 36px;
  height: 22px;
  position: relative;
  cursor: pointer;
  opacity: 1 !important;
  /* Full opacity */
  display: block !important;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  /* Slightly thicker for visibility */
  background-color: #ffffff !important;
  border-radius: 2px;
  transition: .35s;
}

.hamburger span:nth-child(1) {
  top: 0
}

.hamburger span:nth-child(2) {
  top: 10px
}

.hamburger span:nth-child(3) {
  bottom: 0
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg)
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg)
}

/* Overlay menu */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* Higher than topbar */
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
  overflow: hidden;
}

.overlay.open {
  opacity: 1;
  visibility: visible
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: stretch
}

.bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #7c7d82;
  /* Grey background from image */
}

.bg-wrap img,
.bg-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove or soften the overlay for the new clean look */
.bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-container {
  display: flex !important;
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding-bottom: 0 !important;
}

.hero-profile-img {
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

.container {
  position: relative;
  z-index: 10;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 96px 0 64px
}

.title {
  font-family: "Playfair Display", serif;
  line-height: 1.1;
  letter-spacing: .01em;
  transform: translateY(0);
  will-change: transform, opacity
}

.title .row {
  display: block;
  font-weight: 600;
  font-size: clamp(42px, 8.7vw, 60px);
  color: var(--text)
}

.title .row.em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted)
}

.lead {
  max-width: 560px;
  font-size: 15px;
  color: #d9d6d2;
  opacity: .92;
  background: linear-gradient(180deg, rgba(12, 16, 18, .62), rgba(12, 16, 18, .2));
  backdrop-filter: saturate(120%) blur(2px);
  padding: 20px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  transform: translateY(0);
  will-change: transform, opacity
}

.lead p {
  margin: 0 0 12px
}

.lead p:last-child {
  margin: 0
}

.next {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0 120px;
  color: #bfc6ca
}

/* Responsive */
@media (max-width:1400px) {
  :root {
    --menuW: 48vw
  }

  .fixed-top {
    max-width: 300px;
  }
}

@media (max-width:900px) {
  .container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 120px
  }
}

@media (max-width:780px) {
  .overlay {
    grid-template-columns: 1fr
  }

  .menu {
    padding: 110px 8vw 80px;
    gap: 40px;
  }

  .item {
    font-size: clamp(36px, 9vw, 64px);
    line-height: 1.1;
  }

  .visual {
    order: 2;
    padding: 28px 8vw 60px
  }

  .frame {
    width: 86%;
    margin: 0 auto;
    transform: rotate(-5deg)
  }
}

/* Extra small menu adjustments */
@media (max-width: 480px) {
  .menu {
    padding: 90px 6vw 60px;
    gap: 32px;
  }

  .item {
    font-size: clamp(28px, 10vw, 48px);
    line-height: 1.15;
  }

  .caption {
    font-size: 10px;
    margin-top: 10px;
  }
}

/* Film section sizing: өндөр = viewport(100vh) + гулгах зай */
.film-section {
  --duration: 1800px;
  /* default; JS-д data-duration-оос уншина */
  height: calc(100vh + var(--duration));
  position: relative;
  background: #fafafa;
  color: #111;
}

/* sticky pin — энэ дотор байхад секц пиннэгдэнэ */
.film-pin {
  position: sticky;
  top: 0;
  /* height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 60px;
  /* padding: 100px 0 0px; */
  overflow: hidden;
}

.film-content {
  width: min(1100px, 90vw);
  margin: 0 auto
}

.section-label {
  color: #d89c2c;
  font-size: 13px;
  letter-spacing: .2em;
  margin-bottom: 14px
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 40px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 18px
}

.section-title em {
  font-style: italic;
  font-weight: 600;
  color: #444
}

.section-desc {
  max-width: 560px;
  color: #555;
  font-size: 15px;
  line-height: 1.8
}

/* film strip layout */
.film-strip-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  padding: 22em 0em 22em 0;
}

/* Хооронд наалдуулах давхцал + зураг хоорондын дотоод зай */
.film-strip {
  --overlap: 52px;
  /* хальсуудын давхцал (ихэсгэвэл илүү наалдана) */
  --img-gap: 12px;
  /* зургуудын хооронд харагдах жижиг “амьсгал” */
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  transform: rotate(-4deg) translateX(0);
  gap: 0;
  /* margin-left: calc(-5%); */
}

.film-strip figure {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-right: var(--img-gap);
}

/* 2 дахь бөгөөд түүнээс цааш — хальснууд хооронд наалдах давхцал */
.film-strip figure:first-child {
  margin-left: 0;
}

.film-strip figure+figure {
  margin-left: calc(var(--overlap) * -1);
}

/* SVG хүрээ хэвээр */
.film-strip figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/image/work-bg.svg") center/cover no-repeat;
  z-index: 0;
}

/* Доторх зураг — хүрээний дотор арай жижигхэн */
.film-strip img {
  position: relative;
  z-index: 1;
  width: 95%;
  height: 67%;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%) contrast(1.05);
  transition: transform .3s ease, filter .3s ease;
  transform-origin: center;
}

.film-strip img:hover {
  /* transform:scale(1.06) rotate(1deg); */
  filter: grayscale(0%) contrast(1.1);
}

/* Mobile-д давхцал багасгана */
/* Mobile-д давхцал багасгана */
@media (max-width: 900px) {
  .film-strip {
    --overlap: 30px;
    --img-gap: 8px;
  }

  .film-strip figure {
    width: 300px;
    height: 360px;
    margin: 9px;
  }
}

@media (max-width: 600px) {
  .film-strip {
    --overlap: 20px;
    --img-gap: 6px;
  }

  .film-strip figure {
    width: 240px;
    height: 420px;
    margin: 9px;
  }

  .film-strip-wrap {
    padding: 12em 0 26em 0;
    height: 520px;
  }

  /* vertical padding bagasgala */
}

/* ── SERVICES ─────────────────────────────────────────── */
.services {
  background: #efefef;
  padding: 120px 0 100vh;
  /* Extra padding at bottom for scroll space */
}

.sv-wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: flex-start;
  gap: 80px;
}

.sv-copy {
  padding-left: 0;
  position: sticky;
  top: 140px;
}

.sv-label {
  color: #d99025;
  font-size: 13px;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

.sv-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1;
  margin: 0 0 18px;
  font-weight: 600;
}

.sv-title em {
  font-style: italic;
  font-weight: 400;
}

.sv-desc {
  max-width: 540px;
  color: #666;
  font-size: 15px;
  line-height: 1.9;
}

/* Services intro text */
.sv-intro-text {
  max-width: 100%;
  margin: 60px 0;
  font-family: 'Times New Roman', serif;
  line-height: 1.7;
  font-size: clamp(1.1em, 4vw, 2em);
  text-align: left;
  color: #222;
  line-height: 44px;
}

.sv-card {
  /* top: calc(80px + var(--i) * 40px); */
  /* Each card sticks at a different position */
  /* margin-bottom: clamp(140px, 20vh, 260px); */
  /* Space between cards when scrolling */
  background: white;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
  transform-origin: center top;
  transform: rotate(var(--rot));
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
  /* Z-index so LATER cards appear on top (Florida style) */
  z-index: var(--i);
}

.sv-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}



/* үзэгдэж байх үеийн завсар */

.sv-card h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: .02em;
}

.sv-card p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}




/* Mobile */
@media (max-width: 960px) {
  .fixed-top {
    max-width: 340px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .item {
    margin: 0 auto;
  }

  .sv-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sv-copy {
    position: relative;
    top: 0;
  }

  .sv-intro-text {
    text-align: center;
    margin: 40px auto;
  }
}

@media (max-width: 600px) {

  .fixed-top {
    max-width: 340px;
  }

  /* Topbar mobile improvements */
  .topbar {
    padding: 0 16px;
    height: 64px;
  }

  .email {
    font-size: 10px;
  }

  .logo {
    font-size: 12px;
    letter-spacing: .2em;
  }

  .hamburger {
    width: 32px;
    height: 20px;
  }

  /* Hero section mobile */
  .container {
    padding-top: 80px;
    gap: 32px;
  }

  .title .row {
    font-size: clamp(32px, 10vw, 42px);
  }

  .lead {
    font-size: 14px;
    padding: 16px;
  }

  /* Profile image mobile sizing */
  .profile_img {
    max-width: 20em;
    padding: 0 16px;
  }

  /* Services mobile adjustments */
  .services {
    padding: 80px 0 40vh;
  }

  .sv-wrap {
    gap: 32px;
  }

  .sv-intro-text {
    margin: 40px auto;
    padding: 0 16px;
    font-size: clamp(1em, 4.5vw, 1.3em);
    line-height: 1.6;
  }

  .sv-title {
    font-size: 42px;
    /* smaller title on mobile */
  }
}

/* Extra small devices (< 480px) */
@media (max-width: 480px) {
  .fixed-top {
    max-width: 340px;
  }

  .item {
    max-width: 340px;
  }

  .topbar {
    height: 60px;
    padding: 0 12px;
  }

  .email {
    font-size: 9px;
  }

  .logo {
    font-size: 11px;
  }

  .hamburger {
    width: 28px;
    height: 22px;
  }

  .container {
    padding-top: 70px;
    gap: 24px;
  }

  .title .row {
    font-size: clamp(28px, 11vw, 36px);
  }

  .profile_img {
    max-width: 16em;
  }

  .film-strip {
    height: 50%;
  }

  .film-strip-wrap {
    padding: 0 0 0 0;
    height: 800px;
  }

  .film-strip figure {
    width: 150px;
    height: 200px;
    margin: 9px;
  }

  .section-title {
    font-size: clamp(24px, 7vw, 32px);
    padding: 0 16px;
  }

  .sv-intro-text {
    margin: 30px auto;
    font-size: clamp(0.95em, 5vw, 1.2em);
  }

  .services {
    padding: 60px 0 100px;
  }
}