/* iam.mrzdeals.com — dark resume theme: charcoal, faint grid, one red accent, glass panels. */
:root {
  --accent: #e8341c;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --bg: #0d0e10;
  --grid: rgba(255, 255, 255, .035);
  --panel: rgba(28, 30, 34, .62);
  --panel-line: rgba(255, 255, 255, .08);
  --glow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px -24px rgba(0, 0, 0, .8);
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #8b8b94;
  --line: rgba(255, 255, 255, .1);
  --track: #34363b;
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #fff);
  --w: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 22px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eceef1;
  --grid: rgba(0, 0, 0, .045);
  --panel: rgba(255, 255, 255, .78);
  --panel-line: rgba(0, 0, 0, .07);
  --glow: 0 1px 0 #fff inset, 0 18px 40px -26px rgba(20, 24, 32, .35);
  --ink: #15171a;
  --muted: #52555c;
  --faint: #686b72;
  --line: rgba(0, 0, 0, .1);
  --track: #d9dbe0;
  --accent-ink: color-mix(in srgb, var(--accent) 82%, #000);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.7 var(--font-body);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.tlink { font-weight: 600; text-decoration: none; color: var(--accent-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: .5em; font: 600 .95rem var(--font-display); cursor: pointer;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent); border-radius: 999px; padding: .65em 1.4em; text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.brand { font: 700 1.05rem var(--font-display); text-decoration: none; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 0; }
.brand::after { content: '.'; color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.bar-actions { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }
.menu-btn { display: none; }
.menu-lines, .menu-lines::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.menu-lines::before { content: ''; position: absolute; top: 5px; }
.menu-lines { transform: translateY(-2.5px); }
.menu-btn[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(-5px) rotate(-90deg); }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-name { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; margin: .2em 0 .25em; }
.hero-title { font: 300 clamp(.9rem, 1.6vw, 1.15rem) var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.hero-title::after { content: ''; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 18px; }
.hero-tagline { max-width: 56ch; color: var(--muted); font-size: 1.05rem; }
.contacts { display: grid; gap: 10px; margin: 1.4em 0; font-size: .95rem; }
.contacts li { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 32px; }
.contacts .ic { color: var(--accent); width: 18px; height: 18px; }
.contacts a { text-decoration: none; overflow-wrap: anywhere; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--accent-ink); }

.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: #1b1c20; border: 1px solid var(--panel-line); border-bottom: 5px solid var(--accent); box-shadow: var(--glow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.monogram { display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #2a2c31, #141518 70%); }
.monogram span { font: 800 clamp(4rem, 9vw, 6.5rem) var(--font-display); color: #f4f4f5; letter-spacing: -.04em; }
.monogram span::after { content: ''; display: block; width: 40%; height: 4px; margin: 6px auto 0; background: var(--accent); border-radius: 2px; }

/* resume grid: timelines left; about, skills and interests right */
.resume { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "time about" "time skills"; gap: 0 clamp(24px, 3vw, 40px); align-items: start; padding-bottom: 24px; }
.col-time { grid-area: time; grid-row: 1 / span 2; }
.col-about { grid-area: about; }
.col-skills { grid-area: skills; }
.block, .sec { padding: 28px 0; }
.sec-head { text-align: center; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); display: inline-block; }
.sec-head h2::after { content: ''; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--accent); margin: 10px auto 0; }
.sec-intro { color: var(--muted); max-width: 60ch; margin: 0 auto; }
.glass {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r);
  box-shadow: var(--glow); padding: clamp(20px, 3vw, 30px);
}
.org, .meta { color: var(--muted); font-size: .9rem; }
.meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: none; margin: 0 0 1em; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 1.1em; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--accent); }
.prose blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.prose a { color: var(--accent-ink); }
.prose img { border-radius: 12px; }
.about-prose { color: var(--muted); }
.about-prose strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.facts dd { font-weight: 500; }

/* timelines */
.timeline > li { position: relative; padding: 0 0 26px 30px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: -10px; width: 2px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.timeline > li:last-child::before { display: none; }
.timeline > li::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.period { font-size: .85rem; color: var(--faint); margin-bottom: .3em; }
.period b { color: var(--ink); font-weight: 700; font-size: .95rem; }
.timeline h3 { margin-bottom: .15em; }
.timeline .org { margin-bottom: .6em; }
.timeline .prose, .timeline > li > p:not(.period):not(.org) { color: var(--muted); font-size: .95rem; }

/* skills */
.group { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 14px; }
.group:not(:first-child) { margin-top: 24px; }
.rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 18px 12px; }
.rings li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ring { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring-bg { stroke: var(--track); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .ring:not(.on) .ring-fg { stroke-dasharray: 0 100; }
.ring b { font: 700 .95rem var(--font-display); }
.ring-label { font-size: .84rem; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }

.interests { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
.interests li { overflow-wrap: anywhere; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); min-width: 64px; }
.interests .ic { width: 28px; height: 28px; color: var(--accent); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cards p { color: var(--muted); font-size: .95rem; }
.cards > * > :last-child { margin-bottom: 0; }
.card-ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.venture-logo { height: 44px; margin-bottom: 14px; }
.venture-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
:root[data-theme="dark"] .venture-logo img { filter: brightness(0) invert(1); opacity: .9; }
.projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s; }
.project:hover { color: inherit; border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); }
.project-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--track); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px 22px 22px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote blockquote p { color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.quote strong { color: var(--ink); }
.q-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }

