* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #0044ff;
  --accent-dark: #0033cc;
  --card-bg: #fff;
  --text: #000;
  --text-light: #000;
  --menu-line: #000;
  --work-opacity: 0.85;
}

/* Light mode */
[data-theme="light"] {
  --accent: #ffffff;
  --accent-dark: #f5f5f5;
  --card-bg: #fff;
  --text: #000;
  --text-light: #333;
  --menu-line: #000;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--accent);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  border: 20px solid #000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

/* Header */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 3rem;
  position: relative;
  z-index: 10;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo {
  width: 36px;
  height: 30px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.header-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  opacity: 0.8;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 0;
  border-left: 3px solid var(--menu-line);
  border-right: 3px solid var(--menu-line);
  padding: 0 1rem;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.header-nav a:hover {
  opacity: 0.7;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
  padding-left: 1.5rem;
  min-width: 0;
}

.header-contact-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.icon {
  width: 22px;
  height: 22px;
  border: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.icon:hover {
  opacity: 0.7;
}

.icon-moon {
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -5px 0 0 0 var(--text);
  cursor: pointer;
  border: 3px solid var(--text);
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Sun icon when in light mode (filled circle = light mode on) */
[data-theme="light"] .icon-moon {
  box-shadow: none;
  background: var(--text);
}

.icon-github,
.icon-linkedin {
  border-radius: 50%;
  text-decoration: none;
  color: var(--text);
  border: none;
}

.icon-github svg,
.icon-linkedin svg {
  width: 12px;
  height: 12px;
}

.header-contact-info {
  font-size: 0.7rem;
  line-height: 1.5;
  min-width: 0;
}

.header-contact-info p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-contact-info p + p {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--menu-line);
}

.header-contact-info a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-contact-info a:hover {
  opacity: 0.7;
}

/* Main - Wave Canvas + Hero Panel */
.main {
  position: relative;
  width: 100%;
  min-height: min(620px, calc(100vh - 220px));
  border-left: 3px solid #000;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* a-waves component */
a-waves {
  --x: -0.5rem;
  --y: 50%;

  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  cursor: crosshair;
}

a-waves::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--text);
  border-radius: 50%;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  will-change: transform;
  content: "";
  pointer-events: none;
}

a-waves svg {
  display: block;
  width: 100%;
  height: 100%;
}

a-waves svg path {
  fill: none;
  stroke: var(--text);
  stroke-width: 1px;
}

/* Hero panel - the first thing a visitor reads */
.hero-panel {
  position: relative;
  z-index: 5;
  max-width: 720px;
  width: 100%;
  background: var(--accent);
  border: 3px solid var(--text);
  box-shadow: 12px 12px 0 var(--text);
  padding: 2.5rem 2.75rem 2.75rem;
}

.hero-eyebrow {
  font-family: 'Martian Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-name {
  font-family: 'Martian Mono', monospace;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34em;
  margin-bottom: 1.5rem;
}

.hero-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 500;
  padding-top: 1.25rem;
  border-top: 3px solid var(--text);
  margin-bottom: 1.75rem;
}

.hero-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
  margin-top: 0.42rem;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

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

/* Shared button */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 3px solid var(--text);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}

.btn-primary {
  background: var(--text);
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--text);
  color: var(--accent);
}

/* Hero Footer */
.hero-footer {
  padding: 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 10;
  border-bottom: 4px solid var(--menu-line);
  overflow-x: hidden;
}

.hero-footer .binary-line:first-child {
  margin-bottom: 0;
}

.binary-line {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0.35rem 0.5rem;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  box-sizing: border-box;
}

.binary-line .binary-digit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 0.2rem 0.1rem;
  min-width: 0;
  text-align: center;
}

.binary-line .binary-slash {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.hero-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0;
}

.hero-marquee-inner {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-text {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  font-family: 'Martian Mono', monospace;
}

.plus {
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 0.1em;
}

/* ============================================================
   Work Section - Black Hole background + project cards
   ============================================================ */
.work-section-hole {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: var(--work-opacity);
  transition: opacity 0.3s ease;
}

.work-hole {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.work-hole .js-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.work-hole .aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    transparent 20%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

.work-hole .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 45%,
    transparent 0%,
    transparent 40%,
    rgba(0, 68, 255, 0.3) 100%
  );
  pointer-events: none;
}

.work-hole-label {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.95;
  pointer-events: none;
  font-family: 'Martian Mono', monospace;
}

.work-body {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.work-intro {
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.work-grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Card */
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--accent);
  border: 3px solid var(--text);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--text);
}

.work-card-preview {
  height: 160px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--text);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

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

.work-card-feature .work-card-preview {
  height: 230px;
}

/* Placeholder preview for projects without a screenshot */
.work-card-preview-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
}

.work-card-preview-blank span {
  font-family: 'Martian Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.work-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
  gap: 0.8rem;
}

.work-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.work-card-head h3 {
  font-family: 'Martian Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.work-card-feature .work-card-head h3 {
  font-size: 1.1rem;
}

.work-badge {
  flex-shrink: 0;
  font-family: 'Martian Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  background: var(--text);
  color: var(--accent);
  white-space: nowrap;
}

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

.work-card-desc code {
  font-family: 'Martian Mono', monospace;
  font-size: 0.82em;
  padding: 0.1em 0.3em;
  border: 1px solid var(--text);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-top: auto;
  padding-top: 0.4rem;
}

.work-tags li {
  font-family: 'Martian Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--text);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--text);
}

.work-link {
  font-family: 'Martian Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border: 3px solid var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--text);
}

