:root {
  color-scheme: light;
  --ink: #1c1d1a;
  --paper: #f1efe8;
  --line: #c9c6bb;
  --lime: #e0fa52;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #5355cb; outline-offset: 5px; }
.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-150%); z-index: 3; }
.skip:focus { transform: none; }
.header { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.045em; }
.mark { font-size: 1.65rem; line-height: 1; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 38px); font-size: .9rem; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; padding-block: 40px 52px; }
.hero-copy { position: relative; z-index: 1; animation: rise .75s both; }
.eyebrow { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--lime); margin-right: 7px; }
h1 { font-size: clamp(3.5rem, 7.8vw, 7.75rem); line-height: .88; letter-spacing: -.088em; margin: 26px 0; font-weight: 750; }
h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.095em; }
.intro { max-width: 31ch; color: #4d4d43; line-height: 1.55; font-size: 1.125rem; }
.button { display: inline-flex; align-items: center; min-height: 46px; margin-top: 25px; padding: 10px 19px; border: 1px solid var(--ink); background: var(--lime); font-weight: 700; border-radius: 50px; transition: background .2s, color .2s; }
.button:hover { background: var(--ink); color: var(--paper); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 52%; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
#matrix-rain { width: 100%; height: 100%; display: block; }
.section { padding-block: 34px 60px; border-top: 1px solid var(--line); }
.section-heading, .footer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading { margin-bottom: 24px; }
.section-heading p, .footer { color: #535348; font-size: .9rem; }
h2 { font-size: clamp(2rem, 4.4vw, 4.75rem); line-height: .98; letter-spacing: -.07em; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { border: 0; padding: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.cover { display: grid; place-items: center; position: relative; isolation: isolate; aspect-ratio: 1.45; overflow: hidden; }
.cover b { z-index: 1; transition: transform .35s ease; }
.project:hover .cover b, .project:focus-visible .cover b { transform: scale(1.08); }
.cover i { position: absolute; }
.cover-onde { background: #bfc5fc; color: #22255c; font: italic 700 clamp(2.6rem, 6vw, 6rem) Georgia, serif; }
.cover-onde i { width: 72%; height: 100%; background: repeating-radial-gradient(ellipse, transparent 0 8px, #727dc0 9px 10px); transform: rotate(-24deg) scaleY(.68); }
.cover-sillage { background: #bd442b; color: #fff2d4; font: italic clamp(2.6rem, 5vw, 5rem) Georgia, serif; }
.cover-sillage i { width: 65%; aspect-ratio: 1; border: 1px solid #f6a47c; border-radius: 28% 72% 35% 65%; transform: rotate(-35deg); box-shadow: 0 0 0 12px #bd442b, 0 0 0 13px #f6a47c, 0 0 0 25px #bd442b, 0 0 0 26px #f6a47c; }
.cover-prisme { background: #d9e859; color: #242713; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.1em; }
.cover-prisme i { width: 66%; height: 115%; background: repeating-linear-gradient(112deg, #627328 0 1px, transparent 1px 9px); transform: skew(-22deg); }
.project-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px; padding-block: 12px; font-weight: 750; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.project-name span { font-size: .875rem; font-weight: 400; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about p, .contact p, .dialog-body > p:last-child { font-size: 1.125rem; line-height: 1.6; max-width: 52ch; }
.contact { padding-block: 60px; background: #262820; color: var(--paper); }
.contact p { margin-top: 16px; }
.contact .button { color: var(--ink); }
.contact .button:hover { color: var(--paper); border-color: var(--paper); }
.footer { padding-block: 24px; }
dialog { width: min(550px, 100% - 32px); border: 1px solid var(--ink); padding: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #161710a8; }
.close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.6rem; cursor: pointer; }
.dialog-body { padding: 48px 32px 36px; }
.dialog-body h2 { margin-block: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) { .shell { width: calc(100% - 48px); } }
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .hero, .about, .projects { grid-template-columns: 1fr; }
  .hero { gap: 24px; padding-block: 38px; }
  .hero-art { width: 60%; opacity: .18; }
  .header { min-height: 68px; flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .nav-contact { padding-inline: 9px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }
.hero h1 { font-size: clamp(3.5rem, 6.8vw, 6.8rem); }
.stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 35px; padding-block: 35px 45px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1.1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 1rem; }
.stat-caption { justify-content: center; line-height: 1.6; max-width: 35ch; }
.projects { grid-template-columns: 1fr 1fr; gap: 28px; }
.cover-screen { aspect-ratio: 1.6; padding: 22px; background: #dedfd6; border: 1px solid var(--line); }
.cover-screen img { width: 100%; height: auto; display: block; box-shadow: 0 12px 24px #1c1d1a18; transition: transform .4s; }
.project:hover img, .project:focus-visible img { transform: scale(1.035); }
.project-summary { display: block; margin-top: 9px; line-height: 1.5; color: #535348; font-size: 1rem; }
.app-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 44px; padding: 38px; background: #dff35e; }
.app-feature h3 { font-size: clamp(2rem, 3.1vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; margin: 18px 0; }
.app-feature-copy > p:last-of-type { max-width: 37ch; line-height: 1.6; }
.app-feature button { background: transparent; cursor: pointer; }
.app-results { display: flex; flex-direction: column; gap: 24px; }
.app-results strong { font-size: clamp(2.8rem, 4.7vw, 4.6rem); }
.stat small { font-size: .35em; letter-spacing: -.02em; }
.results-note { font-size: .8125rem; line-height: 1.5; max-width: 55ch; }
.about .eyebrow { margin-bottom: 20px; }
.about .full-name { margin-top: 15px; font-size: 1rem; }
.about-copy > p + p { margin-top: 16px; }
.skills { padding: 0; display: flex; flex-wrap: wrap; list-style: none; gap: 8px; margin-block: 24px; }
.skills li { border: 1px solid var(--line); border-radius: 30px; padding: 9px 13px; font-size: .875rem; }
.about .bio-note { font-size: .875rem; color: #535348; }
.contact .eyebrow { margin-bottom: 24px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 15px 40px; margin-top: 30px; font-size: clamp(1.125rem, 2.7vw, 2rem); }
.contact-links a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-links a:hover { color: var(--lime); }
dialog { width: min(1000px, 100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.dialog-body h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-block: 20px; }
#detail-copy { max-width: 75ch; font-size: 1.125rem; line-height: 1.6; }
#detail-image { display: block; width: 100%; height: auto; margin-top: 25px; border: 1px solid var(--line); }
@media (max-width: 650px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .stat-caption { grid-column: 1 / -1; max-width: none; }
  .projects, .app-feature { grid-template-columns: 1fr; }
  .app-feature { padding: 24px; gap: 30px; }
  .cover-screen { padding: 12px; }
  .dialog-body { padding: 66px 20px 25px; }
  .footer { flex-direction: column; }
}
.portrait { display: block; width: min(100%, 310px); height: 330px; object-fit: cover; object-position: center 48%; margin-top: 28px; border-radius: 3px; }
.app-store-link { display: inline-block; margin: 20px 0 0 16px; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.app-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid #a3b43c; }
.app-gallery figure { text-align: center; min-width: 0; }
.app-gallery img { display: block; width: auto; max-width: 100%; height: 450px; margin-inline: auto; border-radius: 20px; box-shadow: 0 12px 26px #1c1d1a18; }
.app-gallery figcaption { margin-top: 16px; font-size: .875rem; line-height: 1.5; }
#detail-features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin-block: 30px; }
#detail-features li { border-top: 1px solid var(--line); padding-top: 14px; }
#detail-features strong { display: block; font-size: 1.125rem; margin-bottom: 6px; }
#detail-features p, #detail-platforms { line-height: 1.6; font-size: 1rem; }
#detail-platforms { padding: 16px; background: #e4e5d8; }
#detail-gallery { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; margin-top: 26px; }
#detail-gallery img { display: block; width: 100%; max-width: 260px; height: auto; margin-inline: auto; border-radius: 16px; }
.close { z-index: 2; background: var(--paper); }
@media (max-width: 650px) {
  .app-gallery { gap: 14px; }
  .app-gallery img { width: 100%; height: auto; border-radius: 12px; }
  .app-store-link { display: block; margin-left: 0; }
  #detail-features { grid-template-columns: 1fr; }
  #detail-gallery { gap: 12px; }
}
.app-feature-copy .publication-note { font-size: .9375rem; line-height: 1.6; margin-top: 18px; max-width: 48ch; }
.results-capture { grid-column: 1 / -1; min-width: 0; }
.results-capture a { display: block; }
.results-capture img { display: block; width: 100%; height: auto; border: 1px solid #a3b43c; }
.results-capture figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; }
