/* Home: monochrome, hairline grid, lots of white space. */

.home {
  --ink: #0e0e0e;
  --soft: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e8e8e8;
  --wash: #f7f7f7;
  --outer: #f3f3f3;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Geist", "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #fff;
}
.home h1, .home h2, .home h3 { margin: 0; font-weight: 400; letter-spacing: -.035em; }
.home p { margin: 0; }
.home :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home .brand img, .mark img { filter: grayscale(1) contrast(1.1); }

.frame {
  background: #fff;
  overflow-x: clip;
}
.frame main > * + * { border-top: 1px solid var(--line); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .55rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 50rem;
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #333; border-color: #333; }
.pill-line { border-color: var(--line); background: #fff; color: var(--ink); }
.pill-line:hover { border-color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .7rem .25rem .25rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  color: var(--soft);
  font-size: 0.88rem;
}
.badge span {
  padding: .15rem .55rem;
  border-radius: 50rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
}

.dots {
  background-image: radial-gradient(#dcdcdc 1px, transparent 1.2px);
  background-size: 14px 14px;
}

/* Header */
.home .site-header {
  position: sticky;
  top: 0;
  color: var(--ink);
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home .header-inner { min-height: 4.25rem; padding-inline: var(--pad); }
.home .brand { gap: .55rem; font-family: inherit; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; }
.home .brand img { width: 1.9rem; }
.home .site-header nav {
  gap: .15rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
}
.home .site-header nav a {
  padding: .35rem .9rem;
  border-radius: 50rem;
  color: var(--soft);
  font-size: 0.93rem;
  font-weight: 400;
}
.home .site-header nav a:hover { color: var(--ink); text-decoration: none; }
.home .site-header nav [aria-current="page"] { background: var(--ink); color: #fff; text-decoration: none; }
.home .header-action { min-height: 2.5rem; padding-inline: 1.1rem; }
.home .header-action:hover { color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(44rem, calc(100svh - 4.25rem));
}
.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.4rem;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; }
.lead { max-width: 32rem; color: var(--soft); font-size: 1.12rem; font-weight: 300; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.hero-visual { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
}
.float-card, .float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgb(0 0 0 / 7%);
}
.float-card {
  left: clamp(.5rem, 4%, 2rem);
  bottom: 12%;
  display: grid;
  gap: .15rem;
  width: 11rem;
  padding: .45rem .45rem .7rem;
  border-radius: 14px;
}
.float-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: .45rem; object-fit: cover; border-radius: 9px; }
.float-card strong { padding-inline: .2rem; font-size: 1.08rem; font-weight: 500; }
.float-card span { padding-inline: .2rem; color: var(--soft); font-size: 0.88rem; }
.float-chip {
  right: clamp(.5rem, 5%, 2.5rem);
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 1rem .35rem .35rem;
  border-radius: 50rem;
}
.float-chip img { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.float-chip span { display: grid; color: var(--soft); font-size: 0.88rem; line-height: 1.25; }
.float-chip strong { color: var(--ink); font-size: 0.97rem; font-weight: 500; }

/* Formats row */
.formats { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); }
.formats > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 7rem;
  padding: 1rem;
}
.formats > * + * { border-left: 1px solid var(--line); }
.formats p { justify-content: flex-start; padding-left: var(--pad); color: var(--soft); font-size: 0.97rem; line-height: 1.4; }
.formats a { color: var(--ink); font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none; transition: background-color .2s; }
.formats a:hover { background: var(--wash); }
.formats svg, .mini svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Emblem divider and counter */
.mark { display: grid; place-items: center; min-height: 11rem; }
.mark img { width: 3.2rem; height: auto; }
.counter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.1rem;
  color: var(--faint);
  font-size: 0.88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.counter span { color: var(--ink); letter-spacing: 0; }
.counter i { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* Section blocks */
.block-head {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.block-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.block-head > p:not(.badge) { max-width: 31rem; color: var(--soft); font-weight: 300; line-height: 1.6; }

/* Library */
.home .library-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 0 var(--pad) 1.5rem;
}
.home .filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.home .filters button {
  min-height: 2.4rem;
  padding: .35rem .95rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: #fff;
  color: var(--soft);
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.home .filters button:hover { border-color: var(--ink); color: var(--ink); }
.home .filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.home .search {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: min(100%, 17rem);
  min-height: 2.4rem;
  padding-inline: .95rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: #fff;
}
.home .search input { height: 2.3rem; font-size: 1rem; color: var(--ink); }

.cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-right: -1px;
  border-top: 1px solid var(--line);
}
.cell { padding: .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell a {
  display: grid;
  align-content: start;
  gap: .45rem;
  height: 100%;
  padding: .85rem .85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: .55rem;
  object-fit: cover;
  border-radius: 10px;
}
.kind { color: var(--faint); font-size: 0.88rem; letter-spacing: .05em; text-transform: uppercase; }
.cell h3 { font-size: 1.12rem; line-height: 1.2; }
.cell p { color: var(--soft); font-size: 0.97rem; font-weight: 300; line-height: 1.5; }
.more { margin-top: .25rem; font-size: 0.93rem; font-weight: 500; }
.cell a:is(:hover, :focus-visible) { border-color: var(--line); box-shadow: 0 14px 34px rgb(0 0 0 / 7%); transform: translateY(-2px); }
.home .empty { margin: 1rem var(--pad) 2rem; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.home .empty p { margin-bottom: 1rem; color: var(--soft); }

/* Method + video */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo-cell + .duo-cell { border-left: 1px solid var(--line); }
.duo-visual { position: relative; display: grid; place-items: center; height: clamp(17rem, 28vw, 22rem); overflow: hidden; border-bottom: 1px solid var(--line); background-color: var(--wash); }
.duo-visual video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  min-height: 2.4rem;
  padding: .3rem 1rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50rem;
  background: rgb(0 0 0 / 35%);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.orbit { position: relative; width: 15rem; aspect-ratio: 1; border: 1px dashed #cfcfcf; border-radius: 50%; }
.orbit::before { content: ""; position: absolute; inset: 22%; border: 1px solid var(--line); border-radius: 50%; }
.node {
  position: absolute;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: #fff;
  font-size: 0.89rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgb(0 0 0 / 5%);
  transform: translate(-50%, -50%);
}
.n1 { left: 50%; top: 0; }
.n2 { left: 7%; top: 75%; }
.n3 { left: 93%; top: 75%; }
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.core img { width: 1.9rem; height: auto; filter: grayscale(1) brightness(1.6); }

.duo-copy { display: grid; justify-items: start; gap: .7rem; padding: 1.75rem var(--pad) 2.25rem; }
.mini { display: flex; align-items: center; gap: .45rem; color: var(--soft); font-size: 0.89rem; }
.mini svg { width: 1rem; height: 1rem; }
.duo-copy h3 { font-size: 1.35rem; }
.duo-copy p:not(.mini) { max-width: 30rem; color: var(--soft); font-size: 1.05rem; font-weight: 300; line-height: 1.55; }
.duo-copy a { margin-top: .5rem; color: var(--ink); font-size: 1rem; text-decoration: none; }
.duo-copy a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.faq-visual { position: relative; min-height: 24rem; overflow: hidden; border-right: 1px solid var(--line); background: var(--wash); }
.faq-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.faq-list { padding: clamp(1rem, 2vw, 1.5rem); }
.faq-list details { border: 1px solid var(--line); border-top-width: 0; background: #fff; }
.faq-list details:first-child { border-top-width: 1px; border-radius: 12px 12px 0 0; }
.faq-list details:last-child { border-radius: 0 0 12px 12px; }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 4.25rem;
  padding: 1rem 3.25rem 1rem 1.4rem;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--faint); }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  color: var(--soft);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.3rem 2.6rem; color: var(--soft); font-size: 1.05rem; font-weight: 300; line-height: 1.6; }
.faq-cta { display: grid; justify-items: center; gap: 1.25rem; padding: clamp(3rem, 6vw, 4.5rem) var(--pad); border-top: 1px solid var(--line); text-align: center; }
.faq-cta p { max-width: 26rem; font-size: 1.15rem; line-height: 1.45; letter-spacing: -.015em; }

/* Footer */
.home .clean-footer { overflow: visible; border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.home .clean-footer:focus { outline: none; }
.home .clean-footer :focus-visible { outline-color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: clamp(3rem, 6vw, 4.5rem) var(--pad); }
.footer-news { display: grid; justify-items: start; align-content: start; gap: 1.1rem; }
.footer-news h2 { margin-top: .75rem; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.home .newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 22rem);
  margin: 0;
}
.home .newsletter-form input {
  min-width: 0;
  min-height: 3rem;
  padding: .5rem 8rem .5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.home .newsletter-form input::placeholder { color: var(--faint); }
.home .newsletter-form .pill { position: absolute; top: .25rem; right: .25rem; min-height: 2.5rem; padding-inline: 1.1rem; }
.home .newsletter-note { margin-top: .6rem; color: var(--faint); font-size: 0.89rem; }
.footer-col { display: grid; align-content: start; justify-items: start; gap: .7rem; }
.footer-col h2 { margin-bottom: .35rem; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.footer-col a { color: var(--soft); font-size: 1rem; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.1rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.89rem;
}
.footer-base p:nth-child(2) { text-align: center; }
.footer-base a { justify-self: end; color: var(--soft); text-decoration: none; }
.footer-base a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 64rem) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
}
@media (max-width: 50rem) {
  .home .site-header nav { flex-direction: column; align-items: stretch; padding: 0; border: 0; }
  .home .site-header nav a { font-size: 1.08rem; }
  .home .header-inner { padding-block: .55rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { height: 24rem; border-top: 1px solid var(--line); }
  .formats { grid-template-columns: 1fr 1fr; }
  .formats p { grid-column: 1 / -1; justify-content: center; padding-left: 1rem; min-height: 4rem; border-bottom: 1px solid var(--line); }
  .formats > :nth-child(2), .formats > :nth-child(4) { border-left: 0; }
  .formats > :nth-child(n + 4) { border-top: 1px solid var(--line); }
  .formats p br { display: none; }
  .duo, .faq { grid-template-columns: 1fr; }
  .duo-cell + .duo-cell { border-left: 0; border-top: 1px solid var(--line); }
  .faq-visual { min-height: 14rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { grid-template-columns: 1fr 1fr; }
  .footer-base p:nth-child(2) { display: none; }
}
@media (max-width: 36rem) {
  .cells { grid-template-columns: 1fr; }
  .float-card { width: 9rem; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-portrait { animation: fade 1.6s var(--ease) both; }
  .float-card { animation: rise 1s var(--ease) .5s both; }
  .float-chip { animation: rise 1s var(--ease) .65s both; }
}

/* Full-width hero photo */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero-visual { position: absolute; inset: 0; z-index: -1; border-left: 0; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgb(6 22 20 / 72%) 0%, rgb(6 22 20 / 40%) 38%, transparent 62%);
  pointer-events: none;
}
.hero-portrait { object-position: 70% 30%; }
.float-card, .float-chip { z-index: 1; color: var(--ink); }
.float-card { left: auto; right: clamp(13rem, 20vw, 18rem); }
.hero-copy { position: relative; }
.hero .lead { color: rgb(255 255 255 / 85%); }
.hero .badge { border-color: rgb(255 255 255 / 35%); color: rgb(255 255 255 / 85%); background: rgb(0 0 0 / 15%); }
.hero .badge span { background: #fff; color: var(--ink); }
.hero .pill-dark { border-color: #fff; background: #fff; color: var(--ink); }
.hero .pill-dark:hover { background: #e9e9e9; border-color: #e9e9e9; }
.hero .pill-line { border-color: rgb(255 255 255 / 55%); background: transparent; color: #fff; }
.hero .pill-line:hover { border-color: #fff; }
.hero :focus-visible { outline-color: #fff; }
@media (max-width: 50rem) {
  .hero { min-height: 40rem; }
  .hero-visual { height: auto; border-top: 0; }
  .hero-visual::after { background: linear-gradient(0deg, rgb(6 22 20 / 85%) 0%, rgb(6 22 20 / 55%) 55%, rgb(6 22 20 / 20%) 100%); }
  .hero-copy { align-content: end; }
  .float-card, .float-chip { display: none; }
}

/* Side rails: two hairlines framing the page, as in the reference */
.home {
  --rail: clamp(.75rem, 2.5vw, 2.25rem);
  --pad: clamp(1rem, 3vw, 2.75rem);
}
body.home::before,
body.home::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
body.home::before { left: var(--rail); }
body.home::after { right: var(--rail); }
.home .header-inner { padding-inline: calc(var(--rail) + var(--pad)); }
.frame main > * { margin-inline: var(--rail); }
.frame main > * + * {
  border-top: 1px solid var(--line);
  border-image: linear-gradient(var(--line), var(--line)) 1 / 1px 0 0 0 / 0 100vw;
}
.block, .formats, .duo, .faq-block { overflow-x: clip; }
.footer-grid, .footer-base { padding-inline: calc(var(--rail) + var(--pad)); }

/* Header floats over the hero: transparent at the top, white once scrolled */
.home .site-header {
  position: fixed;
  inset: 0 0 auto;
  transition: background-color .3s, color .3s, border-color .3s;
}
.home .site-header[data-scroll-state="top"] {
  color: #fff;
  background: transparent;
  border-bottom-color: rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home .site-header[data-scroll-state="top"] nav { border-color: rgb(255 255 255 / 30%); }
.home .site-header[data-scroll-state="top"] nav a { color: rgb(255 255 255 / 80%); }
.home .site-header[data-scroll-state="top"] nav a:hover { color: #fff; }
.home .site-header[data-scroll-state="top"] nav [aria-current="page"] { background: #fff; color: var(--ink); }
.home .site-header[data-scroll-state="top"] .header-action { border-color: #fff; background: #fff; color: var(--ink); }
.home .site-header[data-scroll-state="top"] .header-action:hover { background: #e9e9e9; color: var(--ink); }
.home .site-header[data-scroll-state="top"] :focus-visible { outline-color: #fff; }
.home .site-header[data-scroll-state="top"] .brand img { filter: grayscale(1) brightness(1.3); }
/* Mobile menu open: solid white panel */
.home .site-header[data-menu-open="true"] { color: var(--ink); background: #fff; }
.home .site-header[data-menu-open="true"] nav a { color: var(--soft); }
.home .site-header[data-menu-open="true"] nav [aria-current="page"] { background: var(--ink); color: #fff; }
.home .site-header[data-menu-open="true"] .header-action { border-color: var(--ink); background: var(--ink); color: #fff; }

.hero { min-height: min(50rem, 100svh); }
.hero-copy { padding-top: calc(4.25rem + clamp(3rem, 8vw, 6rem)); }

/* Footer legal links */
.home .legal-links { display: flex; justify-content: center; gap: 1.5rem; }
.home .legal-links a { color: var(--soft); text-decoration: none; }
.home .legal-links a:hover { color: var(--ink); }
@media (max-width: 50rem) {
  .home .footer-base { grid-template-columns: 1fr; gap: .6rem; }
  .home .footer-base > * { justify-self: start; text-align: left; }
  .home .legal-links { justify-content: flex-start; }
}

/* Square cards */
.cell a, .cell img { border-radius: 0; }

/* Square panels */
.float-card, .float-card img,
.faq-list details, .faq-list details:first-child, .faq-list details:last-child,
.home .empty { border-radius: 0; }

/* Line icons (replace text arrows, which phones render as emoji) */
svg.i { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; overflow: visible; }
