/* =================================================================
   Sean Jenkins — Portfolio
   Flat, no decorations. One accent (crimson). One font.
   ================================================================= */

:root {
  --ink:       #100f0d;
  --surface:   #1a1714;
  --line:      #2c2620;
  --line-soft:  rgba(232,224,216,.08);

  --crimson:   #c41e3a;
  --gold:      #d4a574;

  --text:      #e8e0d8;
  --muted:     #9a8e82;
  --faint:     #847a70;

  --matte:     #ece4da;

  --maxw: 1120px;
  --gut:  clamp(24px, 5vw, 64px);
  --radius: 10px;
  --rhythm: 1.55;             /* line-height for body */

  --f: "Inter", system-ui, sans-serif;
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f);
  font-size: 17px;
  line-height: var(--rhythm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { color: var(--crimson); }
::selection { background: var(--crimson); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--crimson);
  color: #fff;
  font-size: .82rem;
  padding: 10px 20px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--crimson);
  font-weight: 500;
}

.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.section-sub { color: var(--muted); max-width: 48ch; }

/* ---------- brand mark ---------- */
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-family: var(--f);
}
.brand__bracket { color: var(--gold); font-weight: 500; }
.brand__j { color: var(--crimson); }
.brand--sm { font-size: 1.35rem; }

/* ---------- nav (plain, no blur) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gut);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav__links a {
  font-size: .84rem;
  letter-spacing: .03em;
  color: var(--muted);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 6px;
}
.nav__cta:hover { border-color: var(--crimson); }

/* ---------- hero (no glow, no grain, no terminal, no pills) ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh var(--gut) 8vh;
}

.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.hero__mark {
  font-weight: 700;
  font-size: clamp(3.2rem, 14vw, 9rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: .25em;
}
.hero__brk { color: var(--gold); font-weight: 500; }
.hero__j   { color: var(--crimson); }

.hero__lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons (flat, no lift on hover) ---------- */
.btn {
  font-size: .86rem;
  letter-spacing: .01em;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-block;
}
.btn--solid { background: var(--crimson); color: #fff; }
.btn--solid:hover { background: #d42040; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--crimson); color: var(--text); }

/* ---------- section heads ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 2.5rem;
}

/* ---------- WORK grid ---------- */
.work { padding: 5rem var(--gut); }

.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 16px;
}
.grid.is-masonry { grid-auto-rows: 2px; gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card:hover {
  border-color: var(--crimson);
}

/* spans */
.card--feat { grid-column: span 2; }

/* media area */
.card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.card--feat .card__media { aspect-ratio: 16 / 9; }
.card--tall .card__media { aspect-ratio: 3 / 4; }
.card__media--cover img { width: 100%; height: 100%; object-fit: cover; }
.card--feat .card__media img { object-position: top center; }

/* matte (line-art on white) */
.card__media--matte { background: var(--matte); display: grid; place-items: center; padding: 18px; }
.card__media--matte img { width: 100%; height: 100%; object-fit: contain; }

/* logos duo */
.card__media--logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px;
  place-items: center;
  background: var(--ink);
}
.card__media--logos img { width: 100%; height: 100%; max-height: 130px; object-fit: contain; }

/* placeholder when image missing */
.ph {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: var(--faint);
  text-align: center;
  padding: 16px;
  background: var(--ink);
}
.card__media.is-missing img { display: none; }
.card__media.is-missing .ph { display: flex; }

/* card body */
.card__body { padding: 16px 18px 18px; }
.tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.tag--gold   { color: var(--gold); border-color: var(--gold); }
.tag--accent { color: #fff; background: var(--crimson); border-color: var(--crimson); }

.card__title {
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.card--feat .card__title { font-size: 1.45rem; }
.card__desc { color: var(--muted); font-size: .94rem; margin-bottom: 10px; }
.card__proc {
  font-size: .72rem;
  letter-spacing: .01em;
  color: var(--gold);
  opacity: .85;
}

/* ---------- ABOUT (flat bg, no gradient) ---------- */
.about { padding: 5rem var(--gut); }
.about__panel {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about__text p { margin-bottom: 1rem; max-width: 58ch; }
.about__text p:first-of-type { font-size: 1.12rem; }
.about__note { color: var(--faint) !important; font-size: .94rem !important; border-left: 2px solid var(--crimson); padding-left: 14px; }

.stats { list-style: none; display: grid; gap: 20px; }
.stats li { border-top: 1px solid var(--line); padding-top: 14px; }
.stats__num {
  display: block;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.02em;
}
.stats__lbl { font-size: .76rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
  padding: 6rem var(--gut);
  max-width: 680px;
  margin: 0 auto;
}
.contact__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .6rem;
}
.contact__sub { color: var(--muted); margin-bottom: 2rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gut);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer__tag { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.footer__meta { font-size: .74rem; color: var(--faint); }
.footer__meta a { color: var(--gold); border-bottom: 1px solid transparent; }
.footer__meta a:hover { border-color: var(--gold); }

/* ---------- reveal (subtle, not aggressive) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--feat { grid-column: span 2; }
  .about__panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats li { border-top: none; border-left: 1px solid var(--line); padding: 0 0 0 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .grid, .grid.is-masonry { grid-template-columns: 1fr; grid-auto-rows: auto; align-items: start; }
  .card--feat { grid-column: auto; }
  .card { grid-row: auto !important; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-left: none; border-top: 1px solid var(--line); padding: 14px 0 0; }
}

/* ---------- lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16,15,13,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gut);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: 0;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.lightbox-close:hover { background: var(--surface); }
.lightbox-figure {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius);
  object-fit: contain;
  margin: 0 auto 16px;
}
.lightbox-caption {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 12px;
}
.lightbox-title {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.lightbox-link { margin-top: 8px; }

/* lightbox gallery */
.lightbox-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 0;
}
.lightbox-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.lightbox-thumb:hover {
  border-color: var(--gold);
}

/* ---------- no-JS fallback ---------- */
<noscript>
  <style>
    .hero__inner { opacity:1!important; transform:none!important; }
    .terminal { display:none!important; }
    [data-reveal] { opacity:1!important; transform:none!important; }
  </style>
</noscript>