/* Michael AAA portfolio · Dec 6, 2026 design pass
   World: a late-night broadcast. Ink-black sky, the flow-field eye, ice-blue signal.
   Display: Instrument Serif (the incumbent Times voice, drawn properly). UI: Geist. Data: Geist Mono (view counts, dates). */
:root {
  --display: "Instrument Serif", "Times New Roman", Times, serif;
  --ui: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: var(--display);
  --signal: #a5c3ff;
  --signal-strong: #d6e4ff;
  --hair: #1f2638;
  --panel: #0a0e18;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--ui);
  font-feature-settings: "ss01";
}
html { scrollbar-color: #33415f var(--ink); caret-color: var(--signal); }
::selection { color: #050811; background: var(--signal); }
a { text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }

/* drawn icons replace the ↗ ↓ glyphs */
.ic { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; vertical-align: -.12em;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-out { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E"); }
.ic-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5v15M6 13.5l6 6 6-6'/%3E%3C/svg%3E"); }

/* header */
.brand-symbol { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; padding: 1px 9px 3px; }
.brand-name { font-weight: 550; letter-spacing: -.01em; }
.nav a { transition: color .2s; }
.nav-contact { border-radius: 999px; padding: 7px 14px; border-color: #34405c; color: var(--white); }
.nav-contact:hover { border-color: var(--signal); }

/* hero */
h1 { font-size: clamp(4.2rem, 8.4vw, 6rem); line-height: .86; letter-spacing: -.03em; margin: 0 0 22px; }
h1 span { font-style: italic; letter-spacing: -.01em; color: var(--signal); margin-top: .02em; }
.hero-description { max-width: 27rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; color: #b8c3da; }
.hero-description strong { color: var(--white); font-weight: 600; }
.button { gap: 10px; min-height: 46px; padding: 11px 18px; border-radius: 999px; font-weight: 600; letter-spacing: -.005em;
  transition: background-color .25s var(--ease-out), border-color .25s, transform .25s var(--ease-out); }
.button:active { transform: translateY(1px); }
.button .ic { font-size: 1.05em; }
.proof { font-size: .82rem; color: #93a0ba; }
.proof strong { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.motion-controls button { border-radius: 999px; padding: 6px 12px; font-family: var(--ui); }

/* section rhythm: more air above a heading than below */
.section { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px); }
.section h2 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); letter-spacing: -.025em; line-height: .95; }
.section-head { align-items: end; margin-bottom: clamp(28px, 4vw, 48px); gap: 10px 32px; }
.section-intro { max-width: 46ch; color: #9aa6bf; }

/* top three: the number is the headline */
.ranked-work { gap: clamp(16px, 2.4vw, 32px); counter-reset: none; }
.rank-meta { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.roman { font: italic 400 clamp(1.4rem, 2.2vw, 1.8rem)/1 var(--display); color: #7f92b8; letter-spacing: 0; align-self: start; padding-top: 6px; }
.view-count { display: grid; justify-items: end; text-align: right; white-space: normal; color: var(--muted); font-size: .8rem; }
.view-figure { font: 400 clamp(2.4rem, 4.4vw, 3.9rem)/.9 var(--display); letter-spacing: -.02em; color: var(--white); font-variant-numeric: lining-nums tabular-nums; }
.ranked-work li:first-child .view-figure { color: var(--signal-strong); }
.view-unit { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8f9cb6; margin-top: 6px; }
.measurement-date { font-family: var(--mono); font-size: .68rem; letter-spacing: .02em; color: #75829c; margin-top: 3px; text-align: right; }
.ranked-work .work-media { aspect-ratio: 3 / 4; }

/* cards: vertical posters with their real titles */
.work-card { border-radius: 14px; border-color: #1d2537; background: var(--panel); display: flex; flex-direction: column;
  transition: border-color .3s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.work-card:hover, .work-card:focus-within { border-color: #5f7fc4; box-shadow: 0 18px 40px -22px #000, 0 8px 30px -12px #2f56c455; }
.work-media { aspect-ratio: 9 / 16; background: linear-gradient(160deg, #121a2e, #0a0f1b); }
.work-media img { animation: poster-in .7s var(--ease-out) both; }
@keyframes poster-in { from { opacity: .35; filter: saturate(.4) brightness(.7); } to { opacity: 1; filter: none; } }
.work-media :is(button, a) { background: linear-gradient(180deg, transparent 55%, #05070bcc); }
.play { width: 42px; height: 42px; border-color: #c6d8ff66; background: #070b16cc; backdrop-filter: blur(6px); }
.external-platform { display: inline-flex; align-items: center; gap: 4px; left: 10px; bottom: 13px; padding: 4px 8px; border-radius: 999px; font: 500 .7rem/1 var(--mono); letter-spacing: .02em; background: #070b16d9; }
.work-caption { display: grid; gap: 3px; padding: 11px 12px 13px; border-top: 1px solid #161d2d; }
.work-title { font-size: .88rem; line-height: 1.3; font-weight: 550; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { font: 400 .7rem/1.3 var(--mono); color: #8794ae; font-variant-numeric: tabular-nums; }
.ranked-work .work-caption { padding: 13px 14px 15px; }
.ranked-work .work-title { font-size: .98rem; }

.category-nav { gap: 8px; }
.category-nav a { font: 500 .84rem/1 var(--ui); padding: 9px 14px; border: 1px solid #252e44; border-radius: 999px; color: #b4c0d8; transition: border-color .2s, color .2s, background-color .2s; }
.category-nav a:hover { color: var(--white); border-color: var(--signal); text-decoration: none; background: #111a2e; }
.work-category { padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); border-top-color: var(--hair); }
.work-category > h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 18px; }
.work-collection .work-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.reel-copy h3 { letter-spacing: -.02em; }
/* long-form is landscape: give it a landscape frame */
.work-card[data-category="longform"] { grid-column: span 2; }
.work-card[data-category="longform"] .work-media { aspect-ratio: 16 / 9; }
.reel-copy .work-card { display: block; }

/* campaigns: a typographic roll, not a card grid */
.campaign-grid { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--hair); }
.campaign { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) 9.5rem; align-items: center; gap: 6px clamp(16px, 3vw, 40px);
  padding-block: clamp(16px, 2vw, 22px); border-top: 1px solid var(--hair); transition: background-color .35s var(--ease-out); position: relative; }
.campaign::before { content: ""; position: absolute; inset: 0 -18px; z-index: -1; border-radius: 10px; background: radial-gradient(60% 140% at 0% 50%, #2a4cff1c, transparent 70%); opacity: 0; transition: opacity .4s var(--ease-out); }
.campaign:hover::before { opacity: 1; }
.campaign h3 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.02em; transition: color .3s, transform .45s var(--ease-out); }
.campaign:hover h3 { color: var(--signal-strong); transform: translateX(6px); }
.campaign p { color: #a3afc6; max-width: 44ch; }
.campaign-status { justify-self: end; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7d8aa5; }
.campaign-status.is-recent { color: #0b1430; background: var(--signal); padding: 5px 9px; border-radius: 999px; }
.campaign-pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(28px, 4vw, 44px); padding: 22px 0 0; border-top: 0; }
.campaign-pipeline h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.campaign-pipeline p { color: #a3afc6; }
.campaign-pipeline .button { margin-left: auto; }

/* about: an editorial spread */
.about-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(28px, 6vw, 88px); }
.portrait-frame { margin: 0; position: relative; }
.about .portrait { aspect-ratio: 4 / 5; object-position: 50% 22%; margin: 0; border-radius: 18px; border-color: #222b40; box-shadow: 0 40px 80px -40px #000; }
.portrait-frame figcaption { margin-top: 12px; font: 400 .72rem/1.3 var(--mono); letter-spacing: .06em; color: #7d8aa5; }
.about-copy h2 { margin-bottom: clamp(18px, 2.4vw, 28px); }
.about-text { font: 400 clamp(1.5rem, 2.5vw, 2.15rem)/1.22 var(--display); letter-spacing: -.005em; color: #d7def0; max-width: 30ch; margin: 0; }
.about-text em { color: var(--signal); }
.about-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: clamp(22px, 3vw, 34px) 0 0; list-style: none; }
.about-topics li { font-size: .82rem; font-weight: 500; padding: 7px 13px; border: 1px solid #28314a; border-radius: 999px; color: #c0cbe2; }

/* contact */
.contact { background: radial-gradient(70% 90% at 85% 10%, #1b2f6a55, transparent 60%), radial-gradient(50% 70% at 0% 100%, #3a1f7a2b, transparent 60%), #070a12; }
.contact h2 { font-size: clamp(3.4rem, 7vw, 6rem); letter-spacing: -.03em; }
.contact .section-intro { font-size: 1.05rem; max-width: 34ch; }
.social-links { gap: 8px; margin-top: 22px; }
.social-links a { padding: 8px 14px; border: 1px solid #2a3550; border-radius: 999px; font-size: .86rem; font-weight: 500; color: #cfdcf7; transition: border-color .2s, background-color .2s; }
.social-links a:hover { text-decoration: none; border-color: var(--signal); background: #121c33; }
.email-list { gap: 12px; }
.email-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding: 18px 20px; border-radius: 16px; border-color: #26304a; background: #0a0f1c;
  transition: border-color .3s var(--ease-out), background-color .3s, transform .35s var(--ease-out); }
.email-card span { grid-column: 1; font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8ea6d6; }
.email-card strong { grid-column: 1; font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -.01em; color: var(--white); }
.email-card .ic { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.4rem; color: var(--signal); transition: transform .35s var(--ease-out); }
.email-card:hover { border-color: var(--signal); background: #0e1628; }
.email-card:hover .ic { transform: translate(3px, -3px); }
.email-card-primary { background: linear-gradient(135deg, #142453, #0b1124 70%); border-color: #3b5395; }
.email-card-primary strong { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }

.footer { font-size: .8rem; }
.footer a { text-decoration: underline; text-decoration-color: #ffffff30; }
.footer a:hover { text-decoration-color: currentColor; }
.viewer { border-radius: 18px; }
.viewer-close { border-radius: 999px; padding: 6px 14px; }

@media (max-width: 840px) {
  .campaign { grid-template-columns: minmax(0, 1fr) auto; }
  .campaign p { grid-column: 1 / -1; grid-row: 2; }
  .campaign-status { grid-column: 2; grid-row: 1; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(3.6rem, 16vw, 4.6rem); margin-bottom: 14px; }
  h1 span { display: inline; }
  .ranked-work { grid-auto-columns: min(76%, 290px); }
  .view-figure { font-size: 2.6rem; }
  .work-collection .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-pipeline .button { margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about .portrait { aspect-ratio: 4 / 4.2; }
  .email-card { padding: 16px; }
  .email-card-primary strong { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work-media img { animation: none; }
  .campaign:hover h3, .email-card:hover .ic { transform: none; }
}
