/* =========================================================
   Jory&Co — Start a project
   Builds on main.css + news-detail.css (FAQ accordion: .nd-faq / .nd-acc)
   Figma: Design AW (Updated) › Start a Project_A (7183:11447)
   ========================================================= */

.ph { position: relative; padding: 236px 20px 0; }
.ph .hero__bar { position: absolute; }

/* ---------- Line-split reveal: each split line is exactly one line box, so
   the headings never re-wrap while they animate in ---------- */
.sp-title .line, .sp-h2 .line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
.sp-title .line + .line, .sp-h2 .line + .line { margin-top: -.42em; } /* adjoining line margins collapse (-.26 vs -.16): restore the full overlap so a multi-line heading keeps its height */
.sp-title, .sp-h2 { display: flow-root; }
.sp-title .line__inner, .sp-h2 .line__inner { display: block; will-change: transform, opacity; }
html.js .sp-h2 { visibility: hidden; }

/* ---------- Header ---------- */
.sp-head { display: flex; flex-direction: column; align-items: center; gap: 50px; text-align: center; }
.sp-title {
  margin: 0; max-width: 928px;
  font-weight: 600; font-size: clamp(48px, 6.25vw, 90px); line-height: 1.1; letter-spacing: -0.03em;
}
html.js .sp-title { visibility: hidden; }
.sp-intro { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 690px; }
.sp-intro p { margin: 0; font-size: 17px; line-height: 1.4; }
.sp-intro p + p { margin-top: -12px; }   /* 18px paragraph gap inside the 30px stack */
html.js .page-sp [data-fade] { opacity: 0; }

/* ---------- Page column ---------- */
.sp { display: flex; flex-direction: column; align-items: center; }
.sp > .sp-form { margin-top: 100px; width: min(690px, 100%); }
.sp > .sp-always { margin-top: 200px; width: 100%; }
.sp > .sp-faq { margin-top: 200px; width: 100%; }
.sp > .ticker-box--cta { margin-top: 200px; width: 100%; }

/* ---------- Form ---------- */
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-field { position: relative; display: block; min-width: 0; }
.sp-field--full { grid-column: 1 / -1; }
.sp-control {
  display: block; width: 100%; height: 36px; padding: 0 18px; border: 0; border-radius: var(--radius); outline: none;
  background: var(--white-10); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  color: var(--white); font: 12px/1.2 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; text-align: left;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, background-color .3s ease;
}
.sp-control::placeholder { color: var(--white); opacity: 1; }
.sp-control:hover { background: rgba(255,255,255,.14); }
.sp-control:focus, .sp-control:focus-visible, .sp-select.is-open .sp-control { box-shadow: inset 0 0 0 1px var(--new-green); background: rgba(255,255,255,.14); }
.sp-control.is-invalid { box-shadow: inset 0 0 0 1px #ff6b6b; }
textarea.sp-control { height: 186px; padding: 12px 18px; resize: vertical; text-transform: none; line-height: 1.4; }
textarea.sp-control::placeholder { text-transform: uppercase; }
.sp-star { font-size: 7.74px; vertical-align: top; }

/* custom select: the + turns to × as the list opens */
.sp-select__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sp-select__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-select__icon { flex: none; width: 10px; height: 10px; transition: transform .45s var(--ease-out); }
.sp-select.is-open .sp-select__icon { transform: rotate(45deg); }
.sp-select.has-value .sp-select__val { color: var(--new-green); }
.sp-select__list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--radius); background: rgba(30,30,30,.92); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .35s var(--ease-out), visibility .25s;
}
.sp-select.is-open .sp-select__list { opacity: 1; visibility: visible; transform: none; }
.sp-select__list li {
  padding: 11px 12px; border-radius: 4px; cursor: pointer; outline: none;
  font: 12px/1.2 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease;
}
.sp-select__list li:hover, .sp-select__list li:focus { color: var(--new-green); background: var(--white-10); }
.sp-select__list li[aria-selected="true"] { color: var(--new-green); }

.sp-form__foot { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.sp-form__foot .btn-blur { border: 0; cursor: pointer; }
.sp-form__msg { margin: 0; white-space: normal; color: var(--new-green); }
.sp-legal { margin: 30px 0 0; max-width: 447px; white-space: normal; font-size: 9px; line-height: 1.4; letter-spacing: .9px; opacity: .5; }

/* ---------- Section titles ---------- */
.sp-h2 {
  margin: 0 auto; text-align: center; max-width: 936px;
  font-weight: 600; font-size: clamp(44px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em;
}
.sp-copy { margin: 50px auto 0; max-width: 690px; text-align: center; font-size: 18px; line-height: 1.4; }
.sp-copy p { margin: 0; }
.sp-copy p + p { margin-top: 18px; }

/* ---------- Always on: live clocks ---------- */
.sp-clocks { list-style: none; margin: 50px 0 0; padding: 0; display: flex; justify-content: space-between; gap: 20px; }
.sp-clock { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 150px; }
.sp-clock__face { display: block; width: 150px; height: 150px; overflow: visible; }
.sp-clock__face line { stroke-width: 1; stroke-linecap: butt; }
.sp-clock__m { stroke: var(--new-green); }
.sp-clock__h { stroke: var(--white); }
.sp-clock__cc { font-weight: 600; font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; margin-top: -4px; }
.sp-clock__time {
  padding: 5px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  font-size: 12px; line-height: 1.2;
}
.sp-clock__time .colon { animation: sp-blink 2s steps(1) infinite; }
@keyframes sp-blink { 50% { opacity: 0; } }

/* ---------- FAQ ---------- */
.sp-faq .nd-faq { width: min(690px, 100%); margin: 50px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .sp-clocks { flex-wrap: wrap; justify-content: center; gap: 50px 60px; }
}
@media (max-width: 760px) {
  .ph { padding-top: 140px; }
  .sp > .sp-always, .sp > .sp-faq, .sp > .ticker-box--cta { margin-top: 120px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-clocks { gap: 40px 30px; }
  .sp-clock, .sp-clock__face { width: 120px; }
  .sp-clock__face { height: 120px; }
  .nd-acc__head { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-clock__time .colon { animation: none; }
}
