/* ===== Reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

/* ===== Google Fonts: Syne (headings), DM Sans (body) ===== */
h1, h2, h3, .nav__link, .preloader__word {
  font-family: 'Roboto', sans-serif;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preloader__line {
  position: absolute;
  background: #000;
}

.preloader__line--h {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: preloaderLineH 1.2s ease forwards;
}

.preloader__line--v {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  animation: preloaderLineV 1.2s ease 0.3s forwards;
}

@keyframes preloaderLineH {
  to { transform: scaleX(1); }
}

@keyframes preloaderLineV {
  to { transform: scaleY(1); }
}

.preloader__text {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.preloader__word {
  display: block;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: preloaderWord 0.8s ease 0.5s forwards;
}

@keyframes preloaderWord {
  to { opacity: 1; }
}

.preloader__progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: #e0e0e0;
  overflow: hidden;
}

.preloader__progress-bar {
  height: 100%;
  width: 0;
  background: #000;
  animation: preloaderProgress 1.5s ease forwards;
}

@keyframes preloaderProgress {
  to { width: 100%; }
}

/* ===== App (hidden until loaded) ===== */
.app {
  opacity: 0;
  transition: opacity 0.5s ease;
  max-width: 700px;
  margin: 0 auto;
}

.app.app--visible {
  opacity: 1;
  border: 1px solid;
  padding: 0 30px;
}

.app[aria-hidden="true"] {
  visibility: hidden;
}

.app[aria-hidden="false"] {
  visibility: visible;
}

/* ===== Layout: grid & lines ===== */
.grid-line {
  position: absolute;
  background: #000;
}

.grid-line--top {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.grid-line--left {
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
}

.grid-line--bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.grid-line--section {
  top: 0;
  left: -30px;
  right: 0;
  height: 1px;
  width: calc(100% + 60px);
}

/* ===== Header ===== */
.header {
  position: relative;
  min-height: 100vh;
  padding: 2rem 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: space-between;
}

.nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.25s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.title {
  margin: 0;
  align-self: center;
}

.title__main {
  display: block;
  font-size: 35px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.title__sub {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 300;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title__sub small {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.header__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta__item {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.meta__value {
  font-size: 1rem;
  font-weight: 300;
}

/* ===== Main ===== */
.main {
  position: relative;
}

.section {
  position: relative;
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.section__content {
  display: grid;
  gap: 1rem;
  font-size: 20px;
  line-height: 23px;
}

.section__title {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 30px;
}

.section__title--full {
  grid-column: 1 / -1;
}

.section__text {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.section__text.blockquote {
  position: relative;
  margin: 1.5rem 0;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  line-height: 25px;
}


/* ===== Metrics ===== */
.section--metrics {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.section--metrics .section__title--full {
  margin-bottom: 0;
}

.metrics-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #000;
  border-bottom: 5px solid;
  border-right: 5px solid;
}

.metric {
  padding: 2rem 1.5rem;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  text-align: left;
}

.metric:nth-child(4n) {
  border-right: none;
}

.metric small {
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  width: 100%;
}

.metric__value {
  display: block;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ===== Works grid ===== */
.section--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
}

.works-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid #000;
}

.work-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #000;
}

.work-card:nth-child(3n) {
  border-right: none;
}


span.star-icon {
  font-size: 35px;
  position: absolute;
  margin-top: -5px;
  margin-left: 2px;
}


@media (max-width: 768px) {
  .work-card {
    border-right: none;
  }
}

.work-card__line {
  position: absolute;
  top: -2px;
  left: calc(50% - 20.1px);
  width: 40.2px;
  height: 4px;
  background: #000;
}

.work-card__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 1rem;
  border: 5px solid #000;
  cursor: pointer;
}

.work-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  cursor: pointer;
}

.work-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp 0.2s ease;
}

.work-card__desc--expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  cursor: default;
}

/* ===== Image modal ===== */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-modal--open {
  opacity: 1;
  visibility: visible;
}

.image-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}

.image-modal__close:hover {
  opacity: 1;
}

.image-modal__img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Hint modal ===== */
.hint-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hint-modal--open {
  opacity: 1;
  visibility: visible;
}

.hint-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.hint-modal__box {
  position: relative;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: center;
}

.hint-modal__img-wrap {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.hint-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hint-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.hint-modal__close:hover {
  opacity: 1;
}

.hint-modal__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

/* ===== Info list ===== */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid #000;
  border: 1px solid;
  border-right: 5px solid;
  border-bottom: 5px solid;
}

.info-list__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 1rem;
  border-bottom: 1px solid #000;
  align-items: anchor-center;
}

