:root {
  --bg: #050607;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f8f6;
  --muted: #aeb7b7;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #31d5ff;
  --lime: #caff4a;
  --coral: #ff6d61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(49, 213, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 68%, rgba(202, 255, 74, 0.1), transparent 22rem),
    linear-gradient(135deg, #050607 0%, #0a0d0d 48%, #020303 100%);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
}

main {
  overflow: hidden;
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.cursor {
  position: fixed;
  width: clamp(24rem, 42vw, 40rem);
  height: clamp(24rem, 42vw, 40rem);
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 43% 46%, rgba(255, 255, 255, 0.08), transparent 8%),
    radial-gradient(circle at 42% 48%, rgba(49, 213, 255, 0.34), transparent 31%),
    radial-gradient(circle at 66% 38%, rgba(202, 255, 74, 0.22), transparent 34%),
    radial-gradient(circle at 56% 68%, rgba(255, 109, 97, 0.22), transparent 38%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  filter: blur(5px) saturate(1.35);
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  pointer-events: none;
}

.cursor::before {
  background: conic-gradient(
    from 25deg,
    transparent 0deg,
    rgba(49, 213, 255, 0.42) 42deg,
    transparent 96deg,
    rgba(202, 255, 74, 0.34) 166deg,
    transparent 226deg,
    rgba(255, 109, 97, 0.34) 302deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 59%, #000 64%, transparent 68%);
  mask: radial-gradient(circle, transparent 56%, #000 59%, #000 64%, transparent 68%);
  filter: blur(3px);
  opacity: 0.72;
  animation: cursorRing 9s linear infinite;
}

.cursor::after {
  inset: 24% 8% 16% 22%;
  background:
    linear-gradient(110deg, transparent 8%, rgba(49, 213, 255, 0.22), rgba(202, 255, 74, 0.18), transparent 78%),
    radial-gradient(ellipse at 72% 34%, rgba(255, 109, 97, 0.24), transparent 48%);
  filter: blur(12px);
  opacity: 0.85;
  transform: rotate(-18deg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 4.2rem;
  padding: 0.95rem clamp(1rem, 4vw, 4rem);
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0.34));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 900;
  min-width: 0;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--cyan), var(--lime), var(--coral), var(--cyan));
  box-shadow: 0 0 26px rgba(49, 213, 255, 0.65);
  animation: spin 6s linear infinite;
}

nav {
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

nav a,
.header-action {
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover,
.header-action:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.header-action {
  justify-self: end;
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(20rem, 1.02fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero {
  min-height: min(920px, 100vh);
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: clamp(6.5rem, 9vw, 8.5rem) clamp(1.2rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.slash {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
  max-width: 11.5ch;
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  line-height: 0.88;
  font-weight: 900;
}

h1 span {
  display: block;
  transform-origin: left center;
}

.kinetic-word {
  width: max-content;
  max-width: 100%;
  cursor: default;
  transition:
    color 180ms ease,
    filter 180ms ease,
    text-shadow 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-word:hover {
  filter: saturate(1.3);
  text-shadow:
    0 0 20px rgba(49, 213, 255, 0.48),
    0 0 46px rgba(202, 255, 74, 0.22);
  transform: translateX(0.28rem) skewX(-4deg);
}

h1 span:nth-child(2) {
  color: var(--cyan);
}

h1 span:nth-child(3) {
}

h1 span:nth-child(4) {
  color: var(--coral);
}

.hero-lede {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.78;
}

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

.button {
  display: inline-grid;
  min-height: 3.2rem;
  place-items: center;
  border-radius: 999px;
  padding: 0 1.4rem;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  background: var(--text);
  color: #050607;
  border-color: var(--text);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 62%;
  --shine-y: 40%;
  --local-x: 50%;
  --local-y: 50%;
  position: relative;
  min-height: clamp(26rem, 43vw, 39rem);
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  perspective: 1000px;
  isolation: isolate;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 220ms ease;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.2), transparent 9rem),
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(49, 213, 255, 0.2), transparent 18rem);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.hero-visual:hover,
.hero-visual:focus-within {
  border-color: rgba(202, 255, 74, 0.42);
  box-shadow: 0 30px 120px rgba(49, 213, 255, 0.18), var(--shadow);
}

.hero-visual:hover::before,
.hero-visual:focus-within::before {
  opacity: 1;
}

.visual-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) scale(1.025);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
  animation: float 7s ease-in-out infinite;
}

.visual-sheen {
  position: absolute;
  inset: -35% -55%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.22), transparent 46%);
  opacity: 0;
  transform: translateX(-22%) rotate(8deg);
  transition: opacity 180ms ease, transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover .visual-sheen,
.hero-visual:focus-within .visual-sheen {
  opacity: 0.75;
  transform: translateX(14%) rotate(8deg);
}

.visual-cursor {
  position: absolute;
  left: var(--local-x);
  top: var(--local-y);
  z-index: 3;
  width: 8rem;
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(202, 255, 74, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 12%),
    radial-gradient(circle, rgba(49, 213, 255, 0.18), transparent 48%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-visual:hover .visual-cursor,
.hero-visual:focus-within .visual-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-22deg);
  animation: orbitSpin 13s linear infinite;
}

.orbit-one {
  inset: 12% 6% 18% 0;
  border-color: rgba(49, 213, 255, 0.42);
}

.orbit-two {
  inset: 24% 18% 30% 12%;
  border-color: rgba(202, 255, 74, 0.34);
  animation-duration: 18s;
  animation-direction: reverse;
}

.visual-hotspots {
  position: absolute;
  z-index: 4;
  left: 5%;
  right: 5%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.8rem 0.2rem 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.visual-hotspots a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.62rem, 0.9vw, 0.76rem);
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.visual-hotspots a span {
  color: var(--lime);
}

.visual-hotspots a:hover,
.visual-hotspots a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  transform: translateY(-0.18rem);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding: 1.2rem 0;
  color: transparent;
  font-size: clamp(2.2rem, 6vw, 6rem);
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.36);
  animation: marquee 28s linear infinite;
}

.section {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: clamp(4.8rem, 8vw, 8rem) clamp(1.2rem, 5vw, 5rem);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2.4rem;
}

h2 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(2.35rem, 5.2vw, 5.8rem);
  line-height: 0.98;
  font-weight: 900;
}

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

