/* Minimal black page, one typeface, neon used only where it means something: each job's own colour and a soft glow. */
:root {
  --bg: #050505;
  --ink: #f5f5f5;
  --muted: #8c8c8c;
  --accent: #c6ff00;
  --hue-about: #39ff14;
  --hue-zillow: #00e1ff;
  --hue-wizards: #ff2e93;
  --hue-avanade: #ff8a00;
  --hue-uw: #a385ff;
  --hue-timing: #3dffa8;
  --hue-midpack: #ff3b2f;

  --font: "General Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --step-list: clamp(1.375rem, 0.9rem + 1.3vw, 2.125rem);
  --step-display: clamp(3.25rem, 1rem + 6vw, 6.5rem);

  --margin: clamp(20px, 3.4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 200ms ease; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  min-height: max(100svh, 640px);
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(32px, 5vh, 56px);
  padding: var(--margin);
}

/* Name and line */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
h1 { font-size: var(--step-display); font-weight: 600; line-height: 0.95; letter-spacing: -0.035em; }

/* Name card: a spinning conic-gradient border in the selected item's colour, with a white highlight and a soft under-glow. */
body { --card-hue: var(--hue-about); }
body:has([data-key="about"][aria-pressed="true"]) { --card-hue: var(--hue-about); }
body:has([data-key="zillow"][aria-pressed="true"]) { --card-hue: var(--hue-zillow); }
body:has([data-key="wizards"][aria-pressed="true"]) { --card-hue: var(--hue-wizards); }
body:has([data-key="avanade"][aria-pressed="true"]) { --card-hue: var(--hue-avanade); }
body:has([data-key="uw"][aria-pressed="true"]) { --card-hue: var(--hue-uw); }
body:has([data-key="timing"][aria-pressed="true"]) { --card-hue: var(--hue-timing); }
body:has([data-key="midpack"][aria-pressed="true"]) { --card-hue: var(--hue-midpack); }
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes spin { to { --spin: 360deg; } }
.card {
  --ring: conic-gradient(from var(--spin), var(--card-hue) 0% 62%, color-mix(in srgb, var(--card-hue) 30%, #fff) 72%, #fff 75%, color-mix(in srgb, var(--card-hue) 30%, #fff) 78%, var(--card-hue) 88% 100%);
  position: relative; isolation: isolate; width: fit-content;
  padding: clamp(8px, calc(1.4vw - 4px), 18px) clamp(24px, 2.8vw, 40px);
  border-radius: 18px;
  animation: spin 6s linear infinite;
}
/* Two layers under the text: the blurred glow at the back, then the dark card with its ring on top of it. */
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.card::before { z-index: -2; background: var(--ring); filter: blur(22px); opacity: 0.45; }
.card::after {
  z-index: -1; border: 2px solid transparent;
  background: linear-gradient(#0d0c12, #0d0c12) padding-box, var(--ring) border-box;
}
.lead { margin-top: 24px; max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; color: var(--muted); }
.out {
  flex: none; padding: 12px 0; text-decoration: none; font-weight: 500;
  color: var(--accent); text-shadow: 0 0 14px rgba(198, 255, 0, 0.55);
  transition: text-shadow 200ms ease, transform 200ms var(--ease-out);
}
.out:hover { color: var(--accent); text-shadow: 0 0 22px rgba(198, 255, 0, 0.9); }
.outs { flex: none; display: flex; gap: 28px; }
.out--mid, .out--mid:hover { color: #ff3b2f; }
.out--mid { text-shadow: 0 0 14px rgba(255, 59, 47, 0.55); }
.out--mid:hover { text-shadow: 0 0 22px rgba(255, 59, 47, 0.9); }
.out:active { transform: translateY(1px); }

/* The list and the panel it lights */
.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.list { position: relative; display: grid; gap: 2px; max-width: 560px; }
.list button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  width: 100%; padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: var(--step-list); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 250ms ease, text-shadow 250ms ease, transform 250ms var(--ease-out);
}
.list button .yr { font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.list button:hover { color: var(--ink); }
.list button[aria-pressed="true"] {
  color: var(--hue);
  text-shadow: 0 0 18px color-mix(in srgb, var(--hue) 55%, transparent);
}
.list button[aria-pressed="true"] .yr { color: var(--hue); text-shadow: none; }


/* Each item's colour, and the list's colour: whatever is hovered or focused, else what is selected. CSS only. */
[data-key="about"] { --hue: var(--hue-about); }
[data-key="zillow"] { --hue: var(--hue-zillow); }
[data-key="wizards"] { --hue: var(--hue-wizards); }
[data-key="avanade"] { --hue: var(--hue-avanade); }
[data-key="uw"] { --hue: var(--hue-uw); }
[data-key="timing"] { --hue: var(--hue-timing); }
[data-key="midpack"] { --hue: var(--hue-midpack); }
.list { --hue: var(--hue-about); }
.list:has([data-key="about"][aria-pressed="true"]) { --hue: var(--hue-about); }
.list:has([data-key="zillow"][aria-pressed="true"]) { --hue: var(--hue-zillow); }
.list:has([data-key="wizards"][aria-pressed="true"]) { --hue: var(--hue-wizards); }
.list:has([data-key="avanade"][aria-pressed="true"]) { --hue: var(--hue-avanade); }
.list:has([data-key="uw"][aria-pressed="true"]) { --hue: var(--hue-uw); }
.list:has([data-key="timing"][aria-pressed="true"]) { --hue: var(--hue-timing); }
.list:has([data-key="midpack"][aria-pressed="true"]) { --hue: var(--hue-midpack); }
.list:has([data-key="about"]:hover), .list:not(:has(button:hover)):has([data-key="about"]:focus-visible) { --hue: var(--hue-about); }
.list:has([data-key="zillow"]:hover), .list:not(:has(button:hover)):has([data-key="zillow"]:focus-visible) { --hue: var(--hue-zillow); }
.list:has([data-key="wizards"]:hover), .list:not(:has(button:hover)):has([data-key="wizards"]:focus-visible) { --hue: var(--hue-wizards); }
.list:has([data-key="avanade"]:hover), .list:not(:has(button:hover)):has([data-key="avanade"]:focus-visible) { --hue: var(--hue-avanade); }
.list:has([data-key="uw"]:hover), .list:not(:has(button:hover)):has([data-key="uw"]:focus-visible) { --hue: var(--hue-uw); }
.list:has([data-key="timing"]:hover), .list:not(:has(button:hover)):has([data-key="timing"]:focus-visible) { --hue: var(--hue-timing); }
.list:has([data-key="midpack"]:hover), .list:not(:has(button:hover)):has([data-key="midpack"]:focus-visible) { --hue: var(--hue-midpack); }

/* The under-bar: anchored to the selected name, it slides from item to item in that item's colour. */
.list button[aria-pressed="true"] .nm { anchor-name: --active-item; }
/* Under the pointer (or keyboard focus), the hovered name takes the anchor and the bar follows it. */
.list:has(button:hover) button .nm,
.list:has(button:focus-visible) button .nm { anchor-name: none; }
.list:has(button:hover) button:hover .nm,
.list:not(:has(button:hover)):has(button:focus-visible) button:focus-visible .nm { anchor-name: --active-item; }
@supports (anchor-name: --a) {
  .list::after {
    content: ""; position: absolute; position-anchor: --active-item;
    left: anchor(left); top: calc(anchor(bottom) + 2px); width: anchor-size(width); height: 3px;
    background: var(--hue); box-shadow: 0 0 12px var(--hue), 0 0 2px var(--hue);
    pointer-events: none;
    transition: left 450ms var(--ease-out), top 450ms var(--ease-out), width 450ms var(--ease-out), background-color 450ms ease, box-shadow 450ms ease;
  }
}
@supports not (anchor-name: --a) {
  .list button[aria-pressed="true"] .nm { text-decoration: underline 3px; text-underline-offset: 0.22em; }
}

.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 3vw, 48px); align-items: end; }
.frame {
  position: relative; aspect-ratio: 4 / 5; max-height: 54svh; width: 100%;
  background: #000; isolation: isolate; overflow: hidden;
  box-shadow: 0 30px 80px -36px var(--hue);
  transition: box-shadow 600ms ease;
}
.frame img, .frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25);
  opacity: 0; transform: scale(1.02);
  transition: opacity 600ms ease, transform 8s linear;
}
.frame .is-active { opacity: 1; transform: scale(1.08); }
.frame img.logo { object-fit: contain; padding: 14%; background: #fff; }
.frame video.run { z-index: 0; transition: opacity 300ms ease; }
.frame video.run.is-on { opacity: 1; transform: none; }
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--hue); mix-blend-mode: multiply;
  transition: background-color 600ms ease;
}
.text h2 { font-size: var(--step-lead); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.text .role { margin: 6px 0 14px; color: var(--hue); font-size: var(--step-small); font-weight: 500; transition: color 400ms ease; }
.text p { max-width: 42ch; }
.p-link {
  display: inline-block; margin-top: 16px; font-weight: 500; text-decoration: none;
  color: var(--hue); text-shadow: 0 0 14px color-mix(in srgb, var(--hue) 55%, transparent);
  transition: text-shadow 200ms ease, transform 200ms var(--ease-out);
}
.p-link:hover { color: var(--hue); text-shadow: 0 0 22px var(--hue); }
.p-link:active { transform: translateY(1px); }
.p-link[hidden] { display: none; }
.text.swap > * { animation: rise 550ms var(--ease-out) both; }
.text.swap > :nth-child(2) { animation-delay: 50ms; }
.text.swap > :nth-child(3) { animation-delay: 100ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Footer */
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: var(--step-small); color: var(--muted); }
.foot details { flex: 0 1 64ch; min-width: 0; text-align: right; }
.foot summary { cursor: pointer; list-style: none; transition: color 200ms ease; }
.foot summary::-webkit-details-marker { display: none; }
.foot summary:hover { color: var(--ink); }
.foot details p { margin-top: 10px; line-height: 1.6; text-align: left; }
.foot a { color: var(--ink); }

/* Opening: the parts arrive in reading order. */
.js .top > *, .js .list button, .js .panel { animation: rise 800ms var(--ease-out) both; }
.js .top .out { animation-delay: 120ms; }
.js .list button:nth-of-type(1) { animation-delay: 160ms; }
.js .list button:nth-of-type(2) { animation-delay: 210ms; }
.js .list button:nth-of-type(3) { animation-delay: 260ms; }
.js .list button:nth-of-type(4) { animation-delay: 310ms; }
.js .list button:nth-of-type(5) { animation-delay: 360ms; }
.js .list button:nth-of-type(6) { animation-delay: 410ms; }
.js .list button:nth-of-type(7) { animation-delay: 460ms; }
.js .list button:nth-of-type(8) { animation-delay: 510ms; }
.js .panel { animation-delay: 300ms; }

@media (max-width: 960px) {
  .body { grid-template-columns: 1fr; align-items: start; }
  .list { max-width: none; }
}

@media (max-width: 640px) {
  .page { gap: 40px; }
  .top { flex-direction: column; gap: 8px; }
  .outs { order: -1; }
  .out { padding: 0; }
  .panel { grid-template-columns: 1fr; }
  .frame { aspect-ratio: 4 / 3; max-height: none; }
  .foot { flex-direction: column; }
  .foot details { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .frame .is-active { transform: none; }
}
