/* ============================================================================
   MAHDI SAEEDI — PORTFOLIO STYLESHEET
   This one file styles all five pages (index, about, projects, blog, contact)
   so changes here apply everywhere. Search "EDIT:" to find the spots you're
   most likely to want to customize.
   ============================================================================ */

/* EDIT: COLOR PALETTE — change any value to change that color everywhere. */
:root {
  --bg:            #0A0A0D; /* page background — near-black, not pure black */
  --bg-elevated:   #141417; /* slightly raised panels / alternating sections */
  --bg-elevated-2: #1C1C20; /* cards, inputs */
  --ink:           #F3F2F6; /* primary text */
  --ink-muted:     #918F99; /* secondary text */
  --ink-faint:     #57555F; /* tertiary / disabled text */
  --line:          rgba(243, 242, 246, 0.10); /* hairline borders */
  --line-strong:   rgba(243, 242, 246, 0.20);

  --accent-violet:  #8B5CF6; /* EDIT: accent color 1 */
  --accent-magenta: #F43F8E; /* EDIT: accent color 2 */
  --gradient-accent: linear-gradient(120deg, #6D28D9 0%, #C026D3 50%, #F43F8E 100%);

  /* EDIT: FONTS — swap names here AND in the <link> tag in each HTML file's <head> */
  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --max-width: 1180px;
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-magenta); color: #0A0A0D; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Continuous, subtle color-flow on the hero title only — the fill drifts
   slowly across the gradient, letters never move. Performant (animates a
   single background-position) and respects reduced-motion. */
.hero-name-shimmer {
  background-size: 220% auto;
  animation: shimmerFlow 2s ease-in-out infinite alternate;
}
@keyframes shimmerFlow {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name-shimmer { animation: none; background-position: 35% 50%; }
}

/* ==========================================================================
   FILM GRAIN — a faint, ambient noise texture over the whole site, like
   ink-on-paper. Pure CSS, no JS, respects reduced motion automatically
   (it only ever shifts a pixel or two).
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ==========================================================================
   PAGE TRANSITIONS — a quiet fade so moving between pages doesn't feel like
   a hard cut. Driven by script.js toggling these classes.
   ========================================================================== */
body {
  opacity: 0;
  animation: pageEnter 0.5s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.page-exit {
  animation: pageExit 0.28s ease forwards;
}
@keyframes pageExit {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
  body.page-exit { animation: none; }
}

/* ==========================================================================
   SCROLL-REVEAL — sections/items fade up as they enter view. Falls back to
   fully visible if JS is off or motion is reduced.
   ========================================================================== */
body.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-anim .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-anim .reveal-item.is-visible { opacity: 1; transform: translateY(0); }
body.js-anim .reveal-item:nth-child(1) { transition-delay: 0.02s; }
body.js-anim .reveal-item:nth-child(2) { transition-delay: 0.09s; }
body.js-anim .reveal-item:nth-child(3) { transition-delay: 0.16s; }
body.js-anim .reveal-item:nth-child(4) { transition-delay: 0.23s; }
body.js-anim .reveal-item:nth-child(5) { transition-delay: 0.30s; }
body.js-anim .reveal-item:nth-child(6) { transition-delay: 0.37s; }

/* ==========================================================================
   KINETIC TYPE / "DECODE" EFFECT
   Headlines briefly cycle through random glyphs before resolving into real
   text — like type being set. Driven by script.js; the element just needs
   class "decode-text". Width is locked to prevent layout shift mid-cycle.
   ========================================================================== */
.decode-text { display: inline-block; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-logo .gradient-text { font-weight: 700; }

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

.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gradient-accent);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 18px 32px;
  }
  .nav-links a::after { display: none; }
}

