/*
Theme Name: Nephraxis Scientific Field
Theme URI: https://www.nephraxis.com/
Description: A Neve FSE child theme implementing the Nephraxis Scientific Field visual direction.
Author: Nephraxis
Template: neve-fse
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: nephraxis-scientific-field
*/

:root {
  --nx-ink: #f3f1ea;
  --nx-muted: rgba(243, 241, 234, 0.68);
  --nx-charcoal: #090c0f;
  --nx-panel: #0e1215;
  --nx-paper: #e8e5dc;
  --nx-red: #b21f2d;
  --nx-line: rgba(255, 255, 255, 0.14);
  --nx-gutter: clamp(1.5rem, 6vw, 7.5rem);
}

html { scroll-behavior: smooth; }
body { background: var(--nx-charcoal); }

.wp-site-blocks { padding: 0; }

.nx-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 5.75rem;
  padding: 0 var(--nx-gutter);
  border-bottom: 1px solid var(--nx-line);
  color: var(--nx-ink);
}

.nx-header .wp-block-group { min-height: 5.75rem; }

.nx-header .wp-block-site-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nx-header .wp-block-site-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.nx-header .wp-block-site-title a,
.nx-header .nx-contact-link { text-decoration: none; }

.nx-header .nx-contact-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.nephraxis-field-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(44rem, 90vh, 56rem);
  overflow: hidden;
  padding: clamp(9.5rem, 17vh, 12rem) var(--nx-gutter) 6rem;
  background-color: var(--nx-charcoal);
  background-image:
    linear-gradient(90deg, #080c0f 0%, rgba(8, 12, 15, 0.9) 31%, rgba(8, 12, 15, 0.15) 75%),
    url("assets/images/scientific-field.jpg");
  background-position: center;
  background-size: cover;
  color: var(--nx-ink);
}

.nephraxis-field-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.nephraxis-field-hero::after {
  content: "";
  position: absolute;
  left: var(--nx-gutter);
  top: 24%;
  bottom: 15%;
  width: 1px;
  background: var(--nx-red);
}

.nephraxis-field-hero > .wp-block-group {
  position: relative;
  z-index: 2;
  width: min(100%, 68rem);
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 3.5rem);
}

.nx-eyebrow {
  margin: 0 0 2.4rem;
  color: var(--nx-muted);
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nephraxis-field-hero .nx-display {
  max-width: 58rem;
  margin: 0 0 2rem;
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.nephraxis-field-hero .nx-intro {
  max-width: 32rem;
  margin: 0 0 2.2rem;
  color: var(--nx-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.nx-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid var(--nx-paper);
  border-radius: 0;
  background: var(--nx-paper);
  color: #111;
  padding: 1rem 1.15rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease;
}

.nx-button .wp-block-button__link:hover,
.nx-button .wp-block-button__link:focus-visible {
  background: var(--nx-red);
  border-color: var(--nx-red);
  color: white;
}

.nx-status {
  margin: 0;
  padding: clamp(5rem, 10vw, 8rem) var(--nx-gutter);
  background: var(--nx-panel);
  color: var(--nx-ink);
  border-top: 1px solid var(--nx-line);
}

.nx-status > .wp-block-group {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 2fr);
  gap: clamp(2rem, 7vw, 8rem);
  max-width: 86rem;
  margin: 0 auto;
}

.nx-label {
  margin: 0.5rem 0 0;
  color: var(--nx-red);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nx-status h2,
.nx-contact h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.9rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.nx-status .nx-status-copy {
  max-width: 48rem;
  margin: 0;
  color: var(--nx-muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.nx-contact {
  margin: 0;
  padding: clamp(5rem, 9vw, 7.5rem) var(--nx-gutter);
  background: var(--nx-paper);
  color: #111;
}

.nx-contact > .wp-block-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 86rem;
  margin: 0 auto;
}

.nx-contact .nx-email {
  flex-shrink: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-underline-offset: 0.45rem;
}

.nx-footer {
  margin: 0;
  padding: 1.75rem var(--nx-gutter);
  background: #080808;
  color: #aaa;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nx-footer a { text-decoration: none; }

@media (max-width: 48rem) {
  .nx-header { min-height: 4.75rem; }
  .nx-header .wp-block-group { min-height: 4.75rem; }
  .nephraxis-field-hero {
    min-height: 42rem;
    padding-top: 8.5rem;
    background-image:
      linear-gradient(90deg, rgba(8, 12, 15, 0.94), rgba(8, 12, 15, 0.42)),
      url("assets/images/scientific-field.jpg");
    background-position: 62% center;
  }
  .nephraxis-field-hero::after { top: 21%; bottom: 13%; }
  .nephraxis-field-hero > .wp-block-group { padding-left: 1.4rem; }
  .nephraxis-field-hero .nx-display { font-size: clamp(3.5rem, 18vw, 5.25rem); }
  .nx-status > .wp-block-group { grid-template-columns: 1fr; gap: 1.7rem; }
  .nx-contact > .wp-block-group { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
