/* Corners case study. Brand pieces live inside .cnx blocks and follow the Corners rules:
   radius 0, hairlines not shadows, Bone and Ink, Signal orange only for the mark and "waiting on you". */
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/work/corners/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/work/corners/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

.cn-page {
  --cn-bone: #F1EDE4; --cn-ink: #0B1239; --cn-orange: #F15D2A; --cn-green: #2E5E4E; --cn-blue: #8FC9E0; --cn-graphite: #63656F;
  --cn-hair: #D9D3C7; --cn-raised: #FFFFFF; --cn-soft: #B9BDD0;
  --cn-sans: "Neue Haas Grotesk Display Pro", "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cn-text: "Neue Haas Grotesk Text Pro", "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cn-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
.cnx, .cnx * { border-radius: 0 !important; box-sizing: border-box; }
.cnx { font-family: var(--cn-text); color: var(--cn-ink); }
.cnx-mono { font-family: var(--cn-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.cnx button { font: inherit; color: inherit; cursor: pointer; }
.cnx button:focus-visible, .cnx [tabindex]:focus-visible, .cnx input:focus-visible { outline: 2px solid var(--cn-ink); outline-offset: 2px; }
.cnx-dark button:focus-visible, .cnx-dark input:focus-visible { outline-color: var(--cn-orange); }

/* buttons, chips */
.cnx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--cn-ink); background: transparent; color: var(--cn-ink); transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.cnx-btn:hover { background: var(--cn-raised); }
.cnx-btn[aria-pressed="true"], .cnx-btn.is-dark { background: var(--cn-ink); color: #fff; }
.cnx-btn.is-dark:hover { background: var(--cn-green); border-color: var(--cn-green); }
.cnx-chip { display: inline-flex; align-self: flex-start; padding: 5px 8px; font-family: var(--cn-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; border: 1px solid transparent; }
.cnx-chip.waiting { background: var(--cn-orange); color: var(--cn-ink); }
.cnx-chip.progress { background: var(--cn-blue); color: var(--cn-ink); }
.cnx-chip.signed { background: var(--cn-green); color: #fff; }
.cnx-chip.idle { color: var(--cn-graphite); border-color: var(--cn-graphite); }

/* hero stage: the block shuffle */
.cnx-stage { position: relative; background: var(--cn-bone); border: 1px solid var(--cn-ink); margin: 0 0 clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cnx-stage canvas { display: block; width: 100%; height: clamp(340px, 42vw, 600px); grid-column: 2; grid-row: 1; }
.cnx-stage-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(20px, 3vw, 44px); border-right: 1px solid var(--cn-hair); }
.cnx-stage-word { font-family: var(--cn-sans); font-weight: 600; letter-spacing: -.045em; font-size: clamp(40px, 5.6vw, 84px); line-height: .95; color: var(--cn-ink); margin: 0; }
.cnx-stage-word span { display: block; }
.cnx-stage-word .o { color: var(--cn-graphite); }
.cnx-stage-copy .cnx-mono { color: var(--cn-graphite); line-height: 1.6; }
.cnx-stage-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--cn-ink); color: var(--cn-graphite); }
.cnx-stage .cnx-replay { align-self: flex-start; min-height: 40px; font-size: 14px; }
@media (max-width: 760px) {
  .cnx-stage { grid-template-columns: 1fr; }
  .cnx-stage canvas { grid-column: 1; grid-row: 2; height: 300px; }
  .cnx-stage-copy { border-right: 0; border-bottom: 1px solid var(--cn-hair); flex-direction: row; align-items: flex-end; }
  .cnx-stage-word { font-size: 40px; }
}

/* turn it */
.cnx-turn { background: var(--cn-bone); border: 1px solid var(--cn-ink); }
.cnx-turn canvas { display: block; width: 100%; height: clamp(300px, 34vw, 480px); cursor: grab; touch-action: pan-y; }
.cnx-turn canvas:active { cursor: grabbing; }
.cnx-turn-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--cn-ink); }
.cnx-turn-ctl .end { color: var(--cn-graphite); transition: color 160ms ease-out; }
.cnx-turn-ctl .end.on { color: var(--cn-ink); }
.cnx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; }
.cnx-range::-webkit-slider-runnable-track { height: 1px; background: var(--cn-ink); }
.cnx-range::-moz-range-track { height: 1px; background: var(--cn-ink); }
.cnx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; background: var(--cn-orange); border: 1px solid var(--cn-ink); border-radius: 0; }
.cnx-range::-moz-range-thumb { width: 22px; height: 22px; background: var(--cn-orange); border: 1px solid var(--cn-ink); border-radius: 0; }
.cnx-turn-state { padding: 0 18px 16px; margin: -4px 0 0; color: var(--cn-graphite); min-height: 1.4em; }