.project-card {
  position: relative;
  min-height: clamp(20rem, 28vw, 25rem);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -28% -20%;
  height: 55%;
  background: linear-gradient(90deg, rgba(49, 213, 255, 0.6), rgba(202, 255, 74, 0.5), rgba(255, 109, 97, 0.5));
  filter: blur(46px);
  opacity: 0.36;
  transition: transform 300ms ease, opacity 300ms ease;
}

.project-card:hover {
  transform: translateY(-0.7rem) rotateX(2deg);
  border-color: rgba(255, 255, 255, 0.34);
}

.project-card:hover::before {
  opacity: 0.62;
  transform: translateY(-18%);
}

.project-card span {
  color: var(--lime);
  font-weight: 900;
}

.project-card h3 {
  position: relative;
  margin: clamp(5.8rem, 10vw, 9rem) 0 1rem;
  max-width: 8ch;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  line-height: 0.95;
}

.project-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.8;
}

.skill-map {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --skill-x: 50%;
  --skill-y: 50%;
  --skill-accent: var(--cyan);
  position: relative;
  display: grid;
  min-height: 36rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 5rem 5rem;
  transform-style: preserve-3d;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.skill-map:hover,
.skill-map:focus-within {
  border-color: color-mix(in srgb, var(--skill-accent), white 24%);
  box-shadow: 0 30px 120px color-mix(in srgb, var(--skill-accent), transparent 72%);
}

.skill-map::marker {
  content: "";
}

.skill-map::before,
.skill-map::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: border-color 200ms ease, transform 200ms ease;
}

.skill-map::before {
  width: min(58vw, 38rem);
  aspect-ratio: 1;
}

.skill-map::after {
  width: min(42vw, 27rem);
  aspect-ratio: 1;
  border-color: color-mix(in srgb, var(--skill-accent), transparent 76%);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--skill-accent), transparent 86%);
}

.skill-core {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.25rem;
  width: clamp(11rem, 25vw, 18rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 248, 246, 0.92), rgba(247, 248, 246, 0.12));
  color: #040506;
  font-weight: 900;
  box-shadow: 0 0 80px rgba(49, 213, 255, 0.32);
  animation: pulse 3s ease-in-out infinite;
  transform: translateZ(24px);
}

