/* Mindhalla v3 — sections */

/* ============ work: editorial index ============ */
.case { border-top: 1px solid var(--border); }
.case:last-child { border-bottom: 1px solid var(--border); }
.case-link {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(26px, 4vw, 44px);
  position: relative;
  cursor: pointer;
}
.case-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .5s cubic-bezier(.19,1,.22,1);
}
.case-link:hover::after { width: 100%; }
html[data-accent="mono"] .case-link:hover::after { background: var(--text); }
.case-name { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 22px); flex-wrap: wrap; }
.case-live {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 7px;
  -webkit-text-fill-color: var(--accent); transform: none !important;
  align-self: center; white-space: nowrap;
}
html[data-accent="mono"] .case-live { color: var(--text2); -webkit-text-fill-color: var(--text2); }
.case-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: relative; }
html[data-accent="mono"] .case-live .dot { background: var(--text2); }
.case-live .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: caselive 2.4s ease-out infinite; }
@keyframes caselive { 0% { transform: scale(.5); opacity: .8; } 70%,100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .case-live .dot::after { animation: none; } }
.case-cta {
  align-self: center; display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text2);
  border: 1px solid var(--border); padding: 10px 14px; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.case-link:hover .case-cta { color: var(--text); border-color: var(--text); }
.case-cta .ic { position: relative; width: 11px; height: 11px; flex: none; }
.case-cta .ic::before, .case-cta .ic::after { content: ""; position: absolute; background: currentColor; transition: transform .3s cubic-bezier(.19,1,.22,1), opacity .3s; }
.case-cta .ic::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.case-cta .ic::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.case.open .case-cta .ic::after { transform: scaleY(0); opacity: 0; }
.case.open .case-cta { color: var(--accent); border-color: var(--accent); }
html[data-accent="mono"] .case.open .case-cta { color: var(--text); border-color: var(--text); }
.case-no { color: var(--text3); font-variant-numeric: tabular-nums; }
.case-name {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform .5s cubic-bezier(.19,1,.22,1), color .3s;
}
.case-link:hover .case-name,
.case.open .case-name { transform: translateX(clamp(8px, 1.5vw, 22px)); color: var(--accent); }
html[data-accent="mono"] .case-link:hover .case-name,
html[data-accent="mono"] .case.open .case-name { color: var(--text); box-shadow: none; opacity: .75; }
.case-side { text-align: right; color: var(--text2); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.case-side .metric b { color: var(--text); font-weight: 400; }

.case-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.19,1,.22,1);
}
.case.open .case-body { grid-template-rows: 1fr; }
.case-body > div { overflow: hidden; }
.case-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 52px);
  align-items: end;
}
.case-desc { color: var(--text2); font-size: 15px; max-width: 44ch; text-wrap: pretty; }
.case-desc .tags { display: flex; gap: 14px; margin-top: 18px; color: var(--text3); flex-wrap: wrap; }
.case-go { display: inline-block; margin-top: 22px; }

.shot {
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid; place-items: center;
  position: relative;
}
.shot::before, .shot::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--text3); pointer-events: none;
}
.shot::before { top: -5px; left: -5px; border-width: 1px 0 0 1px; }
.shot::after { bottom: -5px; right: -5px; border-width: 0 1px 1px 0; }
.shot span {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text2);
  border: 1px dashed var(--border); padding: 7px 13px;
}
.shot.wide { aspect-ratio: 16/9.4; }
.shot.tall { aspect-ratio: 9/16; max-width: 300px; justify-self: center; }

/* ============ services: the inventory ============ */
.inv { counter-reset: svc; }
.inv-row {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 56px);
  padding-block: clamp(22px, 3.4vw, 38px);
  align-items: baseline;
}
.inv-row:last-child { border-bottom: 1px solid var(--border); }
.inv-name {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 26px);
}
.inv-name::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .1em;
  color: var(--text3);
}
.inv-row p { color: var(--text2); font-size: 15px; max-width: 50ch; text-wrap: pretty; }
.inv-row .dur { display: block; margin-top: 10px; color: var(--text3); }
.inv-row .dur b { color: var(--accent); font-weight: 400; }
html[data-accent="mono"] .inv-row .dur b { color: var(--text); }

/* ============ process: the ruler ============ */
.ruler-wrap { position: relative; padding-top: clamp(30px, 4vw, 50px); }
.ruler {
  position: relative; height: 56px;
  background:
    repeating-linear-gradient(90deg,
      var(--border) 0 1px, transparent 1px calc(100% / 56));
  background-size: 100% 12px;
  background-repeat: no-repeat;
  background-position: bottom;
}
.ruler::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--text);
}
.ruler .mark {
  position: absolute; bottom: 0; width: 1px; height: 26px;
  background: var(--text);
}
.ruler .mark i {
  position: absolute; bottom: 30px; left: 0;
  font-style: normal; white-space: nowrap;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text2);
}
.ruler .mark.m-end { background: var(--accent); width: 2px; }
.ruler .mark.m-end i { color: var(--accent); }
html[data-accent="mono"] .ruler .mark.m-end { background: var(--text); }
html[data-accent="mono"] .ruler .mark.m-end i { color: var(--text); }

