/* Portfolio 2.0: shared presentation tokens and page compositions.
   The original stylesheet is retained for its established content components. */
:root {
  --font-family: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
  --color-primary: #087f79;
  --color-primary-light: #d8eeea;
  --color-secondary: #17354a;
  --color-text: #526873;
  --color-bg: #f6f1e8;
  --color-white: #fffdf8;
  --color-light-blue: #e3f0ed;
  --color-transparent-primary: #087f790d;
  --line: #d9d5c9;
  --surface: #fffdf8;
  --ink: #17354a;
  --muted: #5d7079;
  --accent: #087f79;
  --accent-soft: #d5ebe6;
  --mint: #25a683;
  --sky: #dceff0;
  --sand: #efe1c5;
  --sand-deep: #ddc9a4;
  --coral: #df6c50;
  --ocean: #17354a;
  --map-surface: #fffaf0;
  --shadow-md: none;
  --shadow-lg: 0 18px 45px #21325b14;
  --shadow-xl: 0 26px 70px #21325b20;
}
html[data-theme="dark"] {
  --color-primary: #62d2c8; --color-primary-light: #153c40;
  --color-secondary: #edf8f5; --color-text: #abc2c2;
  --color-bg: #071a24; --color-white: #0d2730;
  --color-light-blue: #153941; --color-transparent-primary: #62d2c80d;
  --line: #28454a; --surface: #0d2730; --ink: #edf8f5;
  --muted: #abc2c2; --accent: #62d2c8; --accent-soft: #153c40;
  --mint: #73d7ad; --sky: #0e3441;
  --sand: #34332c; --sand-deep: #454234; --coral: #ff9b7f;
  --ocean: #06151d; --map-surface: #102a31;
  --shadow-lg: 0 20px 50px #0005; --shadow-xl: 0 28px 80px #0007;
}
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body.portfolio-page { background: radial-gradient(ellipse at 8% 9%, color-mix(in srgb, var(--sky) 64%, transparent), transparent 31rem), radial-gradient(ellipse at 94% 24%, color-mix(in srgb, var(--mint) 11%, transparent), transparent 28rem), linear-gradient(180deg, color-mix(in srgb, var(--sky) 22%, var(--color-bg)) 0, var(--color-bg) 38rem); color: var(--ink); overflow-x: clip; min-height: 100vh; }
body.portfolio-page::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .38; background-image: repeating-radial-gradient(ellipse at 8% 16%, transparent 0 34px, color-mix(in srgb, var(--line) 62%, transparent) 35px 36px, transparent 37px 52px), repeating-radial-gradient(ellipse at 94% 78%, transparent 0 46px, color-mix(in srgb, var(--accent) 18%, transparent) 47px 48px, transparent 49px 68px); mask-image: linear-gradient(115deg, #000 0, transparent 54%, #000 100%); }
body.portfolio-page > main, body.portfolio-page > footer { position: relative; z-index: 1; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
p { line-height: 1.75; }
a { transition: color .2s, background-color .2s, border-color .2s; }
a:hover { font-weight: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { width: min(1380px, calc(100% - 32px)); margin: 16px auto 0; padding: 12px 14px 12px 22px; display: flex; align-items: center; gap: 28px; border: 1px solid color-mix(in srgb, var(--line) 84%, transparent); border-radius: 20px; position: sticky; top: 16px; z-index: 20; background: color-mix(in srgb, var(--map-surface) 84%, transparent); box-shadow: 0 14px 38px color-mix(in srgb, var(--ocean) 9%, transparent); backdrop-filter: blur(20px) saturate(150%); }
.site-header::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--coral), transparent); opacity: .58; pointer-events: none; }
.wordmark { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -1.4px; white-space: nowrap; }
.wordmark span { color: var(--coral); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.3vw, 36px); margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, var(--line)); }
.theme-toggle { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ocean) 76%, var(--line)); background: var(--ocean); color: #f8fcfb; padding: 0; border-radius: 50%; box-shadow: 0 8px 20px color-mix(in srgb, var(--ocean) 16%, transparent); transition: transform .25s ease, background-color .25s ease, border-color .25s ease; }
.theme-toggle::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme="dark"] .theme-toggle { background: var(--accent); border-color: var(--accent); color: var(--ocean); }
html[data-theme="dark"] .theme-toggle::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); }
.theme-toggle:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.eyebrow { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; font-weight: 500; line-height: 1.7; margin-bottom: 24px; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--coral); border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 12%, transparent); animation: status-pulse 2.8s ease-in-out infinite; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 14px; padding: 15px 22px; min-height: 50px; font-size: 14px; font-weight: 700; border: 1px solid transparent; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, background-color .25s ease; }
.primary-action { background: var(--ink); color: var(--color-bg); box-shadow: 0 12px 24px #17254422; }
.primary-action:hover { background: var(--accent); color: #fff; font-weight: 700; transform: translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 28%, transparent); }
.text-link { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 7px; }
.text-link:hover { color: var(--accent); }
.island-experience { min-width: 0; position: relative; transform: translateZ(0); }
.island-experience::before { content: ""; position: absolute; inset: 8% 4% 34%; z-index: -1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); filter: blur(55px); pointer-events: none; }
.island-stage { height: clamp(390px, 36vw, 550px); position: relative; overflow: hidden; border: 0; border-radius: 0; background: radial-gradient(circle at 75% 18%, color-mix(in srgb, var(--mint) 11%, transparent), transparent 30%), radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--surface) 62%, transparent), transparent 70%); isolation: isolate; }
.island-stage .webgl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: transparent; touch-action: pan-y; }
.island-stage .webgl { cursor: grab; }
.island-stage .webgl:active { cursor: grabbing; }
.island-stage:not(.is-ready) .webgl { pointer-events: none; visibility: hidden; }
.island-scene-heading { position: absolute; top: 26px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; z-index: 4; pointer-events: none; }
.island-scene-heading .eyebrow { margin: 0 0 8px; font-size: 10px; }
.island-scene-heading h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 2.5vw, 36px); font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.scene-placeholder { position: absolute; inset: 70px 0 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.island-monogram { font-size: 94px; font-weight: 500; letter-spacing: -8px; line-height: 1; color: var(--accent); opacity: .3; }
.scene-placeholder p { font-size: 16px; margin: 16px 0 0; color: var(--ink); }
.scene-loader { position: absolute; bottom: 35px; left: 24px; right: 24px; z-index: 3; text-align: center; }
.scene-loader p { font-size: 12px; margin: 10px auto 0; max-width: 380px; }
.scene-loader progress { width: min(260px, 100%); height: 5px; accent-color: var(--accent); margin-top: 10px; }
.scene-tools { position: absolute; bottom: 36px; left: 16px; right: 16px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.scene-tools button { min-width: 44px; min-height: 44px; border: 1px solid color-mix(in srgb, var(--line) 76%, transparent); background: color-mix(in srgb, var(--map-surface) 88%, transparent); color: var(--ink); border-radius: 100px; padding: 8px 14px; font-size: 12px; box-shadow: 0 8px 22px color-mix(in srgb, var(--ocean) 9%, transparent); backdrop-filter: blur(12px); }
.scene-tools button:hover { border-color: var(--accent); }
.scene-help { position: absolute; bottom: 8px; width: 100%; text-align: center; z-index: 2; pointer-events: none; font-size: 11px; margin: 0; color: var(--ink); }
.island-stage:not(.is-ready) .scene-help { display: none; }
.journey-panel { padding: 24px 0 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.journey-story p { font-size: 14px; margin: 0; line-height: 1.8; }
.journey-story a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.journey-story a:hover { color: var(--accent); text-decoration-color: currentColor; }
.journey-story a:focus-visible { border-radius: 3px; outline: 2px solid var(--accent); outline-offset: 3px; }
.island-page-main { position: relative; z-index: 1; }
.island-world { width: 100%; margin: 0 auto; padding: 22px clamp(16px, 3vw, 42px) 42px; }
.island-experience--standalone::before { inset: 5% 10% 35%; opacity: 1; }
.island-experience--standalone .island-stage { height: calc(100svh - 122px); min-height: 640px; background: radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--mint) 15%, transparent), transparent 28%), radial-gradient(circle at 25% 78%, color-mix(in srgb, var(--sand) 44%, transparent), transparent 40%), linear-gradient(180deg, color-mix(in srgb, var(--sky) 60%, var(--color-bg)) 0, color-mix(in srgb, var(--accent-soft) 35%, var(--color-bg)) 68%, var(--color-bg) 100%); }
html[data-theme="dark"] .island-experience--standalone::before { opacity: .12; }
html[data-theme="dark"] .island-experience--standalone .island-stage { background: radial-gradient(circle at 50% 45%, #071116 0, #020506 58%, #000 100%); }
.island-experience--standalone .scene-loader { top: 74%; bottom: auto; transform: translateY(-50%); }
.island-experience--standalone .journey-panel { position: absolute; top: auto; bottom: 104px; left: 50%; z-index: 4; width: fit-content; max-width: calc(100% - 48px); padding: 9px 15px; transform: translateX(-50%); border: 1px solid color-mix(in srgb, var(--sand-deep) 64%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--map-surface) 82%, transparent); box-shadow: 0 12px 30px color-mix(in srgb, var(--ocean) 13%, transparent); backdrop-filter: blur(18px) saturate(135%); text-align: center; }
.island-experience--standalone .journey-panel:not([hidden]) { animation: note-panel-in .45s cubic-bezier(.22, 1, .36, 1); }
.island-experience--standalone #journey-content { min-height: 0; }
.island-experience--standalone .journey-story:not([hidden]) { animation: note-copy-in .3s ease-out; }
.island-experience--standalone .journey-story p { color: var(--ink); font-size: clamp(13px, 1.2vw, 15px); font-weight: 500; line-height: 1.55; }
.section { content-visibility: auto; contain-intrinsic-size: 1px 680px; }
.project-index { font-size: 11px; color: var(--muted); letter-spacing: 1.2px; }
.site-footer { max-width: 1296px; margin: 20px auto 0; border-top: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line)); padding: 34px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-footer p { margin: 0 auto 0 0; font-size: 12px; }
.site-footer > a:not(.wordmark), .site-footer > span { font-size: 12px; color: var(--muted); }
.page-container { max-width: 1200px; margin: 92px auto 110px; }
.page-header { text-align: left; margin-bottom: 58px; position: relative; isolation: isolate; }
.page-header::before { content: ""; position: absolute; z-index: -1; width: clamp(230px, 31vw, 420px); aspect-ratio: 1.55; right: 1%; top: -22%; border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent); border-radius: 48% 52% 44% 56% / 55% 44% 56% 45%; box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 38px color-mix(in srgb, var(--mint) 3%, transparent), 0 0 0 60px color-mix(in srgb, var(--coral) 2%, transparent); transform: rotate(-8deg); }
.page-header::after { content: ""; display: block; width: 96px; height: 3px; margin-top: 28px; border-radius: 10px; background: linear-gradient(90deg, var(--accent) 0 68%, transparent 68% 76%, var(--coral) 76% 84%, transparent 84% 90%, var(--mint) 90%); }
.page-title { max-width: 900px; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -3.5px; margin: 0 0 22px; }
.page-title::after { display: none; }
.page-description { margin: 0; max-width: 700px; font-size: 17px; line-height: 1.8; }
.section-title { padding: 0; font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.section-title::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 10px; border-radius: 4px; background: var(--coral); }
.projects-filter { padding: 24px 28px; border: 1px solid var(--line); border-radius: 24px 24px 34px 20px; background: color-mix(in srgb, var(--map-surface) 90%, transparent); box-shadow: 0 12px 34px color-mix(in srgb, var(--ocean) 7%, transparent); backdrop-filter: blur(12px); }
.projects-filter h3 { font-size: 14px; font-weight: 500; }
.tag-list { gap: 8px; }
.tag { font-size: 12px; padding: 9px 13px; border: 1px solid transparent; border-radius: 100px; font-weight: 600; }
.tag-checkbox input:checked + .tag { color: #fff; background: var(--accent); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.tag-checkbox input:focus-visible + .tag { outline: 3px solid var(--accent); outline-offset: 3px; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.filter-summary p { font-size: 13px; margin: 0; }
.filter-summary button { background: none; border: 0; color: var(--accent); text-decoration: underline; min-height: 44px; font-size: 13px; }
.projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.project-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px 22px 30px 20px; scroll-margin-top: 30px; background: color-mix(in srgb, var(--map-surface) 94%, transparent); box-shadow: 0 12px 36px color-mix(in srgb, var(--ocean) 7%, transparent); transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .35s ease; }
.project-card--featured { background: linear-gradient(145deg, var(--map-surface) 54%, color-mix(in srgb, var(--accent-soft) 62%, var(--map-surface))); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.project-card--featured::before { content: ""; position: absolute; width: 220px; height: 220px; right: -130px; top: -130px; border-radius: 50%; background: color-mix(in srgb, var(--mint) 13%, transparent); }
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: var(--shadow-lg); }
.project-card:target { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-content { position: relative; z-index: 1; padding: 34px; }
.project-content h3 { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.project-content > p { font-size: 16px; margin-bottom: 20px; }
.project-content > .project-index { margin-bottom: 24px; }
.project-tags { gap: 6px; }
.project-tag { border-radius: 100px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--muted); }
.project-link { background: transparent; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; color: var(--ink); font-weight: 700; min-height: 44px; }
.project-link:hover { transform: translateY(-2px); background: var(--ink); color: var(--color-bg); }
.skills-tabs { width: fit-content; max-width: 100%; gap: 5px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 100px; padding: 6px; background: color-mix(in srgb, var(--map-surface) 90%, transparent); box-shadow: 0 12px 34px color-mix(in srgb, var(--ocean) 7%, transparent); }
.skills-tab { font-size: 13px; border: 0; border-radius: 12px; box-shadow: none; background: transparent; color: var(--muted); }
.skills-tab:hover { transform: none; box-shadow: none; background: var(--color-light-blue); }
.skills-tab.active { background: var(--ink); color: var(--color-bg); box-shadow: 0 9px 20px #17254422; }
.skills-content .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#languages .skills-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.skill-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px 18px 26px 18px; box-shadow: 0 10px 30px color-mix(in srgb, var(--ocean) 6%, transparent); padding: 26px; background: color-mix(in srgb, var(--map-surface) 94%, transparent); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .3s ease; }
.skill-card::after { content: ""; position: absolute; width: 72px; height: 54px; right: -34px; bottom: -28px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 48% 52% 44% 56%; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 21px color-mix(in srgb, var(--mint) 3%, transparent); transform: rotate(-12deg); }
.skill-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.skill-card h3 { font-size: 16px; margin: 0; font-weight: 700; }
.skill-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.skill-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50% 48% 52% 45%; font-size: 21px; margin-bottom: 20px; color: var(--accent); background: var(--accent-soft); }
.skill-bar { display: none; }
.timeline::before { width: 2px; background: repeating-linear-gradient(to bottom, var(--accent) 0 8px, transparent 8px 14px); }
.timeline-dot { background: var(--coral); border: 4px solid var(--map-surface); box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 18%, transparent); }
.timeline-content { border: 1px solid var(--line); border-radius: 24px 18px 26px 18px; box-shadow: 0 12px 36px color-mix(in srgb, var(--ocean) 7%, transparent); background: color-mix(in srgb, var(--map-surface) 94%, transparent); }
.timeline-date { background: var(--color-light-blue); color: var(--muted); font-size: 13px; }
.timeline-duration { white-space: nowrap; }
.timeline-header h3 { font-size: 19px; font-weight: 500; }
.timeline-company { font-size: 14px; }
.education-card { border: 1px solid var(--line); border-radius: 24px 18px 28px 18px; box-shadow: 0 12px 36px color-mix(in srgb, var(--ocean) 7%, transparent); background: color-mix(in srgb, var(--map-surface) 94%, transparent); }
.education-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.education-content h3 { font-size: 19px; }
.education-details { flex-wrap: wrap; }
.contact-container { grid-template-columns: minmax(0, 760px); }
.contact-card { border: 1px solid var(--line); border-radius: 28px 20px 32px 20px; box-shadow: 0 14px 42px color-mix(in srgb, var(--ocean) 8%, transparent); background: color-mix(in srgb, var(--map-surface) 94%, transparent); backdrop-filter: blur(12px); }
.contact-detail p { overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 14px 22px; background: var(--ink); color: var(--color-bg); border-radius: 8px; z-index: 20; font-size: 14px; box-shadow: 0 8px 30px #0002; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 10%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--coral) 2%, transparent); } }
@keyframes note-panel-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes note-copy-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease-out; }
@media (max-width: 1439px) { .site-footer { margin-left: 5%; margin-right: 5%; } }
@media (max-width: 1000px) {
  .site-header { gap: 20px; padding: 12px 14px 12px 18px; }
  .site-nav { gap: 18px; }
  .skills-content .skills-grid, #languages .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-container { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 16px); top: 8px; margin-top: 8px; flex-wrap: wrap; gap: 12px; padding: 13px 14px 8px; border-radius: 16px; }
  .wordmark { font-size: 23px; }
  .theme-toggle { margin-left: auto; }
  .site-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: 5px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; padding-bottom: 4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 12px; min-height: 40px; padding: 8px 10px; display: inline-flex; align-items: center; }
  .island-experience { border-radius: 0; }
  .island-stage { height: 390px; border-radius: 0; }
  .island-world { padding: 14px 10px 28px; }
  .island-experience--standalone .island-stage { height: calc(100svh - 145px); min-height: 520px; }
  .island-scene-heading { top: 20px; left: 18px; right: 18px; }
  .island-scene-heading h1 { font-size: 23px; }
  .island-experience--standalone .journey-panel { top: auto; bottom: 96px; width: fit-content; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 11px; }
  .journey-panel { padding: 22px 0 8px; border-radius: 0; }
  #journey-content { min-height: 116px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid, .education-grid { grid-template-columns: 1fr; }
  .skills-content .skills-grid, #languages .skills-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 45px; }
  .timeline-dot { left: 5px; width: 20px; height: 20px; }
  .timeline-header { flex-direction: column; align-items: flex-start; }
  .page-container { margin-top: 58px; padding: 0 5%; }
  .page-title { font-size: clamp(39px, 10vw, 50px); letter-spacing: -2.3px; }
  .projects-filter { padding: 18px; }
  .project-content { padding: 27px; }
  .skills-tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .skills-tabs::-webkit-scrollbar { display: none; }
  .skills-tab { flex: 0 0 auto; padding: 12px 14px; }
  .contact-card { padding: 24px; }
  .site-footer { gap: 16px; }
  .site-footer .wordmark { width: 100%; }
  .site-footer p { width: 100%; }
  .site-footer > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
