:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #25294d;
  --muted: #50536a;
  --line: #d9d9d1;
  --lime: #d8f478;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 2rem; }
:focus-visible { outline: 3px solid #636cb6; outline-offset: 4px; }
.wrap { width: min(1260px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 12px; background: white; }

.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header { min-height: 79px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #111216; }
.brand-mark img { width: 37px; height: 37px; }
.header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 35px); }
.header nav a { font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact span { margin-left: .25em; }

.hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(22px, 6vw, 90px); padding-block: 58px 64px; }
.intro { padding-block: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: #8aab2e; flex: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
h1 { margin-block: 21px 20px; font-size: clamp(3.55rem, 7.5vw, 7.25rem); line-height: .94; }
h1 span { color: #748f21; }
.role { font-size: clamp(.92rem, 1.55vw, 1.24rem); font-weight: 750; letter-spacing: -.02em; }
.role span { margin-inline: .3em; color: #66801d; }
.intro-text { max-width: 45ch; margin-block: 13px 25px; font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 15px; min-height: 45px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 7px; text-decoration: none; font-size: .89rem; font-weight: 700; transition: background-color .18s, color .18s; }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: #3c4174; }
.button.outline:hover { background: #e8e9df; }
.portrait { align-self: stretch; display: flex; flex-direction: column; min-height: 380px; overflow: hidden; border-radius: 12px; background: #111216; }
.portrait-frame { display: grid; place-items: center; flex: 1; padding: 23px 16px; background: radial-gradient(circle at center, #343640 0%, #1b1d24 58%, #121319 100%); }
.portrait-photo { width: min(84%, 340px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid #71737d; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 5px 12px; flex-wrap: wrap; padding: 13px 15px; color: white; border-top: 1px solid #3a3d47; font-size: .76rem; }
.portrait figcaption span:last-child { color: #c6cabe; }

.projects { border-top: 1px solid var(--line); padding-block: 39px 58px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; column-gap: 26px; row-gap: 16px; flex-wrap: wrap; margin-bottom: 23px; }
h2 { font-size: clamp(2.45rem, 5.4vw, 4.65rem); line-height: 1; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { min-height: 38px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink); font-size: .84rem; font-weight: 650; cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.project { display: flex; flex-direction: column; background: #fffef8; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.project h3 { font-size: 1.22rem; letter-spacing: -.04em; }
.project p { margin-top: 7px; color: var(--muted); font-size: .94rem; line-height: 1.56; }
.tags, .focus-list { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; }
.tags { margin-block: 15px 18px; }
.tags li { padding: 4px 8px; font-size: .72rem; font-weight: 650; line-height: 1.35; border-radius: 4px; background: #edede5; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; }
.links a, .repo-link { font-size: .84rem; font-weight: 750; text-underline-offset: 4px; }
.links a:hover, .repo-link:hover { color: #555c94; }
.project-status { color: var(--muted); font-size: .8rem; }
.repo-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 23px; }

.art { min-height: 136px; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 17px 18px; overflow: hidden; isolation: isolate; }
.art strong { font-size: clamp(1.75rem, 3.3vw, 3rem); line-height: .98; letter-spacing: -.07em; }
.art-label { font-size: .58rem; font-weight: 750; letter-spacing: .13em; margin-bottom: 9px; }
.art-industrial { background: #292d5a; color: white; }
.art-industrial strong span { color: var(--lime); }
.industrial-mark { width: 170px; height: 190px; position: absolute; right: -40px; top: -26px; background: repeating-linear-gradient(125deg, #a6b3f9 0 1px, transparent 1px 14px); mask-image: linear-gradient(90deg, transparent, black); opacity: .5; z-index: -1; }
.art-capture { background: #d8ebb5; color: #263c25; align-items: flex-end; }
.art-capture .art-label { max-width: 30%; text-align: right; margin: auto 0 0; }
.mini-window { position: absolute; top: 21px; left: 18px; width: 66%; border: 1px solid #586d4d; border-radius: 8px; overflow: hidden; background: #f0f9df; }
.mini-title { display: flex; padding: 7px; gap: 4px; border-bottom: 1px solid #586d4d; }
.mini-title span { width: 5px; height: 5px; border-radius: 50%; background: #586d4d; }
.mini-table { display: grid; gap: 7px; padding: 9px 8px; }
.mini-table i { height: 7px; background: linear-gradient(90deg, #9db98a 39%, transparent 39% 44%, #c5ddac 44% 70%, transparent 70% 75%, #c5ddac 75%); }
.art-radar { background: #e0e4fa; color: #2d3260; }
.radar-bars { position: absolute; right: 16px; bottom: 0; height: 85%; width: 32%; display: flex; align-items: flex-end; gap: 6px; z-index: -1; opacity: .55; }
.radar-bars i { height: 31%; flex: 1; background: #a4add8; border-radius: 3px 3px 0 0; }
.radar-bars i:nth-child(2) { height: 60%; }.radar-bars i:nth-child(3) { height: 46%; }.radar-bars i:nth-child(4) { height: 85%; }
.art-store { background: #f2dfd7; color: #593b46; }
.art-store strong, .art-store em { font-family: var(--serif); font-weight: 400; }
.art-store em { margin-top: 4px; font-size: .88rem; }
.store-rings { position: absolute; width: 145px; height: 145px; right: -15px; top: 13px; border: 1px solid #ae788e; border-radius: 50%; box-shadow: 0 0 0 12px #f2dfd7, 0 0 0 13px #ae788e, 0 0 0 25px #f2dfd7, 0 0 0 26px #ae788e; opacity: .55; z-index: -1; }
.art-fortuna { background: #363d62; color: #fff6df; }
.art-fortuna strong { font-family: var(--serif); font-weight: 400; }
.fortuna-ledger { display: grid; gap: 9px; position: absolute; top: 32px; right: 17px; width: 29%; opacity: .4; z-index: -1; transform: rotate(-12deg); }
.fortuna-ledger i { height: 13px; border: 1px solid #f8d894; border-radius: 3px; }
.art-export { background: #d7eadf; color: #244738; }
.export-flow { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.export-flow i { width: 28px; height: 12px; border: 1px solid #648678; border-radius: 3px; }
.export-flow i:last-child { background: #a1c7b2; }
.art-seed { background: #eae5ce; color: #4a5029; }
.art-seed strong { font-family: var(--serif); font-weight: 400; }
.art-cash { background: #e6e4fa; color: #37385e; }
.art-cash .fortuna-ledger i { border-color: #5d6397; }

.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 25px 40px; padding: clamp(28px, 5.5vw, 70px); background: var(--ink); color: #fdfbf3; border-radius: 13px; }
.about h2 { font-size: clamp(2.85rem, 6.5vw, 6rem); }
.about .eyebrow i { background: var(--lime); }
.about-content p { font-size: 1.05rem; line-height: 1.64; }
.about-content p + p { margin-top: 10px; }
.focus-list { margin: 18px 0 0; }
.focus-list li { border: 1px solid #8185a2; border-radius: 25px; padding: 5px 9px; font-size: .78rem; }
.contact { display: flex; justify-content: space-between; align-items: flex-end; gap: 19px 28px; flex-wrap: wrap; padding-block: 57px 43px; }
.contact h2 { font-size: clamp(2.35rem, 5vw, 4rem); }
.contact p:last-child { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.footer { padding-block: 19px 23px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer > a:last-child { text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-block: 39px 48px; }
  .portrait { min-height: 330px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 62px; gap: 7px; }
  .header .brand b { display: none; }
  .header nav a { font-size: .81rem; }
  .hero { grid-template-columns: 1fr; gap: 17px; padding-block: 27px 34px; }
  h1 { font-size: clamp(3.2rem, 11.5vw, 5rem); margin-block: 16px; }
  .intro-text { margin-bottom: 17px; }
  .portrait { min-height: clamp(285px, 89vw, 400px); }
  .projects { padding-block: 30px 38px; }
  .project-grid, .about { grid-template-columns: 1fr; }
  .project-body { padding: 15px; }
  .contact { padding-block: 39px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
