/* ============================================================
   ASHWITH D — NEOBRUTALIST PORTFOLIO
   Thick borders · hard shadows · loud color · raw type
   ============================================================ */

:root {
  --ink: #0d0d0d;
  --paper: #faf3e3;
  --white: #ffffff;
  --yellow: #ffc700;
  --pink: #ff90e8;
  --teal: #17c3b2;
  --orange: #ff6b35;
  --lav: #b7a4ff;
  --lime: #c8f169;
  --red: #ff4d4d;
  --bw: 3px;                 /* border width */
  --shadow-xs: 2px 2px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --shadow-m: 6px 6px 0 var(--ink);
  --shadow-l: 10px 10px 0 var(--ink);
  --radius: 0px;             /* large corner radius (cards, panels) */
  --bw-s: 2px;               /* secondary border width (chips, tags) */
  --line-dashed: 2px dashed var(--ink);
  --line-dashed-paper: 2px dashed var(--paper);
  --radius-s: 0px;           /* small corner radius (buttons, chips) */
  --dots: radial-gradient(var(--ink) 1.2px, transparent 1.2px); /* page texture */
  --font-display: "Archivo Black", "Arial Black", "Franklin Gothic Bold", sans-serif;
  --font-body: "Space Grotesk", "Trebuchet MS", Verdana, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  background-image: var(--dots);
  background-size: 26px 26px;
}

::selection { background: var(--pink); color: var(--ink); }

/* accessibility: skip link + visible focus */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 400;
  background: var(--yellow);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

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

a { color: inherit; }

.container { width: min(1160px, 92%); margin: 0 auto; }

section { padding: 92px 0; scroll-margin-top: 96px; }

/* ------------------------------------------------------------
   TYPE
------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.mono { font-family: var(--font-mono); }

.section-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-s);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  margin-bottom: 14px;
}

.section-title .hl { display: inline-block; padding: 0 0.18em; }
.hl-pink { background: var(--pink); box-shadow: var(--shadow-s); transform: rotate(-1deg); }
.hl-yellow { background: var(--yellow); box-shadow: var(--shadow-s); transform: rotate(1deg); }
.hl-teal { background: var(--teal); box-shadow: var(--shadow-s); transform: rotate(-1deg); }
.hl-lav { background: var(--lav); box-shadow: var(--shadow-s); transform: rotate(1deg); }
.hl-lime { background: var(--lime); box-shadow: var(--shadow-s); transform: rotate(-1deg); }
.hl-orange { background: var(--orange); box-shadow: var(--shadow-s); transform: rotate(1deg); }

.section-intro {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  max-width: 620px;
  margin-bottom: 44px;
}

/* ------------------------------------------------------------
   BUTTONS / CHIPS / CARDS
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  padding: 13px 22px;
  box-shadow: var(--shadow-s);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-xs); }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); }
.btn-teal { background: var(--teal); }
.btn-lav { background: var(--lav); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; box-shadow: var(--shadow-xs); }
.btn-sm:hover { box-shadow: var(--shadow-m); }

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border: var(--bw-s) solid var(--ink);
  background: var(--white);
  padding: 5px 10px;
  box-shadow: var(--shadow-xs);
}

.card {
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-m);
}

/* corner radii follow the active theme */
.btn, .chip, .stat, .cert, .logo-box, .section-label, .hero-eyebrow, .sticker,
.socials a, .channel, .c-icon, .field input, .field textarea, .msg, .toast,
.hamburger, .skill-group header .num, .chat-suggest button, .theme-select, .chat-toggle {
  border-radius: var(--radius-s);
}
.card, .skill-group, .photo-frame, .chat-panel, .project { border-radius: var(--radius); }

/* ------------------------------------------------------------
   TOP BAR / NAV
------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.logo-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 1.1rem;
  transform: rotate(-3deg);
  transition: transform 0.15s ease;
}
.logo:hover .logo-box { transform: rotate(3deg) scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border: var(--bw-s) solid transparent;
}
.nav-links a:not(.btn):hover { background: var(--yellow); border-color: var(--ink); box-shadow: var(--shadow-xs); }
.nav-links a.active { background: var(--ink); color: var(--paper); }

.nav-cta { margin-left: 8px; }

/* theme picker */
.theme-picker { display: flex; align-items: center; gap: 8px; }
.theme-picker label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.theme-select {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--teal);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 7px 8px;
  cursor: pointer;
  outline: none;
}
.theme-select:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-s); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 10px 9px;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 3px; background: var(--ink); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 120;
  transform: translateY(-102%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 22px 6%;
  gap: 6px;
  border-bottom: var(--bw) solid var(--ink);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: var(--line-dashed);
}
.mobile-drawer a:hover { background: var(--yellow); }
.drawer-close {
  align-self: flex-end;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero { padding: 72px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: inline-block;
  background: var(--teal);
  border: var(--bw-s) solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 6px 12px;
  transform: rotate(-1.5deg);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(3rem, 7.6vw, 6rem);
  margin-bottom: 20px;
}
.hero h1 .name-line { display: block; }
.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-sub .tick { background: var(--yellow); border: var(--bw-s) solid var(--ink); padding: 1px 6px; box-shadow: var(--shadow-xs); }
.hero-copy { max-width: 540px; font-size: 1.06rem; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.socials a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); background: var(--lime); }
.socials svg { width: 22px; height: 22px; }

