:root {
  --bg: #020604;
  --accent: #7fec96;
  --white: #fafbf7;
  --paper: #fafbf7;
  --ink: #071512;
  --ink-muted: rgba(7, 21, 18, 0.68);
  --mx: 0px;
  --my: 0px;
  --scroll: 0px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--white);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

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

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

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

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 4, 0.12) 0%, rgba(2, 6, 4, 0.03) 36%, rgba(2, 6, 4, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 6, 4, 0.04) 0%, rgba(2, 6, 4, 0.14) 76%, rgba(2, 6, 4, 0.38) 100%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 78% 46%, transparent 0 24%, rgba(2, 6, 4, 0.08) 44%, rgba(2, 6, 4, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 4, 0.18) 0%, rgba(2, 6, 4, 0.04) 48%, transparent 100%);
  pointer-events: none;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: -4% -4% -8%;
  background-image: url("assets/images/hero-background.png");
  background-repeat: no-repeat;
  background-size: min(100vw, 1680px) auto;
  background-position: 50% 50%;
  filter: saturate(1.06) contrast(1.03) brightness(0.84);
  transform: translate3d(calc(var(--mx) * -0.018), calc(var(--my) * -0.014 + var(--scroll) * 0.16), 0) scale(1.02);
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero__canvas-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 1680px);
  height: 100%;
  opacity: 1;
  mix-blend-mode: screen;
  transform: translate3d(calc(-50% + var(--mx) * -0.028), calc(var(--my) * -0.02 + var(--scroll) * 0.22), 0);
  will-change: transform;
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1680px) {
  .hero__canvas-wrap {
    width: 100%;
  }
}

@media (min-width: 1680px) {
  .hero__canvas-wrap {
    width: 1680px;
  }
}

@supports not (width: min(100%, 1680px)) {
  .hero__canvas-wrap {
    width: 100%;
    max-width: 1680px;
  }
}

.hero__layout {
  position: relative;
  z-index: 3;
  width: min(100%, 1680px);
  min-height: 100svh;
  margin: 0 auto;
}

.hero__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.85rem, 3.6vw, 3.5rem) clamp(1.6rem, 5vw, 4.9rem) 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12em;
  color: var(--white);
  font-size: clamp(1rem, 1.12vw, 1.24rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.brand span {
  position: relative;
  width: 0.72em;
  height: 0.5em;
  margin-top: 0.01em;
}

.brand span::before,
.brand span::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--white);
}

.brand span::before {
  right: 0;
  top: 0;
}

.brand span::after {
  left: 0;
  bottom: 0;
  box-shadow: 5px 0 0 var(--white), 10px 0 0 var(--white);
}

.nav-link {
  position: relative;
  color: var(--white);
  font-size: clamp(0.88rem, 0.96vw, 1rem);
  letter-spacing: 0.02em;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.62rem;
  height: 1px;
  content: "";
  background: rgba(250, 251, 247, 0.82);
  transform-origin: left;
  transition: transform 280ms ease;
}

.nav-link:hover::after {
  transform: scaleX(0.58);
}

.hero__content {
  position: relative;
  width: min(680px, calc(100% - 3rem));
  margin-left: clamp(1.6rem, 7.3vw, 5.8rem);
  padding-top: clamp(7.4rem, 18vh, 11rem);
}

