:root {
  --ink: #171512;
  --paper: #f1ece3;
  --stone: #d8d0c3;
  --muted: rgba(214, 207, 196, 0.82);
  --line: rgba(255, 250, 240, 0.1);
  --white: #fffaf0;
  --spot-x: 50vw;
  --spot-y: 38vh;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --mobile-tilt-x: 0deg;
  --mobile-tilt-y: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 32%, rgba(248, 240, 224, 0.2) 0%, rgba(145, 133, 112, 0.1) 18%, rgba(12, 11, 10, 0.24) 42%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.74), rgba(24, 22, 19, 0.46), rgba(8, 8, 7, 0.78)),
    url("assets/stone-background.png") center / cover no-repeat,
    #14120f;
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 250, 240, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 32%, rgba(255, 250, 240, 0.3) 0 1px, transparent 2px);
  background-size: 84px 74px, 132px 112px;
}

body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(circle at 50% 31%, rgba(255, 245, 222, 0.22) 0%, rgba(255, 245, 222, 0.08) 18%, transparent 34%),
    radial-gradient(circle at center, transparent 0 38%, rgba(0, 0, 0, 0.48) 72%, rgba(0, 0, 0, 0.76) 100%);
}

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

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(400px circle at var(--spot-x) var(--spot-y), rgba(255, 238, 202, 0.2), rgba(173, 155, 121, 0.08) 34%, transparent 64%),
    radial-gradient(720px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.06), transparent 58%);
  mix-blend-mode: screen;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.touch-ripples {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.touch-ripple {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 243, 217, 0.42) 0%, rgba(218, 194, 145, 0.18) 44%, transparent 72%);
  filter: blur(1px);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-bloom 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -10vh;
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: rgba(219, 196, 143, var(--o));
  box-shadow: 0 0 18px rgba(219, 196, 143, calc(var(--o) * 0.7));
  animation: drift-up var(--d) linear infinite;
  animation-delay: var(--delay);
}

.coming-soon {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 62px);
  perspective: 1200px;
}

.panel {
  width: min(980px, 100%);
  display: grid;
  gap: clamp(26px, 4.8vw, 50px);
  justify-items: center;
  text-align: center;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 140ms ease-out;
  will-change: transform;
}

.logo-only-page {
  min-height: 100svh;
}

.logo-only-page .panel {
  width: min(1120px, 100%);
  min-height: calc(100svh - clamp(44px, 8vw, 124px));
  display: grid;
  place-items: center;
}

.client-logo-stage {
  position: relative;
  width: min(1040px, 88vw);
  isolation: isolate;
  animation: logo-reveal 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.client-logo-stage::before {
  position: absolute;
  inset: -24%;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at center, rgba(255, 240, 211, 0.12), rgba(154, 136, 105, 0.05) 34%, transparent 64%);
  filter: blur(22px);
}

.client-logo-stage::after {
  display: none;
}

.client-logo-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: contrast(1.06) brightness(1.02) saturate(0.94) drop-shadow(0 24px 54px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px rgba(255, 240, 211, 0.08));
}

.logo-only-page .logo-shell,
.logo-only-page .content,
.logo-only-page .contact,
.logo-only-page .contact-dots,
.logo-only-page .english-note {
  display: none !important;
}

.logo-shell,
.content,
.contact,
.english-note {
  animation: float-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-shell {
  position: relative;
  width: min(560px, 86vw);
  isolation: isolate;
  animation-name: logo-reveal;
  transform: translateZ(58px);
}

.logo-shell::before {
  position: absolute;
  inset: -34%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, rgba(255, 241, 211, 0.2) 0%, rgba(197, 181, 149, 0.08) 28%, transparent 62%);
  filter: blur(18px);
}

