/* Eternus job application — standalone skin.
   Same tokens as sites/eternus (from the app's design tokens), inlined on
   purpose: no build step, nothing to install. */

:root {
  --bg: #080c14;
  --bg-deep: #05080e;
  --surface: #0f141d;
  --raised: #161c27;
  --line: #1b2230;
  --line-strong: #283141;
  --text: #f3eeeb;
  --muted: #a39b97;
  --faint: #8b919d;
  --gold: #c2a984;
  --gold-light: #e2d3b2;
  --gold-deep: #8d7553;
  --on-gold: #080c14;
  --danger: #d0907f;
  --ok: #93b89e;
  --note: #8aa6cc;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-light);
}

button {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ── Shell: photo background, HUD, viewer, timeline ──────────────── */
.suite {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: clip;
  background: var(--bg);
}

.photo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/hero.jpg') center 80% / cover no-repeat;
  background-image: image-set(url('assets/hero.webp') type('image/webp'), url('assets/hero.jpg') type('image/jpeg'));
  filter: brightness(0.3) saturate(0.6);
}

.photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 12 20 / 0.92) 0%, rgb(8 12 20 / 0.55) 60%, rgb(8 12 20 / 0.3) 100%);
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  padding: 5px;
  background: var(--bg-deep);
}

.brand b {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.36em;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text);
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4574a;
  box-shadow: 0 0 12px #d4574a;
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.tc {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--gold-light);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgb(5 8 14 / 0.6);
}

.lang-toggle {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgb(5 8 14 / 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--gold);
}

.viewer {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-block: 12px 28px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.screen {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* No clip-path here: it crops the question number and italic glyphs. */
.screen.cut {
  animation: cut 520ms var(--ease) backwards;
}

.screen.cut-back {
  animation: cutback 520ms var(--ease) backwards;
}

@keyframes cut {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}

@keyframes cutback {
  from {
    transform: translateX(-32px);
    opacity: 0;
  }
}

.ghost-num {
  position: absolute;
  right: -10px;
  top: -78px;
  z-index: -1;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 200px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgb(226 211 178 / 0.34), rgb(194 169 132 / 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slate {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 0.14em;
  background: rgb(5 8 14 / 0.6);
}

.pill--gold {
  color: var(--gold-light);
  border-color: rgb(194 169 132 / 0.55);
}

.q-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.q-title em,
.big em,
.welcome h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.q-help {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
}

.answer {
  margin-top: 32px;
  display: grid;
  gap: 10px;
}

.answer--grid {
  grid-template-columns: 1fr 1fr;
}

.field-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The negative margin gives italic glyphs room: an input clips at its own box. */
.line-input {
  width: calc(100% + 8px);
  margin-left: -8px;
  padding: 10px 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  transition: border-color 200ms ease;
}

.line-input::placeholder {
  color: #545b66;
  font-style: italic;
}

.line-input:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.line-input {
  font-size: 26px;
  line-height: 1.35;
  min-height: 150px;
  resize: vertical;
}

.phone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}

.phone .line-input--code {
  font-family: var(--font-mono);
  font-size: 26px;
}

.char {
  justify-self: end;
  font-size: 13px;
  color: var(--muted);
}

.opt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(15 20 29 / 0.78);
  font-size: 17px;
  font-weight: 400;
  transition: border-color 220ms ease, transform 220ms var(--ease);
}

.opt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(194 169 132 / 0.22), rgb(194 169 132 / 0.08));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.opt:hover {
  border-color: rgb(194 169 132 / 0.55);
  transform: translateX(4px);
}

.opt[aria-checked='true'] {
  border-color: var(--gold);
}

.opt[aria-checked='true']::before {
  transform: scaleX(1);
}

.key {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: all 220ms ease;
}

.opt[aria-checked='true'] .key {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.opt .sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

.opt .tag {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
}

.check {
  margin-left: auto;
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 260ms var(--ease);
  color: var(--gold-light);
}

.opt[aria-checked='true'] .check {
  opacity: 1;
  transform: none;
}

.error {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 15px;
}

.shake {
  animation: shake 360ms ease;
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.hint {
  margin: 2px 0 0;
  color: var(--ok);
  font-size: 14px;
}

.hint .mono {
  color: var(--gold-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms ease;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

.btn .arrow {
  transition: transform 260ms var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: rgb(5 8 14 / 0.5);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--raised);
}

.btn--wa {
  background: #25a35a;
  border-color: #25a35a;
  color: #fff;
}

.btn--wa:hover {
  background: #2fbd6a;
}

.kbd-hint {
  font-size: 14px;
  color: var(--muted);
}

kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--muted);
}

.notice {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgb(205 178 122 / 0.45);
  border-radius: 10px;
  background: rgb(205 178 122 / 0.1);
  color: #cdb27a;
  font-size: 14px;
}

.notice--danger {
  border-color: rgb(208 144 127 / 0.5);
  background: rgb(208 144 127 / 0.1);
  color: var(--danger);
}

/* Timeline: one clip per question on a V1 track, a playhead at the current one. */
.timeline {
  border-top: 1px solid var(--line);
  background: rgb(5 8 14 / 0.82);
  padding-block: 12px 16px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-body {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: end;
}

.track-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 12px;
}

.tl-area {
  position: relative;
}

.ruler {
  position: relative;
  height: 20px;
  margin-bottom: 4px;
}

.ruler span {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.ruler span:first-child {
  transform: translateX(8px);
}

.ruler span:last-child {
  transform: translateX(-100%);
}

.track {
  display: flex;
  gap: 3px;
  height: 40px;
}

.clip {
  position: relative;
  min-width: 0;
  height: 100%;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  cursor: default;
  padding: 0 7px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.clip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip--done {
  cursor: pointer;
  background: linear-gradient(180deg, #b39a74, #8d7553);
  border-color: #c9b18c;
  color: #1a140c;
  font-weight: 500;
}

.clip--done:hover {
  filter: brightness(1.12);
}

.clip--done::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 7px;
  opacity: 0.35;
  background: repeating-linear-gradient(90deg, #1a140c 0 1px, transparent 1px 4px);
}

.clip--now {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgb(194 169 132 / 0.12);
}

.playhead {
  position: absolute;
  top: 0;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: #e8503f;
  box-shadow: 0 0 10px rgb(232 80 63 / 0.6);
  transition: left 600ms var(--ease);
  pointer-events: none;
}

.playhead::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -5px;
  border: 6px solid transparent;
  border-top: 8px solid #e8503f;
}

/* ── Welcome ─────────────────────────────────────────────────────── */
.welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
}

.welcome__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/hero.jpg') center 85% / cover no-repeat;
  background-image: image-set(url('assets/hero.webp') type('image/webp'), url('assets/hero.jpg') type('image/jpeg'));
  animation: kenburns 24s ease-out both;
}

@keyframes kenburns {
  from {
    transform: scale(1.14);
  }
}

.welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(5 8 14 / 0.35) 0%, rgb(5 8 14 / 0.6) 38%, rgb(5 8 14 / 0.96) 75%);
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 9vh;
  background: #000;
  z-index: 2;
  animation: bars 1200ms var(--ease) 200ms both;
}

