@import url("site-global-frame.css");

:root {
  --surface: var(--adhemas-surface-light);
  --ink: var(--adhemas-foreground-light);
  --surface-dark: var(--adhemas-surface-dark);
  --foreground-dark: var(--adhemas-foreground-dark);
  --accent-indigo: var(--adhemas-accent-blue);
  --accent-violet: var(--adhemas-accent-violet);
  --accent-charcoal: var(--adhemas-accent-charcoal);
  --cta-surface: var(--adhemas-surface-dark);
  --rail: var(--adhemas-rail);
  --font-sans: var(--adhemas-font-sans);
  --font-display: var(--adhemas-font-display);
}

* { box-sizing: border-box; }

html { background: var(--surface-color); }

body {
  margin: 0;
  color: var(--foreground-color);
  background: var(--surface-color);
  font-family: var(--font-sans);
}

.home-hero {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 90svh;
  padding: 0 var(--rail);
}

.hero-positioning {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 980px);
  text-align: center;
}

.hero-support-field {
  grid-row: 3;
  align-self: center;
  justify-self: center;
}

.hero-eyebrow {
  margin: 0 0 20px;
  color: #6f6c68;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.hero-title {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(56px, 6.15vw, 94px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .98;
  text-wrap: balance;
}

.hero-support {
  margin: 0;
  color: #6f6c68;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.hero-support br {
  display: none;
}

body:not(.is-ready) .hero-eyebrow,
body:not(.is-ready) .hero-title,
body:not(.is-ready) .hero-support {
  opacity: 0;
  transform: translateY(var(--adhemas-motion-load-offset));
}

.hero-eyebrow,
.hero-title,
.hero-support {
  transition: transform var(--adhemas-motion-hero-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-utilities-fade-duration) ease;
}

.hero-eyebrow { transition-delay: var(--adhemas-motion-hero-eyebrow-delay); }
.hero-title { transition-duration: var(--adhemas-motion-hero-title-duration), var(--adhemas-motion-hero-duration); transition-delay: var(--adhemas-motion-hero-title-delay); }
.hero-support { transition-delay: var(--adhemas-motion-hero-support-delay); }

.selected-work {
  position: relative;
  /* Keep the transparent section and its content above the single
     viewport wash. The wash darkens the surface behind it without
     dimming the information being revealed. */
  z-index: 3;
  --editorial-lead-alpha: .42;
  color: var(--foreground-dark);
  padding: clamp(128px, 16vh, 220px) var(--rail) clamp(144px, 18vh, 240px);
}

.selected-work-inner,
.editorial-overview-row,
.cards-display-grid { position: relative; z-index: 4; }

.selected-work-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
}

.editorial-overview-row,
.work-card {
  transition: transform var(--adhemas-motion-reveal-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-opacity-duration) ease;
}

.editorial-overview-row {
  grid-column: 1 / -1;
  transition-delay: 290ms;
}

.work-card:nth-child(1) { transition-delay: 450ms; }
.work-card:nth-child(2) { transition-delay: 560ms; }
.work-card:nth-child(3) { transition-delay: 670ms; }

.selected-work.is-revealed .work-card {
  transition-delay: 0ms;
}

.surface-wash {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  display: none;
}

body.motion-ready .selected-work:not(.is-overview-revealed) .editorial-overview-row,
body.motion-ready .selected-work:not(.is-revealed) .work-card {
  opacity: 0;
  transform: translateY(48px);
}

.selected-work-inner > .editorial-overview-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  margin-inline: auto;
  margin-block-end: clamp(72px, 10vw, 144px);
}

.section-label {
  margin: 0;
  grid-column: 2 / span 3;
  color: rgba(255, 255, 255, .48);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.editorial-lead {
  grid-column: 6 / span 5;
  margin: 0;
  color: rgba(255, 255, 255, .38);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.12;
}

.overview-word {
  color: rgb(255 255 255 / calc(.38 + (var(--word-reveal, 0) * .62)));
}

.cards-display-grid {
  grid-column: 2 / span 10;
  gap: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 0;
}

.work-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  will-change: transform;
}

.work-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: .8;
  place-items: center;
  border: 0;
  border-radius: 16px;
}

.work-card:nth-child(1) .work-placeholder {
  color: #fff;
  background: var(--accent-indigo);
}

