/* Philips Rhoguns portfolio */
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin.woff2") format("woff2"); font-style: normal; font-weight: 500 600; font-display: swap; }

:root {
  --bg: #f8f5ee;
  --bg-alt: #eee9df;
  --surface: #fffdf8;
  --ink: #202b35;
  --muted: #525e66;
  --faint: #566367;
  --line: #e1dbcf;
  --line-strong: #b7ada0;
  --accent: #a3432b;
  --accent-ink: #ffffff;
  --accent-soft: #f3ded3;
  --data: #2458c6;
  --security: #bf3f2b;
  --infra: #0b7d5a;
  --shadow: 0 16px 42px rgba(32, 43, 53, .09);
  --contact-bg: #20313a;
  --contact-ink: #f8f5ee;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Fraunces", Georgia, serif;
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171e23;
    --bg-alt: #202b31;
    --surface: #243037;
    --ink: #f4eee4;
    --muted: #c4c4bb;
    --faint: #9ca6a5;
    --line: #37434a;
    --line-strong: #617079;
    --accent: #ec9a78;
    --accent-ink: #202b35;
    --accent-soft: #4c3832;
    --data: #82a8ff;
    --security: #ff8c75;
    --infra: #4cc79a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --contact-bg: #10191e;
    --contact-ink: #f4eee4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171e23;
  --bg-alt: #202b31;
  --surface: #243037;
  --ink: #f4eee4;
  --muted: #c4c4bb;
  --faint: #9ca6a5;
  --line: #37434a;
  --line-strong: #617079;
  --accent: #ec9a78;
  --accent-ink: #202b35;
  --accent-soft: #4c3832;
  --data: #82a8ff;
  --security: #ff8c75;
  --infra: #4cc79a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --contact-bg: #10191e;
  --contact-ink: #f4eee4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); padding: .05em .35em; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: .94rem; padding: 6px 10px; border-radius: 6px;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-weight: 500; font-size: .96rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { height: 36px; padding: 0 14px; font-size: .9rem; }
.icon-link { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 10px 6px; }
.icon-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .01em;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; margin-top: 22px; }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.4; margin-top: 18px; max-width: 30ch; letter-spacing: -0.01em; }
.intro { color: var(--muted); margin-top: 18px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 30px; }