/* hero photo */
.hero-visual { position: relative; }
.photo-frame {
  position: relative;
  border: var(--bw) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-l);
  transform: rotate(2deg);
  padding: 12px 12px 18px;
  max-width: 420px;
  margin-left: auto;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 14px -18px -18px 14px;
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  z-index: -1;
}
.photo-frame img {
  border: var(--bw) solid var(--ink);
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  object-position: top center;
}
.photo-caption {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sticker {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  padding: 8px 12px;
  background: var(--yellow);
  z-index: 2;
}
.sticker-1 { top: -18px; left: 4%; transform: rotate(-5deg); background: var(--lime); }
.sticker-2 { bottom: 8%; left: -6%; transform: rotate(4deg); background: var(--lav); }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.stat {
  border: var(--bw) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-m);
  padding: 20px 18px;
  text-align: center;
  transition: transform 0.15s ease;
}
.stat:hover { transform: translate(-3px, -3px) rotate(-1deg); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.stat:nth-child(1) b { color: var(--orange); }
.stat:nth-child(2) b { color: #0aa3a3; }
.stat:nth-child(3) b { color: #d1389d; }
.stat:nth-child(4) b { color: #6a4fd8; }

/* ------------------------------------------------------------
   MARQUEE
------------------------------------------------------------ */
.marquee {
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  background: var(--yellow);
  overflow: hidden;
  padding: 14px 0;
}
.marquee.marquee-pink { background: var(--pink); }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-x 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 18px;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   ABOUT
------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.about-card { padding: 34px 32px; }
.about-card .big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.about-card p { margin-bottom: 14px; }
.about-card p:last-child { margin-bottom: 0; }

.facts-card { background: var(--lav); padding: 26px 24px; }
.facts-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  border-bottom: var(--bw) solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.facts-card ul { list-style: none; }
.facts-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 9px 0;
  border-bottom: var(--line-dashed);
}
.facts-card li:last-child { border-bottom: none; }
.facts-card li b { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.facts-card li span { text-align: right; font-weight: 600; }

.learning-card { margin-top: 28px; background: var(--white); padding: 24px; }
.learning-card h3 { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.learning-card .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.learning-card .chip:nth-child(5n+1) { background: var(--yellow); }
.learning-card .chip:nth-child(5n+2) { background: var(--pink); }
.learning-card .chip:nth-child(5n+3) { background: var(--teal); }
.learning-card .chip:nth-child(5n+4) { background: var(--lav); }
.learning-card .chip:nth-child(5n+5) { background: var(--lime); }

/* ------------------------------------------------------------
   SKILLS
------------------------------------------------------------ */
#skills { background: var(--white); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.skill-group { border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: var(--shadow-m); }
.skill-group header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
}
.skill-group header .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: var(--bw-s) solid var(--ink);
  background: var(--white);
  padding: 2px 8px;
  box-shadow: var(--shadow-xs);
}
.skill-group.g-yellow header { background: var(--yellow); }
.skill-group.g-pink header { background: var(--pink); }
.skill-group.g-teal header { background: var(--teal); }
.skill-group.g-lav header { background: var(--lav); }
.skill-group .body { padding: 20px 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------
   EXPERIENCE / EDUCATION
------------------------------------------------------------ */
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.xp-col h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 22px;
  display: inline-block;
  background: var(--lime);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  padding: 6px 14px;
  transform: rotate(-1deg);
}
.xp-col.edu h3 { background: var(--orange); transform: rotate(1deg); }
.xp-card { padding: 24px 22px; margin-bottom: 26px; position: relative; }
.xp-card:last-child { margin-bottom: 0; }
.xp-card .role { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; margin-bottom: 4px; }
.xp-card .org {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--yellow);
  border: var(--bw-s) solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 3px 9px;
  margin-bottom: 14px;
}
.xp-card ul { list-style: none; }
.xp-card ul li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 0.95rem; }
.xp-card ul li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  font-weight: 900;
  color: var(--orange);
}
.xp-card .edu-meta { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; }
.xp-card .edu-meta .score { display: inline-block; background: var(--teal); border: var(--bw-s) solid var(--ink); box-shadow: var(--shadow-xs); padding: 2px 8px; margin-left: 8px; }

