:root {
  color-scheme: dark;
  --ink: #f4efe7;
  --muted: #c8beb0;
  --dim: rgba(244, 239, 231, 0.58);
  --paper: #111713;
  --moss: #6f8068;
  --leaf: #a8c19a;
  --gold: #d9b77a;
  --line: rgba(244, 239, 231, 0.16);
  --glass: rgba(14, 22, 18, 0.58);
  --font-stoked: "Stoked", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-display: "Stoked", "Bodoni 72", Didot, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Avenir Next", "Helvetica Neue", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-ui: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", "Yu Gothic UI", sans-serif;
}

@font-face {
  font-family: "Stoked";
  src:
    url("../fonts/Stoked.ttf") format("truetype"),
    url("https://files.fontsme.com/s/311/12311/file/stoked.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 193, 154, 0.16), transparent 65%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #0d130f;
  animation: loaderOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
  pointer-events: none;
}

.loader-mark {
  display: flex;
  gap: 10px;
}

.loader-mark span {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--leaf), var(--gold));
  transform-origin: bottom;
  animation: sprout 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.loader-mark span:nth-child(2) {
  animation-delay: 0.14s;
}

.loader-mark span:nth-child(3) {
  animation-delay: 0.28s;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -3%;
  z-index: -4;
  background: url("../images/botanical-studio.png") center / cover;
  transform: scale(1.1);
  filter: saturate(0.9) contrast(1.05);
  animation: heroWake 6.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background:
    radial-gradient(circle at 76% 28%, rgba(168, 193, 154, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(7, 12, 9, 0.94), rgba(7, 12, 9, 0.58) 42%, rgba(7, 12, 9, 0.2)),
    linear-gradient(0deg, rgba(7, 12, 9, 0.94), rgba(7, 12, 9, 0) 38%);
}

.hero::after {
  z-index: 2;
  background:
    linear-gradient(100deg, transparent 0 44%, rgba(196, 230, 210, 0.18) 50%, transparent 57%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 9px);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-48%);
  animation: scanSweep 2.4s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both;
}

.living-vines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.living-vines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vine {
  fill: none;
  stroke: rgba(168, 193, 154, 0.48);
  stroke-width: 1.4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 16px rgba(168, 193, 154, 0.18));
  animation: vineDraw 3.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, vineBreathe 6s ease-in-out 3.5s infinite;
}

.vine-b {
  animation-delay: 0.28s, 3.7s;
}

.vine-c {
  animation-delay: 0.52s, 3.9s;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  opacity: 0;
  transform: translateY(-18px);
  animation: revealDown 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.75s forwards;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  text-shadow: 0 0 26px rgba(168, 193, 154, 0.28);
}

.brand-ja {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 19px;
}

.brand-en {
  font-family: var(--font-stoked);
  font-size: 24px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(90px, 14vh, 150px);
}
.hero-inner::before {
  content: "";
  position: absolute;
  left: -28px;
  top: clamp(66px, 10vh, 120px);
  width: min(720px, calc(100vw - 32px));
  height: clamp(330px, 52vh, 560px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(168, 193, 154, 0.18), transparent 34%),
    linear-gradient(100deg, rgba(7, 12, 9, 0.88), rgba(7, 12, 9, 0.58) 58%, transparent);
}

.kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
}

.split-reveal {
  overflow: hidden;
}

.split-reveal > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  filter: blur(8px);
  animation: splitUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", var(--font-display);
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 500;
  line-height: 1.05;
  color: #fff8ed;
}

.line {
  display: block;
  overflow: visible;
  padding-bottom: 0.12em;
}
.line > span {
  display: block;
  opacity: 0;
  transform: translateY(90%) rotateX(16deg);
  filter: blur(14px);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(168, 193, 154, 0.24);
  animation: titleBloom 1.35s cubic-bezier(0.16, 1, 0.3, 1) 1.85s forwards;
}

.line:nth-child(2) > span {
  animation-delay: 2.05s;
}

.hero-copy {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.9;
}

.hero-copy > span {
  animation-delay: 2.35s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 14px;
  opacity: 0;
  transform: translateY(18px) rotateX(18deg);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
  animation: buttonIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.55s forwards;
}

