/* ============================================================
   BRADLEY RAMSEY — PORTFOLIO
   Design system: Engineering Blueprint / Drafting Sheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* ---- palette ---- */
  --navy:        #0F2A44;   /* grid "square" background — unchanged */
  --navy-deep:   #0A1E33;   /* deeper background / footer */
  --navy-line:   rgba(90, 180, 255, 0.30); /* grid lines — v4 bright blue */
  --navy-line-strong: rgba(90, 180, 255, 0.55);
  --content-bg:  #0B0E13;   /* main content column background — v4 background */
  --cyan:        #8FD6FF;   /* blueprint linework / headings on navy */
  --cyan-dim:    #5B93B8;
  --ink:         #EAF3FB;   /* body text on navy */
  --ink-dim:     #AFC7DC;
  --paper:       #EDE6D3;   /* vellum paper for cards */
  --paper-line:  rgba(20, 32, 43, 0.14);
  --paper-ink:   #16222E;   /* dark ink on paper */
  --paper-ink-dim: #4A5A68;
  --redline:     #FF5A36;   /* engineer's red pencil accent */
  --redline-dim: #C7401F;

  --radius: 2px;
  --sheet-max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

/* fine graph-paper grid — side rails only, never behind text */
body::before, body::after{
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  width: max(0px, calc((100vw - var(--sheet-max)) / 2));
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
body::before{ left: 0; }
body::after{ right: 0; }

/* main content column — solid v4-dark background, sits above the grid rails */
.content-band{
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--sheet-max));
  background: var(--content-bg);
  z-index: 0;
  pointer-events: none;
}

a{ color: var(--cyan); }

h1,h2,h3,h4{
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.mono{ font-family: 'IBM Plex Mono', monospace; }

.wrap{
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 480px){
  .wrap{ padding: 0 18px; }
}

/* ============================================================
   CORNER REGISTRATION MARKS — signature motif
   ============================================================ */
.sheet{
  position: relative;
  padding: 90px 0;
  border-bottom: 1px solid var(--navy-line-strong);
}
.sheet:last-of-type{ border-bottom: none; }
@media (max-width: 480px){
  .sheet{ padding: 56px 0; }
}

.reg-mark{
  position: absolute;
  width: 22px; height: 22px;
  z-index: 2;
  pointer-events: none;
}
.reg-mark::before, .reg-mark::after{
  content: "";
  position: absolute;
  background: var(--cyan-dim);
}
.reg-mark::before{ width: 100%; height: 1px; top: 50%; left: 0; }
.reg-mark::after{ height: 100%; width: 1px; left: 50%; top: 0; }
.reg-mark.tl{ top: 18px; left: 18px; }
.reg-mark.tr{ top: 18px; right: 18px; }
.reg-mark.bl{ bottom: 18px; left: 18px; }
.reg-mark.br{ bottom: 18px; right: 18px; }

/* ============================================================
   TITLE BLOCK — recurring drafting-sheet metadata stamp
   ============================================================ */
.title-block{
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--navy-line-strong);
  background: rgba(10, 30, 51, 0.55);
  backdrop-filter: blur(2px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-dim);
  z-index: 2;
  min-width: 190px;
}
.title-block .tb-row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--navy-line);
  white-space: nowrap;
}
.title-block .tb-row:last-child{ border-bottom: none; }
.title-block .tb-row span:first-child{ color: var(--cyan-dim); }
.title-block .tb-row span:last-child{ color: var(--ink); letter-spacing: 0.02em; }

@media (max-width: 720px){
  .title-block{ position: static; margin: 0 0 28px; width: fit-content; }
}

/* ============================================================
   NAV
   ============================================================ */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 26, 45, 0.92);
  border-bottom: 1px solid var(--navy-line-strong);
  backdrop-filter: blur(6px);
}
.nav-inner{
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.brand{
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .mono{ font-size: 11px; color: var(--redline); }

nav.primary{ display: flex; gap: 6px; }
nav.primary a{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: all .15s ease;
}
nav.primary a:hover, nav.primary a.active{
  color: var(--cyan);
  border-color: var(--navy-line-strong);
  background: rgba(143, 214, 255, 0.06);
}
nav.primary a .num{ color: var(--redline); margin-right: 6px; }

/* Hamburger toggle — hidden on desktop, shown at the mobile/tablet breakpoint below */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--navy-line-strong);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity: 0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  nav.primary{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 20, 35, 0.98);
    border-bottom: 1px solid var(--navy-line-strong);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  nav.primary.open{ display: flex; }
  nav.primary a{
    padding: 15px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--navy-line);
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
  }
  nav.primary a:last-child{ border-bottom: none; }
}

