/*
 * Landing Page Schematic Styles
 *
 * NOTE: This stylesheet is scoped to the landing page (body.schematic-mode).
 * When editing colors, typography, spacing, or borders, refer to the source
 * of truth in the project root:
 *
 *   Design.md
 *
 * Base:   #FFFFFF background, #000000 text/elements
 * Flare:  #FF6700 (Pumpkin Spice) for landing-page accents
 * Type:   Display  -> JetBrains Mono (Extra Bold, 800)
 *         Subtitle/Interface -> Inter (Regular, 400)
 *         Body     -> JetBrains Mono (Light, 200)
 */

/* ========================================
   Base Reset (schematic-mode)
   ======================================== */

body.schematic-mode {
  color-scheme: light;
}

body.schematic-mode {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #FFFFFF;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body.schematic-mode ::selection {
  background-color: #000000;
  color: #FFFFFF;
}

/* ========================================
   Design Tokens
   ======================================== */

body.schematic-mode {
  /* Per Design.md — Base Colors */
  --schematic-bg: #FFFFFF;
  --schematic-text: #000000;
  --schematic-border: #000000;

  /* Per Design.md — Landing Page Flare */
  --schematic-flare: #FF6700;

  /* Per Design.md — Typography */
  --font-display: 'JetBrains Mono', 'Fira Code', 'Menlo', 'Consolas', monospace;
  --font-interface: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body-text: 'JetBrains Mono', 'Fira Code', 'Menlo', 'Consolas', monospace;
}

/* -------------------------------------
   Hero Section
   ------------------------------------- */

.schematic-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  overflow: hidden;
}

.schematic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
}

.grid-cell {
  background-color: #FFFFFF;
  position: relative;
}

/* Grid center lines removed per design request */

.meta-tiny {
  position: absolute;
  z-index: 20;
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.6;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-family: var(--font-interface);
}

.top-left-pos {
  top: 1.5rem;
  left: 1.5rem;
}

.bottom-right-pos {
  bottom: 1.5rem;
  right: 1.5rem;
  text-align: right;
}

.accent-hover {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease;
  display: inline-block;
  margin-top: 0.5rem;
}

.accent-hover:hover {
  color: #FF6700 !important;
}

.text-flare {
  color: var(--schematic-flare) !important;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 6vw;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.25rem, 10.5vw, 8.75rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #000000;
  margin: 0;
  text-transform: uppercase;
}

.hero-name-line,
.blueprint-title {
  display: block;
}

.blueprint-title {
  --dougherty-start: 180ms;
  --grid-start: 180ms;
  --trace-start: 1100ms;
  --guide-fade-start: 6500ms;
  --fill-start: 6120ms;
  --blueprint-final-fill: var(--schematic-flare);
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 0.04em;
  line-height: 0.85;
  text-shadow: none;
}

.blueprint-final-word {
  position: relative;
  z-index: 3;
  display: inline-block;
  color: var(--blueprint-final-fill);
  opacity: 0;
  will-change: opacity, filter;
}

.blueprint-title.is-particle-complete .blueprint-final-word,
.blueprint-title.is-static-wordmark .blueprint-final-word {
  opacity: 0;
}

