/* One loud green carries the top bar, the hero and the contact block; everything between sits on green-tinted paper.
   Anybody sets the name and titles (its width axis is what the pointer stretches); Atkinson Hyperlegible sets the reading. */
:root {
  --pass: #16d981; --run: #ffc22e; --fail: #ff5a43;
  --status: var(--pass); --on-status: #021c12;
  --display: "Anybody", "Arial Black", Impact, sans-serif;
  --sans: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --fs-sm: 14px;
  --fs-body: 17px;
  --fs-lead: clamp(19px, 1.55vw, 22px);
  --fs-h3: clamp(20px, 1.8vw, 24px);
}
:root, [data-theme="light"] {
  color-scheme: light;
  --paper: #e3f4e8; --surface: #f4fbf5; --ink: #04261a; --dim: #2c4d3f; --faint: #547063;
  --line: #bcdcc7; --track: #d0e9d8;
  --pass-text: #00704a; --run-text: #7d5400;
  --inv-bg: #04261a; --inv-ink: #e3f4e8; --inv-dim: #a5c9b4; --inv-line: #1b4534;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #031a11; --surface: #08271b; --ink: #dff5e6; --dim: #a3c9b3; --faint: #74a089;
  --line: #164031; --track: #0d3024;
  --pass-text: #3fe39a; --run-text: #ffc22e;
  --inv-bg: #d5f2de; --inv-ink: #04261a; --inv-dim: #2c4d3f; --inv-line: #a9d3b8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.mono { font-family: var(--mono); font-size: 13.5px; }
main > section, .top, footer { padding-left: max(var(--gut), (100% - var(--max)) / 2); padding-right: max(var(--gut), (100% - var(--max)) / 2); }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px;
  background: none; color: var(--ink); font: 650 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--pass); border-color: var(--pass); color: #000; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* on a status-coloured ground everything is black, whatever the theme */
.top, .hero, .contact { --ink: #021c12; --paper: #eafff1; background: var(--status); color: var(--on-status); transition: background-color .25s; }
.top .btn.solid:hover, .hero .btn.solid:hover, .contact .btn.solid:hover { background: #eafff1; border-color: #eafff1; color: #021c12; }

/* the status mark: a black tile whose glyph is the verdict */
.mark { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--on-status); color: var(--status); font: 900 13px/1 var(--sans); font-style: normal; }
.mark::after { content: "✓"; }
@keyframes blink { 50% { opacity: .25; } }

/* ------------------------------------------------------------------ top bar: always the current verdict */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 22px; margin-right: auto; }
.top nav a { padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 550; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.toggles { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: 700 13px/1 var(--sans); cursor: pointer; }
.icon-btn:hover { background: rgb(0 0 0 / .14); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: inline; }
.lang-opt { opacity: .5; }
.lang-opt[data-active="true"] { opacity: 1; }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; min-height: 0; }
  .toggles { margin-left: auto; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .top nav a { padding: 10px 0; white-space: nowrap; }
  .top .btn.small { display: none; }
  html { scroll-padding-top: 110px; }
}