.work-link-primary {
  background: var(--text);
  color: var(--accent);
}

.work-more {
  text-align: center;
  margin-top: 2.5rem;
}

.work-more a {
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid var(--text);
  padding-bottom: 0.25rem;
}

.work-more a:hover {
  opacity: 0.7;
}

/* ============================================================
   Experience Section
   ============================================================ */
.exp-section {
  position: relative;
  z-index: 10;
  padding: 4.5rem 2rem;
  border-top: 4px solid var(--menu-line);
  border-bottom: 4px solid var(--menu-line);
}

.exp-inner {
  max-width: 900px;
  margin: 0 auto;
}

.exp-heading {
  font-family: 'Martian Mono', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 2.5rem;
}

.exp-role {
  border: 3px solid var(--text);
  background: var(--accent);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-role:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text);
}

.exp-role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 3px solid var(--text);
}

.exp-role-head h3 {
  font-family: 'Martian Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.exp-role-title {
  font-size: 0.85rem;
  font-weight: 500;
}

.exp-dates {
  font-family: 'Martian Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--text);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--text);
}

.exp-bullets strong {
  font-weight: 700;
  border-bottom: 2px solid var(--text);
}

.exp-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--menu-line);
}

.exp-extra h4 {
  font-family: 'Martian Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--text);
}

.exp-extra p {
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .exp-extras {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .exp-section {
    padding: 3rem 1.25rem;
  }

  .exp-role {
    padding: 1.35rem 1.25rem 1.25rem;
  }

  .exp-dates {
    white-space: normal;
  }
}

/* ============================================================
   About Section - Rays background
   ============================================================ */
.about-section-hole {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 4px solid var(--menu-line);
  border-bottom: 4px solid var(--menu-line);
}

.about-rays-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0044ff;
}

.a-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vh;
  height: 200vw;
  background-image: repeating-linear-gradient(
    50deg,
    #0044ff 0,
    #0088ff 20px,
    #00aaff 40px,
    #0088ff 60px,
    #0044ff 80px
  );
  transform: translate3d(-50%, -50%, 0) rotate(-70deg);
}

.about-phi-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 0%,
    rgba(0, 68, 255, 0.12) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.about-hole-label {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000;
  opacity: 0.95;
  pointer-events: none;
  font-family: 'Martian Mono', monospace;
  z-index: 5;
}

.about-inner {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 3px solid #fff;
  flex-shrink: 0;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #fff;
}

.about-content p + p {
  margin-top: 1rem;
}

.about-content .about-open {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* About section - light mode */
[data-theme="light"] .about-rays-bg {
  background: #fff;
}

[data-theme="light"] .a-rays {
  background-image: repeating-linear-gradient(
    50deg,
    #fff 0,
    #e8eeff 20px,
    #d0dcff 40px,
    #e8eeff 60px,
    #fff 80px
  );
}

[data-theme="light"] .about-phi-overlay {
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

[data-theme="light"] .about-photo {
  border-color: #000;
}

[data-theme="light"] .about-content p {
  color: #000;
}

[data-theme="light"] .about-content .about-open {
  border-top-color: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Resume Section
   ============================================================ */
.resume-section {
  position: relative;
  z-index: 10;
  padding: 4.5rem 2rem;
  border-bottom: 4px solid var(--menu-line);
}

.resume-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.resume-inner h2 {
  font-family: 'Martian Mono', monospace;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.resume-lede {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.resume-viewer {
  border: 3px solid var(--text);
  box-shadow: 12px 12px 0 var(--text);
  background: #fff;
  height: 760px;
  overflow: hidden;
}

.resume-viewer object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  padding: 2rem;
  color: #000;
  font-size: 0.9rem;
}

.resume-fallback a {
  color: #000;
  font-weight: 600;
}

/* Hide the inline viewer on small screens - mobile PDF embeds are unusable */
@media (max-width: 860px) {
  .resume-viewer {
    display: none;
  }
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
  font-family: 'Martian Mono', monospace;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-inner p {
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 0.85rem;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--text);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--menu-line);
}

.contact-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ============================================================
   Media Queries
   ============================================================ */
@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  body {
    border-width: 10px;
  }

  .header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 1rem 1.25rem;
    justify-items: center;
  }

  .header-brand {
    justify-content: center;
  }

  .header-nav {
    border-left: none;
    border-right: none;
    border-top: 2px solid var(--menu-line);
    border-bottom: 2px solid var(--menu-line);
    padding: 0.25rem 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .header-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }

  .header-contact {
    justify-self: center;
    flex-direction: column;
    gap: 0.85rem;
    padding-left: 0;
    text-align: center;
  }

  .header-contact-info p {
    white-space: normal;
  }

  .main {
    padding: 3rem 1.25rem;
    min-height: auto;
  }

  .hero-panel {
    padding: 1.75rem 1.5rem 2rem;
    box-shadow: 8px 8px 0 var(--text);
  }

  .hero-lede {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .hero-footer {
    padding: 1rem 1rem;
  }

  .work-body {
    padding: 6rem 1.25rem 3rem;
  }

  .about-inner {
    padding: 6rem 1.5rem 3rem;
  }

  .resume-section,
  .contact-section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 700px) {
  .work-grid,
  .work-grid-featured {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .work-card-feature .work-card-preview {
    height: 180px;
  }

  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .about-content .about-open {
    border-top-color: rgba(255, 255, 255, 0.5);
  }

  .contact-inner h2 {
    font-size: 1.5rem;
  }

  .contact-links {
    gap: 1rem;
  }
}
