/* D1 · Datasheet */
:root { --bg: #fff; --ink: #07090c; --mut: #2c323c; --sub: #4d5563; --rule: #e3e6ea; --acc: #1d4ed8; --soft: #eef3ff; --sans: 'Mrs Eaves', 'Mrs Eaves OT', 'Baskervville', 'Libre Baskerville', Georgia, serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; background: transparent; color: var(--ink); font: 400 17.5px/1.62 var(--sans); font-variant-ligatures: common-ligatures discretionary-ligatures; -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; } ul { list-style: none; }

.sheet { width: min(980px, 100% - 48px); margin: 0 auto; padding: 72px 0 56px; }

.top { display: grid; grid-template-columns: 176px minmax(0, 1fr) minmax(300px, 380px); gap: 48px; align-items: end; padding-bottom: 40px; border-bottom: 2px solid var(--ink); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 18px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.sub { margin-top: 18px; font-size: 19px; line-height: 1.45; color: var(--mut); max-width: 30ch; }
.kw { font-family: var(--mono); font-size: .9em; color: var(--acc); background: var(--soft); padding: .05em .35em; border-radius: 4px; white-space: nowrap; }

table { border-collapse: collapse; width: 100%; }
.spec th, .spec td { padding: 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14px; line-height: 1.5; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--rule); }
.spec th { width: 34%; padding-right: 16px; text-align: left; font: 400 12px/1.7 var(--mono); color: var(--sub); text-transform: uppercase; letter-spacing: .06em; }
.spec i { font-style: normal; color: var(--sub); }
.val { font: 500 20px/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 8px; } .live i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; } .chip { font: 400 12px/1 var(--mono); padding: 5px 8px; border: 1px solid var(--rule); border-radius: 5px; color: var(--mut); background: #fafbfc; white-space: nowrap; }

section { margin-top: 64px; }
h2 { display: flex; align-items: baseline; gap: 14px; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 24px; } h2 small { font-weight: 400; color: var(--sub); letter-spacing: .04em; text-transform: none; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } .g4 h4 { font: 500 12px/1 var(--mono); color: var(--acc); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; } .g4 p { font: 400 13.5px/1.75 var(--mono); color: var(--mut); }

.part { padding: 32px 0 36px; border-top: 1px solid var(--rule); }
.part header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.pn { font: 500 12px/1 var(--mono); color: var(--acc); padding: 5px 8px; border: 1px solid var(--acc); border-radius: 5px; }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
.lede { font-size: 17.5px; line-height: 1.5; margin-bottom: 12px; }
.desc p { color: var(--mut); } .desc .lede { color: var(--ink); }
.desc ul { margin-top: 16px; display: grid; gap: 8px; } .desc li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--mut); line-height: 1.6; } .desc li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--acc); }

.list th { text-align: left; padding: 8px 12px 8px 0; font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); border-bottom: 1px solid var(--ink); }
.list td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14.5px; }
.list td b { display: block; font-weight: 600; font-size: 15.5px; } .list td span.bl, .list td span.org { display: block; color: var(--mut); margin-top: 2px; font-size: 14px; } .list .yr { font: 400 12.5px/1.7 var(--mono); color: var(--sub); white-space: nowrap; } .list .tx { color: var(--mut); font-size: 14px; } .list .org { font-size: 13.5px !important; }
.xp td:first-child { width: 150px; } .xp td:nth-child(2) { width: 32%; }
.foot { display: flex; justify-content: space-between; margin-top: 72px; padding-top: 18px; border-top: 2px solid var(--ink); font: 400 12.5px var(--mono); color: var(--sub); }

@media (max-width: 860px) {
  .sheet { width: calc(100% - 32px); padding-top: 40px; } .top, .cols { grid-template-columns: 1fr; gap: 28px; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list thead { display: none; } .list tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); } .list td { display: block; padding: 2px 0; border: 0; } .xp td:first-child, .xp td:nth-child(2) { width: auto; }
}
@media print { .sheet { padding: 0; width: 100%; } .part { break-inside: avoid; } a { color: inherit; } }

