/* ═══════════════════════════════════════════════════════════
   COLOR VARIABLES & THEMING
   ═══════════════════════════════════════════════════════════ */

:root {
  font-size: 110%;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "DM Mono", monospace;
  --font-display: "Bebas Neue", sans-serif;
  --font-serif-accent: "Playfair Display", serif;
  --pad-section-y: 5rem;
  --pad-section-x: clamp(1.25rem, 5vw, 2.5rem);

  --gap-between-jobs: clamp(2.5rem, 5vw, 3.5rem);
  --gap-after-section-label: 3rem;
  --stack-tags-gap: 6px;
  --narrative-block-pad: 2.25rem;
  --font-size-prose: 1rem;
  --font-size-prose-sm: 0.9rem;
  --pad-footer-y: 1.25rem;
  --pill-label-size: 0.65rem;
  --pill-label-tracking: 0.1em;
  --pill-label-pad-y: 6px;
  --pill-label-pad-x: 12px;
  --cord-w: 160px;
  --cord-h: 155px;
  --ink: #0f0e0b;
  --paper: #f5f0e8;
  --accent: #c8392b;
  --muted: #7a7060;
  --rule: 2px solid var(--ink);
  --rule-thin: 1px solid #b8b0a0;
  --pill-bg: rgba(15, 14, 11, 0.06);
  --pill-fg: var(--ink);
  --section-rule: #b8b0a0;
  --cord-color: #7a7060;
  --ring-color: #0f0e0b;
  --glow-opacity: 1;
}

html.dark {
  --ink: #e8e2d6;
  --paper: #131210;
  --accent: #e05a4a;
  --muted: #8a8070;
  --rule: 2px solid #3a3830;
  --rule-thin: 1px solid #2e2c28;
  --pill-bg: #222018;
  --pill-fg: #e8e2d6;
  --section-rule: #2e2c28;
  --cord-color: #8a8070;
  --ring-color: #e8e2d6;
  --glow-opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESETS & BASE STYLES
   ═══════════════════════════════════════════════════════════ */

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

body.has-mouse {
  cursor: none;
}

a {
  cursor: none;
}

/* Text Selection */
::selection {
  background: var(--accent);
  color: var(--ink);
}

::-moz-selection {
  background: var(--accent);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM CURSOR & CROSSHAIR
   ═══════════════════════════════════════════════════════════ */

#ch-h,
#ch-v,
#ch-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: none;
}

#ch-h {
  width: 100vw;
  height: 1px;
  background: var(--ink);
  opacity: 0.2;
  transition:
    background 0.15s,
    opacity 0.15s;
}

#ch-v {
  width: 1px;
  height: 100vh;
  background: var(--ink);
  opacity: 0.2;
  transition:
    background 0.15s,
    opacity 0.15s;
}

#ch-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  z-index: 10000;
  transition: background 0.15s;
}

body.has-mouse #ch-h,
body.has-mouse #ch-v,
body.has-mouse #ch-dot {
  display: block;
}

body.ch-hover #ch-h,
body.ch-hover #ch-v {
  background: var(--accent);
  opacity: 0.5;
}

@media (pointer: coarse) {

  #ch-h,
  #ch-v,
  #ch-dot {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   DECORATIVE EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* Noise Texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* Ambient Glow */
#ambient-glow {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100vw;
  height: 220px;
  background:
    radial-gradient(ellipse at 50% 25%,
      rgba(255, 252, 220, 0.85) 0%,
      rgba(255, 240, 160, 0.4) 30%,
      transparent 65%),
    radial-gradient(ellipse at 50% 40%,
      rgba(255, 220, 80, 0.15) 0%,
      transparent 75%);
  pointer-events: none;
  z-index: 90;
  opacity: var(--glow-opacity);
  transition: opacity 0.65s ease;
  filter: blur(18px);
}

/* ═══════════════════════════════════════════════════════════
   MASTHEAD / HEADER
   ═══════════════════════════════════════════════════════════ */

.masthead {
  border-bottom: var(--rule);
  padding: 0 var(--pad-section-x);
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 200;
  animation: slideDown 0.6s ease both;
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
  overflow: visible;
}

