/* ============================================================
   HENRY LAMMONS PORTFOLIO — style.css
   All styles for index.html, project.html, about.html
   ============================================================ */

/* ------------------------------------------------------------
   CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-bg:          #FFFFFF;
  --color-card:        #FFFFFF;
  --color-nav:         #CC0000;
  --color-nav-border:  #550000;
  --color-footer:      #CC0000;
  --color-accent:      #E8A817;
  --color-accent-dim:  rgba(232, 168, 23, 0.35);
  --color-text-head:   #111111;
  --color-text-body:   #4E4C49;
  --color-border:      #A8A49D;
  --color-nav-text:    #FFFFFF;
  --color-footer-muted: rgba(255, 255, 255, 0.55);

  /* Typography */
  --font:              'Outfit', sans-serif;
  --weight-light:      100;
  --weight-regular:    400;
  --weight-label:      600;
  --weight-bold:       700;

  /* Type scale */
  --size-base:         18px;
  --size-hero:         clamp(2.8rem, 5.5vw, 5.5rem);
  --size-page-title:   clamp(2.4rem, 4.5vw, 4.5rem);
  --size-nav-name:     1.25rem;
  --size-nav-link:     1rem;
  --size-body:         1.1rem;
  --size-label:        0.75rem;
  --size-card-title:   1.15rem;
  --size-tag:          0.75rem;
  --size-meta:         0.8rem;

  /* Spacing */
  --space-xs:          0.5rem;
  --space-sm:          1rem;
  --space-md:          2rem;
  --space-lg:          3.5rem;
  --space-xl:          5.5rem;
  --space-nav:         1.75rem 2.5rem;
  --space-section:     4rem 2.5rem;
  --space-section-sm:  2.5rem 1.25rem;

  /* Layout */
  --max-width:         1240px;
  --grid-cols:         2;
  --nav-height:        84px;

  /* Borders */
  --border-std:        1px solid var(--color-border);
  --border-accent:     2px solid var(--color-accent);
}

/* ------------------------------------------------------------
   WINDOWS XP SCROLLBAR
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #d4d0c8;
  border-left: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
}

::-webkit-scrollbar-thumb:hover {
  background: #c0bdb5;
}

::-webkit-scrollbar-button {
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  height: 16px;
  display: block;
}

::-webkit-scrollbar-button:hover {
  background: #c0bdb5;
}

::-webkit-scrollbar-corner {
  background: #d4d0c8;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: var(--weight-regular);
  font-style: normal;
  background: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('media/patterntest.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* Headings always use Outfit */
h1, h2, h3, h4, h5, h6,
.nav-name, .nav-links a,
.section-label, .work-type, .work-year, .work-title,
.hero-title, .project-title, .about-title,
.project-type-tag, .project-year-tag,
.tool-tag, .discipline-tag, .back-link,
.footer-name, .footer-contact,
.work-section-heading {
  font-family: var(--font);
}

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

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

ul, ol {
  list-style: none;
}

/* No italic anywhere */
em, i {
  font-style: normal;
}

/* ------------------------------------------------------------
   UTILITY: SECTION LABEL
   ------------------------------------------------------------ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--size-label);
  font-weight: var(--weight-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* No extending line */

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(to right, #0A246A 0%, #3A6EA5 60%, #A6CAF0 100%);
  border-bottom: 3px solid #003087;
  height: var(--nav-height);
  /* opacity set to 0 by JS before animation */
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-nav);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  height: 100%;
}