.work-card:nth-child(2) .work-placeholder {
  color: #000;
  background: var(--accent-violet);
}

.work-card:nth-child(3) .work-placeholder {
  color: #fff;
  background: var(--accent-charcoal);
}

.placeholder-label {
  color: currentColor;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  opacity: .72;
  text-transform: uppercase;
}

.work-placeholder-art {
  display: block;
  width: 85%;
  height: auto;
  max-height: 85%;
  object-fit: contain;
  pointer-events: none;
  transition: transform var(--adhemas-motion-hover-duration) var(--adhemas-motion-ease);
  will-change: transform;
}

.work-card:nth-child(3) .work-placeholder-art {
  width: 60%;
  max-height: 60%;
}

.work-placeholder--fill {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
}

.work-card:nth-child(2) .work-placeholder--fill {
  background: transparent;
}

.work-placeholder--fill .work-placeholder-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform var(--adhemas-motion-hover-duration) var(--adhemas-motion-ease),
    opacity var(--adhemas-motion-menu-item-fade-duration) ease;
}

.work-placeholder:not(.work-placeholder--fill) {
  position: relative;
  overflow: hidden;
}

.work-copy {
  display: flex;
  flex-direction: column;
  min-height: 112px;
  padding: 16px 8px 0;
}

.work-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.work-proof {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.work-status {
  margin: auto 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.work-status--available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.work-status--available span {
  font-size: 14px;
  line-height: 1;
  transition: transform var(--adhemas-motion-ui-duration) var(--adhemas-motion-ease);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-status--available span { transform: translateX(3px); }
}

.about-teaser {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: var(--surface);
  padding: clamp(160px, 20vh, 280px) var(--rail) clamp(180px, 22vh, 320px);
}

.about-teaser .editorial-overview-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  max-width: 1244px;
  margin-inline: auto;
}

.about-teaser .editorial-overview-row .section-label {
  grid-column: 2 / span 3;
  color: rgba(0, 0, 0, .52);
}

.about-teaser .editorial-focus {
  grid-column: 6 / span 5;
  max-width: 560px;
}

.about-teaser .editorial-focus h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.about-teaser .editorial-focus h2 span { display: block; }

.about-teaser .editorial-focus p {
  max-width: 38ch;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, .64);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.24;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-top: 44px;
  padding: 0 24px;
  color: #fff;
  background: var(--cta-surface);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  transform-origin: left center;
  transition: transform var(--adhemas-motion-ui-duration) var(--adhemas-motion-ease), background-color var(--adhemas-motion-ui-duration) ease;
}

.tools-cta {
  /* Tools follows the About primary CTA treatment. */
  margin-top: 44px;
}

.about-cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.about-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform calc(var(--adhemas-motion-ui-duration) + 60ms) var(--adhemas-motion-ease);
}

@media (hover: hover) and (pointer: fine) {
  .about-cta:hover {
    transform: scale(1.04);
  }
  .about-cta:hover svg { transform: translateX(3px); }
  .tools-cta:hover svg { transform: translateX(4px); }
  .about-cta:active { transform: scale(.98); }
}

body.motion-ready .about-teaser:not(.is-revealed) .editorial-overview-row {
  opacity: 0;
  transform: translateY(48px);
}

.editorial-overview-row {
  transition: transform var(--adhemas-motion-reveal-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-opacity-duration) ease;
}

.tools-teaser {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: #f7f7f7;
  padding: clamp(160px, 20vh, 280px) var(--rail) clamp(180px, 22vh, 320px);
}

.tools-teaser .editorial-overview-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  width: 100%;
  max-width: 1244px;
  margin-inline: auto;
}

.tools-teaser .editorial-overview-row .section-label {
  grid-column: 2 / span 3;
  color: rgba(0, 0, 0, .52);
}

.tools-teaser .editorial-focus {
  grid-column: 6 / span 6;
  max-width: none;
}

.tools-teaser .editorial-focus h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.tools-teaser .editorial-focus h2 span { display: block; }

.tools-teaser .editorial-focus p {
  max-width: 48ch;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, .64);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.24;
}

.tools-card-rail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  width: 100%;
  max-width: 1244px;
  margin: 44px auto 0;
}

.tools-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  grid-column: 6 / span 6;
}