@media (max-width: 480px){
  .nav-inner{ padding: 0 16px; }
  .brand{ font-size: 15px; gap: 5px; }
  .brand .mono{ font-size: 9px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{ padding: 100px 0 70px; position: relative; }
@media (max-width: 480px){
  .hero{ padding: 56px 0 50px; }
}
.eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--redline);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 28px; height: 1px;
  background: var(--redline);
}
h1.display{
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  margin-bottom: 6px;
}
h1.display .thin{ color: var(--cyan-dim); font-weight: 400; }
.role-line{
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  color: var(--cyan);
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-top: 18px;
}
.hero-lede{
  max-width: 640px;
  margin-top: 26px;
  font-size: 17px;
  color: var(--ink-dim);
}

/* dimension-line divider — signature element */
.dim-line{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0;
  color: var(--cyan-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
@media (max-width: 700px){
  .dim-line{
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
  .dim-line::before, .dim-line::after{ display: none; }
}
.dim-line::before, .dim-line::after{
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--navy-line-strong) 0 6px, transparent 6px 10px);
  position: relative;
}

.targets{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.targets .tag{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  border: 1px solid var(--navy-line-strong);
  padding: 6px 12px;
  color: var(--ink-dim);
}
.targets .tag::before{ content: "▸ "; color: var(--redline); }

.cta-row{ display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.btn{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--cyan-dim);
  color: var(--ink);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover{ background: var(--cyan); color: var(--navy-deep); border-color: var(--cyan); }
.btn.solid{ background: var(--redline); border-color: var(--redline); color: #fff; }
.btn.solid:hover{ background: var(--redline-dim); border-color: var(--redline-dim); color: #fff; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sheet-head{ margin-bottom: 44px; }
.sheet-num{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--redline);
  letter-spacing: 0.1em;
}
.sheet-title{ font-size: clamp(28px, 4vw, 40px); margin-top: 8px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo{
  border: 1px solid var(--navy-line-strong);
  padding: 10px;
  background: rgba(10,30,51,.4);
}
.about-photo img{ width: 100%; display: block; filter: grayscale(15%) contrast(1.03); }
.about-photo .cap{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--cyan-dim);
  padding-top: 8px;
  letter-spacing: 0.05em;
}
.about-body p{ color: var(--ink-dim); margin: 0 0 16px; max-width: 640px; }
.about-body strong{ color: var(--ink); }

@media (max-width: 720px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   SPEC LIST (skills) — like a materials/spec table
   ============================================================ */
.spec-table{ width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr{ border-bottom: 1px solid var(--navy-line); }
.spec-table td{ padding: 14px 0; vertical-align: top; }
.spec-table td.spec-label{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--redline);
  letter-spacing: 0.1em;
  width: 190px;
  white-space: nowrap;
}
.spec-table td.spec-value{ color: var(--ink-dim); }
.chip-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--navy-line-strong);
  padding: 5px 10px;
}
@media (max-width: 640px){
  .spec-table tr{ display: block; padding: 12px 0; }
  .spec-table td{ display: block; padding: 4px 0; }
  .spec-table td.spec-label{ width: auto; margin-bottom: 4px; white-space: normal; }
}

/* ============================================================
   PROJECT / WORK CARDS
   ============================================================ */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.proj-card{
  border: 1px solid var(--navy-line-strong);
  background: rgba(10, 30, 51, 0.35);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .18s ease, border-color .18s ease;
  position: relative;
}
.proj-card:hover{ transform: translateY(-4px); border-color: var(--cyan-dim); }
.proj-card .thumb{ aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--navy-line-strong); }
.proj-card .thumb img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); }
.proj-card .meta{ padding: 18px 20px 22px; }
.proj-card .ptag{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--redline);
  letter-spacing: 0.1em;
}
.proj-card h3{ font-size: 20px; margin-top: 8px; }
.proj-card p{ color: var(--ink-dim); font-size: 14px; margin-top: 8px; }

