:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --card: #efede5;
  --card-raised: #fbfaf5;
  --ink: #171713;
  --muted: #77776d;
  --line: #dedbd0;
  --acid: #d1df25;
  --acid-dark: #a5b20d;
  --shadow: 0 14px 28px #3836220b, 0 3px 8px #38362208;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.portfolio-nav { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 max(5vw, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #e8e5dbb5; background: #f7f5edeF; backdrop-filter: blur(14px); }
.portfolio-brand { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.portfolio-brand small { display: block; margin-top: 3px; color: var(--muted); font: 8px "DM Mono", monospace; letter-spacing: .08em; }
.brand-symbol { display: grid; width: 34px; height: 34px; place-items: center; background: var(--acid); font-size: 16px; letter-spacing: -.06em; }
.portfolio-nav nav { display: flex; gap: clamp(18px, 4vw, 48px); }
.portfolio-nav nav a, .play-link { font-size: 11px; font-weight: 700; text-decoration: none; }
.portfolio-nav nav a { color: #66665d; }
.portfolio-nav nav a:hover { color: var(--acid-dark); }
.play-link { padding: 10px 13px; border: 1px solid var(--line); font: 9px "DM Mono", monospace; letter-spacing: .07em; }
.play-link span { color: var(--acid-dark); }
.portfolio-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.55fr); gap: clamp(25px, 5vw, 74px); width: min(1320px, 90vw); margin: 45px auto 70px; align-items: start; }
.portfolio-sidebar, .portfolio-main { display: grid; align-content: start; gap: 28px; min-width: 0; }
.portfolio-main { gap: 26px; }
.portfolio-section { min-width: 0; }
.top-grid, .bottom-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(230px, .88fr); gap: 22px; align-items: start; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 11px; }
.section-heading h2 { margin: 0; font-size: clamp(19px, 2.1vw, 25px); font-weight: 800; letter-spacing: -.055em; }
.section-heading > span { color: #96958a; font: 9px "DM Mono", monospace; }
.portfolio-card { --rx: 0deg; --ry: 0deg; --lift: 0px; --shine-x: 50%; --shine-y: 50%; position: relative; isolation: isolate; display: flex; width: 100%; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid #e6e3d9; border-radius: 12px; background: var(--card); box-shadow: var(--shadow), 0 3px 0 #d9d6cc; text-align: left; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transform-style: preserve-3d; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; cursor: pointer; }
.portfolio-card::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: 0; background: radial-gradient(circle at var(--shine-x) var(--shine-y), #ffffffc9, transparent 46%); transition: opacity .2s ease; pointer-events: none; }
.portfolio-card:hover, .portfolio-card:focus-visible { --lift: -5px; border-color: #d0d39b; background-color: var(--card-raised); box-shadow: 0 25px 40px #38362216, 0 6px 0 #d9d6cc; outline: none; }
.portfolio-card:hover::before, .portfolio-card:focus-visible::before { opacity: .52; }
.portfolio-card:active { --lift: -1px; transition-duration: .08s; }
.portrait-card { min-height: 290px; padding: 16px; border: 0; background: var(--acid); box-shadow: 0 16px 30px #8a911d22, 0 5px 0 #a7b20e; }
.portrait-card:hover, .portrait-card:focus-visible { background-color: #d9e837; border-color: transparent; box-shadow: 0 25px 42px #8a911d30, 0 5px 0 #a7b20e; }
.card-index { position: relative; z-index: 2; align-self: flex-start; padding: 6px 8px; border: 1px solid #17171325; border-radius: 30px; font: 8px "DM Mono", monospace; letter-spacing: .09em; }
.portrait-art { position: absolute; inset: 10px 0 35px; display: grid; place-items: center; transform: translateZ(20px); }
.portrait-art::before { position: absolute; inset: 15% 16% 8%; content: ""; border-radius: 18px 18px 8px 8px; background: linear-gradient(135deg, #eff28b, #9ca923); }
.profile-photo { position: relative; width: min(88%, 220px); height: auto; max-height: 90%; align-self: end; border-radius: 6px; object-fit: contain; object-position: center; filter: grayscale(100%) contrast(1.04); mix-blend-mode: multiply; }
.portrait-caption { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: auto; font: 8px/1.5 "DM Mono", monospace; letter-spacing: .07em; }
.portrait-arrow { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 15px; }
.identity { padding: 2px 0 3px; }
.availability { display: inline-flex; align-items: center; gap: 7px; color: #696a5e; font: 8px "DM Mono", monospace; letter-spacing: .045em; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: #70a765; box-shadow: 0 0 0 3px #70a76520; }
.identity h1 { margin: 14px 0 8px; font-size: clamp(39px, 5vw, 59px); font-weight: 800; line-height: .98; letter-spacing: -.075em; }
.identity h1 span { color: #858415; }
.identity-copy { max-width: 33ch; margin: 0; color: #74736a; font-size: 12px; line-height: 1.7; }
.timeline-card, .meter-card, .expertise-card { gap: 0; padding: 13px 16px; }
.timeline-entry { display: grid; padding: 8px 0 11px 12px; border-left: 2px solid var(--acid); }
.timeline-entry + .timeline-entry { margin-top: 6px; }
.date-pill { display: inline-block; width: max-content; padding: 6px 11px; border-radius: 24px; background: var(--acid); font: 8px "DM Mono", monospace; }
.timeline-entry strong { margin-top: 7px; font-size: 14px; letter-spacing: -.035em; }
.timeline-entry small, .experience-entry small { margin-top: 3px; color: #66665e; font-size: 10px; }
.card-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #838277; font: 7px "DM Mono", monospace; letter-spacing: .06em; }
.card-hint b { color: #858415; font-size: 12px; }
.meter-card { gap: 9px; padding: 18px 16px 12px; }
.meter-row { display: grid; grid-template-columns: 29px minmax(76px, 1fr) minmax(45px, 112px); gap: 9px; align-items: center; font-size: 10px; }
.app-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; color: white; font: 800 11px "DM Sans", sans-serif; }
.app-icon-logo { display: block; width: 25px; height: 25px; object-fit: contain; }
.app-ps { background: #152640; color: #63c9ff; }.app-ai { background: #442117; color: #ffbb55; }.app-fi { background: #fae9e5; color: #e25c47; }.app-code { background: #223229; color: #b8e994; font-size: 8px; }.app-3d { background: #f1e7dc; color: #d57c35; font-size: 8px; }
.meter-row i, .expertise-row i { display: block; height: 8px; overflow: hidden; border-radius: 9px; background: #b9b9ae; }
.meter-row i em, .expertise-row i em { display: block; width: var(--level); height: 100%; border-radius: inherit; background: var(--acid); }
.expertise-card { gap: 12px; padding: 19px 15px 13px; }
.expertise-row { display: grid; grid-template-columns: 25px 1fr 78px; gap: 6px; align-items: center; font-size: 9px; }
.expertise-row b { display: grid; width: 22px; height: 22px; place-items: center; border: 1.5px solid var(--ink); font-size: 12px; }
.expertise-row i { height: 7px; }
.compact-card { padding-top: 10px; padding-bottom: 11px; }
.top-grid { grid-template-columns: minmax(0, 1.08fr) minmax(220px, .92fr); }
.portfolio-section-top { min-width: 0; }
.work-card { min-height: 270px; padding: 15px; }
.work-overline, .profile-kicker { color: #737267; font: 8px "DM Mono", monospace; letter-spacing: .08em; }
.work-art { position: relative; display: grid; height: 143px; margin: 13px -2px 12px; overflow: hidden; place-items: center; border-radius: 7px; background: radial-gradient(ellipse at 75% 20%, #51366b, transparent 48%), linear-gradient(135deg, #211d2d, #171922); }
.work-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(#b7a3ce17 1px, transparent 1px), linear-gradient(90deg, #b7a3ce17 1px, transparent 1px); background-size: 24px 24px; }
.work-glow { position: absolute; width: 180px; height: 130px; border-radius: 50%; background: #c2e06a35; filter: blur(35px); }
.workflow-window { position: relative; z-index: 1; display: grid; width: 76%; height: 76%; grid-template-columns: 27px 1fr; overflow: hidden; border: 1px solid #ffffff38; border-radius: 6px; background: #f2f0e9; box-shadow: 0 10px 30px #09081080; transform: rotate(-4deg) translateZ(28px); }
.workflow-sidebar { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 5px; background: #24212c; }
.workflow-sidebar i { width: 10px; height: 3px; border-radius: 4px; background: #686573; }
.workflow-sidebar i:first-child { width: 15px; height: 12px; margin-bottom: 4px; background: #c7db68; }
.workflow-sidebar b { width: 15px; height: 14px; margin-top: 3px; border: 1px solid #777384; border-radius: 3px; }
.workflow-content { display: flex; flex-direction: column; gap: 7px; padding: 9px 10px; }
.workflow-heading { width: 42%; height: 6px; border-radius: 4px; background: #403b49; }
.workflow-stats { display: grid; height: 24%; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.workflow-stats i { border: 1px solid #e0ded6; border-radius: 3px; background: linear-gradient(#c4d765 0 3px, #fff 3px); }
.workflow-chart { display: flex; height: 40%; align-items: end; justify-content: space-around; gap: 5px; padding: 5px 7px 0; border: 1px solid #e0ded6; border-radius: 3px; background: #fff; }
.workflow-chart i { width: 9%; height: 37%; border-radius: 2px 2px 0 0; background: #a9c747; }
.workflow-chart i:nth-child(2n) { height: 70%; background: #b5c7ed; }
.workflow-chart i:nth-child(3n) { height: 53%; }
.workflow-chart i:nth-child(5n) { height: 87%; background: #d8a2c8; }
.workflow-lines { display: flex; gap: 5px; }
.workflow-lines i { width: 29%; height: 3px; border-radius: 3px; background: #d7d5ce; }
.work-stamp { position: absolute; right: 12px; bottom: 11px; color: var(--acid); font: 700 11px/1.2 "DM Mono", monospace; }
.work-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.work-title-row strong { font-size: 19px; font-weight: 800; letter-spacing: -.05em; }
.work-title-row span { color: #77776d; font: 7px "DM Mono", monospace; }
.work-description { margin-top: 4px; color: #74736a; font-size: 10px; }
.contact-card { gap: 12px; min-height: 270px; padding: 18px; }
.contact-intro { margin-bottom: 3px; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.contact-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.contact-row:hover strong { color: #74760d; }
.contact-row > b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--acid); font-size: 13px; }
.contact-row > span { display: grid; gap: 2px; }
.contact-row small { color: #77776d; font: 7px "DM Mono", monospace; }
.contact-row strong { font-size: 9px; }
.profile-card { min-height: 153px; justify-content: center; gap: 12px; padding: 24px 26px; }
.profile-copy { max-width: 72ch; color: #414139; font-size: clamp(13px, 1.4vw, 16px); line-height: 1.75; }
.profile-copy strong { color: #74760d; }
.profile-foot { display: flex; justify-content: space-between; margin-top: 3px; color: #838277; font: 7px "DM Mono", monospace; letter-spacing: .06em; }
.experience-card { padding: 3px 21px 11px; }
.experience-entry { position: relative; display: block; padding: 17px 0; border-bottom: 1px solid #dbd9cf; }
.experience-entry:last-of-type { border-bottom: 0; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-top > span:first-child { display: grid; gap: 3px; }
.entry-top strong { font-size: 15px; letter-spacing: -.035em; }
.entry-top .date-pill { flex: none; }
.entry-copy { display: block; max-width: 75ch; margin-top: 9px; color: #66665d; font-size: 11px; line-height: 1.65; }
.entry-mark { position: absolute; top: 16px; right: -10px; color: #b9b7ad; font: 8px "DM Mono", monospace; }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.interest-card { min-height: 140px; align-items: center; justify-content: center; padding: 16px 8px; text-align: center; }
.interest-card > span:first-child { display: grid; width: 50px; height: 50px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: var(--acid); font-size: 21px; transform: translateZ(18px); }
.interest-card strong { font-size: 11px; }
.interest-card small { margin-top: 4px; color: #77776d; font: 7px "DM Mono", monospace; }
.interest-card .card-hint { width: 100%; font-size: 6px; }
.bottom-grid { grid-template-columns: 1fr 1fr; }
.quote-card { min-height: 190px; padding: 18px; }
.quote-mark { height: 36px; color: var(--acid-dark); font: 700 46px/.9 "DM Sans", sans-serif; }
.quote-card blockquote { margin: 0; font-size: 11px; line-height: 1.65; }
.quote-author { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 14px; }
.quote-author i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #b7b69c, #e0dfcf); }
.quote-author > span { display: grid; gap: 2px; }
.quote-author strong { font-size: 9px; }
.quote-author small { color: #77776d; font: 7px "DM Mono", monospace; }
.social-card { min-height: 190px; justify-content: center; gap: 13px; padding: 20px; }
.social-card > a { display: flex; align-items: center; gap: 9px; color: inherit; font-size: 10px; text-decoration: none; }
.social-card > a:hover { color: #74760d; }
.social-card > a > b { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 5px; background: #20221b; color: var(--acid); font-size: 9px; }
.social-card > a > i { margin-left: auto; color: #8b8a7e; font-style: normal; }
.portfolio-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 3px; color: #89887e; font: 7px "DM Mono", monospace; letter-spacing: .05em; }
.detail-dialog { width: min(450px, calc(100vw - 34px)); padding: 30px; border: 1px solid #e2dfd5; border-radius: 15px; background: var(--paper); box-shadow: 0 28px 90px #15150e40; }
.detail-dialog::backdrop { background: #17171386; backdrop-filter: blur(5px); }
.detail-dialog form { position: absolute; top: 12px; right: 12px; }
.dialog-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 23px; cursor: pointer; }
.dialog-eyebrow { display: flex; justify-content: space-between; margin: 22px 0 13px; color: #77776d; font: 8px "DM Mono", monospace; letter-spacing: .1em; }
.dialog-eyebrow i { color: var(--acid-dark); font-size: 13px; font-style: normal; }
.detail-dialog h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.06em; }
.detail-dialog p { color: #595950; font-size: 14px; line-height: 1.75; }
.dialog-note { display: block; margin-top: 25px; color: #929186; font: 7px "DM Mono", monospace; letter-spacing: .06em; }
.cursor-glow { position: fixed; z-index: -1; top: 0; left: 0; width: 250px; height: 250px; transform: translate(-50%, -50%); border-radius: 50%; background: #d1df2512; filter: blur(50px); pointer-events: none; }

@media (max-width: 850px) {
  .portfolio-layout { grid-template-columns: minmax(230px, .76fr) minmax(0, 1.3fr); width: min(760px, 92vw); gap: 23px; }
  .top-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .contact-row { display: inline-flex; width: 32%; align-items: flex-start; vertical-align: top; }
  .contact-intro { display: block; }
  .contact-card { display: block; }
  .contact-row > span { min-width: 0; }
  .contact-row strong { overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .portfolio-nav { min-height: 62px; padding: 0 4vw; }
  .portfolio-nav nav { gap: 13px; }
  .portfolio-nav nav a { font-size: 10px; }
  .play-link { padding: 8px; font-size: 7px; }
  .portfolio-brand { gap: 7px; font-size: 8px; }
  .brand-symbol { width: 29px; height: 29px; }
  .portfolio-layout { grid-template-columns: 1fr; width: min(480px, 90vw); margin: 25px auto 45px; gap: 28px; }
  .portfolio-sidebar { grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
  .portrait-card { grid-row: span 2; min-height: 250px; }
  .identity { align-self: end; }
  .identity h1 { font-size: clamp(35px, 9vw, 48px); }
  .identity-copy { font-size: 10px; }
  .availability { font-size: 6px; }
  .portfolio-sidebar > .portfolio-section { grid-column: 1 / -1; }
  .portfolio-main { gap: 23px; }
  .top-grid, .bottom-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-row { width: 100%; align-items: center; }
  .contact-card { display: flex; }
  .work-art { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .portfolio-card { transform: none !important; }
}
