/* Page components: hero, stats, section headings, work, experience,
   skills, contact and the scroll reveal effect. */

/* hero */
header{padding:120px 0 90px}
.avail{font-family:var(--mono);font-size:12.5px;color:var(--muted);display:inline-flex;align-items:center;gap:9px;margin-bottom:34px}
.avail .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
h1{font-family:var(--serif);font-weight:300;font-size:clamp(34px,6.5vw,60px);line-height:1.08;letter-spacing:-.5px}
h1 em{font-style:italic;color:var(--accent)}
header p{margin-top:28px;max-width:600px;color:var(--muted);font-size:19px}
header p b{color:var(--ink);font-weight:500}
.hero-links{margin-top:34px;display:flex;gap:22px;font-family:var(--mono);font-size:13px;flex-wrap:wrap}
.hero-links a{border-bottom:1px solid var(--ink);padding-bottom:2px;transition:.2s}
.hero-links a:hover{color:var(--accent);border-color:var(--accent)}

/* stat line */
.stats{display:flex;flex-wrap:wrap;gap:38px;padding:34px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:60px}
.stats .s b{font-family:var(--serif);font-size:30px;font-weight:400;display:block;line-height:1}
.stats .s span{font-family:var(--mono);font-size:11.5px;color:var(--muted);letter-spacing:.2px}

/* section heading */
.lead{font-family:var(--mono);font-size:12.5px;font-weight:400;color:var(--accent);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:34px;display:flex;align-items:center;gap:12px}
.lead::before{content:"";width:22px;height:1px;background:var(--accent)}
.prose p{color:var(--ink-soft);font-size:18px;margin-bottom:18px;max-width:640px}
.prose p b{font-weight:500}

/* work list */
.work .item{display:grid;grid-template-columns:52px 1fr;gap:20px;align-items:baseline;padding:26px 0;border-top:1px solid var(--line);position:relative}
.work .item:last-child{border-bottom:1px solid var(--line)}
.work .yr{font-family:var(--mono);font-size:12px;color:var(--dim)}
.work h3{font-family:var(--serif);font-weight:400;font-size:23px;line-height:1.15}
.work .desc{color:var(--muted);font-size:15px;margin-top:6px;max-width:520px}
.work .stk{margin-top:11px}

/* Technology chips. Scannable at a glance: a reader looking for one stack
   spots it without reading the line. */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips span{
  font-family:var(--mono);font-size:11px;line-height:1.5;color:var(--dim);
  background:var(--paper);border:1px solid var(--line);border-radius:3px;
  padding:3px 8px;white-space:nowrap;
}

/* Screenshot. width/height are set on the element so the browser reserves
   the box before the image arrives and the page does not jump. Shared by
   the work and personal-project sections.

   Screenshots are light-content images, so on a dark page they read as
   floating panels. --shot-shadow seats them: none on paper, a soft drop in
   dark. The --line border does the rest. */
.shot{
  display:block;width:100%;height:auto;margin-top:16px;
  border:1px solid var(--line);border-radius:4px;background:var(--paper);
  box-shadow:var(--shot-shadow);
}

/* Destination links. Only projects with a live, public URL get these, so a
   listed link always goes somewhere real. */
.links{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;font-family:var(--mono);font-size:12px}
.links a{color:var(--accent);border-bottom:1px solid transparent;padding-bottom:1px;transition:border-color .2s}
.links a:hover{border-color:var(--accent)}

/* Personal projects reuse the work list styling; the heading and the intro
   line carry the distinction, not a different visual language. */
.intro{color:var(--muted);font-size:16px;max-width:620px;margin:-14px 0 30px}

@media(max-width:600px){.work .item{grid-template-columns:1fr;gap:6px}}

/* experience */
.xp .row{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:20px 0;border-top:1px solid var(--line)}
.xp .row:last-child{border-bottom:1px solid var(--line)}
.xp .when{font-family:var(--mono);font-size:12px;color:var(--dim)}
.xp .co{font-family:var(--serif);font-size:18px}
.xp .rl{color:var(--muted);font-size:14.5px;margin-top:3px}
@media(max-width:600px){.xp .row{grid-template-columns:1fr;gap:4px}}

/* skills */
.skillrow{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:16px 0;border-top:1px solid var(--line)}
.skillrow:last-child{border-bottom:1px solid var(--line)}
.skillrow .k{font-family:var(--mono);font-size:12px;color:var(--accent);text-transform:uppercase;letter-spacing:.5px}
.skillrow .v{color:var(--ink-soft);font-size:15.5px}
@media(max-width:600px){.skillrow{grid-template-columns:1fr;gap:4px}}

/* contact */
.contact{padding:110px 0 90px;text-align:center}
.contact .lead{justify-content:center}
.contact .statement{font-family:var(--serif);font-weight:300;font-size:clamp(30px,6vw,56px);line-height:1.1}
.contact a.big{border-bottom:2px solid var(--accent);color:var(--accent);transition:.2s}
.contact a.big:hover{opacity:.7}
.contact .sub{margin-top:22px;color:var(--muted)}
.contact .row{margin-top:30px;display:flex;gap:24px;justify-content:center;font-family:var(--mono);font-size:13px;flex-wrap:wrap}
.contact .row a{border-bottom:1px solid var(--ink);padding-bottom:2px}
.contact .row a:hover{color:var(--accent);border-color:var(--accent)}

/* Scroll reveal. Content is only hidden when scripting is confirmed
   available, so a script failure leaves the page fully readable
   instead of blank. See the guards in index.html and reveal.js. */
.reveal{transition:opacity .8s ease,transform .8s ease}
.js .reveal{opacity:0;transform:translateY(16px)}
.js .reveal.in{opacity:1;transform:none}

/* Reduced motion opts out of hiding entirely rather than just shortening the
   fade — otherwise content would still wait on the observer to appear.
   !important because this ties on specificity with the rule above and would
   otherwise win only by source order, which a later edit could silently
   reverse. It also has to beat .js .reveal.in, which is more specific. */
@media (prefers-reduced-motion: reduce){
  .js .reveal{opacity:1 !important;transform:none !important}
}