.blueprint-title.is-reduced-static-word .blueprint-final-word,
.blueprint-title.is-static-word .blueprint-final-word {
  opacity: 1;
  animation: none;
  filter: none;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.blueprint-title.is-particle-building .particle-canvas,
.blueprint-title.is-particle-complete .particle-canvas,
.blueprint-title.is-static-wordmark .particle-canvas {
  opacity: 1;
}

.blueprint-title.is-reduced-static-word .particle-canvas {
  opacity: 0;
}

.blueprint-grid-line,
.blueprint-outline-text {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blueprint-grid-line {
  fill: none;
  shape-rendering: crispEdges;
  stroke-dasharray: var(--line-length, 120);
  stroke-dashoffset: var(--line-length, 120);
  opacity: 0.8;
  animation: gridLineSketch var(--line-duration, 860ms) ease-in-out calc(var(--grid-start) + var(--line-delay, 0ms)) forwards;
}

.blueprint-grid-line--minor {
  stroke: rgba(255, 103, 0, 0.18);
  stroke-width: 0.65;
  --line-duration: 820ms;
}

.blueprint-grid-line--major {
  stroke: rgba(255, 103, 0, 0.32);
  stroke-width: 0.8;
  --line-duration: 920ms;
}

.blueprint-grid-line--rail {
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 0.75;
  --line-duration: 980ms;
}

.blueprint-grid-line--center {
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 0.52;
  --line-duration: 760ms;
}

.blueprint-outline-text {
  --letter-step: 0ms;
  --letter-duration: 2400ms;
  --letter-dash: 120px;
  --letter-nearly-complete: 16px;
  --letter-final-gap: 8px;
  fill: transparent;
  stroke: color-mix(in srgb, var(--schematic-text) 66%, var(--schematic-flare));
  stroke-width: 0.75px;
  stroke-width: max(0.75px, 0.007em);
  paint-order: stroke fill;
  opacity: 0;
  font-family: var(--font-display);
  font-size: var(--blueprint-font-size);
  font-weight: 800;
  letter-spacing: var(--blueprint-letter-spacing);
  text-anchor: start;
  dominant-baseline: alphabetic;
  text-rendering: geometricPrecision;
  stroke-dasharray: var(--letter-dash);
  stroke-dashoffset: var(--letter-dash);
  animation:
    blueprintLetterDraft var(--letter-duration) ease-in-out calc(var(--dougherty-start) + var(--trace-start) + var(--letter-step)) forwards,
    blueprintGuidesOut 520ms ease calc(var(--dougherty-start) + var(--guide-fade-start)) forwards;
}

@keyframes blueprintGuidesIn {
  to {
    opacity: 1;
  }
}

@keyframes blueprintGuidesOut {
  to {
    opacity: 0;
  }
}

@keyframes gridLineSketch {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes blueprintLetterDraft {
  0% {
    opacity: 0;
    stroke-dashoffset: var(--letter-dash);
    stroke-opacity: 0.4;
  }
  12% {
    opacity: 0.9;
    stroke-opacity: 0.85;
  }
  72% {
    stroke-dashoffset: var(--letter-nearly-complete);
    stroke-opacity: 0.95;
  }
  92% {
    stroke-dashoffset: var(--letter-final-gap);
    stroke-opacity: 0.95;
  }
  100% {
    opacity: 0.68;
    stroke-dashoffset: 0;
    stroke-opacity: 0.75;
  }
}

@keyframes blueprintTitleMaterialize {
  0% {
    opacity: 0;
    filter: saturate(0.7);
  }

  100% {
    opacity: 1;
    filter: saturate(1);
  }
}

.hero-subtext {
  font-family: var(--font-interface);
  font-size: 1vw;
  color: #000000;
  margin: 1.5vw 0 0 0.5vw;
}

/* -------------------------------------
   Rest of Site General overrides
   ------------------------------------- */

body.schematic-mode .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.schematic-section {
  padding: 6rem 0;
  background-color: #FFFFFF;
  color: #000000;
}

.schematic-text {
  font-family: var(--font-interface);
  color: #000000 !important;
}

.schematic-mono {
  font-family: var(--font-body-text);
  color: #000000;
}

.schematic-mono-accent {
  font-family: var(--font-interface);
  color: var(--schematic-flare);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 3rem 0;
  line-height: 1;
  font-family: var(--font-display);
}

/* Borders */
.schematic-border { border: 1px solid #000000 !important; }
.schematic-border-top { border-top: 1px solid #000000 !important; }
.schematic-border-bottom { border-bottom: 1px solid #000000 !important; }
.schematic-border-left { border-left: 1px solid #000000 !important; }

/* -------------------------------------
   Diamond Divider
   ------------------------------------- */

.diamond-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0;
  background-color: #FFFFFF;
}

.diamond {
  display: inline-block;
  background-color: #000000;
  transform: rotate(45deg);
}

.diamond--small {
  width: 8px;
  height: 8px;
}

.diamond--large {
  width: 14px;
  height: 14px;
}

/* -------------------------------------
   About Grid & Stats
   ------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 200;
  font-family: var(--font-body-text);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  padding-top: 2rem;
}

.stat {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  align-self: flex-start;
}

.osu-text {
  position: relative;
  z-index: 2;
}

.osu-beaver {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(0, -50%) scale(0.6);
  opacity: 0;
  height: 1em;
  width: auto;
  z-index: 1;
  pointer-events: none;
  transition: transform 300ms var(--ease-bounce),
              opacity 200ms ease;
}

.stat-value:hover .osu-beaver,
.stat-value:focus-visible .osu-beaver {
  transform: translate(0.25em, -50%) scale(1);
  opacity: 1;
}


.visual-card {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------
   Projects List
   ------------------------------------- */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 2rem;
  background-color: #FFFFFF;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 2rem;
  align-items: start;
}

.project-item:hover {
  border-color: var(--schematic-flare) !important;
}

.project-number {
  font-size: 1rem;
  padding-top: 0.25rem;
  font-family: var(--font-interface);
}

.project-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.project-desc {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  font-weight: 200;
  max-width: 600px;
  font-family: var(--font-body-text);
}

.project-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.schematic-mode .tag {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-interface);
  font-weight: 400;
}

body.schematic-mode .tag:hover {
  border-color: var(--schematic-flare);
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.85rem;
  font-family: var(--font-interface);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-number {
    padding-top: 0;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    left: 4vw;
    right: 4vw;
  }

  .hero-text {
    font-size: 18vw;
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .blueprint-title {
    font-size: min(1em, 13.6vw);
    margin-top: 0;
  }

  .hero-subtext {
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-left: 1vw;
  }

  .meta-tiny { font-size: 0.65rem; }
  .top-left-pos { top: 1rem; left: 1rem; }
  .bottom-right-pos { bottom: 1rem; right: 1rem; }

  .section-title { font-size: 2.5rem; }
  .about-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat { border-left: none !important; border-top: 1px solid #000000; padding-left: 0; padding-top: 1rem; }

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

@media (prefers-reduced-motion: reduce) {
  .blueprint-final-word,
  .blueprint-svg,
  .blueprint-drafting-layer,
  .blueprint-grid-line,
  .blueprint-outline-text {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .blueprint-final-word {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .particle-canvas,
  .blueprint-outline-text {
    opacity: 0 !important;
  }

  .osu-beaver {
    transition: none;
    transform: translate(0.25em, -50%) scale(1);
    opacity: 1;
  }

  .hero-deferred {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================================
   Deferred Hero Elements
   Hidden until page hero animation completes.
   Revealed by adding .is-visible via JS.
   Nav dot is handled separately (opacity only, no transform).
   ======================================== */

.hero-deferred {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-deferred.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.skip-page-animation[data-page-id="home"] .blueprint-final-word {
  opacity: 0 !important;
  visibility: visible !important;
  animation: none !important;
  filter: none !important;
}

html.skip-page-animation[data-page-id="home"] .particle-canvas {
  opacity: 1 !important;
  animation: none !important;
}

html.skip-page-animation[data-page-id="home"] .blueprint-outline-text {
  opacity: 0 !important;
  animation: none !important;
}

html.skip-page-animation[data-page-id="home"] .hero-deferred {
  opacity: 1;
  transform: translateY(0);
}
.nav-actions.hero-deferred {
  transform: none;
}

.nav-actions.hero-deferred.is-visible {
  transform: none;
}

html.skip-page-animation[data-page-id="home"] #navToggle {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html.skip-page-animation[data-page-id="home"] .blueprint-final-word {
    opacity: 1 !important;
  }

  html.skip-page-animation[data-page-id="home"] .particle-canvas {
    opacity: 0 !important;
  }
}

/* ========================================
   Spacing Utilities
   ======================================== */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ========================================
   Contact Section
   ======================================== */

.contact-links {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
}

.contact-link {
  padding: 1rem;
  display: block;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--schematic-flare) !important;
}
/* Blog page: dark base + Peach Fuzz flare */
body.schematic-mode.page-blog {
  --schematic-bg: #000000;
  --schematic-text: #FFFFFF;
  --schematic-border: #FFFFFF;
  --schematic-flare: #FED0BB;
  background-color: #000000;
  color: #FFFFFF;
}

body.schematic-mode.page-blog ::selection {
  background-color: #FFFFFF;
  color: #000000;
}

body.schematic-mode.page-blog .schematic-wrapper {
  background-color: #000000;
}

body.schematic-mode.page-blog .schematic-grid {
  background-color: #000000;
}

body.schematic-mode.page-blog .grid-cell {
  background-color: #000000;
}

body.schematic-mode.page-blog .meta-tiny {
  color: #FFFFFF;
}

body.schematic-mode.page-blog .nav-inline-link {
  color: #FFFFFF;
}

.meta-tiny .blog-accent-swatch {
  color: #FED0BB;
}
