/* =========================================================================
   muratozsular.com — vanilla port (test.html / test.css / test.js)
   No Tailwind, no framework. 1:1 feature parity with the Next.js build.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --space-900: #0a0a0f;
  --space-800: #0f0f17;
  --space-700: #15151f;
  --cyan-electric: #00f0ff;
  --violet-soft: #8b5cf6;
  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.64);
  --text-faint: rgba(245, 245, 247, 0.38);
  --border: rgba(255, 255, 255, 0.08);
  --accent-grad: linear-gradient(120deg, var(--cyan-electric), var(--violet-soft));

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  color-scheme: dark;
  background: var(--space-900);
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}
html.no-scroll, body.no-scroll { overflow: hidden; height: 100dvh; }
body {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  background: var(--space-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--cyan-electric); color: var(--space-900); }
:focus-visible { outline: 2px solid var(--cyan-electric); outline-offset: 4px; border-radius: 4px; }

/* Custom cursor hides native cursor only on fine-pointer devices */
@media (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled * { cursor: none !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Utility ---------- */
.container-p {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container-p { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .container-p { padding: 0 4rem; } }

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan-electric);
  display: inline-block;
}

.block { display: block; }
.mono { font-family: var(--font-mono); }

/* Link with animated underline */
.link-underline {
  position: relative;
  display: inline-flex;
  transition: color 240ms ease;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 400ms cubic-bezier(0.76, 0, 0.24, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.glass {
  background: rgba(15, 15, 23, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
}

/* Film-grain overlay (dialed back — was overpowering on minimal surfaces) */
.grain::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0) }
  10%  { transform: translate(-5%, -10%) }
  20%  { transform: translate(-15%, 5%) }
  30%  { transform: translate(7%, -25%) }
  40%  { transform: translate(-5%, 25%) }
  50%  { transform: translate(-15%, 10%) }
  60%  { transform: translate(15%, 0%) }
  70%  { transform: translate(0%, 15%) }
  80%  { transform: translate(3%, 35%) }
  90%  { transform: translate(-10%, 10%) }
}

.bg-mesh {
  background-color: var(--space-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(139,92,246,0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(0,240,255,0.10), transparent 60%);
}

/* ---------- Three.js background host ---------- */
.three-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
.three-bg canvas { display: block; width: 100% !important; height: 100% !important; }

/* ---------- Custom cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 70;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 999px;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid #fff;
  border-radius: 999px;
  transition: width 200ms, height 200ms, border-color 200ms, transform 200ms;
}
#cursor-ring.is-hot  { width: 64px; height: 64px; border-color: var(--cyan-electric); }
#cursor-ring.is-down { transform: translate(-50%, -50%) scale(0.75); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 2px;
  z-index: 65;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan-electric), var(--violet-soft));
  will-change: transform;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--space-900);
  transition: opacity 700ms cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
.loader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.loader-track {
  margin-top: 2.5rem;
  width: 16rem; height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.loader-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-electric), var(--violet-soft));
  transition: width 120ms linear;
}
.loader-label {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 500ms, border-color 500ms, backdrop-filter 500ms;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { height: 5rem; } }

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  gap: 0.35ch;
}

.nav-list {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-list { display: flex; } }
.nav-list a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 240ms ease;
}
.nav-list a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#music-toggle {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: color 240ms, border-color 240ms;
}
#music-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 240ms ease;
}
.lang-toggle:hover { color: #fff; }
.lang-toggle .sep { margin: 0 0.25rem; opacity: 0.4; }
.lang-toggle .is-active { color: #fff; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  padding: 7rem 0;
}
@media (min-width: 768px) { .section { padding: 10rem 0; } }

.h-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 60rem;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 14rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-top: 0.5rem;
}
.hero-sub {
  margin-top: 2rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }

.hero-meta {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hero-avail { display: inline-flex; align-items: center; gap: 0.75rem; }
.hero-avail .dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--cyan-electric);
  border-radius: 999px;
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hero-loc { display: none; }
@media (min-width: 640px) { .hero-loc { display: inline; } }

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

/* Reveal letters — JS will add .reveal-ready to start */
.reveal-letter {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: 1;
}
.reveal-letter > span {
  display: inline-block;
  will-change: transform;
}
.reveal-letter > span:not(.reveal-ready) {
  transform: translateY(110%);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.scroll-hint > span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.scroll-hint .line {
  display: block;
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.4 }
  50%      { transform: translateY(10px); opacity: 1 }
}

/* ---------- About ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 4rem;
}
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-5 { grid-column: span 5 / span 5; }
  .col-6 { grid-column: span 6 / span 6; }
  .col-start-7 { grid-column-start: 7; }
}
.about-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) { .about-body { font-size: 1.5rem; } }
.about-body [data-word] { display: inline-block; }

.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) { .stats { gap: 2.5rem; } }
.stats dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
}
@media (min-width: 768px) { .stats dt { font-size: 3.5rem; } }
.stats dd {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Skills (minimal chips) ---------- */
.skills-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.skill {
  position: relative;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}
.skill:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
.skill::after {
  /* a hair-line accent dot — the only color on an otherwise neutral chip */
  content: "";
  position: absolute;
  top: 1rem; right: 1rem;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--glow, #fff);
  opacity: 0.55;
  transition: opacity 300ms ease, transform 300ms ease;
}
.skill:hover::after { opacity: 1; transform: scale(1.25); }
.skill-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.9);
}
.skill-tag {
  position: relative;
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Services (minimal, airy) ---------- */
.services-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
  }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Instead of heavy cards, a clean grid of rows divided by hairlines. */
