/* --- hero layout --- */
.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero__content {
  flex: 1;
  max-width: 600px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-matcha);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 7vw, 3.4rem);
  line-height: 1.3;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  word-break: break-word;
}

.hero__lead {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.85;
}

.hero__bio {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: clamp(0.85rem, 2vw, 0.92rem);
  line-height: 1.8;
  padding: 0.9rem 1.1rem;
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  border-left: 2px solid var(--color-matcha);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero__bio p {
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--color-matcha);
  color: var(--color-matcha);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease-wa), color 0.2s var(--ease-wa), transform 0.15s var(--ease-wa), box-shadow 0.2s var(--ease-wa);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--color-matcha);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(122, 184, 122, 0.25);
}

.hero__cta::after {
  content: "→";
}

/* --- mathematical phyllotaxis: massive offscreen scale (Math A) --- */
.hero__avatar {
  position: absolute;
  top: -140px;
  right: -240px;
  width: min(720px, 85vw);
  height: min(720px, 85vw);
  pointer-events: none;
  z-index: -1;
}

.phyllo-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* 画面外から差し込む極繊細な直線・曲線格子 */
.phyllo-path {
  fill: none;
  stroke: var(--color-matcha);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.phyllo-path--13 {
  stroke-width: 0.55px;
  opacity: 0.22;
}

.phyllo-path--21 {
  stroke-width: 0.5px;
  opacity: 0.16;
}

.phyllo-circle {
  fill: none;
  stroke: var(--color-matcha-light);
  stroke-width: 0.45px;
  opacity: 0.12;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

/* --- 無限幾何学背景 (Infinite Golden Scale Conformal Ring) --- */
.infinite-math-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 96vw);
  height: min(1000px, 96vw);
  pointer-events: none;
  z-index: -2;
  opacity: 0.16;
  overflow: visible;
}

.infinite-math-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.infinite-ring-path {
  fill: none;
  stroke: var(--color-matcha);
  stroke-width: var(--ring-sw, 0.5px);
  opacity: var(--ring-op, 0.25);
  vector-effect: non-scaling-stroke;
}

.infinite-ring-path--0 { --ring-op: 0.45; --ring-sw: 0.65px; }
.infinite-ring-path--1 { --ring-op: 0.42; --ring-sw: 0.62px; }
.infinite-ring-path--2 { --ring-op: 0.38; --ring-sw: 0.59px; }
.infinite-ring-path--3 { --ring-op: 0.34; --ring-sw: 0.56px; }
.infinite-ring-path--4 { --ring-op: 0.31; --ring-sw: 0.53px; }
.infinite-ring-path--5 { --ring-op: 0.28; --ring-sw: 0.50px; }
.infinite-ring-path--6 { --ring-op: 0.24; --ring-sw: 0.47px; }
.infinite-ring-path--7 { --ring-op: 0.20; --ring-sw: 0.44px; }
.infinite-ring-path--8 { --ring-op: 0.17; --ring-sw: 0.41px; }
.infinite-ring-path--9 { --ring-op: 0.13; --ring-sw: 0.38px; }

.infinite-ray-path {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-width: 0.45px;
  opacity: 0.12;
  vector-effect: non-scaling-stroke;
}

/* --- mathematical hyperbola divider: full-width bleed (Math E) --- */
.divider {
  width: 100%;
  padding: 1.25rem 0;
  color: var(--color-line-strong);
  overflow: hidden;
}

.divider svg {
  width: 100%;
  height: 36px;
  display: block;
  overflow: visible;
}

.hyperbola-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.65px;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

/* --- responsive --- */
@media (max-width: 600px) {
  .hero__avatar {
    top: -40px;
    right: -60px;
    width: min(340px, 85vw);
    height: min(340px, 85vw);
    opacity: 0.55;
  }
}