.tools-card-rail .tools-cta {
  grid-column: 6 / span 6;
  justify-self: start;
  margin-top: 44px;
}

.tool-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tool-card-media {
  display: grid;
  width: 100%;
  aspect-ratio: .98;
  place-items: center;
  padding: 24px;
  background: var(--adhemas-tool-card-surface);
  border-radius: 16px;
}

.tool-card-media-label {
  margin: 0;
  color: var(--adhemas-tool-card-label);
  font-family: var(--adhemas-font-display);
  font-size: 3rem;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  letter-spacing: -.04em;
  line-height: .98;
  text-align: center;
}

.tool-card-copy {
  padding: 12px 8px 0;
}

.tool-card-description {
  margin: 0;
  color: rgba(0, 0, 0, .58);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}

body.motion-ready .tools-teaser:not(.is-revealed) .editorial-overview-row,
body.motion-ready .tools-teaser:not(.is-revealed) .tool-card,
body.motion-ready .tools-teaser:not(.is-revealed) .tools-card-rail .tools-cta {
  opacity: 0;
  transform: translateY(48px);
}

.editorial-overview-row,
.tool-card,
.tools-card-rail .tools-cta {
  transition: transform var(--adhemas-motion-reveal-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-opacity-duration) ease, background-color var(--adhemas-motion-ui-duration) ease, color var(--adhemas-motion-ui-duration) ease, padding 320ms var(--adhemas-motion-ease), border-radius var(--adhemas-motion-ui-duration) ease;
}

.tool-card:nth-child(1) { transition-delay: 140ms; }
.tool-card:nth-child(2) { transition-delay: var(--adhemas-motion-hero-eyebrow-delay); }
.tools-card-rail .tools-cta { transition-delay: 380ms; }

.labs-teaser {
  position: relative;
  z-index: 1;
  color: var(--foreground-dark);
  background: var(--surface-dark);
  padding: clamp(160px, 20vh, 280px) var(--rail) clamp(180px, 22vh, 320px);
}

.labs-call {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
}

.labs-card {
  display: flex;
  grid-column: 2 / span 10;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 44px;
  width: 100%;
  aspect-ratio: 1.7;
  padding: 48px;
  color: #fff;
  background: var(--accent-indigo);
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
}