.post { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post time { font-size: .85rem; color: var(--faint); padding-top: 2px; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--accent-ink); }
.post p { color: var(--muted); margin: 0; }
.more { margin: 18px 0 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); }
.big-email { font: 700 clamp(1.1rem, 2.4vw, 1.5rem) var(--font-display); overflow-wrap: anywhere; }
.big-email a { text-decoration: none; border-bottom: 3px solid var(--accent); }
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; border-radius: 10px; border-left: 3px solid #22a06b; background: color-mix(in srgb, #22a06b 14%, transparent); }
.notice.err { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* detail pages */
.detail { padding: clamp(32px, 6vw, 64px) 0; }
.detail h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; }
.back { font-size: .9rem; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent-ink); }
.lead { font-size: 1.15rem; color: var(--muted); }
.detail-img { margin: 28px 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--panel-line); }
.detail .prose { font-size: 1.04rem; }
.detail .posts { margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.foot { padding-bottom: max(28px, env(safe-area-inset-bottom)) !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-size: .88rem; color: var(--muted); }
.foot p { margin: 0; }
.foot a { text-decoration: none; }

/* motion: subtle, and content is never left hidden (site.js reveals everything after 2.5s) */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .ring:not(.on) .ring-fg { stroke-dasharray: var(--p) 100; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .icon-btn { width: 44px; height: 44px; }
  .bar { gap: 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; gap: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px max(var(--gutter), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); font-size: 1.05rem; }
  .nav.open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
  body.menu-open { overflow: hidden; }
  .resume { grid-template-columns: minmax(0, 1fr); grid-template-areas: "about" "time" "skills"; }
  .col-time { grid-row: auto; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; width: min(200px, 52vw); }
  .hero-name { font-size: clamp(2.1rem, 11vw, 2.9rem); }
  .hero-title { letter-spacing: .18em; }
  .block, .sec { padding: 20px 0; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row2, .projects, .cards { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { min-height: 48px; justify-content: center; flex: 1 1 auto; }
  .socials a, .tlink, .more-link, .back a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .contacts a, .post h3 a { display: inline-block; padding: 11px 0; }
  .contacts { gap: 0; }
  .tlink { border-bottom: 0; text-decoration: underline; }
  .socials { gap: 0 18px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .timeline > li { padding-left: 26px; }
  .project-img { max-height: 50vh; }
}
@media (max-width: 420px) {
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .interests { gap: 16px 18px; }
  .interests li { flex: 0 1 calc(33.333% - 12px); min-width: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); }
  .hero-photo { order: 0; width: auto; }
  .nav { height: calc(100vh - 64px); }
  html { scroll-padding-top: 64px; }
}

/* print: a one-page resume on white */
@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme] { --bg: #fff; --ink: #111; --muted: #444; --faint: #555; --line: #ddd; --track: #e5e5e5; --panel: #fff; --panel-line: #ddd; --glow: none; --accent-ink: var(--accent); }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .site-header, .site-footer, .cta, .socials, .kicker, .hero-tagline, #services, #ventures, #projects, #testimonials, #posts, #contact, .skip { display: none !important; }
  .hero { padding: 0 0 10pt; }
  .hero-grid { grid-template-columns: 1fr 110pt; gap: 20pt; }
  .hero-photo { order: 0; width: auto; }
  .hero-name { font-size: 30pt; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 4pt 16pt; margin: 8pt 0 0; }
  .resume { grid-template-columns: 1.1fr 1fr; grid-template-areas: "time about" "time skills"; gap: 0 18pt; }
  .col-time { grid-row: 1 / span 2; }
  .block { padding: 6pt 0; break-inside: avoid; }
  .sec-head { text-align: left; margin-bottom: 6pt; }
  .glass { padding: 0; border: 0; backdrop-filter: none; background: none; box-shadow: none; }
  .rings { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8pt; }
  .ring { width: 52px; height: 52px; }
  .ring-fg, .js .ring:not(.on) .ring-fg { stroke-dasharray: var(--p) 100; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}
