/* ==========================================================================
   AscendedOps — Main stylesheet
   Loads after tokens.css. Zero raw hex values.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

@media (min-width: 768px) {
  body { font-size: var(--text-md); }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--text-inverse); }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.05;
}
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.1;
}
@media (min-width: 768px) {
  h2 { font-size: 48px; }
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

p { color: var(--text-secondary); }

p.lead {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 58ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--container-pad-lg); }
}

.container--narrow { max-width: var(--container-narrow); }

section {
  padding-block: var(--space-9);
  border-top: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  section { padding-block: var(--space-10); }
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  max-width: 680px;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--rule-heavy);
}
.btn--secondary:hover {
  border-color: var(--text-secondary);
  background: var(--bg-1);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: 0;
}
.btn--ghost:hover { color: var(--text-primary); }

.btn__arrow { transition: transform var(--duration-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg-0) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand__ops { color: var(--accent); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--duration-base) var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }

.nav__cta { display: none; }
@media (min-width: 900px) {
  .nav__cta { display: inline-flex; padding: 10px 16px; min-height: 40px; font-size: var(--text-sm); }
}

.nav__burger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
@media (min-width: 900px) { .nav__burger { display: none; } }

.nav__burger-bars {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}
.nav__burger-bars::before,
.nav__burger-bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out),
              top var(--duration-base) var(--ease-out),
              bottom var(--duration-base) var(--ease-out);
}
.nav__burger-bars::before { top: 0; }
.nav__burger-bars::after  { bottom: 0; }
.nav--open .nav__burger-bars::before { top: 6px; transform: rotate(45deg); }
.nav--open .nav__burger-bars::after  { bottom: 6px; transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg-0);
  border-top: 1px solid var(--rule);
  padding: var(--space-6) var(--container-pad);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  z-index: calc(var(--z-nav) - 1);
}
.nav--open .nav__drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.nav__drawer-link {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-block: var(--space-9) var(--space-10);
  border-top: none;
  position: relative;
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-10) var(--space-11); }
}

.hero__eyebrow { margin-bottom: var(--space-5); }

.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.hero__meta-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

/* --- Problem -------------------------------------------------------------- */
.problem__grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .problem__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

.problem__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-heavy);
}
.problem__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: var(--track-wide);
}
.problem__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.problem__body { font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* --- What you get --------------------------------------------------------- */
.deliverables {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.deliverables__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 900px) {
  .deliverables__item { grid-template-columns: 80px 1fr 1fr; gap: var(--space-7); }
}
.deliverables__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: var(--track-wide);
  padding-top: 4px;
}
.deliverables__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  line-height: var(--leading-snug);
  color: var(--text-primary);
}
.deliverables__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  grid-column: 1 / -1;  /* span number+title cols on mobile */
}
@media (min-width: 900px) {
  .deliverables__body { grid-column: auto; }
}

/* --- Work ----------------------------------------------------------------- */
.work__grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
}

.work__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.work__card:hover {
  border-color: var(--rule-heavy);
  background: var(--bg-2);
}
.work__shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg-0)),
    repeating-linear-gradient(
      -45deg,
      transparent 0 8px,
      color-mix(in srgb, var(--rule) 70%, transparent) 8px 9px
    );
  background-blend-mode: multiply;
  border: 1px solid var(--rule);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work__shot::after {
  content: 'SCREENSHOT PENDING';
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--text-muted);
  background: var(--bg-0);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
}
.work__shot:has(img)::after { display: none; }
.work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--duration-slow) var(--ease-out);
  position: relative;
  z-index: 1;
}
.work__card:hover .work__shot img { transform: scale(1.02); }

.work__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.work__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.work__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.work__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--rule-heavy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
  white-space: nowrap;
}
.work__link:hover { border-color: var(--accent); color: var(--accent-soft); }

/* --- Process -------------------------------------------------------------- */
.process__steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.process__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .process__step {
    display: grid;
    grid-template-columns: 96px 180px 1fr;
    column-gap: var(--space-7);
    row-gap: var(--space-2);
    padding-block: var(--space-7);
    align-items: baseline;
  }
}
.process__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.process__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .process__name { grid-column: auto; font-size: var(--text-lg); }
}
.process__body {
  grid-column: 1 / -1;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}
@media (min-width: 900px) {
  .process__body { grid-column: 3 / 4; }
}

/* --- Guarantee ------------------------------------------------------------ */
.guarantee {
  position: relative;
}
.guarantee__inner {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .guarantee__inner { grid-template-columns: minmax(260px, 1fr) 2fr; gap: var(--space-10); }
}

.guarantee__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--tile-red);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.guarantee__label-dot {
  width: 6px; height: 6px;
  background: var(--tile-red);
  border-radius: 999px;
}
.guarantee__title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: var(--space-4);
}

.guarantee__clauses {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.guarantee__clause {
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule-heavy);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
}
.guarantee__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--tile-red);
  letter-spacing: var(--track-wide);
}
.guarantee__clause-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.guarantee__clause-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* --- FAQ ------------------------------------------------------------------ */
.faq__list {
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-heading);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  text-align: left;
  transition: color var(--duration-base) var(--ease-out);
}
@media (min-width: 768px) {
  .faq__question { font-size: var(--text-lg); padding-block: var(--space-6); }
}
.faq__question:hover { color: var(--accent-soft); }
.faq__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__icon { color: var(--accent); }

.faq__answer {
  padding-bottom: var(--space-5);
  max-width: 72ch;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
@media (min-width: 768px) { .faq__answer { padding-bottom: var(--space-6); } }

/* Hide native details marker */
.faq__item summary { list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }

/* --- Final CTA ------------------------------------------------------------ */
.cta {
  background: var(--bg-1);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta__inner {
  display: grid;
  gap: var(--space-7);
  align-items: end;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.cta__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
@media (min-width: 900px) {
  .cta__actions { align-items: flex-end; }
}
.cta__note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.footer__inner {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-7);
  }
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer__contact a {
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-out);
}
.footer__contact a:hover { color: var(--text-primary); }
.footer__legal {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

/* --- Sticky mobile CTA ---------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-sticky);
  display: block;
}
.sticky-cta .btn {
  width: 100%;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* Reserve space under sticky CTA on mobile so footer doesn't hide behind it. */
@media (max-width: 899px) {
  body { padding-bottom: 88px; }
}

/* --- Utilities ------------------------------------------------------------ */
.accent { color: var(--accent); }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } }

/* Subtle reveal on hero only, respecting reduced motion token. */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal-up var(--duration-slow) var(--ease-out) forwards;
}
.reveal--delay-1 { animation-delay: 60ms; }
.reveal--delay-2 { animation-delay: 120ms; }
.reveal--delay-3 { animation-delay: 180ms; }
.reveal--delay-4 { animation-delay: 240ms; }
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}
