:root {
  --ink: #07162f;
  --muted: #57709d;
  --line: rgba(91, 122, 186, 0.18);
  --blue: #2f68ff;
  --blue-soft: #86a8ff;
  --lavender: #d9ddff;
  --paper: rgba(255, 255, 255, 0.68);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 28px 70px rgba(79, 108, 186, 0.22);
  --glow: 0 0 28px rgba(115, 145, 255, 0.38);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fffaf3;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(132deg, #fffaf3 0%, #fffdf8 44%, #fff4f6 100%) fixed;
  color: var(--ink);
}

body::before {
  display: none;
}

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

button {
  font: inherit;
}

[data-editable] {
  border-radius: 6px;
  outline: 0 solid transparent;
  transition: background-color 180ms ease, outline-color 180ms ease, box-shadow 180ms ease;
}

.is-editable-local [data-editable]:hover {
  background: rgba(255, 255, 255, 0.38);
  outline: 1px dashed rgba(47, 104, 255, 0.28);
}

.is-editable-local [data-editable]:focus {
  background: rgba(255, 255, 255, 0.72);
  outline: 1px solid rgba(47, 104, 255, 0.5);
  box-shadow: 0 0 0 5px rgba(77, 118, 255, 0.1);
}

.site-shell {
  overflow: hidden;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  background: url("./assets/page-background.png") center / cover no-repeat;
}

.hero {
  display: grid;
  grid-template-columns: minmax(450px, 1.12fr) minmax(250px, 0.62fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: clamp(16px, 1.6vw, 34px);
  isolation: isolate;
}

.mist {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.9;
  pointer-events: none;
}

.mist-a {
  width: 30vw;
  height: 30vw;
  left: 32vw;
  top: 12vh;
  background: rgba(176, 197, 255, 0.34);
}

.mist-b {
  width: 34vw;
  height: 28vw;
  right: -8vw;
  bottom: 4vh;
  background: rgba(216, 220, 255, 0.52);
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  padding-left: clamp(8px, 2.5vw, 46px);
  transform: translateY(2vh);
}

.balloon-hello {
  position: relative;
  width: fit-content;
  margin-bottom: clamp(30px, 5vh, 62px);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: clamp(58px, 6.25vw, 112px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0.01em;
  transform: translateX(-10px);
  animation: floatHello 5.6s ease-in-out infinite;
}

.balloon-hello span {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0.09em 0.12em 0.16em 0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(97, 127, 236, 0.42);
  background:
    linear-gradient(170deg, #ffffff 2%, #cbd8ff 15%, #789cff 42%, #4b76ed 66%, #9db8ff 86%, #eff3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 -4px 1px rgba(255, 255, 255, 0.92),
    0 4px 1px rgba(77, 107, 205, 0.4),
    0 11px 18px rgba(64, 97, 192, 0.32),
    0 24px 34px rgba(62, 93, 175, 0.18);
}

.balloon-hello::before,
.balloon-hello::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.balloon-hello::before {
  z-index: 2;
  inset: 15% 9% 49% 13%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 2%, rgba(255, 255, 255, 0.98) 42%, rgba(255, 255, 255, 0.54) 58%, transparent 88%);
  filter: blur(3px);
  opacity: 0.84;
  transform: rotate(-4deg);
  animation: shimmer 4.8s ease-in-out infinite;
}

.balloon-hello::after {
  z-index: 2;
  width: 11px;
  height: 11px;
  right: 6%;
  top: 7%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(66, 108, 255, 0.8), -242px 27px 0 -3px #fff, -148px -6px 0 -5px rgba(255, 255, 255, 0.88);
}

.eyebrow {
  margin: 0 0 16px;
  width: fit-content;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  padding: 8px 16px;
  border: 1px solid rgba(67, 105, 220, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  letter-spacing: 0.02em;
  text-transform: none;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(58px, 6.2vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 9px 20px rgba(22, 46, 100, 0.12);
}

.role {
  margin-bottom: 28px;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 700;
}

.identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  color: #20355d;
  font-size: 16px;
  font-weight: 650;
}

.identity-row span {
  position: relative;
  padding-right: 16px;
}

.identity-row span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.22em;
  width: 1px;
  height: 1em;
  background: rgba(48, 83, 155, 0.26);
}

.intro {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.8;
  font-weight: 600;
}

.resume-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(43, 82, 174, 0.22);
  border-radius: 999px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.resume-button {
  min-width: 154px;
  color: #1f4cb9;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(106, 144, 255, 0.2), 0 16px 30px rgba(80, 110, 200, 0.16);
  backdrop-filter: blur(16px);
}

.resume-button span {
  margin-left: 10px;
  color: #2e68f3;
  font-size: 23px;
  line-height: 1;
}

.inline-contact {
  display: grid;
  gap: 5px;
  color: #29436e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.portrait-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 78vh;
  margin: 0;
  pointer-events: none;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  bottom: 2vh;
  width: 54%;
  height: 14%;
  border-radius: 50%;
  background: rgba(73, 92, 172, 0.16);
  filter: blur(22px);
  z-index: -1;
}

.portrait-wrap img {
  display: block;
  width: min(32vw, 425px);
  max-height: 80vh;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 26px 34px rgba(19, 43, 93, 0.2))
    drop-shadow(0 0 22px rgba(101, 132, 255, 0.17));
  animation: floatPortrait 7s ease-in-out infinite;
}

.guide-cards {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(176px, 1fr));
  grid-template-rows: repeat(3, minmax(150px, 170px));
  align-content: center;
  gap: clamp(18px, 2vw, 32px) clamp(18px, 2.1vw, 36px);
  min-height: 560px;
  padding: 2vh 0 0;
}

.guide-card {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 0;
  padding: 21px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(236, 242, 255, 0.56)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    0 18px 30px rgba(79, 108, 186, 0.16),
    0 34px 70px rgba(124, 129, 219, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(22px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 12px -10px -12px 18px;
  border: 1px solid rgba(166, 183, 255, 0.28);
  border-radius: inherit;
  background: rgba(201, 211, 255, 0.16);
  z-index: -1;
  box-shadow: 0 18px 40px rgba(97, 120, 220, 0.16);
}

.guide-card::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px rgba(65, 111, 255, 0.7);
}

.guide-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow:
    0 24px 40px rgba(79, 108, 186, 0.2),
    0 48px 90px rgba(124, 129, 219, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.guide-card .index {
  color: #88a1ee;
  font-size: 18px;
  font-weight: 700;
}

.guide-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(85, 122, 232, 0.1), 0 10px 20px rgba(74, 101, 204, 0.14);
}

.guide-card strong {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.guide-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.6;
}

.guide-card .arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
}

.card-education {
  grid-column: 1;
  grid-row: 1;
  transform: translateY(-8px);
}

.card-experience {
  grid-column: 2;
  grid-row: 1;
  transform: translateY(22px);
}

.card-projects {
  grid-column: 1;
  grid-row: 2;
  transform: translateX(-16px);
}

.card-toolkit {
  grid-column: 2;
  grid-row: 2;
  transform: translate(8px, 8px);
}

.card-beyond {
  grid-column: 1;
  grid-row: 3;
  transform: translate(24px, 4px);
}

.side-label {
  position: absolute;
  right: 34px;
  z-index: 2;
  color: #3566ce;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  opacity: 0.72;
}

.right-top {
  top: 8vh;
}

.right-mid {
  top: 58vh;
}

.scroll-hint {
  position: absolute;
  left: clamp(34px, 6vw, 110px);
  bottom: 36px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #14346f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scroll-hint span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(42, 80, 170, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.timeline-section {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  background:
    radial-gradient(circle at 10% 14%, rgba(144, 173, 255, 0.2), transparent 24%),
    radial-gradient(circle at 86% 26%, rgba(206, 211, 255, 0.36), transparent 24%);
}

.section-head {
  position: relative;
  z-index: 4;
  max-width: 520px;
}

.section-head h2 {
  margin-bottom: 18px;
  font-size: clamp(48px, 5.5vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-head p:last-child {
  color: #1a3363;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 650;
}

.timeline-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.timeline-cards {
  position: relative;
  width: min(1120px, 76vw);
  height: 500px;
}

.story-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 270px;
  min-height: 350px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 26px 54px rgba(80, 107, 181, 0.18);
  backdrop-filter: blur(22px);
  transform: translate(-50%, -50%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease, filter 280ms ease;
}

.story-card.active {
  width: 430px;
  min-height: 470px;
  padding: 26px;
  z-index: 7;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 32px 80px rgba(81, 106, 178, 0.26), var(--glow);
}

.story-card.offset--2 {
  transform: translate(-178%, -38%) rotate(-9deg) scale(0.86);
  opacity: 0.74;
  filter: saturate(0.85);
}

.story-card.offset--1 {
  transform: translate(-118%, -43%) rotate(-6deg) scale(0.93);
  opacity: 0.9;
}

.story-card.offset-1 {
  transform: translate(18%, -42%) rotate(6deg) scale(0.93);
  opacity: 0.9;
}

.story-card.offset-2 {
  transform: translate(82%, -36%) rotate(9deg) scale(0.86);
  opacity: 0.74;
  filter: saturate(0.85);
}

.story-card.hidden-card {
  opacity: 0;
  pointer-events: none;
}

.card-image,
.demo-shot {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: rgba(18, 46, 105, 0.74);
  background:
    linear-gradient(135deg, rgba(97, 147, 255, 0.18), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(90deg, rgba(47, 104, 255, 0.08) 0 1px, transparent 1px 28px);
  font-size: 15px;
  font-weight: 800;
}

.story-card.active .card-image,
.story-card.active .demo-shot {
  height: 172px;
}

.story-card .year {
  color: var(--blue);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.story-card h3 {
  margin: 10px 0 10px;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.story-card p {
  color: #31466f;
  line-height: 1.72;
  font-weight: 560;
}

.story-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #253d70;
  line-height: 1.75;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chips span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #3765d8;
  background: rgba(230, 236, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.readme-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #506da8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.arc-timeline {
  position: relative;
  width: min(1120px, 82vw);
  height: 118px;
  margin: 0 auto;
  border-top: 2px solid rgba(74, 113, 232, 0.38);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.arc-timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 18px;
  height: 18px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
  box-shadow: 0 0 0 9px rgba(67, 106, 255, 0.16), 0 0 24px rgba(67, 106, 255, 0.55);
}

.tick {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  text-align: center;
  color: #4867bd;
  font-weight: 800;
}

.tick small {
  display: block;
  margin-top: 5px;
  color: #6e82bb;
  font-size: 12px;
  font-weight: 650;
}

.circle-btn {
  position: absolute;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(72, 106, 202, 0.18);
  border-radius: 50%;
  color: #245bdc;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(74, 101, 188, 0.14);
  cursor: pointer;
  transition: transform 180ms ease;
}

.circle-btn:hover {
  transform: translateY(-3px);
}

.circle-btn.prev {
  left: 54px;
}

.circle-btn.next {
  right: 54px;
}

.info-section,
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-head.narrow {
  max-width: 700px;
  margin-bottom: 40px;
}

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

.glass-panel,
.note-strip article,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.glass-panel {
  min-height: 210px;
  padding: 28px;
}

.glass-panel h3 {
  font-size: 26px;
}

.glass-panel p,
.note-strip article,
.contact-card p {
  color: #314a78;
  line-height: 1.8;
  font-weight: 600;
}

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-strip article {
  min-height: 180px;
  padding: 28px;
  font-size: 20px;
}

.contact-card {
  width: min(900px, 86vw);
  margin: auto;
  padding: clamp(36px, 6vw, 74px);
}

.contact-card h2 {
  font-size: clamp(48px, 6vw, 92px);
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.contact-lines span {
  padding: 14px 20px;
  border: 1px solid rgba(68, 104, 202, 0.18);
  border-radius: 999px;
  color: #1d3e89;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 800;
}

.edit-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  gap: 5px;
  max-width: 350px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(53, 80, 152, 0.18);
  backdrop-filter: blur(20px);
  color: #183262;
  font-size: 12px;
}

.is-editable-local .edit-dock {
  display: grid;
}

.edit-dock button {
  width: fit-content;
  margin-top: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(50, 89, 190, 0.22);
  border-radius: 999px;
  color: #245bdc;
  background: white;
  cursor: pointer;
}

/* Reference-led desktop composition */
html {
  scroll-snap-type: y mandatory;
}

.section {
  height: 100svh;
  min-height: 0;
  padding: clamp(30px, 4.1vw, 68px);
  overflow: hidden;
  scroll-snap-align: start;
}

.hero {
  grid-template-columns: minmax(430px, 1.08fr) minmax(340px, 0.76fr) minmax(430px, 0.96fr);
  gap: clamp(10px, 1.1vw, 24px);
}

.hero-copy {
  align-self: center;
  padding-left: clamp(6px, 2vw, 38px);
  transform: translateY(0);
}

.balloon-hello {
  margin-bottom: clamp(26px, 4.6vh, 52px);
  font-family: "Cooper Black", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: clamp(62px, 6vw, 108px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  filter: drop-shadow(0 14px 15px rgba(65, 92, 183, 0.2));
}

.balloon-hello span {
  padding: 0.12em 0.14em 0.2em 0.08em;
  -webkit-text-stroke: 1px rgba(85, 116, 233, 0.58);
  background: linear-gradient(180deg, #ffffff 0%, #d4dfff 15%, #7e9eff 38%, #5378e7 59%, #90adff 78%, #f5f7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 -5px 2px rgba(255, 255, 255, 0.92),
    0 3px 1px rgba(68, 95, 194, 0.45),
    0 8px 5px rgba(149, 167, 247, 0.46),
    0 17px 20px rgba(66, 93, 174, 0.25);
}

.balloon-hello::before {
  inset: 13% 7% 49% 12%;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.42) 28%, rgba(255, 255, 255, 0.98) 47%, rgba(255, 255, 255, 0.34) 68%, transparent 92%);
  filter: blur(2.5px);
}

.balloon-hello::after {
  right: 3%;
  top: 4%;
  box-shadow: 0 0 16px rgba(66, 108, 255, 0.8), -248px 25px 0 -3px #fff, -150px -2px 0 -5px rgba(255, 255, 255, 0.9);
}

.portrait-wrap {
  min-height: 0;
  height: 100%;
  align-items: flex-end;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 7% -8% 0;
  background: url("./assets/portrait-cutout.png") center bottom / contain no-repeat;
  filter: blur(11px);
  opacity: 0.35;
  transform: scale(0.98);
  z-index: -2;
}

.portrait-wrap::after {
  bottom: 1.5vh;
  width: 78%;
  height: 15%;
  background: rgba(92, 112, 207, 0.23);
  filter: blur(26px);
}

.portrait-wrap img {
  width: min(31.5vw, 490px);
  max-height: 77svh;
  filter: blur(0.22px) drop-shadow(0 28px 32px rgba(19, 43, 93, 0.2)) drop-shadow(0 0 26px rgba(101, 132, 255, 0.2));
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0 64%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.62) 73%, rgba(0, 0, 0, 0.28) 78%, rgba(0, 0, 0, 0.08) 83%, transparent 89%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 3%, rgba(0, 0, 0, 0.5) 8%, #000 15% 85%, rgba(0, 0, 0, 0.5) 92%, rgba(0, 0, 0, 0.12) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0 64%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.62) 73%, rgba(0, 0, 0, 0.28) 78%, rgba(0, 0, 0, 0.08) 83%, transparent 89%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 3%, rgba(0, 0, 0, 0.5) 8%, #000 15% 85%, rgba(0, 0, 0, 0.5) 92%, rgba(0, 0, 0, 0.12) 97%, transparent 100%);
  mask-composite: intersect;
}

.guide-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(174px, 1fr));
  grid-template-rows: repeat(3, minmax(145px, 164px));
  align-content: center;
  gap: clamp(18px, 2vw, 30px) clamp(18px, 2vw, 34px);
  min-height: 0;
  height: min(65vh, 610px);
  padding: 0;
}

.guide-card {
  position: relative;
  width: auto;
  min-height: 0;
  padding: 18px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.9), rgba(224, 232, 255, 0.53));
  box-shadow: 0 17px 24px rgba(79, 108, 186, 0.18), 0 36px 55px rgba(111, 124, 211, 0.18), inset 0 1px rgba(255, 255, 255, 0.94);
}

.guide-card::before {
  inset: 10px -11px -12px 16px;
  border-color: rgba(168, 181, 255, 0.35);
  background: linear-gradient(145deg, rgba(228, 235, 255, 0.46), rgba(202, 213, 255, 0.08));
  box-shadow: 0 20px 38px rgba(90, 112, 208, 0.16);
}

.guide-card:hover {
  transform: translateY(-5px) scale(1.015);
}

.guide-card .index {
  font-size: 16px;
}

.guide-card .icon {
  width: 39px;
  height: 39px;
  color: #5d85f8;
  font-size: 18px;
}

.guide-card strong {
  margin-top: 9px;
  font-size: 20px;
}

.guide-card small {
  font-size: 11px;
  line-height: 1.55;
}

.guide-card .arrow {
  right: 17px;
  bottom: 17px;
  width: 31px;
  height: 31px;
}

.card-education { transform: translateY(-7px); }
.card-experience { transform: translateY(17px); }
.card-projects { transform: translateX(-16px); }
.card-toolkit { transform: translate(8px, 7px); }
.card-beyond { transform: translate(24px, 4px); }

.timeline-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 0.72fr);
  grid-template-rows: minmax(0, 1fr) 128px;
  gap: 0;
  isolation: isolate;
}

