/* ==========================================================================
   afandim.com — coming soon
   Palette and proportions are lifted straight from the logo artwork:
   the teal→indigo gradient of the mark, its navy wordmark, its amber spark.
   ========================================================================== */

:root {
  --paper:      #f4f6fc;
  --ink:        #0b1a45;
  --ink-70:     rgba(11, 26, 69, .70);
  --ink-55:     rgba(11, 26, 69, .62);   /* 4.7:1 on paper — AA for small text */
  --ink-30:     rgba(11, 26, 69, .30);
  --rule:       rgba(11, 26, 69, .11);

  --teal:       #0ad2b7;
  --blue:       #4065f3;
  --indigo:     #6961fa;
  --amber:      #fdad41;
  --amber-text: #9a6206;   /* 4.8:1 on paper */

  --display:    "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Poppins", "Helvetica Neue", Arial, sans-serif;

  --gutter:     clamp(1.35rem, 5vw, 4.75rem);
  --ease:       cubic-bezier(.22, .68, .24, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(105, 97, 250, .18); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Atmosphere: three slow-drifting colour blooms, an oversized watermark of
   the mark bleeding off the right edge, and a fine grain over the whole lot.
   -------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.aurora__blob--teal {
  width: 62vmax; height: 62vmax;
  top: -30vmax; left: -22vmax;
  background: radial-gradient(circle, rgba(10, 210, 183, .40), rgba(10, 210, 183, 0) 66%);
  animation: drift-a 30s var(--ease) infinite alternate;
}

.aurora__blob--indigo {
  width: 68vmax; height: 68vmax;
  right: -30vmax; bottom: -34vmax;
  background: radial-gradient(circle, rgba(105, 97, 250, .34), rgba(105, 97, 250, 0) 66%);
  animation: drift-b 38s var(--ease) infinite alternate;
}

.aurora__blob--amber {
  width: 40vmax; height: 40vmax;
  left: 6vmax; bottom: -24vmax;
  background: radial-gradient(circle, rgba(253, 173, 65, .22), rgba(253, 173, 65, 0) 64%);
  animation: drift-c 34s var(--ease) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, -7vmax, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(7vmax, -5vmax, 0) scale(1.18); } }

.watermark-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.watermark {
  position: absolute;
  right: -10vw;
  top: 50%;
  width: min(48vw, 560px);
  height: auto;
  opacity: .085;
  pointer-events: none;
  transform: translateY(-50%);
  animation: float 22s ease-in-out infinite alternate;
}

@keyframes float {
  to { transform: translateY(calc(-50% - 22px)) rotate(-2.5deg); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --------------------------------------------------------------------------
   Frame
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vh, 3.25rem);
  padding: clamp(1.25rem, 3.5vh, 2.25rem) var(--gutter) clamp(1.25rem, 3.5vh, 2rem);
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.masthead__domain { white-space: nowrap; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}

.status__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  animation: ping 2.6s ease-out infinite;
}

@keyframes ping {
  0%        { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Stage ------------------------------------------------------------------- */

.stage {
  position: relative;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  min-width: 0;
  gap: clamp(1.1rem, 2.6vh, 1.7rem);
  max-width: min(43rem, 100%);
  padding-left: clamp(1.1rem, 2.5vw, 2.1rem);
  padding-block: .5rem;
}

/* The hairline that anchors the column — a slice of the logo's own gradient. */
.stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(10, 210, 183, 0) 0%,
    var(--teal) 18%,
    var(--blue) 52%,
    var(--indigo) 78%,
    rgba(105, 97, 250, 0) 100%);
  opacity: .55;
}

.lockup { margin-bottom: clamp(.25rem, 1.5vh, .9rem); }

.lockup svg {
  display: block;
  width: clamp(132px, 17vw, 188px);
  height: auto;
}

.lockup__tagline {
  font-family: var(--sans);
  font-weight: 500;
}

.eyebrow {
  margin: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.35rem, 6.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(102deg, var(--teal) 4%, var(--blue) 48%, var(--indigo) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .04em;
}

.lede {
  margin: 0;
  max-width: min(33rem, 100%);
  font-size: clamp(1rem, 1.55vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-70);
}

.actions { margin: .35rem 0 0; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .3rem;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-30);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.link:hover { color: var(--indigo); border-color: var(--indigo); }

.link__arrow {
  width: 20px;
  height: 12px;
  flex: none;
  transition: transform .35s var(--ease);
}

.link:hover .link__arrow { transform: translateX(5px); }

/* Colophon ---------------------------------------------------------------- */

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: .95rem;
  border-top: 1px solid var(--rule);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* The three sparks above the mark, borrowed as a rule. */
.spark { display: inline-flex; gap: 5px; flex: none; }

.spark__seg { width: 16px; height: 2px; border-radius: 2px; }
.spark__seg--teal   { background: var(--teal); }
.spark__seg--indigo { background: var(--indigo); }
.spark__seg--amber  { background: var(--amber); }

.colophon__legal { text-align: right; }

/* --------------------------------------------------------------------------
   Entrance — held until the webfonts settle so nothing reflows in view.
   -------------------------------------------------------------------------- */

body:not(.is-ready) .reveal { opacity: 0; }

.is-ready .reveal {
  animation: rise .95s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .watermark {
    right: -34vw;
    top: auto;
    bottom: -12vh;
    width: 96vw;
    opacity: .055;
    transform: none;
    animation: none;
  }

  .masthead { font-size: .62rem; letter-spacing: .16em; }
  .colophon { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .colophon__legal { text-align: left; }
  .stage { max-width: none; }
}

@media (max-width: 400px) {
  .masthead__domain { letter-spacing: .12em; }
  .status { letter-spacing: .12em; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .is-ready .reveal { opacity: 1; transform: none; }
}
