:root {
  --bg: #f7f3ee;
  --ink: #2a2218;
  --muted: #6a5f54;
  --accent: #8a806f;
  --accent-2: #c7b49a;
  --line: rgba(42, 34, 24, 0.08);
  --glass: rgba(255, 255, 255, 0.52);
  --shadow: 0 18px 45px rgba(28, 22, 16, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #ffffff, var(--bg) 55%),
    linear-gradient(120deg, rgba(199, 180, 154, 0.12), transparent 50%);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(199, 180, 154, 0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(42, 34, 24, 0.035), rgba(42, 34, 24, 0.035) 1px, transparent 1px, transparent 8px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  background-image: url("assets/images/leaves-scatter.svg");
  background-repeat: repeat;
  background-size: 900px 900px;
  background-position: 0 0;
  opacity: 0.07;
  pointer-events: none;
  z-index: -2;
  mix-blend-mode: multiply;
  animation: leafDrift 55s linear infinite;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro__backdrop {
  position: absolute;
  inset: 0;
  background: #1b1611;
  opacity: 1;
}

.intro__logo {
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0.2em;
  color: #f5f2ec;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: logoReveal 1.2s ease forwards 0.4s;
}

.intro__logo small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 12px;
  color: rgba(245, 242, 236, 0.65);
}

.intro__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--bg);
  z-index: 1;
}

.intro__panel--top {
  top: 0;
  animation: panelTop 1.2s ease forwards 1.3s;
}

.intro__panel--bottom {
  bottom: 0;
  animation: panelBottom 1.2s ease forwards 1.3s;
}

body.loaded .intro {
  animation: introFade 0.6s ease forwards 2.3s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.cta {
  border: none;
  background: linear-gradient(135deg, #2f2419, #3b2d1f);
  color: #f7f4ef;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}

.cta:hover::after {
  animation: sheen 0.9s ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4vw;
  padding: 120px 6vw 80px;
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(138, 128, 111, 0.14), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(199, 180, 154, 0.2), transparent 50%);
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(199, 180, 154, 0.12), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(138, 128, 111, 0.1), transparent 45%);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite;
}

.hero__illustration {
  position: absolute;
  top: -40px;
  right: -6vw;
  width: min(520px, 70vw);
  height: auto;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: floatSlow 12s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.lead {
  color: var(--muted);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ghost {
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.hero__meta div {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero__meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__meta strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-family: "Cormorant Garamond", serif;
}


.section {
  padding: 90px 6vw;
  position: relative;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}

.section__head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section__head p {
  color: var(--muted);
  max-width: 360px;
}

.concept__grid,
.support__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.concept__grid article,
.support__grid div,
.plan__card,
.flow__steps div {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.plan__card {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.plan__price strong {
  display: block;
  font-size: 2.4rem;
  font-family: "Cormorant Garamond", serif;
}

.plan__card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.plan__card li::before {
  content: "▹";
  margin-right: 8px;
  color: var(--accent);
}

.flow__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(191, 169, 138, 0.25), rgba(255, 255, 255, 0.5));
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 10px 24px rgba(27, 26, 23, 0.08);
  overflow: hidden;
}

.icon img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.9;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
}

.flow__steps span {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.flow__steps h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
}

.contact {
  background: linear-gradient(120deg, rgba(122, 127, 103, 0.12), rgba(191, 169, 138, 0.24));
}

.works__carousel {
  position: relative;
  height: clamp(260px, 46vw, 380px);
  display: grid;
  place-items: center;
}

.carousel__stage {
  position: relative;
  width: min(760px, 90vw);
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1200px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.carousel__stage.is-dragging {
  cursor: grabbing;
}

.carousel__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, 76vw);
  height: auto;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.45;
  filter: saturate(0.8);
}

.carousel__item.is-front {
  opacity: 1;
  filter: saturate(1);
}

.carousel__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(28, 22, 16, 0.16);
  border: 1px solid rgba(42, 34, 24, 0.08);
  user-select: none;
  -webkit-user-drag: none;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  backface-visibility: hidden;
  image-rendering: auto;
}

.carousel__item a {
  display: block;
  position: relative;
  transform: translateZ(0);
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(42, 34, 24, 0.06);
  box-shadow: 0 22px 60px rgba(28, 22, 16, 0.12);
}

.carousel__label {
  position: absolute;
  left: 34px;
  bottom: 30px;
  padding: 8px 16px 8px 36px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 234, 0.85));
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(28, 22, 16, 0.18);
  border: 1px solid rgba(42, 34, 24, 0.1);
  backdrop-filter: blur(6px);
}

