.usage-page {
  overflow: visible;

  padding-bottom: 0;
}

.usage-hero,
.usage-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 7vw, 100px) 6vw;
}

.usage-hero {
  align-items: center;
}

.usage-hero h1 {
  letter-spacing: -0.05em;
}

.usage-hero figure {
  margin: 0;
}

.usage-hero figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.usage-hero figcaption {
  margin-top: 12px;
  font-size: 13px;
}

.usage-details {
  border-top: 1px solid #ffffff26;
}

.usage-details a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .usage-hero,
  .usage-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

.usage-page main {
  max-width: 1600px;
  margin-inline: auto;
}

.usage-hero {
  background: radial-gradient(ellipse at 75% 35%, #244136 0, transparent 59%);
}

.usage-hero figure img {
  box-shadow: 0 24px 60px #0008;
}

.usage-page .eyebrow {
  color: var(--accent);
}

.usage-features {
  padding: clamp(42px, 7vw, 96px) 6vw;
}

.usage-section-intro {
  max-width: 650px;
  margin-bottom: 36px;
}

.usage-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.usage-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: linear-gradient(155deg, #192a27, #121820 65%);
}

.usage-feature-copy {
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) 0;
}

.usage-feature h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 12px 0;
}

.usage-feature-copy > p:last-child,
.usage-note {
  color: #b8c4cf;
}

.usage-feature figure {
  margin: 0 auto 24px;
  width: min(70%, 218px);
}

.usage-feature img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ffffff30;
  border-radius: 20px;
}

.usage-away img {
  height: auto;
  aspect-ratio: 644 / 575;
  object-fit: cover;
  object-position: top;
}

.usage-note {
  font-size: 13px;
}

.usage-download {
  padding: clamp(48px, 8vw, 96px) 6vw;
  text-align: center;
  border-top: 1px solid #ffffff26;
  background: radial-gradient(ellipse at bottom, #244136, transparent 75%);
}

@media (max-width: 900px) {
  .usage-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.usage-workflow {
  padding: clamp(36px, 6vw, 84px) 6vw;
  border-top: 1px solid #ffffff26;
}

.usage-workflow-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.usage-workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(20px, 4vw, 48px);
  background: #151e25;
  border: 1px solid #ffffff20;
  border-radius: 24px;
}

.usage-workflow-step figure {
  margin: 0;
}

.usage-workflow-step img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.usage-workflow-step .usage-menu-shot {
  width: min(100%, 280px);
  margin-inline: auto;
}

.usage-workflow-step h3 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  margin: 12px 0;
}

.usage-workflow-step p:last-child {
  color: #b8c4cf;
}

@media (max-width: 760px) {
  .usage-workflow-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-workflow-step > div {
    grid-row: 1;
  }
}

.usage-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: clamp(28px, 5vw, 64px) 0 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 55%, #244136, transparent 68%);
}

.usage-hero > div {
  padding-inline: 6vw;
}

.usage-hero .lead {
  max-width: 670px;
  margin: 0 auto 16px;
}

.desk-demo {
  width: 100%;
}

