/* ========================================
   BRUTALIST-EDITORIAL PORTFOLIO
   Vicky Koire — Redesigned
   ======================================== */

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

:root {
  --bg: #f0ece4;
  --fg: #0a0a0a;
  --fg-muted: #5a5750;
  --accent: #BEFF0A;
  --accent-ink: #0a0a0a;
  --border: #0a0a0a;
  --border-light: rgba(10, 10, 10, 0.12);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

/* ========================================
   SKIP LINK
   ======================================== */

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ========================================
   NOISE OVERLAY
   ======================================== */

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

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  mix-blend-mode: difference;
}

.nav-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.nav-mark .accent {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle.active .nav-toggle-icon span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* NAV OVERLAY */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-overlay-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.nav-overlay.active .nav-overlay-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-overlay-link:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-overlay-link:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.active .nav-overlay-link:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.active .nav-overlay-link:nth-child(4) { transition-delay: 0.25s; }

.nav-overlay-link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
}

.nav-overlay-link:hover {
  color: var(--accent);
}

.nav-overlay-footer {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  gap: 24px;
}

.nav-overlay-footer a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

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

/* ========================================
   SECTION NUM
   ======================================== */

.section-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 40px;
  position: relative;
}

.hero-grid {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  font-size: clamp(4rem, 12vw, 10rem);
  opacity: 0;
  transform: translateY(60px);
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-title-line--outline {
  -webkit-text-stroke: 2px var(--fg);
  color: transparent;
  animation-delay: 0.55s;
}

.hero-col-right {
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.hero-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-meta-value {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-meta-value--live {
  color: #16a34a;
  position: relative;
  padding-left: 12px;
}

.hero-meta-value--live::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.hero-scroll-bar {
  width: 48px;
  height: 1px;
  background: var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero-scroll-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--accent);
  animation: scrollBar 2s ease-in-out infinite;
}

@keyframes scrollBar {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--solid {
  background: var(--fg);
  color: var(--bg);
}

.btn--solid:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 10, 10, 0.15);
}

.btn--solid:active {
  transform: translateY(0) scale(0.98);
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0) scale(0.98);
}

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

/* ========================================
   INTRO BAND
   ======================================== */

.intro-band {
  padding: 48px 32px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.intro-band-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.intro-band-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 900px;
  color: var(--fg);
}

/* ========================================
   ABOUT
   ======================================== */

.about {
  padding: 100px 32px 120px;
}

.about-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-right {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.about-image-block {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s var(--ease);
}

.about-image-block:hover .about-img {
  filter: grayscale(0);
}

.about-image-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--fg);
  color: var(--accent);
  padding: 6px 12px;
}

.about-body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  margin-top: 32px;
  border: 1px solid var(--border-light);
}

.about-stat {
  padding: 20px 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ========================================
   SKILLS
   ======================================== */

.skills {
  padding: 100px 32px 120px;
  background: var(--fg);
  color: #fff;
}

.skills-header {
  max-width: 1400px;
  margin: 0 auto 48px;
}

.skills-header .section-num {
  color: rgba(255, 255, 255, 0.35);
}

.skills-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.skills-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-card {
  padding: 36px 32px;
  background: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.4s var(--ease);
}

.skill-card:hover {
  background: #141414;
}

.skill-card-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.skill-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.skill-card-content p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.skill-card-line {
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.skill-card:hover .skill-card-line {
  width: 100%;
}

/* ========================================
   BACKGROUND
   ======================================== */

.background {
  padding: 100px 32px 120px;
}

.background-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
}

.background-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.background-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.bg-block {
  padding: 36px 32px;
  background: var(--bg);
  transition: background 0.3s var(--ease);
}

.bg-block:hover {
  background: #e8e4dc;
}

.bg-block-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 16px;
}

.bg-block-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.bg-block-date {
  color: var(--fg-muted);
}

.bg-block-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.bg-block-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
  padding: 100px 32px 120px;
  background: var(--fg);
  color: #fff;
}

.contact-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
}

.contact-grid .section-num {
  color: rgba(255, 255, 255, 0.35);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.contact-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin-bottom: 40px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--fg);
  transition: background 0.3s var(--ease);
}

.contact-channel:hover {
  background: #141414;
}

.contact-channel-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-channel-value {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-channel-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.contact-channel:hover .contact-channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-socials {
  display: flex;
  gap: 8px;
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease);
}

.contact-social:hover {
  background: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
}

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

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
}

.footer-copy {
  color: var(--fg-muted);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-col-right {
    padding-bottom: 0;
  }

  .hero-title-line {
    font-size: clamp(3.5rem, 14vw, 7rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .background-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-overlay {
    padding: 80px 24px;
  }

  .nav-overlay-footer {
    left: 24px;
    bottom: 32px;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .hero-title-line {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-scroll-hint {
    left: 20px;
    bottom: 20px;
  }

  .intro-band {
    padding: 32px 20px;
  }

  .about {
    padding: 80px 20px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills {
    padding: 80px 20px;
  }

  .background {
    padding: 80px 20px;
  }

  .bg-block {
    padding: 28px 20px;
  }

  .bg-block-header {
    flex-direction: column;
    gap: 4px;
  }

  .contact {
    padding: 80px 20px;
  }

  .contact-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .contact-channel {
    grid-template-columns: 80px 1fr auto;
    padding: 16px 20px;
  }

  .footer {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .contact-socials {
    flex-wrap: wrap;
  }
}
