/* DVStudio — site styles
   Studio palette: chalk paper, cobalt-tinted ink, studio cobalt.
   The Mochi section deliberately switches to Mochi's own brand system. */

@font-face {
  font-family: "Nunito Mochi";
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans Mochi";
  src: url("/assets/fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans Mochi";
  src: url("/assets/fonts/dmsans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f5f6f8;
  --white: #ffffff;
  --ink: #0c1033;
  --muted: #4a4f6e;
  --blue: #2433e0;
  --blue-deep: #1a24a8;
  --mist: #dde1fb;
  --on-blue-soft: #c9cffc;

  --m-ink: #101010;
  --m-acid: #e9fa4f;
  --m-lilac: #c9a7ff;
  --m-orange: #ff6b3d;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mochi-display: "Nunito Mochi", "Nunito", ui-rounded, system-ui, sans-serif;
  --mochi-body: "DM Sans Mochi", "DM Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius-panel: clamp(20px, 2.4vw, 32px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-blue :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--blue);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--blue-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-paper {
  background: var(--white);
  color: var(--blue);
}
.btn-paper:hover {
  background: var(--mist);
}

.btn-line {
  border: 1.5px solid color-mix(in srgb, var(--white) 55%, transparent);
  color: var(--white);
}
.btn-line:hover {
  border-color: var(--white);
  background: color-mix(in srgb, var(--white) 10%, transparent);
}

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

.hero {
  padding-top: 8px;
}

.hero-panel {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(56px, 10vw, 140px);
  min-height: min(78vh, 780px);
  padding: clamp(28px, 4.5vw, 64px) clamp(22px, 4vw, 56px) clamp(14px, 2vw, 28px);
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
}

.lede {
  margin: 0;
  max-width: 21em;
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  line-height: 1.14;
  font-weight: 500;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wordmark {
  margin: 0 0 -0.12em -0.04em;
  font-size: 18.2cqi;
  line-height: 0.9;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  white-space: nowrap;
  animation: widen 1.4s var(--ease-out) 0.1s both;
}

.hero-top {
  animation: rise 0.9s var(--ease-out) 0.55s both;
}

@keyframes widen {
  from {
    font-stretch: 62%;
    letter-spacing: 0.02em;
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    font-stretch: 125%;
    letter-spacing: -0.045em;
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 11vw, 160px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Services ---------- */

.practices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.practice {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px 48px;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--mist);
}

.practice:last-child {
  border-bottom: 1px solid var(--mist);
}

.practice h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.02;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.practice-body p {
  margin: 0 0 20px;
  max-width: 36em;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.includes li {
  position: relative;
  padding-left: 18px;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.practice-link {
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Mochi ---------- */

.mochi {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4.5vw, 64px);
  background: var(--m-acid);
  color: var(--m-ink);
  border: 3px solid var(--m-ink);
  border-radius: var(--radius-panel);
  box-shadow: 10px 10px 0 var(--m-ink);
  font-family: var(--mochi-body);
}

.mochi-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 28px;
}

.mochi-id .mochi-icon {
  grid-row: span 2;
}

.mochi-id .mochi-name {
  align-self: end;
}

.mochi-id .mochi-status {
  align-self: start;
  justify-self: start;
}

.mochi-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 2.5px solid var(--m-ink);
}

.mochi-name {
  margin: 0;
  font-family: var(--mochi-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mochi-status {
  margin: 0;
  padding: 3px 12px;
  border: 2px solid var(--m-ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

.mochi-tagline {
  margin: 0 0 16px;
  font-family: var(--mochi-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mochi-desc {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 1.1rem;
  line-height: 1.6;
}

.mochi-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.mochi-steps li {
  counter-increment: step;
  padding: 16px 16px 18px;
  border: 2.5px solid var(--m-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--m-ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mochi-steps li:nth-child(1) {
  background: var(--m-lilac);
}
.mochi-steps li:nth-child(2) {
  background: var(--white);
}
.mochi-steps li:nth-child(3) {
  background: var(--m-orange);
}

.mochi-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--m-ink);
  color: var(--m-acid);
  font-family: var(--mochi-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.mochi-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mochi-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.15;
}

.mochi-notes {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.98rem;
}

.mochi-notes li {
  padding-left: 22px;
  position: relative;
}

.mochi-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--m-ink);
  background: var(--m-lilac);
}

.mochi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.btn-mochi {
  background: var(--m-ink);
  color: var(--m-acid);
  border: 2.5px solid var(--m-ink);
  border-radius: 999px;
  font-family: var(--mochi-display);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.btn-mochi:hover {
  background: #2a2a2a;
}

.mochi-publisher {
  margin: 0;
  font-size: 0.9rem;
}

.mochi-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mochi-art-stack {
  position: relative;
  width: min(100%, 420px);
}

.mochi-art-card {
  width: 100%;
  aspect-ratio: 1;
  padding: 6%;
  background: var(--white);
  border: 3px solid var(--m-ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--m-ink);
  transform: rotate(2.5deg);
}

.mochi-art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mochi-sticker {
  position: absolute;
  left: -14%;
  bottom: -12%;
  width: 34%;
  transform: rotate(-10deg);
  filter: drop-shadow(4px 4px 0 var(--m-ink));
}

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(80px, 11vw, 160px) clamp(16px, 2vw, 24px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  padding: clamp(28px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-panel);
}

.contact-panel .section-title {
  margin-bottom: 20px;
}

.contact-panel p {
  margin: 0 0 36px;
  max-width: 28em;
  color: var(--on-blue-soft);
  font-size: 1.125rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.6rem, 4.6vw, 3.6rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--blue);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}

.contact-email:hover {
  text-decoration-color: var(--white);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 24px;
  align-content: end;
}

.contact-list div {
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
}

.contact-list dt {
  margin-bottom: 4px;
  color: var(--on-blue-soft);
  font-size: 0.9rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.contact-list a {
  text-decoration-color: color-mix(in srgb, var(--white) 40%, transparent);
}

.contact-list a:hover {
  text-decoration-color: var(--white);
}

.contact-panel :focus-visible {
  outline-color: var(--white);
}

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

.site-footer {
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(48px, 8vw, 112px) clamp(64px, 8vw, 120px);
}

.legal .wrap {
  max-width: calc(760px + var(--gutter) * 2);
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.04em;
}

.legal .updated {
  margin: 0 0 48px;
  color: var(--muted);
}

.legal h2 {
  margin: 48px 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  max-width: 38em;
  text-wrap: pretty;
}

.legal ul {
  padding-left: 1.2em;
}

.legal a {
  color: var(--blue);
}

.legal address {
  font-style: normal;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-top,
  .section-head,
  .practice,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .mochi {
    grid-template-columns: minmax(0, 1fr);
  }

  .mochi-art {
    order: -1;
  }

  .mochi-art {
    justify-content: center;
    padding-bottom: 12px;
  }

  .mochi-art-stack {
    width: min(64%, 320px);
  }

  .mochi-sticker {
    left: auto;
    right: -18%;
    bottom: -10%;
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-panel {
    min-height: 0;
    gap: 88px;
  }

  .includes {
    grid-template-columns: minmax(0, 1fr);
  }

  .mochi {
    box-shadow: 6px 6px 0 var(--m-ink);
  }

  .mochi-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .mochi-id .mochi-icon {
    grid-row: auto;
    width: 64px;
    height: 64px;
  }

  .mochi-id .mochi-name {
    align-self: center;
  }

  .mochi-id .mochi-status {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .mochi-art-stack {
    width: min(68%, 280px);
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
