/* Portfolio studio theme. Existing application components retain their DOM contracts. */
html { scroll-padding-top: 100px; }
html:has(.portfolio-design) { color-scheme: dark; background: #02060e; }
body.portfolio-design {
  --fluorescent-blue: #00d9ff;
  --electric-blue: #2563ff;
  --navy-blue: #071a38;
  --pure-white: #ffffff;
  --primary-blue: var(--fluorescent-blue);
  --bayern-red: #d99a90;
  --body-bg: linear-gradient(155deg, #02060e 0%, #071a38 58%, #02060e 100%);
  --card-bg: rgba(9, 23, 46, .94);
  --glass-bg: rgba(9, 23, 46, .94);
  --text-dark: #ffffff;
  --text-muted: #b7c7dc;
  --border-color: rgba(255, 255, 255, .12);
  --chat-bg: rgba(5, 15, 33, .98);
  --bot-msg-bg: #112d50;
  /* Quiet surfaces with a fine edge and natural elevation. */
  --glass-fill: rgba(9, 23, 46, .94);
  --glass-fill-strong: rgba(6, 19, 41, .97);
  --glass-sheen: none;
  --glass-border: rgba(255, 255, 255, .12);
  --glass-border-hover: rgba(0, 217, 255, .4);
  --glass-blur: blur(16px) saturate(100%);
  --glass-shadow: 0 12px 32px -12px rgba(0,0,0,.42);
  --glass-shadow-hover: 0 18px 40px -16px rgba(0,0,0,.55);
  /* Legacy tokens consumed by style.css (.glass etc.) */
  --liquid-glass-bg: var(--glass-fill);
  --liquid-glass-blur: var(--glass-blur);
  --liquid-specular-rim: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.25);
  --shadow-glow-blue: 0 0 0 transparent;
  --shadow-glow-accent: 0 0 0 transparent;
  --liquid-border-sheen: none;
  --glass-specular: inset 0 1px 0 rgba(255,255,255,.05);
  --spatial-depth-1: 0 2px 6px rgba(0,0,0,.18), 0 18px 44px -12px rgba(0,0,0,.5);
  --spatial-depth-2: 0 4px 10px rgba(0,0,0,.22), 0 26px 56px -14px rgba(0,0,0,.6);
  --spatial-depth-3: 0 8px 18px rgba(0,0,0,.28), 0 36px 72px -16px rgba(0,0,0,.7);
  background: var(--body-bg);
  color: var(--text-dark);
  font-family: var(--sans);
}
/* A black-to-navy foundation, with blue reserved for details and actions. */
body.portfolio-design::before, body.portfolio-design::after { display: none; }
.portfolio-design ::selection { background: var(--fluorescent-blue); color: #02060e; }
.portfolio-design a { text-underline-offset: 5px; }
.portfolio-design button, .portfolio-design a { -webkit-tap-highlight-color: rgba(0,217,255,.15); }
.portfolio-design main:not(.main-hero-bleed) { max-width: 1200px; margin: 0 auto; padding: 85px 40px 60px; min-height: calc(100svh - 140px); }
.portfolio-design nav, body.portfolio-design.home-page nav {
  position: fixed;
  inset: 0.85rem 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(36px, calc((100vw - 1380px) / 2));
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  pointer-events: none;
  z-index: 1500;
}
.portfolio-design .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.portfolio-design .nav-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.portfolio-design .nav-brand::after { display: none; }
.brand-monogram {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #315276;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: #ffffff;
  border-radius: 50%;
  background: var(--glass-sheen), rgba(6, 19, 41, .92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.brand-dot { color: var(--fluorescent-blue); }
.portfolio-design .nav-container {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-sheen), rgba(6, 19, 41, .92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 0.42rem 1.4rem 0.42rem 1.8rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.portfolio-design .nav-container:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}
.portfolio-design .nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portfolio-design nav .nav-links a {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: .2px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  display: inline-block;
  transition: color 0.2s ease;
}
.portfolio-design nav .nav-links a:hover {
  color: var(--fluorescent-blue);
}
.portfolio-design nav .nav-links a.active {
  color: var(--fluorescent-blue);
}
.portfolio-design nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--fluorescent-blue);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-design nav .nav-links a:hover::after,
.portfolio-design nav .nav-links a.active::after {
  width: 100%;
}
.portfolio-design .nav-cmd-li {
  display: flex;
  align-items: center;
  margin-left: 0.2rem;
}
.portfolio-design .cmd-trigger-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}
.portfolio-design .cmd-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 217, 255, .4);
  color: #ffffff;
  transform: translateY(-1px);
}
.portfolio-design .cmd-trigger-btn i {
  font-size: 0.85rem;
}
.portfolio-design .cmd-trigger-label {
  display: none !important;
}
.portfolio-design .nav-auth {
  display: flex;
  align-items: center;
  pointer-events: auto;
  margin-left: auto;
}
.portfolio-design .auth-btn-icon {
  background: var(--glass-sheen), rgba(6, 19, 41, .92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.portfolio-design .auth-btn-icon:hover {
  color: var(--fluorescent-blue);
  border-color: var(--fluorescent-blue);
  transform: translateY(-2px);
}
.portfolio-design .nav-auth .auth-btn-icon::after { display: none; }
.portfolio-design .nav-page-title { display: none; }
.portfolio-design footer { max-width: 1360px; margin: 0 auto; padding: 30px 40px; border-top: 1px solid var(--glass-border); background: none; box-shadow: none; display: flex; gap: 24px; justify-content: space-between; align-items: center; text-align: left; }
.portfolio-design footer p { margin: 0; font-size: 11px; color: var(--text-muted); }
.portfolio-design .footer-socials { margin: 0; gap: 20px; }
.portfolio-design .footer-socials a { font-size: 15px; color: var(--text-muted); background: none; border: 0; box-shadow: none; }

/* ---- Shared application surfaces ---- */
.portfolio-design .glass,
.portfolio-design .info-card,
.portfolio-design .arsenal-category,
.portfolio-design .roadmap-card,
.portfolio-design .bio-container,
.portfolio-design .cv-container,
.portfolio-design .project-card,
.portfolio-design .contact-card,
.portfolio-design .auth-card {
  background: var(--glass-sheen), var(--glass-fill) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px;
  box-shadow: var(--glass-shadow) !important;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease !important;
}
.portfolio-design .glass:hover,
.portfolio-design .info-card:hover,
.portfolio-design .arsenal-category:hover,
.portfolio-design .roadmap-card:hover,
.portfolio-design .bio-container:hover,
.portfolio-design .cv-container:hover,
.portfolio-design .project-card:hover,
.portfolio-design .contact-card:hover {
  border-color: var(--glass-border-hover) !important;
  box-shadow: var(--glass-shadow-hover) !important;
}
.portfolio-design .bio-text { width: 100%; max-width: 100%; }

/* Scannable contribution notes shared by all project cards. */
.portfolio-design .project-details { display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border-color); }
.portfolio-design .project-details > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.portfolio-design .project-details dt { color: var(--text-dark); font: 500 10px/1.8 var(--sans); }
.portfolio-design .project-details dd { min-width: 0; margin: 0; color: var(--text-muted); font: 400 12px/1.8 var(--sans); overflow-wrap: anywhere; }
.portfolio-home .project-details { margin-top: 14px; padding-top: 14px; }
.portfolio-home .project-details dd { font-size: 11px; }


/* Chat widget */
.portfolio-design #chat-launcher { width: 52px; height: 52px; bottom: 22px; right: 22px; border: 1px solid rgba(0,217,255,.35); background: #071a38; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.portfolio-design #chat-launcher:hover { background: #112d50; box-shadow: var(--glass-shadow-hover); }
.portfolio-design #chat-container { border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-fill-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.portfolio-design #chat-container .chat-header { background: rgba(255,255,255,.05); border-bottom: 1px solid var(--glass-border); }

.portfolio-design .section-title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -1.7px; }
.portfolio-design .btn.primary,
.portfolio-design .btn-primary,
.portfolio-design .send-message-trigger-btn,
.portfolio-design .auth-submit-btn,
.portfolio-design .chat-page-send-btn {
  background: var(--electric-blue);
  border: 1px solid var(--electric-blue);
  color: var(--pure-white) !important;
  box-shadow: none;
}
.portfolio-design .btn.primary:hover,
.portfolio-design .btn-primary:hover,
.portfolio-design .send-message-trigger-btn:hover,
.portfolio-design .auth-submit-btn:hover,
.portfolio-design .chat-page-send-btn:hover {
  background: #164fe0;
  border-color: #164fe0;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.portfolio-design .btn.secondary, .portfolio-design .btn-ghost, .portfolio-design .btn-github { background: rgba(255,255,255,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #e4efff; border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.portfolio-design .btn.secondary:hover, .portfolio-design .btn-ghost:hover, .portfolio-design .btn-github:hover { background: rgba(255,255,255,.12); border-color: var(--glass-border-hover); }
.portfolio-design .highlight { color: #ffffff; }
.portfolio-design .contact-meta-bar, .portfolio-design .status-pill { background: rgba(0,217,255,.07); color: #cdefff; border: 1px solid rgba(0,217,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.portfolio-design .form-control { color-scheme: dark; background: rgba(255,255,255,.05); border-color: var(--glass-border); }
.portfolio-design .form-control:focus { background: rgba(255,255,255,.08); border-color: var(--glass-border-hover); }
.portfolio-design .auth-input:focus, .portfolio-design .chat-page-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0,217,255,.15); }

/* Keep technical identifiers within narrow cards. */
.architecture-page code { overflow-wrap: anywhere; }
.architecture-page .arch-grid > * { min-width: 0; }
/* Accessible replacement for the text-only inference diagram. */
.inference-pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 32px; padding-left: 22px; }
.inference-pipeline li { padding-left: 6px; }
.inference-pipeline li::marker { color: var(--fluorescent-blue); }
.inference-pipeline strong { color: var(--text-dark); font-size: 14px; }
.inference-pipeline p { color: var(--text-muted); font-size: 12px; line-height: 1.8; margin-top: 8px; }