.desk-scene {
  position: relative;
  container-type: inline-size;
  padding: 2% 6% 5%;
  background: linear-gradient(transparent 78%, #4a3328 78%, #271d18);
}

.desk-monitor {
  position: relative;
  width: min(100%, 870px);
  margin-inline: auto;
}


.desk-screen {
  position: absolute;
  inset: 3% 2.3% 27.3%;
  overflow: hidden;
  background: #0e1217;
}

.usage-hero .desk-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.usage-hero .desk-history {
  position: absolute;
  inset: 0;
  background: #0e1217;
  animation: desk-history 12s infinite both;
}

.desk-clock {
  position: absolute;
  left: 6%;
  bottom: 5%;
  display: grid;
  place-items: center;
  padding: 0.3em 0.6em;
  border: 1px solid #b9956b;
  border-radius: 0.25em;
  background: #16100c;
  color: #ffc365;
  font: 600 clamp(15px, 4cqw, 48px) monospace;
}

.desk-clock span {
  grid-area: 1 / 1;
  animation: desk-clock 12s steps(1) infinite both;
}

.desk-clock span:nth-child(2) { animation-delay: -8s; }
.desk-clock span:nth-child(3) { animation-delay: -4s; }



@keyframes desk-history {
  0%, 48%, 96%, 100% { opacity: 0; }
  55%, 89% { opacity: 1; }
}

@keyframes desk-clock {
  0% { visibility: visible; }
  33.333%, 100% { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .usage-hero .desk-history,
  .desk-clock span:not(:first-child) {
    animation: none;
    visibility: hidden;
  }

  .desk-clock span:first-child {
    animation: none;
  }
}

/* Keep the copy and the workstation in the same composition on wide screens. */
@media (min-width: 850px) {
  .usage-hero {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    align-items: center;
    isolation: isolate;
    text-align: left;
    padding-block: 40px;
  }

  .usage-hero > div {
    z-index: 1;
    padding-right: 0;
  }

  .usage-hero h1 {
    font-size: clamp(43px, 5.6vw, 83px);
  }

  .usage-hero .lead {
    margin-inline: 0;
  }

  .usage-hero .desk-demo {
    min-width: 0;
    text-align: center;
  }

  .desk-scene {
    padding: 4% 5% 4%;
  }
}


.desk-scene {
  background: radial-gradient(ellipse at 50% 82%, #294338 0, transparent 65%);
}

.desk-monitor {
  filter: drop-shadow(0 20px 28px #0009);
}


.desk-clock {
  left: 4%;
  bottom: 6%;
  box-shadow: 0 8px 20px #0008;
}

.desk-screen {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 2%;
  padding: 3%;
  background: linear-gradient(130deg, #152321, #101319 75%);
}

.desk-agent {
  align-self: stretch;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 6px;
  background: #11161c;
  color: #c3ced4;
  font: 500 clamp(6px, 1.25cqw, 12px) / 1.45 monospace;
  text-align: left;
}

.desk-window-title {
  margin: 0;
  padding: 0.6em 0.85em;
  background: #242b31;
  color: #eef2f4;
}

.desk-agent-log {
  padding: 0.65em 0.85em;
}

.desk-agent-log p {
  margin: 0 0 0.65em;
  line-height: inherit;
}

.desk-agent-log b,
.desk-agent-result {
  color: #94efb3;
}

.desk-agent-progress {
  animation: desk-log-progress 12s infinite both;
}

.desk-agent-result {
  animation: desk-log-result 12s infinite both;
}

.desk-app {
  position: relative;
  aspect-ratio: 2268 / 1536;
}

.usage-hero .desk-app img {
  clip-path: inset(0.25% round 3% / 4.5%);
}

@keyframes desk-log-progress {
  0%, 20% { opacity: 0; }
  26%, 100% { opacity: 1; }
}

@keyframes desk-log-result {
  0%, 48% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

@media (min-width: 1050px) {
  .usage-hero {
    grid-template-columns: minmax(0, 0.29fr) minmax(0, 0.71fr);
  }

  .usage-hero h1 {
    font-size: clamp(40px, 4.4vw, 75px);
  }

  .desk-monitor {
    width: min(100%, 1050px);
  }

  .desk-scene {
    padding-inline: 1% 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-agent-progress,
  .desk-agent-result {
    animation: none;
  }
}

/* Give the workstation one continuous stage, with copy above the hardware. */
.usage-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: clamp(24px, 3vw, 48px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 62%, #253c35, #0e141a 65%);
}

.usage-hero > div {
  padding-inline: 6vw;
}

.usage-hero h1 {
  margin-block: 12px;
  font-size: clamp(38px, 5vw, 74px);
}

.usage-hero .lead {
  margin-inline: auto;
}

.usage-hero .desk-demo {
  margin: 0;
}

.desk-scene {
  padding: 0 5% 3%;
  background: linear-gradient(transparent 79%, #4b3529 79%, #2e211b);
}

.desk-monitor {
  width: min(100%, 1080px);
}

.desk-screen {
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.5fr);
  gap: 1.5%;
  padding: 2%;
}

.desk-agent {
  align-self: center;
  height: 83%;
}

.desk-app {
  max-height: 100%;
  overflow: hidden;
  border-radius: 2cqw;
}

.desk-clock {
  left: max(5%, calc(50% - 460px));
  bottom: 7%;
}

.desk-demo figcaption {
  padding-bottom: 16px;
}

/* Keep the entire workstation in one lit space. */
.usage-hero {
  gap: 0;
  padding: 0;
  background: #10191b;
}

.usage-hero > div {
  padding: clamp(34px, 6vw, 90px) 6vw 18px;
  background: radial-gradient(ellipse at 50% 100%, #263d36, transparent 72%);
}

.usage-hero .lead {
  max-width: 520px;
}

.desk-scene {
  padding: 4% 5% 4%;
  background:
    radial-gradient(ellipse at 52% 57%, #48716470, transparent 60%),
    linear-gradient(#10191b, #263d36 74%, #3a3027 74%, #211c18);
}

.desk-monitor {
  width: min(100%, 950px);
}

.desk-clock {
  left: max(6%, calc(50% - 435px));
  bottom: 8%;
}

@media (min-width: 1100px) {
  .usage-hero > div {
    position: absolute;
    top: 10%;
    left: 0;
    width: 30%;
    padding: 0 0 0 4%;
    background: none;
    text-align: left;
  }

  .usage-hero h1 {
    font-size: clamp(37px, 4vw, 62px);
  }

  .usage-hero .lead {
    margin-inline: 0;
    font-size: 16px;
  }

  .desk-scene {
    padding: 4% 4% 4% 32%;
  }

  .desk-clock {
    left: 12%;
    bottom: 11%;
  }
}


/* Register the animated screen and clock to the photographed surfaces. */
.usage-hero {
  background: #171b19;
}

.usage-hero > div {
  position: static;
  width: auto;
  padding: clamp(26px, 4vw, 56px) 5vw 16px;
  text-align: center;
}

.usage-hero .lead {
  margin-inline: auto;
}

.desk-scene {
  padding: 0;
  background: none;
}

.desk-monitor {
  width: 100%;
  filter: none;
}

.usage-hero .desk-photo {
  border-radius: 0;
  box-shadow: none;
}

.desk-screen {
  inset: 8.05% 11.05% 39.85% 33.5%;
  padding: 1.2%;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 96% 95%, 96% 100%, 0 100%);
}

.desk-agent {
  font-size: clamp(5px, 0.95cqw, 13px);
}

.desk-clock {
  inset: 71.8% 81.1% 21% 9%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #130e0b;
  font-size: 3.55cqw;
  letter-spacing: 0.045em;
}

.desk-screen {
  inset: 9.15% 22.8% 39.1% 22.8%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2%;
  padding: 1.6%;
  background: radial-gradient(ellipse at 30% 0%, #5376a8, #273b6f 50%, #20254b);
  clip-path: none;
}

.desk-codex,
.desk-app {
  position: relative;
  aspect-ratio: 2268 / 1536;
  overflow: hidden;
  border-radius: 0.7cqw;
  box-shadow: 0 0.7cqw 2cqw #0006;
}

.usage-hero .desk-codex img {
  position: absolute;
  width: 150%;
  height: 122%;
  max-width: none;
  left: -25.2%;
  top: -11.2%;
}

.usage-hero .desk-app img {
  clip-path: inset(0.3% round 3% / 4.5%);
}

.desk-screen {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  padding: 5.5% 2% 2%;
  isolation: isolate;
  background: #24271e;
}

.desk-screen::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/selected/macos-tahoe-dark.webp") center / cover;
  filter: grayscale(1) sepia(0.65) hue-rotate(15deg) brightness(0.72);
  content: "";
}

.desk-menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4em 0.9em;
  background: #252821d9;
  border-bottom: 1px solid #ffffff15;
  backdrop-filter: blur(8px);
  color: #f6f7fa;
  font-size: clamp(5px, 1cqw, 13px);
  white-space: nowrap;
}

.desk-menu-labels,
.desk-menu-status {
  display: flex;
  align-items: center;
  gap: 0.85em;
}

.desk-apple {
  font-family: -apple-system, sans-serif;
  font-size: 1.18em;
}

.usage-hero .desk-menu-status img {
  width: 3.35em;
  height: auto;
}

.desk-menu-status svg {
  width: 3.5em;
  height: 1em;
}

@media (max-width: 600px) {
  .desk-menu-labels span:nth-last-child(-n + 2) {
    display: none;
  }
}

.desk-codex {
  align-self: start;
  aspect-ratio: 1934 / 1115;
  margin-top: 8%;
}

.usage-hero .desk-codex img {
  position: static;
  width: 100%;
  height: 100%;
}

.desk-app {
  align-self: end;
  margin-bottom: 4%;
}

.desk-menu {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 16%;
  width: 29%;
  animation: desk-menu 12s infinite both;
}

.usage-hero .desk-menu img {
  height: auto;
  clip-path: inset(3.5% 6% 4.8% 6% round 6%);
}

@keyframes desk-menu {
  0%, 27%, 58%, 100% { opacity: 0; }
  33%, 51% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-menu {
    animation: none;
    opacity: 0;
  }
}


.desk-menu-time {
  display: inline-grid;
}

.desk-menu-time span {
  grid-area: 1 / 1;
  animation: desk-clock 12s steps(1) infinite both;
}

.desk-menu-time span:nth-child(2) { animation-delay: -8s; }
.desk-menu-time span:nth-child(3) { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  .desk-menu-time span { animation: none; }
  .desk-menu-time span:not(:first-child) { visibility: hidden; }
}