.carousel__label::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateY(-50%);
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(42, 34, 24, 0.2);
  background: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.carousel__nav--prev {
  left: 4vw;
}

.carousel__nav--next {
  right: 4vw;
}

.works__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 20px;
}

.contact__cta {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.site-footer {
  padding: 40px 6vw 24px;
  background: #1b1611;
  color: #f5f2ec;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__presented {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.74);
  transition: color 0.25s ease;
}

.footer__presented:hover {
  color: #ffffff;
}

.footer__presented img {
  height: 1.44em;
  max-width: 8.5em;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer__presented:hover img {
  transform: translateY(-1px);
  opacity: 1;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

small {
  color: rgba(245, 242, 236, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-4%, 3%, 0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(0) skewX(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes leafDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 320px 540px;
  }
}

@keyframes panelTop {
  to {
    transform: translateY(-100%);
  }
}

@keyframes panelBottom {
  to {
    transform: translateY(100%);
  }
}

@keyframes introFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__illustration {
    position: absolute;
    top: -20px;
    right: -10vw;
    width: min(480px, 90vw);
    opacity: 0.18;
  }

  .hero__visual {
    order: -1;
  }

  .plan__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .carousel__nav {
    width: 38px;
    height: 38px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero__illustration {
    top: -10px;
    right: -20vw;
    width: 110vw;
    opacity: 0.16;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .concept__grid,
  .support__grid {
    grid-template-columns: 1fr;
  }

  .flow__steps {
    grid-template-columns: 1fr;
  }

  .works__carousel {
    height: 260px;
  }

  .carousel__stage {
    width: 82vw;
  }

  .carousel__item {
    width: min(300px, 62vw);
  }

  .carousel__item a {
    padding: 12px;
    border-radius: 22px;
  }

  .carousel__item img {
    border-radius: 16px;
  }

  .carousel__label {
    left: 24px;
    bottom: 20px;
    padding: 6px 12px 6px 28px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .carousel__label::before {
    left: 12px;
    width: 6px;
    height: 6px;
  }

  .carousel__nav {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 5.3 visual pass: depth, polish, and scroll responsiveness */
:root {
  --accent-3: #5f7a73;
  --shadow-strong: 0 26px 70px rgba(24, 18, 14, 0.2);
}

html {
  scroll-behavior: smooth;
}

.site-header {
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: rgba(42, 34, 24, 0.1);
  background: rgba(247, 243, 238, 0.94);
  box-shadow: 0 12px 32px rgba(21, 17, 13, 0.12);
}

.nav a.is-active {
  color: #1f1912;
}

.nav a.is-active::after {
  width: 100%;
}

h1 {
  text-wrap: balance;
}

.hero__meta div {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero__meta div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.concept__grid article,
.support__grid div,
.plan__card,
.flow__steps div {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.concept__grid article:hover,
.support__grid div:hover,
.plan__card:hover,
.flow__steps div:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 34, 24, 0.14);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.9);
}

.plan__card li::before {
  content: "✓";
  color: var(--accent-3);
  font-weight: 700;
}

.carousel__item {
  will-change: transform, opacity;
}

.carousel__item:not(.is-front) img {
  box-shadow: 0 14px 36px rgba(28, 22, 16, 0.1);
}

.carousel__item a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(28, 22, 16, 0.28), rgba(28, 22, 16, 0));
  opacity: 0.3;
  pointer-events: none;
}

.section__head h2 {
  position: relative;
  padding-left: 16px;
}

.section__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 3px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent-2));
}

.hero {
  --parallax-x: 0;
  --parallax-y: 0;
}

.hero__illustration {
  transform: translate3d(calc(var(--parallax-x) * 12px), calc(var(--parallax-y) * 10px), 0);
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