.skill-core small {
  color: rgba(4, 5, 6, 0.64);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-node {
  position: absolute;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
  animation: bob 4s ease-in-out infinite;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-node:hover,
.skill-node:focus-visible,
.skill-node.is-active {
  background: color-mix(in srgb, currentColor, #050607 78%);
  border-color: currentColor;
  box-shadow: 0 0 34px color-mix(in srgb, currentColor, transparent 55%);
  transform: translateY(-0.8rem) scale(1.08);
}

.node-a { left: 17%; top: 24%; color: var(--cyan); }
.node-b { right: 20%; top: 18%; color: var(--lime); animation-delay: 0.3s; }
.node-c { right: 14%; bottom: 24%; color: var(--coral); animation-delay: 0.6s; }
.node-d { left: 23%; bottom: 18%; color: var(--text); animation-delay: 0.9s; }
.node-e { left: 8%; top: 52%; color: var(--lime); animation-delay: 1.2s; }
.node-f { right: 8%; top: 52%; color: var(--cyan); animation-delay: 1.5s; }

.skill-ray {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(36vw, 26rem);
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, color-mix(in srgb, var(--skill-accent), transparent 36%), transparent);
  opacity: 0.36;
  pointer-events: none;
}

.ray-a { transform: rotate(205deg); }
.ray-b { transform: rotate(328deg); }
.ray-c { transform: rotate(24deg); }
.ray-d { transform: rotate(138deg); }
.ray-e { transform: rotate(180deg); }
.ray-f { transform: rotate(0deg); }

.skill-detail {
  position: absolute;
  z-index: 5;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(25rem, 42%);
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--skill-accent), transparent 55%);
  border-radius: 0.5rem;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(0.5rem);
  transition: border-color 180ms ease, transform 180ms ease;
}

.skill-map:hover .skill-detail,
.skill-map:focus-within .skill-detail {
  transform: translateY(0);
}

.skill-detail span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--skill-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-detail strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1;
}

.skill-detail p {
  margin-bottom: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.skill-detail a {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  margin-left: clamp(0.4rem, 5vw, 8rem);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 42rem);
  gap: 2rem;
  padding: 1rem 0 2.8rem 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 1.3rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 28px rgba(255, 109, 97, 0.8);
}

.timeline time {
  color: var(--lime);
  font-weight: 900;
}

.timeline p {
  color: var(--muted);
  line-height: 1.9;
}

.contact {
  min-height: min(76vh, 760px);
  display: grid;
  align-content: center;
  justify-items: start;
  background: linear-gradient(120deg, rgba(49, 213, 255, 0.1), rgba(202, 255, 74, 0.08) 42%, rgba(255, 109, 97, 0.1));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact h2 {
  max-width: 13ch;
  margin-bottom: 2rem;
}

.contact .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1), transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes headline {
  from {
    opacity: 0;
    transform: translateY(0.5em) rotateX(55deg);
  }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(-1deg); }
  50% { transform: translate3d(0, -1.4rem, 0) rotateZ(1.5deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes cursorRing {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpin {
  to { transform: rotateX(62deg) rotateZ(338deg); }
}

@keyframes slide {
  to { transform: translateX(-120%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  50% { transform: scale(1.045); }
}

@keyframes bob {
  50% { transform: translateY(-0.8rem); }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  h1 {
    max-width: 8.6ch;
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.88;
  }

  .hero-visual {
    min-height: clamp(22rem, 82vw, 30rem);
  }

  .visual-hotspots {
    gap: 1rem;
    font-size: 0.68rem;
  }

  .visual-hotspots {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

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

  .project-card {
    min-height: 18rem;
  }

  .project-card h3 {
    margin-top: 5rem;
  }

  .skill-map {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
  }

  .skill-ray {
    display: none;
  }

  .skill-core {
    grid-column: 1 / -1;
    width: min(12rem, 56vw);
    margin: 2rem auto;
  }

  .skill-node {
    position: static;
    justify-self: stretch;
    min-width: 0;
    white-space: normal;
  }

  .skill-node:hover,
  .skill-node:focus-visible,
  .skill-node.is-active {
    transform: translateY(-0.25rem);
  }

  .skill-detail {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (min-width: 841px) and (max-width: 1120px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 32rem;
  }

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

@media (max-width: 480px) {
  .site-header {
    gap: 0.8rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .header-action {
    font-size: 0.78rem;
  }

  .slash {
    font-size: 0.7rem;
  }

  .button {
    min-height: 3rem;
    padding-inline: 1.05rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }
}

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