/* ------------------------------------------------------------------ hero: the name, and the suite that vouches for the page */
.hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 72px); }
h1 { font-family: var(--display); font-size: 15vw; line-height: .8; font-weight: 900; font-variation-settings: "wdth" 100; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 clamp(24px, 3vw, 40px) -.03em; }
.ln { display: block; width: max-content; white-space: nowrap; }
.ch { display: inline-block; transition: font-variation-settings .22s ease-out, transform .3s cubic-bezier(.3, 1.7, .5, 1); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 4vw, 64px); align-items: end; }
.lede { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; max-width: 36ch; font-weight: 500; }
.status { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 15px; font-weight: 600; }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--on-status); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(0 0 0 / .45); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@media (min-width: 901px) { h1 { display: flex; gap: .22em; width: max-content; } }
@media (max-width: 900px) { .hero-foot { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ career: eight years rendered as a trace */
.career { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.trace { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.trace-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: var(--fs-sm); }
.trace-bar .mono { color: var(--ink); }
.trace-body { --lbl: 224px; --dur: 72px; position: relative; padding: 8px 18px 14px; isolation: isolate; }
.axis, .spans a { display: grid; grid-template-columns: var(--lbl) minmax(0, 1fr) var(--dur); column-gap: 16px; }
.axis { position: relative; height: 28px; z-index: -1; }
.axis span { position: absolute; top: 6px; left: calc(var(--lbl) + 16px + (100% - var(--lbl) - var(--dur) - 32px) * var(--m) / 108);
  padding-left: 6px; border-left: 1px solid var(--line); color: var(--faint); font: 12px/1 var(--mono); }
/* the year rules run through every row */
.axis span::after { content: ""; position: absolute; left: -1px; top: 16px; height: 400px; border-left: 1px dashed var(--line); pointer-events: none; }
.spans { list-style: none; margin: 0; padding: 0; }
.spans a { align-items: center; min-height: 44px; text-decoration: none; border-radius: 8px; }
.spans a:hover .lbl, .spans a:focus-visible .lbl { text-decoration: underline; }
.spans li { transition: opacity .2s; }
.spans:hover li:not(:hover) { opacity: .4; }
.lbl { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl .short { display: none; }
.dur { text-align: right; color: var(--dim); font: 13px/1 var(--mono); white-space: nowrap; }
.trk { position: relative; height: 18px; }
.span-bar { position: absolute; top: 0; bottom: 0; left: calc(100% * var(--s) / 108); width: calc(100% * (var(--e) - var(--s)) / 108); min-width: 6px;
  border-radius: 4px; background: var(--pass); transform-origin: left; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 140ms + 500ms); }
.running .span-bar { background: repeating-linear-gradient(-45deg, var(--run) 0 6px, color-mix(in srgb, var(--run) 62%, var(--surface)) 6px 12px);
  background-size: 17px 17px; animation: grow .7s cubic-bezier(.2,.7,.2,1) both calc(var(--i) * 140ms + 500ms), stripes 1s linear infinite; }
.running .dur { color: var(--run-text); }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes stripes { to { background-position: 17px 0; } }
@media (max-width: 720px) {
  .trace-body { --lbl: 92px; --dur: 56px; padding-left: 12px; padding-right: 12px; }
  .axis, .spans a { column-gap: 8px; }
  .axis span { left: calc(var(--lbl) + 8px + (100% - var(--lbl) - var(--dur) - 16px) * var(--m) / 108); font-size: 10px; padding-left: 3px; }
  .axis span:nth-child(even) { color: transparent; }
  .lbl { font-size: 14px; }
  .lbl .long { display: none; } .lbl .short { display: inline; }
  .trace-bar { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0 4px; }
.logo { display: block; height: 34px; width: 120px; background-color: var(--faint); transition: background-color .2s;
  -webkit-mask: var(--src) no-repeat center / contain; mask: var(--src) no-repeat center / contain; }
.logos li:hover .logo { background-color: var(--ink); }
.logo-disney { --src: url('assets/logos/disney.svg'); width: 110px; height: 44px; }
.logo-pwc    { --src: url('assets/logos/pwc.svg'); width: 92px; }
.logo-cision { --src: url('assets/logos/cision.svg'); width: 100px; height: 26px; }
.logo-ua     { --src: url('assets/logos/ua.svg'); width: 64px; }
.logo-ice    { --src: url('assets/logos/ice.svg'); width: 44px; height: 40px; }
@media (max-width: 640px) { .logos { justify-content: flex-start; gap: 20px 32px; } .logo { transform: scale(.85); transform-origin: left center; } }

/* ------------------------------------------------------------------ sections: title on the left, evidence on the right */
.sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px clamp(24px, 4vw, 64px); padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); border-top: 2px solid var(--ink); }
.sec > * { margin: 0; }
.sec-head { align-self: start; position: sticky; top: 88px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: .86; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; }
.sec-head .lead { margin: 18px 0 0; color: var(--dim); font-size: 16px; max-width: 32ch; }
.sec > :not(.sec-head) { grid-column: 2; }
.sec h3.sub { margin: 56px 0 4px; font-size: 15px; font-weight: 700; color: var(--dim); }
.tools { margin: 14px 0 0; color: var(--faint); font: 13px/1.6 var(--mono); }
@media (max-width: 900px) {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec > :not(.sec-head) { grid-column: 1; }
  .sec-head { position: static; }
}

/* experience: each role is a suite, each bullet an assertion that held */
.jobs { list-style: none; padding: 0; }
.job { padding: 28px 0; border-top: 1px solid var(--line); }
.job:first-child { padding-top: 0; border-top: 0; }
.job:target h3 { animation: mark 1.6s ease-out; }
@keyframes mark { 0%, 40% { background: color-mix(in srgb, var(--pass) 45%, transparent); } 100% { background: transparent; } }
.job-head { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.job h3 { display: inline; padding: 0 2px; margin: 0 -2px; border-radius: 3px; font-size: var(--fs-h3); line-height: 1.2; font-weight: 750; }
.org { margin: 2px 0 0; color: var(--dim); }
.via { color: var(--faint); }
.job time { color: var(--dim); white-space: nowrap; }
.state { position: relative; top: 3px; width: 18px; height: 18px; border-radius: 4px; background: var(--pass); }
.state::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.state.run { background: var(--run); }
.state.run::after { left: 6px; top: 6px; width: 6px; height: 6px; border: 0; border-radius: 50%; background: #000; transform: none; animation: blink .9s steps(2) infinite; }
.asserts { list-style: none; margin: 16px 0 0 36px; padding: 0; display: grid; gap: 8px; max-width: 68ch; }
.asserts li { position: relative; color: var(--dim); }
.asserts li::before { content: ""; position: absolute; left: -20px; top: .55em; width: 8px; height: 5px; border: solid var(--pass-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.job .tools { margin-left: 36px; }
@media (max-width: 640px) {
  .job-head { grid-template-columns: 22px minmax(0, 1fr); }
  .job time { grid-column: 2; }
  .asserts, .job .tools { margin-left: 20px; }
}

/* projects: 4foodies leads on the loud green slab, Quorum follows on the dark one */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product h3 { font-family: var(--display); font-size: clamp(36px, 4vw, 58px); line-height: .9; font-weight: 900; font-variation-settings: "wdth" 110; letter-spacing: -.02em; }
.product-state { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--pass-text); font-size: var(--fs-sm); font-weight: 700; }
.tick { position: relative; width: 14px; height: 14px; border-radius: 3px; background: var(--pass); }
.tick::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3px; height: 6px; border: solid #000; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.tagline { margin: 0; font-size: var(--fs-lead); line-height: 1.35; max-width: 34ch; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.features dt { font-weight: 700; font-size: 15.5px; }
.features dd { margin: 4px 0 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.product .tools { margin-top: auto; padding-top: 8px; }
.product.wide { grid-column: 1 / -1; border-color: var(--inv-bg); background: var(--inv-bg); color: var(--inv-ink); }
.product.wide h3 { font-size: clamp(56px, 9vw, 132px); font-variation-settings: "wdth" 130; text-transform: uppercase; margin-left: -.03em; }
.product.wide .product-state { color: var(--inv-ink); }
.product.wide .tagline { max-width: 52ch; }
.product.wide .features { grid-template-columns: repeat(4, minmax(0, 1fr)); border-color: var(--inv-line); }
.product.wide .features dd, .product.wide .tools { color: var(--inv-dim); }
.product.wide .btn.solid { background: var(--pass); border-color: var(--pass); color: #000; }
.product.wide .btn.solid:hover { background: var(--inv-ink); border-color: var(--inv-ink); color: var(--inv-bg); }
/* 4foodies: the loud green slab, with its usage numbers */
.product.loud { border-color: var(--pass); background: var(--pass); color: #021c12; }
.product.loud h3 { text-transform: none; font-variation-settings: "wdth" 120; }
.product.wide:not(.loud) h3 { font-size: clamp(40px, 5.4vw, 80px); }
.product.loud .product-state { color: #021c12; }
.product.loud .tick { background: #021c12; }
.product.loud .tick::after { border-color: var(--pass); }
.product.loud .features { border-color: rgb(2 28 18 / .28); }
.product.loud .features dd, .product.loud .tools { color: #0a3a28; }
.product.loud .btn { border-color: #021c12; color: #021c12; }
.product.loud .btn:hover, .product.loud .btn.solid { background: #021c12; border-color: #021c12; color: #eafff1; }
.product.loud .btn.solid:hover { background: #eafff1; border-color: #eafff1; color: #021c12; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 14px 0 6px; }
.metrics > div { display: flex; flex-direction: column; }
.metrics dd { margin: 0; font-family: var(--display); font-size: clamp(36px, 4.4vw, 64px); line-height: .9; font-weight: 900; font-variation-settings: "wdth" 80; }
.metrics dt { margin-top: 8px; font-size: 15px; font-weight: 600; max-width: 16ch; }
@media (max-width: 640px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .products { grid-template-columns: minmax(0, 1fr); } .product.wide .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features, .product.wide .features { grid-template-columns: minmax(0, 1fr); } }

.oss { list-style: none; margin: 0; padding: 0; }
.oss li { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr); gap: 4px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.oss-name { font-size: 16px; font-weight: 700; }
.oss li p { margin: 0; color: var(--dim); max-width: 64ch; }
.oss .where { grid-column: 2; color: var(--faint); font: 13px/1.6 var(--mono); }
@media (max-width: 640px) { .oss li { grid-template-columns: minmax(0, 1fr); } .oss .where { grid-column: 1; } }

/* stack */
.stack { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.stack > div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.stack dt { font-weight: 750; }
.stack dd { margin: 4px 0 0; color: var(--dim); font-size: 15.5px; }
@media (max-width: 1100px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stack { grid-template-columns: minmax(0, 1fr); } }

/* education */
.edu { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr); gap: 32px clamp(24px, 4vw, 64px); }
.edu-list { list-style: none; margin: 0; padding: 0; }
.edu-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.edu-list li:first-child { border-top: 0; padding-top: 0; }
.edu-inst { font-weight: 700; }
.edu-area { color: var(--dim); font-size: 15.5px; }
.langs h3.sub { margin-top: 0; margin-bottom: 14px; }
.lvl { display: grid; grid-template-columns: 74px minmax(0, 1fr) 54px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 15.5px; }
.lvl .mono { text-align: right; color: var(--dim); }
.meter { height: 8px; border-radius: 2px; background: linear-gradient(var(--pass), var(--pass)) no-repeat 0 0 / calc(var(--v) * 100%) 100%, var(--track); }
@media (max-width: 900px) { .edu { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ contact: the verdict colour again, edge to edge */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(24px, 4vw, 64px); align-items: end; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.contact > * { margin: 0; }
.contact h2 { font-family: var(--display); font-size: clamp(44px, 7.4vw, 124px); line-height: .84; font-weight: 900; font-variation-settings: "wdth" 72; text-transform: uppercase; }
.contact-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact .lead { max-width: 44ch; margin: 0; font-weight: 500; }
.mail { font-size: clamp(22px, 2.4vw, 32px); font-weight: 750; text-decoration-thickness: 3px; overflow-wrap: anywhere; }
.mail:hover { background: var(--on-status); color: var(--status); text-decoration: none; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact .cta, .hero .cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .cta > :first-child, .contact .cta > :last-child { grid-column: 1 / -1; } }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 36px; color: var(--faint); font-size: var(--fs-sm); }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
