/* ==========================================================================
   Non Grain -  Inspired Coming Soon
   Editorial | Premium | Minimal | Massive Typography
   ========================================================================== */

:root {
  /* Applying Dark Mode colors from previous version */
  --bg-color: #151515;
  /* Main page background */
  --nav-bg: #E84625;
  /* Kept variable but unused in header for floating effect */
  --nav-text: #F2F0E4;
  --text-main: #F2F0E4;

  --accent-1: #F28705;
  /* Underlines, small highlights */
  --accent-2: #F25C05;
  /* Hover states */
  --accent-3: #F24405;
  /* Micro-interactions */

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout/Spacing */
  --container-pad: max(5vw, 2rem);
  --section-pad: 8rem;

  /* Motion */
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-sharp: cubic-bezier(0.19, 1, 0.22, 1);
  --dur-fast: 300ms;
  --dur-base: 800ms;
  --dur-slow: 1200ms;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Atmospheric Background --- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-drift {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(242, 135, 5, 0.04) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: drift 25s infinite ease-in-out alternate;
}

@keyframes drift {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-45%, -55%) scale(1.1);
  }
}

/* --- UI Atoms --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--text-main);
  color: var(--nav-bg);
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-sharp), background-color var(--dur-fast) var(--ease-sharp);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:hover {
  background-color: var(--accent-3);
  color: #fff;
}

.link-secondary {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  cursor: pointer;
}

.link-secondary .link-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-cinematic), background-color var(--dur-fast) ease;
}

.link-secondary:hover .link-underline {
  transform: scaleX(1);
  background-color: var(--accent-3);
}

/* --- Layout Structure --- */
.main-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.content-section {
  width: 100%;
  margin-bottom: 10rem;
  padding: 0 var(--container-pad);
}

.content-section:last-child {
  margin-bottom: 8rem;
  /* Added breathing room before the footer */
}

/* --- Header (Floating Style) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--container-pad);
  /* Tighter padding for filled bar */
  z-index: 100;
  background: rgba(232, 70, 37, 0.9);
  /* Transparent version of #E84625 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
  /* Lighten the logo for dark bg */
  filter: brightness(0) invert(95%) sepia(3%) saturate(600%) hue-rotate(15deg) brightness(102%) contrast(97%);
  opacity: 0.95;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-main);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #39ff14;
  /* Neon green */
  border-radius: 50%;
  box-shadow: 0 0 4px #39ff14, 0 0 8px #39ff14;
  animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
  from {
    box-shadow: 0 0 2px #39ff14, 0 0 5px #39ff14;
    background-color: rgba(57, 255, 20, 0.7);
  }

  to {
    box-shadow: 0 0 6px #39ff14, 0 0 12px #39ff14, 0 0 18px #39ff14;
    background-color: #39ff14;
  }
}

/* --- Hero (Unapologetic Typography) --- */
.hero {
  min-height: 95vh;
  padding-top: 24vh;
  /* Aggressive vertical margin */
  padding-bottom: 4rem;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 1.5rem;
  display: block;
}

/* MASSIVE edge-to-edge typography */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 15rem);
  font-weight: 400;
  line-height: 0.85;
  /* Extremely tight tracking */
  letter-spacing: 0.02em;
  margin: 0 0 3rem 0;
  /* Deep spacing */
  color: var(--text-main);
  /* Optical alignment */
  margin-left: -0.05em;
}

.hero-subtext {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-main);
  opacity: 0.7;
  max-width: 650px;
  /* Constrained to contrast huge header */
  margin: 0 0 4rem 0;
  line-height: 1.5;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
}

/* --- Services Hint Section --- */
.services.content-section {
  margin-bottom: 12rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 1);
  /* Darker borders for contrast */
}

.service-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  transition: padding-left var(--dur-base) var(--ease-cinematic), border-color var(--dur-fast) ease;
  cursor: default;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color var(--dur-fast) ease, transform var(--dur-base) var(--ease-cinematic);
}

.service-item:hover {
  padding-left: 2rem;
  border-bottom-color: var(--text-main);
}

.service-item:hover .service-name {
  color: var(--accent-3);
}

/* --- Closing Section --- */
.closing {
  max-width: 800px;
  margin: 0 auto;
  /* Restored horizontal centering */
  text-align: center;
  /* Center align all typography inside */
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.closing-text {
  font-size: 1.25rem;
  opacity: 0.7;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 500px;
}

.closing-email {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  /* Center the button automatically */
  padding: 1.25rem 3rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  /* White text on orange */
  background-color: var(--accent-3);
  border-radius: 50px;
  /* Deep orange glow effect */
  box-shadow: 0 0 15px rgba(242, 68, 5, 0.4), 0 0 30px rgba(242, 68, 5, 0.2);
  transition: transform var(--dur-fast) var(--ease-sharp), box-shadow var(--dur-fast) var(--ease-sharp);
}

.closing-email:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(242, 68, 5, 0.6), 0 0 45px rgba(242, 68, 5, 0.4);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 3rem var(--container-pad);
  border-top: 1px solid rgba(0, 0, 0, 1);
}

.footer-container {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-main);
}

.footer-link {
  transition: color var(--dur-fast) ease;
}

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

/* === Global Motion Classes === */
.fade-up-delay-1 {
  animation: fadeUpIn 1s var(--ease-cinematic) 0.1s both;
}

.fade-up-delay-2 {
  animation: fadeUpIn 1s var(--ease-cinematic) 0.25s both;
}

.fade-up-delay-3 {
  animation: fadeUpIn 1s var(--ease-cinematic) 0.4s both;
}

.fade-up-delay-4 {
  animation: fadeUpIn 1s var(--ease-cinematic) 0.55s both;
}

.fade-up-delay-5 {
  animation: fadeUpIn 1s var(--ease-cinematic) 0.7s both;
}

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem var(--container-pad);
  }

  .header-status {
    font-size: 0.7rem;
  }

  .nav-logo {
    height: 24px;
  }

  .hero {
    padding-top: 16vh;
    padding-bottom: 2rem;
  }

  .content-section {
    margin-bottom: 5rem;
    /* Substantially reduced from 10rem */
  }

  .services.content-section {
    margin-bottom: 6rem;
    /* Reduced from 12rem */
  }

  .hero-headline {
    font-size: clamp(3.5rem, 18vw, 6rem);
    line-height: 0.85;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
  }

  .hero-subtext {
    font-size: 1rem;
    /* Smaller to prevent bad wrapping on tiny screens */
    margin-bottom: 2.5rem;
    line-height: 1.4;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .hero-actions .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .hero-actions .link-secondary {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .service-name {
    font-size: 2.25rem;
  }

  .service-item:hover,
  .service-item.active {
    padding-left: 1.5rem;
    border-bottom-color: var(--text-main);
  }

  .service-item.active .service-name {
    color: var(--accent-3);
  }

  .footer-container {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer-col {
    flex: 1 1 50%;
  }
}