/* The original semaph.io holding page; all assets are served by Semaphore. */
  @font-face {
    font-family: 'Jost';
    src: url(/fonts/Jost.ttf) format('truetype');
    font-weight: 100 900;
    font-display: block;
  }
  @font-face {
    font-family: 'Jost';
    src: url(/fonts/Jost-Italic.ttf) format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: block;
  }
  html, body { height: 100%; margin: 0; }
  /* Safari enlarges longer paragraphs by itself when a phone turns sideways;
     text here stays at the sizes set. */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    background: #000;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Jost', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.025em;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    /* Hidden until the fonts and wordmark are in and the page is sized to
       the screen; then it fades in exactly where it stays. */
    opacity: 0;
  }
  img {
    display: block;
    width: min(360px, 60vw);
    height: auto;
    aspect-ratio: 4896 / 958;
    margin-bottom: 28px;
  }
  .about {
    max-width: 560px;
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.025em;
    text-transform: none;
  }
  br.sideways { display: none; }
  br.desk { display: none; }
  /* Computers: the second paragraph's first line ends at "for larger"; the
     paragraph is as wide as that line. */
  @media (pointer: fine) {
    .desk-line { white-space: nowrap; }
    br.desk { display: inline; }
    .about:last-child { width: min-content; max-width: none; }
  }
  .copy { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  p {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }
  /* The app's SlabButton: a white face with black text and a 1px black
     stroke, on a white slab offset 4px. Hover settles the slab in to 2px;
     press slides the face down onto it. */
  .slab {
    position: relative;
    display: inline-block;
    margin-top: 48px;
    text-decoration: none;
  }
  .slab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: #fff;
    transform: translate(4px, 4px);
    transition: transform 200ms ease-out;
  }
  .slab .face {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #000;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 100ms ease-out,
      background-color 300ms steps(10, jump-end),
      border-color 300ms steps(10, jump-end),
      color 300ms steps(10, jump-end);
  }
  .slab:hover::before { transform: translate(2px, 2px); }
  .slab:not(.open):active .face { transform: translate(2px, 2px); }
  /* Click: the label fades out, then the email field fades in where it was.
     The button keeps its size, so nothing around it moves. Both fades use
     the app's stepped beat. */
  .slab .label { display: block; }
  .slab input {
    position: absolute;
    inset: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    caret-color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-align: center;
    text-transform: none;
    outline: none;
    opacity: 0;
    visibility: hidden;
  }
  /* An invisible copy of what's typed, in the field's type, to measure it. */
  .slab .measure {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: none;
  }
  .slab input::placeholder { color: rgba(255, 255, 255, 0.4); font-style: italic; opacity: 1; }
  /* While the email field is open the face is black with white text and a
     white stroke (the app's black-face slab), faded across with the beat. */
  .slab.open .face { background: #000; border-color: #fff; color: #fff; }
  .slab.open .face { cursor: text; }
  .slab.open .label { animation: fade-out 300ms steps(10, jump-end) forwards; }
  .slab.open input {
    visibility: visible;
    animation: fade-in 300ms steps(10, jump-end) 300ms forwards;
  }
  /* Click anywhere off it: the field fades out, then the label fades back. */
  .slab.closing input {
    visibility: visible;
    opacity: 1;
    animation: fade-out 300ms steps(10, jump-end) forwards;
  }
  .slab.closing .label {
    opacity: 0;
    animation: fade-in 300ms steps(10, jump-end) 300ms forwards;
  }
  /* Enter: the address fades out and Thank you fades in. */
  .slab .thanks {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
  }
  .slab.sent input { animation: fade-out 300ms steps(10, jump-end) forwards; }
  .slab.sent .thanks {
    visibility: visible;
    animation: fade-in 300ms steps(10, jump-end) 300ms forwards;
  }
  .slab.sent .face { cursor: pointer; }
  .slab.closing.sent input { visibility: hidden; animation: none; }
  .slab.closing.sent .thanks {
    visibility: visible;
    opacity: 1;
    animation: fade-out 300ms steps(10, jump-end) forwards;
  }
  main { transition: transform 250ms ease-out; }
  main.ready { opacity: 1; animation: arrive 900ms ease-out both; }
  /* A phone on its side: little height, plenty of width. Everything tightens
     up and the lines run wider, so the whole page fits without scrolling. */
  @media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    main { gap: 16px; }
    img { width: 240px; margin-bottom: 8px; }
    .about { max-width: 640px; font-size: 17px; }
    /* The second paragraph wraps to the width of the first line: the block
       is as wide as the first line, which never wraps here. */
    .copy { gap: 8px; width: min-content; }
    .about:first-child { white-space: nowrap; }
    /* …and the second paragraph's first line always ends at "larger files,". */
    .sideways-line { white-space: nowrap; }
    br.sideways { display: inline; }
    .slab { margin-top: 16px; }
  }
  /* Sign in: the same slab, a link to the studio's login (James, 16 Oct 2026).
     On a computer it sits top right, outside the page block (which is scaled
     to fit the screen), arriving with it. On a touch screen it goes under
     Request more info instead. */
  .signin .face { text-decoration: none; }
  .signin.corner {
    position: fixed;
    top: 32px;
    right: 32px;
    margin: 0;
    opacity: 0;
  }
  .signin.corner.ready { opacity: 1; animation: arrive 900ms ease-out both; }
  .signin.below { display: none; margin-top: 0; }
  @media (pointer: coarse) {
    .signin.corner { display: none; }
    .signin.below { display: inline-block; }
  }
  @media (prefers-reduced-motion: reduce) { .signin.corner.ready { animation: none; } }
  @keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { main.ready { animation: none; opacity: 1; } }
