/* ====== Canvases behind content (contact page only) ====== */
#bg, #fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: -2;
}

/* ====== Page-level overrides (fix scrolling + link color) ====== */
html, body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;              /* <- allow scroll on this page */
  background: transparent !important;
}

/* top-left links (brand or a "Contact" link) */
.nav a, .nav .brand, .nav-inner > a:first-child {
  color: #fff !important;
  text-decoration: none !important;
}

/* ====== Layout ====== */
.c-wrap { position: relative; z-index: 1; padding: 88px 16px 56px; max-width: 80vw; margin: 0 auto; }
.c-shell { max-width: 1120px; margin: 0 auto; }

/* Hero smaller */
.c-hero {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.15;
  font-size: clamp(24px, 3.2vw, 40px); /* was 56px top end */
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.5);
}

/* Grid tighter */
.c-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .c-grid { grid-template-columns: 1.1fr .9fr; gap: 18px; } }

/* Cards smaller */
.c-card {
  background: rgba(15,18,15,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* margin: 0px auto; */
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}

/* ====== Form ====== */
.c-field { position: relative; margin: 12px 6px; }

.c-field input,
.c-field textarea {
  width: 100%;
  padding: 14px 14px 12px;       /* was 18px */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,20,20,.55);
  color: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: 15px;               /* slightly smaller */
}

.c-field textarea { resize: vertical; min-height: 112px; }

.c-field label {
  position: absolute;
  left: 12px; top: 10px;
  color: #a9b4ab;
  padding: 0 6px;
  background: transparent;
  transition: transform .18s, color .18s, top .18s, background .18s;
  pointer-events: none;
  font-size: 13px;
}

/* floating labels */
.c-field input:not(:placeholder-shown) + label,
.c-field textarea:not(:placeholder-shown) + label,
.c-field input:focus + label,
.c-field textarea:focus + label {
  top: -10px;
  color: #fff;
  background: rgba(0,0,0,.7);
  transform: translateY(-2px);
}

.c-field input:focus,
.c-field textarea:focus {
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 5px rgba(255,255,255,.04), inset 0 0 30px rgba(255,255,255,.05);
  background: rgba(25,25,25,.63);
}

.c-error { display: block; min-height: 16px; padding: 4px 2px 0; font-size: 12px; color: #ffaeae; }

/* honeypot */
.c-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* actions */
.c-actions { display: flex; align-items: center; gap: 12px; padding: 10px 6px 0; margin-top: 4em;}
.cta {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: #111;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  transition: transform .18s, box-shadow .18s;
}
.cta:hover { transform: translateY(0px); box-shadow: 0 16px 30px rgba(0,0,0,.38); }
.c-hint { font-size: 12px; color: #a9b4ab; }

/* info card */
.c-info h2 {
  margin: 0 0 6px 6px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a9b4ab;
}
.c-email a {
  display: inline-block;
  margin-left: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.25);
  padding-bottom: 3px;
}
.c-email a:hover { border-bottom-style: solid; }
.c-social { list-style: none; margin: 8px 6px 0; padding: 0; display: grid; gap: 6px; }
.c-social a { color: #fff; text-decoration: none; padding: 6px 2px; font-size: 15px; }
.c-social a:hover { text-decoration: underline; }
.c-small { color: #a9b4ab; font-size: 12px; margin-top: 6px; }

/* toast */
.c-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(18px);
  background: rgba(20,22,20,.9);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
}
.c-toast.show { opacity: 1; transform: translateX(0) translateY(10%); }