/* ============================================================
   TIMELINE (career.html)
   ============================================================ */
.timeline{ position: relative; margin-top: 10px; }
.timeline::before{
  content: "";
  position: absolute;
  left: 108px;
  top: 6px; bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--navy-line-strong) 0 6px, transparent 6px 12px);
}
@media (max-width: 720px){
  .timeline::before{ left: 14px; }
}

.tl-entry{
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--navy-line);
}
.tl-entry:first-child{ padding-top: 0; }
.tl-date{
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--cyan-dim);
  padding-top: 4px;
}
.tl-dot{
  position: absolute;
  left: 104px; top: 34px;
  width: 9px; height: 9px;
  border: 1px solid var(--redline);
  background: var(--navy);
  transform: rotate(45deg);
}
@media (max-width: 720px){
  .tl-entry{ grid-template-columns: 1fr; padding-left: 30px; }
  .tl-dot{ left: 10px; }
  .tl-date{ padding-top: 0; margin-bottom: 6px; }
}
.tl-org{ font-size: 22px; }
.tl-role{
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  color: var(--redline);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.tl-loc{ color: var(--cyan-dim); font-size: 13.5px; margin-top: 2px; font-family: 'IBM Plex Sans', sans-serif; }
.tl-entry ul{ margin: 14px 0 0; padding-left: 18px; color: var(--ink-dim); font-size: 14.5px; }
.tl-entry li{ margin-bottom: 6px; }
.tl-entry.early{ opacity: 0.82; }
.tl-entry.edu .tl-dot{ border-color: var(--cyan); }
.tl-entry.edu .tl-role{ color: var(--cyan); }
.tl-entry.edu .tl-org{ color: var(--cyan); }
.tl-note{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: var(--cyan-dim);
  font-style: normal;
}

/* ============================================================
   PAPER / VELLUM SECTION (used for contact + resume detail pages)
   ============================================================ */
.paper-panel{
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
  padding: 44px;
}
.paper-panel h2, .paper-panel h3{ color: var(--paper-ink); }
.paper-panel .dim-line{ color: var(--paper-ink-dim); }
.paper-panel .dim-line::before, .paper-panel .dim-line::after{
  background: repeating-linear-gradient(90deg, var(--paper-line) 0 6px, transparent 6px 10px);
}
.paper-panel a{ color: var(--redline-dim); }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-row{ padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.contact-row .k{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--redline-dim);
  display: block;
  margin-bottom: 4px;
}
.contact-row .v{ font-size: 16px; }
.contact-row .v a{ text-decoration: none; color: var(--paper-ink); border-bottom: 1px solid var(--redline-dim); }

@media (max-width: 720px){
  .contact-grid{ grid-template-columns: 1fr; }
  .paper-panel{ padding: 28px; }
}

/* ============================================================
   PROJECT DETAIL PAGES
   ============================================================ */
.detail-hero-img{
  width: 100%;
  border: 1px solid var(--navy-line-strong);
  margin-bottom: 40px;
}
.detail-hero-img img{ width: 100%; display: block; }
.detail-grid{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
}
.detail-body p{ color: var(--ink-dim); margin-bottom: 18px; font-size: 16px; }
.detail-body ul{ color: var(--ink-dim); padding-left: 20px; }
.detail-body li{ margin-bottom: 10px; }
.detail-side .spec-table td.spec-label{ width: auto; display:block; padding-bottom: 2px; }
.detail-side .spec-table td{ display: block; padding: 10px 0; }
.detail-side .spec-table tr{ display:block; }
.gallery{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.gallery img{ width: 100%; border: 1px solid var(--navy-line-strong); display:block; }

.img-blank{
  border: 1px dashed var(--cyan-dim);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(90,180,255,0.06) 10px 11px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  min-height: 260px;
}
.detail-hero-img.img-blank{ min-height: 340px; }
.gallery .img-blank{ min-height: 160px; border-color: var(--navy-line-strong); }
.proj-card .thumb.img-blank{ min-height: unset; height: 100%; }

@media (max-width: 860px){
  .detail-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line-strong);
  padding: 40px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
}
footer a{ color: var(--ink-dim); }
footer a:hover{ color: var(--cyan); }