/* My portfolio (replaces key terms) */
.folio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.folio .intro { font-size: 20px; line-height: 1.5; font-style: italic; color: var(--ink); max-width: 28ch; } .folio .intro .kw { font-style: normal; }
.toc td { padding: 10px 14px 10px 0; border-bottom: 1px dotted var(--rule); vertical-align: baseline; font-size: 16.5px; }
.toc tr:first-child td { border-top: 1px solid var(--ink); } .toc .no { font: 500 12px/1 var(--mono); color: var(--acc); width: 56px; } .toc .dots { color: var(--sub); text-align: right; font: 400 12px var(--mono); white-space: nowrap; }
.toc a { color: var(--ink); } .toc a:hover { color: var(--acc); }
@media (max-width: 860px) { .folio { grid-template-columns: 1fr; gap: 24px; } }

/* portrait: normal flow (not sticky), so it scrolls away with the header */
.photo { margin: 0; align-self: end; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 26%; padding: 6px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 14px 30px -22px rgba(17, 20, 24, .45); }
.photo figcaption { margin-top: 8px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
@media (max-width: 860px) { .top { grid-template-columns: 1fr; } .photo { width: 132px; } }

/* logos (real, full colour) */
.ic { display: inline-block; flex: none; width: 17px; height: 17px; object-fit: contain; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.ic.m { background: var(--b); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
.chip.tool { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 7px; color: var(--ink); transition: border-color .2s, background .2s; }
.chip.tool:hover { border-color: var(--b); background: #fff; } .chip.tool:hover .ic { transform: scale(1.18) rotate(-4deg); }
.tc-wrap { margin-top: 40px; max-width: 400px; }
.cap { margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.tc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.tile { position: relative; display: grid; justify-items: center; gap: 9px; padding: 20px 4px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--mut); animation: rise .5s both; animation-delay: calc(var(--i) * 45ms + 150ms); transition: background .25s; }
.tile:hover { background: color-mix(in srgb, var(--b) 8%, #fff); text-decoration: none; } .tile:hover .ic { transform: translateY(-3px) scale(1.12); } .tile:hover span { color: var(--ink); }
.tile .ic { width: 34px; height: 34px; }
.tile span { font: 400 10.5px/1 var(--mono); letter-spacing: .03em; color: var(--sub); text-align: center; transition: color .2s; }
.tile sup { position: absolute; top: 6px; right: 7px; font: 400 10px var(--mono); color: var(--sub); }
.tile.ghost { animation: none; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--rule) 6px 7px); opacity: .5; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .tc-wrap { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } .ic { transition: none; } }

/* layered parallax background */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: background-color .4s; }
#bg .ly { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
#bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .55), transparent 62%), radial-gradient(ellipse at 50% 115%, rgba(40, 30, 10, .07), transparent 60%); }
@media print { #bg { display: none; } }

/* interests list (replaces the tagline) */
.focus { margin-top: 20px; } .focus .k { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 0 0 12px; }
.focus ul { display: grid; gap: 7px; } .focus li { position: relative; padding-left: 22px; font-size: 20px; line-height: 1.3; color: var(--ink); } .focus li::before { content: ''; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--acc); }
/* contact as logos */
.soc { display: inline-flex; align-items: center; gap: 12px; } .so { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 255, 255, .7); transition: transform .2s cubic-bezier(.2, .7, .2, 1), border-color .2s, background .2s; }
.so:hover { transform: translateY(-2px); border-color: var(--ink); background: #fff; text-decoration: none; } .so .ic { width: 22px; height: 22px; } .so:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lnk { display: inline-flex; align-items: center; gap: 7px; } .lnk .ic { width: 16px; height: 16px; }
.list .chips { margin-top: 0; }

/* stronger text: darker ink, slightly heavier weight, and a soft paper halo so the contour lines don't cut through letters */
body { font-weight: 500; }
.sheet { text-shadow: 0 0 2px #f6f4ee, 0 0 5px #f6f4ee, 0 0 10px rgba(246, 244, 238, .95), 0 0 18px rgba(246, 244, 238, .8); }
.sheet .ic, .sheet img { text-shadow: none; }
h1, h3, .list td b, .toc a, .focus li { font-weight: 700; }
.lede, .intro { font-weight: 600; }
.spec th, .cap, .eyebrow, .list th, .toc .dots, .photo figcaption, .focus .k, .pn, h2 { font-weight: 600; }
.chip { background: rgba(255, 255, 255, .88); border-color: rgba(7, 9, 12, .18); color: #1d222a; }
.kw { background: rgba(29, 78, 216, .12); color: #153fb8; font-weight: 500; }
.spec th, .spec td, .list td, .toc td { border-bottom-color: rgba(7, 9, 12, .22); }
.so { background: rgba(255, 255, 255, .92); }