.masthead-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s;
}

.masthead-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.masthead-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.masthead-nav a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   CORD DECORATION
   ═══════════════════════════════════════════════════════════ */

#cord-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--cord-w);
  height: var(--cord-h);
  z-index: 600;
  pointer-events: none;
}

#cord-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cord-w);
  height: var(--cord-h);
  pointer-events: all;
  cursor: none;
}

body:not(.has-mouse) #cord-canvas {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

#hero {
  opacity: 1;
  transform: none;
}

.hero {
  padding: var(--pad-section-y) var(--pad-section-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
  overflow: hidden;
}

.intro-fold {
  width: 100%;
  height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
}

.intro-fold .hero {
  flex: 1 1 auto;
  padding-top: clamp(1.75rem, 5.4vh, 3.25rem);
  padding-bottom: clamp(1.75rem, 5.4vh, 3.25rem);
  border-bottom: none;
  min-height: 0;
  overflow: hidden;
}

.intro-fold .hero-left {
  padding-bottom: 0;
}

.intro-fold .hero-right {
  padding: 0 0 0 40px;
}

.intro-fold .marquee-strip {
  flex: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
  border-right: var(--rule);
  padding-right: 40px;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 32px;
  transition: color 0.4s;
  user-select: none;
}

.accent-italic {
  font-family: var(--font-serif-accent);
  font-style: italic;
  color: var(--accent);
}

.hero-headline .accent-italic {
  font-size: 0.85em;
  display: block;
}

.hero-bio {
  font-size: var(--font-size-prose);
  line-height: 1.7;
  color: var(--muted);
  max-width: 700px;
  font-weight: 300;
}

.hero-bio strong {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.4s;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 60px 40px;
  animation: fadeUp 0.9s 0.4s ease both;
}

.hero-scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  align-self: flex-end;
  margin-bottom: 32px;
  animation: pulse 3s infinite;
}

.hero-index {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-index-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: var(--rule-thin);
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-index-item span:last-child {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.4s;
}

.hero-index-item:last-child {
  border-bottom: var(--rule-thin);
}

.tree-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
}

#tree-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  cursor: none;
  pointer-events: none;
}

.hero-index {
  position: relative;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.status-pulse {
  color: var(--accent) !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════ */

section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

section.in-view {
  opacity: 1;
  transform: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--gap-after-section-label);
  width: 100%;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--section-rule);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE SECTION
   ═══════════════════════════════════════════════════════════ */

#experience {
  padding: var(--pad-section-y) var(--pad-section-x);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-between-jobs);
  width: 100%;
}

.exp-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 60px;
}

.exp-sidebar {
  place-self: center;
}

.exp-company {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.4s;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.exp-content {
  border-left: var(--rule);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
}

.exp-content>.expand-story-btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.exp-project-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 16px;
  transition: color 0.4s;
}

