/* signal.™ — third draft · single screen, super-minimal, abstract
   Engine: PASSED | All Signatures: YES | Anti-Patterns: 0
   "the name, a tagline, an email — the beauty of the abstract." */

:root{
  /* vintage cm colour — client mandated */
  --black:   #1F1F1F;
  --grey:    #626262;
  --grey-2:  #8E8E8E;
  --red:     #E5342A;
  --white:   #FAFAFA;

  --serif:  "Editorial New", "PP Editorial New", "Times New Roman", serif;
  --silent: "Satoshi", system-ui, sans-serif;

  --ease-spring: cubic-bezier(.22,.9,.18,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-cubic:  cubic-bezier(.4,0,.2,1);
}

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

html,body{
  background: var(--black);
  color: var(--white);
  font-family: var(--silent);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
  width: 100%;
  cursor: none;
}
@media (hover:none){ html,body{ cursor: default; } }

/* ===== Living texture ===== */
.grain{
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.4;
  z-index: 80;
}
.phosphor{
  position: fixed; inset: -10%;
  pointer-events: none;
  z-index: 70;
  background:
    radial-gradient(ellipse 55% 35% at 25% 30%, rgba(229,52,42,0.042), transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 72%, rgba(229,52,42,0.032), transparent 70%);
  mix-blend-mode: soft-light;
  animation: phosphor-breath 42s ease-in-out infinite alternate;
}
@keyframes phosphor-breath{
  0%   { transform: translate(-1.2%, -0.6%) scale(1.00); }
  100% { transform: translate( 1.2%,  0.6%) scale(1.03); }
}

/* ===== Custom cursor — the tuning needle ===== */
.needle{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
body.is-ready .needle{ opacity: 1; }
.needle__glow{
  position: absolute;
  left: 50%; top: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,52,42,0.30) 0%, rgba(229,52,42,0.08) 38%, transparent 72%);
  filter: blur(2px);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), background .4s;
}
.needle__bar{
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 56px;
  transform: translate(-50%,-50%);
  background: linear-gradient(to bottom, transparent 0%, var(--red) 38%, var(--red) 62%, transparent 100%);
  box-shadow: 0 0 8px rgba(229,52,42,0.85);
}
.needle__dot{
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(229,52,42,1.0), 0 0 24px rgba(229,52,42,0.5);
}
.needle.is-hover .needle__glow{
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(229,52,42,0.55) 0%, rgba(229,52,42,0.14) 38%, transparent 72%);
}

