:root{
  --bg: #0b0b10;
  --text: #0f1020;
  --muted: #616176;
  --brand: #b996ff;       /* light purple header */
  --paper: #fff6f8;       /* pale section bg */
  --ink: #0b1220;

  /* card colors */
  --pink: #ffb0b6;
  --cyan: #8ef1ff;
  --indigo: #8d8dff;
  --violet: #e5a8ff;
  --sand: #ffd98b;
  --mint: #b6ffcc;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #f7f7fb;
  line-height: 1.6;
}

.container{
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* =======================
   HEADER (nav above all)
   ======================= */
.site-header{
  position: relative;      /* change to sticky if you want it pinned */
  z-index: 1000;           /* always above banner */
  background: #ffffff;
  overflow: visible;       /* let dropdowns flow */
  min-height: 60px;
}

.header-inner{ padding: 1.0rem 0 0; }

.nav{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.nav__brand{
  font-weight: 800;
  text-decoration: none;
  color: #1a1039;
  letter-spacing: .4px;
}
.nav__toggle{
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  position: relative; z-index: 1100;
}
.nav__links{
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  z-index: 1100;           /* above everything */
}
.nav__links a{
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: #1a1039;
  font-weight: 600;
}
.nav__links a:hover{ background: #d3bfff; }

.tagline{
  text-align: center;
  margin: .5rem 0 0.25rem;
  font-size: .95rem;
}

/* kill the wave entirely if it still exists in markup */
.wave-top{ display:none !important; }

/* disable header canvas */
#navSketch{ display:none !important; }

/* =======================
   BANNER (animation lives here)
   ======================= */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-inner {
  position: relative;
  width: 100%;
  height: 300px; /* match to your design */
}

#bannerSketch {
  width: 100%;
  height: 100%;
  display: block;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  max-width: 90%;
  line-height: 1.4;
  background: rgba(0,0,0,0.4); /* semi-transparent black */
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
}



/* =======================
   Sections
   ======================= */
.section{ padding: clamp(2rem, 4vw, 3rem) 0; }
.section__title{
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
}

/* =======================
   Projects grid
   ======================= */
.projects .grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
@media (max-width:900px){ .projects .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .projects .grid{ grid-template-columns:1fr; } }

.card{
  display: grid;
  grid-template-rows: 180px auto auto;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
  transition: transform .12s ease, box-shadow .12s ease, opacity .15s;
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.card h3{ margin: 6px 0 0; font-size: 1.05rem; font-weight: 800; }
.card p{ margin: 0 0 2px; color:#333; opacity:.85; font-size: .95rem; }

/* Accessible focus ring */
.card:focus-visible{
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 12px 30px rgba(0,0,0,.15);
}

/* Spectrum backgrounds */
.bg-red     { background: linear-gradient(135deg, #ff4d4d, #ff0000); }
.bg-orange  { background: linear-gradient(135deg, #ffb347, #ff8000); }
.bg-yellow  { background: linear-gradient(135deg, #fff176, #ffd500); }
.bg-green   { background: linear-gradient(135deg, #b2ff66, #00cc00); }
.bg-cyan    { background: linear-gradient(135deg, #76ffff, #00e5ff); }
.bg-blue    { background: linear-gradient(135deg, #76a9ff, #0055ff); }
.bg-violet  { background: linear-gradient(135deg, #d9a6ff, #8000ff); }

/* =======================
   Contact
   ======================= */
.contact__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.contact__form{
  background: #f7c644;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.contact__form h2{ grid-column: 1/-1; margin: 0 0 .5rem; }
.contact__form label{
  display: grid;
  gap: 6px;
  font-size: .9rem;
}
.contact__form .full{ grid-column: 1/-1; }
input, textarea{
  width: 100%;
  padding: .6rem .7rem;
  border: 0;
  border-radius: 8px;
  background: #fff5cc;
  outline: 2px solid transparent;
}
input:focus, textarea:focus{ outline-color: #d3a821; background: #fff; }

.btn{
  grid-column: 1 / -1;
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-weight: 700;
  background: #1b1e2a;
  color: #fff;
  cursor: pointer;
}
.btn:hover{ opacity: .9; }
.btn--ghost{
  background: transparent;
  border: 2px solid #1a1039;
  color: #1a1039;
  padding: .4rem .8rem;
}

.form-note{
  margin: .25rem 0 0;
  color: #0b0b10;
  opacity: .9;
  font-size: .9rem;
}

.contact__art{
  display: grid;
  place-items: center;
}
.contact__card{
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #f3debb, #ebd5b1);
  color: #000000;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
}

.contact__cat{
  font-size: 72px;
  line-height: 1;
}
.contact__cta{
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-top: 8px;
}
.wave{ display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s infinite; }
@keyframes wave{ 0%,60%,100%{ transform: rotate(0deg) } 10%{ transform: rotate(14deg)} 20%{ transform: rotate(-8deg)} 30%{ transform: rotate(14deg)} 40%{ transform: rotate(-4deg)} 50%{ transform: rotate(10deg)} }

/* =======================
   Footer
   ======================= */
.site-footer{
  background: #fff;
  border-top: 1px solid #ececf4;
}
.footer-inner{
  padding: 2rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 1rem;
}
.socials{
  display: flex;
  gap: 14px;
}
.icon{ color: #0f1020; opacity:.85 }
.icon:hover{ opacity: 1; }
.footer-name{
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: .9;
  text-align: right;
  color: #0b0b10;
}
.footer-name .initial{ letter-spacing: .06em; }

/* =======================
   Responsive nav menu
   ======================= */
@media (max-width: 900px){
  .contact__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav{ grid-template-columns: 1fr auto; }
  .nav__toggle{ display: inline-block; }
  .nav__links{
    position: absolute;
    inset: 56px 0 auto 0;
    z-index: 1100;
    padding: .75rem .75rem 1rem;
    background: var(--brand);
    display: grid;
    gap: .5rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav__links.open{
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Right-side card image */
.contact__image {
  width: clamp(140px, 32%, 200px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 12px auto 10px;
  animation: pedal 2s ease-in-out infinite;
}

@keyframes pedal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Blurb + actions inside the card */
.contact__blurb{
  margin: 0.5rem auto 1rem;
  max-width: 40ch;
  opacity: .9;
}

.cta-actions{
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--cv{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn--cv svg{ display:inline-block; vertical-align: middle; }

.contact__card h3 {
  margin-bottom: 0.2rem;   /* very tight below the heading */
}

.contact__card p {
  margin-top: 0;           /* eliminate extra space above */
  margin-bottom: 0.6rem;   /* just a touch of breathing room */
  line-height: 1.5;
}

.card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 180px; /* adjust per design */
}

.card__thumb img,
.card__thumb .thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.projects__cta {
  text-align: center;
  margin-top: 3rem;
}

.projects__cta .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background-color: var(--accent, #007acc);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.projects__cta .btn:hover {
  background-color: var(--accent-hover, #005f99);
}
