:root {
  color-scheme: light;
  --bg: #fbf8ff;
  --paper: #ffffff;
  --ink: #241532;
  --muted: #6d5b7c;
  --soft: #8f78a3;
  --violet: #9d6cff;
  --violet-dark: #5c2aa8;
  --violet-soft: #eee5ff;
  --pink: #f5b6ff;
  --line: rgba(75, 38, 118, 0.14);
  --shadow: 0 28px 80px rgba(74, 38, 111, 0.12);
  --radius: 30px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(196, 160, 255, 0.45), transparent 24%),
    radial-gradient(circle at 84% 2%, rgba(245, 182, 255, 0.35), transparent 22%),
    linear-gradient(180deg, #fff 0%, var(--bg) 42%, #f7f0ff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  background:
    linear-gradient(90deg, rgba(80, 44, 120, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(80, 44, 120, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin-top: 0; }
p { color: var(--muted); line-height: 1.72; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  width: min(100% - 28px, var(--max));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  box-shadow: 0 14px 26px rgba(99, 48, 170, 0.2);
}
.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.76rem;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--violet-dark);
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.privacy-link:hover,
.privacy-link:focus-visible {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 12px 28px rgba(99, 48, 170, 0.12);
  outline: none;
}

.hero {
  width: min(100% - 28px, var(--max));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.label {
  margin-bottom: 14px;
  color: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.1vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 660px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 48, 170, 0.14);
  outline: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  border-color: transparent;
  color: white;
}
.btn.ghost {
  background: rgba(255,255,255,0.58);
}

.hero-poster {
  min-height: 500px;
  display: grid;
  place-items: center;
}
.poster-card {
  position: relative;
  width: min(100%, 390px);
  padding: 16px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.92), rgba(239, 229, 255, 0.72));
  box-shadow: var(--shadow);
  border: 1px solid rgba(91, 48, 143, 0.15);
  transform: rotate(1.5deg);
}
.poster-card::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 44px;
  width: 64px;
  height: 180px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(157,108,255,0.18), rgba(245,182,255,0.22));
  filter: blur(0.4px);
}
.poster-top,
.poster-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.poster-bottom {
  display: grid;
  text-transform: none;
  letter-spacing: 0;
  padding: 14px 2px 2px;
}
.poster-bottom strong {
  color: var(--ink);
  font-size: 1rem;
}
.poster-bottom small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.8rem;
}
.poster-art {
  position: relative;
  min-height: 380px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 48% 24%, rgba(255,255,255,0.85), transparent 18%),
    radial-gradient(circle at 52% 54%, rgba(188, 139, 255, 0.55), transparent 40%),
    linear-gradient(145deg, #efe4ff, #fff 54%, #ead9ff);
  border: 1px solid rgba(86, 44, 130, 0.1);
}
.poster-art::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(105, 50, 160, 0.18);
}
.poster-art img {
  position: relative;
  z-index: 3;
  width: min(76%, 270px);
  border-radius: 30px;
  filter: drop-shadow(0 26px 34px rgba(89, 38, 145, 0.22));
  animation: hoverIcon 7s ease-in-out infinite;
}
.stroke {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 999px;
  transform: rotate(-11deg);
}
.stroke-one {
  left: -46px;
  bottom: 84px;
  width: 380px;
  height: 46px;
  background: linear-gradient(90deg, transparent, rgba(154, 92, 255, 0.48), rgba(245, 182, 255, 0.68), transparent);
  animation: paintSlide 8s ease-in-out infinite;
}
.stroke-two {
  right: -60px;
  top: 80px;
  width: 250px;
  height: 28px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), rgba(157, 108, 255, 0.28), transparent);
  animation: paintSlide 9s ease-in-out infinite reverse;
}

.mini-manifest {
  width: min(100% - 28px, 820px);
  margin: 48px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 16px 44px rgba(74, 38, 111, 0.08);
}
.mini-manifest p {
  margin: 0;
  color: #594666;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.section {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: clamp(68px, 8vw, 112px) 0;
}

.work-wall {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}
.work-intro,
.work-tile,
.company-card,
.contact-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 20px 60px rgba(74, 38, 111, 0.08);
}
.work-intro {
  grid-row: span 2;
  min-height: 360px;
  padding: 28px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.72), rgba(238,229,255,0.86)),
    radial-gradient(circle at 30% 20%, rgba(157,108,255,0.16), transparent 34%);
}
.work-tile {
  min-height: 210px;
  padding: 24px;
}
.work-tile span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--violet-dark);
  font-size: 0.78rem;
  font-weight: 900;
}
.work-tile p { margin-bottom: 0; font-size: 0.95rem; }

.gallery-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.78fr);
  gap: 40px;
  align-items: center;
}
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.palette span {
  min-height: 220px;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(99,48,170,0.09);
}
.palette span:nth-child(1) { background: #ffffff; }
.palette span:nth-child(2) { background: #efe5ff; transform: translateY(24px); }
.palette span:nth-child(3) { background: linear-gradient(180deg, #f5b6ff, #d9c4ff); }
.palette span:nth-child(4) { background: linear-gradient(180deg, #9d6cff, #5c2aa8); transform: translateY(-18px); }

.company-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 34px;
  padding: clamp(26px, 5vw, 48px);
}
.company-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.company-card dl div {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.58);
}
dt {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
dd { margin: 0; color: #3e2a4f; line-height: 1.6; }
dd a { color: var(--violet-dark); font-weight: 850; }

.contact-card {
  max-width: 780px;
  padding: clamp(26px, 5vw, 48px);
}
.contact-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
label { display: grid; gap: 8px; }
label span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
textarea { min-height: 128px; resize: vertical; }
input:focus,
textarea:focus {
  background: white;
  border-color: rgba(157,108,255,0.48);
  box-shadow: 0 0 0 4px rgba(157,108,255,0.12);
}

.footer {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
}
.footer p { margin: 0; }
.footer a {
  color: var(--violet-dark);
  font-weight: 800;
}

/* Privacy */
.policy-main {
  width: min(100% - 28px, 900px);
  margin: 0 auto;
}
.policy-hero {
  padding: clamp(58px, 8vw, 98px) 0 28px;
}
.policy-hero h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}
.policy-hero span {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--violet-dark);
  font-size: 0.88rem;
  font-weight: 800;
}
.policy-card {
  margin-bottom: 70px;
  padding: clamp(24px, 5vw, 48px);
}
.policy-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.policy-card h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.policy-card address {
  color: var(--muted);
  line-height: 1.75;
  font-style: normal;
}
.policy-card a {
  color: var(--violet-dark);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(74,38,111,0.12);
  backdrop-filter: blur(12px);
  transition: 180ms ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hoverIcon {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes paintSlide {
  0%, 100% { transform: translateX(-12px) rotate(-11deg); opacity: 0.72; }
  50% { transform: translateX(28px) rotate(-8deg); opacity: 1; }
}

@media (max-width: 920px) {
  .hero,
  .work-wall,
  .gallery-section,
  .company-card {
    grid-template-columns: 1fr;
  }
  .hero-poster { min-height: 430px; }
  .work-intro {
    min-height: auto;
    grid-row: auto;
  }
  .palette span { min-height: 150px; }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand small { display: none; }
  .privacy-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }
  h1 {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }
  .poster-card {
    width: min(100%, 330px);
  }
  .poster-art { min-height: 320px; }
  .palette {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
