/* ══════════════════════════════════════════════════
   dany.studio — lead funnel
   Warm ink · cream · signal orange.
   Voice: Plus Jakarta Sans. Machinery: Space Mono.
   ══════════════════════════════════════════════════ */

:root {
  --ink: #12100b;
  --ink-2: #1c1912;
  --cream: #f0e9db;
  --cream-dim: #7d7668;
  --cream-faint: rgba(240, 233, 219, 0.28);
  --hairline: rgba(240, 233, 219, 0.14);
  --orange: #ff5417;
  --orange-soft: rgba(255, 84, 23, 0.16);
  --serif: "Plus Jakarta Sans", sans-serif;
  --mono: "Space Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* faint warm glow behind the stage */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(90% 65% at 50% 34%, rgba(255, 84, 23, 0.055), transparent 60%),
    radial-gradient(120% 90% at 50% 110%, rgba(240, 233, 219, 0.04), transparent 55%);
  pointer-events: none;
}

::selection { background: var(--orange); color: var(--ink); }

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
[data-hidden] { opacity: 0; visibility: hidden; pointer-events: none; }

.dragon-mark {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: url("../assets/brand/dragon-favicon.png") center / contain no-repeat;
}

/* ═════════ CURSOR ═════════ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  translate: -50% -50%;
  display: none;
}
@media (pointer: fine) {
  body.cursor-active { cursor: none; }
  body.cursor-active a, body.cursor-active button,
  body.cursor-active input, body.cursor-active label { cursor: none; }
  body.cursor-active .cursor-dot,
  body.cursor-active .cursor-ring { display: block; }
  .cursor-dot { width: 7px; height: 7px; background: var(--orange); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(255, 84, 23, 0.55);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s;
  }
  .cursor-ring.is-hover {
    width: 58px; height: 58px;
    background: rgba(255, 84, 23, 0.1);
  }
}

/* ═════════ VIEWPORT EDGE + GRAIN ═════════ */
.edge {
  position: fixed; inset: 11px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  pointer-events: none;
  z-index: 80;
}
.grain {
  position: fixed; inset: -60%;
  width: 220%; height: 220%;
  pointer-events: none;
  z-index: 250;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(9) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2.5%, 2%); }
  50% { transform: translate(2%, -2.5%); }
  75% { transform: translate(-1.5%, -1.5%); }
}

/* entrance choreography — FROM hidden with backwards fill, so natural
   (visible) styles stay in charge afterwards */
.bar, .headline, .lede, .capture, .belt {
  animation: enter 1s var(--ease) backwards;
}
.bar { animation-delay: 0.15s; }
.headline { animation-delay: 0.35s; }
.lede { animation-delay: 0.5s; }
.capture { animation-delay: 0.65s; }
.belt { animation-delay: 0.85s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* ═════════ TOP BAR ═════════ */
.bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 34px;
  flex-shrink: 0;
}
.bar__brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.bar__mark {
  width: 34px;
  height: 34px;
  color: var(--orange);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(255, 84, 23, 0.24));
}
.bar__mark .dragon-mark {
  transition: transform 0.6s var(--spring), color 0.25s;
  transform-origin: center;
}
.bar__brand:hover .bar__mark .dragon-mark { transform: rotate(-8deg) scale(1.08); }
.bar__handle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bar__handle i { font-style: normal; color: var(--cream-dim); font-weight: 400; }

.ticker {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__item {
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-right: 10px;
}
.ticker__item i { font-style: normal; color: var(--orange); padding: 0 6px; }

.bar__nav { display: flex; gap: 24px; flex-shrink: 0; }
.bar__nav a, .bar__nav button {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
.bar__nav a::after, .bar__nav button::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.bar__nav a:hover, .bar__nav button:hover { color: var(--cream); }
.bar__nav a:hover::after, .bar__nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ═════════ CENTER STAGE ═════════ */
.stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 26px);
  padding: 0 5vw;
  min-height: 0;
}

.headline {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.headline__roman {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}
.headline__italic {
  display: block;
  font-style: italic;
  color: var(--orange);
  font-size: clamp(2.1rem, 4.7vw, 3.6rem);
}
.headline.is-dim {
  opacity: 0.16;
  filter: blur(2px);
  transform: scale(0.98);
}

.lede {
  color: var(--cream-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: opacity 0.6s var(--ease);
}
.lede.is-dim { opacity: 0.15; }

/* ═════════ CAPTURE FORM ═════════ */
.capture { width: 100%; max-width: 920px; margin-top: clamp(10px, 2.5vh, 28px); }

.step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3.4vh, 32px);
  text-align: center;
}
.step.is-active { display: flex; animation: step-in 0.7s var(--ease); }
.step.is-leaving { animation: step-out 0.32s var(--ease) forwards; }
@keyframes step-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes step-out {
  to { opacity: 0; filter: blur(10px); transform: translateY(-14px); }
}

/* the giant ghost input */
.giant {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 26px);
  max-width: 100%;
  cursor: text;
}
/* orange underline draws in on focus */
.giant::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -14px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.giant:focus-within::after { transform: scaleX(1); }

