/* ==========================================================================
   SITEKICKSTUDIO — Layout (section structure)
   ========================================================================== */

/* ---- Header / Nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--sp-3);
  transition: padding var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* The background/blur lives on a pseudo-element: if backdrop-filter were
   applied directly to .nav, it would create a new containing block for its
   position:fixed descendant (.nav__links on mobile), shrinking the menu
   overlay to the bar's height instead of the full screen. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background var(--dur-med) var(--ease-out);
}

.nav.is-scrolled {
  padding-block: 14px;
  border-bottom-color: var(--border);
}

.nav.is-scrolled::before {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-inline: auto;
}

.nav__toggle {
  display: none;
  position: relative;
  z-index: 95;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: var(--sp-7) var(--sp-6);
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

/* The copy keeps to the left ~half; the wall of pages owns the right */
.hero__inner > * {
  max-width: 620px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

/* Proof strip under the CTAs: the three facts that answer
   "how much, how long, what's the first step" before anyone scrolls. */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--sp-3);
  font-size: var(--fs-small);
  color: rgba(245, 243, 239, 0.74);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__proof svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--sk-ember);
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { justify-content: center; }
  .hero__proof { flex-direction: column; }
}

/* Below 1024px the copy goes full width at the top and the wall
   sits underneath it, at the bottom of the hero */
@media (max-width: 1023px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--sp-7) + 40px);
    padding-bottom: 46svh;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: calc(var(--sp-7) + 24px);
    padding-bottom: 300px;
  }
}

/* ---- Marquee band ---- */
.marquee-section {
  position: relative;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border);
}

.marquee-section__label {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
  font-weight: var(--fw-strong);
  font-feature-settings: "case";
}

/* ---- Section head (shared) ---- */
.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-6);
}

.section-head h2,
.pricing__copy h2 {
  font-size: var(--fs-h2);
  margin-top: var(--sp-2);
}

.lead {
  font-size: var(--fs-lead);
  margin-top: var(--sp-3);
  max-width: 56ch;
}

.hero__headline {
  font-size: clamp(2.5rem, 1.3rem + 2.9vw, 4.25rem);
  letter-spacing: var(--tr-display);
  line-height: 1.04;
  text-wrap: balance;
}

.hero__lead {
  font-size: var(--fs-lead);
  max-width: 46ch;
  color: var(--text-dim);
}

.contact__headline {
  font-size: var(--fs-h1);
}

section {
  position: relative;
  padding-block: var(--sp-8);
}

/* ---- Paths (how we work: two options of equal weight) ----
   No card containers: two open columns separated by space. Each column
   spans the same six rows of the parent grid via subgrid (visual · intro ·
   three facts · CTA), so the facts line up across both options. */
.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-6);
}

.pcard {
  grid-row: span 6;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.pcard__facts {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.paths__help {
  margin-top: var(--sp-6);
  text-align: center;
  color: var(--text-dim);
}

.paths__help a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--sk-ember);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}

.paths__help a:hover { color: var(--sk-ember-hover); }

/* ---- Why / bento ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.bento__card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--sp-6);
}

.bento__copy { display: flex; flex-direction: column; gap: 10px; }

.bento__card h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.bento__card .bento__copy p { max-width: 46ch; }

/* The card's visual sits at the bottom so both half cards end aligned */
.bento__card > .disciplines,
.bento__card > .kpis { margin-top: auto; }

/* ---- Services (featured rows: real copy + video) ---- */
.svc-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}

.svc-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.svc-feature--reverse .svc-feature__copy { order: 2; }
.svc-feature--reverse .svc-feature__frame { order: 1; }

.svc-feature__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.svc-feature__frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Every service video is exactly 16:9 (1920x1080) —
   the container matches it so not a single frame gets cropped. */
.svc-feature__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

/* ---- Suite demo ----
   A plain list of services (one thin rail, the active one marked in
   ember) next to a stage that reads top-down: title, description, video. */
.suite-demo {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.suite-demo__tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-hover);
}

.suite-demo__stage {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.suite-demo__frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  background: var(--bg-card);
  overflow: hidden;
}

.suite-demo__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

/* ---- Process: the whole project on a seven-week timeline ----
   Copy column + a 7-column track. The list and each row adopt the
   parent's two columns with subgrid, so every bar shares one week scale. */
.timeline {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.7fr);
  column-gap: var(--sp-5);
}

.timeline__axis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-bottom: 12px;
}

.timeline__list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  list-style: none;
  border-top: 1px solid var(--border);
}

.timeline__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.timeline__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding-block: 20px;
}

.timeline__track {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
}

/* ---- Pricing ---- */
.pricing__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-7);
  align-items: center;
}

