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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --ink: #f0ede6;
  --ink-dim: #8a8a9a;
  --accent: #c8a96e;
  --accent2: #6e9ec8;
  --line: rgba(200,169,110,0.15);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.6;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.07) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(110,158,200,0.06) 0%, transparent 70%);
  bottom: -150px; right: -100px;
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  padding: 40px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: -1px;
}

.logo-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.logo-text span { color: var(--accent); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-btn {
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  color: var(--ink-dim);
}

.lang-btn.active {
  color: var(--accent);
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.2);
}

.lang-btn:not(.active):hover { color: var(--ink); }

.lang-sep {
  color: var(--line);
  font-size: 14px;
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.55s forwards;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h1 .line-2 {
  display: block;
  color: var(--ink-dim);
  font-weight: 400;
}

.descriptor {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}

.descriptor strong {
  color: var(--ink);
  font-weight: 400;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.85s forwards;
}

.skill-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, color 0.3s;
  cursor: default;
}

.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

.skill-tag.highlight {
  border-color: rgba(200,169,110,0.4);
  color: var(--accent);
  background: rgba(200,169,110,0.05);
}

.notify-block {
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}

.notify-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.notify-form {
  display: flex;
  gap: 0;
  max-width: 420px;
}

.notify-form input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-right: none;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
  border-radius: 4px 0 0 4px;
  transition: border-color 0.3s;
}

.notify-form input::placeholder { color: var(--ink-dim); opacity: 0.5; }
.notify-form input:focus { border-color: rgba(200,169,110,0.5); }

.notify-form button {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s, transform 0.15s;
  white-space: nowrap;
}

.notify-form button:hover { background: #d4b87a; transform: translateX(1px); }

.notify-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 24px 0;
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
}

/* Footer */
footer {
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.footer-left {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

.footer-left a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  transition: border-color 0.2s;
}

.footer-left a:hover { border-color: var(--accent); }

.footer-left a.footer-privacy {
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(138,138,154,0.3);
}

.footer-left a.footer-privacy:hover { color: var(--accent); border-color: var(--accent); }

.footer-right { display: flex; gap: 20px; }

.footer-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--ink); }

/* Status */
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c8a96e;
  box-shadow: 0 0 8px rgba(200,169,110,0.6);
  animation: pulse 2s ease-in-out infinite;
}

/* Side rule */
.side-rule {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.3s forwards;
}

@media (max-width: 768px) { .side-rule { display: none; } }

.side-rule-line { width: 1px; height: 80px; background: var(--line); }

.side-rule-text {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
  opacity: 0.5;
}

/* Floating code block */
.code-float {
  position: fixed;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(200,169,110,0.18);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.5s forwards;
  white-space: pre;
}

@media (max-width: 1024px) { .code-float { display: none; } }

/* Consent */
.consent-block {
  margin-top: 14px;
  max-width: 420px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg2);
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.consent-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 1.5px solid var(--bg);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.consent-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

.consent-text a {
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(138,138,154,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.consent-text a:hover { color: var(--accent); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 600px) {
  .wrapper { padding: 0 24px; }
  .notify-form { flex-direction: column; }
  .notify-form input { border-right: 1px solid var(--line); border-radius: 4px; border-bottom: none; }
  .notify-form button { border-radius: 4px; }
  footer { flex-direction: column; gap: 12px; }
}
