:root {
  --nav-bg: rgba(250,248,251,0.9);
  --accent-dim: rgba(177,4,200,0.10);
  --accent-light: #d635ef;
  --surface: #f3f0f6;
  --serif: 'Playfair Display', Georgia, serif;
}
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Main layout: two-column full-bleed ── */
.contact-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left pane — intro ── */
.left-pane {
  background: var(--ink);
  padding: 10rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* background grid */
.left-pane::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* accent orb */
.left-orb {
  position: absolute;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(177,4,200,.14) 0%, transparent 65%);
  bottom: -120px; left: -120px;
  pointer-events: none;
}

.left-content { position: relative; z-index: 2; max-width: 480px; }

.left-eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  opacity: 0; animation: fadeUp .8s ease .1s forwards;
}
.left-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); display: block; }

.left-headline {
  font-family: var(--serif);
  font-size: var(--type-scale-hero);
  font-weight: 900; line-height: .95; letter-spacing: -.04em;
  color: white; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s ease .25s forwards;
}
.left-headline em { font-style: italic; color: var(--accent); }

.left-body {
  font-size: 1rem; color: rgba(255,255,255,.5); line-height: 1.85;
  max-width: 420px; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp .8s ease .4s forwards;
}
.left-body a { color: rgba(255,255,255,.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.left-body a:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* Contact details */
.contact-details {
  display: flex; flex-direction: column; gap: 1.25rem;
  opacity: 0; animation: fadeUp .8s ease .55s forwards;
}
.contact-detail-row { display: flex; align-items: center; gap: 1rem; }
.cd-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(177,4,200,.15); border: 1px solid rgba(177,4,200,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.contact-detail-row:hover .cd-icon { background: rgba(177,4,200,.25); border-color: rgba(177,4,200,.4); }
.cd-label { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: .15rem; }
.cd-value { font-size: .9rem; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.cd-value:hover { color: var(--accent-light); }

/* Divider */
.left-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,.07);
  margin: 2.5rem 0;
  opacity: 0; animation: fadeUp .8s ease .65s forwards;
}

/* Social links */
.social-links {
  display: flex; gap: 1rem;
  opacity: 0; animation: fadeUp .8s ease .75s forwards;
}
.social-link {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); text-decoration: none;
  padding: .6rem 1rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  transition: color .2s, border-color .2s, background .2s;
}
.social-link:hover { color: var(--accent-light); border-color: rgba(177,4,200,.3); background: rgba(177,4,200,.06); }

/* ── Right pane — form ── */
.right-pane {
  background: var(--paper);
  padding: 10rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* subtle grid */
.right-pane::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
  linear-gradient(var(--rule) 1px, transparent 1px),
  linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .45;
  pointer-events: none;
}

.form-wrap {
  position: relative; z-index: 2;
  max-width: 480px;
}

.form-eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
  opacity: 0; animation: fadeUp .8s ease .3s forwards;
}
.form-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: block; }

.form-title {
  font-family: var(--serif);
  font-size: var(--type-scale-section);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: .75rem;
  opacity: 0; animation: fadeUp .8s ease .4s forwards;
}
.form-title em { font-style: italic; color: var(--accent); }

.form-sub {
  font-size: .9rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .8s ease .5s forwards;
}

/* Form fields */
.contact-form { opacity: 0; animation: fadeUp .8s ease .6s forwards; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field-group.last { margin-bottom: 0; }

label {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
label .req { color: var(--accent); margin-left: 2px; }

input, textarea {
  font-family: var(--sans); font-size: .9rem; color: var(--ink);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  cursor: auto;
}
input::placeholder, textarea::placeholder { color: rgba(107,99,114,.4); }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

/* Submit */
.form-submit { margin-top: 1.75rem; }
.submit-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--accent); color: white;
  padding: 1rem 2.2rem; border-radius: 6px;
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: .02em; border: none;
  box-shadow: 0 4px 20px rgba(177,4,200,.28);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  width: 100%;
  justify-content: center;
}
.submit-btn:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(177,4,200,.38); }
.submit-btn svg { transition: transform .2s; }
.submit-btn:hover svg { transform: translateX(3px); }

.form-note {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  color: var(--muted); text-align: center; margin-top: 1rem;
}

/* ── Reveal ── */
.reveal { opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1;transform:translateY(0); }

@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ── Success state ── */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.fs-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.fs-title { font-family: var(--serif); font-size: 1.75rem; font-weight: 900; margin-bottom: .75rem; }
.fs-title em { font-style: italic; color: var(--accent); }
.fs-body { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── Responsive ── */
@media(max-width:900px){
  nav { padding: 1.25rem 1.5rem; }
  .contact-page { grid-template-columns: 1fr; }
  .left-pane { padding: 8rem 1.5rem 4rem; min-height: auto; }
  .right-pane { padding: 4rem 1.5rem 5rem; }
  .form-wrap { max-width: 100%; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
