/* site/styles.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a2e;
  overflow-x: hidden;
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 80px;
}

:root {
  --accent: #1a1ae5;
  --bg: #fff;
  --surface: #f5f5f7;
  --border: #e8e8ec;
  --text: #1a1a2e;
  --text-2: #44445a;
  --text-3: #8888a0;
}

.dot {
  color: var(--accent);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-dot {
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.section-tag span:last-child {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.section-title {
  letter-spacing: -.03em;
  color: var(--text);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
}

.body-text {
  color: var(--text-2);
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.body-text:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transform: translateY(28px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  position: fixed;
  display: flex;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  background: #ffffffe6;
  border-bottom: 1px solid #0000;
  justify-content: space-between;
  align-items:  center;
  padding: 24px 40px;
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1), border-color .3s;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-12px);
}

body.loaded .nav {
  opacity: 1;
  transform: translateY(0);
}

.nav-brand {
  display: flex;
  align-items:  center;
}

.nav-logo {
  width: auto;
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  letter-spacing: .01em;
  color: var(--text-2);
  transition: color .2s;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  display: flex;
  text-align: center;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  height: 100vh;
  padding: 80px 40px 40px;
}

.hero-name {
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: clamp(52px, 12vw, 170px);
  font-weight: 700;
  line-height: 1;
}

.hero-name .word {
  display: inline-block;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(.15s + var(--d) * .12s);
  transform: translateY(24px);
}

.dot-lg {
  display: inline-block;
  color: var(--accent);
  opacity: 0;
  margin: 0 .06em;
  transition: opacity .6s cubic-bezier(.16,1,.3,1) .4s, transform .6s cubic-bezier(.34,1.56,.64,1) .4s;
  transform: scale(0);
}

body.loaded .hero-name .word {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .dot-lg {
  opacity: 1;
  transform: scale(1);
}

.hero-tagline {
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  margin-top: 28px;
  transition: opacity .8s cubic-bezier(.16,1,.3,1) .55s, transform .8s cubic-bezier(.16,1,.3,1) .55s;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  transform: translateY(12px);
}

body.loaded .hero-tagline {
  opacity: 1;
  transform: translateY(0);
}

.scroll-line {
  position: absolute;
  background: var(--border);
  overflow: hidden;
  opacity: 0;
  border-radius: 1px;
  width: 1px;
  height: 40px;
  transition: opacity .8s 1s;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

body.loaded .scroll-line {
  opacity: 1;
}

.scroll-line span {
  display: block;
  background: var(--accent);
  animation: scrollDrop 2.2s cubic-bezier(.4, 0, .2, 1) infinite 1.5s;
  transform-origin: top;
  border-radius: 1px;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
}

@keyframes scrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  40% {
    transform: scaleY(1);
    transform-origin: top;
  }

  41% {
    transform-origin: bottom;
  }

  80% {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.about {
  border-top: 1px solid var(--border);
  padding: 120px 0;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}

.about-right {
  padding-top: 64px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  gap: 40px;
  padding-top: 60px;
}

.pillar-title {
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.pillar-desc {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.work {
  border-top: 1px solid var(--border);
  padding: 120px 0 80px;
}

.work-header {
  margin-bottom: 48px;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 16px;
  padding: 0 40px 32px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: center;
  flex: 0 0 min(75vw, 400px);
}

.carousel-slide iframe {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
  border: none;
  border-radius: 14px;
  width: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.carousel-dot {
  background: var(--border);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}

.contact-grid {
  max-width: 640px;
}

.contact-content .section-title {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  transition: opacity .2s;
}

a.contact-row:hover {
  opacity: .5;
}

.contact-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
  min-width: 80px;
  font-size: 12px;
  font-weight: 600;
}

.contact-value {
  text-align: right;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo {
  width: auto;
  height: 56px;
}

.footer-tagline {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
}

.footer-copy {
  color: #bbb;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-right {
    padding-top: 0;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .carousel-track {
    padding: 0 24px 32px;
  }

  .carousel-slide {
    flex: 0 0 70vw;
  }
}

@media (max-width: 600px) {
  .section-inner {
    padding: 0 20px;
  }

  .nav {
    padding: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .about {
    padding: 80px 0;
  }

  .work {
    padding: 80px 0 60px;
  }

  .contact {
    padding: 80px 0;
  }

  .carousel-track {
    gap: 12px;
    padding: 0 20px 28px;
  }

  .carousel-slide {
    flex: 0 0 85vw;
  }
}