nav > img {
  height: calc(var(--nav-height) - 1rem);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-name {
  font-size: var(--size-nav-name);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-nav-text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.nav-links a {
  font-size: var(--size-nav-link);
  font-weight: var(--weight-regular);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.18s ease, background 0.18s ease;
  padding: 0.45rem 1.1rem;
  border-style: outset;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover {
  color: var(--color-nav-text);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.nav-links a.active {
  color: var(--color-nav-text);
  font-weight: var(--weight-bold);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   MAIN LAYOUT WRAPPER
   ------------------------------------------------------------ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   HERO — index.html
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: min(480px, 44%) 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem 1.5rem;
  align-content: center;
  align-items: start;
  padding: 3rem 2.5rem;
  min-height: calc(100vh - var(--nav-height));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-label {
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-head);
  line-height: 1.6;
  letter-spacing: 0;
  word-break: break-word;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-sub {
  margin-top: var(--space-md);
  font-size: var(--size-body);
  color: var(--color-text-body);
  max-width: 480px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   WINDOWS XP VIDEO WINDOW
   ------------------------------------------------------------ */
/* Must use combined selector to beat .xp-window specificity */
.xp-window.hero-text-window {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 50;
}

.hero-text-body {
  aspect-ratio: unset !important;
  background: #d4d0c8 !important;
  padding: 3rem 1.75rem;
  min-height: 350px;
}

.hero-text-body .hero-content {
  position: static;
  padding: 0;
  width: auto;
  text-align: left;
}

.blog-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #b0b0b0;
}

.blog-pfp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}

.blog-pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  flex-direction: column;
}

.blog-author {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #E8A817;
}

.blog-date {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #808080;
}

.blog-text {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #333;
  line-height: 1.65;
  margin-top: 0.6rem;
}

.xp-window.hero-resume-window {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 40;
}

.resume-body {
  aspect-ratio: unset !important;
  background: #d4d0c8 !important;
  padding: 1rem;
}

.resume-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume-icon {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #003087;
  flex-shrink: 0;
}

.resume-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.resume-filename {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #003087;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-size {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 10px;
  color: #808080;
}

.resume-download-btn {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  background: #d4d0c8;
  border-style: outset;
  border-width: 2px;
  border-color: #fff #808080 #808080 #fff;
  padding: 4px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.resume-download-btn:hover {
  background: #E8A817;
  color: #fff;
}

.resume-download-btn:active {
  border-style: inset;
}

.xp-window.hero-video-window {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 1;
}

.xp-window {
  position: relative;
  z-index: 1;
  isolation: isolate;
  /* Outer chrome: dark border + raised inner edge */
  border: 2px solid #003087;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    3px 3px 8px rgba(0,0,0,0.45);
  background: #d4d0c8;
  user-select: none;
}

.xp-titlebar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 4px 3px 6px;
  /* Classic XP title bar gradient */
  background: linear-gradient(to right, #0A246A 0%, #3A6EA5 60%, #A6CAF0 100%);
  height: 26px;
  cursor: grab;
}

.xp-titlebar:active {
  cursor: grabbing;
}

.xp-titlebar-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.xp-titlebar-text {
  flex: 1;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.xp-titlebar-btns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.xp-btn {
  width: 21px;
  height: 19px;
  font-size: 10px;
  line-height: 1;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  border-style: outset;
  border-width: 2px;
  border-color: #fff #808080 #808080 #fff;
  background: #d4d0c8;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.xp-btn:active {
  border-style: inset;
}

.xp-close {
  background: #d4d0c8;
}

.xp-body {
  /* 2px inset border inside the window body */
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  margin: 3px;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.xp-body iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------
   WORK GRID — index.html
   ------------------------------------------------------------ */
.work-section {
  padding: var(--space-lg) 2.5rem;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: 1.5rem;
}

.work-card {
  overflow: hidden;
  transition: box-shadow 0.22s ease;
}

.work-card:hover {
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    5px 5px 12px rgba(0,0,0,0.5);
  border-color: #E8A817;
  z-index: 1;
}

/* Reset xp-window absolute positioning for grid cards */
.work-card.xp-window {
  position: relative;
  flex: none;
  max-width: 100%;
  width: 100%;
}

.work-card:hover .work-thumb img {
  transform: scale(1.04);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-border);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
  display: block;
}

.work-caption {
  padding: 1.4rem 1.6rem 1.8rem;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.65rem;
}

.work-type {
  font-size: var(--size-tag);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.work-year {
  font-size: var(--size-tag);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-border);
}

.work-title {
  font-size: var(--size-card-title);
  font-weight: var(--weight-bold);
  color: var(--color-text-head);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Selected Work heading */
.work-section-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--weight-bold);
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-align: center;
  background: linear-gradient(to right, transparent 0%, #0A246A 30%, #3A6EA5 50%, #A6CAF0 70%, transparent 100%);
  padding: 1.1em 2.4em;
  border-radius: 6px;
  display: block;
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   PROJECT PAGE — project.html
   ------------------------------------------------------------ */
.project-hero {
  padding: var(--space-lg) 2.5rem var(--space-md);
  border-bottom: var(--border-accent);
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.project-type-tag {
  font-size: var(--size-tag);
  font-weight: var(--weight-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-accent-dim);
  background: transparent;
}

.project-year-tag {
  font-size: var(--size-tag);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-body);
}

.project-title {
  font-size: var(--size-page-title);
  font-weight: var(--weight-bold);
  color: var(--color-text-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Video embed */
.project-video-section {
  padding: var(--space-lg) 2.5rem;
  border-bottom: var(--border-std);
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border: var(--border-std);
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Project body */
.project-body {
  padding: var(--space-lg) 2.5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  border-bottom: var(--border-std);
  align-items: start;
}

.project-description {
  font-size: var(--size-body);
  color: var(--color-text-body);
  line-height: 1.75;
}

.project-description p + p {
  margin-top: var(--space-sm);
}

.project-sidebar {}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.tool-tag {
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-body);
  padding: 0.3rem 0.65rem;
  background: var(--color-bg);
  border: var(--border-std);
}

/* Gallery */
.project-gallery {
  padding: var(--space-lg) 2.5rem;
  border-bottom: var(--border-std);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--border-std);
  border-left: var(--border-std);
}

.gallery-item {
  border-right: var(--border-std);
  border-bottom: var(--border-std);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Back link */
.back-link-row {
  padding: var(--space-md) 2.5rem;
}

.back-link {
  font-size: var(--size-label);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.18s ease;
}

.back-link:hover {
  gap: 0.85rem;
}

/* ------------------------------------------------------------
   ABOUT PAGE — about.html
   ------------------------------------------------------------ */
.about-hero {
  padding: var(--space-xl) 2.5rem var(--space-lg);
  border-bottom: var(--border-accent);
}

.about-title {
  font-size: var(--size-page-title);
  font-weight: var(--weight-bold);
  color: var(--color-text-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-body {
  padding: var(--space-lg) 2.5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
  border-bottom: var(--border-std);
}

.bio-section {}

.bio-text {
  font-size: var(--size-body);
  color: var(--color-text-body);
  line-height: 1.8;
}

.bio-text p + p {
  margin-top: 1.2rem;
}

.bio-disciplines {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discipline-tag {
  font-size: var(--size-tag);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-accent-dim);
}

.contact-section {}

.contact-email-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--color-accent-dim);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-email-link:hover {
  color: var(--color-text-head);
  border-color: var(--color-text-head);
}

.contact-note {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   HORIZONTAL RULE DIVIDER
   ------------------------------------------------------------ */
hr.divider {
  border: none;
  border-top: var(--border-std);
  margin: 0;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  background: linear-gradient(to right, #0A246A 0%, #3A6EA5 60%, #A6CAF0 100%);
  border-top: 3px solid #003087;
  position: relative;
  z-index: 1;
}

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

.footer-name {
  font-size: var(--size-nav-name);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-nav-text);
}

.footer-contact {
  font-size: 0.85rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.18s ease;
}

.footer-contact a:hover {
  color: var(--color-nav-text);
}

/* ------------------------------------------------------------
   RESPONSIVE — tablet (≤ 900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root {
    --grid-cols:   1;
    --nav-height:  70px;
    --space-nav:   1.25rem 1.75rem;
    --space-lg:    2.5rem;
    --space-xl:    3.5rem;
  }

  /* Work grid → single column */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Project & about two-col → single col */
  .project-body,
  .about-body {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Gallery → 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero — single column stack on tablet */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 2.5rem 1.75rem;
    gap: 1rem;
  }

  .xp-window.hero-video-window {
    grid-column: 1;
    grid-row: 1;
  }

  .xp-window.hero-text-window {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
  }

  .xp-window.hero-resume-window {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: 100%;
  }

  /* Selected Work heading — less horizontal padding */
  .work-section-heading {
    padding: 0.9em 1.6em;
  }

  /* Work section padding */
  .work-section {
    padding: var(--space-lg) 1.75rem;
  }

  /* Project / about padding */
  .project-hero,
  .project-video-section,
  .project-body,
  .project-gallery,
  .back-link-row,
  .about-hero,
  .about-body {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — mobile (≤ 600px)
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  :root {
    --nav-height:  60px;
    --space-nav:   0.9rem 1.1rem;
    --space-md:    1.25rem;
    --space-lg:    2rem;
    --space-xl:    2.5rem;
    --size-nav-name: 1rem;
    --size-nav-link: 0.8rem;
  }

  /* Nav — tighten spacing */
  nav {
    padding: var(--space-nav);
  }

  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a {
    padding: 0.35rem 0.75rem;
  }

  /* Hero — single column on mobile */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .xp-window.hero-video-window {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
  }

  .xp-window.hero-text-window {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
  }

  .xp-window.hero-resume-window {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: 100%;
  }

  .hero-text-body {
    min-height: auto !important;
  }

  /* Disable drag cursor on mobile */
  .xp-titlebar {
    cursor: default;
  }
  .xp-titlebar:active {
    cursor: default;
  }

  .hero-title {
    font-size: 11px;
    text-align: center;
  }

  /* Work section */
  .work-section {
    padding: 1.5rem 1rem;
  }

  .work-section-heading {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 0.8em 1em;
  }

  /* Work card caption */
  .work-caption {
    padding: 1rem 1.1rem 1.3rem;
  }

  /* Gallery → single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Project / about */
  .project-hero,
  .project-video-section,
  .project-body,
  .project-gallery,
  .back-link-row,
  .about-hero,
  .about-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-title,
  .about-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
    gap: 0.35rem;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — small mobile (≤ 400px)
   ------------------------------------------------------------ */
@media (max-width: 400px) {
  .nav-name {
    font-size: 0.85rem;
  }

  .nav-links a {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: clamp(0.95rem, 4.5vw, 1.4rem);
  }
}