/* ==========================================================================
   HERO (homepage only) — artboard treatment: ruler strip, crop marks, a live
   cursor coordinate readout, like a design-tool canvas.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 64px; left: 0; right: 0;
  height: 18px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 24px
  );
}

.crop-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}
.crop-mark::before, .crop-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.45;
}
.crop-mark::before { width: 100%; height: 1px; top: 50%; }
.crop-mark::after   { height: 100%; width: 1px; left: 50%; }
.crop-mark.tl { top: 92px;  left: 24px; }
.crop-mark.tr { top: 92px;  right: 24px; }
.crop-mark.bl { bottom: 32px; left: 24px; }
.crop-mark.br { bottom: 32px; right: 24px; }

.hero-inner { position: relative; z-index: 1; padding-top: 64px; }

.hero-eyebrow {
  margin-bottom: 24px;
  opacity: 0;
  animation: heroUp 0.7s ease forwards;
  animation-delay: 0.1s;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9.5vw, 118px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: heroUp 0.7s ease forwards;
  animation-delay: 0.22s;
}

.hero-tagline {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-muted);
  opacity: 0;
  animation: heroUp 0.7s ease forwards;
  animation-delay: 0.42s;
}

.hero-meta {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: heroUp 0.7s ease forwards;
  animation-delay: 0.55s;
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-name, .hero-tagline, .hero-meta {
    animation: none; opacity: 1; transform: none;
  }
}

.coord-readout {
  position: absolute;
  bottom: 32px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
@media (hover: none), (pointer: coarse) {
  .coord-readout { display: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--gradient-accent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; top: 0; }
}

/* ==========================================================================
   MARQUEE — looping skills ticker beneath the hero. Pure CSS; content is
   duplicated once in the HTML for a seamless loop.
   ========================================================================== */