.timeline-section .section-head {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: 390px;
  padding-top: clamp(40px, 7vh, 92px);
}

.timeline-section .section-head .eyebrow {
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 0.24em;
}

.timeline-section .section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(54px, 5.25vw, 88px);
  line-height: 0.98;
}

.timeline-section .section-head h2::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.1em;
  color: #6d93ff;
  font-size: 0.45em;
  vertical-align: 0.2em;
}

.timeline-section .section-head p:last-child {
  max-width: 350px;
  font-size: 15px;
  line-height: 1.8;
}

.home-link {
  position: absolute;
  top: clamp(28px, 5vh, 56px);
  right: clamp(32px, 5vw, 86px);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(96, 122, 217, 0.22);
  border-radius: 999px;
  color: #3156be;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 32px rgba(93, 111, 185, 0.1);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 750;
}

.home-link span {
  font-size: 23px;
  line-height: 1;
}

.timeline-stage {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  height: min(61vh, 586px);
  min-height: 0;
}

.timeline-cards {
  width: min(96vw, 1580px);
  height: 100%;
}

.story-card {
  top: 51%;
  width: clamp(212px, 15.4vw, 265px);
  height: clamp(320px, 37vh, 390px);
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.81);
  box-shadow: 0 23px 44px rgba(80, 107, 181, 0.18), 0 38px 66px rgba(108, 120, 202, 0.15);
  transform-style: flat;
  backface-visibility: visible;
  transition: left 420ms cubic-bezier(0.22, 1, 0.36, 1), top 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease, filter 280ms ease;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto 10px -11px 18px;
  height: 25px;
  border: 1px solid rgba(170, 186, 255, 0.32);
  border-radius: 0 0 14px 14px;
  background: rgba(208, 218, 255, 0.2);
  box-shadow: 0 18px 26px rgba(89, 111, 205, 0.16);
  z-index: -1;
}

