/* ==========================================================================
   redhotmagma – web business card
   ========================================================================== */

@font-face {
  font-family: "Dax";
  src: url("assets/fonts/dax.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ed1c29;
  --green: #45c08a;
  --ink: #0b0b0c;
  --ink-graphite: #232427;
  --ink-soft: #56595f;
  --white: #fff;
  --line: rgba(11, 11, 12, .12);

  --font: "Dax", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .35vw, 1.175rem);
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--red);
  color: var(--white);
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1%, 0); }
}

/* keeps the claim legible over the brightest part of the nebula */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 4, 4, .78) 0%, rgba(6, 4, 4, .35) 45%, rgba(6, 4, 4, 0) 72%),
    linear-gradient(to bottom, rgba(6, 4, 4, .55) 0%, rgba(6, 4, 4, 0) 30%, rgba(6, 4, 4, .1) 70%, rgba(11, 11, 12, .9) 100%);
}

.hero__grain {
  position: absolute;
  inset: -50%;
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: grain 5s steps(5) infinite;
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -3%, 0); }
  60%  { transform: translate3d(-2%, -2%, 0); }
  80%  { transform: translate3d(3%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero__logo {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.5rem);
  left: var(--gutter);
  z-index: 2;
  animation: rise .9s var(--ease) .15s both;
}

.hero__logo img {
  width: clamp(140px, 13vw, 185px);
  height: auto;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.hero__logo:hover img { opacity: .82; transform: translateY(-1px); }

.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem var(--gutter) 9rem;
  max-width: 70rem;
}

.claim {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.claim__line { display: block; }

.claim__word {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
}

.claim__line:first-child .claim__word:nth-child(1) { animation-delay: .30s; }
.claim__line:first-child .claim__word:nth-child(2) { animation-delay: .38s; }
.claim__line:first-child .claim__word:nth-child(3) { animation-delay: .46s; }
.claim__line:last-child  .claim__word:nth-child(1) { animation-delay: .54s; }
.claim__line:last-child  .claim__word:nth-child(2) { animation-delay: .62s; }
.claim__line:last-child  .claim__word:nth-child(3) { animation-delay: .70s; }

.claim__word--hl {
  position: relative;
  z-index: 0;
  color: var(--white);
}
/* magma glow behind the AI */
.claim__word--hl::after {
  content: "";
  position: absolute;
  inset: -16% -38%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(237, 28, 41, .8), rgba(237, 28, 41, .28) 55%, transparent 78%);
  filter: blur(26px);
  animation: pulse 5s ease-in-out 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.12); }
}

.claim__rule {
  display: block;
  height: 2px;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--red);
  width: 0;
  animation: rule 1s var(--ease) 1.05s both;
}

@keyframes rule { to { width: clamp(80px, 9vw, 130px); } }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 1.1em, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* scroll cue */
.cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin-left: -2rem;
  color: var(--white);
  animation: rise .9s var(--ease) 1.5s both;
}

.cue__icon {
  width: 2rem;
  animation: bob 2.4s var(--ease) infinite;
  transition: color .3s var(--ease);
}

.cue:hover .cue__icon { color: var(--red); }

@keyframes bob {
  0%, 100% { transform: translateY(-4px); opacity: .55; }
  50%      { transform: translateY(5px);  opacity: 1; }
}

/* -------------------------------------------------------------- focus ---- */

.focus {
  background: var(--white);
  padding: clamp(4.5rem, 11vh, 8rem) 0 clamp(4.5rem, 11vh, 8rem);
}

.kicker {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 6rem;
  background: var(--red);
}

.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

/* Three per row is the ceiling. Left to auto-fit, a fourth column slots in from
   roughly 1440px up – that squeezes the copy and breaks the six boxes into an
   uneven 4 + 2. 60rem is where auto-fit reaches three columns on its own, so the
   cap only ever removes the jump to four. */
@media (min-width: 60rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

/* accent hairline that draws itself in on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--red);
  transition: width .55s var(--ease);
}

.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(11, 11, 12, .2);
  box-shadow: 0 24px 48px -28px rgba(11, 11, 12, .45);
}
.card:hover::before, .card:focus-visible::before { width: 100%; }

.card__title {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.card__text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
}

.card__meta,
.card__link {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
}

/* configuratorware card */
.card--cw {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  justify-content: flex-start;
}
.card--cw::before { background: var(--white); }
.card--cw:hover { border-color: var(--green); box-shadow: 0 24px 48px -28px rgba(69, 192, 138, .8); }

.card--cw .card__text { color: var(--white); }

.card__title--logo { margin: 0; }

.card__logo {
  width: min(100%, 15.5rem);
  height: auto;
  margin-bottom: .4rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  opacity: 1;
}

.card__arrow {
  display: inline-block;
  transition: transform .45s var(--ease);
}
.card--cw:hover .card__arrow { transform: translateX(6px); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ contact ---- */

.contact {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(4.5rem, 11vh, 8rem);
}

.contact__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  align-items: start;
}

.contact__intro .kicker { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.contact__title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.012em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.contact__text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 32rem;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: .95rem;
}

.contact__direct a {
  position: relative;
  width: fit-content;
  transition: color .3s var(--ease);
}
.contact__direct a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.contact__direct a:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- form --- */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 34rem;
  width: 100%;
}