.letterbox--top {
  top: 0;
  transform-origin: top;
}

.letterbox--bottom {
  bottom: 0;
  transform-origin: bottom;
}

@keyframes bars {
  from {
    transform: scaleY(0);
  }
}

.welcome .hud {
  position: absolute;
  top: 9vh;
  left: 0;
  right: 0;
  z-index: 3;
}

.welcome .slate {
  color: var(--text);
}

.welcome .pill {
  background: rgb(5 8 14 / 0.7);
  border-color: rgb(243 238 235 / 0.35);
  color: var(--text);
}

.welcome .pill--gold {
  border-color: var(--gold);
  color: var(--gold-light);
}

.welcome__copy {
  position: relative;
  z-index: 3;
  padding-block: 0 calc(9vh + 36px);
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  max-width: 1100px;
}

.welcome h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.welcome h1 .w {
  display: inline-block;
  animation: rise 900ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
}

.welcome .lede {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--muted);
  animation: rise 900ms var(--ease) 700ms both;
}

.welcome .nav {
  margin-top: 30px;
  animation: rise 900ms var(--ease) 900ms both;
}

.welcome__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  animation: rise 900ms var(--ease) 1100ms both;
}

/* ── Received + WhatsApp pages ───────────────────────────────────── */
.big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede-plain {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: 18px;
  color: var(--muted);
}

.fine {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(15 20 29 / 0.7);
  font-size: 14px;
  color: var(--muted);
}

.steps li b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.steps .is-done {
  color: var(--ok);
}

.steps .is-now {
  border-color: var(--gold);
  color: var(--text);
}

.steps .is-now b {
  color: var(--gold-light);
}

.wa-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.phone-mock {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 36px;
  padding: 12px;
  background: #11151c;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
}

.phone-mock__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0b141a;
}

.wa-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #1f2c34;
  font-size: 14px;
  color: #e9edef;
}

.wa-top i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 600;
  color: var(--on-gold);
}

.wa-top small {
  display: block;
  color: #8696a0;
  font-size: 12px;
}

.wa-chat {
  min-height: 240px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 30% 20%, #102028, #0b141a);
}

.bubble {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 10px 6px;
  border-radius: 10px 10px 2px 10px;
  background: #005c4b;
  color: #e9edef;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .hud {
    padding-block: 14px;
  }

  .hud-right .rec,
  .brand b {
    display: none;
  }

  .ghost-num {
    display: none;
  }

  .q-title {
    font-size: 32px;
  }

  .line-input {
    font-size: 26px;
  }

  textarea.line-input {
    font-size: 20px;
  }

  .answer--grid {
    grid-template-columns: 1fr;
  }

  .opt {
    font-size: 16px;
    padding: 14px;
  }

  .btn {
    letter-spacing: 0.1em;
    padding: 0 20px;
  }

  .btn--wa {
    width: 100%;
    justify-content: center;
  }

  .timeline {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-block: 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .clip span,
  .ruler,
  .track-label {
    display: none;
  }

  .track {
    height: 28px;
    gap: 2px;
  }

  .tl-body {
    grid-template-columns: 1fr;
  }

  .steps,
  .wa-layout {
    grid-template-columns: 1fr;
  }

  .welcome .lede {
    font-size: 21px;
  }

  .letterbox {
    height: 5vh;
  }

  .welcome .hud {
    top: 5vh;
  }

  .welcome__copy {
    padding-bottom: calc(5vh + 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
