/* EveryProject homepage */

/* Self-hosted fonts (SIL Open Font License) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/ep/archivo-latin-ext-k3kQo8UD.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/ep/archivo-latin-k3kQo8UD.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/ep/martian-latin-ext-2V0PKIcA.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/ep/martian-latin-2V0PKIcA.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #e9e7e2;
  --ground-2: #f4f3ef;
  --paper: #fbfaf8;
  --ink: #1c1c1f;
  --ink-2: #3d3c42;
  --muted: #5d5b63;
  --line: #cfccc5;
  --rule: #dedbd4;
  --purple: #7b215a;
  --purple-hi: #661b4b;
  --purple-tint: #f1e6ed;
  --ok: #3d6b45;
  --ok-bg: #e7efe7;
  --err: #9b2a2a;
  --err-bg: #f6e4e2;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple-hi); }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav .nav-sub > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 3px;
  color: var(--ink-2); text-decoration: none; font: 500 15px/1.2 var(--display);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav .nav-sub > button:hover { color: var(--ink); background: rgba(28, 28, 31, .05); }
.nav-sub { position: relative; }
.nav-sub svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-sub ul {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 16px 32px -20px rgba(28, 20, 25, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-sub ul a { display: block; padding: 9px 10px; }
.nav-sub:hover ul, .nav-sub:focus-within ul, .nav-sub.is-open ul { opacity: 1; visibility: visible; transform: none; }
.nav-sub.is-open svg { transform: rotate(180deg); }
.lang { display: inline-flex; align-items: center; margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }
.lang a, .lang span { padding: 8px 6px; text-decoration: none; color: var(--muted); }
.lang [aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--purple); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 3px; border: 1px solid transparent;
  font: 600 16px/1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hi); color: #fff; }
.btn-primary[disabled] { background: #9a7189; cursor: progress; }
.btn-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 500; }
.header-login { margin-left: 12px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; margin: auto; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 {
  margin: 0 0 18px; font-weight: 600; font-stretch: 88%;
  font-size: clamp(3rem, 7vw, 6rem); line-height: .96; letter-spacing: -.03em;
}
.hero-sub { margin: 0 0 36px; max-width: 26ch; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; color: var(--ink-2); font-weight: 400; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { margin: 0; justify-self: end; width: min(560px, 100%); }
.hero-figure img { filter: drop-shadow(0 30px 40px rgba(40, 25, 35, .18)); }

/* Sections */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 {
  margin: 0 0 20px; font-weight: 600; font-stretch: 90%;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 0; }

.about { background: var(--ground-2); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.about-photo { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }

.why .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.why-list li { padding-block: 26px 30px; border-top: 1px solid var(--line); }
.why-list h3 { margin: 0 0 8px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.005em; }
.why-list p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; max-width: 40ch; }
.why-list.cols-1 { grid-template-columns: 1fr; }
.why-list.cols-1 p { max-width: 68ch; }
/* Features */
.features { background: var(--ground-2); }
.features-head { margin-bottom: clamp(28px, 4vw, 48px); }
.features-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-btn {
  display: grid; gap: 4px; width: 100%;
  padding: 18px 12px 18px 0; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
  transition: padding-left .3s var(--ease);
}
.feature-btn h3 { margin: 0; font-weight: 600; font-size: 1.15rem; line-height: 1.35; transition: color .2s; }
.feature-btn p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.feature-btn:hover h3 { color: var(--purple); }
.feature-btn[aria-selected="true"] { padding-left: 14px; box-shadow: inset 1px 0 0 var(--purple); }
.feature-btn[aria-selected="true"] h3 { color: var(--purple); }
.feature-btn[aria-selected="true"] p { color: var(--ink-2); }
.feature-stage { position: sticky; top: 104px; margin: 0; }
.feature-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 4px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -40px rgba(40, 25, 35, .45);
}
.feature-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.012); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.feature-frame img.is-contain { object-fit: contain; object-position: center; padding: 4%; background: var(--paper); }
.feature-frame img.is-active { opacity: 1; transform: none; }
.no-js .feature-stage { position: static; }
.no-js .feature-frame { aspect-ratio: auto; display: grid; gap: 16px; background: none; border: 0; box-shadow: none; overflow: visible; }
.no-js .feature-frame img { position: static; opacity: 1; transform: none; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }

.link-quiet {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px;
  color: var(--ink-2); font: 500 16px/1 var(--display); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 6px; transition: color .2s, text-decoration-color .2s;
}
.link-quiet:hover { color: var(--purple); text-decoration-color: currentColor; }

textarea { scrollbar-color: var(--line) transparent; }
html { scrollbar-color: #b7b3ab var(--ground); caret-color: var(--purple); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 400 16px/1.4 var(--display); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b6970; }
.field input:hover, .field textarea:hover { border-color: #a9a69f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123, 33, 90, .15); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 3px; font-size: 15px; }
.form-status[data-state="success"] { background: var(--ok-bg); color: #24422a; }
.form-status[data-state="error"] { background: var(--err-bg); color: #5d1a1a; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink-2); border-top: 1px solid var(--rule); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.footer-top h4 { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.footer-top p, .footer-top address { margin: 0 0 10px; font-style: normal; line-height: 1.7; font-size: 15px; }
.footer-top address { color: var(--muted); }
.footer-logo { width: 220px; max-width: 60vw; mix-blend-mode: multiply; }
.footer-bottom { border-top: 1px solid var(--rule); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--purple); }

/* Responsive */
@media (max-width: 1080px) {
  .nav > ul a, .nav .nav-sub > button { padding-inline: 9px; font-size: 14.5px; }
}
@media (max-width: 940px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ground); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav .nav-sub > button { width: 100%; padding: 13px 4px; font-size: 16px; justify-content: space-between; }
  .nav-sub ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 14px; display: none; }
  .nav-sub.is-open ul { display: block; }
  .nav-sub:hover ul, .nav-sub:focus-within ul { display: none; }
  .nav-sub.is-open:hover ul, .nav-sub.is-open:focus-within ul { display: block; }
  .lang { margin: 8px 0 0; }
  .header-login { margin: 12px 0 0; }
  .hero .wrap, .about .wrap, .why .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero-figure { justify-self: center; width: min(460px, 100%); }
  .features-body { grid-template-columns: 1fr; }
  .feature-stage { top: 72px; z-index: 5; order: -1; padding-block: 8px 12px; background: var(--ground-2); }
}
@media (max-width: 620px) {
  .why-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 auto; }
}