.button:nth-child(2) {
  animation-delay: 2.7s;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(168, 193, 154, 0.44) 49%, transparent 64%);
  transform: translateX(-120%);
  animation: buttonShine 1.6s cubic-bezier(0.16, 1, 0.3, 1) 2.95s forwards;
}

.button span {
  position: relative;
  z-index: 1;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(168, 193, 154, 0.14);
}

.primary {
  background: var(--ink);
  color: #101612;
}

.ghost {
  background: rgba(17, 23, 19, 0.36);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.hero-status {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 26px;
  z-index: 4;
  display: grid;
  gap: 7px;
  color: rgba(244, 239, 231, 0.58);
  font-family: var(--font-ui);
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(16px);
  animation: revealDown 1s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

.intro,
.works,
.motion-lab,
.services,
.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding: 90px 0 76px;
}

.intro h2,
.section-head h2,
.motion-copy h2,
.contact h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.06;
}

.intro p:not(.section-kicker),
.motion-copy p,
.service-row p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

.section-head {
  margin-bottom: 30px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.work-card {
  position: relative;
  min-height: 390px;
  padding: 22px;
  background: rgba(18, 27, 22, 0.88);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 450ms ease,
    background 450ms ease;
}

.work-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  background: rgba(26, 39, 31, 0.92);
}

.card-visual {
  position: relative;
  height: 190px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 28%, rgba(168, 193, 154, 0.42), transparent 30%),
    linear-gradient(135deg, #243329, #121a15);
}

.card-visual::before,
.card-visual::after,
.card-visual span {
  content: "";
  position: absolute;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(135deg, rgba(168, 193, 154, 0.94), rgba(78, 99, 70, 0.28));
  transform-origin: bottom left;
  animation: leafFloat 4.8s ease-in-out infinite;
}

.card-visual::before {
  width: 76px;
  height: 122px;
  left: 18%;
  bottom: 12%;
  transform: rotate(-28deg);
}

.card-visual::after {
  width: 58px;
  height: 96px;
  left: 52%;
  bottom: 16%;
  transform: rotate(28deg);
  animation-delay: -1.4s;
}

.card-visual span {
  width: 42px;
  height: 72px;
  right: 18%;
  bottom: 28%;
  transform: rotate(54deg);
  animation-delay: -2.2s;
}

.work-card p,
.work-card > span {
  color: var(--dim);
  line-height: 1.7;
}

.work-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-stoked);
  font-size: 31px;
  font-weight: 500;
}

.motion-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 46px;
  padding: 110px 0;
}

.motion-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 193, 154, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(244, 239, 231, 0.08), rgba(244, 239, 231, 0.02));
}

.orbit {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(168, 193, 154, 0.32);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.orbit-two {
  inset: 26% 10%;
  animation-duration: 13s;
  animation-direction: reverse;
}

.stage-leaf {
  position: absolute;
  width: 92px;
  height: 150px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(135deg, #b6caa5, #3d573f);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  transform-origin: bottom left;
  animation: stageLeaf 5s ease-in-out infinite;
}

.leaf-one {
  left: 18%;
  top: 18%;
  transform: rotate(-30deg);
}

.leaf-two {
  right: 19%;
  top: 32%;
  width: 66px;
  height: 112px;
  animation-delay: -1.8s;
}

.leaf-three {
  left: 45%;
  bottom: 16%;
  width: 78px;
  height: 128px;
  animation-delay: -3s;
}

.pulse-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 239, 231, 0.8), rgba(168, 193, 154, 0.14) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulseCore 2.4s ease-in-out infinite;
}

.services {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.72fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-row span {
  color: var(--gold);
  font-family: var(--font-ui);
}

.service-row h3 {
  margin-bottom: 0;
  font-family: var(--font-stoked);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 500;
}

.service-row p {
  margin-bottom: 0;
}

.contact {
  padding: 86px 0 110px;
}

.contact-panel {
  position: relative;
  min-height: 340px;
  display: grid;
  align-content: center;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18, 27, 22, 0.94), rgba(18, 27, 22, 0.56)),
    url("../images/botanical-studio.png") center / cover;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(168, 193, 154, 0.16), transparent 60%);
  transform: translateX(-100%);
  animation: panelSweep 5s ease-in-out infinite;
}