.service {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 300ms ease;
}
@media (min-width: 768px) {
  .service { padding: 2rem 1.75rem; }
  .service + .service { border-left: 1px solid var(--border); }
  /* reset left border at row starts */
  .services-grid .service:nth-child(2n+1) { border-left: 0; }
}
@media (min-width: 1024px) {
  .services-grid .service:nth-child(2n+1) { border-left: 1px solid var(--border); }
  .services-grid .service:nth-child(3n+1) { border-left: 0; }
}
.service:hover { background: rgba(255, 255, 255, 0.015); }
.service-icon {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cyan-electric);
  transition: border-color 300ms ease;
}
.service:hover .service-icon { border-color: rgba(0, 240, 255, 0.35); }
.service-title {
  position: relative;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service-desc {
  position: relative;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Projects (horizontal scroll-jack) ---------- */
.projects {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  padding: 7rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .projects { padding: 10rem 0; } }
.projects-track-wrap {
  margin-top: 5rem;
}
.projects-track {
  display: flex;
  gap: 2rem;
  padding-left: 1.5rem;
  padding-right: 10vw;
  min-height: 60vh;
  align-items: stretch;
  will-change: transform;
}
@media (min-width: 768px) {
  .projects-track { gap: 3.5rem; padding-left: 4rem; }
}
.tilt-card {
  position: relative;
  width: 80vw;
  max-width: 520px;
  flex-shrink: 0;
  padding: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 300ms, border-color 300ms;
}
.tilt-card:hover { border-color: rgba(255, 255, 255, 0.16); }
@media (min-width: 768px) { .tilt-card { width: 42vw; padding: 2.5rem; } }
.tilt-card .glow {
  position: absolute; inset: 0;
  opacity: 0.25;
  pointer-events: none;
}
.project-stack {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.project-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.project-desc {
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
}
.project-footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.project-view {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Process ---------- */
.process-list {
  position: relative;
  margin-top: 5rem;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
@media (min-width: 768px) { .process-list { padding-left: 2.5rem; } }
.process-list::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem; bottom: 1rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan-electric), var(--violet-soft), transparent);
  transform-origin: top center;
  transform: scaleY(0);
}
.process-item {
  position: relative;
  padding-left: 2.5rem;
}
@media (min-width: 768px) { .process-item { padding-left: 5rem; } }
.process-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.5rem;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--cyan-electric);
  box-shadow: 0 0 20px var(--cyan-electric);
}
.process-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.process-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
}
@media (min-width: 768px) { .process-title { font-size: 2.25rem; } }
.process-desc {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  margin: 0 auto;
  max-width: 56rem;
  padding: 2.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .contact-card { padding: 3.5rem; } }
.contact-card::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background:
    radial-gradient(80% 80% at 80% 0%, rgba(0,240,255,0.10), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(139,92,246,0.10), transparent 60%);
}
.contact-sub {
  position: relative;
  margin-top: 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.7);
}
.contact-cta-row {
  position: relative;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--cyan-electric);
  color: var(--space-900);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: transform 300ms;
}
.btn-primary:hover { transform: scale(1.03); }
.contact-cta-row > a:not(.btn-primary) {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.contact-form {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.contact-form .col-span-2 { grid-column: 1 / -1; }
.contact-form label { display: block; }
.f-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact-form input,
.contact-form textarea {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.125rem;
  resize: none;
  transition: border-color 200ms;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--cyan-electric);
}
.f-err {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #ff8585;
  font-style: normal;
  min-height: 1rem;
}
.contact-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.btn-send {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan-electric);
}
.contact-sent { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.footer-grid > div:first-child { grid-column: span 6 / span 6; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
}
@media (min-width: 768px) { .footer-name { font-size: 3rem; } }
.footer-tagline {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-links {
  grid-column: span 6 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    justify-self: end;
    text-align: right;
  }
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-legal {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 768px) {
  .footer-legal { flex-direction: row; align-items: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-letter > span,
  .reveal-letter > span:not(.reveal-ready) { transform: none; }
  .grain::after { animation: none; }
}