.spec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-top: 8px;
}
.spec-title { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.spec dl { margin: 0; }
.spec dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.spec dt { font-family: var(--mono); font-size: .8rem; color: var(--faint); padding-top: 2px; }
.spec dd { margin: 0; font-size: .95rem; }

.proof {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
}
.proof li { padding: 22px 20px 24px 0; }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.proof-num { display: block; font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; }
.proof-label { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 1.45; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2, .two-col h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 12px; }
.kicker { font-family: var(--mono); font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer;
}
.chip span { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] span { color: inherit; opacity: 1; }
.swatch { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.swatch.data { background: var(--data); }
.swatch.security { background: var(--security); }
.swatch.infra { background: var(--infra); }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card[hidden] { display: none; }
.cat { font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.cat.data::before { background: var(--data); }
.cat.security::before { background: var(--security); }
.cat.infra::before { background: var(--infra); }
.card h3 { font-size: 1.18rem; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card > p:not(.cat):not(.result):not(.links) { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.result {
  font-family: var(--mono); font-size: .82rem; line-height: 1.5;
  padding: 9px 12px; border-radius: 6px; background: var(--bg-alt); border-left: 3px solid var(--line-strong);
}
.card[data-cat="data"] .result { border-left-color: var(--data); }
.card[data-cat="security"] .result { border-left-color: var(--security); }
.card[data-cat="infra"] .result { border-left-color: var(--infra); }
.stack { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: .78rem; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.links { margin-top: auto; padding-top: 8px; display: flex; gap: 18px; font-size: .92rem; font-weight: 500; }
.links a { text-decoration: none; color: var(--accent); }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.thumb { display: block; margin: -22px -22px 4px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.thumb img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; }

@media (min-width: 1040px) {
  .card-media {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 26px; row-gap: 12px; grid-column: span 2; align-content: start;
  }
  .card-media > * { grid-column: 2; }
  .card-media .thumb {
    grid-column: 1; grid-row: 1 / span 6; margin: -22px 0 -18px -22px;
    border-bottom: 0; border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius);
  }
  .card-media .thumb picture, .card-media .thumb img { height: 100%; }
  .card-media .thumb img { aspect-ratio: auto; object-position: left top; }
}

/* Experience */
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 30px 26px; border-left: 1px solid var(--line-strong); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.when { font-family: var(--mono); font-size: .8rem; color: var(--faint); }
.timeline h3, .plain-block h3 { font-size: 1.1rem; margin-top: 4px; }
.where { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.timeline li > p:last-child { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.plain-block { margin-top: 20px; }
.mt { margin-top: 44px; }
.certs { list-style: none; margin: 20px 0 0; padding: 0; }
.certs li { border-top: 1px solid var(--line); }
.certs li:last-child { border-bottom: 1px solid var(--line); }
.certs a, .cert-plain { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: .96rem; text-decoration: none; }
.certs a span { font-family: var(--mono); font-size: .78rem; color: var(--accent); white-space: nowrap; padding-top: 3px; }
.certs a:hover { color: var(--accent); }
.skills { margin: 20px 0 0; }
.skills > div { padding: 10px 0; border-top: 1px solid var(--line); }
.skills dt { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.skills dd { margin: 2px 0 0; font-size: .95rem; }

/* Resume */
.resumes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 580px); }
.resumes a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.resumes a:hover { border-color: var(--ink); transform: translateY(-2px); }
.r-title { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.r-meta { font-family: var(--mono); font-size: .76rem; color: var(--faint); }

/* Studio */
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.shot:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--line); transition: transform .4s ease; }
.shot:hover img { transform: scale(1.015); }
.shot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; }
.shot-title { font-weight: 500; }
.shot-sub { color: var(--muted); font-size: .9rem; }

/* Writing */
.posts { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; text-decoration: none; }
.posts a:hover .post-title { text-decoration: underline; text-underline-offset: 3px; }
.post-date { font-family: var(--mono); font-size: .8rem; color: var(--faint); white-space: nowrap; }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-ink); border-top: 1px solid var(--line); }
.contact-inner > * { max-width: 820px; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.03em; }
.contact-inner > p { opacity: .75; margin-top: 14px; max-width: 56ch; }
.contact-email {
  display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; word-break: break-all;
}
.contact-email:hover { text-decoration-thickness: 2px; }
.contact .contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; opacity: 1; }
.contact-links a { text-decoration: none; opacity: .8; }
.contact-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.contact .aside { margin-top: 40px; font-size: .9rem; opacity: .55; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 28px; color: var(--faint); font-size: .86rem; }
.footer-inner a { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .spec { max-width: 520px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .spec dl > div { grid-template-columns: 84px 1fr; }
  .posts a { flex-direction: column; gap: 2px; }
}
@media (max-width: 420px) {
  .eyebrow { border-radius: 14px; }
  .proof li { padding-right: 12px; }
  .proof li + li { padding-left: 12px; }
  .proof li:nth-child(3) { padding-left: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Editorial refresh: open typography, warmer colour and a clear project hierarchy. */
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.header-inner { height: 70px; }
.brand { font-size: 1rem; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; }
.nav a { font-size: .88rem; font-weight: 600; }
.btn { border-radius: 100px; font-weight: 600; }
.btn-small { border-radius: 100px; }
.theme-toggle { border-radius: 50%; }

.hero {
  position: relative; overflow: hidden; padding-top: 100px;
  background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 32%);
}
.hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(290px, .75fr); gap: 80px; align-items: center; }
.eyebrow { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.dot { box-shadow: none; background: var(--accent); }
.hero h1 {
  font-family: var(--display); font-size: clamp(4rem, 8.4vw, 7.25rem); font-weight: 500;
  line-height: .98; letter-spacing: -.055em; max-width: 9ch; margin-top: 26px;
}
.lede { font-size: clamp(1.35rem, 2.1vw, 1.75rem); max-width: 30ch; line-height: 1.38; margin-top: 32px; }
.intro { font-size: 1.02rem; line-height: 1.72; max-width: 54ch; margin-top: 20px; }
.hero-actions { margin-top: 34px; }
.spec {
  position: relative; background: var(--surface); border: 0; border-top: 5px solid var(--accent);
  padding: 34px 32px 26px; box-shadow: var(--shadow); transform: rotate(1deg);
}
.spec::before { content: "✳"; display: block; color: var(--accent); font-size: 2.5rem; line-height: 1; margin-bottom: 16px; }
.spec-title { color: var(--accent); letter-spacing: .12em; }
.spec dl > div { border-top: 1px solid var(--line); }
.spec dt { color: var(--faint); }

.proof { margin-top: 92px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.proof li { padding-top: 28px; padding-bottom: 30px; }
.proof-num { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.proof-label { font-size: .87rem; }
.proof-source { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .78rem; font-weight: 700; text-decoration: none; }
.proof-source:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-links { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 22px; color: var(--muted); font-size: .83rem; }
.role-links a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { max-width: 800px; margin-bottom: 38px; }
.section-head h2, .two-col h2, .archive-head h3 {
  font-family: var(--display); font-weight: 500; letter-spacing: -.035em;
}
.section-head h2, .two-col h2 { font-size: clamp(2.3rem, 4.3vw, 3.5rem); }
.section-head p:not(.kicker) { font-size: 1.05rem; line-height: 1.65; max-width: 64ch; }
.kicker { color: var(--accent); }

.filters { gap: 10px; margin-bottom: 30px; }
.chip { border-radius: 100px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; }
.grid .card {
  position: relative; background: transparent; border: 0; border-top: 1px solid var(--line-strong);
  border-radius: 0; padding: 27px 0 32px; gap: 13px; box-shadow: none;
}
.grid .card:hover { transform: none; border-color: var(--accent); box-shadow: none; }
.card h3 { font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.025em; }
.grid .card > p:not(.cat):not(.result):not(.links) { font-size: .96rem; line-height: 1.65; }
.cat { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 500; }
.cat::before { width: 7px; height: 7px; border-radius: 50%; }
.result { background: transparent; border-left: 0 !important; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; font-size: .78rem; color: var(--ink); }
.card-proof { padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.card-proof-label { margin-bottom: 7px; color: var(--accent); font: 500 .68rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.card-proof > p:not(.card-proof-label) { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.card-proof a { display: inline-block; margin: 10px 14px 0 0; color: var(--accent); font-size: .8rem; font-weight: 700; text-decoration: none; }
.card-proof a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proof-steps { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0; font: 500 .72rem var(--mono); }
.proof-steps span + span::before { content: "→"; color: var(--accent); margin-right: 8px; }
.stack { gap: 0 12px; }
.stack li { padding: 0; border: 0; border-radius: 0; color: var(--faint); font-size: .75rem; }
.links { margin-top: auto; padding-top: 10px; }
.links a { color: var(--accent); }
.grid .featured {
  grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; margin-bottom: 36px; box-shadow: var(--shadow);
}
.grid .featured:hover { border-color: var(--line-strong); }
.grid .featured h3 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.grid .featured .thumb { margin: -28px -28px 5px; border-radius: 18px 18px 0 0; }
.more-projects {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: 100%; margin-top: 12px; padding: 22px 26px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  font: 600 1rem var(--sans); text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
.more-projects:hover { border-color: var(--accent); background: var(--bg-alt); }
.more-count { color: var(--accent); font: 500 .8rem var(--mono); white-space: nowrap; }
.more-projects[hidden], #archive-section[hidden] { display: none; }

.archive-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin: 84px 0 26px; padding-top: 28px; border-top: 2px solid var(--ink); }
#archive-section .archive-head { margin-top: 60px; }
.archive-head > div { max-width: 530px; }
.archive-head h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
.archive-head > p { max-width: 38ch; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-card { padding: 0 0 24px; overflow: hidden; gap: 12px; }
.archive-card:hover { transform: translateY(-2px); }
.archive-thumb { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.archive-card > :not(.archive-thumb) { margin-left: 24px; margin-right: 24px; }
.archive-card .cat { margin-top: 10px; }
.archive-card > p:not(.cat):not(.archive-note):not(.links) { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.archive-card .archive-note { font-size: .8rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; }

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.certs li, .certs li:last-child { border: 0; }
.certs a, .cert-item {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 12px; min-height: 182px; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); text-decoration: none;
}
.certs a:hover { border-color: var(--accent); color: var(--ink); }
.cert-art { display: grid; place-items: center; width: 100%; height: 98px; border-radius: 8px; background: #fff; }
.cert-art img { max-height: 88px; max-width: 90%; width: auto; object-fit: contain; }
.cert-name { font-size: .86rem; line-height: 1.35; font-weight: 600; }
.certs a .cert-name { white-space: normal; font-family: var(--sans); color: var(--ink); }
.experience-intro { max-width: 56ch; margin-top: 16px; color: var(--muted); line-height: 1.65; }

@media (min-width: 1040px) {
  .grid .card-media { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 36px; }
  .grid .card-media .thumb { grid-row: 1 / span 7; margin: -28px 0 -28px -28px; border-radius: 18px 0 0 18px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .spec { transform: none; }
}
@media (max-width: 720px) {
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(3.5rem, 14vw, 5rem); }
  .proof { margin-top: 64px; }
  .section { padding-top: 74px; padding-bottom: 74px; }
  .grid, .archive-grid { grid-template-columns: 1fr; }
  .grid .featured { grid-column: auto; padding: 22px; margin-bottom: 26px; }
  .grid .featured .thumb { margin: -22px -22px 4px; }
  .archive-head { display: block; margin-top: 60px; }
  .archive-head > p { margin-top: 16px; }
}
@media (max-width: 420px) {
  .more-projects { padding: 18px; }
  .certs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .certs a, .cert-item { padding: 12px; min-height: 178px; }
  .cert-name { font-size: .78rem; }
}
