/* JNP Industries: static institutional stylesheet */
* { box-sizing: border-box; }
html { background: #FFFFFF; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: #1A1A1A; font: 400 17px/1.65 'Public Sans', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: #1A1A1A; text-decoration: underline; text-decoration-color: rgba(211,83,10,0.55); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #A63E05; text-decoration-color: #A63E05; }
a:focus-visible, button:focus-visible { outline: 2px solid #D3530A; outline-offset: 3px; }
::selection { background: #D3530A; color: #fff; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 22px; }
li { margin-bottom: 6px; }

.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .wrap { padding: 0 24px; } }

/* Skip link */
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; background: #D3530A; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; padding: 8px 14px; text-decoration: none; transform: translateY(-300%); transition: transform 0.2s ease; }
.skip:focus { transform: translateY(0); color: #fff; }

/* Navigation */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid #E5E5E5; }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; }
.brand { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand span { color: #D3530A; }
nav.primary { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
nav.primary a { text-decoration: none; color: #3D3D3D; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.primary a:hover { color: #A63E05; }
nav.primary a[aria-current="page"] { color: #A63E05; border-bottom-color: #D3530A; }

/* Typography */
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #A63E05; margin: 0 0 14px; }
h1 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.02em; line-height: 1.06; margin: 0 0 18px; }
h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 14px; }
h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 10px; }
.rule { width: 64px; height: 3px; background: #D3530A; border: 0; margin: 0 0 26px; }
.lede { font-size: 19px; line-height: 1.7; color: #333333; max-width: 720px; }
.muted { color: #595959; }

/* Sections */
section.band { padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid #E5E5E5; }
section.band:first-of-type { border-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; margin-bottom: 8px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { display: block; border: 1px solid #D9D9D9; background: #fff; padding: 24px 22px; text-decoration: none; }
a.card:hover { border-color: #D3530A; color: inherit; }
.card .kicker { margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; line-height: 1.6; color: #3D3D3D; margin: 0; }
.card .go { display: inline-block; margin-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #A63E05; }

/* Hero with looping background video (poster is always the base layer) */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: #1F1F1F url('hero-poster.jpg') center center / cover no-repeat; height: 74vh; min-height: 440px; max-height: 720px; }
@supports (height: 74svh) { .hero { height: 74svh; } }
.hero video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,18,18,0.52) 0%, rgba(18,18,18,0.72) 46%, rgba(18,18,18,0.86) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding: clamp(56px,9vw,104px) 0 clamp(36px,5vw,60px); }
.hero h1 { color: #FFFFFF; }
.hero a { color: #FFFFFF; text-decoration-color: rgba(255,255,255,0.65); }
.hero a:hover { color: #FFFFFF; text-decoration-color: #D3530A; }
@media (max-width: 767px) { .hero video { display: none; } .nav-in, footer.site .foot-in { padding-left: 24px; padding-right: 24px; } }
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }

/* Photography — one uniform treatment so mixed sources read as one system.
   Slots degrade to a neutral gray panel when a file is missing. */
.thumb { position: relative; display: block; overflow: hidden; background: #EAEAEA; aspect-ratio: 3 / 2; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.04) brightness(1.02); }
a.card:hover .thumb img { filter: saturate(0.88) contrast(1.05) brightness(1.03); }
.card.media { padding: 0; }
.card.media .card-body { padding: 22px 22px 24px; }

/* Buttons */
.btn { display: inline-block; background: #D3530A; color: #fff; padding: 14px 28px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #A63E05; color: #fff; }
.btn-ghost { display: inline-block; background: transparent; color: #A63E05; border: 1.5px solid #D3530A; padding: 12px 24px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-ghost:hover { background: rgba(211,83,10,0.08); }

/* Credentials */
.creds { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.badge { border: 1.5px solid #1A1A1A; padding: 8px 16px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.05em; background: #fff; }
.idline { font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; letter-spacing: 0.04em; color: #333333; }
.idline .dot { color: #D3530A; }

/* Definition rows */
.rows { border-top: 1px solid #E5E5E5; }
.row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid #E5E5E5; }
.row h3 { margin: 0; }
.row .mono { font-size: 14px; color: #595959; }

/* Publications */
.pub { border-left: 3px solid #D3530A; padding: 4px 0 4px 18px; margin: 0 0 20px; font-size: 16.5px; line-height: 1.7; }
.pub .doi { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }

/* Research entries */
.project { padding: 26px 0; border-bottom: 1px solid #E5E5E5; }
.project .tag { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #A63E05; margin-bottom: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; border: 1px solid #CCCCCC; padding: 6px 12px; text-decoration: none; color: #3D3D3D; }
.jump a:hover { border-color: #D3530A; color: #A63E05; }

/* Fade-in (JS-gated so no-JS renders fully) */
html.js .fade { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .fade { opacity: 1; transform: none; transition: none; } }

/* Footer */
footer.site { border-top: 1px solid #E5E5E5; margin-top: clamp(48px, 7vw, 80px); padding: 32px 0 40px; background: #F7F7F7; }
footer.site .foot-in { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 18px; }
footer.site .foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; }
footer.site nav a { text-decoration: none; color: #3D3D3D; }
footer.site nav a:hover { color: #A63E05; }
footer.site .fine { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.04em; color: #595959; border-top: 1px solid #E0E0E0; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* Print */
@media print {
  html, body { background: #fff; color: #000; font-size: 12pt; }
  header.nav, .skip, .btn, .btn-ghost, .jump, footer.site nav { display: none; }
  header.nav.print-keep { display: block; position: static; background: #fff; }
  a { color: #000; text-decoration: none; }
  .pub a[href^="https://doi.org"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  .card, .project, .pub { break-inside: avoid; border-color: #999; }
  .thumb img { filter: saturate(0.4) contrast(1.05); }
  .hero { background: #fff; height: auto; min-height: 0; max-height: none; }
  .hero video, .hero::after { display: none; }
  .hero-in { padding: 0 0 18pt; }
  .hero h1, .hero a { color: #000; }
  footer.site { background: #fff; border-top: 1px solid #000; }
  section.band { padding: 18pt 0; }
}