.giant__chip {
  width: clamp(38px, 4.6vw, 54px);
  height: clamp(38px, 4.6vw, 54px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  border-radius: 26%;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  rotate: -6deg;
  transition: rotate 0.45s var(--spring), scale 0.45s var(--spring), background-color 0.3s;
}
.giant:focus-within .giant__chip { rotate: 4deg; scale: 1.06; }

.giant input {
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.6vw, 4.4rem);
  letter-spacing: -0.01em;
  caret-color: var(--orange);
  min-width: 0;
  padding: 0;
  text-align: left;
  transition: transform 0.12s var(--spring);
}
.giant input::placeholder { color: var(--cream-faint); opacity: 1; transition: color 0.35s; }
.giant:hover input::placeholder { color: var(--cream-dim); }
.giant input.pop { transform: scale(1.025); }

/* hidden width measurer — mirrors input styles */
.giant__sizer {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.6vw, 4.4rem);
  letter-spacing: -0.01em;
}

/* pills */
.pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--cream-faint);
  border-radius: 100px;
  padding: 13px 26px;
  transition: opacity 0.45s var(--ease), visibility 0.45s, transform 0.45s var(--spring),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}
.pill:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pill:active { transform: scale(0.95); }
.pill[data-hidden] { transform: translateY(10px); }
.pill--accent { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 700; }
.pill--accent:hover { background: var(--cream); border-color: var(--cream); }

.step__hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--orange);
  transition: opacity 0.3s, visibility 0.3s;
  margin-bottom: -8px;
}
.step__back {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s;
}
.step__back:hover { color: var(--cream); }

/* success */
.seal { width: clamp(50px, 6vw, 64px); height: clamp(50px, 6vw, 64px); }
.seal svg { width: 100%; height: 100%; display: block; }
.seal__circle {
  fill: var(--orange);
  transform-origin: center;
  animation: seal-pop 0.55s var(--spring) both;
}
@keyframes seal-pop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
.seal__check {
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: seal-draw 0.45s var(--ease) 0.35s forwards;
}
@keyframes seal-draw { to { stroke-dashoffset: 0; } }

.success-line {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.06;
}
.success-line__roman {
  display: block;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}
.success-line__italic {
  display: block;
  font-style: italic;
  color: var(--orange);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
}
/* letters blur in one by one (spans injected by JS) */
.success-line__italic .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  animation: ch-in 0.7s var(--ease) forwards;
  animation-delay: calc(0.45s + var(--i) * 55ms);
}
@keyframes ch-in { to { opacity: 1; filter: blur(0); } }

