/* Ascent Management Services LLC
   Palette: limestone haze ground, glacier ink text, one cobalt accent.
   Sharp corners, hairline rules. */

:root {
  --limestone: #eef1f5;
  --limestone-raised: #f7f9fb;
  --ink: #101b28;
  --ink-muted: #4c5a6a;
  --cobalt: #2b4fd8;
  --cobalt-deep: #2342b8;
  --hairline: #d3dae2;
  --error: #b3261e;
  --font-display: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  color-scheme: light;
}

body {
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cobalt); color: var(--limestone); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
h2.centered { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--limestone) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 2.5rem; } }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  border-bottom: 2px solid var(--cobalt);
  padding-bottom: 2px;
}
.nav-cta span { display: inline-block; transition: transform 0.3s; }
.nav-cta:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 190vh; }
@media (min-width: 768px) { .hero { height: 280vh; } }
.hero-sticky {
  position: sticky; top: 0;
  height: 100dvh;
  overflow: hidden;
}
.hero-poster, .hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(16, 27, 40, 0.7), rgba(16, 27, 40, 0.25) 55%, transparent);
}
.hero-text {
  max-width: 80rem; margin: 0 auto;
  padding: 8rem 1.5rem 3.5rem;
}
@media (min-width: 768px) { .hero-text { padding: 8rem 2.5rem 5rem; } }
.hero-text h1 {
  max-width: 48rem;
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--limestone);
}
.hero-text p {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: color-mix(in srgb, var(--limestone) 85%, transparent);
}
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  border: 1px solid var(--limestone);
  color: var(--limestone);
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.hero-cta:hover { background: var(--limestone); color: var(--ink); }
.hero-cta:active { transform: scale(0.98); }

/* ---------- Services ---------- */
.services .container { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .services .container { padding-top: 9rem; padding-bottom: 9rem; } }
.accordion { margin-top: 3.5rem; border-top: 1px solid var(--hairline); }
.slice { border-bottom: 1px solid var(--hairline); }
.slice-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 0;
  text-align: left;
}
.slice-title { display: flex; align-items: center; gap: 1.25rem; }
.slice-title span {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.slice-plus { font-family: var(--font-mono); font-size: 1.25rem; color: var(--ink-muted); transition: transform 0.3s; }
.slice.open .slice-plus { transform: rotate(45deg); }
.slice-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-out;
}
.slice.open .slice-body { grid-template-rows: 1fr; }
.slice-body > .slice-body-inner { overflow: hidden; }
.slice-body-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.slice-body-inner p {
  max-width: 36rem;
  color: var(--ink-muted);
  padding-bottom: 0;
}
.slice.open .slice-body-inner { padding-bottom: 2.25rem; }
@media (min-width: 768px) {
  .slice-body-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-left: 3.25rem; }
}
.microlink {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--cobalt);
  flex-shrink: 0;
  width: fit-content;
}
.microlink::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0;
  background: var(--cobalt);
  transition: width 0.3s;
}
.microlink:hover::after { width: 100%; }

/* ---------- Method ---------- */
.method { background: var(--limestone-raised); }
.method .container { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .method .container { padding-top: 9rem; padding-bottom: 9rem; } }
.eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.stages { position: relative; margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .stages { margin-top: 6rem; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stage-1 { margin-top: 8rem; }
  .stage-2 { margin-top: 4rem; }
  .stage-3 { margin-top: 0; }
}
.route-line { display: none; position: absolute; top: -2.5rem; left: 0; width: 100%; }
@media (min-width: 768px) { .route-line { display: block; } }
.stage {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--limestone);
  padding: 2rem;
}
@media (min-width: 768px) { .stage { padding: 2.5rem; } }
.stage h3 { margin-top: 1.5rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stage p { margin-top: 1rem; color: var(--ink-muted); }
.stage.dark {
  color: var(--limestone);
  background:
    linear-gradient(rgba(16, 27, 40, 0.45), rgba(16, 27, 40, 0.45)),
    url("assets/plate-ice.webp") center / cover;
}
.stage.dark p { color: color-mix(in srgb, var(--limestone) 85%, transparent); }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about-grid {
  display: grid; gap: 3.5rem;
  padding-top: 6rem; padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; padding-top: 9rem; padding-bottom: 9rem; }
}
.about-text { display: flex; flex-direction: column; justify-content: center; }
.rule { border-top: 1px solid; }
.rule-ink { width: 6rem; border-color: var(--ink); margin-bottom: 2.5rem; }
.rule-cobalt { width: 10rem; border-color: var(--cobalt); margin-top: 2.5rem; }
.about-text p { margin-top: 1.25rem; max-width: 65ch; color: var(--ink-muted); }
.about-text h2 + p { margin-top: 2rem; }
.about-image img { width: 100%; height: 100%; max-height: 46rem; object-fit: cover; }
@media (min-width: 768px) {
  .about-image { margin-top: -9rem; margin-bottom: -3rem; }
}

