/* ============================================================
   NEO-BRUTALIST THEME (Complete CSS)
   Includes:
   - Thick borders + offset shadows
   - Bold accent palette
   - CSS-only background pattern (dots + grid)
   - Micro-animations (button pop, card wiggle)
   - Responsive layout
   - Respects prefers-reduced-motion
============================================================ */

/* -------- Theme variables: change these to restyle fast -------- */
:root{
  /* Page colors */
  --bg: #faf6ff;        /* warm off-white */
  --ink: #111111;       /* near-black text */
  --paper: #ffffff;     /* card fill */

  /* Accent palette */
  --accent: #7c5cff;    /* purple */
  --accent2: #00d084;   /* green */
  --accent3: #ff3d81;   /* pink */

  /* Brutalist outlines + shadows */
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);

  /* Layout */
  --max: 1120px;
  --radius: 16px;

  /* Typography */
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion curves */
  --ease-pop: cubic-bezier(.2,.9,.2,1);
  --ease-wiggle: cubic-bezier(.25,.9,.25,1);
}

/* -------- Base reset -------- */
*{ box-sizing: border-box; }

/* -------- Page background: neo-brutal pattern (CSS-only) -------- */
body{
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;

  /* Base color */
  background-color: var(--bg);

  /* Pattern layers (dots + grid) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17,17,17,.18) 1px, transparent 1.8px),
    linear-gradient(rgba(17,17,17,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.08) 1px, transparent 1px),
    linear-gradient(rgba(17,17,17,.045) 2px, transparent 2px),
    linear-gradient(90deg, rgba(17,17,17,.045) 2px, transparent 2px);

  background-size:
    14px 14px,   /* dots */
    28px 28px,   /* thin horizontal grid */
    28px 28px,   /* thin vertical grid */
    140px 140px, /* thick horizontal grid */
    140px 140px; /* thick vertical grid */

  background-position:
    0 0,
    0 0,
    0 0,
    8px 10px,
    8px 10px;
}

/* -------- Container -------- */
.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* -------- Skip link -------- */
.skip{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
}
.skip:focus{
  left: 10px;
}

/* ============================================================
   TOP BAR
============================================================ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--border);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

/* Brand area */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.stamp{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent2);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  font-weight: 900;
  font-family: var(--mono);

  /* micro-anim */
  transition: transform 180ms var(--ease-pop);
  will-change: transform;
}
.stamp:hover{
  transform: rotate(-2deg) translate(-1px,-1px);
}

/* Name/subtitle */
.brand-name{
  font-weight: 900;
  letter-spacing: -0.2px;
  font-size: 16px;
}
.brand-sub{
  font-size: 12.5px;
  opacity: 0.75;
}

/* Nav links */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.nav a{
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 10px;
}
.nav a:hover{
  border-color: var(--ink);
  background: var(--paper);
}

/* Actions */
.actions{
  display: flex;
  gap: 10px;
}

/* ============================================================
   BUTTONS (with micro-animations)
============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  font-weight: 800;

  transition:
    transform 160ms var(--ease-pop),
    box-shadow 160ms var(--ease-pop),
    filter 160ms var(--ease-pop);
  will-change: transform;
}

.btn:hover{
  transform: translate(-3px, -3px);
  filter: brightness(1.03);
}

.btn:active{
  transform: translate(0,0);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Alternate button style */
.btn-alt{
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   SECTIONS / HEADINGS
============================================================ */
.section{
  padding: 54px 0;
}

.section-grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
}

.section-title h2{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.section-title p{
  margin: 6px 0 0;
  opacity: 0.75;
}

/* ============================================================
   HERO
============================================================ */
.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 18px;
  align-items: start;
}

/* Small pill label */
.pill{
  display: inline-block;
  padding: 6px 10px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  margin: 0 0 14px;
}

/* Big headline */
.headline{
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  font-weight: 950;
}

/* Highlighted words */
.hl{
  background: #fff3a6;
  border: 2px solid var(--ink);
  padding: 0 6px;
  border-radius: 10px;
}
.hl2{
  background: #b7fff0;
  border: 2px solid var(--ink);
  padding: 0 6px;
  border-radius: 10px;
}

/* Subhead */
.subhead{
  margin: 14px 0 18px;
  opacity: 0.85;
  max-width: 70ch;
}

/* Contact strip chips */
.contact-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.chip{
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

/* CTA row */
.cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ============================================================
   CARDS (with micro-animations)
============================================================ */
.card{
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;

  transition:
    transform 220ms var(--ease-wiggle),
    box-shadow 220ms var(--ease-wiggle);
  will-change: transform;
}

/* Hero side cards container */
.cards{
  display: grid;
  gap: 14px;
}

/* Give hero cards different background colors */
.card-a{ background: #ffffff; }
.card-b{ background: #f0f8ff; }

/* Lists */
ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
li{ margin: 6px 0; }

/* Muted text */
.muted{ opacity: 0.75; }

/* Wiggle animation */
@keyframes neoWiggle{
  0%   { transform: translate(0,0) rotate(0deg); }
  35%  { transform: translate(-2px,-2px) rotate(-0.4deg); }
  70%  { transform: translate(-1px,-3px) rotate(0.35deg); }
  100% { transform: translate(-2px,-2px) rotate(0deg); }
}

/* Apply wiggle on hover (subtle) */
.card:hover{
  animation: neoWiggle 260ms var(--ease-wiggle) 1;
  box-shadow: 9px 9px 0 var(--ink);
}

/* ============================================================
   PROJECT GRID + CARD TOP
============================================================ */
.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Top row inside cards */
.card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Small badge */
.badge{
  background: var(--accent3);
  color: white;
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

/* Links row */
.links{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.links a{
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.links a:hover{
  background: #fff3a6;
}

/* ============================================================
   EXPERIENCE
============================================================ */
.stack{
  display: grid;
  gap: 14px;
}
.job-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.date{
  background: #fff3a6;
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

/* ============================================================
   TAGS (hero toolbox)
============================================================ */
.tagrow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.tag{
  background: #b7fff0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer{
  border-top: var(--border);
  padding: 22px 0 30px;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px){
  .topbar-inner{
    flex-wrap: wrap;
  }
  .actions{
    width: 100%;
    justify-content: flex-start;
  }
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .section-grid{
    grid-template-columns: 1fr;
  }
  .grid{
    grid-template-columns: 1fr;
  }
  .job-top{
    flex-direction: column;
  }
  .date{
    align-self: flex-start;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce){
  .btn, .card, .stamp{
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}