.hero__eyebrow {
  margin: clamp(1.65rem, 3.2vw, 2.55rem) 0 0;
  color: rgba(177, 232, 188, 0.9);
  font-size: clamp(1.02rem, 1.28vw, 1.38rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero__title {
  margin: 0;
  color: var(--white);
  font-family: "Noto Sans JP", Inter, system-ui, sans-serif;
  font-size: clamp(2.7rem, 4.45vw, 4.9rem);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.36;
  text-shadow: 0 0 28px rgba(250, 251, 247, 0.08);
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: clamp(174px, 16.8vw, 218px);
  margin-top: clamp(2.2rem, 4.8vw, 3.8rem);
  padding: 0.95rem 1.2rem 0.95rem 1.5rem;
  border: 1px solid rgba(181, 237, 193, 0.74);
  border-radius: 999px;
  color: rgba(250, 251, 247, 0.94);
  font-size: clamp(0.9rem, 0.98vw, 1rem);
  letter-spacing: 0.01em;
  background: rgba(2, 6, 4, 0.18);
  box-shadow: inset 0 0 28px rgba(127, 236, 150, 0.03), 0 0 0 rgba(127, 236, 150, 0);
  backdrop-filter: blur(10px);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.hero__cta:hover {
  border-color: rgba(250, 251, 247, 0.95);
  box-shadow: 0 0 34px rgba(127, 236, 150, 0.12);
  transform: translateY(-1px);
}

.section {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.section__inner {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(4.8rem, 8vw, 8.5rem) clamp(1.6rem, 7.3vw, 5.8rem);
}

.section__inner--text {
  display: grid;
  grid-template-columns: minmax(8rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.section-label {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  color: rgba(12, 88, 56, 0.95);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section-label::after {
  width: 2rem;
  height: 1px;
  content: "";
  background: rgba(12, 88, 56, 0.55);
}

.about-copy {
  max-width: 48rem;
  padding-top: 0.55rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 2.05;
  letter-spacing: 0.035em;
}

.about-copy p {
  margin: 0 0 0.35rem;
}

.section--team .section__inner {
  padding-top: clamp(4.4rem, 7.5vw, 7.3rem);
  padding-bottom: clamp(6rem, 10vw, 10.5rem);
}

.section--team {
  background: #f3f6f1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(3rem, 5.5vw, 5.8rem) clamp(1.8rem, 5vw, 5.2rem);
  max-width: 58rem;
  margin-top: clamp(2.8rem, 5vw, 4.6rem);
  margin-right: auto;
  margin-left: auto;
}

.member-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.member-avatar {
  position: relative;
  width: clamp(86px, 8.2vw, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 33%, #f5f2eb 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 50% 92%, #101816 0 39%, transparent 39.6%),
    linear-gradient(145deg, #e7e2d7, #cbc6bc);
  box-shadow: inset 0 0 0 1px rgba(7, 21, 18, 0.04), 0 18px 34px rgba(7, 21, 18, 0.08);
}

.member-avatar::before {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 28%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: #101816;
  transform: translateX(-50%);
}

.member-avatar::after {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 64%;
  height: 42%;
  content: "";
  border-radius: 45% 45% 18% 18%;
  background: #101816;
  transform: translateX(-50%);
}

.member-card h3 {
  margin: 1.2rem 0 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.member-card p {
  display: grid;
  gap: 0.32rem;
  margin: 0.95rem 0 0;
  color: rgba(12, 88, 56, 0.95);
  font-size: clamp(0.68rem, 0.75vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #fbfcf8 0%, #f5f8f3 100%);
}

.contact-field {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -24%;
  height: 62%;
  opacity: 0.32;
  background:
    repeating-radial-gradient(ellipse at 50% 80%, rgba(71, 174, 148, 0.32) 0 1px, transparent 1px 9px),
    linear-gradient(8deg, transparent 0 42%, rgba(73, 180, 152, 0.14) 42.2%, transparent 42.8%),
    linear-gradient(174deg, transparent 0 52%, rgba(73, 180, 152, 0.12) 52.2%, transparent 53%);
  transform: rotate(-2deg);
  pointer-events: none;
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(6.2rem, 10vw, 10rem) clamp(1.6rem, 7.3vw, 5.8rem) clamp(5.2rem, 9vw, 8.8rem);
  text-align: center;
}

.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.contact-section p {
  margin: 1.35rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(0.88rem, 1vw, 1rem);
  letter-spacing: 0.04em;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 13.8rem;
  margin-top: 2.5rem;
  padding: 1.05rem 1.55rem;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.98rem;
  background: linear-gradient(135deg, #03110e, #0a2922);
  box-shadow: 0 18px 44px rgba(7, 21, 18, 0.18), inset 0 0 24px rgba(127, 236, 150, 0.08);
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.contact-button:hover {
  box-shadow: 0 22px 54px rgba(7, 21, 18, 0.24), inset 0 0 28px rgba(127, 236, 150, 0.12);
  transform: translateY(-1px);
}

.site-footer {
  color: rgba(250, 251, 247, 0.76);
  background: #020604;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 2.2rem clamp(1.6rem, 5vw, 4.9rem);
  gap: 2rem;
}

.brand--footer {
  font-size: 0.9rem;
  color: rgba(250, 251, 247, 0.82);
}

.site-footer p {
  margin: 0.7rem 0 0;
  color: rgba(250, 251, 247, 0.44);
  font-size: 0.72rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  color: rgba(250, 251, 247, 0.6);
  font-size: 0.76rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.35rem, 3.2vw, 2.4rem);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  color: rgba(179, 232, 190, 0.84);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
}

@media (min-width: 1680px) {
  .scroll-cue {
    left: calc(50% - 0px);
  }
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 2.7rem;
  background: linear-gradient(180deg, rgba(250, 251, 247, 0.86), transparent);
}

@media (min-aspect-ratio: 16/9) {
  .hero__image {
    background-size: min(100vw, 1680px) auto;
    background-position: 50% 50%;
  }
}

@media (min-width: 1680px) {
  .hero__image {
    inset: 0;
    background-size: 1680px 945px;
  }
}

@media (max-width: 900px) {
  .hero__image {
    inset: -4% -30% -8% -8%;
    background-position: 58% 50%;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(2, 6, 4, 0.2) 0%, rgba(2, 6, 4, 0.08) 58%, transparent 100%),
      linear-gradient(180deg, rgba(2, 6, 4, 0.02), rgba(2, 6, 4, 0.32));
  }

  .section__inner--text {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 3.2rem;
  }
}

@media (max-width: 640px) {
  .hero__header {
    padding: 1.35rem 1.3rem 0;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .hero__content {
    width: calc(100% - 2.6rem);
    margin-left: 1.3rem;
    padding-top: 18vh;
  }

  .hero__title {
    font-size: clamp(2.3rem, 10.6vw, 3.8rem);
    line-height: 1.4;
  }

  .hero__eyebrow {
    margin-top: 1.5rem;
    font-size: 0.98rem;
  }

  .hero__image {
    inset: 0;
    background-size: auto 100%;
    background-position: 90% 50%;
    filter: saturate(1.02) contrast(1.02) brightness(0.76);
  }

  .section__inner {
    padding: 4rem 1.3rem;
  }

  .about-copy {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.8rem 1.2rem;
  }

  .contact-section__inner {
    padding-right: 1.3rem;
    padding-left: 1.3rem;
  }

  .site-footer__inner {
    display: grid;
    padding: 2rem 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__image,
  .hero__canvas-wrap {
    transform: none !important;
  }
}