.story-card.active {
  left: 50%;
  top: 45%;
  width: clamp(355px, 27.5vw, 470px);
  height: clamp(470px, 55vh, 555px);
  min-height: 0;
  padding: 22px 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 72px rgba(80, 107, 181, 0.24), 0 0 32px rgba(115, 145, 255, 0.32);
  transform: translate(-50%, -50%) rotate(0deg) !important;
}

.story-card.offset--2 { left: 8%; top: 59%; transform: translate(-50%, -50%) rotate(-9deg); opacity: 0.76; filter: saturate(0.86); }
.story-card.offset--1 { left: 26%; top: 52%; transform: translate(-50%, -50%) rotate(-6deg); opacity: 0.94; }
.story-card.offset-1 { left: 74%; top: 52%; transform: translate(-50%, -50%) rotate(6deg); opacity: 0.94; }
.story-card.offset-2 { left: 92%; top: 59%; transform: translate(-50%, -50%) rotate(9deg); opacity: 0.76; filter: saturate(0.86); }

.story-card.hidden-card { opacity: 0; pointer-events: none; }
.story-card:not(.active) ul { display: none; }
.story-card:not(.active) .chips { margin-top: 11px; }

.card-image,
.demo-shot {
  height: 47%;
  min-height: 110px;
  margin-bottom: 13px;
  border-radius: 10px;
  color: rgba(27, 59, 131, 0.72);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.26), rgba(255, 255, 255, 0.72)), repeating-linear-gradient(90deg, rgba(47, 104, 255, 0.08) 0 1px, transparent 1px 28px);
}

