
@font-face {
  font-family: 'WAA Oswald';
  src: url('../assets/global/fonts/Oswald-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: block;
}

.ct-stage {
  --ct-stage-bg: #000000;
  --ct-word-color: #222222;
  --ct-word-bottom: 30px;
  --ct-word-top: 14px;
  --ct-ink: #0a0a0a;
  --ct-muted: #7a7a7a;
  --ct-line: #d9d9d9;
  --ct-orange: #ff5031;
  --ct-teal: #2e827f;
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--page-gutter) calc(var(--ct-word-bottom) + 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ct-stage-bg);
  transition: background-color 0.4s ease;
}
:root[data-theme='light'] .ct-stage {
  --ct-stage-bg: #ffffff;
  --ct-word-color: #ebebeb;
}

.ct-word-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ct-word {
  position: absolute;
  left: 50%;
  bottom: var(--ct-word-bottom);
  margin: 0;
  font-family: 'WAA Oswald', 'Oswald', Impact, sans-serif;
  font-weight: 500;
  font-size: 950px;
  line-height: 0.81;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ct-word-color);
  transform-origin: 50% 100%;
  transform: translate(-50%, var(--ct-dy, -0.047em)) scaleX(var(--ct-sx, 0.34));
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.6s ease, color 0.4s ease;
}
.ct-word.is-ready { opacity: 1; }
.ct-word__probe {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.ct-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  min-height: min(clamp(520px, 60svh, 660px), calc(100svh - var(--header-h) - 110px));
  background: #ffffff;
  color: var(--ct-ink);
  letter-spacing: 0;
  overflow: hidden;
  animation: ct-window-in 0.9s var(--ct-ease) both;
}
:root[data-theme='light'] .ct-window {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
@keyframes ct-window-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.ct-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px 14px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ct-window__to { color: var(--ct-muted); font-weight: 500; }
.ct-window__mail {
  color: var(--ct-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ct-window__mail:hover { color: var(--ct-orange); }

.ct-window__grad {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #ff5031 50%, #2e827f 100%);
  pointer-events: none;
}

.ct-form {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ct-step {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 44px 40px 40px;
}
.ct-step.is-active {
  display: flex;
  animation: ct-step-in 0.45s var(--ct-ease) both;
}
.ct-step.is-leaving {
  animation: ct-step-out 0.18s ease both;
  pointer-events: none;
}
@keyframes ct-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ct-step-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-8px); }
}

.ct-title {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ct-ink);
}
.ct-step__title {
  margin: 0 0 clamp(18px, 2vw, 24px);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ct-ink);
}

