:root {
  --ink: #172033;
  --soft-ink: #34435f;
  --muted: #6d7890;
  --paper: #f8fbff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(23, 32, 51, 0.12);
  --cyan: #13b8c8;
  --green: #20c997;
  --amber: #f6b73c;
  --coral: #ff7a7a;
  --blue-soft: #e9f7ff;
  --green-soft: #e9fbf4;
  --shadow: 0 22px 70px rgba(52, 67, 95, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 14%, rgba(19, 184, 200, 0.16), transparent 24rem),
    radial-gradient(circle at 12% 70%, rgba(246, 183, 60, 0.16), transparent 25rem),
    linear-gradient(rgba(19, 184, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 184, 200, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.76;
}

a {
  color: inherit;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 1.15;
  text-decoration: none;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand::before {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(32, 201, 151, 0.46);
  content: "";
}

.brand::after {
  position: absolute;
  right: -18px;
  bottom: -5px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(19, 184, 200, 0.28);
  background: #ffffff;
  color: var(--cyan);
  box-shadow: 0 10px 24px rgba(19, 184, 200, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 84px 0 96px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 247, 255, 0.68)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(19, 184, 200, 0.12) 10% 10.2%, transparent 10.2% 100%),
    linear-gradient(180deg, transparent 0 18%, rgba(246, 183, 60, 0.18) 18% 18.2%, transparent 18.2% 100%);
  content: "";
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  top: 42px;
  right: 7%;
  z-index: 4;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.hero-meta span:first-child {
  justify-self: end;
  padding: 4px 12px;
  border: 1px solid rgba(32, 201, 151, 0.32);
  border-radius: 999px;
  background: var(--green-soft);
  color: #10946d;
  font-family: "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(710px, 100%);
  margin-left: 7%;
}

.script-mark {
  margin: 0 0 30px;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: clamp(1.05rem, 2.1vw, 1.48rem);
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  color: var(--ink);
  font-size: clamp(4rem, 7.6vw, 7.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  white-space: nowrap;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 880;
}

h3 {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 840;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(19, 184, 200, 0.18);
}

.button:hover {
  border-color: rgba(19, 184, 200, 0.32);
  box-shadow: 0 14px 30px rgba(52, 67, 95, 0.12);
  transform: translateY(-2px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.electron-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.dna-helix {
  position: absolute;
  right: 5%;
  top: 15%;
  width: min(39vw, 460px);
  height: min(74vh, 700px);
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 36px rgba(19, 184, 200, 0.18));
  opacity: 0.78;
}

.dna-helix::before,
.dna-helix::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
}

.dna-helix::before {
  border-left: 3px solid rgba(19, 184, 200, 0.62);
  border-right: 3px solid rgba(32, 201, 151, 0.48);
  animation: helix-breathe 8s ease-in-out infinite alternate;
}

.dna-helix::after {
  inset: 8%;
  border-left: 1px solid rgba(246, 183, 60, 0.42);
  border-right: 1px solid rgba(255, 122, 122, 0.24);
  opacity: 0.8;
  transform: rotate(180deg);
}

.dna-helix span {
  position: absolute;
  left: 50%;
  top: calc(5% + var(--i) * 5.9%);
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(23, 32, 51, 0.1), var(--green));
  transform: translateX(-50%) rotate(calc(var(--i) * 16deg - 12deg));
  opacity: 0.64;
}

.dna-helix span::before,
.dna-helix span::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.dna-helix span::before {
  left: -4px;
  background: var(--cyan);
}

.dna-helix span::after {
  right: -4px;
  background: var(--green);
}

.signal-ring {
  position: absolute;
  border: 1px solid rgba(19, 184, 200, 0.18);
  border-radius: 50%;
}

.signal-one {
  right: 14%;
  top: 26%;
  width: 44vw;
  max-width: 620px;
  aspect-ratio: 1;
  animation: slow-spin 38s linear infinite;
}

.signal-two {
  right: -8%;
  bottom: -10%;
  width: 42vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-color: rgba(246, 183, 60, 0.26);
  animation: slow-spin 54s linear infinite reverse;
}

.data-chip {
  position: absolute;
  right: 10%;
  bottom: 12%;
  padding: 8px 12px;
  border: 1px solid rgba(246, 183, 60, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #b87900;
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.section {
  padding: 82px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card,
.work-item,
.project-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  padding: 24px;
  color: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.card::after {
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  content: "";
  opacity: 0.6;
}

.card span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.card small {
  display: block;
  margin-bottom: 10px;
  color: #b87900;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card p,
.work-item p,
.text-block p,
.project-item p,
.note-item p {
  color: var(--muted);
}

.card:hover,
.card:focus-visible {
  border-color: rgba(32, 201, 151, 0.44);
  box-shadow: 0 24px 74px rgba(19, 184, 200, 0.13);
  transform: translateY(-3px);
}

.card:active {
  transform: translateY(0);
}

.note-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.note-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(19, 184, 200, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), #ffffff 52%);
  box-shadow: var(--shadow);
}

.note-item time,
.note-item small {
  color: #10946d;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-item h3 {
  margin-top: 8px;
}

.note-item p {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.project-item span {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.project-item small {
  color: #b87900;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-item h3 {
  margin-top: 8px;
}

.project-item p {
  margin-bottom: 0;
}

.credential-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.credential-list span {
  padding: 8px 12px;
  border: 1px solid rgba(32, 201, 151, 0.24);
  border-radius: 999px;
  background: var(--green-soft);
  color: #10946d;
  font-size: 0.82rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  border-top: 1px solid var(--line);
}

.text-block p {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: #10946d;
  font-weight: 800;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-spin {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}

@keyframes helix-breathe {
  from {
    transform: scaleX(0.94) rotate(-2deg);
  }

  to {
    transform: scaleX(1.06) rotate(2deg);
  }
}

@media (max-width: 940px) {
  .hero-copy {
    margin-left: 0;
  }

  .dna-helix {
    right: -6%;
    top: 22%;
    width: 64vw;
    height: 58vh;
    opacity: 0.62;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .work-item,
  .note-item,
  .project-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 6px 10px;
  }

  .hero {
    min-height: 760px;
    padding: 58px 0 62px;
  }

  .hero-meta {
    position: relative;
    top: auto;
    right: auto;
    align-self: start;
    justify-self: start;
    margin-bottom: 42px;
    text-align: left;
  }

  .script-mark {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 2.75rem);
    line-height: 1.12;
  }

  .dna-helix {
    right: -24%;
    top: 33%;
    width: 112vw;
    height: 52vh;
    opacity: 0.36;
  }

  .signal-one {
    right: -30%;
    top: 26%;
    width: 110vw;
  }

  .signal-two {
    right: -48%;
    bottom: 0;
    width: 120vw;
  }

  .data-chip {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .card {
    min-height: auto;
  }

  .card span {
    margin-bottom: 28px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .electron-field {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