.card-image.art-0 { background: linear-gradient(145deg, #6c8de6, #d8e6ff 58%, #f5e6df); }
.card-image.art-1 { background: radial-gradient(circle at 52% 38%, #f3ce79 0 11%, transparent 12%), linear-gradient(140deg, #dec59b, #f8f5ec 55%, #8b735d); }
.card-image.art-2 { background: linear-gradient(135deg, #93c6ff, #eff5ff 52%, #dacff5); }
.card-image.art-3 { background: linear-gradient(135deg, #c6d5ee, #f5f8ff 45%, #82a8dc); }
.card-image.art-4 { background: linear-gradient(135deg, #c6dcff, #f8f6fb 58%, #bdcbf3); }

.story-card.active .card-image { height: 34%; min-height: 142px; }
.story-card .year { margin-bottom: 5px; font-size: 13px; }
.story-card h3 { margin: 5px 0 4px; font-size: clamp(21px, 1.55vw, 28px); line-height: 1.12; }
.story-card p { margin-bottom: 8px; font-size: 12px; line-height: 1.6; }
.story-card ul { margin: 10px 0 0; padding-left: 17px; font-size: 12px; line-height: 1.55; }
.chips { gap: 6px; margin-top: 11px; }
.chips span { padding: 5px 8px; font-size: 10px; }

.experience-card.active {
  width: clamp(365px, 28vw, 455px);
  height: clamp(475px, 57vh, 575px);
  padding: 25px 30px;
}

.experience-label,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5f85f5;
  font-size: 12px;
  font-weight: 750;
}

.experience-label > span:first-child,
.readme-status {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(221, 231, 255, 0.72);
}

.experience-card.active .year { margin: 25px 0 7px; font-size: 15px; }
.experience-card.active h3 { margin: 0 0 7px; font-size: clamp(32px, 2.7vw, 44px); }
.experience-role { color: #0e1e42 !important; font-size: 19px !important; font-weight: 750 !important; }
.story-divider { width: 34px; height: 2px; margin: 17px 0; background: #86a6ff; }
.story-label { margin: 13px 0 4px !important; color: #10264e !important; font-size: 13px !important; font-weight: 850 !important; }
.experience-card.active ul { margin-top: 4px; font-size: 12px; line-height: 1.65; }
.experience-card.active .chips { margin-top: 8px; }

.projects-card.active {
  width: clamp(460px, 33vw, 575px);
  height: clamp(505px, 60vh, 600px);
  padding: 0 24px 19px;
}

.readme-label {
  min-height: 55px;
  margin: 0 -24px 20px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(79, 108, 186, 0.13);
  align-items: center;
}

.readme-status { color: #1e61ee; }
.projects-card.active h3 { margin: 0 0 5px; font-size: clamp(28px, 2.25vw, 38px); }
.projects-card.active > p { max-width: 75%; font-size: 13px; }
.project-meta { justify-content: flex-start; gap: 15px; margin: 10px 0 14px; }
.project-meta span { padding: 5px 8px; border-radius: 7px; background: rgba(235, 239, 255, 0.82); }
.readme-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(132px, 0.72fr); gap: 13px; }
.demo-shot { height: 140px; min-height: 0; margin-bottom: 8px; }
.readme-layout > div > p { font-size: 11px; line-height: 1.5; }
.readme-aside { padding: 12px; border-radius: 10px; background: linear-gradient(145deg, rgba(237, 242, 255, 0.88), rgba(255, 255, 255, 0.7)); color: #3b5a98; font-size: 11px; }
.readme-aside strong, .readme-tools > strong { color: #1a376d; font-size: 12px; }
.readme-aside ul { display: block; margin-top: 7px; padding-left: 15px; font-size: 10px; line-height: 1.5; }
.readme-tools { margin-top: 8px; }
.readme-tools .chips { margin-top: 6px; }

.arc-timeline {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  width: min(88vw, 1380px);
  height: 96px;
}

.arc-timeline::after { top: -10px; }
.tick { top: 15px; }
.circle-btn { width: 58px; height: 58px; }
.circle-btn.prev { left: clamp(0px, 2vw, 36px); }
.circle-btn.next { right: clamp(0px, 2vw, 36px); }

.info-section,
.contact-section {
  min-height: 0;
}

/* Final vertical alignment against the supplied frame reference. */
.hero-copy {
  transform: translateY(-7vh);
}

.balloon-hello {
  width: min(39vw, 635px);
  margin-left: clamp(-42px, -2.3vw, -22px);
  margin-bottom: clamp(22px, 3.2vh, 36px);
  font-size: 0;
  line-height: 0;
  filter: none;
}

.balloon-hello::before,
.balloon-hello::after {
  display: none;
}

.balloon-hello img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 21px rgba(64, 91, 178, 0.18));
}

.portrait-wrap::before {
  inset: 3% -11% -7%;
  filter: blur(15px);
  opacity: 0.46;
  transform: scale(1.1) translateY(4%);
}

.portrait-wrap img {
  width: min(36vw, 560px);
  max-height: 88svh;
  filter: blur(0.55px) drop-shadow(0 30px 36px rgba(19, 43, 93, 0.22)) drop-shadow(0 0 31px rgba(101, 132, 255, 0.24));
  transform: scale(1.1) translateY(6%);
  animation: floatPortraitCrop 7s ease-in-out infinite;
}

.timeline-section {
  padding-top: clamp(24px, 3.1vw, 52px);
  padding-bottom: 18px;
  grid-template-rows: minmax(0, 1fr) 94px;
}

.timeline-section .section-head {
  padding-top: 0;
}

.timeline-stage {
  height: min(52vh, 505px);
}

.story-card.active {
  top: 54%;
  height: clamp(445px, 51vh, 520px);
}

.experience-card.active {
  height: clamp(455px, 52vh, 530px);
}

.projects-card.active {
  height: clamp(470px, 53vh, 540px);
}

.story-card.offset--2 { top: 66%; }
.story-card.offset--1 { top: 59%; }
.story-card.offset-1 { top: 59%; }
.story-card.offset-2 { top: 66%; }

.arc-timeline {
  height: 70px;
  margin-bottom: 0;
}

.tick {
  top: 12px;
}

/* Clearer portrait and click-to-reveal timeline cards. */
.portrait-wrap {
  left: -3.5vw;
}

.portrait-wrap::before {
  background-image: url("./assets/portrait-softedge.png");
  opacity: 0.16;
  filter: blur(18px);
  transform: scale(1.06) translateY(3%);
}

.portrait-wrap img {
  filter: saturate(0.94) brightness(1.025) contrast(0.96) drop-shadow(0 28px 34px rgba(19, 43, 93, 0.15)) drop-shadow(0 0 18px rgba(101, 132, 255, 0.14));
  animation: floatPortraitClear 7s ease-in-out infinite;
}

.timeline-stage {
  height: min(55vh, 525px);
}

.story-card.active {
  top: 47%;
  width: clamp(305px, 22vw, 385px);
  height: clamp(350px, 42vh, 430px);
  padding: 18px;
  overflow: visible;
  cursor: pointer;
  perspective: 1400px;
}

.story-card.active.flipped {
  width: clamp(365px, 28vw, 455px);
  height: clamp(455px, 52vh, 530px);
  padding: 25px 30px;
}

.projects-card.active.flipped {
  width: clamp(460px, 33vw, 575px);
  height: clamp(470px, 53vh, 540px);
  padding: 0 24px 19px;
}

.story-card.offset--2 { top: 60%; }
.story-card.offset--1 { top: 53%; }
.story-card.offset-1 { top: 53%; }
.story-card.offset-2 { top: 60%; }

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.story-card.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-front .year {
  margin: 12px 0 3px;
}

.card-front h3 {
  margin: 0 0 5px;
  font-size: clamp(22px, 1.8vw, 30px);
}

.card-front p:last-of-type {
  margin-bottom: 0;
  color: #5070af;
}

.front-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 56%;
  min-height: 128px;
  overflow: hidden;
  border-radius: 10px;
  color: rgba(27, 59, 131, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.front-art::after {
  content: "";
  position: absolute;
  inset: auto 9% 13% 9%;
  height: 18%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.09);
}

.front-art.art-0 { background: linear-gradient(145deg, #6c8de6, #d8e6ff 58%, #f5e6df); }
.front-art.art-1 { background: radial-gradient(circle at 52% 38%, #f3ce79 0 11%, transparent 12%), linear-gradient(140deg, #dec59b, #f8f5ec 55%, #8b735d); }
.front-art.art-2 { background: linear-gradient(135deg, #93c6ff, #eff5ff 52%, #dacff5); }
.front-art.art-3 { background: linear-gradient(135deg, #c6d5ee, #f5f8ff 45%, #82a8dc); }
.front-art.art-4 { background: linear-gradient(135deg, #c6dcff, #f8f6fb 58%, #bdcbf3); }

.flip-mark {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(94, 128, 237, 0.18);
  border-radius: 50%;
  color: #4c7af2;
  background: rgba(255, 255, 255, 0.68);
  font-size: 19px;
}

.card-back {
  overflow: hidden;
  transform: rotateY(180deg);
}

.story-card.flipped .card-back {
  overflow-y: auto;
  scrollbar-width: none;
}

.story-card.flipped .card-back::-webkit-scrollbar {
  display: none;
}

.story-card:not(.flipped) .card-back {
  pointer-events: none;
}

@keyframes floatPortraitClear {
  0%,
  100% {
    transform: translate(-7%, 17%) scale(1.12);
  }
  50% {
    transform: translate(-7%, 15%) scale(1.12);
  }
}

@keyframes floatPortraitCrop {
  0%,
  100% {
    transform: scale(1.1) translateY(6%);
  }
  50% {
    transform: scale(1.1) translateY(4%);
  }
}

@keyframes floatHello {
  0%,
  100% {
    transform: translate(-10px, 0);
  }
  50% {
    transform: translate(-10px, -10px);
  }
}

@keyframes floatPortrait {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-12%) rotate(-8deg);
  }
  50% {
    opacity: 0.9;
    transform: translateX(12%) rotate(-8deg);
  }
}

@media (max-width: 1120px) {
  html {
    scroll-snap-type: none;
  }

  .section {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
  }

  .portrait-wrap {
    order: 2;
    min-height: 420px;
  }

  .portrait-wrap img {
    width: min(62vw, 360px);
  }

  .guide-cards {
    order: 3;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: auto;
  }

  .guide-card {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 154px;
    transform: none;
  }

  .side-label {
    display: none;
  }

  .timeline-cards {
    width: 100%;
  }

  .timeline-section {
    display: flex;
    gap: 26px;
  }

  .timeline-section .section-head {
    padding-top: 0;
  }

  .timeline-stage {
    width: 100%;
    height: 520px;
  }

  .arc-timeline {
    width: 92vw;
  }

  .story-card.offset--2,
  .story-card.offset-2 {
    display: none;
  }

  .tool-grid,
  .note-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 28px 20px;
  }

  .balloon-hello {
    font-size: 54px;
    margin-bottom: 34px;
  }

  h1 {
    font-size: 58px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .timeline-stage {
    min-height: 460px;
    height: 460px;
  }

  .home-link {
    top: 20px;
    right: 20px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .timeline-section .section-head {
    padding-top: 55px;
  }

  .timeline-section .section-head h2 {
    font-size: 54px;
  }

  .story-card.active,
  .experience-card.active,
  .projects-card.active {
    width: min(92vw, 450px);
    height: 440px;
    padding: 19px;
  }

  .projects-card.active {
    padding: 0 17px 14px;
  }

  .readme-label {
    margin: 0 -17px 13px;
    padding: 0 17px;
    min-height: 44px;
  }

  .readme-layout {
    grid-template-columns: 1fr;
  }

  .readme-aside {
    display: none;
  }

  .story-card:not(.active) {
    display: none;
  }

  .story-card.active {
    width: min(92vw, 390px);
  }

  .circle-btn.prev {
    left: 16px;
  }

  .circle-btn.next {
    right: 16px;
  }

  .edit-dock {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .is-editable-local .edit-dock {
    display: none;
  }
}

/* Use the supplied star field consistently on every full-screen page. */
.section,
.timeline-section {
  background: #fffaf3 url("./assets/page-background.png") center / cover no-repeat;
}

/* Pink editorial cover, matched to the approved reference. */
.portfolio-cover {
  position: relative;
  display: block;
  height: 100svh;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 57% 94%, rgba(247, 177, 204, 0.36), transparent 27%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.88), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(135deg, #fffaf4 0%, #fff7f1 48%, #fdf4f2 100%);
}

.portfolio-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 11%, white 0 2px, transparent 3px),
    radial-gradient(circle at 82% 8%, white 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 93% 33%, white 0 2px, transparent 3px),
    radial-gradient(circle at 7% 66%, white 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 31% 58%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    linear-gradient(115deg, transparent 0 33%, rgba(255, 255, 255, 0.36) 43%, transparent 54%);
  opacity: 0.86;
}

.cover-kicker {
  position: absolute;
  left: 2.8%;
  top: 3.7%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, 0.78vw, 15px);
  font-weight: 850;
  letter-spacing: 0;
}

.cover-kicker-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: white;
  background: linear-gradient(145deg, #f59ac0, #e76d9e);
  box-shadow: 0 8px 18px rgba(221, 93, 148, 0.2);
}

.cover-hello {
  position: absolute;
  left: 2.4%;
  top: 5.8%;
  z-index: 3;
  width: min(35vw, 645px);
  pointer-events: none;
  animation: coverHelloFloat 6s ease-in-out infinite;
}

.cover-hello img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.06) saturate(0.94) drop-shadow(0 15px 20px rgba(213, 91, 145, 0.18));
}

.cover-copy {
  position: absolute;
  left: 5.7%;
  top: 31.5%;
  z-index: 7;
  width: 31%;
}

.cover-copy h1 {
  position: relative;
  width: fit-content;
  margin: 0 0 18px;
  color: #e9478c;
  font-size: clamp(72px, 5.7vw, 104px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.cover-copy h1::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -11%;
  top: -23%;
  width: 142%;
  height: 136%;
  border: 4px solid rgba(241, 133, 177, 0.24);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.cover-role {
  margin: 0;
  color: #171b24;
  font-size: clamp(22px, 1.8vw, 33px);
  font-weight: 850;
  line-height: 1.25;
}

.cover-identity {
  display: flex;
  align-items: center;
  margin-top: 34px;
  color: #424957;
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 700;
}

.cover-identity span {
  padding: 0 17px;
  border-right: 1px solid rgba(75, 80, 94, 0.28);
}

.cover-identity span:first-child { padding-left: 0; }
.cover-identity span:last-child { border-right: 0; }

.cover-intro {
  margin: 36px 0 0;
  color: #343b49;
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 760;
  line-height: 1.65;
}

.cover-contact-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.cover-resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 190px;
  height: 68px;
  border: 3px solid rgba(237, 111, 163, 0.2);
  border-radius: 999px;
  color: #e85f98;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92);
  font-size: 19px;
  font-weight: 800;
}

.cover-resume span {
  font-size: 28px;
  font-weight: 500;
}

.cover-contact {
  display: grid;
  gap: 8px;
  color: #485064;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 760;
  line-height: 1.3;
}

.cover-wireframe {
  position: absolute;
  left: 57.4%;
  top: 13.2%;
  z-index: 1;
  width: 10.2%;
  height: 25%;
  padding: 40px 14px 14px;
  border: 1px solid rgba(226, 167, 197, 0.22);
  background:
    linear-gradient(rgba(224, 143, 185, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 143, 185, 0.12) 1px, transparent 1px),
    rgba(255, 255, 255, 0.38);
  background-size: 8px 8px;
  box-shadow: 0 16px 28px rgba(210, 124, 163, 0.08);
  transform: rotate(0.8deg);
}

.cover-wireframe::before {
  content: "";
  position: absolute;
  left: 28%;
  top: -8px;
  width: 48%;
  height: 16px;
  background: rgba(247, 159, 197, 0.42);
}

.cover-wireframe::after {
  content: "";
  position: absolute;
  inset: 28px 14px auto;
  height: 76px;
  border: 1px solid rgba(105, 99, 128, 0.42);
  border-radius: 7px;
}

.cover-wireframe span {
  display: inline-block;
  width: calc(50% - 4px);
  height: 42px;
  margin: 55px 2px 0;
  border: 1px solid rgba(105, 99, 128, 0.34);
}

.cover-portrait {
  position: absolute;
  left: 31%;
  top: 7.4%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 31.5%;
  height: 94%;
  margin: 0;
  pointer-events: none;
}

.cover-portrait::before {
  content: "";
  position: absolute;
  inset: 1% -4% -2%;
  z-index: -1;
  background: url("./assets/portrait-formal-softedge.png") center top / contain no-repeat;
  filter: blur(18px);
  opacity: 0.13;
  transform: scale(1.035);
}

.cover-portrait img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.94) brightness(1.035) contrast(0.96) drop-shadow(0 26px 34px rgba(86, 50, 71, 0.14));
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0 76%, rgba(0, 0, 0, 0.9) 82%, rgba(0, 0, 0, 0.48) 90%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.32) 5%, #000 14% 87%, rgba(0, 0, 0, 0.32) 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0 76%, rgba(0, 0, 0, 0.9) 82%, rgba(0, 0, 0, 0.48) 90%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.32) 5%, #000 14% 87%, rgba(0, 0, 0, 0.32) 96%, transparent 100%);
  mask-composite: intersect;
  animation: coverPortraitFloat 7s ease-in-out infinite;
}

.cover-notes {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.cover-note {
  --pin: #ed91b7;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 10.2%;
  height: 17.2%;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 2px;
  color: #171b24;
  box-shadow: 0 18px 25px rgba(95, 70, 85, 0.13), inset 0 1px rgba(255, 255, 255, 0.76);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cover-note:hover {
  box-shadow: 0 23px 34px rgba(95, 70, 85, 0.18), inset 0 1px rgba(255, 255, 255, 0.78);
}

.note-pin {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), var(--pin) 75%);
  box-shadow: 0 7px 10px rgba(80, 51, 69, 0.18);
  transform: translateX(-50%);
  opacity: 0.55;
}

.note-icon {
  font-size: clamp(31px, 2.25vw, 42px);
  line-height: 1;
}

.cover-note strong {
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(18px, 1.45vw, 27px);
  line-height: 1;
  letter-spacing: 0;
}

.note-education { --pin: #ee87b2; left: 68.6%; top: 12.7%; background: linear-gradient(145deg, #ffe8f1, #f6c5d9); transform: rotate(0.8deg); }
.note-experience { --pin: #efc34d; left: 68.5%; top: 35.6%; background: linear-gradient(145deg, #fff5c8, #f8e5a6); transform: rotate(2.2deg); }
.note-projects { --pin: #b96fe9; left: 68.6%; top: 57.2%; background: linear-gradient(145deg, #f2d8ff, #dfb8f5); transform: rotate(1.2deg); }
.note-toolkit { --pin: #83a4eb; left: 84%; top: 23.3%; background: linear-gradient(145deg, #e3edff, #cad9f7); transform: rotate(1deg); }
.note-beyond { --pin: #9fb853; left: 84.1%; top: 45.7%; background: linear-gradient(145deg, #eff4c7, #d8e6ae); transform: rotate(2.4deg); }

.note-education:hover { transform: translateY(-7px) rotate(0.8deg); }
.note-experience:hover { transform: translateY(-7px) rotate(2.2deg); }
.note-projects:hover { transform: translateY(-7px) rotate(1.2deg); }
.note-toolkit:hover { transform: translateY(-7px) rotate(1deg); }
.note-beyond:hover { transform: translateY(-7px) rotate(2.4deg); }

.cover-side-copy {
  position: absolute;
  right: 2.65%;
  z-index: 7;
  color: #ee7da9;
  font-size: clamp(10px, 0.7vw, 13px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.cover-side-top { top: 7.2%; }
.cover-side-bottom { top: 49%; }

.cover-scroll {
  position: absolute;
  left: 5.7%;
  bottom: 7.4%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e65f99;
}

.cover-scroll > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(230, 95, 153, 0.3);
  border-radius: 50%;
  font-size: 19px;
}

.cover-scroll p {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

@keyframes coverHelloFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes coverPortraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1120px) {
  .portfolio-cover {
    height: auto;
    min-height: 1500px;
    padding: 110px 28px 70px;
  }

  .cover-kicker { left: 28px; top: 34px; }
  .cover-hello { left: 28px; top: 108px; width: min(82vw, 620px); }
  .cover-copy { left: 28px; top: 330px; width: calc(100% - 56px); }
  .cover-copy h1 { font-size: clamp(68px, 15vw, 100px); }
  .cover-identity { flex-wrap: wrap; gap: 12px; }
  .cover-portrait { left: 10%; top: 680px; width: 80%; height: 650px; }
  .cover-wireframe { display: none; }
  .cover-notes { top: 1180px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 28px; }
  .cover-note { position: relative; inset: auto; width: auto; height: 145px; transform: none; }
  .cover-note:hover { transform: translateY(-5px); }
  .cover-side-copy,
  .cover-scroll { display: none; }
}
