:root {
  --paper: oklch(97% 0.007 85);
  --ink: oklch(16% 0.02 50);
  --soft-ink: oklch(50% 0.03 60);
  --warm: oklch(70% 0.12 85);
  --contour: oklch(76% 0.055 72);
  --rule: oklch(88% 0.01 85);
  --section-tint: oklch(94% 0.008 85 / 0.4);
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.ws-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  transition: opacity 420ms ease;
}

.ws-loader.is-done {
  pointer-events: none;
  opacity: 0;
}

.ws-filter {
  position: absolute;
}

.ws-loader-word {
  position: fixed;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--ink);
  filter: url("#ws-static");
  font-family: var(--serif);
  letter-spacing: 0;
  visibility: hidden;
  will-change: filter, transform;
}

.ws-loader-word.is-positioned {
  visibility: visible;
}

.ws-loader-word span,
.ws-loader-word-group {
  display: inline-block;
}

.ws-loader-word-group + .ws-loader-word-group {
  margin-left: 0.2em;
}

.page-texture {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contour-lines {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  fill: none;
  stroke: var(--contour);
  stroke-linecap: round;
  stroke-width: 1.2;
  opacity: 0.28;
  animation: contour-drift 28s ease-in-out infinite alternate;
}

.contour-band-middle {
  opacity: 0.72;
}

.contour-band-bottom {
  opacity: 0.56;
}

@keyframes contour-drift {
  to {
    transform: translate(-1.5%, 1.25%) scale(1.015);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-sticky {
  position: fixed;
  border-bottom-color: color-mix(in oklch, var(--rule) 75%, transparent);
  background: oklch(97% 0.007 85 / 0.9);
  box-shadow: 0 10px 30px oklch(16% 0.02 50 / 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.header-inner {
  padding: 20px 24px;
}

.wordmark,
.footer-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 28px;
}

.nav-link,
.eyebrow {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 16px;
  text-transform: uppercase;
}

.nav-link {
  display: inline-block;
  transition: color 180ms ease;
}

nav .nav-link + .nav-link {
  margin-left: 24px;
}

@media (max-width: 480px) {
  .app-nav .nav-link {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .app-nav .nav-link + .nav-link {
    margin-left: 14px;
  }
}

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

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 24px 64px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 8%, oklch(100% 0 0 / 0.48), transparent 62%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 351px;
  text-align: center;
}

.eyebrow {
  margin: 0;
}

.hero h1 {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 13vw, 192px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.85;
}

.hero h1 span + span {
  margin-left: 0.2em;
}

.hero-lead {
  margin: 48px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.primary-button {
  display: inline-flex;
  min-width: 172px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 16px 32px;
  border-radius: 999px;
  background: oklch(20% 0.03 50);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-button:hover {
  background: oklch(25% 0.035 50);
  transform: translateY(-2px);
}

.services,
.apps,
.statement,
.contact {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1152px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 64px;
}

h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 16px 0 0;
  font-size: 36px;
  line-height: 1.375;
}

.service-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
}

.service {
  padding: 32px;
  background: var(--paper);
}

.service h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
}

.service p,
.contact-inner > p:last-of-type {
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.625;
}

.apps {
  position: relative;
}

.app-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
}

.app-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  background: color-mix(in oklch, var(--paper) 94%, var(--contour));
  isolation: isolate;
}

.app-card::before,
.app-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid color-mix(in oklch, var(--contour) 46%, transparent);
  border-radius: 50%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card::before {
  width: 340px;
  height: 180px;
  top: 6%;
  right: -28%;
  transform: rotate(-12deg);
}

.app-card::after {
  width: 420px;
  height: 220px;
  top: 2%;
  right: -38%;
  opacity: 0.55;
  transform: rotate(-12deg);
}

.app-card-love::before,
.app-card-love::after {
  top: auto;
  right: auto;
  bottom: 12%;
  left: -34%;
  transform: rotate(14deg);
}

.app-card:hover::before {
  transform: translate(-12px, 8px) rotate(-8deg);
}

.app-card:hover::after {
  transform: translate(-18px, 12px) rotate(-7deg);
}

.app-card-love:hover::before {
  transform: translate(12px, -8px) rotate(10deg);
}

.app-card-love:hover::after {
  transform: translate(18px, -12px) rotate(9deg);
}

.app-number,
.app-category,
.app-card-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.app-number,
.app-category {
  color: var(--soft-ink);
}

.app-card-content {
  margin: auto 0;
}

.app-category {
  margin: 0 0 14px;
}

.app-card h3 {
  margin: 0;
  font-size: 48px;
  line-height: 0.95;
}

.app-card-content > p:last-child {
  max-width: 390px;
  margin: 24px 0 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.6;
}

.app-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.app-card-link span {
  font-size: 16px;
}

.product-page {
  padding-top: 112px;
}

.product-hero,
.product-section {
  padding: 80px 24px;
}

.product-hero-inner,
.product-section-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.product-hero-inner {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.product-hero h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(68px, 14vw, 160px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.84;
}

.product-tagline {
  max-width: 680px;
  margin: 48px auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.product-intro {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.7;
}

.product-section {
  border-top: 1px solid var(--rule);
  scroll-margin-top: 68px;
}

.product-section-tinted {
  background: var(--section-tint);
}

.product-section h2 {
  margin: 16px 0 0;
  font-size: 44px;
  line-height: 1;
}

.product-copy {
  max-width: 680px;
  margin-top: 32px;
}

.product-copy p,
.product-copy li {
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.7;
}

.product-copy p {
  margin: 0 0 18px;
}

.product-copy p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.product-copy p a:hover,
.product-copy p a:focus-visible {
  text-decoration-color: currentColor;
  outline: none;
}

.product-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.product-actions .primary-button {
  margin-top: 0;
}

.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.statement {
  position: relative;
  min-height: 456px;
  overflow: hidden;
  background: var(--section-tint);
}

.static-lines {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: repeating-linear-gradient(to bottom, oklch(16% 0.02 50 / 0.04) 0, oklch(16% 0.02 50 / 0.04) 1px, transparent 1px, transparent 4px);
}

.statement-inner,
.contact-inner {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
}

.statement h2 {
  margin: 0 0 32px;
  font-size: 36px;
  line-height: 1.25;
}

.statement p {
  margin: 32px 0 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.625;
}

.statement p + p {
  margin-top: 16px;
  font-size: 16px;
}

.statement em {
  font-family: var(--serif);
  font-size: 1.12em;
}

.contact h2 {
  margin: 16px 0 0;
  line-height: 1.1;
}

.contact {
  min-height: 492px;
}

.contact-inner > p:last-of-type {
  margin-top: 24px;
  line-height: 1.5;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.email-row a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid oklch(20% 0.03 50);
  border-radius: 999px;
  background: oklch(20% 0.03 50);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.copy-button {
  cursor: pointer;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 20px;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 24px;
}

.footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-legal p,
.footer-legal a {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 20px;
}

.footer-legal a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
  outline: none;
}

.legal-page {
  padding: 144px 24px 96px;
}

.legal-hero,
.legal-content {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

.legal-hero {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.legal-hero h1 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.legal-effective-date {
  margin: 32px 0 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.6;
}

.legal-content {
  padding-top: 64px;
}

.legal-content > p:first-child {
  color: var(--ink);
  font-size: 18px;
}

.legal-content h2 {
  margin: 64px 0 20px;
  font-size: 36px;
  line-height: 1.1;
}

.legal-content h3 {
  margin: 36px 0 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-content p,
.legal-content li,
.legal-address {
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.legal-content li {
  position: relative;
  padding-left: 20px;
}

.legal-content li::before {
  position: absolute;
  left: 0;
  content: "–";
  color: var(--contour);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  text-decoration-color: currentColor;
  outline: none;
}

.legal-address {
  margin-top: 24px;
  font-style: normal;
}

.reveal {
  animation: static-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes static-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px);
  }
  60% {
    opacity: 0.85;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 48px;
  }

  .hero {
    padding: 96px 48px 64px;
  }

  .hero-content {
    max-width: 1152px;
  }

  .hero h1 {
    margin-top: 32px;
  }

  .hero-lead {
    max-width: 768px;
    margin: 64px auto 0;
    font-size: 30px;
    line-height: 36px;
  }

  .services,
  .apps,
  .statement,
  .contact {
    padding: 128px 48px;
  }

  .section-heading {
    margin-bottom: 96px;
  }

  .section-heading h2,
  .statement h2,
  .contact h2 {
    font-size: 60px;
    line-height: 1;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }

  .service {
    padding: 48px;
  }

  .service h3 {
    font-size: 30px;
    line-height: 36px;
  }

  .service p {
    font-size: 16px;
  }

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

  .app-card {
    min-height: 560px;
    padding: 40px;
  }

  .app-card h3 {
    font-size: 72px;
  }

  .product-hero,
  .product-section {
    padding: 112px 48px;
  }

  .product-section h2 {
    font-size: 60px;
  }

  .statement p {
    font-size: 18px;
    line-height: 1.625;
  }

  .statement p + p {
    font-size: 18px;
  }

  .statement {
    min-height: 507.75px;
  }

  .contact {
    min-height: 490px;
  }

  .contact-inner > p:last-of-type {
    font-size: 18px;
  }

  .email-row {
    justify-content: center;
  }

  .site-footer {
    padding: 48px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .footer-legal {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .legal-page {
    padding: 176px 48px 128px;
  }

  .legal-hero {
    padding-bottom: 80px;
  }

  .legal-content {
    padding-top: 80px;
  }

  .legal-content h2 {
    font-size: 44px;
  }
}

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

  .reveal,
  .reveal-on-scroll,
  .contour-lines {
    opacity: 1;
    filter: none;
    animation: none;
    transform: none;
    transition: none;
  }

  .ws-loader {
    display: none;
  }
}