/* Aaron Ko: a dark, editorial portfolio. Near-black, warm white, one serif, a lot of room. */
:root {
  --bg: #0b0b0c; --bg-2: #121213; --fg: #f3eee5; --muted: #a39d93; --faint: #6d685f; --line: rgba(243, 238, 229, .14);
  --accent: #dcc7a2;
  --sans: 'Geist', system-ui, sans-serif; --serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(.19, .9, .22, 1);
}
body { background: var(--bg); }
em { font-style: italic; color: var(--accent); }
main > section { width: min(1320px, 100% - clamp(40px, 7vw, 120px)); margin-inline: auto; }

/* Navigation */
.a-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px clamp(20px, 3.5vw, 60px); transition: background .4s; }
.a-nav.is-scrolled { background: linear-gradient(rgba(11, 11, 12, .92), rgba(11, 11, 12, 0)); }
.a-mark { justify-self: start; font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.02em; text-decoration: none; line-height: 1; }
.a-where { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.a-where i { width: 7px; height: 7px; border-radius: 50%; background: #7fd49b; box-shadow: 0 0 10px 1px rgba(127, 212, 155, .7); }
.a-nav nav { justify-self: end; display: flex; gap: clamp(14px, 2vw, 30px); }
.a-nav nav a { position: relative; text-decoration: none; font-size: .98rem; padding: 4px 0; }
.a-nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.a-nav nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Type */
.a-display { font-family: var(--serif); font-size: clamp(3.1rem, 6.6vw, 6.6rem); line-height: .96; letter-spacing: -.03em; }
.a-headline { font-family: var(--serif); font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; }
.a-mega { font-family: var(--serif); font-size: clamp(3.8rem, 12.5vw, 13rem); line-height: .9; letter-spacing: -.04em; }
.a-label, .a-kicker { font-size: .95rem; color: var(--muted); }
.a-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 84px); }
.a-pill { display: inline-flex; align-items: center; gap: 12px; padding: 6px 22px 6px 6px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .4s var(--ease), background .3s; }
.a-pill i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); color: var(--fg); transition: transform .5s var(--ease); }
.a-pill:hover { transform: translateY(-2px); background: var(--accent); }
.a-pill:hover i { transform: rotate(-45deg); }

/* Hero */
main > .a-hero { position: relative; width: 100%; min-height: max(100svh, 640px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 110px clamp(20px, 3.5vw, 60px) clamp(28px, 4.5vh, 56px); overflow: hidden; }
.a-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(38% 56% at 50% 52%, rgba(220, 199, 162, .2), transparent 72%); pointer-events: none; }
.a-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 1; }
.a-stage { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.a-stage.is-ready { opacity: 1; }
.a-stage canvas { width: 100%; height: 100%; }
/* The portrait stands on the bottom edge, in front of the cards and behind the words. */
.a-portrait { position: absolute; z-index: 1; left: 50%; bottom: 0; height: min(88%, 900px); width: auto; max-width: none; pointer-events: none; user-select: none; transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px)); animation: a-arrive 1.5s var(--ease) both .15s; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
@keyframes a-arrive { from { opacity: 0; transform: translate(-50%, 46px); } }
.a-hero-copy { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.a-quote { position: relative; z-index: 2; max-width: 21em; display: grid; gap: 14px; }
.a-quote p { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.25; }
.a-quote footer { font-size: .9rem; color: var(--muted); }

/* Work */
.a-work { padding: clamp(90px, 12vw, 180px) 0 clamp(40px, 6vw, 90px); }
.a-project { border-top: 1px solid var(--line); }
.a-project:last-child { border-bottom: 1px solid var(--line); }
.a-project-link { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto auto 3.4rem; align-items: baseline; gap: clamp(12px, 2.4vw, 40px); padding: clamp(22px, 3vw, 40px) 0 clamp(8px, 1vw, 14px); text-decoration: none; }
.a-no, .a-year, .a-kind { font-size: .95rem; color: var(--muted); }
.a-kind { color: var(--fg); }
.a-project-link h3 { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: .92; letter-spacing: -.035em; transition: transform .7s var(--ease), color .4s; }
.a-go { align-self: center; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; transition: background .4s, color .4s, transform .6s var(--ease), border-color .4s; }
.a-project-link:hover h3 { transform: translateX(clamp(8px, 1.6vw, 26px)); color: var(--accent); font-style: italic; }
.a-project-link:hover .a-go { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(45deg); }
.a-project-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(16px, 2vw, 28px) 0 clamp(36px, 5vw, 70px) calc(3.4rem + clamp(12px, 2.4vw, 40px)); }
.a-cover { perspective: 1100px; }
.a-cover canvas { width: 100%; height: auto; border-radius: 14px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); will-change: transform; }
.a-cover:hover canvas { box-shadow: 0 60px 90px -50px rgba(220, 199, 162, .35); }
.a-project-text { display: grid; gap: 22px; align-content: center; }
.a-summary { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.16; letter-spacing: -.01em; }
.a-project-text ul { display: grid; }
.a-project-text li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }
.a-project-text dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; font-size: .95rem; }
.a-project-text dl div { display: contents; }
.a-project-text dt { color: var(--faint); }

/* About */
.a-about { padding: clamp(60px, 9vw, 140px) 0; }
.a-about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 7vw, 120px); }
.a-bio { display: grid; gap: 26px; align-content: start; }
.a-bio > p { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.2; letter-spacing: -.01em; }
.a-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.a-facts dt { font-size: .88rem; color: var(--faint); margin-bottom: 4px; }
.a-facts dd { font-weight: 500; }
.a-facts a { text-underline-offset: 4px; }
.a-skills { display: grid; gap: 30px; align-content: start; }
.a-skills h3 { font-size: .92rem; color: var(--faint); font-weight: 500; margin-bottom: 8px; }
.a-skills li { padding: 10px 0; border-top: 1px solid var(--line); }
.a-earlier strong { font-weight: 600; }
.a-earlier small { display: block; color: var(--faint); font-size: .86rem; }
.a-earlier li { color: var(--muted); }
.a-earlier li strong { color: var(--fg); }

/* Contact */
.a-contact { padding: clamp(80px, 12vw, 190px) 0 clamp(70px, 9vw, 130px); display: grid; gap: 30px; justify-items: center; text-align: center; }
.a-contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 14px; }
.a-mail { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 3rem); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: color .3s, background-size .5s var(--ease); }
.a-mail:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

.foot { --foot-bg: #070708; }

@media (max-width: 900px) {
  .a-where { display: none; }
  .a-nav { grid-template-columns: 1fr auto; }
  main > .a-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; }
  .a-portrait { bottom: auto; top: 64px; height: 56%; }
  .a-hero::after { height: 46%; }
  .a-quote { max-width: 30em; }
  .a-quote p { font-size: 1.1rem; }
  .a-project-link { grid-template-columns: 2.2rem minmax(0, 1fr) 2.8rem; }
  .a-kind { grid-column: 2; grid-row: 2; }
  .a-year { display: none; }
  .a-go { width: 2.8rem; height: 2.8rem; grid-row: 1; grid-column: 3; }
  .a-project-body { grid-template-columns: 1fr; padding-left: 0; }
  .a-about-grid { grid-template-columns: 1fr; }
  .a-facts { grid-template-columns: 1fr; }
}
