/* ------------------------------------------------------------------
   Brilliant Recruiter — Coming Soon
   ------------------------------------------------------------------ */

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

:root {
  /* Surface */
  --cream:        #FDFAF4;
  --cream-deep:   #F7EFE2;

  /* Ink */
  --ink:          #1C1712;
  --ink-soft:     #554C3C;
  --ink-muted:    #8A8069;

  /* Ember — subtle orange palette */
  --ember-50:     #FFF3E6;
  --ember-100:    #FCD7B0;
  --ember-300:    #F4B07A;
  --ember-500:    #E87B3C;
  --ember-700:    #B8461A;

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --fs-body:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-dek:   clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  --fs-hero:  clamp(3rem, 1.6rem + 6.6vw, 7rem);

  /* Rhythm */
  --pad-x:    clamp(1.5rem, 4.5vw, 3.75rem);
  --pad-y:    clamp(1.5rem, 3.5vw, 2.5rem);
  --gap-xl:   clamp(2.5rem, 7vh, 5.5rem);
}

html,
body {
  height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 100% 0%, var(--ember-50) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, var(--cream-deep) 0%, transparent 55%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* selection */
::selection {
  background: var(--ember-300);
  color: var(--ink);
}

/* ------------------------------------------------------------------
   Aurora — soft drifting colour fields
   ------------------------------------------------------------------ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: multiply;
  will-change: transform;
}

.aurora__layer--a {
  width: 72vw;
  height: 72vw;
  top: -22vw;
  right: -18vw;
  background: radial-gradient(circle, var(--ember-300) 0%, transparent 65%);
  opacity: 0.42;
  animation: drift-a 24s ease-in-out infinite;
}

.aurora__layer--b {
  width: 58vw;
  height: 58vw;
  bottom: -20vw;
  left: -12vw;
  background: radial-gradient(circle, var(--ember-500) 0%, transparent 70%);
  opacity: 0.22;
  animation: drift-b 30s ease-in-out infinite;
}

.aurora__layer--c {
  width: 46vw;
  height: 46vw;
  top: 34vh;
  left: 38vw;
  background: radial-gradient(circle, #FFDCB6 0%, transparent 70%);
  opacity: 0.35;
  animation: drift-c 28s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-5vw, 4vh) scale(1.08); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6vw, -5vh) scale(1.12); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-4vw, -3vh) scale(0.92); }
}

/* ------------------------------------------------------------------
   Mesh — translucent grid layered with dot intersections, drifting
   ------------------------------------------------------------------ */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Soft vignette so the grid fades toward the corners rather than
     hitting the viewport edge at full strength */
  -webkit-mask-image: radial-gradient(ellipse 95% 88% at 50% 50%,
                       #000 28%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 88% at 50% 50%,
                       #000 28%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
}

.mesh__grid {
  position: absolute;
  inset: -2%;
  will-change: background-position, transform;
}

/* Fine grid: nodes (dots) sitting on subtle line scaffolding */
.mesh__grid--fine {
  background-image:
    radial-gradient(circle, rgba(92, 36, 16, 0.22) 1.1px, transparent 1.6px),
    linear-gradient(to right,  rgba(92, 36, 16, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92, 36, 16, 0.06) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, 0 0;
  animation: mesh-flow-fine 28s linear infinite;
}

/* Coarse grid: a slower, larger lattice rotated slightly so the two
   layers form a soft moiré, evoking a woven mesh rather than tech grid */
.mesh__grid--coarse {
  background-image:
    linear-gradient(to right,  rgba(184, 70, 26, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 70, 26, 0.07) 1px, transparent 1px);
  background-size: 168px 168px, 168px 168px;
  transform: rotate(8deg) scale(1.15);
  transform-origin: 50% 50%;
  animation: mesh-flow-coarse 64s linear infinite;
}

@keyframes mesh-flow-fine {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px, 56px 56px; }
}

@keyframes mesh-flow-coarse {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -168px 168px, -168px 168px; }
}

/* ------------------------------------------------------------------
   Grain — extremely subtle film grain
   ------------------------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------
   Page frame
   ------------------------------------------------------------------ */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--gap-xl);
}

/* ------------------------------------------------------------------
   Masthead
   ------------------------------------------------------------------ */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fade-soft 1s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.78;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: block;
  transform-origin: center;
  animation: mark-breathe 6s ease-in-out infinite;
}

.brand:hover .brand__mark {
  animation-duration: 3s;
}

@keyframes mark-breathe {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 1px 0 rgba(184, 70, 26, 0));
  }
  50% {
    transform: rotate(1.5deg) scale(1.035);
    filter: drop-shadow(0 4px 14px rgba(232, 123, 60, 0.3));
  }
}

.brand__name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 14;
}

.brand__name-second {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

.masthead__year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 920px;
  gap: 1.4rem;
}

.hero > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero > *:nth-child(1) { animation-delay: 0.15s; }
.hero > *:nth-child(2) { animation-delay: 0.30s; }
.hero > *:nth-child(3) { animation-delay: 0.50s; }
.hero > *:nth-child(4) { animation-delay: 0.70s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 1px solid rgba(232, 123, 60, 0.25);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-700);
}

.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow: 0 0 0 0 rgba(232, 123, 60, 0.65);
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 123, 60, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(232, 123, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 123, 60, 0); }
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(115deg, var(--ember-300) 0%, var(--ember-500) 45%, var(--ember-700) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ember-500);
  padding-right: 0.05em;
}

/* Dek (subtitle) */
.dek {
  max-width: 34em;
  font-size: var(--fs-dek);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Notify form
   ------------------------------------------------------------------ */
.notify {
  margin-top: 0.4rem;
  width: 100%;
  max-width: 30rem;
}

.notify__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notify__field {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 22, 18, 0.08);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.notify__field:focus-within {
  border-color: rgba(232, 123, 60, 0.55);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(232, 123, 60, 0.1);
}

.notify__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}

.notify__input::placeholder {
  color: var(--ink-muted);
}

.notify__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #FFF8F1;
  background: linear-gradient(135deg, var(--ember-500) 0%, var(--ember-700) 100%);
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(232, 123, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.notify__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 8px 22px rgba(232, 123, 60, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.notify__submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.notify__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.notify__submit:hover .notify__arrow {
  transform: translateX(3px);
}

.notify__fine {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
  animation: fade-soft 1.4s 0.4s ease-out both;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(87, 76, 60, 0.22);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: var(--ember-700);
  border-color: var(--ember-500);
}

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 560px) {
  .masthead__year { display: none; }

  .notify__field {
    flex-direction: column;
    gap: 0.35rem;
  }

  .notify__submit {
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero > * {
    opacity: 1;
    transform: none;
  }
}
