
* {
    box-sizing: border-box;
}
/* First font: PPEiko */
@font-face {
    font-family: 'PPEiko';
    src: url('../fonts/PPEiko-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Second font: PP Neue Montreal */
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/ppneuemontreal-medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


:root {
  --page-width: min(1800px, calc(100vw - 48px));
  --ink: #171717;
  --section-space: clamp(56px, 6vw, 88px);
  --section-pad: clamp(28px, 3vw, 48px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PPEiko', 'PP Neue Montreal', sans-serif;
    margin: 0;
    padding: 0px;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.intro-loader__inner {
    width: 100%;
    display: grid;
    place-items: center;
    padding-inline: 24px;
}

.intro-loader__viewport {
    position: relative;
    width: 100%;
    height: clamp(2rem, 4vw, 3.4rem);
    overflow: hidden;
}

.intro-loader__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}

.intro-loader__word {
    display: grid;
    place-items: center;
    height: clamp(2.05rem, 4.1vw, 3.5rem);
    overflow: hidden;
    font-size: clamp(1.05rem, 2.35vw, 1.9rem);
    line-height: 0.94;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    color: #fff;
}

#container {
  width: var(--page-width);
  margin: 24px auto;
  padding: 24px;
  background-color: rgb(255, 255, 255);
  border-radius: 24px;
}

#hero-image{
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}
#hero-overlay{
  inset: 0;
  background: transparent;
  border-radius: 24px;
}
#header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 999;
}



nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 60px;
    padding: 10px 30px;
    text-align: center;
    color: #ffffff;
    border-radius: 20px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

#nav-bar {
  display: flex;
  align-items: center;
  height: 100%;
  width: auto;
}

#nav-bar ul,
#nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

#nav-bar ul li {
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-video h1{
text-align: center;
font-size: 12rem;
font-family: 'PP Neue Montreal', sans-serif;
font-weight: bold;
color: #171717;
margin: 0;
}
#nav-line h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

#nav-bar ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
  font-family: 'PP Neue Montreal', sans-serif;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

#nav-button:hover {
    background-color: grey;
    cursor: pointer;
}

#nav-button h4 {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    font-weight: normal;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

ul li a:hover {
    text-decoration: none;
    opacity: 0.72;
}

#logo img {
    width: 150px;
    height: auto;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

#content {
    display: flex;
    flex-direction: column;
    font-family: 'PPEiko';
    justify-content: flex-start;
    padding: clamp(112px, 14vh, 148px) clamp(32px, 4vw, 56px) 28px;
}

#section-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    color: var(--ink);
    margin-top: 0;
}

#col-left h1 {
    flex: 1;
    font-size: 100px;
    line-height: 1.2;
    font-family: 'PPEiko';
    margin: 0;
    padding-right: 100px;
}

#col-right h3 {
    flex: 1;
    padding-top: 0;
    padding-bottom: 0px;
    font-size: 26px;
    font-weight: bold;
    font-family: 'PPEiko';
    line-height: 1.5;
    font-kerning: 2rem;

}

#col-right h4 {
    flex: 1;
    padding-top: 0px;
    font-size: 16px;
    font-weight: lighter;
    font-family: 'PP Neue Montreal';
    line-height: 1.5;
    font-kerning: 2rem;
    padding-bottom: 20px;
    color: var(--ink);
}

.gallery {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 40px;
    margin-top: clamp(42px, 5vw, 64px);

}

.gallery-border {
    background-color: var(--ink);
    border-radius: 20px;
    padding: 20px;

}

.gallery-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.gallery-image.webgl-ready img {
    opacity: 0;
}

.webgl-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