.phases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(36px, 5vw, 64px);
}
.phase { border-top: 1px solid var(--border); padding-top: 18px; }
.phase .d { color: var(--accent); display: block; margin-bottom: 14px; }
html[data-accent="mono"] .phase .d { color: var(--text2); }
.phase h3 {
  font-family: "Clash Display", sans-serif; font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em;
}
.phase p { color: var(--text2); font-size: 15px; margin-top: 8px; text-wrap: pretty; }

.terms {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px;
}
.terms strong {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em;
}
.terms span { color: var(--text2); font-size: 15px; }

/* ============ proof ============ */
.dims {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(48px, 7vw, 100px);
}
.dim .value {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(54px, 8vw, 124px);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dim .value sub {
  font-size: .32em; vertical-align: baseline; color: var(--accent);
  margin-left: .1em; font-weight: 500; letter-spacing: 0;
}
html[data-accent="mono"] .dim .value sub { color: var(--text2); }
.dim .dimline {
  display: flex; align-items: center; gap: 0;
  margin-top: 14px; color: var(--text2);
}
.dim .dimline::before, .dim .dimline::after {
  content: ""; height: 7px; width: 1px; background: var(--text3);
}
.dim .dimline .lbl { padding-inline: 12px; }
.dim .dimline .ln { flex: 1; min-width: 12px; height: 1px; background: var(--text3); }

.quote-stage { max-width: 900px; }
.quote-stage blockquote {
  font-family: "Clash Display", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.28; letter-spacing: -0.015em;
  text-wrap: pretty;
}
.quote-stage blockquote::before { content: "\u201C"; color: var(--accent); }
.quote-stage blockquote::after { content: "\u201D"; color: var(--accent); }
.quote-stage figcaption { margin-top: 24px; color: var(--text2); }
.quote-nav { display: flex; gap: 8px; margin-top: 28px; align-items: center; }
.quote-nav button {
  min-width: 34px; height: 34px; border: 1px solid var(--border); background: none;
  color: var(--text2); cursor: pointer; font-family: "JetBrains Mono", monospace;
  font-size: 11px; transition: color .2s, border-color .2s;
}
.quote-nav button[aria-current="true"] { color: var(--text); border-color: var(--text); }
.quote-nav button:hover { color: var(--text); }

/* ============ faq ============ */
.faq-list { border-top: 1px solid var(--border); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: baseline; gap: clamp(16px, 3vw, 36px);
  padding-block: clamp(20px, 3vw, 28px);
  background: none; border: none; color: var(--text);
  font-size: clamp(17px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.01em;
  text-align: left; cursor: pointer;
  font-family: "Switzer", sans-serif;
}
.faq-q .qn { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .1em; color: var(--text3); flex: none; width: 26px; font-variant-numeric: tabular-nums; }
.faq-q .x { margin-left: auto; position: relative; width: 15px; height: 15px; flex: none; align-self: center; transition: transform .35s cubic-bezier(.19,1,.22,1); }
.faq-q .x::before, .faq-q .x::after { content: ""; position: absolute; background: var(--text2); transition: background .2s; }
.faq-q .x::before { left: 0; right: 0; top: 7px; height: 1px; }
.faq-q .x::after { top: 0; bottom: 0; left: 7px; width: 1px; }
.faq-item.open .x { transform: rotate(45deg); }
.faq-item.open .x::before, .faq-item.open .x::after { background: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.19,1,.22,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text2); font-size: 15px; padding: 0 0 26px calc(26px + clamp(16px, 3vw, 36px)); max-width: 58ch; text-wrap: pretty; }

/* ============ final cta ============ */
.final { padding-block: clamp(120px, 17vw, 260px) clamp(60px, 8vw, 110px); }
.final .sec-title { max-width: 12ch; }
.final-row {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.final .status { margin-top: clamp(28px, 4vw, 44px); }

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--hairline); padding-block: 28px; }
.site-footer .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--text2);
}
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--text2); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .hero-base { grid-template-columns: 1fr; }
  .case-link { grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; }
  .case-side { display: none; }
  .case-cta .t { display: none; }
  .case-cta { padding: 11px; }
  .case-inner { grid-template-columns: 1fr; align-items: start; }
  .shot.tall { justify-self: start; max-width: 240px; }
  .inv-row { grid-template-columns: 1fr; gap: 10px; }
  .phases { grid-template-columns: 1fr; gap: 28px; }
  .dims { grid-template-columns: 1fr; gap: 32px; }
  .ruler .mark i { font-size: 9px; }
  .data-strip .cell.optional { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(58px, 19.5vw, 86px); }
  .hero h1 .indent { padding-left: 11vw; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .faq-a p { padding-left: 0; }
  .final-row .btn { width: 100%; justify-content: center; }
}
