/* Shared materials and project identities. Loaded after the original layout. */
:root {
  --bg: #f7f9fc;
  --bg-2: #eef2f6;
  --text: #19212a;
  --muted: #556270;
  --border: #e1e7ed;
  --accent-color: #237fa5;
  --accent-tint: #edf6fa;
}

[data-project-theme="outlive"] { --accent-color: #a16e22; --accent-tint: #faf5eb; }
[data-project-theme="unity"] { --accent-color: #1d7d70; --accent-tint: #edf7f4; }
[data-project-theme="arctic"] { --accent-color: #237fa5; --accent-tint: #edf6fa; }
[data-project-theme="environment"] { --accent-color: #99576f; --accent-tint: #f8f0f3; }
body { background: var(--bg); }
body[data-page="home"] .hero {
  background-image: linear-gradient(#2faee506 1px, transparent 1px), linear-gradient(90deg, #2faee506 1px, transparent 1px);
  background-size: 40px 40px;
}
.glass-card,
:is(.project-card, .skill-panel, .workflow-item, .education-card, .school-logo-card).glass-card,
.glass-card:hover {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px #23344806;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.glass-card::before, .glass-card::after,
.glass-card:hover::before, .glass-card:hover::after { content: none; }
.project-card.glass-card {
  background: #fff;
  border-top: 1px solid var(--border);
}
.glass-surface,
.site-header.glass-surface,
.site-header.glass-surface.is-scrolled {
  background: #ffffffb8;
  border-color: #ffffffdf;
  box-shadow: inset 0 1px 0 #fff, 0 8px 28px #2334480a;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.glass-surface::before, .glass-surface::after { content: none; }
.glass-button, .glass-orb,
.button.glass-button, .button.primary.glass-button,
.details-toggle.glass-button, .other-projects-collapse.glass-button,
.language-switch.glass-button,
.software-logos .glass-orb, .social-links .glass-orb,
.glass-button:hover, .glass-orb:hover,
.button.primary.glass-button:hover, .button.glass-button:hover,
.details-toggle.glass-button:hover, .other-projects-collapse.glass-button:hover,
.language-switch.glass-button:hover,
.software-logos .glass-orb:hover, .social-links .glass-orb:hover {
  color: #27475b;
  background: linear-gradient(155deg, #ffffffdc, #edf5fabb);
  border: 1px solid #dce7ef;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px #23344808;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  text-shadow: none;
}
.glass-button::before, .glass-button::after,
.glass-orb::before, .glass-orb::after { content: none; }
.button.primary.glass-button {
  background: linear-gradient(145deg, #edf9ffed, #d5edfad9);
  border-color: #c4e2f2;
  color: #155777;
}
.project-card .details-toggle.glass-button,
.project-card:hover .cta-highlight,
.project-card:focus-within .cta-highlight {
  color: var(--accent-color);
  background: var(--accent-tint);
  border-color: transparent;
  box-shadow: inset 0 1px 0 #ffffffbc;
}
.project-card .project-kicker,
.case-page .project-kicker,
.case-page .eyebrow { color: var(--accent-color); }
.case-page .case-hero h1 { color: var(--accent-color); background: none; }
.case-page .button.primary.glass-button { color: var(--accent-color); background: var(--accent-tint); border-color: var(--border); }
.tag-row span { background: #f0f3f6; border-color: transparent; color: #52616e; font-weight: 500; }
[data-project-theme] .tag-row span { background: var(--accent-tint); color: var(--accent-color); }
.skill-panel:nth-child(1) { --accent-color: #505a66; }
.skill-panel:nth-child(2) { --accent-color: #1d7d70; }
.skill-panel:nth-child(3) { --accent-color: #a16e22; }
.skill-panel:nth-child(4) { --accent-color: #237fa5; }
.skill-panel.glass-card { border-top: 1px solid var(--border); }
.school-name { color: var(--text); }
.school-logo-card img { filter: none; }
.language-list > span { background: #fff; border-color: var(--border); }
.language-list em { color: #556270; }
.project-media.warm::after, .project-media.rope::after, .project-media.terrain::after { content: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; }

/* Motion is reserved for entry, media, and actionable controls. */
.reveal { transform: translateY(12px); transition: opacity 420ms ease var(--reveal-delay, 0ms), transform 420ms ease var(--reveal-delay, 0ms); }
.reveal.is-visible { transform: translateY(0); }
.hero-copy.reveal.is-visible { transform: translateY(-18px); }
.rope-diagram i, .slider-stack span::after, .terrain-visual { animation: none; }
.rope-diagram, .slider-stack { display: none; }
:is(.skill-panel, .workflow-item, .education-card, .school-logo-card):hover { transform: none; box-shadow: none; }
.project-card, .other-project-card { transition: transform 200ms ease, border-color 200ms ease; }
.project-card:hover { transform: none; border-color: var(--border); border-top-color: var(--accent-color); box-shadow: 0 8px 24px #23344806; }
.project-card:hover .project-media img { transform: none; }
.hero-portrait:hover .portrait-cutout { transform: translateX(-50%); filter: drop-shadow(0 30px 36px #242c2633) saturate(0.98) contrast(1.02); }
.hero-portrait:hover .portrait-orbit { box-shadow: 0 24px 60px #42add31c; }
.button, .details-toggle, .glass-button, .glass-orb { transition: transform 200ms ease, color 200ms ease, border-color 200ms ease; }
.scroll-more, .scroll-more i, .other-projects-scroll-hint i { animation-iteration-count: 3; animation-play-state: paused; }
.scroll-more.is-hint-visible, .scroll-more.is-hint-visible i, .other-projects-scroll-hint.is-hint-visible i { animation-play-state: running; }
.scroll-more { color: var(--accent-color); }
.project-card .cta-highlight::before {
  content: "";
  position: absolute;
  inset: -55% auto -55% -48%;
  width: 34%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #ffffffba, transparent);
  transform: skewX(-18deg);
  opacity: 0;
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
}
.project-card:hover .cta-highlight::before { animation: none; }
.project-card:focus-within .cta-highlight::before { animation: ctaSweep 650ms ease; }
.workflow-item::before { transform-origin: left; transform: scaleX(0); transition: transform 420ms ease var(--reveal-delay, 0ms); }
.workflow-item.is-visible::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { transform: translateY(-3px); border-color: var(--accent-color); }
  .project-card:hover .project-media img { transform: scale(1.015); }
  .project-card:hover .cta-highlight::before { animation: ctaSweep 650ms ease; }
  .hero-portrait:hover .portrait-cutout { transform: translateX(-50%) translateY(-4px) scale(1.015); }
  .contact-link:hover strong { color: var(--accent-color); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .project-card:hover, .project-card:hover .project-media img { transform: none; }
  .project-card:hover .cta-highlight::before, .project-card:focus-within .cta-highlight::before { animation: none; }
  .hero-portrait:hover .portrait-cutout { transform: translateX(-50%); }
  .scroll-more, .scroll-more i, .other-projects-scroll-hint i { animation: none; }
}

/* Shared grid, media windows, and the quieter supporting sections. */
.section-shell, .split-section { width: min(1320px, calc(100% - 64px)); }
.site-header.glass-surface { width: min(1320px, calc(100% - 64px)); }
.hero-name { font-size: 96px; }
.intro-line { font-size: 80px; }
.role { font-size: 36px; }
.section-shell:not(.hero) { padding-top: 72px; padding-bottom: 72px; }
.section-shell:not(.hero), .split-section { content-visibility: visible; contain-intrinsic-size: none; }
.section-shell[id] { scroll-margin-top: 96px; }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 16px; font-size: 40px; line-height: 1.15; }
.section-heading-wide { align-items: start; gap: 32px; }
.section-heading-wide .section-note { margin: 28px 0 0; }
.project-grid { gap: 32px; }
.project-card { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 0; }
.project-media { width: 100%; min-height: 0; height: auto; aspect-ratio: 16 / 9; align-self: center; background: #11191f; }
.project-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hover-video { object-fit: contain; background: #11191f; }
.project-body { display: flex; flex-direction: column; align-self: stretch; padding: 32px; min-width: 0; }
.project-body h3 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
.project-body p { margin-bottom: 12px; }
.project-body ul { margin: 0 0 12px; }
.project-body .tag-row { margin-top: auto; padding-top: 16px; margin-bottom: 16px; }
.project-body .details-toggle { align-self: start; width: max-content; max-width: 100%; padding: 12px 20px; }
.project-card.environment-showcase { margin-top: 32px; }
.skill-grid { gap: 24px; }
.skill-panel { display: grid; grid-template-rows: 40px auto 1fr auto; gap: 16px; padding: 28px; }
.skill-panel .skill-logo { width: 36px; height: 36px; margin: 0; }
.skill-panel h3 { margin: 0; font-size: 24px; }
.skill-panel p { margin: 0; }
.skill-panel .tag-row { margin: 0; align-self: end; }
@supports (grid-template-rows: subgrid) {
  .skill-panel { grid-row: span 4; grid-template-rows: subgrid; }
  .skill-panel .tag-row { align-self: start; }
}
.skill-panel::before, .skill-panel::after { content: none; }

.workflow-grid { gap: 32px; }
.workflow-item { padding: 0; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.workflow-item > span { display: block; color: #237fa5; width: 32px; margin-bottom: 24px; }
.workflow-item::before { top: 8px; left: 40px; right: -20px; height: 1px; background: var(--border); }
.workflow-item:last-child::before, .workflow-item::after { content: none; }
.workflow-item h3 { font-size: 22px; line-height: 1.3; min-height: 58px; margin-bottom: 16px; }
.workflow-item p { margin: 0; }

.split-section { gap: 64px; border: 0; border-top: 1px solid var(--border); }
.school-logo-card { display: flex; flex-direction: column; align-items: start; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.school-logo-card::before, .school-logo-card::after, .education-card::before, .education-card::after { content: none; }
.school-logo-card .eyebrow { margin-bottom: 24px; }
.school-logo-card img { width: 144px; height: 144px; object-fit: contain; }
.school-lockup { margin-top: 24px; padding: 0; border: 0; }
.school-lockup h2 { font-size: 32px; margin: 0 0 12px; }
.school-name { font-size: 22px; line-height: 1.45; max-width: 480px; }
.education-card { min-height: 0; padding: 0; justify-content: start; border: 0; background: none; box-shadow: none; }
.education-card h3 { font-size: 28px; line-height: 1.25; margin: 16px 0; }
.education-card .project-kicker { margin-bottom: 0; }
.language-list { margin-top: 24px; gap: 0; }
.language-list h4 { margin-bottom: 8px; }
.language-list > span { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 12px 0; }

.contact-section { border-top: 1px solid var(--border); }
.contact-panel { padding: 0; gap: 40px 64px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.contact-lead { align-self: start; }
.contact-intent { font-size: 20px; line-height: 1.65; }
.contact-intent strong { display: block; color: var(--text); margin-bottom: 12px; }
.contact-grid { grid-template-columns: 1fr; gap: 0; }
.contact-link { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 20px; min-height: 72px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.contact-link-copy { display: grid; gap: 6px; min-width: 0; }
.contact-link strong { color: var(--text); font-size: 16px; }
.contact-icon { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.contact-panel .contact-actions { grid-column: 2; margin: 0; align-items: start; }
.case-page .case-hero { column-gap: 64px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.case-page .case-hero h1 { font-size: 72px; line-height: 1.05; overflow-wrap: anywhere; }
.case-system-card > div:not(.case-image-stack):not(.case-gallery) { padding: 32px; }
.case-system-card h3 { font-size: 24px; }
.case-stat, .case-note { border-radius: 8px; }

@media (max-width: 1100px) {
  .hero-name { font-size: 72px; }
  .intro-line { font-size: 64px; }
  .project-body { padding: 24px; }
  .case-page .case-hero h1 { font-size: 56px; }
  .split-section, .contact-panel { column-gap: 32px; }
}
@media (max-width: 900px) {
  .project-card, .case-page .case-hero, .split-section, .contact-panel { grid-template-columns: 1fr; }
  .project-card .project-media, .project-card.environment-showcase .project-media { order: 0; }
  .project-body .tag-row { margin-top: 0; }
  .section-heading-wide { grid-template-columns: 1fr; gap: 8px; }
  .section-heading-wide .section-note { margin: 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-item { padding-left: 48px; }
  .workflow-item > span { position: absolute; left: 0; top: 0; }
  .workflow-item::before { top: 32px; bottom: -24px; left: 9px; right: auto; width: 1px; height: auto; }
  .workflow-item::before { transform-origin: top; transform: scaleY(0); }
  .workflow-item.is-visible::before { transform: scaleY(1); }
  .workflow-item h3 { min-height: 0; margin-bottom: 12px; }
  .education-brand { margin-bottom: 16px; }
  .contact-panel .contact-actions { grid-column: 1; }
  .case-page .case-hero { min-height: auto; padding-top: 64px; }
}
@media (max-width: 600px) {
  .hero-name { font-size: 56px; }
  .intro-line { font-size: 48px; }
  .role { font-size: 24px; }
  .section-shell, .split-section, .site-header.glass-surface { width: calc(100% - 40px); }
  .section-shell:not(.hero) { padding-top: 48px; padding-bottom: 48px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 28px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-panel { padding: 24px; grid-template-rows: 40px auto auto auto; }
  .skill-panel h3, .project-body h3 { font-size: 22px; }
  .project-grid { gap: 24px; }
  .project-body { padding: 24px; }
  .school-logo-card img { width: 112px; height: 112px; }
  .education-card h3 { font-size: 24px; }
  .school-name { font-size: 20px; }
  .contact-intent { font-size: 18px; }
  .contact-panel { gap: 24px; }
  .contact-actions { gap: 12px; }
  .case-page .case-hero h1 { font-size: 40px; }
  .case-system-card > div:not(.case-image-stack):not(.case-gallery) { padding: 24px; }
}

/* Reference-led work gallery: large media, compact captions, shallow surfaces.
   References: pentagram.com/work and linear.app/now/behind-the-latest-design-refresh. */
body { background: #f8fafb; }
.section-heading-wide { border-top: 1px solid #dce2e8; padding-top: 24px; }
.section-heading-wide .section-note { font-size: 14px; line-height: 1.7; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.project-card.glass-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e8ec;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
}
.project-grid > .project-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
  background: #1c211f;
  border-color: #1c211f;
  --accent-color: #e8c27d;
  --accent-tint: #2b3029;
}
.project-grid > .project-card:first-child .project-body { justify-content: center; }
.project-grid > .project-card:first-child h3 { color: #fff; font-size: 32px; }
.project-grid > .project-card:first-child :is(p,li) { color: #c3cdca; }
.project-grid > .project-card:first-child .tag-row { margin-top: 8px; }
.project-card .project-media {
  order: 0;
  align-self: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
}
.project-feature:nth-child(even) .project-media { order: 0; }
.project-grid > .project-card:first-child .project-media { align-self: center; }
.project-body { flex: 1; padding: 28px; }
.project-body h3 { font-size: 26px; margin-bottom: 16px; font-weight: 750; }
.project-body .project-kicker { font-size: 11px; line-height: 1.7; margin-bottom: 12px; }
.project-body :is(p,li) { font-size: 15px; line-height: 1.65; }
.project-body ul { margin-top: 2px; margin-bottom: 12px; }
.project-body li + li { margin-top: 5px; }
.project-body .tag-row { padding-top: 12px; margin-bottom: 20px; }
.project-card .details-toggle.glass-button,
.project-card:hover .cta-highlight,
.project-card:focus-within .cta-highlight {
  min-height: 40px;
  padding: 8px 0;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--accent-color);
}
.project-card .details-toggle::after {
  content: "\2197";
  position: static;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
  font-size: 22px;
  line-height: 1;
  transition: transform 200ms ease;
}
.project-card.environment-showcase {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  background: #f1f4f3;
  border-color: #e0e6e3;
}
.project-card.environment-showcase .project-media { order: 2; }
.project-card.environment-showcase .project-body { align-self: center; }
.project-card.environment-showcase .tag-row { margin-top: 8px; }
.project-card.environment-showcase h3 { font-size: 32px; }
.project-card.glass-card:hover { box-shadow: none; }
.skill-grid { column-gap: 24px; row-gap: 20px; }
.skill-panel.glass-card {
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-row: span 3;
  column-gap: 20px;
  padding: 28px;
  border: 1px solid #e2e8e7;
  box-shadow: none;
  background: #f0f3f5;
}
.skill-panel:nth-child(2) { background: #edf5f1; }
.skill-panel:nth-child(3) { background: #f7f3ec; }
.skill-panel:nth-child(4) { background: #eff1f8; }
.skill-panel .skill-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  width: 56px;
  height: 56px;
  padding: 11px;
  border: 1px solid #ffffffd9;
  border-radius: 50%;
  background: #ffffffad;
  opacity: 0.85;
}
.skill-panel h3 { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1.3; }
.skill-panel p { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.7; }
.skill-panel .tag-row { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-top: 4px; }
.skill-panel .tag-row span { border: 1px solid #ffffffc9; background: #ffffff8a; }
@supports (grid-template-rows: subgrid) {
  .skill-panel.glass-card { grid-template-rows: subgrid; }
}
.other-projects { margin-top: 64px; }
.other-project-card.glass-card { border: 0; box-shadow: none; background: transparent; gap: 24px; }
.other-project-media { border-radius: 8px; }
.other-project-copy { padding: 16px 0; }
.case-stat.glass-card { border: 0; border-left: 1px solid #ccd7df; border-radius: 0; box-shadow: none; background: transparent; }
.case-system-card.glass-card { border: 0; box-shadow: none; background: var(--accent-tint); }
.case-system-card > img { align-self: center; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #e7ecef; }
.case-system-card h3 { font-size: 26px; line-height: 1.25; }
.case-gallery-thumb { border-radius: 4px; }
.school-logo-card img { width: 128px; height: 128px; }
.school-lockup h2 { font-size: 40px; }
.school-name { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .details-toggle::after { transform: translate(3px, -3px); }
  .project-card:hover { transform: translateY(-3px); }
  .project-card:hover .project-media img { transform: scale(1.025); }
}
@media (max-width: 1100px) {
  .project-grid > .project-card:first-child { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .project-body { padding: 24px; }
  .project-body h3 { font-size: 24px; }
  .project-grid > .project-card:first-child h3, .project-card.environment-showcase h3 { font-size: 28px; }
}
@media (max-width: 900px) {
  .project-grid > .project-card:first-child, .project-card.environment-showcase { display: flex; }
  .project-card.environment-showcase .project-media { order: 0; }
  .project-grid > .project-card:first-child .project-body { justify-content: start; }
  .project-card.environment-showcase .project-body { align-self: stretch; }
  .project-card.environment-showcase .tag-row { margin-top: 0; }
  .project-body .tag-row { margin-top: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .skill-panel.glass-card { padding: 24px; }
}
@media (max-width: 600px) {
  .project-grid { gap: 24px; }
  .project-body h3 { font-size: 24px; }
  .project-grid > .project-card:first-child h3, .project-card.environment-showcase h3 { font-size: 28px; }
  .project-body .details-toggle { padding: 8px 0; }
  .skill-panel.glass-card { column-gap: 16px; }
  .skill-panel h3 { font-size: 21px; }
  .case-system-card h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover, .project-card:hover .project-media img, .project-card:hover .details-toggle::after { transform: none; }
}

/* One floating glass surface, with icon-only actions and accessible labels. */
.floating-dock {
  position: fixed;
  z-index: 180;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 280ms;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 40px);
  height: var(--dock-height, 60px);
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #ffffffbc;
  border-radius: 999px;
  background: linear-gradient(155deg, #ffffffcc, #f0f7fa80);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 #ffffffed, inset 0 -1px 0 #8297a826, 0 8px 28px #1b34451f;
}
.software-label {
  flex: 0 0 auto;
  margin-right: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.software-link { position: relative; display: block; flex: 0 0 auto; border-radius: 50%; text-decoration: none; }
.social-links .glass-orb { position: relative; overflow: visible; }
.social-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 7px 10px;
  border-radius: 6px;
  background: #24313b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.social-links a:focus-visible .social-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .social-links a:hover .social-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .social-tooltip { transition: none; }
}
.software-link:focus-visible { outline: 2px solid #237fa5; outline-offset: 4px; }
.software-tooltip {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 14px);
  left: 0;
  width: 260px;
  padding: 16px;
  border: 1px solid #dde6ee;
  border-radius: 8px;
  background: #fffffff5;
  box-shadow: 0 8px 24px #23344818;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
.software-link:nth-last-child(-n+2) .software-tooltip { left: auto; right: 0; }
.software-tooltip strong { font-size: 14px; font-weight: 600; }
.software-tooltip p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.software-link:focus-visible .software-tooltip { opacity: 1; visibility: visible; transform: none; }
.skill-panel[id] { scroll-margin-top: 110px; }
.skill-panel:target { border-color: var(--accent-color); }
@media (hover: hover) {
  .software-link:hover .software-tooltip { opacity: 1; visibility: visible; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .software-tooltip { transition: none; transform: none; }
}
.floating-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 1px 0 0 #ffffff99, inset -1px 0 0 #ffffff59;
  pointer-events: none;
}
.floating-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.dock-action {
  position: relative;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #52616d;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, background-color 200ms ease;
}
.dock-symbol {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--dock-icon) center / contain no-repeat;
  -webkit-mask: var(--dock-icon) center / contain no-repeat;
}
.dock-symbol[data-icon="mail"] { --dock-icon: url("assets/icons/dock-mail.svg"); }
.dock-symbol[data-icon="linkedin"] { --dock-icon: url("assets/icons/dock-linkedin.svg"); }
.dock-symbol[data-icon="up"] { --dock-icon: url("assets/icons/arrow-up.svg"); width: 24px; height: 24px; }
.dock-cv { display: block; width: 24px; height: 24px; font: 700 16px/24px Inter, system-ui, sans-serif; color: inherit; text-align: center; }
.dock-action:disabled { opacity: 0.3; cursor: default; }
.dock-divider { flex: 0 0 1px; width: 1px; height: 24px; margin: 0 4px; background: #8395a13d; }
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 7px 10px;
  border-radius: 6px;
  background: #24313b;
  color: #fff;
  font: 500 12px/1.4 Inter, system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}
.dock-action:focus-visible .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
.bottom-progressive-blur {
  position: fixed;
  z-index: 170;
  inset: auto 0 0;
  height: calc(112px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.bottom-progressive-blur.is-visible { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }
.bottom-progressive-blur > span {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--bottom-blur));
  -webkit-backdrop-filter: blur(var(--bottom-blur));
  mask-image: linear-gradient(to bottom, transparent var(--fade-start), #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--fade-start), #000 100%);
}
.bottom-progressive-blur > span:nth-child(1) { --bottom-blur: 2px; --fade-start: 0%; }
.bottom-progressive-blur > span:nth-child(2) { --bottom-blur: 4px; --fade-start: 30%; }
.bottom-progressive-blur > span:nth-child(3) { --bottom-blur: 8px; --fade-start: 55%; }
@media (hover: hover) and (pointer: fine) {
  .dock-action:not(:disabled):hover { transform: translateY(-4px); background: #ffffff8c; }
  .dock-action:hover .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 600px) {
  .floating-dock { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 0 10px; }
  .software-logos { gap: 10px; flex-wrap: nowrap; }
  .software-logos .glass-orb { flex: 0 0 48px; width: 48px; height: 48px; }
  .software-label { margin-right: 2px; font-size: 13px; }
  .dock-action { flex-basis: 44px; width: 44px; height: 44px; }
  .bottom-progressive-blur { height: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .dock-action:not(:disabled):hover { transform: none; }
  .floating-dock, .floating-dock.is-visible,
  .bottom-progressive-blur, .bottom-progressive-blur.is-visible { transition: none; }
  .floating-dock, .floating-dock.is-visible { transform: translateX(-50%); }
}
@media print {
  .floating-dock, .bottom-progressive-blur { display: none; }
  body { padding-bottom: 0; }
}