.info-list__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.info-list__value {
  font-size: 1rem;
  font-weight: 500;
  line-height: 16px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: 2rem 1.5rem;
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer__copy {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}


li small {
  display: inline-block;
  font-size: 15px;
  margin-bottom: 25px;
  color: oipa;
  opacity: 0.8;
  line-height: 20px;
  margin-top: 5px;
}

ul {
  padding: 0 15px;
}

.section__text.small-text {
  font-size: 20px;
  line-height: 23px;
}

.section__text small {
  display: inline-block;
  opacity: 0.8;
}

.text-bold {
  font-weight: 600;
}

.section__text h2 {
  font-size: 20px;
  line-height: 25px;
}

.list-guests li {
  list-style: none;
  text-transform: lowercase;
  font-size: 20px;
  font-weight: 200;
  margin-bottom: 15px;
}

.list-guests li:before {
  content: '+';
  font-weight: bold;
  margin-left: -15px;
  margin-right: 10px;
}

a, a:visited {
  color: #000;
}

article.method-card {
  border-left: 5px solid;
  padding-left: 15px;
  margin: 15px 0;
}

h3.method-card__title {
  margin: 0;
}

p.method-card__desc {
  font-size: 16px;
  opacity: 0.8;
  margin: 15px 0 0 0;
  line-height: 18px;
}

small.frame {
  padding: 15px;
  border: 1px solid #000;
  border-right: 5px solid #000;
  width: 100%;
  border-bottom: 5px solid;
  line-height: 20px;
}

.info-list__item small {
  margin: 0;
}

.plan {
  font-size: 15px;
  font-weight: 100;
}

.plan li {
  margin-bottom: 15px;
}

.timing-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.timing {
  border-left: 5px solid;
  padding-left: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

span.timing__value {
  font-size: 25px;
  margin-right: 15px;
}

span.timing__label {
  font-size: 16px;
  font-weight: 300;
  /* border-bottom: 1px solid; */
}

img.poster {
  width: 100%;
  margin-top: 30px;
  border: 3px solid;
}

img.work-preview {
  max-width: 100%;
  border: 5px solid;
  margin-top: 30px;
}

img.auction {
  width: 100%;
  margin-top: 30px;
}

.checklist .timing {
  border-left: 0;
  padding-left: 0;
}

ul.list-timeline {
  padding: 0 15px;
  margin: 0;
}

ul.list-timeline li {
  margin-bottom: 10px;
} 

ul.list-timeline li a{
  text-decoration: none;
}

.bb {
  width: 45px;
  position: absolute;
  margin-left: 8px;
  margin-top: -5px;
}

img.hint-modal__img {
  max-width: 150px;
  object-fit: contain;
  border: none !important;
}

.video-wrap {
  padding: 25px;
  border: 1px solid;
  position: relative;
}

.video-wrap video {
  position: relative;
  z-index: 2;
}

.video-wrap:before {
  content: '';
  width: 100%;
  height: 2px;
  background: #000;
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  z-index: 1;
}

.video-wrap:after {
  content: '';
  width: 2px;
  height: 100%;
  background: #000;
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  z-index: 1;
}

@media (max-width: 768px) {
  .section--metrics {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
      grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .header {
    padding: 2rem 1.5rem 3rem;
  }

  .app.app--visible {
      padding: 0;
  }

  .hint-modal__box {
    padding: 15px;
    flex-direction: column;
    margin-right: 25px;
  }

  .hint-modal__text {
      padding-right: 0;
      font-size: 12px;
  }

  ul.list-timeline li a {
      text-decoration: none;
      font-size: 12px;
  }

  ul.list-timeline li span {
    font-size: 10px;
  }

  .list-timeline small {
      font-size: 8px;
  }

  .grid-line--section {
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 100%;
}

}