.labs-card h2 {
  max-width: 18ch;
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.labs-cta {
  margin-top: 0;
  pointer-events: none;
}

body.motion-ready .labs-teaser:not(.is-revealed) .labs-card {
  opacity: 0;
  transform: translateY(48px);
}

.labs-card {
  transition: transform var(--adhemas-motion-reveal-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-opacity-duration) ease;
}

@media (hover: hover) and (pointer: fine) {
  .labs-card:hover {
    transform: translateY(-6px);
  }

  .labs-card:hover .labs-cta {
    transform: scale(1.04);
  }

  .labs-card:hover .labs-cta svg {
    transform: translateX(3px);
  }

  .labs-card:active .labs-cta {
    transform: scale(.98);
  }

  .cards-display-grid:has(.work-card:hover) .work-card:not(:hover) {
    opacity: .44;
  }

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

  .work-card:hover .work-placeholder-art {
    transform: scale(1.055);
  }

  .tools-card-grid:has(.tool-card:hover) .tool-card:not(:hover) { opacity: .44; }
  .tool-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 767px) {
  :root { --rail: 24px; }

  .header-grid {
    grid-template-areas: ". identity menu";
    min-height: 96px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .identity { justify-self: center; }
  .wordmark { font-size: 16px; letter-spacing: 0.02em; }

  .menu-layout {
    padding: 24px var(--rail);
  }

  .menu-navigation a {
    font-size: clamp(42px, 12vw, 54px);
    line-height: 1.1;
  }

  .site-utilities {
    bottom: 24px;
    font-size: 12px;
  }

  .utility-links { gap: 16px; }

  .home-hero { padding: 0 24px; }
  .hero-positioning { width: 100%; }
  .hero-eyebrow { margin-bottom: 16px; font-size: 13px; }
  .hero-title {
    width: 100%;
    max-width: none;
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.02;
    text-align: center;
  }
  .hero-support-field { width: 100%; }
  .hero-support {
    width: 100%;
    max-width: none;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }

  .hero-support br {
    display: block;
  }

  .selected-work { padding: 96px 24px 120px; }
  .selected-work-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
  }
  .selected-work-inner > .editorial-overview-row {
    display: block;
    width: 100%;
    max-width: none;
    margin-block-end: 64px;
  }
  .section-label { margin-bottom: 24px; }
  .editorial-lead {
    width: 100%;
    max-width: none;
    font-size: 24px;
  }
  .cards-display-grid {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: none;
  }
  .work-card {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }
  .work-placeholder {
    width: 100%;
    aspect-ratio: .8;
    border-radius: 12px;
  }
  .work-placeholder:not(.work-placeholder--fill) .work-placeholder-art {
    width: 85%;
    max-height: 85%;
  }
  .work-copy {
    min-height: 0;
    padding: 8px 8px 0;
  }
  .work-title { font-size: 16px; }
  .work-proof { font-size: 16px; }
  .work-status { margin-top: 8px; }

  .about-teaser,
  .tools-teaser { padding: 128px 24px 160px; }
  .editorial-overview-row,
  .about-teaser .editorial-overview-row,
  .tools-teaser .editorial-overview-row {
    display: block;
    width: 100%;
    max-width: none;
  }
  .editorial-overview-row .section-label,
  .about-teaser .editorial-overview-row .section-label,
  .tools-teaser .editorial-overview-row .section-label {
    grid-column: auto;
    margin-bottom: 24px;
  }
  .editorial-focus,
  .about-teaser .editorial-focus,
  .tools-teaser .editorial-focus {
    grid-column: auto;
    max-width: none;
  }
  .editorial-focus h2 { font-size: clamp(32px, 9vw, 44px); }
  .about-teaser .editorial-focus p,
  .tools-teaser .editorial-focus p {
    width: 100%;
    max-width: none;
    margin-top: 24px;
    font-size: 19px;
  }
  .about-cta { margin-top: 36px; }
  .tools-card-rail {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 36px;
  }
  .tools-card-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .tool-card-media { aspect-ratio: .88; border-radius: 12px; padding: 16px; }
  .tool-card-media-label { font-size: clamp(1.5rem, 7vw, 2.125rem); }
  .tool-card-copy { padding: 8px 0 0; }
  .tool-card-description { font-size: 16px; line-height: 1.2; }
  .tools-card-rail .tools-cta { margin-top: 36px; }

  .labs-teaser { padding: 128px 24px 160px; }
  .labs-call {
    display: block;
    width: 100%;
    max-width: none;
  }
  .labs-card {
    aspect-ratio: .98;
    border-radius: 12px;
    gap: 36px;
    padding: 32px 24px;
  }
  .labs-card h2 { max-width: 13ch; font-size: clamp(32px, 9vw, 44px); }
}

.contact-footer {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100dvh;
  padding: clamp(160px, 20vh, 280px) var(--rail) clamp(180px, 22vh, 320px);
  color: var(--foreground-dark);
  background: var(--surface-color);
}

.editorial-overview-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
  align-items: start;
}

.editorial-overview-row > .section-label {
  grid-column: 2 / span 3;
  color: rgba(255, 255, 255, .48);
}

.editorial-focus {
  grid-column: 6 / span 5;
  max-width: 560px;
}

.editorial-focus h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.contact-cta {
  margin-top: 44px;
  color: #000;
  background: #fff;
}

body.motion-ready .contact-footer:not(.is-revealed) .editorial-overview-row {
  opacity: 0;
  transform: translateY(48px);
}

.editorial-overview-row {
  transition: transform var(--adhemas-motion-reveal-duration) var(--adhemas-motion-ease), opacity var(--adhemas-motion-opacity-duration) ease;
}

@media (max-width: 767px) {
  .contact-footer {
    display: block;
    min-height: 100dvh;
    padding: 128px 24px 160px;
  }

  .editorial-overview-row,
  .about-teaser .editorial-overview-row,
  .tools-teaser .editorial-overview-row,
  .contact-footer .editorial-overview-row {
    display: block;
    width: 100%;
    max-width: none;
  }

  .editorial-overview-row > .section-label,
  .about-teaser .editorial-overview-row .section-label,
  .tools-teaser .editorial-overview-row .section-label,
  .contact-footer .editorial-overview-row > .section-label {
    grid-column: auto;
    margin-bottom: 24px;
  }
  .editorial-focus,
  .about-teaser .editorial-focus,
  .tools-teaser .editorial-focus,
  .contact-footer .editorial-focus {
    grid-column: auto;
    max-width: none;
  }
  .editorial-focus h2 { max-width: 15ch; font-size: clamp(30px, 8.5vw, 42px); }
  .contact-cta { margin-top: 36px; }
}