.ct-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(26px, 2.9vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ct-ink);
  cursor: pointer;
  align-self: flex-start;
}
.ct-intro__circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  height: 0.95em;
  border: 1.5px solid var(--ct-ink);
  border-radius: 50%;
  color: var(--ct-ink);
  overflow: hidden;
  isolation: isolate;
}
.ct-intro__circle::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  height: 60%;
  aspect-ratio: 1;
  background: var(--ct-ink);
  border-radius: 46% 54% 59% 41% / 59% 41% 54% 46%;
  transform: translateX(-50%) scale(0);
  transform-origin: 50% 100%;
  transition: transform 0.62s var(--ct-ease), border-radius 0.62s var(--ct-ease);
  will-change: transform;
  pointer-events: none;
}
.ct-intro__cta:hover .ct-intro__circle::before,
.ct-intro__cta:focus-visible .ct-intro__circle::before {
  transform: translateX(-50%) scale(9, 5);
  border-radius: 50%;
}
.ct-intro__circle svg {
  position: relative;
  z-index: 1;
  width: 48%;
  height: 48%;
  transition: transform 0.22s var(--ct-ease), color 0.4s var(--ct-ease) 0.08s;
}
.ct-intro__cta:hover .ct-intro__circle svg,
.ct-intro__cta:focus-visible .ct-intro__circle svg { color: #ffffff; }
.ct-intro__cta:hover .ct-intro__circle svg { transform: translateX(3px); }
.ct-intro__cta:focus-visible { outline: 2px solid var(--ct-ink); outline-offset: 6px; }

.ct-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.ct-summary__text {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ct-muted);
  overflow-wrap: anywhere;
}
.ct-summary__name { color: var(--ct-ink); font-weight: 600; }
.ct-summary__sep { margin: 0 9px; color: #bdbdbd; }
.ct-summary__company-wrap[hidden] { display: none; }

.ct-field { margin-bottom: clamp(18px, 2vw, 22px); }
.ct-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-muted);
  transition: color 0.2s ease;
}
.ct-field__opt {
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.ct-field__input {
  display: block;
  width: 100%;
  padding: 6px 0 10px;
  font: inherit;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.3;
  color: var(--ct-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ct-line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.ct-field__input::placeholder { color: #b3b3b3; opacity: 1; }
.ct-field__input:focus { border-bottom-color: var(--ct-ink); }
.ct-field:focus-within .ct-field__label { color: var(--ct-ink); }
.ct-field__textarea {
  resize: none;
  min-height: 150px;
  line-height: 1.4;
  overscroll-behavior: contain;
}
.ct-field__textarea::-webkit-scrollbar { width: 6px; }
.ct-field__textarea::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
.ct-field__textarea { scrollbar-width: thin; scrollbar-color: #d0d0d0 transparent; }

.ct-field.has-error .ct-field__input { border-bottom-color: var(--ct-orange); }
.ct-field.has-error .ct-field__label { color: var(--ct-orange); }
.ct-field__msg,
.ct-form__error {
  display: none;
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ct-orange);
}
.ct-field.has-error .ct-field__msg { display: block; }
.ct-form__error.is-visible { display: block; margin-top: 2px; }
.ct-form__error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.ct-step__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
}
.ct-step__actions--split { justify-content: space-between; }

.ct-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid #000000;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ct-btn::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  height: 60%;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 46% 54% 59% 41% / 59% 41% 54% 46%;
  transform: translateX(-50%) scale(0);
  transform-origin: 50% 100%;
  transition: transform 0.62s var(--ct-ease), border-radius 0.62s var(--ct-ease);
  will-change: transform;
  pointer-events: none;
}
.ct-btn:hover::before,
.ct-btn:focus-visible::before {
  transform: translateX(-50%) scale(9, 5);
  border-radius: 50%;
}
.ct-btn__label,
.ct-btn__arrow {
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ct-ease) 0.08s;
}
.ct-btn:hover .ct-btn__label,
.ct-btn:hover .ct-btn__arrow,
.ct-btn:focus-visible .ct-btn__label,
.ct-btn:focus-visible .ct-btn__arrow { color: #000000; }
.ct-btn:focus-visible { outline: 2px solid var(--ct-ink); outline-offset: 3px; }
.ct-btn__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s var(--ct-ease), color 0.4s var(--ct-ease) 0.08s;
}
.ct-btn:hover .ct-btn__arrow { transform: translateX(4px); }
.ct-btn:hover .ct-btn__arrow--diag { transform: translate(3px, -3px); }
.ct-btn.is-sending,
.ct-btn.is-sending:hover { background: var(--ct-teal); border-color: var(--ct-teal); color: #ffffff; pointer-events: none; }
.ct-btn.is-sending::before { display: none; }
.ct-btn.is-sending .ct-btn__label,
.ct-btn.is-sending .ct-btn__arrow { color: #ffffff; }
.ct-btn.is-sending .ct-btn__arrow { transform: none; opacity: 0.6; }

.ct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-ink);
  cursor: pointer;
  transition: color 0.2s ease;
}
.ct-link:hover { color: var(--ct-orange); }
.ct-link--edit { flex-shrink: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ct-link__arrow { width: 14px; height: 14px; transition: transform 0.22s var(--ct-ease); }
.ct-link--back:hover .ct-link__arrow { transform: translateX(-4px); }

.ct-done__sub {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ct-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ct-window, .ct-step.is-active { animation: none; }
  .ct-step.is-leaving { animation: none; }
  .ct-word { transition: none; }
  .ct-btn__arrow, .ct-link__arrow, .ct-intro__circle svg { transition: none; }
  .ct-btn::before, .ct-intro__circle::before { display: none; }
  .ct-btn:hover { background: #ffffff; }
  .ct-intro__cta:hover .ct-intro__circle { background: var(--ct-ink); }
}

@media (max-width: 640px) {
  .ct-stage { padding-top: calc(var(--header-h) + 16px); padding-bottom: calc(var(--ct-word-bottom) + 16px); }
  .ct-window {
    min-height: min(calc(100vw - 2 * var(--page-gutter)), calc(100svh - var(--header-h) - 90px));
  }
  .ct-window__bar { padding: 13px 22px 12px; letter-spacing: 0.12em; }
  .ct-step { padding: 28px 22px 24px; }
  .ct-title { font-size: clamp(30px, 9vw, 40px); }
  .ct-step__title { font-size: clamp(26px, 7.5vw, 32px); }
  .ct-intro__cta { font-size: clamp(22px, 6.5vw, 30px); }
  .ct-field__input { font-size: 17px; }
  .ct-field__textarea { min-height: 120px; }
  .ct-summary { flex-direction: column; gap: 10px; align-items: flex-start; }
  .ct-summary__text { font-size: 14px; }
  .ct-btn { height: 44px; padding: 0 20px; font-size: 11px; }
  .ct-step__actions { gap: 14px; flex-wrap: wrap; }
}
