:root {
  --bg: #f3efe6;
  --ink: #252521;
  --ink-soft: #656357;
  --line: #00000014;
  --panel: #f9f6efdb;
  --panel-strong: #f4f0e7;
  --brand-a: #94c83d;
  --brand-b: #7fb143;
  --brand-c: #b3d95f;
  --focus: #5f9231;
  --shadow: 0 20px 40px #504b3a1f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(75% 80% at 18% 6%, #f8f4eb 0%, #f3efe6 56%),
    radial-gradient(65% 75% at 88% 16%, #ece8de 0%, transparent 55%),
    linear-gradient(180deg, #f6f2ea 0%, #efe9dd 100%);
  line-height: 1.75;
  overflow-x: clip;
}

#particles-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
  opacity: 0.35;
  z-index: -3;
}

.aurora {
  position: fixed;
  pointer-events: none;
  z-index: -2;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(55px);
  mix-blend-mode: screen;
  transition: transform 180ms linear;
}

.aurora-a {
  background: #a6d35d45;
  top: -140px;
  left: -120px;
}

.aurora-b {
  background: #d1e5a441;
  right: -120px;
  bottom: -120px;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7fa83f;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #7ba84780;
  transform: translate(-50%, -50%);
}

.site-header {
  width: min(1150px, calc(100% - 1.8rem));
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  position: sticky;
  top: 0.8rem;
  border: 1px solid #cfc9bc;
  background: #f7f3ebd6;
  backdrop-filter: blur(14px);
  border-radius: 1rem;
  z-index: 20;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.site-nav {
  display: inline-flex;
  gap: 0.45rem;
}

.site-nav a {
  text-decoration: none;
  color: #56574d;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.7rem;
}

.site-nav a:hover {
  background: #dbe7c136;
}

main {
  width: min(1150px, calc(100% - 1.8rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(3.4rem, 9vw, 7rem) 0 3.4rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7e7a67;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 8vw, 5.2rem);
  letter-spacing: -0.03em;
}

h1 span {
  color: #6f9637;
  text-shadow: 0 0 18px #b3d7615e;
}

h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.hero-copy {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.button-primary {
  color: #273117;
  background: linear-gradient(135deg, #bfdc73, #9cc954, #86b841);
  box-shadow: 0 14px 24px #7ba84736;
}

.button-ghost {
  color: var(--ink);
  background: #f8f5ec;
  border-color: #cfc8b7;
}

.button:hover {
  transform: translateY(-2px);
}

.projects,
.about {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-card {
  background: linear-gradient(160deg, #faf6ef 0%, #f2ecdf 100%);
  border: 1px solid #d7cfbe;
  border-radius: 1.1rem;
  padding: 1.05rem;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.project-card:hover {
  border-color: #99bf53;
  box-shadow: 0 24px 42px #5e5a4d2b;
}

.project-card h3 {
  margin-top: 0.35rem;
  font-size: 1.55rem;
}

.project-card p {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.project-card ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  padding: 0.28rem 0.58rem;
  border-radius: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3e5420;
  background: #b7d96d2e;
  border: 1px solid #9bbd5782;
}

.project-image-link {
  display: block;
  margin-top: 0.8rem;
  border-radius: 0.82rem;
  overflow: hidden;
  border: 1px solid #d9d1c2;
  background: #f3eee3;
}

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.03);
}

.play-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  pointer-events: none;
  background: #8ebc4b;
  animation: pop 650ms ease forwards;
}

.click-ripple {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid #8aad4b;
  transform: translate(-50%, -50%);
  animation: ripple 700ms ease forwards;
  z-index: 80;
}

.site-footer {
  text-align: center;
  color: #6f6b5d;
  padding: 2rem 1rem 2.6rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: lowercase;
}

.section-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section-fade.in {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@keyframes ripple {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10);
  }
}

@keyframes pop {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }

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

@media (max-width: 920px) {
  .site-header {
    position: static;
    width: calc(100% - 1.2rem);
    margin-top: 0.8rem;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  main {
    width: calc(100% - 1.2rem);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .button,
  .project-card,
  .project-image {
    transition: none;
  }
}

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