.exp-item {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-item.collapsed {
  opacity: 0.3;
  pointer-events: none;
}

.exp-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.expand-story-btn {
  cursor: none;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: var(--pill-label-pad-y) var(--pill-label-pad-x);
  font-family: var(--font-mono);
  font-size: var(--pill-label-size);
  font-weight: 400;
  letter-spacing: var(--pill-label-tracking);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.expand-story-btn svg {
  transition: transform 0.3s ease;
}

.exp-item.expanded .expand-story-btn svg,
.project-item.expanded .expand-story-btn svg {
  transform: rotate(180deg);
}

.exp-summary {
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-item.expanded .exp-summary {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-tags-gap);
}

.exp-stack.stack-tags {
  margin-bottom: 1.5rem;
}

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

.exp-bullets li {
  font-size: var(--font-size-prose-sm);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 300;
  padding-left: 20px;
  position: relative;
  transition: color 0.4s;
}

.exp-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Long-form story panels (work + projects) */
.narrative-panel {
  margin-top: var(--narrative-block-pad);
  padding-top: var(--narrative-block-pad);
  border-top: var(--rule-thin);
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: fadeInUp 0.5s ease forwards;
}

.narrative-section {
  margin-bottom: 2.5rem;
}

.narrative-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.narrative-section p {
  font-family: var(--font-body);
  font-size: var(--font-size-prose-sm);
  line-height: 1.7;
  margin-bottom: 12px;
}

.narrative-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.narrative-list li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.narrative-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.narrative-list li strong {
  font-weight: 500;
}

.narrative-intro {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border-left: 2px solid var(--accent);
}

.narrative-intro p {
  font-size: var(--font-size-prose);
  line-height: 1.7;
  margin: 0;
}

.narrative-future {
  padding: 1.25rem;
  border: var(--rule-thin);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════ */

#projects {
  padding: var(--pad-section-y) var(--pad-section-x);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.project-card {
  border: var(--rule);
  padding: 36px 32px;
  position: relative;
  margin: -1px -1px 0 0;
  transition:
    background 0.25s ease,
    border-color 0.4s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-item.collapsed {
  opacity: 0.3;
  pointer-events: none;
}

.project-item.expanded {
  grid-column: 1 / -1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.project-summary {
  max-height: 500px;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item.expanded .project-summary {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.project-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--section-rule);
  transition: color 0.25s;
  pointer-events: none;
}

.project-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: color 0.25s;
  line-height: 1.1;
  max-width: 100%;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.project-desc {
  font-size: var(--font-size-prose-sm);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  transition: color 0.25s;
  flex: 1;
}

.project-link {
  font-family: var(--font-mono);
  font-size: var(--pill-label-size);
  letter-spacing: var(--pill-label-tracking);
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link::after {
  content: "↗";
  font-size: 0.8rem;
}

.project-card.project-item:is(.expanded, :not(.expanded):hover) {
  background: var(--ink);
}

.project-card.project-item:is(.expanded, :not(.expanded):hover) .project-title,
.project-card.project-item:is(.expanded, :not(.expanded):hover) .project-desc,
.project-card.project-item:is(.expanded, :not(.expanded):hover) .project-num {
  color: var(--paper);
}

.project-card.project-item:is(.expanded, :not(.expanded):hover) .expand-story-btn,
.project-card.project-item:is(.expanded, :not(.expanded):hover) .tag {
  border-color: var(--paper);
  color: var(--paper);
}

.project-card.project-item:is(.expanded, :not(.expanded):hover) .project-link {
  color: var(--accent);
}

.project-card.project-item.expanded .narrative-heading,
.project-card.project-item.expanded .narrative-section p,
.project-card.project-item.expanded .narrative-intro p,
.project-card.project-item.expanded .narrative-list li,
.project-card.project-item.expanded .narrative-list li strong {
  color: var(--paper);
}

.project-card.project-item.expanded .narrative-list li::before {
  color: var(--accent);
}

.project-card.project-item.expanded .narrative-intro {
  border-left-color: var(--accent);
}

.project-card.project-item.expanded .narrative-future {
  border-color: color-mix(in srgb, var(--paper) 35%, transparent);
}

.project-card.project-item.expanded .narrative-panel {
  border-top-color: color-mix(in srgb, var(--paper) 25%, transparent);
}

.project-card.quote-card {
  background: var(--ink);
}

.quote-card .quote-text {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--paper);
  line-height: 1.2;
  margin-top: auto;
  margin-bottom: 16px;
}

.quote-card .quote-attr {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════════════ */

#skills {
  padding: var(--pad-section-y) var(--pad-section-x);
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.skills-left {
  border-right: var(--rule);
  padding-right: 60px;
}

.skills-right {
  padding-left: 60px;
}

.skill-group {
  margin-bottom: 40px;
}

.skill-group--spaced {
  margin-top: 20px;
}

.skill-group-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: var(--pill-label-size);
  letter-spacing: var(--pill-label-tracking);
  text-transform: uppercase;
  padding: var(--pill-label-pad-y) var(--pill-label-pad-x);
  background: var(--pill-bg);
  color: var(--pill-fg);
  transition:
    background 0.2s,
    color 0.4s;
}

.skill-pill:hover {
  background: var(--accent);
  color: var(--paper);
}

.skills-statement {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 32px;
  transition: color 0.4s;
}

.skills-education {
  border-top: var(--rule-thin);
  padding-top: 24px;
}

.skills-edu-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.skills-edu-school {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  transition: color 0.4s;
}

.skills-edu-degree {
  font-size: var(--font-size-prose-sm);
  color: var(--muted);
  margin-top: 6px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   SHARED TAG COMPONENT
   ═══════════════════════════════════════════════════════════ */

.tag {
  font-family: var(--font-mono);
  font-size: var(--pill-label-size);
  letter-spacing: var(--pill-label-tracking);
  text-transform: uppercase;
  padding: var(--pill-label-pad-y) var(--pill-label-pad-x);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition:
    border-color 0.4s,
    color 0.4s;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */

#contact {
  padding: var(--pad-section-y) var(--pad-section-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}

.contact-left {
  border-right: var(--rule);
  padding-right: 60px;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  transition: color 0.4s;
  user-select: none;
}

.contact-headline .accent-italic {
  font-size: 1em;
}

.contact-sub {
  font-size: var(--font-size-prose-sm);
  line-height: 1.65;
  color: var(--muted);
  max-width: 340px;
  font-weight: 300;
}

.contact-right {
  padding-left: 60px;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--rule-thin);
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-link-item:last-child {
  border-bottom: var(--rule-thin);
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-link-value {
  font-size: var(--font-size-prose-sm);
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.4s;
}

.contact-link-item:hover .contact-link-label {
  color: var(--accent);
}

.contact-link-value::after {
  content: "↗";
  font-size: 0.75rem;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════════════════════════════ */

.marquee-strip {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 14px 0;
  overflow: hidden;
  background: var(--ink);
  transition: background 0.4s;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--paper);
  transition: color 0.4s;
  display: flex;
  align-items: center;
  gap: 48px;
  user-select: none;
}

.marquee-item::after {
  content: "✦";
  font-size: 0.6rem;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

footer {
  border-top: var(--rule);
  padding: var(--pad-footer-y) var(--pad-section-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE STYLES
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --cord-w: 120px;
    --cord-h: 120px;
    --pad-section-y: 3.75rem;
    --pad-section-x: 1.25rem;
  }

  .intro-fold {
    height: auto;
    min-height: auto;
    display: block;
  }

  .intro-fold .hero {
    flex: none;
    border-bottom: var(--rule);
    padding-bottom: 0;
  }

  .masthead {
    padding: 0 var(--pad-section-x);
  }

  .masthead-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem var(--pad-section-x) 0;
  }

  .hero-left {
    border-right: none;
    border-bottom: var(--rule);
    padding-right: 0;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-fold .hero-left {
    padding-bottom: 28px;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-eyebrow::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
  }

  .hero-right {
    padding-left: 0;
    padding-top: 40px;
  }

  .intro-fold .hero-right {
    padding-left: 0;
    padding-right: 0;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .hero-scroll-hint {
    writing-mode: horizontal-tb;
    margin: 0 auto 24px auto;
    padding-top: 0;
    display: block;
    text-align: center;
  }

  .exp-layout {
    grid-template-columns: 1fr;
  }

  .exp-content {
    border-left: none;
    border-top: var(--rule);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 24px;
  }

  .exp-project-name {
    place-self: center;
  }

  .exp-stack {
    justify-content: center;
  }

  .exp-content>.expand-story-btn {
    align-self: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #skills {
    grid-template-columns: 1fr;
  }

  .skills-left {
    border-right: none;
    border-bottom: var(--rule);
    padding-right: 0;
    padding-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill-list {
    justify-content: center;
  }

  .skills-right {
    padding-left: 0;
    padding-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skills-education {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .skills-statement {
    text-align: center;
  }

  .section-label {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .section-label::before {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--section-rule);
  }

  #contact {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: var(--rule);
    padding-right: 0;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-right {
    padding-left: 0;
    padding-top: 40px;
  }

  footer {
    padding: var(--pad-footer-y) var(--pad-section-x);
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  #cord-wrap {
    top: 100%;
  }
}