.logo-video {
  width: 100%;
  aspect-ratio: 3.45 / 1;
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  border-radius: 4px;
  filter: contrast(1.08) brightness(1.12) saturate(0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.logo {
  width: min(520px, 86vw);
  height: auto;
  display: block;
}

.content {
  display: grid;
  gap: 18px;
  animation-delay: 260ms;
  transform: translateZ(34px);
}

.label {
  margin: 0;
  color: rgba(239, 232, 218, 0.9);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 5.85rem);
  line-height: 1.15;
  font-weight: 200;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 18px 70px rgba(255, 250, 240, 0.12);
}

.message {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  font-weight: 400;
}

.contact {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation-delay: 560ms;
  transform: translateZ(24px);
}

.contact a {
  --mx: 0px;
  --my: 0px;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  font-weight: 700;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background 220ms ease, color 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  line-height: 1.45;
}

.contact a:last-child {
  border-right: 0;
}

.contact a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact span {
  color: rgba(216, 208, 195, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -34px;
  animation: float-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 680ms;
}

.contact-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.28);
  transition: width 220ms ease, background 220ms ease;
}

.contact-dots .is-active {
  width: 18px;
  background: rgba(255, 250, 240, 0.76);
}

.contact,
.contact-dots {
  display: none !important;
}

.english-note {
  max-width: 720px;
  margin: -16px auto 0;
  color: rgba(214, 207, 196, 0.58);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  animation-delay: 740ms;
  transform: translateZ(12px);
}

@keyframes drift-up {
  from {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
  }

  14% {
    opacity: 1;
  }

  86% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--dx), -118vh, 0) scale(1.2);
  }
}

@keyframes ripple-bloom {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

@keyframes logo-reveal {
  from {
    opacity: 0;
    filter: brightness(0.45) blur(10px);
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    filter: brightness(1) blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  :root {
    --spot-x: 50vw;
    --spot-y: 24vh;
  }

  .spotlight {
    background:
      radial-gradient(340px circle at var(--spot-x) var(--spot-y), rgba(255, 238, 202, 0.2), rgba(173, 155, 121, 0.09) 38%, transparent 70%);
  }

  .particle {
    animation-duration: calc(var(--d) * 1.2);
  }

  .coming-soon {
    min-height: 100svh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    place-items: center;
    padding: 24px 16px;
    perspective: none;
  }

  .panel {
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 22px;
    transform: none;
  }

  .logo-only-page .panel {
    min-height: calc(100svh - 48px);
  }

  .client-logo-stage {
    width: min(98vw, 680px);
    transform: scale(1.18);
  }

  .client-logo-stage img {
    filter: contrast(1.05) brightness(1.02) saturate(0.94) drop-shadow(0 22px 54px rgba(0, 0, 0, 0.56));
  }

  .logo-shell,
  .logo-video {
    width: min(360px, 92vw);
  }

  .logo-video {
    aspect-ratio: 3.45 / 1;
  }

  .logo {
    width: min(360px, 92vw);
  }

  .content {
    gap: 10px;
  }

  .label {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.95rem, 8.8vw, 2.9rem);
    line-height: 1.08;
  }

  .message {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .contact {
    width: min(100%, 440px);
    max-width: calc(100vw - 32px);
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    border-radius: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .contact-dots {
    display: flex;
  }

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

  .contact a {
    flex: 0 0 min(74vw, 292px);
    max-width: min(74vw, 292px);
    min-height: 74px;
    padding: 18px 20px;
    gap: 6px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 6px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: none;
  }

  .contact a:last-child {
    border-bottom: 0;
  }

  .contact span {
    font-size: 0.7rem;
  }

  .english-note {
    max-width: 100%;
    margin-top: -4px;
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-shell,
  .content,
  .contact,
  .english-note,
  .particle {
    animation: none;
  }

  .panel,
  .contact a {
    transform: none;
    transition: none;
  }
}

@media (max-width: 390px) {
  .panel {
    gap: 18px;
  }

  .logo-shell,
  .logo-video {
    width: 92vw;
  }

  .logo-video {
    aspect-ratio: 3.45 / 1;
  }

  .logo {
    width: 92vw;
  }

  .contact a {
    min-height: 66px;
  }
}