/* Honeypot – bewusst nicht display:none, sonst ueberspringen ihn manche Bots.
   aria-hidden + tabindex halten ihn aus Screenreader und Tab-Reihenfolge. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form__label {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form__input {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form__input:hover { border-color: rgba(11, 11, 12, .24); }

.form__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 41, .12);
}

.form__input--area {
  resize: vertical;
  min-height: 9rem;
}

.form__input:user-invalid { border-color: var(--red); }

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form__consent input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .28rem;
  accent-color: var(--red);
}

.form__consent a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .2em;
  transition: text-decoration-color .3s var(--ease);
}
.form__consent a:hover { text-decoration-color: var(--red); }

.form__submit {
  align-self: flex-start;
  padding: .9rem 1.9rem;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s var(--ease);
}

.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(237, 28, 41, .8);
}

.form__submit[disabled] {
  cursor: progress;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

/* leer bleibt der Absatz unsichtbar, ohne Layout-Sprung beim Befuellen */
.form__status:empty { display: none; }

.form__status {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  padding-left: .9rem;
}

.form__status--ok    { border-left-color: var(--green); color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.form__status--error { border-left-color: var(--red); }

/* ------------------------------------------------------------- footer ---- */

.footer {
  background: var(--ink-graphite);
  color: rgba(255, 255, 255, .62);
  padding: clamp(3rem, 7vh, 5rem) 0 clamp(2.5rem, 5vh, 4rem);
  font-size: .95rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo {
  width: 140px;
  height: auto;
  opacity: .9;
  margin-bottom: 1rem;
}

.footer__address { line-height: 1.55; }

.footer__contact,
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer a {
  position: relative;
  width: fit-content;
  transition: color .3s var(--ease);
}
.footer a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.footer a:hover { color: var(--white); }
.footer a:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------- part of grow --- */

.partof {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 1.75rem 0;
}

.partof__link {
  display: inline-flex;
  opacity: .82;
  transition: opacity .3s var(--ease);
}
.partof__link:hover,
.partof__link:focus-visible { opacity: 1; }

.partof__logo {
  width: 110px;
  height: auto;
}

.sisterof {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 0 0 1.75rem;
}

.sisterof__text {
  font-size: .85rem;
  color: var(--ink-soft);
}

.sisterof__link {
  display: inline-flex;
  opacity: .9;
  transition: opacity .3s var(--ease);
}
.sisterof__link:hover,
.sisterof__link:focus-visible { opacity: 1; }

.sisterof__logo {
  width: 88px;
  height: auto;
}

/* --------------------------------------------------------------- legal --- */

.legal-header {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}

.legal-header__logo img {
  width: clamp(120px, 11vw, 160px);
  height: auto;
  transition: opacity .3s var(--ease);
}
.legal-header__logo:hover img { opacity: .82; }

.legal-header__back {
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  position: relative;
  transition: color .3s var(--ease);
}
.legal-header__back::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.legal-header__back:hover { color: var(--white); }
.legal-header__back:hover::after { transform: scaleX(1); }

.legal {
  background: var(--white);
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(4rem, 10vh, 7rem);
}

.legal__wrap { max-width: 46rem; }

.legal__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.legal__section + .legal__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -.005em;
  margin-bottom: 1.25rem;
}

.legal__section h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin: 1.75rem 0 .75rem;
}

.legal__section p,
.legal__section ul {
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
}

.legal__section p + p,
.legal__section ul + p,
.legal__section p + ul { margin-top: 1rem; }

.legal__section ul { padding-left: 1.2rem; }
.legal__section li + li { margin-top: .3rem; }

.legal__section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .2em;
  word-break: break-word;
  transition: text-decoration-color .3s var(--ease);
}
.legal__section a:hover { text-decoration-color: var(--red); }

.legal__source {
  font-size: .8rem;
  opacity: .7;
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 640px) {
  .hero__content { padding-block: 9rem 8rem; }
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(6, 4, 4, .6) 0%, rgba(6, 4, 4, .35) 35%, rgba(6, 4, 4, .75) 100%);
  }
  .footer__inner { flex-direction: column; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .claim__rule { width: clamp(80px, 9vw, 130px); }
  .reveal { opacity: 1; transform: none; }
}