.pricing__includes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.pricing__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pricing__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  overflow: hidden;
}

.pricing__alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing__alt-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 480px) {
  .pricing__card { padding: var(--sp-4) var(--sp-3); }
  .pricing__alt { flex-direction: column; align-items: flex-start; padding: var(--sp-3); }
}

.pricing__cta { margin-top: var(--sp-3); width: 100%; justify-content: center; }

/* ---- FAQ ----
   Native accordion (<details>) so the answers are always in the
   HTML: readable by search engines and AI agents even when collapsed. */
.faq {
  border-top: 1px solid var(--border);
}

.faq__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-7);
  align-items: start;
}

.faq__head { margin-bottom: 0; }

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-title);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-label);
  font-size: 1.4rem;
  color: var(--text-faint);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.faq__item summary:hover,
.faq__item[open] summary { color: var(--text); }
.faq__item summary:hover::after { color: var(--sk-ember); }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--sk-ember); }

.faq__item summary:focus-visible {
  outline: 2px solid var(--sk-ember);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq__item p {
  color: var(--text-dim);
  max-width: 62ch;
  padding-bottom: var(--sp-3);
}

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq__list { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      height: 0;
      overflow: clip;
      transition: height var(--dur-med) var(--ease-out),
                  content-visibility var(--dur-med) allow-discrete;
    }
    .faq__item[open]::details-content { height: auto; }
  }
}

/* ---- Contact ----
   Left: what happens after you write. Right: the form panel, which
   swaps to a confirmation once the message is sent. */
.contact {
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas:
    "intro panel"
    "aside panel";
  grid-template-rows: auto 1fr;
  column-gap: var(--sp-6);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__intro { grid-area: intro; }
.contact__aside { grid-area: aside; }
.contact__panel { grid-area: panel; }

.contact__sub {
  font-size: var(--fs-lead);
  margin-top: var(--sp-2);
  max-width: 40ch;
}

.contact__next {
  counter-reset: next;
  margin-top: var(--sp-2);
  list-style: none;
}

.contact__fine {
  font-size: var(--fs-small);
  margin-top: var(--sp-5);
}

.contact__panel {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* The attribute must win over the display values above */
.contact__form[hidden],
.contact__success[hidden] { display: none; }

.contact__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--sp-2);
}

.contact__submit {
  justify-content: center;
  margin-top: 4px;
}

/* ---- Footer ----
   Same language as the CoffeeCup footer: a warm, slightly lifted surface
   with a faint grain, brand column + link columns, bottom bar, and the
   wordmark as a decorative sign-off. */
.footer {
  position: relative;
  overflow: hidden;
  background: #13110f;
  border-top: 1px solid var(--border);
}

/* Film grain, as on coffeecup.com */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.footer > * { position: relative; z-index: 1; }

.footer__body { padding-block: 88px 72px; }

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 64px clamp(48px, 6vw, 112px);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 24px 32px;
}

.footer__bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "copy legal top";
  align-items: center;
  gap: 8px 32px;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__copy { grid-area: copy; }
.footer__legal { grid-area: legal; justify-self: end; }
.footer__top { grid-area: top; }

.footer__mark {
  --mx: 50%;
  --my: 50%;
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 8px var(--edge) 0;
  overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .paths__grid { grid-template-columns: 1fr; row-gap: var(--sp-6); }
  .pcard,
  .pcard__facts { grid-row: auto; grid-template-rows: none; }

  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-template-columns: 1fr; gap: var(--sp-4); }

  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature--reverse .svc-feature__copy,
  .svc-feature--reverse .svc-feature__frame { order: initial; }
  .suite-demo { grid-template-columns: 1fr; gap: var(--sp-4); }
  .pricing__inner { grid-template-columns: 1fr; }
  .faq__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .contact__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "panel" "aside";
    grid-template-rows: none;
    row-gap: var(--sp-4);
  }
  .contact__field-row { grid-template-columns: 1fr; }
}

/* Narrow screens: copy above each bar, one shared week axis on top */
@media (max-width: 720px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline__axis { grid-column: 1; }
  .timeline__list,
  .timeline__row { grid-template-columns: minmax(0, 1fr); }
  .timeline__copy { padding-block: 18px 12px; }
  .timeline__track { height: 14px; margin-bottom: 18px; }
}

/* Menu collapses as soon as the five links stop fitting on one line */
@media (max-width: 960px) {
  /* 44×44 touch target (the icon itself stays 22px). */
  .nav__toggle {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -11px;
  }
  .nav__inner > .nav__cta { margin-left: auto; }
  .nav__inner { gap: 12px; }
}

@media (max-width: 640px) {
}