.success-sub {
  color: var(--cream-dim);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recap {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  border-top: 1px solid var(--hairline);
}
.recap__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 42px;
  font-size: 0.78rem;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hairline);
}
.recap__row dt {
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.recap__row dd { color: var(--cream); }

/* ═════════ PORTFOLIO FILMSTRIP ═════════ */
.belt {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  height: clamp(170px, 26vh, 250px);
  margin-bottom: clamp(26px, 4.5vh, 44px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.belt.is-dragging { cursor: grabbing; }
.belt.is-gone { opacity: 0; transform: translateY(30px); pointer-events: none; }

.belt__track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 62px);
  width: max-content;
  will-change: transform;
}

.belt__item { flex-shrink: 0; text-decoration: none; }

/* mounted prints — JS assigns --tilt per original card so repeated copies match */
.print {
  display: block;
  background: #efe8d8;
  padding: 6px 6px 0;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.45s var(--spring), translate 0.45s var(--spring), box-shadow 0.45s;
}
.print:hover {
  rotate: 0deg;
  translate: 0 -8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}
.print__frame {
  display: block;
  width: clamp(200px, 22vw, 264px);
  aspect-ratio: 16 / 9.8;
  border-radius: 3px;
  overflow: hidden;
}
/* real site screenshots — fill the frame, top-aligned so the hero shows */
.print__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #efe8d8;
  -webkit-user-drag: none;
  user-select: none;
}
.print__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 3px 7px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #171410;
}
.print__caption span:last-child { color: #a39a86; }

/* spinning dragon separators */
.belt__item--mark {
  width: clamp(36px, 4vw, 54px);
  color: rgba(255, 84, 23, 0.86);
  opacity: 0.9;
}
.mark {
  width: 100%;
  display: block;
  animation: mark-spin var(--spin-duration, 14s) linear infinite;
  animation-direction: var(--spin-direction, normal);
  transform-origin: center;
}
@keyframes mark-spin { to { transform: rotate(360deg); } }

/* ── mini-site mockups (original CSS artwork) ── */
.ms {
  display: flex;
  width: 100%; height: 100%;
  background: #f4efe4;
  color: #17181a;
  flex-direction: column;
  font-size: clamp(7px, 0.8vw, 10px);
  padding: 6% 7%;
  position: relative;
  overflow: hidden;
  text-align: initial;
}
.ms__nav { display: flex; gap: 4px; align-items: center; margin-bottom: 8%; }
.ms__nav i, .ms__nav b, .ms__nav u {
  display: block; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.55;
}
.ms__nav i { width: 14px; }
.ms__nav b { width: 8px; margin-left: auto; }
.ms__nav u { width: 8px; }
.ms__nav--light { color: #fff; }
.ms__body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ms__title {
  display: block;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: 1.25em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 90%;
  position: relative;
  z-index: 1;
}
.ms__title--sm { font-size: 1.05em; }
.ms__title--serif { font-family: var(--serif); font-weight: 700; font-size: 1.6em; line-height: 1.05; }
.ms__title--light { color: #fff; }
.ms__title--ink { color: #1d1c19; }
.ms__reg { font-size: 0.5em; vertical-align: super; }
.ms__btn {
  display: block; width: 26%; height: 7%;
  min-height: 6px;
  border-radius: 20px; margin-top: 6%;
  position: relative;
  z-index: 1;
}
.ms__btn--dark { background: #17181a; }
.ms__btn--light { background: #fff; }
.ms__copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.ms__body--split { flex-direction: row; align-items: center; text-align: left; gap: 6%; }

.ms__globe {
  position: absolute; bottom: -42%; left: 50%; translate: -50% 0;
  width: 56%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e2d3, #b3a88f 60%, #857a63);
  box-shadow: inset -6px -10px 24px rgba(0,0,0,0.25), 0 -2px 14px rgba(0,0,0,0.15);
}

.ms--dark { background: #14120d; color: #f0e9db; }
.ms__photo {
  width: 44%; height: 92%;
  border-radius: 4px;
  background:
    radial-gradient(60% 42% at 50% 30%, #c2a488 0%, #8a7360 42%, transparent 60%),
    linear-gradient(180deg, #2c2921 0%, #464135 55%, #26221a 100%);
}

.ms--photo-bg {
  background:
    radial-gradient(90% 70% at 75% 85%, rgba(255, 132, 23, 0.3), transparent 55%),
    linear-gradient(200deg, #23392f 0%, #14231d 45%, #0b1310 100%);
  color: #ede9da;
}
.ms--photo-bg .ms__body { align-items: flex-start; text-align: left; justify-content: center; }

.ms--navy { background: linear-gradient(185deg, #151322 0%, #1e1a33 60%, #120f1e 100%); color: #f2eefa; }
.ms__house {
  position: absolute; bottom: -12%; left: 50%; translate: -50% 0;
  width: 64%; height: 34%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #3e3852, #262138);
  box-shadow: inset 0 3px 0 #5c5478;
}
.ms__house::before {
  content: ""; position: absolute; inset: 12% 10% auto 10%;
  height: 46%;
  background: repeating-linear-gradient(90deg, #5b5378 0 12%, #332c4d 12% 14%);
  border-radius: 2px;
}

.ms--cream { background: #e9e1cf; color: #1d1c19; }
.ms--cream .ms__body { justify-content: center; }

/* ═════════ ABOUT OVERLAY ═════════ */
.about {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(18, 16, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.about[hidden] { display: none; }
.about__card {
  max-width: 480px;
  margin: 0 6vw;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  animation: step-in 0.6s var(--ease);
}
.about__mark {
  width: clamp(38px, 4vw, 50px);
  color: var(--orange);
  filter: drop-shadow(0 0 18px rgba(255, 84, 23, 0.26));
}
.about__card p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--cream);
}
.about__card em { font-style: italic; color: var(--orange); }

/* ═════════ COOKIE CARD ═════════ */
.cookies {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(340px, calc(100vw - 44px));
  padding: 18px 18px 14px;
  background: #efe8d8;
  color: #171410;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: cookie-in 0.8s var(--ease) 1.6s backwards;
}
.cookies[hidden] { display: none; }
.cookies.is-leaving {
  transition: opacity 0.4s, transform 0.4s var(--ease);
  opacity: 0;
  transform: translateY(16px) rotate(-2deg);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px) rotate(-2deg); }
}
.cookies p { font-size: 0.72rem; line-height: 1.6; }
.cookies b { color: #c8410f; text-transform: uppercase; letter-spacing: 0.08em; }
.cookies a { color: inherit; text-underline-offset: 2px; }
.cookies__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookies__btn {
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--spring), background-color 0.25s, color 0.25s;
}
.cookies__btn:active { transform: scale(0.94); }
.cookies__btn--ghost { border: 1px solid rgba(23, 20, 16, 0.3); color: #171410; }
.cookies__btn--ghost:hover { border-color: #171410; }
.cookies__btn--solid { background: #171410; color: #efe8d8; }
.cookies__btn--solid:hover { background: #c8410f; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 720px) {
  body { overflow-y: auto; }
  .edge { display: none; }
  .bar { gap: 14px; padding: 16px 18px; }
  .ticker { display: none; }
  .bar__brand { margin-right: auto; }
  .bar__nav { gap: 16px; }
  .stage { padding: 0 6vw; }
  .giant::after { bottom: -10px; }
  .cookies { left: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .mark, .grain { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