.certs { margin-top: 56px; }
.certs h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  padding: 6px 14px;
  transform: rotate(-1deg);
}
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert {
  border: var(--bw) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-s);
  padding: 18px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cert:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-m); }
.cert .year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.cert h4 { font-size: 0.95rem; line-height: 1.35; margin-bottom: 6px; }
.cert p { font-family: var(--font-mono); font-size: 0.78rem; }

/* ------------------------------------------------------------
   PROJECTS
------------------------------------------------------------ */
#projects { background: var(--white); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.project { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.project:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-l); }
.project-media { position: relative; border-bottom: var(--bw) solid var(--ink); }
.project-media img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; }
.project-num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  padding: 4px 12px;
  transform: rotate(-3deg);
}
.project:nth-child(2) .project-num { background: var(--pink); }
.project:nth-child(3) .project-num { background: var(--teal); }
.project:nth-child(4) .project-num { background: var(--lav); }
.project:nth-child(5) .project-num { background: var(--orange); }
.project-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; line-height: 1.15; }
.project-body p { font-size: 0.95rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; border: var(--bw-s) solid var(--ink); background: var(--paper); padding: 3px 8px; }
.project-links { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }

.project.featured { grid-column: 1 / -1; flex-direction: row; }
.project.featured .project-media { width: 46%; border-bottom: none; border-right: var(--bw) solid var(--ink); }
.project.featured .project-media img { height: 100%; aspect-ratio: auto; }
.project.featured .project-body { width: 54%; padding: 34px 32px; }
.project.featured .project-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.featured-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: var(--red);
  color: var(--white);
  border: var(--bw-s) solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 3px 10px;
  transform: rotate(-2deg);
  width: fit-content;
}

/* ------------------------------------------------------------
   SERVICES
------------------------------------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { padding: 28px 24px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.service:hover { transform: translate(-4px, -4px) rotate(-0.5deg); box-shadow: var(--shadow-l); }
.service .icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
}
.service .icon svg { width: 30px; height: 30px; }
.service:nth-child(1) .icon { background: var(--yellow); }
.service:nth-child(2) .icon { background: var(--teal); }
.service:nth-child(3) .icon { background: var(--pink); }
.service h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; margin-bottom: 12px; }
.service p { font-size: 0.95rem; margin-bottom: 16px; }
.service .stack { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; border-top: var(--line-dashed); padding-top: 12px; }

/* ------------------------------------------------------------
   CONTACT
------------------------------------------------------------ */
#contact { background: var(--white); border-top: var(--bw) solid var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-left h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 18px; }
.contact-left p { max-width: 460px; margin-bottom: 28px; }
.contact-channels { display: grid; gap: 14px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  padding: 12px 16px;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.channel:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-m); background: var(--lime); }
.channel .c-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: var(--bw-s) solid var(--ink);
  background: var(--white);
}
.channel .c-icon svg { width: 20px; height: 20px; }
.channel small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; }

.contact-form { padding: 32px 28px; background: var(--yellow); }
.contact-form h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: var(--bw) solid var(--ink);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  box-shadow: inset 3px 3px 0 rgba(13, 13, 13, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: var(--shadow-s); transform: translate(-2px, -2px); }
.form-note { font-family: var(--font-mono); font-size: 0.75rem; margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: var(--paper);
  border: var(--bw) solid var(--paper);
  box-shadow: var(--shadow-m);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 200;
  transition: transform 0.3s ease;
  max-width: 92%;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--yellow); }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
footer { background: var(--ink); color: var(--paper); border-top: var(--bw) solid var(--ink); }
.footer-inner { padding: 44px 0 34px; }
.footer-big {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 26px;
}
.footer-big .y { color: var(--yellow); }
.footer-big .p { color: var(--pink); }
.footer-big .t { color: var(--teal); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-top: var(--line-dashed-paper);
  padding-top: 20px;
}
.footer-meta a { color: var(--yellow); }

/* ------------------------------------------------------------
   CHAT WIDGET
------------------------------------------------------------ */
.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-m);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chat-toggle:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-l); }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 150;
  width: min(360px, calc(100vw - 44px));
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-l);
  display: none;
  flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  border-bottom: var(--bw) solid var(--ink);
  padding: 12px 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}
