/* ─────────────────────────────────────────────
   Neutrino Studio — style.css
   ───────────────────────────────────────────── */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── Tokens ─── */
:root {
  --bg:          #f7f5f0;
  --bg-alt:      #efece5;
  --text:        #100f0c;
  --muted:       #6b6560;
  --border:      #d8d2c8;
  --border-dark: #bfb8ae;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 68px;
  --max-w: 1160px;
  --pad:   clamp(1.25rem, 4vw, 2.5rem);
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--ff-display); line-height: 1.08; font-weight: 400; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-hd {
  margin-bottom: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover {
  background: transparent;
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--text); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ─────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 200;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
}

.nav__mark {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.nav__name {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn #lang-active { color: var(--text); font-weight: 600; }
.lang-sep { opacity: 0.35; }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__inner,
.hero__scroll {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero__inner {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) brightness(1.02);
  animation: hero-video-in 1.6s var(--ease) 0.15s forwards;
}

@keyframes hero-video-in {
  to { opacity: 0.5; }
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 45%, transparent 78%, var(--bg) 100%);
  pointer-events: none;
}

/* subtle dot grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  max-width: 800px;
}

.hero__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: up 0.7s var(--ease) 0.1s forwards;
}

.hero__title {
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 1.03;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.06em;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
}
.hero__line:nth-child(1) { animation: up 1s var(--ease) 0.22s forwards; }
.hero__line:nth-child(2) { animation: up 1s var(--ease) 0.38s forwards; }
.hero__line--i { font-style: italic; }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(10px);
  animation: up 0.8s var(--ease) 0.55s forwards;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  animation: up 0.8s var(--ease) 0.7s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: up 0.7s var(--ease) 1.1s forwards;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -100%;
  width: 100%;
  background: var(--muted);
  animation: swipe 2s var(--ease) 1.3s infinite;
}

/* ─────────────────────────────────────────────
   Services
   ───────────────────────────────────────────── */
.services {
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}

.svc-card {
  background: var(--bg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.svc-card:hover { background: var(--bg-alt); }

.svc-num {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.svc-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
}

.svc-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   Process
   ───────────────────────────────────────────── */
.process {
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

.proc-list {
  display: flex;
  flex-direction: column;
}

.proc-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.proc-num {
  font-family: var(--ff-display);
  font-size: 2.75rem;
  color: var(--border-dark);
  line-height: 1;
  padding-top: 0.05em;
  transition: color 0.3s ease;
}
.proc-step:hover .proc-num { color: var(--text); }

.proc-body h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.proc-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────── */
.contact {
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-style: italic;
  line-height: 1.1;
}

.contact__sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   Scroll Reveal
   ───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────
   Keyframes
   ───────────────────────────────────────────── */
@keyframes up {
  to { opacity: 1; transform: none; }
}

@keyframes swipe {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav__name { display: none; }

  .hero__title { font-size: clamp(2.75rem, 14vw, 4rem); }

  .proc-step { grid-template-columns: 52px 1fr; }
  .proc-num { font-size: 2rem; }
}
