:root {
  color-scheme: dark;
  --ink: #151713;
  --panel: #1c2019;
  --paper: #f1efe5;
  --white: #f5f5eb;
  --muted: #b1b4a7;
  --accent: #dbf975;
  --rule: #393e33;
  --page: 77rem;
  --gutter: clamp(1.15rem, 4.5vw, 4rem);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--white);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--accent); }
[id] { scroll-margin-top: 5.5rem; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--page)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; transform: translateY(-140%); padding: .6rem 1rem; background: var(--accent); color: var(--ink); }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; background: rgb(21 23 19 / .94); border-bottom: 1px solid var(--rule); backdrop-filter: blur(14px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-size: .98rem; font-weight: 730; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; background: var(--accent); color: var(--ink); border-radius: .25rem; font-size: .83rem; font-weight: 900; letter-spacing: -.08em; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2.6rem); }
nav a { padding-block: .62rem; white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; }
nav a:hover { color: var(--white); }
.nav-contact { padding-inline: 1rem; border: 1px solid #707655; border-radius: .25rem; color: var(--accent); }
.nav-contact:hover { color: var(--ink); background: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5.25rem); padding-block: clamp(3.2rem, 7vw, 6.9rem) clamp(2.2rem, 4.5vw, 4.4rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .85rem; font-weight: 720; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; }
.line-mark { display: inline-block; flex: 0 0 1.55rem; width: 1.55rem; height: 2px; background: var(--accent); }
.hero h1 { margin-block: .07em .16em; font-size: clamp(3.55rem, 8.3vw, 8.1rem); line-height: 1.07; font-weight: 850; letter-spacing: -.059em; word-spacing: .035em; text-wrap: wrap; }
h1 span, h2 span { color: var(--accent); }
.hero-intro { max-width: 35ch; font-size: clamp(1.1rem, 2.1vw, 1.48rem); color: #ced0c4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.05rem; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .25rem; text-decoration: none; font-weight: 750; font-size: .92rem; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: #f0ffa8; }
.secondary { border-color: #535a49; }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.portrait { min-width: 0; }
.portrait-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.23;
  overflow: hidden;
  border: 1px solid #49503f;
  border-radius: .38rem;
  background:
    linear-gradient(rgb(196 224 137 / .075) 1px, transparent 1px) 50% 50% / 2rem 2rem,
    linear-gradient(90deg, rgb(196 224 137 / .075) 1px, transparent 1px) 50% 50% / 2rem 2rem,
    radial-gradient(ellipse at 56% 42%, #475536, #242d21 61%, #1a2018 100%);
}
.portrait-type { position: absolute; z-index: -1; left: 3%; bottom: -.17em; color: transparent; -webkit-text-stroke: 1px #9bad71; opacity: .42; font-size: clamp(9rem, 20vw, 22rem); font-weight: 900; line-height: 1; letter-spacing: -.16em; user-select: none; }
.portrait-orbit { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border: 1px dashed #9daf75; border-radius: 50%; opacity: .58; transform: translate(8%, -3%); }
.portrait-frame img { width: 50%; height: auto; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent), 0 0 0 .55rem #1f281b, 0 0 0 .6rem #82995b, 0 1rem 3rem #0d130b; transform: translate(11%, -3%); }
.corner { position: absolute; width: 1.05rem; height: 1.05rem; border: solid #adc17d; }
.corner-top { top: 1rem; right: 1rem; border-width: 1px 1px 0 0; }
.corner-bottom { bottom: 1rem; left: 1rem; border-width: 0 0 1px 1px; }
figcaption { display: flex; justify-content: space-between; gap: .55rem; margin-top: .8rem; color: var(--muted); font-size: .83rem; }
.milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(3.35rem, 6vw, 6rem); border-block: 1px solid var(--rule); }
.milestones > div { display: flex; flex-direction: column; justify-content: center; gap: .35rem; min-width: 0; padding: 1.28rem 1rem 1.28rem 0; }
.milestones > div + div { padding-left: clamp(.8rem, 2.8vw, 2rem); border-left: 1px solid var(--rule); }
.milestones strong { color: var(--accent); font-size: clamp(1.05rem, 2.25vw, 2rem); font-weight: 800; letter-spacing: -.045em; }
.milestones span { line-height: 1.5; font-size: .86rem; color: var(--muted); }

.work { padding-block: 0 clamp(4rem, 7vw, 7.4rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.85rem; }
h2 { margin-top: .18em; font-size: clamp(2.55rem, 5.6vw, 5.35rem); line-height: 1.09; font-weight: 810; letter-spacing: -.059em; word-spacing: .035em; }
.section-head > p { max-width: 34ch; color: var(--muted); }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: 22rem; margin-bottom: 1.3rem; overflow: hidden; border: 1px solid var(--rule); border-radius: .4rem; background: #20241b; }
.feature-art { display: grid; place-items: center; min-height: 18rem; background: radial-gradient(ellipse, #716044, #3e3527 65%, #2d261e); overflow: hidden; }
.feature-art img { width: 100%; height: 100%; max-height: 32rem; object-fit: cover; object-position: center; }
.feature-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: .85rem; padding: clamp(1.45rem, 4vw, 3.1rem); }
.accent { color: var(--accent); }
.feature h3 { font-size: clamp(2.15rem, 4.65vw, 4.1rem); letter-spacing: -.058em; word-spacing: .03em; line-height: 1.02; }
.feature-copy > p:not(.eyebrow, .award), .project-copy > p:not(.eyebrow) { color: #c5c8ba; }
.award { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; color: var(--accent); font-size: .97rem; font-weight: 800; }
.award span { color: var(--muted); font-size: .84rem; font-weight: 540; }
.source-link { display: inline-block; color: #e3e6d9; font-size: .87rem; font-weight: 640; text-underline-offset: .27em; text-decoration-color: #7d836d; }
.feature-sources { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.source-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.project { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: .4rem; background: var(--panel); }
.project-art { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 1.9; overflow: hidden; background: #32382c; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project:hover .project-art img { transform: scale(1.045); }
.project-art.bakien img { object-position: right center; }
.project-art.wazzat { background: radial-gradient(ellipse at 60% 58%, #412e6e, #241a41); }
.project-art.music { background: radial-gradient(ellipse, #792d62, #421936); }
.wazzat img, .music img { width: 30%; height: auto; aspect-ratio: 1; border-radius: 20%; box-shadow: 0 .5rem 1.6rem #160f2690; }
.record { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 11px, #c8aafa38 12px 13px); }
.tiles { position: absolute; z-index: -1; inset: -25%; background: repeating-linear-gradient(90deg, #f5afdc3d 0 1px, transparent 1px 3.15rem), repeating-linear-gradient(#f5afdc3d 0 1px, transparent 1px 3.15rem); transform: rotate(-19deg); }
.project-copy { display: flex; flex-direction: column; align-items: start; gap: .5rem; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.project-copy .eyebrow { font-size: .73rem; }
.project h3 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 780; line-height: 1.1; letter-spacing: -.055em; }
.project-copy .source-link { margin-top: auto; padding-top: .3rem; }
.extra-projects, .education { margin-top: 1.5rem; border-block: 1px solid var(--rule); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; cursor: pointer; font-size: .98rem; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { position: relative; width: 1rem; height: 1rem; }
summary span::before, summary span::after { position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px; background: currentColor; content: ''; }
summary span::after { transform: rotate(90deg); }
details[open] > summary span::after { display: none; }
.extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; padding-bottom: 1.25rem; }
.extra-grid h3 { margin-bottom: .3rem; font-size: 1rem; }
.extra-grid p { color: var(--muted); }

.journey { color-scheme: light; padding-block: clamp(4rem, 7.5vw, 7.25rem); background: var(--paper); color: #20251b; }
.journey-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr); gap: clamp(2rem, 6vw, 6rem); }
.journey .eyebrow { color: #515b44; }
.journey .line-mark { background: #586d30; }
.journey h2 span { color: #626f39; }
.journey-intro > p:last-child { max-width: 32ch; margin-top: 1.15rem; color: #434b3d; font-size: 1.08rem; }
.timeline { padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.05rem; padding-block: 1.35rem; border-top: 1px solid #c5c9b9; }
.timeline li:first-child { padding-top: 1.15rem; }
.period { align-self: start; margin-top: .06rem; font-size: .9rem; font-weight: 750; color: #535e44; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: clamp(1.2rem, 2.1vw, 1.7rem); font-weight: 790; letter-spacing: -.045em; }
.timeline .role { margin-top: .13rem; font-size: .94rem; font-weight: 680; }
.timeline li p:last-child { margin-top: .32rem; color: #454b3f; }
.education { margin-top: 0; border-color: #c5c9b9; }
.education ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: #454b3f; line-height: 1.8; }

.contact { padding-block: clamp(3rem, 6vw, 5.6rem); background: radial-gradient(ellipse at 85% 110%, #354427, transparent 51%), #1a2118; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact h2 { font-size: clamp(2.65rem, 6vw, 5.6rem); }
.contact p:last-child { max-width: 46ch; margin-top: .8rem; color: #c8cdbe; }
.contact .button { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .86rem; }
.footer-inner { min-height: 4.3rem; }
.footer-inner a { text-underline-offset: .25em; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 60rem) {
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 8.9vw, 6.2rem); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; gap: .7rem; }
}
@media (max-width: 45rem) {
  .header-inner { min-height: 3.9rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.8rem); }
  .hero-actions { margin-top: 1.3rem; }
  .portrait-frame { max-height: 27rem; aspect-ratio: 1.44; }
  .portrait-frame img { width: 43%; max-width: 12.5rem; }
  .portrait-type { font-size: clamp(9rem, 51vw, 18rem); }
  .portrait-orbit { width: 65%; max-width: 20rem; }
  .feature, .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-art { min-height: 0; aspect-ratio: 1.72; }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 32rem) {
  .brand-name { display: none; }
  .nav-contact { padding-inline: .55rem; }
  .hero .button { font-size: .87rem; }
  .milestones { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .milestones > div { padding: .8rem 0; gap: .15rem; }
  .milestones > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .milestones strong { font-size: 1.2rem; }
  .projects, .extra-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