/* Shared canvas is driven by installSurfaceTheme in site-motion.js. Keep the
   route body on the same token with no second transition layer. */
body {
  --page-background: var(--surface-color);
  --page-foreground: var(--foreground-color);
  --page-muted: var(--muted-color);
  background-color: var(--surface-color);
  color: var(--foreground-color);
}
@media (prefers-reduced-motion: reduce) {
  .surface-wash { display: none; }
}
.about-teaser, .tools-teaser, .labs-teaser, .contact-footer {
  background: transparent;
  color: inherit;
}
.hero-title, .wordmark, .menu-icon,
.site-header.is-dark-surface .wordmark,
.site-header.is-dark-surface .menu-icon,
.site-utilities, body.is-dark-surface .site-utilities {
  color: inherit;
}
.hero-support, .section-label, .editorial-overview-row .section-label,
.editorial-overview-row .section-label, .editorial-overview-row > .section-label,
.editorial-focus p, .editorial-focus p, .tool-card-description, .work-proof {
  color: var(--page-muted);
  transition: color var(--adhemas-motion-surface-duration) ease-in-out;
}
.overview-word {
  color: color-mix(in srgb, var(--page-foreground) calc(38% + var(--word-reveal, 0) * 62%), transparent);
  transition: color var(--adhemas-motion-surface-duration) ease-in-out;
}
.about-cta:not(.labs-cta) {
  background: var(--page-foreground);
  color: var(--page-background);
  transition: background-color var(--adhemas-motion-surface-duration) ease-in-out, color var(--adhemas-motion-surface-duration) ease-in-out, transform var(--adhemas-motion-ui-duration) ease;
}
@media (prefers-reduced-motion: reduce) {
  body:not([data-motion-preview="true"]),
  body:not([data-motion-preview="true"]) :is(.overview-word, .hero-support, .section-label,
  .editorial-focus p, .editorial-focus p, .tool-card-description, .work-proof,
  .about-cta:not(.labs-cta)) { transition-duration: 0s; }
}

@media (hover: hover) and (pointer: fine) {
  body.is-custom-cursor-active,
  body.is-custom-cursor-active a,
  body.is-custom-cursor-active button,
  body.is-custom-cursor-active .work-card {
    cursor: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  body:not([data-motion-preview="true"]) .work-placeholder {
    transition-duration: 0s;
  }
}

body.case-access-open { overflow: hidden; }

.case-access-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--adhemas-rail);
}
.case-access-modal[hidden] { display: none; }

.case-access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(10px);
}

.case-access-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 16px;
  background: var(--adhemas-surface-soft);
  color: var(--adhemas-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
  font-family: var(--adhemas-font-sans);
}

.case-access-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: currentColor;
}
.case-access-modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.25; }

.case-access-modal__eyebrow,
.case-access-form label {
  margin: 0;
  color: var(--adhemas-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-access-modal h2 {
  max-width: 11ch;
  margin: 20px 0 14px;
  font-family: var(--adhemas-font-sans);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}

.case-access-modal__dialog > p:not(.case-access-modal__eyebrow) {
  max-width: 38ch;
  margin: 0;
  color: var(--adhemas-muted);
  font-size: 16px;
  line-height: 1.4;
}

.case-access-form { margin-top: 32px; }
.case-access-form label { display: block; margin-bottom: 10px; }
.case-access-form input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--adhemas-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--adhemas-surface-light);
  color: var(--adhemas-ink);
  font: inherit;
  outline-offset: 4px;
}
.case-access-form button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--adhemas-ink);
  color: var(--adhemas-surface-light);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.case-access-form button span { font-size: 17px; line-height: 1; }
.case-access-form__error { margin: 16px 0 0; color: #a21818; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .case-access-modal__backdrop { backdrop-filter: none; }
}
