/* ================================================================
   dudu0.org — Design v2
   Instrument Serif / DM Sans / IBM Plex Mono
================================================================ */

/* ----------------------------------------------------------------
   VARIABLES
---------------------------------------------------------------- */
:root {
  --bg:           #0c0c0a;
  --bg-surface:   #121210;
  --bg-subtle:    #161613;
  --border:       #1f1f1c;
  --border-mid:   #2c2c28;
  --text-primary: #ede9df;
  --text-body:    #7a7870;
  --text-muted:   #5e5e5a;
  --accent:       #a8b87a;
  --accent-dim:   #5a6840;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, #1a1a14 0%, #0c0c0a 60%);
  background-color: #0c0c0a;
  color: var(--text-body);
  font-family: 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

/* ----------------------------------------------------------------
   WIND CANVAS — retro pixel animation (drawn via JS)
---------------------------------------------------------------- */
.wind-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
.content-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ----------------------------------------------------------------
   SECTION DIVIDER
---------------------------------------------------------------- */
.section-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

/* ----------------------------------------------------------------
   SECTION LABEL
---------------------------------------------------------------- */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

/* ----------------------------------------------------------------
   SCROLL REVEAL
---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ----------------------------------------------------------------
   NAV
---------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.04em;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 7px 14px;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
}

.nav-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-arrow {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  margin-top: -1px;
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  padding: 88px 0 52px;
}

.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 68px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.05;
  max-width: 640px;
}

.hero-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  max-width: 520px;
  margin-top: 28px;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 10px 22px;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
}

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

.btn-outline {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-body);
  border: 0.5px solid var(--border-mid);
  padding: 10px 22px;
  background: transparent;
  transition: color 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ----------------------------------------------------------------
   PILLARS
---------------------------------------------------------------- */
.section-pillars {
  padding: 44px 0 64px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  padding: 28px 24px;
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
}

.pillar:not(:last-child) {
  border-right: 0.5px solid var(--border);
}

.pillar-num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pillar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.pillar-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
}

/* ----------------------------------------------------------------
   CASE STUDIES
---------------------------------------------------------------- */
.section-cases {
  padding: 64px 0;
}

.case {
  padding: 36px 0;
  border-bottom: 0.5px solid var(--border);
  margin: 0;
  transition: background 200ms ease, margin 200ms ease, padding 200ms ease;
}

.case:last-child {
  border-bottom: none;
}

.case:hover {
  background: var(--bg-subtle);
  margin: 0 -24px;
  padding: 36px 24px;
}

.case-tag {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.case-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.case-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.9;
  max-width: 620px;
}

/* ---- Screenshot frame ---------------------------------------- */
.case-image {
  margin: 16px 0 20px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-subtle);
  max-width: 620px;
}

.case-image-chrome {
  height: 26px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.case-image-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-mid);
  display: inline-block;
  flex-shrink: 0;
}

.case-image-body {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.case-image-body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-image-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--border-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
}

.case-image-body:has(img) .case-image-label {
  display: none;
}

/* ----------------------------------------------------------------
   QUOTE
---------------------------------------------------------------- */
.section-quote {
  padding: 64px 0;
}

.quote-block {
  border-left: 1.5px solid var(--border-mid);
  padding-left: 28px;
  max-width: 540px;
}

.quote-text {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.quote-attr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: normal;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}

/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
.section-about {
  padding: 64px 0;
}

.about-text {
  max-width: 580px;
}

.about-text p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.95;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-link {
  color: var(--text-body);
}

.about-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */
.section-contact {
  padding: 64px 0;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-title {
  font-family: 'Instrument Serif', serif;
  font-size: 46px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--text-primary);
}

.contact-line-muted {
  color: var(--text-muted);
}

.contact-line-primary {
  color: var(--text-primary);
}

.contact-body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 280px;
}

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

.contact-links .btn-primary,
.contact-links .btn-outline {
  text-align: center;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 0;
}

.footer-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-body);
}

/* ----------------------------------------------------------------
   RESPONSIVE — 768px
---------------------------------------------------------------- */
@media (max-width: 768px) {

  .site-nav {
    padding: 18px 24px;
  }

  .content-wrap {
    padding: 0 24px;
  }

  /* Hero */
  .hero {
    padding: 64px 0 56px;
  }

  .hero-headline {
    font-size: 42px;
  }

  /* Pillars: stack */
  .section-pillars,
  .section-cases,
  .section-quote,
  .section-about,
  .section-contact {
    padding: 44px 0;
  }

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

  .pillar {
    padding: 24px 0;
  }

  .pillar:first-child {
    padding-top: 0;
  }

  .pillar:not(:last-child) {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  /* Cases: tighten hover inset on mobile */
  .case:hover {
    margin: 0 -12px;
    padding: 36px 12px;
  }

  /* Contact: stack */
  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-body {
    max-width: none;
  }
}