.chat-head .dot { width: 10px; height: 10px; background: var(--red); border: var(--bw-s) solid var(--ink); border-radius: 50%; }
.chat-head .tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; background: var(--ink); color: var(--paper); padding: 2px 8px; }
.chat-head button { background: var(--yellow); border: var(--bw-s) solid var(--ink); box-shadow: var(--shadow-xs); font-weight: 700; padding: 2px 9px; cursor: pointer; }
.chat-body { padding: 14px; height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { border: var(--bw-s) solid var(--ink); padding: 9px 12px; font-size: 0.85rem; max-width: 88%; box-shadow: var(--shadow-xs); }
.msg.bot { background: var(--white); align-self: flex-start; }
.msg.user { background: var(--yellow); align-self: flex-end; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: var(--line-dashed); background: var(--white); }
.chat-suggest button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  border: var(--bw-s) solid var(--ink);
  background: var(--lime);
  box-shadow: var(--shadow-xs);
  padding: 4px 9px;
  cursor: pointer;
}
.chat-input-row { display: flex; border-top: var(--bw) solid var(--ink); }
.chat-input-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
}
.chat-input-row button {
  background: var(--yellow);
  border: none;
  border-left: var(--bw) solid var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
}

/* ------------------------------------------------------------
   REVEAL ANIMATION
------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .photo-frame { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .xp-grid, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project.featured { flex-direction: column; }
  .project.featured .project-media, .project.featured .project-body { width: 100%; }
  .project.featured .project-media { border-right: none; border-bottom: var(--bw) solid var(--ink); }
  .project.featured .project-media img { aspect-ratio: 1.6 / 1; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 560px) {
  section { padding: 72px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .certs-grid { grid-template-columns: 1fr; }
  .sticker-2 { left: 0; }
  .hero { padding-top: 48px; }
  .photo-frame { transform: rotate(0); }
}

/* resume download button spacing */
.resume-dl { margin: 14px 0 26px; display: inline-block; }

/* ============ case study modal ============ */
.case-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.2s ease;
}
.case-overlay.open { opacity: 1; }
.case-overlay[hidden] { display: none; }
.case-modal {
  background: var(--paper);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-l);
  border-radius: var(--radius, 0px);
  max-width: 640px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  padding: 30px 28px 26px;
  position: relative;
  transform: translateY(10px); transition: transform 0.2s ease;
}
.case-overlay.open .case-modal { transform: translateY(0); }
.case-kicker { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; opacity: 0.65; margin-bottom: 6px; }
.case-modal h3 { font-size: 1.7rem; line-height: 1.15; margin-bottom: 16px; padding-right: 36px; }
.case-modal h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 18px 0 6px; opacity: 0.7; }
.case-modal p { line-height: 1.55; }
.case-todo { font-style: italic; opacity: 0.6; }
.case-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border-radius: var(--radius, 0px);
}
.case-close:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-s); }
.case-links { margin-top: 20px; }
@media (max-width: 640px) {
  .case-overlay { padding: 12px; }
  .case-modal { padding: 24px 18px 20px; max-height: 86vh; }
  .case-modal h3 { font-size: 1.35rem; }
}

/* ============ skill depth badges + legend ============ */
.chip.d-prod::after, .chip.d-comf::after, .chip.d-learn::after,
.lg-key {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800; line-height: 1;
  padding: 2px 4px; margin-left: 6px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  vertical-align: 1px;
  color: var(--ink);
}
.chip.d-prod::after, .k-prod { content: "P"; background: var(--pink); }
.chip.d-comf::after, .k-comf { content: "C"; background: var(--teal); }
.chip.d-learn::after, .k-learn { content: "L"; background: var(--yellow); }
.lg-key { content: none; margin-left: 0; margin-right: 5px; }
.skill-legend { margin-top: 18px; font-size: 0.82rem; line-height: 2; opacity: 0.85; }

/* internship date pill */
.xp-date {
  display: inline-block;
  background: var(--yellow);
  border: var(--bw-s) solid var(--ink);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-s, 0px);
  padding: 2px 8px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ============ open-to-work strip ============ */
.open-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: var(--radius, 0px);
  padding: 14px 16px;
  margin-bottom: 36px;
}
.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--ink);
  border: var(--bw-s) solid var(--ink);
  border-radius: var(--radius-s, 0px);
  padding: 6px 12px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em;
}
.open-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #16a34a; border: 1px solid var(--ink);
  animation: open-pulse 1.6s ease-in-out infinite;
}
@keyframes open-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .open-dot { animation: none; } }
.open-item {
  border: var(--bw-s) solid var(--ink);
  border-radius: var(--radius-s, 0px);
  padding: 6px 12px;
  font-weight: 700; font-size: 0.78rem;
}
.open-todo { border-style: dashed; font-style: italic; opacity: 0.75; }