/* ---------- Deliverables ---------- */
.deliverables .container { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) {
  .deliverables .container { padding-top: 9rem; padding-bottom: 9rem; }
  h2.offset { margin-left: 12%; }
}
.bento {
  margin-top: 3.5rem;
  display: grid;
  border: 1px solid var(--hairline);
}
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.cell { padding: 2rem; border-bottom: 1px solid var(--hairline); }
.cell h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.cell p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }
.cell-photo {
  position: relative;
  min-height: 18rem;
  padding: 0;
}
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell-photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 27, 40, 0.75), transparent);
}
.cell-photo-text { position: absolute; bottom: 0; padding: 2rem; }
.cell-photo-text h3 { color: var(--limestone); font-size: 1.375rem; }
.cell-photo-text p { color: color-mix(in srgb, var(--limestone) 85%, transparent); max-width: 28rem; }
.cell-cobalt { background: var(--cobalt); color: var(--limestone); }
.cell-cobalt h3 { margin-top: 2.5rem; }
.cell-cobalt p { color: color-mix(in srgb, var(--limestone) 85%, transparent); }
@media (min-width: 768px) {
  .cell-photo { grid-column: span 2; border-right: 1px solid var(--hairline); }
  .cell:nth-child(3), .cell:nth-child(4) { border-right: 1px solid var(--hairline); border-bottom: 0; }
  .cell:nth-child(5) { border-bottom: 0; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--limestone) 55%, transparent);
}
.contact-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
@media (min-width: 768px) { .contact-inner { padding: 9rem 1.5rem; } }
.contact-sub { margin-top: 1.25rem; text-align: center; color: var(--ink-muted); }
form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.hidden-field { display: none; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.field .optional { color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); }
.field-error, .form-error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--error); }
.form-error {
  border: 1px solid color-mix(in srgb, var(--error) 40%, transparent);
  background: color-mix(in srgb, var(--error) 5%, transparent);
  padding: 0.75rem 1rem;
}
.submit {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--cobalt);
  color: #fff;
  font-weight: 500;
  padding: 1rem;
  transition: background 0.2s;
}
.submit:hover { background: var(--cobalt-deep); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.6; }
.form-success {
  margin-top: 3rem;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.8);
  padding: 2.5rem;
  text-align: center;
}
.form-success img { margin: 0 auto; }
.form-success h3 { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.form-success p { margin-top: 0.75rem; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); }
.footer .container { padding-top: 5rem; padding-bottom: 5rem; }
.footer-cta { display: block; }
.footer-cta-text {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s;
}
.footer-cta:hover .footer-cta-text { color: var(--cobalt); }
.footer-cta-arrow {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: transform 0.3s;
}
.footer-cta:hover .footer-cta-arrow { transform: translateX(8px); }
.footer-row {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 768px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 2rem; font-size: 0.75rem; color: var(--ink-muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise-in { animation: ascent-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rise-in-late { animation: ascent-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
}
@keyframes ascent-rise {
  from { transform: translateY(26px); opacity: 0.001; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; min-height: 100dvh; }
  .hero-sticky { position: relative; height: 100dvh; }
  .hero-canvas { display: none; }
  * { transition-duration: 0.01ms !important; }
}