.marquee {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee-track span::after {
  content: "—";
  color: var(--accent-magenta);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   PAGE HEADER (about / projects / blog / contact) — a compact banner instead
   of the full hero, keeping the homepage as the one big entrance.
   ========================================================================== */
.page-header {
  padding: 152px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-header .section-title { margin-top: 12px; }
.page-header-desc {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-muted);
  font-size: 17px;
}

/* ==========================================================================
   SECTION SPACING
   ========================================================================== */
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head { margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.section-foot { margin-top: 56px; }

/* ==========================================================================
   BUTTON / LINK-OUT STYLE
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 14px 22px;
  border-radius: 2px;
  transition: border-color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}
.btn:hover {
  border-color: var(--accent-magenta);
  background: rgba(244, 63, 142, 0.07);
  gap: 16px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-page-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.about-bio p { font-size: 18px; color: var(--ink); max-width: 56ch; }
.about-bio p + p { margin-top: 20px; }

.spec-sheet { border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}
.spec-row .spec-label {
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spec-row .spec-value { text-align: right; max-width: 60%; }

.service-list { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.service-list li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.service-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}
.service-list p { color: var(--ink-muted); max-width: 48ch; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   WORK / PROJECTS
   ========================================================================== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-chip.is-active {
  color: var(--bg);
  background: var(--gradient-accent);
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card.is-filtered-out {
  display: none;
}

.project-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-elevated-2);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.project-card:hover .project-thumb {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.7) brightness(0.55) saturate(0.85) contrast(1.05);
  transition: filter 0.55s ease, transform 0.55s ease;
}
.project-card:hover .project-thumb img {
  filter: grayscale(0) brightness(1) saturate(1.1) contrast(1);
  transform: scale(1.045);
}

/* A duotone wash sits over every thumbnail by default (tying the imagery to
   the brand palette) and fades away on hover to reveal the photo's real
   color — a small nod to color-separation printing. */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  mix-blend-mode: color;
  opacity: 0.6;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.project-card:hover .project-thumb::after { opacity: 0; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-meta .tag { color: var(--accent-magenta); }

.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}

.project-desc { margin-top: 8px; color: var(--ink-muted); max-width: 48ch; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-list { display: flex; flex-direction: column; }
.blog-card {
  display: grid;
  grid-template-columns: 96px 110px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.blog-card:hover { padding-left: 12px; }
.blog-thumb {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.6) saturate(0.85);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.blog-card:hover .blog-thumb img {
  filter: grayscale(0) brightness(1) saturate(1.1);
  transform: scale(1.06);
}
.blog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  transition: color 0.25s ease;
}
.blog-card:hover .blog-body h3 { color: var(--accent-magenta); }
.blog-body p { margin-top: 8px; color: var(--ink-muted); max-width: 60ch; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .blog-card { grid-template-columns: 72px 1fr; grid-template-areas: "thumb body" "thumb tag"; gap: 6px 18px; }
  .blog-thumb { width: 72px; height: 72px; grid-area: thumb; }
  .blog-date { display: none; }
  .blog-body { grid-area: body; }
  .blog-tag { grid-area: tag; }
}

/* ==========================================================================
   BLOG PREVIEW (homepage teaser — 3 posts, no thumbnails, link to blog page)
   ========================================================================== */
.blog-preview-section { background: var(--bg-elevated); }

.blog-preview-list { display: flex; flex-direction: column; }

.blog-preview-card {
  display: grid;
  /* columns: date | body | tag | arrow */
  grid-template-columns: 110px 1fr auto auto;
  gap: 0 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
}
.blog-preview-card:hover { padding-left: 12px; }

.blog-preview-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.blog-preview-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.blog-preview-card:hover .blog-preview-body h3 { color: var(--accent-magenta); }

.blog-preview-body p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 58ch;
}

.blog-preview-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.blog-preview-arrow {
  font-size: 18px;
  color: var(--ink-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.blog-preview-card:hover .blog-preview-arrow {
  transform: translateX(4px);
  color: var(--accent-magenta);
}

@media (max-width: 700px) {
  .blog-preview-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "body  arrow"
      "tag   .";
    gap: 6px 12px;
    padding: 22px 0;
  }
  .blog-preview-date  { display: none; }
  .blog-preview-body  { grid-area: body; }
  .blog-preview-tag   { grid-area: tag; }
  .blog-preview-arrow { grid-area: arrow; align-self: start; margin-top: 4px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section { background: var(--bg-elevated); text-align: center; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  margin-top: 16px;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: greenyellow;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: greenyellow;
  box-shadow: 0 0 0 0 rgba(244, 63, 142, 0.55);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 244, 78, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(244, 63, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 142, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

.contact-links {
  margin-top: 48px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 480px;
}

.contact-link {
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.contact-link:hover { color: var(--accent-magenta); gap: 16px; }

/* ==========================================================================
   UPLOAD PAGE
   ========================================================================== */
.upload-section { padding-top: 152px; }

.upload-card { max-width: 640px; margin: 0 auto; }

.dropzone {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.dropzone:hover {
  border-color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.05);
}
.dropzone:has(input:focus-visible) {
  border-color: var(--accent-magenta);
  outline: 2px solid var(--accent-magenta);
  outline-offset: 3px;
}
.dropzone.is-dragover {
  border-color: var(--accent-magenta);
  background: rgba(244, 63, 142, 0.07);
}
.dropzone.has-error {
  border-color: #E5484D;
  background: rgba(229, 72, 77, 0.06);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon { width: 44px; height: 44px; margin: 0 auto 20px; color: var(--ink-muted); }
.dropzone-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.dropzone-sub { margin-top: 8px; font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: 0.03em; }

.file-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elevated);
}
.file-row.is-visible { display: flex; }
.file-row-name { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-size { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); flex-shrink: 0; }
.file-row-remove { flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); background: none; border: none; cursor: pointer; padding: 4px 8px; }
.file-row-remove:hover { color: var(--accent-magenta); }

.progress-track { display: none; margin-top: 20px; height: 4px; border-radius: 2px; background: var(--bg-elevated-2); overflow: hidden; }
.progress-track.is-visible { display: block; }
.progress-fill { height: 100%; width: 0%; background: var(--gradient-accent); transition: width 0.2s ease; }

.upload-submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.2s ease;
}
.upload-submit:hover:not(:disabled) { border-color: var(--accent-magenta); background: rgba(244, 63, 142, 0.07); }
.upload-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.status-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.status-banner.is-visible { display: flex; }
.status-banner.is-error { background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); color: #FF8A8E; }
.status-banner.is-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.35); color: #79E2A0; }
.status-banner-icon { flex-shrink: 0; margin-top: 1px; }

.upload-specs { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a:hover { color: var(--accent-magenta); }