.tag {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.tag-hashtag {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    gap: 2px;


}

.tag-text {
    display: flex;
    font-size: 20px;
    color: rgb(255, 255, 255);
    margin-top: 10px;
    align-items: center;
    font-weight: lighter;
}

.hashtag {
    display: flex;
    color: rgb(147, 147, 147);
    background-color: rgb(242, 242, 242);
    width: auto;
    height: 2px;
    padding: 0.8rem 0.8rem 0.8rem 0.8rem;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-top: 10px;
    border-radius: 3px;
    font-size: small;

}

.more-works {
    display: flex;
    justify-content: center;
    margin-top: var(--section-space);

}

.more-work-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    padding: 18px 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-family: 'PP Neue Montreal', sans-serif;
    line-height: 1;
    isolation: isolate;
    will-change: transform;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.more-work-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateY(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.more-work-link > span {
    position: relative;
    z-index: 1;
}

.more-work-label {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

.more-work-count {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-6px);
}

.more-work-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.more-work-link:hover {
    color: #fff;
    border-color: var(--ink);
}

.more-work-link:hover::before {
    transform: translateY(0);
}

.more-work-link:hover .more-work-arrow {
    transform: translate(3px, -3px);
}

.my-services {
    background-color: #171717;
    padding: var(--section-pad);
    border-radius: 20px;
    color: white;
    height: 1000%;
    margin-top: var(--section-space);
}

.my-services h2 {
    text-align: left;
    margin-top: 10px;
}

.my-services span {
    text-align: left;
    margin-top: 10px;
    font-size: 50px;
    font-family: 'PP Neue Montreal', sans-serif;
    margin-bottom: 100px;
}

.services-wrapper {
    margin-top: 60px;
    background-color: var(--ink);
    padding: 20px;
    border-radius: 20px;
    color: white;
    font-family: 'PP Neue Montreal', sans-serif;


}

.all-services {
    display: grid;
    grid-template-columns: 0.1fr 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
    font-size: 34px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'PPEiko';
    height: 200px;
}


.services-number {
    font-size: 14px;
    font-weight: bold;
    margin-top: -3px;
    font-family: 'PP Neue Montreal';

}

.services-title {
    font-size: 34px;
    font-weight: bold;
    margin: -12px;
    font-family: 'PP Neue Montreal';

}

.services-text {
    margin: -6px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    font-family: 'PP Neue Montreal', sans-serif;
    line-height: 1.5;

}

.all-services img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

.all-services h2,
.all-services h3,
.all-services p,
.all-services img {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;

}

.services-line {
    height: 1.5px;
    background-color: grey;
    margin-top: 20px;
    margin-bottom: 20px;
}

.technical-skills {
    text-align: center;
    font-size: 12rem;
    font-weight: bold;
    margin-top: var(--section-space);
    margin-bottom: 16px;
    font-family: 'PP Neue Montreal', sans-serif;
    color: #171717;
}

.technical-skills h1 {
    font-size: 1em;
    margin: 0;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    white-space: nowrap;
    padding-inline: 0.08em;
}

.technical-skills .scroll-reveal-line {
    flex-wrap: nowrap;
}

.marquee-container {
    padding: var(--section-pad) 0;
    overflow: hidden;  /* Critical - hides overflow */
    width: 100%;
    max-width: 100vw;  /* Never exceed viewport width */
    margin-top: 0;
}

.marquee-logo,
.marquee-logo2 {
    position: relative;
    padding: 30px 0;
    margin-bottom: 30px;
    display: flex;
    width: max-content;  /* Let it be wide */
    will-change: transform;  /* Performance optimization */
}

.marquee-logos {
    flex-shrink: 0;
    margin: 0 40px;
}

.marquee-logos img {
    height: 60px;
    width: auto;
    display: block;
}




.hero-video {
    padding-top: var(--section-pad);
    width: 100%;
    border-radius: 30px;
    padding-bottom: var(--section-pad);
    margin-top: clamp(24px, 2.8vw, 40px);
}

video {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

[data-scroll-reveal] {
    display: block;
    overflow: hidden;
}

.scroll-reveal-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.08em;
}

.scroll-reveal-char-wrap {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.scroll-reveal-char {
    display: inline-block;
    will-change: transform, opacity;
}

.scroll-reveal-space {
    width: 0.24em;
}

.portfolio-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 12px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.portfolio-gallery.is-dragging {
    cursor: grabbing;
}

.portfolio-track {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: max-content;
    will-change: transform;
    transform-origin: center center;
    padding: 10px 0;
}

.portfolio-card {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
    will-change: transform;
}

.portfolio-card--portrait {
    flex-basis: clamp(154px, 15.4vw, 224px);
    aspect-ratio: 9 / 16;
}

.portfolio-card--square {
    flex-basis: clamp(175px, 16.8vw, 238px);
    aspect-ratio: 1 / 1;
}

.portfolio-card--wide {
    flex-basis: clamp(294px, 28vw, 448px);
    aspect-ratio: 16 / 9;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    pointer-events: none;
}

.portfolio-card:nth-child(4n + 1) {
    transform-origin: center bottom;
}

.portfolio-card:nth-child(4n + 2) {
    transform-origin: center top;
}

.portfolio-card:nth-child(4n + 3) {
    transform-origin: 35% bottom;
}

.portfolio-card:nth-child(4n + 4) {
    transform-origin: 65% top;
}

@media (max-width: 900px) {
    .portfolio-card--portrait {
        flex-basis: clamp(126px, 32.2vw, 168px);
    }

    .portfolio-card--square {
        flex-basis: clamp(154px, 37.8vw, 196px);
    }

    .portfolio-card--wide {
        flex-basis: clamp(224px, 57.4vw, 364px);
    }
}



#about-me{
    background-color: #7e2525;
    height: 600px;
}


.about-layout {
  background: #171717;
  color: white;
  border-radius: 28px;
  padding: var(--section-pad);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px 48px;
  margin-top: var(--section-space);
}

.portfolio-section {
  margin-top: var(--section-space);
}

.intro-pill {
  grid-column: 1 / 2;
  align-self: start;
  justify-self: start;
  background: #ffffff;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.about-title {
  grid-column: 2 / 3;
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.28;
  font-weight: 300;
}

.about-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.about-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.about-number {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.about-side h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  margin: 0 0 40px;
  font-size: 0.95rem;
  line-height: 1.28;
  font-weight: 300;
}

.about-button {
  grid-column: 2 / 3;
  justify-self: end;
  text-decoration: none;
  color: #fff;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.about-button .more-work-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  color: #fff;
  isolation: auto;
}

.about-button .more-work-link::before {
  display: none;
}

.about-button .more-work-label {
  position: relative;
  padding-bottom: 4px;
}

.about-button .more-work-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-button .more-work-link:hover {
  color: #fff;
}

.about-button .more-work-link:hover .more-work-label::after {
  animation: about-line-return 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-button .about-arrow-slot {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
  display: inline-block;
  flex: 0 0 18px;
  color: #fff;
}

.about-button .about-arrow-slot-left {
  margin-right: -8px;
}

.about-button .touch-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-button .icon-out {
  transform: translate(0, 0);
}

.about-button .icon-in-left {
  transform: translate(-135%, 0);
}

.about-button .more-work-link:hover .icon-out {
  transform: translate(120%, 0);
}

.about-button .more-work-link:hover .icon-in-left {
  transform: translate(0, 0);
}

@keyframes about-line-return {
  0% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  45% {
    transform: scaleX(0);
    transform-origin: right center;
  }
  46% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left center;
  }
}




.site-footer {
  margin-top: var(--section-space);
  position: relative;
  overflow: visible;
  background: var(--ink);
  color: #ffffff;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
  border-radius: 0 0 24px 24px;
  padding: 36px 22px 32px;
}

.footer-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 28px 42px;
  align-items: start;
  min-height: auto;
  padding-bottom: 56px;
  padding-inline: clamp(20px, 3vw, 44px);
}

.footer-title {
  margin: 0;
  max-width: none;
  font-size: clamp(2.75rem, 4.8vw, 4.6rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.06em;
  align-self: start;
  white-space: nowrap;
  grid-column: 1 / -1;
}

.footer-office {
  align-self: start;
  padding-top: 0;
  margin-top: 48px;
}

.footer-title + .footer-office {
  grid-column: 1;
}

.footer-title + .footer-office + .footer-office {
  grid-column: 2;
}

.footer-column {
  align-self: start;
  padding-top: 0;
  margin-top: 48px;
}

.footer-links {
  align-self: start;
  padding-top: 0;
}

.footer-office + .footer-office + .footer-column {
  grid-column: 3;
  grid-row: 2;
}

.footer-office + .footer-office + .footer-column + .footer-column {
  grid-column: 4;
  grid-row: 2;
}

.footer-office h4,
.footer-column h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 1;
  text-transform: uppercase;
}

.footer-office p,
.footer-column a {
  display: block;
  margin: 0 0 4px;
  color: inherit;
  text-decoration: none;
}

.footer-office p {
  max-width: 15ch;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 1;
}

.footer-column {
  max-width: 15ch;
}

.footer-column a {
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 1;
}

.footer-office-contact {
  margin-top: 18px;
}

.footer-links a {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
}

.footer-column a:hover {
  opacity: 0.7;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.82;
  text-transform: uppercase;
}

.footer-watermark {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  font-size: clamp(4.5rem, 11.8vw, 10rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  opacity: 0.78;
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  filter: saturate(0.95);
  transform: scaleX(1);
  transform-origin: center top;
}

.footer-watermark .scroll-reveal-line {
  flex-wrap: nowrap;
}

@media (max-width: 900px) {
  .site-footer {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
    padding: 32px 24px 24px;
  }

  .footer-stage {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    min-height: auto;
    padding-bottom: 44px;
  }

  .footer-title {
    grid-column: 1 / -1;
    max-width: 6ch;
  }

  .footer-office,
  .footer-column {
    padding-top: 0;
  }

  .footer-links a {
    font-size: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
  }

  .footer-watermark {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    font-size: clamp(2.7rem, 10.8vw, 4.6rem);
    line-height: 1.28;
    letter-spacing: 0.03em;
    transform: scaleX(1);
  }
}

.touch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.touch-label {
  position: relative;
  padding-bottom: 4px;
}

.touch-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.touch-btn:hover .touch-label::after {
  animation: about-line-return 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.touch-btn .about-arrow-slot {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
  display: inline-block;
  flex: 0 0 18px;
  color: #fff;
}

.touch-btn .about-arrow-slot-left {
  margin-right: -8px;
}

.touch-btn .touch-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.touch-btn .icon-out {
  transform: translate(0, 0);
}

.touch-btn .icon-in-left {
  transform: translate(-135%, 0);
}

.touch-btn:hover .icon-out {
  transform: translate(120%, 0);
}

.touch-btn:hover .icon-in-left {
  transform: translate(0, 0);
}


@media (max-width: 640px) {
  .footer-stage {
    grid-template-columns: 1fr;
  }

  .footer-links a {
    font-size: 1.2rem;
  }
}
