/* Greyscale only, after the CV: K100 / K80 / K65 / K50 / K40 / K20 */
:root {
  --paper: #ffffff;
  --k100: #111111;
  --k80:  #333333;
  --k65:  #595959;
  --k50:  #808080;
  --k40:  #999999;
  --k20:  #cccccc;
  --k08:  #ebebeb;
  --img-filter: grayscale(1) contrast(1.02);
  --measure: 40rem;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0e0e;
    --k100: #f2f2f2;
    --k80:  #d6d6d6;
    --k65:  #a8a8a8;
    --k50:  #858585;
    --k40:  #6e6e6e;
    --k20:  #3a3a3a;
    --k08:  #1c1c1c;
    --img-filter: grayscale(1) brightness(.86) contrast(1.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0e0e; --k100: #f2f2f2; --k80: #d6d6d6; --k65: #a8a8a8;
  --k50: #858585; --k40: #6e6e6e; --k20: #3a3a3a; --k08: #1c1c1c;
  --img-filter: grayscale(1) brightness(.86) contrast(1.05);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--k65);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 350;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
b, strong { color: var(--k100); font-weight: 450; }
em { font-style: normal; color: var(--k40); }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }

/* Top bar — the CV's small tracked caps in the corners */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mark, .top nav a {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--k50);
  transition: color .2s ease;
}
.mark { color: var(--k100); white-space: nowrap; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a:hover, .mark:hover { color: var(--k100); }
@media (max-width: 560px) { .top nav a:nth-child(2), .top nav a:nth-child(3) { display: none; } }

/* Reading column, offset like the CV's text frame */
.col {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.intro { padding: clamp(96px, 20vh, 200px) 0 clamp(72px, 12vh, 128px); }
.name {
  font-weight: 300;
  font-size: clamp(34px, 6.4vw, 56px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--k100);
  line-height: 1.1;
  margin-right: -.24em;
}
.role { color: var(--k50); margin: 10px 0 48px; font-size: 17px; }
.lede { font-size: clamp(18px, 2.1vw, 20px); line-height: 1.6; }

/* Section labels — small, grey, sentence case, as on the CV */
.label {
  font-size: 14px; font-weight: 400; color: var(--k40);
  margin: 0 0 40px;
}
.label:not(:first-child) { margin-top: 88px; }
section.col { padding: clamp(80px, 12vh, 128px) 0 0; }

h3 { font-weight: 400; font-size: 20px; color: var(--k100); line-height: 1.35; }

/* Full-bleed plates */
.bleed { margin: 0 auto; width: min(100%, 1440px); padding-inline: var(--gutter); }
.bleed img {
  width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover;
  filter: var(--img-filter);
}
.bleed figcaption, .foot { font-size: 11px; letter-spacing: .08em; color: var(--k40); }
.bleed figcaption { margin-top: 12px; }

/* Work entries */
.work { margin-bottom: 96px; }
.work:last-child { margin-bottom: 0; }
.plate {
  margin: 0 0 22px; width: 100%;
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--k08);
}
@media (min-width: 960px) { .plate { width: calc(100% + 10rem); margin-left: -5rem; } }
.plate img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.work:hover .plate img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .plate img { transition: none; } .work:hover .plate img { transform: none; } }
.plate canvas { width: 100%; height: 100%; }
.placeholder { display: grid; place-items: center; }
.placeholder span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--k40); }

.meta { display: flex; gap: 20px; font-size: 13px; color: var(--k40); margin-bottom: 6px; }
.work h3 { margin-bottom: 10px; }
.work p + p { margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.links a { color: var(--k100); border-bottom: 1px solid var(--k20); transition: border-color .2s ease; }
.links a:hover { border-color: var(--k100); }

/* Experience — the CV's entry rhythm and en-dash bullets */
.entry { margin-bottom: 40px; }
.sub { font-style: italic; color: var(--k50); font-size: 16px; }
.date { color: var(--k40); font-size: 15px; margin-bottom: 6px; }
.entry ul { list-style: none; }
.entry li { position: relative; padding-left: 28px; margin-top: 4px; }
.entry li::before { content: "–"; position: absolute; left: 0; color: var(--k50); }
.plain { line-height: 1.9; }

/* Skills — two columns, as on page two */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.grid h3 { font-size: 17px; margin-bottom: 2px; }
.grid p { font-size: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.contact { padding-bottom: 120px; }
.big { font-size: clamp(22px, 4vw, 34px); font-weight: 300; margin-bottom: 8px; }
.big a { color: var(--k100); border-bottom: 1px solid var(--k20); transition: border-color .2s ease; }
.big a:hover { border-color: var(--k100); }
.contact .links { margin-top: 20px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--k08);
}
.credits { max-width: 60ch; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

a:focus-visible { outline: 1px solid var(--k100); outline-offset: 4px; }
