:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-time: 950ms;
}
html { scroll-behavior: smooth; overflow-x: clip; }
body { height: auto; min-height: 100vh; overflow-x: clip; }
[id] { scroll-margin-top: 5rem; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 4px; }
.nlan-logo { font: 900 2.35rem/1 var(--font-title); letter-spacing: .08em; color: var(--color-light); }
.nav-click { border: 0; padding: 0; background: transparent; }
.navigation {
  display: block; visibility: hidden; opacity: 0;
  transform: translateY(-1.2rem);
  background: radial-gradient(ellipse at 80% 0, #006052, var(--color-bg) 64%);
  transition: opacity .35s ease, transform .5s var(--motion-ease), visibility .5s;
}
.navigation.open-nav { visibility: visible; opacity: 1; transform: none; }
.navigation .nav-item { transition: transform .5s var(--motion-ease), opacity .35s; transform: translateX(2rem); opacity: 0; }
.navigation.open-nav .nav-item { opacity: 1; transform: none; }
html:has(body.menu-open, body.project-open) { overflow: hidden; }
.background-banner { overflow: clip; }
.banner-full-slide { touch-action: pan-y; }
.banner-slide.is-active { display: flex; opacity: 1; }
.banner-slide .first-char { font-size: 25vw; }
.banner-slide .second-char { font-size: 19vw; }
.slide-title-inner .char { display: inline-block; }
.slide-title-small { color: var(--color-light); }
.slide-title-small .text-small { font-size: clamp(2rem, 11vw, 13rem); }
.slide-title-small .text-small .word { margin: -.16em 0; }
.banner-slide.caption-ready .slide-title-small .word {
  animation: circleClip 2s ease both;
}
.hero-controls { display: flex; gap: .5rem; position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 3; }
.hero-controls button { width: 1.5rem; height: 1.5rem; padding: .45rem; background: transparent; border: 0; }
.hero-controls button::after { content: ""; display: block; width: 100%; height: 100%; border: 1px solid var(--color-light); border-radius: 50%; }
.hero-controls button[aria-pressed="true"]::after { background: var(--color-light); }
.content-inner, .ani-item, .scroll-text { opacity: 1; }
.js .ani-item:not(.demo-visible) { opacity: 0; transform: translateY(2rem); }
.js .ani-item { transition: opacity var(--motion-time) var(--motion-ease), transform var(--motion-time) var(--motion-ease); }
.scroll-text .inner-text, .scroll-text.is-twoline .scroll-text-group { animation-play-state: running; }
.home-content .link-other .goto-page span { opacity: 1; transform: none; }
.home-content .link-other .demo-arrow { width: clamp(2.5rem, 7vw, 7rem); height: auto; margin-left: .65rem; transition: transform .35s var(--motion-ease); }
.home-content .link-other .goto-page:hover .demo-arrow { transform: scale(.88); }
.slide-pic { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--color-brown) transparent; touch-action: pan-x pan-y; overscroll-behavior-inline: contain; padding-bottom: .9rem; cursor: grab; }
.slide-pic .grid-item { flex: none; }
.slide-pic .grid-item:first-child { margin-left: 5vw; }
.slide-pic .grid-item:last-child { margin-right: 5vw; }
.slide-pic.is-dragging, .slide-pic.is-dragging a { cursor: grabbing; }
.client-view-home { position: relative; display: block; overflow: hidden; }
.client-view-home img { width: 100%; display: block; transition: transform .7s var(--motion-ease); }
.grid-item:is(:hover,:focus-within) img { transform: scale(1.05); }
.grid-item .tilte-name { opacity: 1; z-index: 1; max-width: 92%; padding: .55rem .8rem; background: #002e2ae8; left: .55rem; bottom: .55rem; }
.grid-item:nth-child(2n) .tilte-name { bottom: .55rem; }
.grid-item .tilte-name h3 { margin: 0; }
.demo-contact { margin: 2rem 5vw 0; max-width: 40rem; line-height: 1.7; }
.back-top { margin-left: auto; color: var(--color-light); }
#project-view { position: fixed; inset: 0; z-index: 300; background: #002e2a; color: var(--color-light); border: 1px solid var(--color-light-alpha); padding: 0; width: min(88vw, 75rem); max-height: 91dvh; margin: auto; }
#project-view::backdrop { background: #001716df; backdrop-filter: blur(8px); }
.project-panel { position: relative; }
.project-panel img { width: 100%; max-height: 72dvh; object-fit: contain; display: block; }
.project-close, .project-caption button { background: var(--color-bg); border: 1px solid var(--color-light-alpha); color: inherit; border-radius: 50%; width: 2.6rem; height: 2.6rem; }
.project-close { position: absolute; top: .55rem; right: .55rem; z-index: 1; }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 1rem; }
.project-caption h2 { font: 700 clamp(1.3rem, 4vw, 3rem)/1 var(--font-title); margin: 0; text-align: center; }
@media (max-width: 700px) {
  .banner-slide .first-char { font-size: 26vw; }
  .banner-slide .second-char { font-size: 20vw; }
  .home-content .link-other .goto-page { flex-direction: row; }
  .contact-home .content-flex { flex-wrap: wrap; }
  .contact-home .text-content { width: 100%; }
  .social { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .ani-item:not(.demo-visible) { opacity: 1; transform: none; }
}
.banner-slide .word > .char { opacity: 1; }
.slide-title-inner > .word { overflow: visible; }
.social .copyright { width: auto; flex: 0 1 auto; }
.back-top { flex: none; }
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 0 0,#62822a70, transparent 35%),
              radial-gradient(ellipse at 100% 100%,#658d3c70,transparent 40%);
}
.ambient .bg-ball {
  display: block; width: 100%; height: 100%; opacity: 0;
  transition: opacity 1s ease;
}
.ambient .bg-ball.is-ready { opacity: 1; }
.bg-circle.show { opacity: .55; }
.background-banner .slide-title-small { max-width: 100%; height: 100%; }
@media (max-width: 700px) { .slide-title-small .text-small { font-size: 13vw; } }
.client-home .slide-pic .grid-item:nth-child(2n) { padding-top: 2.6vw; }
@media (min-width: 1101px) {
  .brand-home .title-main { float: left; margin-right: 5vw; }
  .brand-home .text-content { display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient .bg-ball { display: none; }
  .banner-slide.caption-ready .slide-title-small .word { opacity: 1; animation: none !important; }
}
.page-home { overflow: clip; }
.project-details { padding: 0 4vw 4vw; display: grid; gap: 2vw; }
.project-details img { max-height: none; height: auto; }
.project-close { position: sticky; display: block; top: .55rem; margin: .55rem .55rem -3.15rem auto; right: auto; }
.project-caption { position: relative; }

.client-roll[hidden] { display: none; }

/* Show the first hero frame immediately, including while fonts load. */
.banner-slide .slide-title-inner > .word .char {
  animation: none;
  background-position: 100% 0;
}
.banner-slide.is-active:not(.caption-ready) .slide-title-small .word {
  opacity: 1;
}