.reveal-block,
.reveal-card {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.in-view,
.reveal-card.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-card:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-card:nth-child(3) {
  transition-delay: 0.24s;
}

@media (max-width: 820px) {
  .cursor-orb {
    display: none;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 11px;
    font-size: 11px;
  }

  .hero-inner {
    padding-top: 90px;
  }

  .hero-status {
    display: none;
  }

  .work-grid,
  .motion-lab,
  .service-row {
    grid-template-columns: 1fr;
  }

  .motion-stage {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes loaderOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes sprout {
  0%,
  100% {
    transform: scaleY(0.5) rotate(-4deg);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1) rotate(4deg);
    opacity: 1;
  }
}

@keyframes heroWake {
  from {
    opacity: 0;
    transform: scale(1.2) translate3d(2%, 1%, 0);
    filter: saturate(0.62) contrast(1.16) blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
    filter: saturate(0.9) contrast(1.05) blur(0);
  }
}

@keyframes scanSweep {
  0% {
    opacity: 0;
    transform: translateX(-48%) skewX(-8deg);
  }
  20%,
  72% {
    opacity: 0.84;
  }
  100% {
    opacity: 0;
    transform: translateX(52%) skewX(-8deg);
  }
}

@keyframes vineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes vineBreathe {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.34;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.62;
  }
}

@keyframes revealDown {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes splitUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes titleBloom {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes buttonIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes buttonShine {
  to {
    transform: translateX(120%);
  }
}

@keyframes leafFloat {
  0%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  50% {
    rotate: 6deg;
    translate: 0 -10px;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stageLeaf {
  0%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  50% {
    rotate: 9deg;
    translate: 0 -18px;
  }
}

@keyframes pulseCore {
  0%,
  100% {
    scale: 0.86;
    opacity: 0.55;
  }
  50% {
    scale: 1.12;
    opacity: 1;
  }
}

@keyframes panelSweep {
  0%,
  35% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card {
  cursor: pointer;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 7, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.work-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: min(1100px, 100%);
  max-height: min(760px, 86vh);
  transform: translateY(24px) scale(0.96);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog figure {
  margin: 0;
}

.modal-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #0d130f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.modal-dialog figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
}

.modal-description {
  max-width: 520px;
}

.modal-close {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 101;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 23, 19, 0.72);
  color: var(--ink);
  font-family: var(--font-ui);
  cursor: pointer;
}
@media (max-width: 640px) {
  .hero {
    min-height: 92svh;
  }

  .nav {
    width: min(100% - 28px, 1180px);
    padding: 18px 0;
    gap: 14px;
  }

  .brand {
    display: grid;
    gap: 2px;
  }

  .brand-ja {
    font-size: 16px;
  }

  .brand-en {
    font-size: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    max-width: 190px;
    line-height: 1.2;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-top: 82px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 72px);
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .button {
    width: 100%;
  }

  .intro,
  .works,
  .motion-lab,
  .services,
  .contact {
    width: min(100% - 28px, 1180px);
  }

  .intro {
    padding: 66px 0 54px;
  }

  .intro h2,
  .section-head h2,
  .motion-copy h2,
  .contact h2 {
    font-size: clamp(30px, 11vw, 48px);
    line-height: 1.14;
  }

  .work-card {
    min-height: 340px;
    padding: 18px;
  }

  .card-visual {
    height: 210px;
  }

  .motion-lab {
    padding: 72px 0;
    gap: 28px;
  }

  .motion-stage {
    min-height: 330px;
  }

  .service-row {
    gap: 10px;
    padding: 28px 0;
  }

  .contact {
    padding: 66px 0 84px;
  }

  .contact-panel {
    min-height: 300px;
    padding: 28px;
  }

  .modal-dialog figcaption {
    display: block;
  }

  .modal-description {
    display: block;
    margin-top: 8px;
  }

  .modal-close {
    right: 14px;
    top: 14px;
  }
}