/* ==========================================================================
   design4van — landing page
   Tokens and values come from the design handoff; keep them in sync.
   ========================================================================== */

@font-face {
  font-family: "Grifter";
  src: url("assets/grifter-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --paper: #fff;
  --green: oklch(0.85 0.15 158);
  --coral: oklch(0.8 0.13 30);
  --coral-strong: oklch(0.75 0.16 30);
  --blue: oklch(0.78 0.11 255);
  --yellow: oklch(0.9 0.14 95);
  --hairline: rgba(0, 0, 0, 0.07);
  --body-text: rgba(0, 0, 0, 0.62);
  --muted-text: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.gf {
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.lnk {
  text-decoration: none;
  transition: opacity 0.18s;
}

.lnk:hover {
  opacity: 0.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image placeholders — diagonal hatch + caption. Swap for real assets. */
.ph {
  background: repeating-linear-gradient(
    135deg,
    #f3f3f1 0 11px,
    #eeece8 11px 22px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a6a29a;
  font: 500 11px ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
}

/* --- Animation ------------------------------------------------------------ */

@keyframes d4v-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes d4v-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@keyframes d4v-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.in {
  animation: d4v-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.site-header.hide {
  transform: translateY(-100%);
}

.site-header.stuck {
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  height: 25px;
  width: auto;
  fill: var(--ink);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}

.nav-cta {
  text-decoration: none;
  background: var(--coral-strong);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-right: -8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 0 auto;
}

/* --- Hero ----------------------------------------------------------------- */

.hero-sec {
  padding: 86px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: oklch(0.93 0.08 158);
  color: #153a26;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.72 0.17 150);
  animation: d4v-pulse 2.2s ease-in-out infinite;
}

.hero-h1 {
  margin: 0 auto;
  font-size: 84px;
  line-height: 0.96;
  max-width: 15ch;
  animation-delay: 0.06s;
}

.hl-yellow {
  background: oklch(0.88 0.16 95);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  margin: 28px auto 36px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body-text);
  max-width: 56ch;
  animation-delay: 0.12s;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation-delay: 0.18s;
}

.btn-primary {
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}

.btn-secondary {
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}

/* --- Marquee -------------------------------------------------------------- */

.marq-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marq-track {
  display: flex;
  width: max-content;
  animation: d4v-marquee 30s linear infinite;
}

.marq {
  display: inline-flex;
  font-size: 32px;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.85);
}

/* --- Shared section bits -------------------------------------------------- */

.sec-intro {
  max-width: 60ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tag-blue {
  background: oklch(0.93 0.05 255);
  color: #1c3050;
}

.tag-green {
  background: oklch(0.93 0.06 145);
  color: #153a26;
}

.tag-amber {
  background: oklch(0.94 0.04 60);
  color: #4a3418;
}

.sec h2 {
  font-size: 44px;
  line-height: 1.02;
}

/* --- Work ----------------------------------------------------------------- */

.work-sec {
  padding: 88px 0 40px;
}

.work-intro {
  margin-bottom: 14px;
}

.work-intro h2 {
  margin: 0 0 14px;
}

.work-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-text);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
}

.work-card {
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-card:hover .work-shot {
  transform: scale(1.04);
}

.rebuild-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.shot {
  position: relative;
}

.shot-before {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.shot-after {
  overflow: hidden;
}

.shot-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.shot-label-before {
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
}

.shot-label-after {
  color: var(--ink);
}

.shot-img {
  aspect-ratio: 16/10;
}

.shot-img-before {
  filter: grayscale(1) contrast(0.92);
  opacity: 0.85;
}

.work-shot {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-meta {
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.work-name {
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 26px;
}

.work-type {
  font-size: 14px;
  color: var(--muted-text);
  margin-top: 4px;
}

.work-fix {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.68);
  max-width: 44ch;
}

.work-closing {
  margin: 34px 0 0;
  font-size: 15px;
  color: var(--muted-text);
}

.work-closing a {
  color: oklch(0.55 0.16 30);
  font-weight: 600;
  text-decoration: none;
}

/* --- Manifesto band ------------------------------------------------------- */

.manifesto {
  padding: 64px 0;
  background: oklch(0.97 0.02 158);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 48px;
}

.manifesto-intro {
  margin-bottom: 44px;
}

.manifesto-intro h2 {
  margin: 0;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.belief {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 30px 28px;
}

.belief-bar {
  width: 34px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.belief h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.belief p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.66);
}

/* --- About ---------------------------------------------------------------- */

.about-sec {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.founder {
  position: relative;
}

.founder-photo {
  aspect-ratio: 4/5;
  border-radius: 18px;
}

.founder-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
}

.founder-name {
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  line-height: 1;
}

.founder-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.about-copy h2 {
  margin: 0 0 22px;
  font-size: 42px;
  line-height: 1.03;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.68);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  padding-top: 22px;
  border-top: 3px solid;
}

.statnum {
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 60px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  margin-top: 10px;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-sec {
  padding: 20px 0 90px;
}

.faq-wrap {
  max-width: 900px;
}

.faq-sec h2 {
  margin: 0 0 30px;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 23px;
  transition: opacity 0.18s;
}

.faq-q:hover {
  opacity: 0.62;
}

.faq-plus {
  font-size: 26px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: var(--coral-strong);
  transition: transform 0.2s;
  display: inline-block;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-body p {
  margin: 0;
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  max-width: 72ch;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 96px 0 44px;
  text-align: center;
}

.foot-h {
  margin: 0 auto 32px;
  font-size: 72px;
  line-height: 0.98;
  max-width: 16ch;
}

.hl-coral {
  background: var(--coral-strong);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.foot-cta {
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  display: inline-block;
  animation-delay: 0.08s;
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
  margin-top: 80px;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-logo {
  height: 22px;
  width: auto;
  fill: #fff;
  display: block;
}

.foot-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Mobile menu + bottom CTA --------------------------------------------- */

.m-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 22px 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.42s;
}

.m-menu.open {
  transform: translateY(0);
  visibility: visible;
}

.m-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.m-logo {
  height: 24px;
  width: auto;
  fill: var(--ink);
  display: block;
}

.m-close {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font: 400 34px/1 "Inter", system-ui, sans-serif;
  color: var(--ink);
  cursor: pointer;
  margin-right: -10px;
}

.m-links {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.m-links a {
  font-family: "Grifter", "Inter", sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.m-cta-btn {
  margin-top: auto;
  text-align: center;
  background: var(--coral-strong);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 18px;
  border-radius: 999px;
}

.m-menu-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.m-cta {
  display: none;
}

/* --- Breakpoint ----------------------------------------------------------- */

@media (max-width: 820px) {
  .wrap {
    padding: 0 22px;
  }
  .menu-btn {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .grid3,
  .rebuild-shots {
    grid-template-columns: 1fr;
  }
  .grid4 {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .shot-before {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .hero-sec {
    padding: 50px 0 34px;
  }
  .hero-h1 {
    font-size: clamp(38px, 11.5vw, 52px);
  }
  .hero-sub {
    font-size: 17px;
  }
  .sec {
    padding: 58px 0;
  }
  .sec h2,
  .about-copy h2 {
    font-size: 32px;
  }
  .foot-h {
    font-size: 42px;
  }
  .statnum {
    font-size: 48px;
  }
  .marq {
    font-size: 26px;
  }
  .faq-q {
    font-size: 20px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row a {
    width: 100%;
    text-align: center;
  }
  .m-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .m-cta a {
    display: block;
    text-align: center;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px;
    border-radius: 999px;
  }
  .site-footer {
    padding-bottom: 120px;
  }
}

/* --- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.in {
    opacity: 1;
    animation: none;
  }
  .marq-track,
  .eyebrow-dot {
    animation: none;
  }
  .work-card,
  .work-shot,
  .site-header {
    transition: none;
  }
}