/* Command palette */
.portfolio-design .cmd-palette-window { background: var(--glass-fill-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.portfolio-design .cmd-palette-search, .portfolio-design .cmd-palette-footer { background: rgba(255,255,255,.04); }
.portfolio-design .cmd-item.selected { background: rgba(0,217,255,.10); }

/* Opaque fallback where backdrop-filter is unsupported, so text stays legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.portfolio-design { --glass-fill: #09172e; --glass-fill-strong: #02060e; }
}
.portfolio-home { overflow: clip; }
.portfolio-design.navigation-open { overflow: hidden; }
.portfolio-home p, .portfolio-home h1, .portfolio-home h2, .portfolio-home h3 { margin: 0; }
.portfolio-home a { text-decoration: none; }
.intro-section { position: relative; padding: 85px 60px 0; max-width: 1480px; margin: 0 auto; isolation: isolate; }
.intro-grid { position: absolute; inset: 55px 0 0; z-index: -2; opacity: .2; background-image: linear-gradient(rgba(120,160,215,.17) 1px, transparent 1px), linear-gradient(90deg,rgba(120,160,215,.17) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg,transparent,black 70%,transparent); }
.intro-orb { position: absolute; width: 650px; height: 650px; right: -70px; top: 70px; z-index: -1; background: radial-gradient(ellipse,rgba(44,101,172,.18),transparent 68%); }
.intro-topline, .intro-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 9px/1.6 var(--mono); letter-spacing: 1.2px; color: #8c9ab1; }
.intro-topline { padding-bottom: 28px; border-bottom: 1px solid var(--border-color); }
.tiny-star { font-size: 18px; color: #ffffff; margin-left: 12px; vertical-align: middle; }
.intro-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 5%; padding: 62px 0 65px; min-height: 620px; }
.intro-copy { position: relative; z-index: 2; }
.portfolio-home .availability { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; color: #b8c5d8; margin-bottom: 26px; }
.availability > span, .note-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d9ff; box-shadow: 0 0 10px rgba(0,217,255,.15); }
.portfolio-home h1 { font-size: clamp(44px, 5.3vw, 78px); line-height: 1.11; letter-spacing: -4px; font-weight: 500; }
.intro-line { display: block; }
.portfolio-home em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; color: var(--fluorescent-blue); font-style: italic; letter-spacing: -.04em; }
.portfolio-home .intro-description { max-width: 415px; font-size: 13px; line-height: 1.95; color: #a6aebd; margin-top: 24px; }
.intro-description strong { color: #eee; font-weight: 500; }
.intro-actions { display: flex; gap: 26px; align-items: center; margin-top: 30px; }
.studio-button { display: inline-flex; align-items: center; gap: 30px; min-height: 48px; padding: 14px 22px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s; }
.portfolio-home .button-fill { color: var(--pure-white); background: var(--electric-blue); }
.portfolio-home .button-fill:hover { background: #164fe0; transform: translateY(-3px); }
.studio-button > span { font-size: 18px; }
.portfolio-home .studio-text-link { display: inline-flex; gap: 20px; align-items: center; color: #ffffff; font-size: 11px; padding: 8px 0; border-bottom: 1px solid #315276; transition: color .2s; white-space: nowrap; }
.studio-text-link:hover { color: #ffffff; }
.intro-socials { display: flex; gap: 24px; margin-top: 36px; }
.intro-socials a { font-size: 10px; color: #b7c7dc; }
.intro-socials a:hover { color: #ffffff; }
.intro-socials a span { margin-left: 4px; }
.intro-art { position: relative; width: 100%; aspect-ratio: 1; max-width: 480px; justify-self: end; perspective: 1000px; }
.portrait-frame { position: absolute; inset: 10% 2% 6% 8%; border: 1px solid #334862; border-radius: 3px; background: #0c1423; transform: rotate(-5deg); overflow: hidden; box-shadow: 0 15px 60px rgba(18,66,133,.15); }
.portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0b1424 0%, transparent 32%); pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 71% 50%; filter: saturate(.75); }
.portrait-caption { position: absolute; bottom: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; z-index: 2; color: #d0e3f8; font: 8px var(--mono); letter-spacing: 1.1px; }
.portrait-caption > span:last-child { font: 20px var(--sans); }
.frame-corner { position: absolute; z-index: 2; width: 24px; height: 24px; border-color: #ffffff; border-style: solid; }
.corner-tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.corner-br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.portrait-orbit { position: absolute; border: 1px solid rgba(100,154,224,.17); border-radius: 50%; }
.orbit-one { inset: 0 -8%; transform: rotate(-20deg) scaleY(.78); }
.orbit-two { inset: -3% 5%; transform: rotate(30deg) scaleX(1.12); border-style: dashed; opacity: .6; }
.orbit-one::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #91caff; left: 4%; top: 29%; box-shadow: 0 0 18px #71aaff; }
.floating-note { position: absolute; z-index: 4; border: 1px solid #344459; background: #101b2a; box-shadow: 0 10px 40px #0004; color: #c8d6e7; border-radius: 5px; }
.note-top { display: flex; align-items: center; gap: 13px; top: 7%; right: -4%; padding: 13px 20px; font-size: 10px; line-height: 1.7; transform: rotate(4deg); }
.note-top strong { color: #ffffff; font-weight: 500; }
.note-mark { font: 22px var(--mono); color: #87bbfc; }
.note-bottom { bottom: 1%; left: -1%; display: flex; align-items: center; gap: 10px; padding: 13px 18px; font: 9px var(--mono); transform: rotate(-2deg); }
.art-coordinate { position: absolute; bottom: -23px; right: 0; font: 8px var(--mono); letter-spacing: 1.2px; color: #8294ae; }
.intro-bottom { border-top: 1px solid var(--border-color); padding: 23px 0; font-size: 8px; }
.intro-bottom b { color: #6b86a8; padding: 0 8px; }
.scroll-invitation { display: inline-flex; align-items: center; gap: 14px; color: #b3c1d5; }
.scroll-line { height: 26px; width: 14px; border: 1px solid #486384; border-radius: 8px; display: inline-block; position: relative; }
.scroll-line::after { content: ''; height: 5px; width: 2px; background: #acd9ff; position: absolute; top: 5px; left: 5px; }
.discipline-strip { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: #051126; }
.discipline-strip > div { display: flex; align-items: center; justify-content: space-around; gap: 24px; padding: 25px 40px; max-width: 1360px; margin: 0 auto; }
.discipline-strip span { color: #c3d3e9; font-size: clamp(11px, 1.2vw, 16px); white-space: nowrap; }
.discipline-strip span[aria-hidden] { font-size: 22px; color: var(--fluorescent-blue); }
.studio-section { max-width: 1360px; margin: 0 auto; padding: 100px 60px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.portfolio-home .eyebrow { color: #a9c4e6; font: 9px/1.6 var(--mono); letter-spacing: 1.4px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.portfolio-home h2 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 400; line-height: 1.12; letter-spacing: -2.6px; }
.section-heading > p { color: #b7c7dc; font-size: 11px; line-height: 1.9; padding-bottom: 5px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px 30px; }
.work-card { min-width: 0; }
.work-card:nth-child(even) { margin-top: 65px; }
.work-visual { display: block; height: 350px; position: relative; overflow: hidden; border: 1px solid var(--border-color); border-radius: 5px; isolation: isolate; }
.work-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#b0cfff06 1px,transparent 1px),linear-gradient(90deg,#b0cfff06 1px,transparent 1px); background-size: 24px 24px; z-index: -1; }
.visual-index { position: absolute; top: 22px; left: 24px; font: 8px var(--mono); color: #bdd0e9; letter-spacing: 1px; }
.visual-open { position: absolute; bottom: 20px; right: 20px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b8d3f050; border-radius: 50%; color: #ffffff; font-size: 20px; transition: background .2s, color .2s; }
.work-visual:hover .visual-open { background: var(--electric-blue); color: #101724; }
.visual-campus { background: #071a38; }
.campus-scene { position: absolute; inset: 55px 16px 25px; }
.campus-scene svg { display: block; width: 100%; height: 100%; }
.campus-scene text { font: 10px var(--mono); letter-spacing: .4px; }
.campus-packet { fill: none; stroke: var(--fluorescent-blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 96; stroke-dashoffset: 100; opacity: 0; }
.campus-uplink-packet { stroke-dasharray: 12 88; }
.campus-led { opacity: .7; transform-box: fill-box; transform-origin: center; }
.document-scene { width: 250px; height: 230px; position: absolute; top: 75px; left: calc(50% - 125px); transform: rotate(-7deg); transition: transform .5s; }
.document-sheet { position: absolute; width: 198px; height: 230px; padding: 20px; border-radius: 4px; border: 1px solid #8398b9; background: #d6e3f5; box-shadow: 0 20px 40px #0005; }
.sheet-back { left: 32px; top: -2px; transform: rotate(12deg); background: #7a9dc7; border-color: #9bb5d4; }
.sheet-front { left: 10px; color: #172c49; }
.document-glyph { color: #2f5a88; font-size: 26px; position: absolute; right: 17px; top: 14px; }
.document-sheet strong { display: block; font-size: 16px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; margin: 28px 0 18px; }
.document-line { display: block; height: 3px; border-radius: 2px; background: #879ebc; margin: 8px 0; width: 100%; }
.document-line.short { width: 70%; }
.document-footer { position: absolute; bottom: 18px; font: 5px var(--mono); letter-spacing: .8px; }
.scene-chip { position: absolute; bottom: -13px; right: -25px; background: #14273f; color: #d6e5f9; padding: 12px 16px; border: 1px solid #506d94; border-radius: 4px; font: 8px var(--mono); box-shadow: 0 8px 25px #0005; transform: rotate(7deg); }
.scene-chip span { color: #7eb3e3; padding: 0 4px; }
.work-visual:hover .document-scene { transform: rotate(-3deg) translateY(-7px); }
.visual-school { background: #092344; }
.school-scene { display: flex; position: absolute; width: 330px; height: 215px; top: 95px; left: calc(50% - 165px); background: #e5f1ff; border: 1px solid #5a82af; border-radius: 6px; transform: perspective(800px) rotateY(-12deg) rotateX(8deg) rotate(-4deg); box-shadow: 0 25px 45px #0005; overflow: hidden; transition: transform .5s; }
.school-sidebar { width: 48px; padding: 15px 12px; background: #071a38; }
.school-logo { font: italic 23px Georgia,serif; color: #ffffff; }
.school-sidebar i { display: block; height: 4px; margin-top: 21px; background: #74a3df; width: 19px; }
.school-dashboard { padding: 18px; flex: 1; }
.school-dashboard > p { color: #0a2a53; font-size: 12px; font-weight: 600; }
.school-stats { display: flex; gap: 8px; margin-top: 14px; }
.school-stats > span { flex: 1; border: 1px solid #a3bedf; color: #315b88; font-size: 6px; padding: 7px; border-radius: 3px; }
.school-stats b { display: block; color: #174fc1; font-size: 12px; margin-top: 6px; letter-spacing: 2px; }
.school-chart { display: flex; height: 58px; gap: 14px; align-items: end; border-bottom: 1px solid #a3bedf; padding: 0 14px; margin: 12px 0; }
.school-chart i { flex: 1; background: #2563ff; height: 65%; border-radius: 2px 2px 0 0; }
.school-chart i:nth-child(2n) { height: 90%; background: #008cbd; }
.school-chart i:nth-child(3n) { height: 50%; }
.school-row { display: block; height: 3px; background: #a3bedf; margin-top: 7px; width: 85%; }
.school-row:last-child { width: 55%; }
.work-visual:hover .school-scene { transform: perspective(800px) rotateY(-5deg) rotateX(3deg) rotate(-2deg) translateY(-7px); }
.visual-network { background: #08172e; }
.transfer-scene { display: flex; justify-content: center; align-items: center; position: absolute; inset: 90px 45px 70px; }
.transfer-node { width: 85px; height: 90px; border-radius: 12px; border: 1px solid #315b88; background: #102e54; box-shadow: 0 20px 30px #0004; display: flex; align-items: center; justify-content: center; flex-direction: column; transform: rotate(-6deg); z-index: 1; }
.transfer-node > span { color: #ffffff; font: 35px Georgia,serif; }
.transfer-node small { color: #b9d5fa; font: 7px var(--mono); letter-spacing: 1px; margin-top: 7px; }
.transfer-node:nth-of-type(3) { transform: rotate(6deg); }
.transfer-link { flex: 1; max-width: 100px; position: relative; height: 1px; background: #2563ff; }
.transfer-link > span { position: absolute; top: -25px; width: 100%; text-align: center; color: #b9d5fa; font: 8px var(--mono); }
.transfer-link i { position: absolute; top: -2px; left: 20%; width: 5px; height: 5px; background: var(--fluorescent-blue); box-shadow: none; }
.transfer-link i:last-child { left: 65%; }
.transfer-status { position: absolute; bottom: -22px; color: #b9d5fa; font: 8px var(--mono); display: flex; gap: 8px; align-items: center; }
.transfer-status > span { width: 4px; height: 4px; border-radius: 50%; background: #00d9ff; }
.visual-goat { background: #06162b; }
.goat-scene { position: absolute; width: 290px; height: 240px; top: 70px; left: calc(50% - 145px); display: grid; place-items: center; }
.goat-orbit { width: 210px; height: 175px; border: 1px solid #537897; border-radius: 50%; transform: rotate(-23deg); position: absolute; }
.goat-orbit::after { content: ''; position: absolute; inset: -25px; border: 1px dashed #31506d; border-radius: 50%; }
.goat-core { color: #d4eaff; font: italic 67px 'Instrument Serif',Georgia,serif; width: 100px; height: 110px; background: #112e50; border: 1px solid #315b88; border-radius: 25px; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 16px 32px #0004; transform: rotate(-8deg); }
.goat-core span { font: 6px var(--mono); letter-spacing: 2px; margin-top: -3px; }
.goat-label { font: 8px var(--mono); color: #bcd6f0; padding: 8px 13px; background: #14263c; border: 1px solid #486786; border-radius: 4px; position: absolute; }
.label-one { top: 17px; left: 17px; transform: rotate(-8deg); }
.label-two { top: 82px; right: -4px; transform: rotate(7deg); }
.label-three { bottom: 8px; left: 35px; transform: rotate(3deg); }
.work-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.portfolio-home .work-category { font: 8px var(--mono); color: #9cb5d5; letter-spacing: .7px; margin-bottom: 9px; }
.work-caption h3 { font-size: 18px; font-weight: 500; letter-spacing: -.4px; }
.work-caption > span { color: var(--fluorescent-blue); font-size: 21px; padding-top: 15px; }
.portfolio-home .work-description { margin-top: 10px; color: #b7c7dc; font-size: 11px; line-height: 1.9; max-width: 95%; }
.portfolio-home .work-note { color: #9cb5d5; font: 9px/1.8 var(--mono); margin-top: 38px; }
.about-studio { background: #07162c; border-block: 1px solid var(--border-color); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-heading h2 { margin-top: 32px; }
.about-asterisk { display: inline-block; font-size: 120px; color: var(--fluorescent-blue); line-height: 1.2; margin: 32px 0 -15px; }
.portfolio-home .about-lead { font-size: 25px; line-height: 1.5; letter-spacing: -.5px; color: #ffffff; margin-bottom: 23px; }
.about-lead > span { color: var(--fluorescent-blue); }
.portfolio-home .about-story > p:not(.about-lead) { color: #b7c7dc; font-size: 12px; line-height: 2; margin-bottom: 18px; }
.about-story > a { margin-top: 5px; }
.about-facts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-color); }
.about-facts > div { display: flex; gap: 20px; align-items: baseline; }
.about-facts span { color: #9cb5d5; font: 8px var(--mono); letter-spacing: 1px; min-width: 65px; }
.about-facts strong { color: #e4efff; font-size: 10px; font-weight: 400; }
.toolbox-list { border-top: 1px solid var(--border-color); }
.toolbox-row { display: grid; grid-template-columns: 35px 1fr 1.7fr 20px; gap: 15px; align-items: center; border-bottom: 1px solid var(--border-color); padding: 29px 5px; transition: background .2s; }
.toolbox-row:hover { background: #0b2343; }
.toolbox-number { color: #9cb5d5; font: 9px var(--mono); }
.toolbox-row h3 { font-size: 15px; font-weight: 400; letter-spacing: -.3px; }
.toolbox-row p { color: #b7c7dc; font-size: 10px; line-height: 2; }
.toolbox-row p > span { color: #7894b8; padding: 0 8px; }
.toolbox-row > span:last-child { color: var(--fluorescent-blue); font-size: 18px; }
.contact-studio { position: relative; overflow: hidden; border-top: 1px solid var(--border-color); text-align: center; isolation: isolate; }
.contact-glow { display: none; }
.contact-inner { padding-bottom: 60px; }
.contact-inner h2 { font-size: clamp(42px,6vw,85px); margin: 24px 0; }
.portfolio-home .contact-inner > p:not(.eyebrow) { color: #b7c7dc; font-size: 12px; line-height: 1.9; }
.contact-inner > .studio-button { margin-top: 28px; }
.contact-github { display: block; color: #b7c7dc; font-size: 10px; margin-top: 24px; }
.signature-wordmark { color: #b3d1ff; opacity: .12; font-size: clamp(50px,15vw,220px); line-height: .84; letter-spacing: -.07em; white-space: nowrap; font-weight: 600; margin: 0 20px; }
/* Content is visible without JavaScript. Effects are progressive enhancements. */
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.3,1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
[data-tilt] { transform: perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform .4s ease; }
@media (prefers-reduced-motion: no-preference) {
  .intro-line { animation: studio-enter .9s both; }
  .intro-line:nth-child(2) { animation-delay: .12s; }
  .intro-line:nth-child(3) { animation-delay: .24s; }
  .note-top { animation: note-drift 6s ease-in-out infinite; }
  .note-bottom { animation: note-drift 7s ease-in-out infinite reverse; }
  .about-asterisk { animation: star-turn 40s linear infinite; }
  .scroll-line::after { animation: scroll-tick 2s ease-in-out infinite; }
  .transfer-link i { animation: packet-move 2.5s ease-in-out infinite; }
  .transfer-link i:last-child { animation-delay: 1.2s; }
  .campus-packet { animation: campus-packet-flow 3.6s linear infinite; animation-delay: var(--packet-delay, 0s); }
  .campus-led { animation: campus-activity 3.6s ease-in-out infinite; animation-delay: var(--packet-delay, 0s); }
}
@keyframes studio-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes note-drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes star-turn { to { rotate: 360deg; } }
@keyframes scroll-tick { 0%,100% { translate: 0 0; opacity: 1; } 60% { translate: 0 9px; opacity: .3; } }
@keyframes packet-move { from { left: 0; opacity: 0; } 20%,80% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes campus-packet-flow { 0% { stroke-dashoffset: 100; opacity: 0; } 10%,85% { opacity: .95; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes campus-activity { 0%,35%,100% { opacity: .35; transform: scale(1); } 50%,65% { opacity: 1; transform: scale(1.3); } }
@media (min-width: 901px) { .portfolio-design .nav-links { position: static; visibility: visible; } }
@media (max-width: 1100px) {
  .intro-section { padding-inline: 40px; }
  .intro-layout { min-height: 570px; gap: 4%; }
  .portfolio-home h1 { font-size: clamp(43px,5.2vw,65px); letter-spacing: -2.5px; }
  .note-top { right: -1%; padding: 10px 12px; }
  .studio-section { padding: 80px 40px; }
  .work-visual { height: 310px; }
  .document-scene { top: 60px; scale: .88; }
  .school-scene { scale: .85; top: 75px; }
  .goat-scene { top: 50px; }
  .toolbox-row { grid-template-columns: 25px 1fr 1.6fr 15px; }
}
@media (max-width: 900px) {
  .portfolio-design nav, body.portfolio-design.home-page nav {
    inset: max(12px, env(safe-area-inset-top)) 0 auto;
    height: 44px;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    display: flex;
    justify-content: space-between;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    pointer-events: none;
  }
  .portfolio-design .nav-brand { display: inline-flex; justify-content: center; width: 44px; height: 44px; }
  .portfolio-design .nav-brand .brand-name { display: none; }
  .portfolio-design .nav-container { position: static; left: auto; right: auto; transform: none; flex: 0 0 auto; width: auto; min-height: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; box-shadow: none; padding: 0; border-radius: 0; }
  .portfolio-design .nav-container:hover { box-shadow: none; }
  .portfolio-design .nav-auth.desktop-only-auth { display: none; }
  .portfolio-design .nav-hamburger { display: grid; place-items: center; position: static; transform: none; color: #ffffff; width: 44px; height: 44px; padding: 9px; background: transparent; border: 0; box-shadow: none; z-index: 2000; }
  .portfolio-design .nav-brand:focus-visible, .portfolio-design .nav-hamburger:focus-visible { outline: 2px solid var(--fluorescent-blue); outline-offset: 3px; }
  .portfolio-design .nav-links, .portfolio-design nav ul.nav-links {
    display: flex !important;
    position: fixed;
    left: auto;
    right: max(18px, env(safe-area-inset-right));
    top: calc(64px + env(safe-area-inset-top));
    width: min(224px, calc(100vw - 36px));
    height: auto;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 8px;
    gap: 0;
    align-items: stretch;
    background: var(--glass-fill-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: transform .18s, opacity .18s, visibility .18s;
    z-index: 1550;
  }
  .portfolio-design .nav-links.nav-active { left: auto !important; visibility: visible; opacity: 1; transform: none; }
  .portfolio-design .nav-links li { flex: 0 0 auto; margin: 0; padding: 0; }
  .portfolio-design .nav-links li a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: .2px; line-height: 1.4; }
  .portfolio-design .nav-overlay { z-index: 1490; background: rgba(4, 8, 16, .12); backdrop-filter: none; -webkit-backdrop-filter: none; top: 0; height: 100dvh; }
  .portfolio-design .mobile-only-auth { margin-top: 0; }
  .portfolio-design .nav-links .nav-cmd-li { margin: 0; padding: 4px 0 0; border-top: 1px solid var(--glass-border); }
  .portfolio-design .nav-cmd-li .cmd-trigger-btn { width: 100%; min-height: 44px; padding: 0 12px; gap: 10px; border-radius: 6px; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
  .portfolio-design .nav-cmd-li .cmd-trigger-label { display: inline !important; }
  .portfolio-design .nav-links li:last-child { margin-top: 0; }
  .portfolio-design main:not(.main-hero-bleed) { padding-top: 80px; }
  .intro-section { padding-top: 80px; }
  .intro-topline { font-size: 8px; letter-spacing: .5px; }
  .intro-layout { gap: 0; min-height: 540px; padding-block: 50px; }
  .intro-copy { width: 110%; }
  .intro-art { width: 95%; opacity: .85; }
  .note-top { top: 0; font-size: 8px; }
  .note-mark { font-size: 17px; }
  .note-bottom { font-size: 7px; padding: 10px; }
  .portfolio-home h1 { font-size: clamp(38px,5.2vw,52px); letter-spacing: -2px; }
  .intro-description { width: 95%; }
  .intro-bottom > span:last-child { display: none; }
  .discipline-strip > div { flex-wrap: wrap; padding: 23px 30px; gap: 14px 22px; }
  .discipline-strip span { font-size: 10px; }
  .discipline-strip span:last-child { display: none; }
  .about-layout { gap: 40px; }
  .toolbox-row { grid-template-columns: 24px 1fr 20px; gap: 15px; }
  .toolbox-row p { grid-column: 2; grid-row: 2; }
  .toolbox-row > span:last-child { grid-column: 3; grid-row: 1; }
}
@media (max-width: 640px) {
  .portfolio-design .nav-brand { font-size: 13px; }
  .portfolio-design main:not(.main-hero-bleed) { padding-inline: 20px; }
  .intro-section { padding-inline: 24px; }
  .intro-topline { padding-bottom: 18px; font-size: 7px; }
  .intro-topline > span:last-child { font-size: 0; }
  .tiny-star { font-size: 17px; }
  .intro-layout { display: flex; flex-direction: column; align-items: stretch; padding-block: 35px 45px; }
  .intro-copy { width: 100%; }
  .portfolio-home .availability { font-size: 9px; margin-bottom: 22px; }
  .portfolio-home h1 { font-size: clamp(38px,9.6vw,61px); letter-spacing: -2px; }
  .portfolio-home .intro-description { font-size: 12px; line-height: 1.9; max-width: 360px; margin-top: 22px; }
  .intro-actions { gap: 25px; margin-top: 25px; }
  .studio-button { padding: 13px 18px; font-size: 11px; min-height: 46px; gap: 24px; }
  .intro-socials { margin-top: 26px; }
  .intro-art { width: min(100%,355px); align-self: center; margin: 45px 0 10px; opacity: 1; }
  .note-top { font-size: 9px; padding: 11px 14px; top: 5%; right: 0; }
  .note-bottom { font-size: 8px; padding: 12px; left: 0; }
  .portrait-caption { font-size: 6px; left: 18px; right: 18px; }
  .intro-bottom { font-size: 7px; padding: 20px 0; }
  .intro-bottom > span { display: none; }
  .discipline-strip > div { justify-content: center; gap: 12px 17px; padding-inline: 20px; }
  .discipline-strip span { font-size: 10px; }
  .discipline-strip span[aria-hidden] { font-size: 15px; }
  .studio-section { padding: 65px 24px; }
  .section-top { margin-bottom: 25px; }
  .portfolio-home .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .portfolio-home .studio-text-link { font-size: 10px; gap: 13px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .portfolio-home h2 { font-size: clamp(32px,8.5vw,43px); letter-spacing: -1.5px; }
  .section-heading > p { margin-top: 20px; font-size: 11px; }
  .work-grid { grid-template-columns: 1fr; gap: 35px; }
  .work-card:nth-child(even) { margin-top: 0; }
  .work-visual { height: 300px; }
  .work-caption h3 { font-size: 17px; }
  .work-caption { margin-top: 18px; }
  .portfolio-home .work-description { font-size: 11px; }
  .visual-index { left: 19px; top: 20px; font-size: 7px; }
  .transfer-scene { inset-inline: 35px; }
  .work-note { font-size: 8px; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .about-heading { position: relative; }
  .about-heading h2 { margin-top: 22px; }
  .about-asterisk { position: absolute; top: -4px; right: 0; font-size: 35px; margin: 0; opacity: .7; }
  .portfolio-home .about-lead { font-size: 23px; }
  .about-facts > div { gap: 10px; }
  .about-facts strong { font-size: 10px; }
  .toolbox-row { padding-block: 23px; }
  .toolbox-row p { font-size: 10px; }
  .toolbox-row p > span { padding-inline: 5px; }
  .contact-inner h2 { font-size: 43px; }
  .portfolio-home .contact-inner > p:not(.eyebrow) { font-size: 11px; }
  .contact-inner { padding-bottom: 55px; }
  .signature-wordmark { font-size: 14vw; margin: 0 12px; }
  .portfolio-design footer { flex-direction: column; align-items: flex-start; padding: 24px 24px 85px; gap: 20px; }
  .portfolio-design footer p { font-size: 10px; line-height: 1.9; }
  .portfolio-design #chat-launcher { right: 16px; bottom: 16px; }
  .portfolio-design #chat-container { bottom: 80px; right: 16px; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .portfolio-design *, .portfolio-design *::before, .portfolio-design *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  [data-tilt] { transform: none; }
}