/* logo row */
.cnx-logos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border: 1px solid var(--cn-ink); margin-top: clamp(20px, 2.4vw, 32px); }
.cnx-logos > div { display: grid; place-items: center; padding: clamp(22px, 3.4vw, 48px) 18px; min-height: 160px; position: relative; }
.cnx-logos > div + div { border-left: 1px solid var(--cn-ink); }
.cnx-logos img { width: 100%; height: auto; display: block; }
.cnx-logos .h img { max-width: 300px; }
.cnx-logos .s img { max-width: 150px; }
.cnx-logos .m img { max-width: 92px; }
.cnx-logos .bone { background: var(--cn-bone); }
.cnx-logos .ink { background: var(--cn-ink); }
.cnx-logos .lbl { position: absolute; left: 12px; bottom: 10px; color: var(--cn-graphite); font-size: 10px; }
.cnx-logos .ink .lbl { color: var(--cn-soft); }

/* motion tabs */
.cnx-motion { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid var(--cn-ink); background: var(--cn-bone); }
.cnx-motion canvas { display: block; width: 100%; height: 100%; min-height: 360px; border-right: 1px solid var(--cn-ink); }
.cnx-motion-side { display: flex; flex-direction: column; }
.cnx-motion-tab { text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--cn-ink); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; transition: background-color 160ms ease-out; }
.cnx-motion-tab:hover { background: var(--cn-raised); }
.cnx-motion-tab[aria-selected="true"] { background: var(--cn-ink); color: #fff; }
.cnx-motion-tab b { font-family: var(--cn-sans); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.cnx-motion-tab .cnx-mono { color: var(--cn-graphite); align-self: center; }
.cnx-motion-tab[aria-selected="true"] .cnx-mono { color: var(--cn-soft); }
.cnx-motion-tab span.d { grid-column: 1 / -1; font-size: 15px; line-height: 1.45; color: inherit; opacity: .82; }
.cnx-motion-foot { margin-top: auto; padding: 16px 20px; color: var(--cn-graphite); }

/* laptop with the live board */
.cnx-laptop { position: relative; margin: 0 auto; max-width: 1312px; }
.cnx-laptop > img { display: block; width: 100%; height: auto; position: relative; z-index: 2; pointer-events: none; }
.cnx-screen { position: absolute; left: 12.365%; top: 4.267%; width: 75.29%; height: 85.96%; overflow: hidden; background: var(--cn-bone); z-index: 1; }
.cnx-screen iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 810px; border: 0; transform-origin: 0 0; }
.cnx-board-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--mute); }
.cnx-board-note .cnx-mono { color: var(--mute); }
.cnx-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); }
.cnx-benefits > div { border-top: 2px solid var(--cn-ink); padding-top: 16px; }
.cnx-benefits > div:last-child { border-color: var(--cn-orange); }
.cnx-benefits h3 { font-family: var(--cn-sans); margin: 0 0 8px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.cnx-benefits p { margin: 0; color: var(--mute); font-size: 17px; line-height: 1.5; }

/* the iMac with the project flow */
.cnx-imac { position: relative; margin: 0 auto; max-width: 980px; }
.cnx-imac > img { display: block; width: 100%; height: auto; position: relative; z-index: 2; pointer-events: none; }
.cnx-imac-screen { position: absolute; left: 2.941%; top: 3.985%; width: 94.1%; height: 62.33%; overflow: hidden; background: var(--cn-bone); z-index: 1; }
.cnx-imac-screen iframe { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }

/* phone approval */
.cnx-phonewrap { display: grid; place-items: center; padding: clamp(28px, 4vw, 64px) 16px; background: var(--cn-ink); }
.cnx-phone { width: min(360px, 100%); background: #05081d; padding: 12px; border-radius: 46px !important; box-shadow: 0 0 0 1px #2A3366; position: relative; }
.cnx-phone-screen { background: var(--cn-bone); border-radius: 36px !important; overflow: hidden; display: flex; flex-direction: column; min-height: 640px; position: relative; }
.cnx-phone-top { padding: 40px 18px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--cn-hair); }
.cnx-phone-top .who { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.cnx-phone-top .who i { width: 30px; height: 30px; background: var(--cn-ink); display: grid; place-items: center; }
.cnx-phone-top .who svg { width: 20px; height: auto; }
.cnx-phone-top .cnx-mono { color: var(--cn-graphite); font-size: 11px; }
.cnx-phone-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cnx-phone-body h4 { margin: 0; font-family: var(--cn-sans); font-size: 25px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.cnx-phone-media { aspect-ratio: 16 / 9; background: var(--cn-ink); color: var(--cn-bone); position: relative; overflow: hidden; }
.cnx-phone-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cnx-phone-media .tc, .cnx-phone-media .hint { position: absolute; left: 8px; background: var(--cn-ink); color: var(--cn-bone); padding: 3px 6px; font-size: 10px; }
.cnx-phone-media .tc { top: 8px; font-variant-numeric: tabular-nums; }
.cnx-phone-media .hint { bottom: 11px; }
.cnx-phone-media button { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 1px solid var(--cn-bone); background: var(--cn-ink); display: grid; place-items: center; transition: opacity 160ms ease-out; }
.cnx-phone-media .i-pause { display: none; }
.cnx-phone-media.playing .i-play { display: none; }
.cnx-phone-media.playing .i-pause { display: block; }
.cnx-phone-media.playing button, .cnx-phone-media.playing .hint { opacity: 0; }
.cnx-phone-media.playing:hover button, .cnx-phone-media.playing button:focus-visible { opacity: 1; }
.cnx-phone-media .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cn-orange); width: 0; }
.cnx-phone-body p { margin: 0; font-size: 15px; line-height: 1.5; color: #2A2F55; }
.cnx-hist { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--cn-hair); display: flex; flex-direction: column; gap: 7px; color: var(--cn-graphite); font-family: var(--cn-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.cnx-hist div { display: flex; justify-content: space-between; gap: 10px; }
.cnx-hist dd { margin: 0; text-align: right; }
.cnx-hist .ok dd { color: var(--cn-green); }
.cnx-hist .new { animation: cnxIn 420ms cubic-bezier(.2,.7,.2,1); }
.cnx-phone-act { padding: 14px 18px 26px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cn-hair); background: var(--cn-raised); }
.cnx-phone-act .cnx-btn { min-height: 50px; font-size: 16px; }
.cnx-done { position: absolute; inset: 0; background: var(--cn-bone); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 240ms ease-out; z-index: 3; }
.cnx-done.on { opacity: 1; pointer-events: auto; }
.cnx-done canvas { width: 100%; height: 260px; display: block; }
.cnx-done h4 { margin: 0; font-family: var(--cn-sans); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.cnx-done .cnx-mono { color: var(--cn-green); }
.cnx-done .cnx-btn { margin-top: 18px; }
@keyframes cnxIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* voice */
.cnx-voice { border: 1px solid var(--cn-ink); background: var(--cn-bone); }
.cnx-voice-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--cn-ink); }
.cnx-switch { display: inline-flex; border: 1px solid var(--cn-ink); }
.cnx-switch button { border: 0; background: transparent; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.cnx-switch button[aria-pressed="true"] { background: var(--cn-ink); color: #fff; }
.cnx-voice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.cnx-voice-list li { padding: 20px 18px 22px; border-bottom: 1px solid var(--cn-hair); display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.cnx-voice-list li:nth-child(odd) { border-right: 1px solid var(--cn-hair); }
.cnx-voice-list li:nth-last-child(-n+2) { border-bottom: 0; }
.cnx-voice-list .cnx-mono { color: var(--cn-graphite); }
.cnx-voice-list q { quotes: none; font-family: var(--cn-sans); font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; transition: opacity 160ms ease-out; }
.cnx-voice[data-mode="other"] .cnx-voice-list q { color: var(--cn-graphite); font-weight: 400; }
.cnx-voice-rules { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; border-top: 1px solid var(--cn-ink); color: var(--cn-graphite); }
.cnx-voice-rules s { text-decoration-color: var(--cn-orange); text-decoration-thickness: 2px; }

/* color and type */
.cnx-palette { display: grid; grid-template-columns: 62fr 24fr 6fr 3fr 3fr 2fr; height: clamp(200px, 22vw, 300px); border: 1px solid var(--cn-ink); }
.cnx-sw { position: relative; border: 0; padding: 12px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; overflow: hidden; transition: flex-grow 200ms ease-out; }
.cnx-sw + .cnx-sw { border-left: 1px solid var(--cn-ink); }
.cnx-sw b { font-family: var(--cn-sans); font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.cnx-sw .cnx-mono { font-size: 11px; white-space: nowrap; opacity: .85; }
.cnx-sw .use { position: absolute; left: 12px; top: 12px; right: 12px; font-size: 13px; line-height: 1.35; opacity: .9; }
.cnx-sw.narrow b, .cnx-sw.narrow .cnx-mono, .cnx-sw.narrow .use { display: none; }
.cnx-sw-info { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--cn-ink); border-top: 0; background: var(--cn-bone); min-height: 58px; }
.cnx-sw-info b { font-family: var(--cn-sans); font-size: 18px; }
.cnx-sw-info span { color: #2A2F55; font-size: 15px; }
.cnx-sw-info .cnx-mono { color: var(--cn-graphite); }
.cnx-status { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--cn-ink); border-top: 0; background: var(--cn-raised); }
.cnx-status > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cnx-status > div + div { border-left: 1px solid var(--cn-hair); }
.cnx-status p { margin: 0; font-size: 14px; line-height: 1.45; color: #2A2F55; }
.cnx-type { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--cn-ink); margin-top: clamp(20px, 2.4vw, 32px); background: var(--cn-bone); }
.cnx-type > div { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.cnx-type > div + div { border-left: 1px solid var(--cn-ink); background: var(--cn-raised); }
.cnx-type .big { font-family: var(--cn-sans); font-size: clamp(48px, 7vw, 104px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.cnx-type .cnx-mono { color: var(--cn-graphite); }
.cnx-receipts { list-style: none; margin: 0; padding: 0; font-family: var(--cn-mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; display: flex; flex-direction: column; gap: 6px; }
.cnx-receipts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--cn-hair); padding-bottom: 6px; }
.cnx-receipts li span:last-child { color: var(--cn-graphite); }

/* page-level accents */
.cn-page .moment { background: var(--cn-ink); border-radius: 0; }
.cn-page .moment-count { color: var(--cn-orange); }
.cn-page .moment p { color: rgba(241, 237, 228, .8); }
.cn-page .cs2-hero .shot img, .cn-page .ch-media .shot img { border-radius: 0; }
.cn-page .cn-square .shot img { border-radius: 0; }
.cn-copied { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cn-ink); color: #fff; padding: 10px 14px; font-family: var(--cn-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity 160ms ease-out; z-index: 50; pointer-events: none; }
.cn-copied.on { opacity: 1; }

@media (max-width: 760px) {
  .cnx-logos { grid-template-columns: 1fr 1fr; }
  .cnx-logos .h { grid-column: 1 / -1; }
  .cnx-logos .s { border-left: 0 !important; border-top: 1px solid var(--cn-ink); }
  .cnx-logos .m { border-top: 1px solid var(--cn-ink); }
  .cnx-motion { grid-template-columns: 1fr; }
  .cnx-motion canvas { min-height: 280px; height: 280px; border-right: 0; border-bottom: 1px solid var(--cn-ink); }
  .cnx-motion-tab { padding: 14px 16px; }
  .cnx-laptop > img, .cnx-laptop .cnx-screen-frame { display: none; }
  .cnx-screen { position: static; width: 100%; height: auto; border: 1px solid var(--cn-ink); }
  .cnx-screen iframe { position: static; width: 100%; height: 760px; transform: none !important; }
  .cnx-benefits { grid-template-columns: 1fr; }
  .cnx-voice-list { grid-template-columns: 1fr; }
  .cnx-voice-list li { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--cn-hair) !important; }
  .cnx-voice-list li:last-child { border-bottom: 0 !important; }
  .cnx-palette { grid-template-columns: 1fr; height: auto; }
  .cnx-sw { min-height: 64px; flex-direction: row; justify-content: space-between; align-items: center; }
  .cnx-sw + .cnx-sw { border-left: 0; border-top: 1px solid var(--cn-ink); }
  .cnx-sw .use { display: none; }
  .cnx-sw.narrow b, .cnx-sw.narrow .cnx-mono { display: block; }
  .cnx-sw-info { grid-template-columns: 1fr; }
  .cnx-status { grid-template-columns: 1fr 1fr; }
  .cnx-status > div:nth-child(3) { border-left: 0; }
  .cnx-status > div:nth-child(n+3) { border-top: 1px solid var(--cn-hair); }
  .cnx-type { grid-template-columns: 1fr; }
  .cnx-type > div + div { border-left: 0; border-top: 1px solid var(--cn-ink); }
  .cnx-turn-ctl { grid-template-columns: 1fr 1fr; }
  .cnx-turn-ctl .cnx-range { grid-column: 1 / -1; grid-row: 1; }
  .cnx-turn-ctl .end:last-child { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .cnx-hist .new { animation: none; }
  .cnx-done, .cnx-sw, .cnx-btn { transition: none; }
}
.cnx-sw[aria-pressed="true"] { box-shadow: inset 0 -6px 0 currentColor; }
