@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=Geist+Mono:wght@300;400;500&display=swap');

/* ─── THEME TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #141416;
  --bg-2:         #0f0f11;
  --surface:      #1c1c1f;
  --surface-2:    #242428;
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(255,255,255,0.13);
  --text:         #e6e6e2;
  --text-mid:     #9a9a94;
  --text-dim:     #5c5c58;
  --accent:       #d4d4c8;
  --accent-rgb:   212,212,200;
  --header-bg:    rgba(20,20,22,0.92);
  --glow:         rgba(212,212,200,0.04);
  --indigo:       #818cf8;
}
/* ─── CUSTOM CURSORS ─── */
* {
  cursor: url('cursors/darkcursors/dark-theme-cursor.png') 0 0, auto;
}

a,
button,
[role="button"],
.btn-submit,
.contact-card,
.nav-back,
.foot-links a {
  cursor: url('cursors/darkcursors/dark-theme-pointer.png') 12 0, pointer !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
.form-group input,
.form-group textarea,
.form-group select,
[contenteditable] {
  cursor: url('cursors/darkcursors/dark-theme-text-cursor.png') 12 14, text !important;
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist Mono', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── PARTICLE CANVAS ───────────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── NAV ───────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  padding: 6px 0;
}

.nav-back:hover { color: var(--text-mid); }

.nav-back svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.nav-back:hover svg { transform: translateX(-2px); }

/* ─── PAGE WRAPPER ──────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

/* ─── PAGE HEADER ───────────────────────────────────────────────── */
.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--indigo);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page-kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--indigo);
  flex-shrink: 0;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease both;
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ─── CONTENT SECTIONS ──────────────────────────────────────────── */
.doc-section {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.doc-section.visible {
  opacity: 1;
  transform: none;
}

.doc-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h2::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--indigo);
  border-radius: 2px;
  flex-shrink: 0;
}

.doc-section p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 12px;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul {
  list-style: none;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-section ul li {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}

.doc-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.doc-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
  transition: border-color 0.2s;
}

.doc-section a:hover {
  border-color: var(--accent);
}

/* Highlight box */
.doc-highlight {
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}

.doc-highlight p {
  margin: 0;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ─── CONTACT PAGE SPECIFIC ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s, background 0.2s;
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-2px) !important;
}

.contact-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-card-icon svg { width: 15px; height: 15px; }

.contact-card-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card-value {
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.contact-card-hint {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: auto;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.contact-form.visible {
  opacity: 1;
  transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--surface-2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%235c5c58' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--surface-2);
  color: var(--text);
}

.form-group textarea { min-height: 120px; }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.btn-submit {
  padding: 11px 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-submit:active { transform: none; }

.btn-submit svg { width: 13px; height: 13px; }

.form-note {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 280px;
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.form-success.shown { display: flex; }

.form-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
}

.form-success-icon svg { width: 20px; height: 20px; }

.form-success h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
}

.form-success p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── DIVIDER ───────────────────────────────────────────────────── */
.doc-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 52px 0;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.foot-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-mid);
}

.foot-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.foot-links a {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.foot-links a:hover { color: var(--text-mid); }
.foot-links a.active { color: var(--text); }

.foot-copy {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0 20px; }
  .page-wrap { padding: 48px 24px 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 18px; text-align: center; padding: 28px 24px; }
}
