/* Michael AAA portfolio · black & white + eye · Dec 6, 2026
   World: a poster series. White paper, black ink, bold grotesk headlines; every section is its own flat colour
   field with a hard cut to the next. Accent: signal orange-red. No blue anywhere.
   Display: Archivo (expanded, heavy). Accent voice: Instrument Serif italic. Text: Geist. Data: Geist Mono. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink-0: #0b0b0b;
  --accent: #ff3d0f;      /* signal orange-red: the brand accent */
  --lime: #c8f53a;
  --magenta: #ff3fa4;
  --yellow: #ffe03d;
  --grot: "Archivo", "Geist", system-ui, sans-serif;
  /* the old dark tokens now point at ink, so every inherited rule reads black on white */
  --ink: #ffffff;
  --white: var(--ink-0);
  --muted: #3b3b3b;
  --ice: var(--ink-0);
  --blue: var(--ink-0);
  --signal: var(--ink-0);
  --signal-strong: var(--ink-0);
  --line: var(--ink-0);
  --hair: var(--ink-0);
  --panel: #fff;
  --surface: #fff;
  --fg: var(--ink-0);
  --fg2: #333333;
  --focus: var(--ink-0);
}
html { scrollbar-color: var(--ink-0) var(--paper); caret-color: var(--accent); }
body { background: var(--paper); color: var(--ink-0); }
::selection { color: #fff; background: var(--ink-0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { background: var(--ink-0); color: #fff; border-radius: 0; }
h1, h2, h3 { color: var(--fg); }

/* ---------- header ---------- */
.header { background: #fff; backdrop-filter: none; border-bottom: 2px solid var(--ink-0); color: var(--ink-0); }
.brand-symbol { border: 2px solid var(--ink-0); border-radius: 0; background: var(--ink-0); color: #fff; box-shadow: none; font-style: italic; }
.brand-name { font-family: var(--grot); font-weight: 750; letter-spacing: -.01em; font-stretch: 105%; }
.nav { color: var(--ink-0); font-weight: 550; }
.nav a:hover { color: var(--ink-0); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-contact { background: var(--ink-0); color: #fff; border: 2px solid var(--ink-0); }
.nav-contact:hover { background: var(--accent); border-color: var(--ink-0); color: var(--ink-0); text-decoration: none !important; }

/* ---------- hero: white paper, the eye ---------- */
.hero { background: var(--paper); border-bottom: 0; box-shadow: none; overflow: hidden; }
.hero::before, .hero::after { content: none; }
.hero #cave, .hero .portal { display: none; }
.hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(16px, 3vw, 48px); min-height: clamp(540px, calc(100svh - 66px - 52px), 760px); }
.hero-copy { grid-area: 1 / 1; padding-block: 48px 84px; }
.eye-stage { grid-area: 1 / 2; position: relative; align-self: center; width: 100%; aspect-ratio: 580 / 380; margin-right: -2%; }
h1 { font: 850 clamp(3.4rem, 7.2vw, 6rem)/.84 var(--grot); font-stretch: 118%; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 26px; color: var(--ink-0); }
h1 span { display: inline; margin: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
/* Motion Kit splits the h1 into word/letter spans; only the outer span around "AAA" gets the accent voice */
h1 > span:not(.mk-w) { display: block; margin-top: .06em; padding-bottom: .04em; font: italic 400 1.18em/.8 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--accent); }
.hero-description { max-width: 26rem; color: var(--fg2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-description strong { color: var(--ink-0); font-weight: 700; }
.button { border: 2px solid var(--ink-0); border-radius: 999px; background: transparent; color: var(--ink-0); font-weight: 650; min-height: 48px; padding: 11px 20px;
  transition: background-color .2s var(--ease-out), color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.button:hover { background: var(--ink-0); color: #fff; }
.button-primary { background: var(--ink-0); color: #fff; border-color: var(--ink-0); }
.button-primary:hover { background: var(--accent); color: var(--ink-0); box-shadow: 0 10px 22px -12px rgb(0 0 0 / .55); transform: translateY(-2px); }
.hero-email { color: var(--fg2); font-size: .92rem; margin-top: 16px; }
.hero-email a { color: var(--ink-0); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-email a:hover { text-decoration-color: var(--accent); }
.proof { display: flex; gap: 0; margin: 26px 0 0; color: var(--ink-0); border-top: 2px solid var(--ink-0); width: fit-content; }
.proof > div { padding: 10px 26px 0 0; margin-right: 26px; }
.proof > div + div { padding-left: 0; }
.proof dt { font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); }
.proof dd { margin: 4px 0 0; font-size: .9rem; color: var(--fg2); }
.proof strong { font: 850 2.1rem/1 var(--grot); font-stretch: 112%; letter-spacing: -.03em; color: var(--ink-0); font-variant-numeric: tabular-nums; }
.brand-roll { margin-top: 16px; max-width: 34rem; font-size: .9rem; color: var(--fg2); line-height: 1.6; }
.brand-roll span { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.brand-roll a { color: var(--ink-0); text-decoration: underline; text-decoration-thickness: 2px; }

.motion-controls { bottom: 18px; right: 0; }
.motion-controls [data-skip-intro] { display: none !important; }
.motion-controls button { background: #fff; color: var(--ink-0); border: 2px solid var(--ink-0); border-radius: 999px; font: 600 .74rem/1 var(--ui); padding: 7px 12px; }
.motion-controls button:hover { background: var(--ink-0); color: #fff; }

/* ---------- the eye (shared by the hero, the corner eyes and the opening) ---------- */
.eye-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.eye-svg * { vector-effect: non-scaling-stroke; }
.eye-white { fill: #fff; }
.eye-outline { fill: none; stroke: var(--ink-0); stroke-width: 3.2; stroke-linejoin: round; }
.eye-svg:not(.is-mini) .eye-crease { display: none; }
.eye-crease { fill: none; stroke: var(--ink-0); stroke-width: 2; stroke-linecap: round; }
.eye-under { fill: none; stroke: var(--ink-0); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 7; }
.eye-lashes { fill: none; stroke: var(--ink-0); stroke-width: 2; stroke-linecap: square; }
.eye-label { font: 500 13px var(--mono); fill: var(--ink-0); letter-spacing: .04em; }
.eye-iris { fill: #fff; stroke: var(--ink-0); stroke-width: 2.4; }
.eye-film { fill: none; stroke: var(--ink-0); stroke-width: 26; vector-effect: none; }
.eye-sprockets rect { fill: #fff; vector-effect: none; }
.eye-ring-text { font: 600 12.5px var(--mono); fill: var(--ink-0); letter-spacing: .12em; }
.eye-rays { stroke: var(--ink-0); stroke-width: 1.1; }
.eye-pupil-rim { fill: #fff; stroke: var(--ink-0); stroke-width: 2.4; }
.eye-blades { fill: none; stroke: var(--ink-0); stroke-width: 1.5; }
.eye-hole { fill: var(--ink-0); stroke: var(--ink-0); stroke-width: 1.5; stroke-linejoin: round; }
.eye-play { fill: var(--accent); }
.eye-glint { fill: #fff; stroke: var(--ink-0); stroke-width: 2; }
.is-mini .eye-outline { stroke-width: 2.2; }
.is-mini .eye-crease, .is-mini .eye-lashes { stroke-width: 1.6; }
.is-mini .eye-iris, .is-mini .eye-pupil-rim { stroke-width: 1.6; }
.is-mini .eye-under { display: none; }
.is-mini .eye-rays, .is-mini .eye-blades { stroke-width: 1; }
.is-mini .eye-glint { stroke-width: 1.4; }

.peeper { position: absolute; z-index: 2; top: clamp(14px, 2.6vw, 30px); right: max(16px, calc((100% - var(--content)) / 2)); width: clamp(58px, 6.4vw, 88px); aspect-ratio: 550 / 330; pointer-events: none; }
.section.wrap > .peeper { right: 0; }
main > section { position: relative; }

/* opening: sits on top of a page that is already there; a CSS timer clears it even if the script stalls */
.eye-intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #fff; cursor: pointer;
  animation: eye-intro-failsafe .4s 3.6s forwards; transition: opacity .4s var(--ease-out), visibility .4s; }
.eye-intro-stage { width: min(78vw, 720px); aspect-ratio: 580 / 380; transition: transform .35s var(--ease-out), opacity .2s; }
.eye-intro-name { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; opacity: 0;
  font: 850 clamp(3rem, 11vw, 9rem)/.82 var(--grot); font-stretch: 120%; letter-spacing: -.045em; text-transform: uppercase; color: var(--ink-0); }
.eye-intro-name span { display: block; font: italic 400 1.15em/.8 var(--display); text-transform: none; letter-spacing: -.02em; color: #fff; }
.eye-intro-skip { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; margin: 0; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #555; }
.eye-intro.is-cut { background: var(--accent); }
.eye-intro.is-cut .eye-intro-stage { opacity: 0; transform: scale(2.4); }
.eye-intro.is-cut .eye-intro-name { opacity: 1; }
.eye-intro.is-cut .eye-intro-skip { color: var(--ink-0); }
.eye-intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes eye-intro-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- the black band: all nine brands ---------- */
.band { overflow: hidden; background: var(--ink-0); color: #fff; border-block: 2px solid var(--ink-0); }
.band-track { display: flex; width: max-content; animation: band-run 46s linear infinite; }
.band-track span { display: inline-flex; align-items: center; gap: 22px; padding: 15px 11px; white-space: nowrap; font: 800 1.02rem/1 var(--grot); font-stretch: 112%; letter-spacing: .01em; text-transform: uppercase; }
.band-track span.mk-pre { opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; clip-path: none !important; }
.band-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@keyframes band-run { to { transform: translateX(-50%); } }
.motion-paused .band-track { animation-play-state: paused; }

/* ---------- section fields: hard cuts, one colour each ---------- */
.section { padding-block: clamp(72px, 9vw, 128px) clamp(64px, 8vw, 112px); }
.section h2 { font: 850 clamp(2.8rem, 7vw, 6rem)/.86 var(--grot); font-stretch: 116%; letter-spacing: -.04em; text-transform: uppercase; color: var(--fg); }
.section-intro { color: var(--fg2); font-size: 1.02rem; max-width: 40ch; }
.viral-section, #work { border: 0; border-image: conic-gradient(var(--field) 0 0) fill 0 // 0 100vw; }
#viral { --field: var(--accent); --fg: var(--ink-0); --fg2: #1d1d1d; }
#work { --field: var(--lime); --fg: var(--ink-0); --fg2: #1d1d1d; }
.campaigns { --field: var(--magenta); --fg: var(--ink-0); --fg2: #1d1d1d; background: var(--field); border-block: 0; }
.about { --field: var(--yellow); --fg: var(--ink-0); --fg2: #1d1d1d; background: var(--field); }
.contact { --field: var(--ink-0); --fg: #fff; --fg2: #d9d9d9; --white: #fff; --focus: var(--lime); background: var(--field); border-block: 0; color: #fff; }

/* top three */
.rank-meta { border-bottom: 2px solid var(--ink-0); }
.roman { font: italic 400 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--display); color: var(--ink-0); }
.view-figure { font: 850 clamp(2.6rem, 4.6vw, 4.1rem)/.9 var(--grot); font-stretch: 112%; letter-spacing: -.04em; color: var(--ink-0); }
.ranked-work li:first-child .view-figure { color: var(--ink-0); }
.view-unit, .measurement-date { color: #1d1d1d; }

/* cards: white posters with black rules */
.work-card { --fg: var(--ink-0); --fg2: #3b3b3b; background: #fff; border: 2px solid var(--ink-0); border-radius: 0; color: var(--ink-0); }
.work-card:hover, .work-card:focus-within { border-color: var(--ink-0); box-shadow: 0 18px 28px -18px rgb(0 0 0 / .6); transform: translateY(-3px); }
.work-media { background: #e8e8e8; }
.work-media :is(button, a) { background: linear-gradient(180deg, transparent 62%, rgb(0 0 0 / .35)); }
.work-media :is(button, a):focus-visible { outline: 3px solid #fff; outline-offset: -7px; box-shadow: inset 0 0 0 4px var(--ink-0); }
.play { border: 2px solid var(--ink-0); background: #fff; color: var(--ink-0); backdrop-filter: none; }
.work-media :is(button, a):hover .play { background: var(--ink-0); color: #fff; }
.external-platform { background: #fff; color: var(--ink-0); border: 2px solid var(--ink-0); }
.work-caption { border-top: 2px solid var(--ink-0); }
.work-title { color: var(--ink-0); font-weight: 650; }
.work-meta { color: #3b3b3b; }
.poster-symbol, .poster-art { background: #111; color: #fff; }
.poster-art::after { content: none; }

.category-nav a { border: 2px solid var(--ink-0); color: var(--ink-0); background: transparent; font-weight: 600; }
.category-nav a:hover { background: var(--ink-0); color: var(--lime); border-color: var(--ink-0); }
.work-category { border-top: 2px solid var(--ink-0); }
.work-category > h3 { font: 800 clamp(1.9rem, 3.4vw, 2.8rem)/1 var(--grot); font-stretch: 110%; letter-spacing: -.035em; }
.ranked-work { scrollbar-color: var(--ink-0) transparent; }

/* showreel: the only dark band inside the lime, its wall in black and white */
#showreel.reel-scene { --fg: #fff; background: var(--ink-0); }
.reel-wall { background: var(--ink-0); }
.reel-wall::after { background: radial-gradient(120% 90% at 50% 50%, transparent 35%, #0b0b0bcc 100%); }
.reel-col img { filter: grayscale(1) contrast(1.1) brightness(.78); border-radius: 0; }
.reel-copy h3 { font: 850 clamp(2.6rem, 5.4vw, 4.8rem)/.9 var(--grot); font-stretch: 116%; letter-spacing: -.04em; text-transform: uppercase; color: #fff; }
.reel-copy .work-card { box-shadow: none; border-color: #fff; }

/* campaigns: a typographic roll on magenta; rows invert to black on hover */
.campaign-grid { border-bottom: 2px solid var(--ink-0); }
.campaign { border-top: 2px solid var(--ink-0); isolation: isolate; }
.campaign::before { inset: 0 -14px; border-radius: 0; background: var(--ink-0); opacity: 1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .35s var(--ease-out); }
.campaign:hover::before { opacity: 1; transform: scaleY(1); }
.campaign h3 { font: 850 clamp(1.9rem, 3.8vw, 3.3rem)/1 var(--grot); font-stretch: 112%; letter-spacing: -.035em; color: var(--ink-0); }
.campaign p, .campaign p:not(.eyebrow) { color: #1d1d1d; }
.campaign:hover h3 { color: var(--magenta); }
.campaign:hover p { color: #fff; }
.campaign-status { color: var(--ink-0); border: 2px solid var(--ink-0); border-radius: 999px; padding: 5px 9px; font-weight: 600; }
.campaign-status.is-recent { background: var(--ink-0); color: #fff; }
.campaign:hover .campaign-status { color: #fff; border-color: #fff; }
.campaign:hover .campaign-status.is-recent { background: #fff; color: var(--ink-0); }
.campaign-pipeline h3 { font: 850 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--grot); font-stretch: 110%; text-transform: uppercase; letter-spacing: -.03em; }
.campaign-pipeline p { color: #1d1d1d; }

/* about: a black-and-white portrait on yellow */
.about .portrait { border: 2px solid var(--ink-0); border-radius: 0; box-shadow: none; filter: grayscale(1) contrast(1.06); }
.portrait-frame figcaption { color: var(--ink-0); }
.about-text { color: var(--ink-0); font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.about-text em { color: var(--yellow); background: var(--ink-0); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.about-topics li { border: 2px solid var(--ink-0); color: var(--ink-0); font-weight: 600; }

/* contact: black, the last poster */
.contact h2 { font-size: clamp(3.2rem, 8vw, 6rem); color: #fff; }
.contact .section-intro { color: #d9d9d9; }
.social-links a { border: 2px solid #fff; color: #fff; }
.social-links a:hover { background: #fff; color: var(--ink-0); }
.email-card { background: transparent; border: 2px solid #fff; border-radius: 0; color: #fff; }
.email-card span { color: #d9d9d9; }
.email-card strong { color: #fff; font: 800 clamp(1.4rem, 2.4vw, 2rem)/1.05 var(--grot); font-stretch: 105%; letter-spacing: -.02em; }
.email-card .ic { color: #fff; }
.email-card:hover { background: #fff; border-color: #fff; }
.email-card:hover :is(strong, span, .ic) { color: var(--ink-0); }
.email-card-primary { background: var(--accent); border-color: var(--accent); }
.email-card-primary :is(span, strong, .ic) { color: var(--ink-0); }
.email-card-primary strong { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.email-card-primary:hover { background: #fff; border-color: #fff; }

.footer { background: var(--ink-0); color: #d9d9d9; border-top: 1px solid #333; --focus: var(--lime); }
.footer a { color: #fff; text-decoration-color: #ffffff80; }
.footer a:hover { color: var(--accent); }

/* video viewer */
.viewer { background: #fff; color: var(--ink-0); border: 2px solid var(--ink-0); border-radius: 0; }
.viewer::backdrop { background: rgb(0 0 0 / .82); backdrop-filter: none; }
.viewer-close { background: var(--ink-0); color: #fff; border: 2px solid var(--ink-0); }
.viewer-original { color: var(--ink-0); }

@media (max-width: 840px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .eye-stage { grid-area: 1 / 1; width: min(100%, 560px); justify-self: center; margin: 28px 0 0; }
  .hero-copy { grid-area: 2 / 1; padding-block: 8px 76px; }
}
@media (max-width: 620px) {
  .brand-name, .nav a { white-space: nowrap; }
  .nav { gap: 14px; font-size: .8rem; }
  .nav-contact { padding: 7px 12px; }
  h1 { font-size: clamp(3rem, 14.5vw, 4.4rem); margin-bottom: 18px; }
  .eye-stage { width: 100%; margin-top: 18px; }
  .proof strong { font-size: 1.8rem; }
  .proof > div { margin-right: 18px; padding-right: 18px; }
  .band-track span { font-size: .86rem; padding-block: 12px; }
  .section h2 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .campaign::before { inset: 0 -8px; }
  .ranked-work { scrollbar-color: var(--ink-0) transparent; }
}
@media (max-width: 440px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; flex-wrap: wrap; width: auto; }
  .band-track span:nth-child(n+10) { display: none; }
  .eye-intro { display: none; }
}
