/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --ink: #1A1D29;        /* blueprint navy-black */
  --paper: #F7F5F0;      /* warm paper white */
  --steel: #3D5A80;      /* steel blue accent */
  --brass: #C9A227;      /* callout/highlight accent — use sparingly */
  --dim: #6B7280;        /* dimension-line gray */
  --line: rgba(26, 29, 41, 0.18);

  --font-display: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1100px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* Title-block style eyebrow label, used throughout as a structural device
   (mirrors a real drawing's "SHEET / TITLE" stamp) */
.title-block-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.6rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.brand-mark {
  color: var(--brass);
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a:not(.nav-resume)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--brass);
  transition: width 0.2s ease;
}

.main-nav a:not(.nav-resume):hover::after {
  width: 100%;
}

.nav-resume {
  border: 1px solid var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
}

.nav-resume:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 640px) {
  .main-nav { gap: 1rem; font-size: 0.7rem; }
}

/* =========================================================
   CORNER MARKS — signature element
   Mimics alignment/registration marks on a drafting sheet.
   ========================================================= */
.corner-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.corner-mark::before,
.corner-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.35;
}
.corner-mark::before { width: 100%; height: 1px; top: 0; left: 0; }
.corner-mark::after  { width: 1px; height: 100%; top: 0; left: 0; }

.corner-tl { top: 1rem; left: 1rem; }
.corner-tr { top: 1rem; right: 1rem; }
.corner-tr::before { right: 0; left: auto; }
.corner-tr::after  { right: 0; left: auto; }
.corner-bl { bottom: 1rem; left: 1rem; }
.corner-bl::before { bottom: 0; top: auto; }
.corner-bl::after  { bottom: 0; top: auto; }
.corner-br { bottom: 1rem; right: 1rem; }
.corner-br::before { bottom: 0; top: auto; right: 0; left: auto; }
.corner-br::after  { bottom: 0; top: auto; right: 0; left: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) var(--gap) clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.5rem;
}

.hero-blurb {
  font-size: 1.05rem;
  max-width: 36em;
  color: #353846;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Experience log — sits under the hero buttons, styled like a running
   entry log on a spec sheet (title-block label + ruled list) */
.experience-log {
  margin-top: 2.75rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  max-width: 42em;
}

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.exp-item:last-child { border-bottom: none; }

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.exp-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-desc {
  font-size: 0.9rem;
  color: #353846;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .exp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--steel); border-color: var(--steel); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* Spec sheet panel beside the hero text — like a datasheet corner table */
.hero-spec {
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  align-self: stretch;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child {
  color: var(--dim);
  letter-spacing: 0.06em;
}
.spec-row span:last-child {
  text-align: right;
  font-weight: 500;
}

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

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gap);
}

.section-head {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.25rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.sheet-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.sheet {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.sheet-reverse {
  grid-template-columns: 1fr 1.3fr;
}
.sheet-reverse .sheet-image { order: 2; }
.sheet-reverse .sheet-titleblock { order: 1; }

.sheet-image {
  background: var(--ink);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.sheet:hover .sheet-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.sheet-titleblock {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tb-row.tb-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.75rem;
}

.tb-main .tb-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.tb-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.tb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.tb-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tb-cell .tb-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tb-desc {
  font-size: 0.95rem;
  color: #353846;
  line-height: 1.55;
}

.tb-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-top: auto;
  padding-top: 0.5rem;
}
.tb-link:hover { color: var(--brass); }

@media (max-width: 800px) {
  .sheet, .sheet-reverse {
    grid-template-columns: 1fr;
  }
  .sheet-reverse .sheet-image,
  .sheet-reverse .sheet-titleblock {
    order: initial;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gap);
  border-top: 1px solid var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: var(--gap);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(15%);
  border: 1px solid var(--line);
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #353846;
  max-width: 42em;
}

.skills-block {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

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

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact .title-block-label { color: var(--brass); }

.contact h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.contact-blurb {
  color: rgba(247, 245, 240, 0.75);
  max-width: 36em;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(247, 245, 240, 0.2);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(247, 245, 240, 0.2);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  padding-left: 0.75rem;
  color: var(--brass);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 240, 0.5);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .contact-link { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 1.5rem var(--gap);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
  background: var(--ink);
  border-top: 1px solid rgba(247, 245, 240, 0.1);
}
/* =========================================================
   EXPERIENCE SECTION OVERRIDES (COVER SHEET VARIANT)
   ========================================================= */
.experience {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  /* Clean breathing room top/bottom, matching hero inner boundaries */
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
  border-top: 1px dashed var(--line);
}

.experience .hero-grid {
  align-items: center;
}

.experience .exp-item:first-child {
  padding-top: 0;
}

@media (max-width: 800px) {
  .experience .hero-spec {
    margin-top: 1.5rem;
  }
}

/* =========================================================
   RESPONSIVE BLUEPRINT VIDEO EMBED CONTAINER
   ========================================================= */
.blueprint-video-container {
  width: 100%;
  margin-top: 3rem; /* Creates perfect separation spacing below your photo collage track */
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.video-ratio-lock {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Mathematical ratio rule forcing a clean 16:9 aspect frame box */
  overflow: hidden;
  background: #000; /* Deep backdrop layer while video buffers */
  border: 1px solid var(--line);
}

.video-ratio-lock iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   BROADCAST ROW LINK (MATCHES CONTACT SECTION LINKS)
   ========================================================= */
.media-broadcast-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.broadcast-strip-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.broadcast-strip-link:hover {
  padding-left: 0.75rem;
  color: var(--brass);
}

.broadcast-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--steel);
}

.broadcast-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* Responsive adjustment for tight viewport tracking profiles */
@media (max-width: 600px) {
  .broadcast-strip-link { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.35rem; 
  }
}