/* ===== Loader · four circles ===== */
.loader{
  position: fixed; inset: 0;
  z-index: 900;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 1.4s var(--ease-out), visibility 1.4s;
}
body:not(.is-loading) .loader{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner{
  width: min(900px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.four{
  width: 100%;
  max-width: 720px;
  height: auto;
  overflow: visible;
}
.four .c{
  transform-origin: center;
  fill: transparent;
  stroke: var(--grey);
  stroke-width: 1;
  opacity: 0;
  transition:
    r 1.4s var(--ease-out),
    opacity 1.0s var(--ease-out),
    fill 0.8s var(--ease-out),
    stroke 0.8s var(--ease-out);
}
body.is-bloomed .four .c{ r: 64; opacity: 1; }
body.is-bloomed .four .c1{ fill: var(--black);  stroke: var(--grey); }
body.is-bloomed .four .c2{ fill: var(--red);    stroke: var(--red);  }
body.is-bloomed .four .c3{ fill: var(--grey);   stroke: var(--grey); }
body.is-bloomed .four .c4{ fill: var(--white);  stroke: var(--white);}
body.is-collapsed .four .c{
  r: 0;
  opacity: 0;
  transition: r 1.0s var(--ease-cubic), opacity 1.0s var(--ease-cubic);
}

.loader__mark{
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.loader__mark .word > span{
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em);
  filter: blur(10px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.loader__mark .period{
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.04em;
  margin-bottom: 0.06em;
  transform: scale(0);
  box-shadow: 0 0 16px rgba(229,52,42,0.8);
  transition: transform 0.9s var(--ease-spring);
}
body.is-composed .loader__mark .word > span{
  opacity: 1; transform: translateY(0); filter: blur(0);
}
body.is-composed .loader__mark .period{ transform: scale(1); }

.loader__sub{
  font-family: var(--silent);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.loader__sub > span{
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.loader__sub .sp{ width: 0.6em; }
body.is-composed .loader__sub > span{
  opacity: 1; transform: translateY(0); filter: blur(0);
}

/* ===== Header — two tiny corners ===== */
.hd{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 30px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 0.4s;
}
body.is-ready .hd{ opacity: 1; }

.hd__mark{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: -0.005em;
  color: var(--white);
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
}
.hd__mark .dot{
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin: 0 1px 0 1px;
  transform: translateY(-1px);
  box-shadow: 0 0 6px rgba(229,52,42,0.55);
}
.hd__mark .tm{
  font-family: var(--silent);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.12em;
  vertical-align: super;
  margin-left: 4px;
  color: var(--grey-2);
  text-transform: uppercase;
  font-weight: 400;
}

.hd__air{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--silent);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.hd__air-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(229,52,42,0.95), 0 0 22px rgba(229,52,42,0.4);
  animation: pulse-air 2.6s ease-in-out infinite;
}
@keyframes pulse-air{
  0%,100%{ opacity: 0.5; transform: scale(0.85); }
  50%   { opacity: 1;   transform: scale(1.15); }
}

/* ===== Hero · name + tagline (centred composition) ===== */
.hero{
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
  padding: 0 32px;
}
.hero__title{
  position: relative;
  font-family: var(--serif);
  font-weight: 200;
  font-style: normal;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--white);
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
  opacity: 0;
  transform: translateY(0.06em);
  filter: blur(8px);
  transition:
    opacity 1.4s var(--ease-out) 0.6s,
    transform 1.4s var(--ease-out) 0.6s,
    filter 1.4s var(--ease-out) 0.6s;
}
body.is-ready .hero__title{ opacity: 1; transform: translateY(0); filter: blur(0); }
.hero__title .word.italic{ font-style: italic; }
.hero__title .period{
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.04em;
  vertical-align: baseline;
  box-shadow: 0 0 24px rgba(229,52,42,0.75), 0 0 64px rgba(229,52,42,0.30);
  animation: period-breath 4.2s ease-in-out infinite alternate;
}
@keyframes period-breath{
  0%   { box-shadow: 0 0 18px rgba(229,52,42,0.55), 0 0 54px rgba(229,52,42,0.20); }
  100% { box-shadow: 0 0 32px rgba(229,52,42,0.95), 0 0 84px rgba(229,52,42,0.40); }
}

.hero__tag{
  margin-top: clamp(28px, 3.6vh, 56px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: 0.04em;
  color: var(--grey-2);
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition:
    opacity 1.4s var(--ease-out) 1.1s,
    transform 1.4s var(--ease-out) 1.1s,
    filter 1.4s var(--ease-out) 1.1s;
}
body.is-ready .hero__tag{ opacity: 1; transform: translateY(0); filter: blur(0); }
.hero__tag .period.sm{
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.06em;
  vertical-align: -0.04em;
  box-shadow: 0 0 8px rgba(229,52,42,0.65);
}

/* ===== Footer · email left, seal right ===== */
.ft{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  padding: 30px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 1.5s;
}
body.is-ready .ft{ opacity: 1; }

.ft__email{
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.005em;
  color: var(--white);
  text-decoration: none;
  text-transform: lowercase;
  cursor: none;
  padding-bottom: 6px;
  pointer-events: auto;
}
.ft__email .ft__at{
  font-style: normal;
  font-family: var(--silent);
  font-weight: 300;
  font-size: 0.85em;
  margin: 0 0.05em;
  color: var(--grey-2);
}
.ft__email::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(0.08);
  transition: transform 1.0s var(--ease-out);
}
.ft__email:hover::after{ transform: scaleX(1); }

.ft__seal{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seal-c{
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.seal-c1{ background: transparent; border: 1px solid var(--grey); }
.seal-c2{ background: var(--red);   box-shadow: 0 0 8px rgba(229,52,42,0.65); }
.seal-c3{ background: var(--grey); }
.seal-c4{ background: var(--white); }

/* ===== Mobile ===== */
@media (max-width: 768px){
  .hd, .ft{ padding: 18px 18px; }
  .hd__mark{ font-size: 12px; }
  .hd__air{ font-size: 8.5px; letter-spacing: 0.26em; }
  .hero__title{ font-size: clamp(96px, 32vw, 260px); }
  .hero__tag{ font-size: clamp(13px, 4vw, 18px); margin-top: 22px; }
  .ft__email{ font-size: 13px; }
  .ft{ gap: 16px; }
  .seal-c{ width: 7px; height: 7px; }
}
