@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: block;
}

@property --page-color {
  syntax: "<color>";
  inherits: true;
  initial-value: #004fff;
}

:root {
  color-scheme: dark;
  --page-pad: clamp(22px, 2.2vw, 42px);
  --studio-blue: #004fff;
  --surface: var(--visit-color, var(--studio-blue));
  --page-color: var(--surface);
  background-color: var(--page-color);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --left-pad: max(var(--page-pad), env(safe-area-inset-left, 0px));
  --right-pad: max(var(--page-pad), env(safe-area-inset-right, 0px));
  --fade-top: calc(var(--safe-top) + clamp(5rem, 16svh, 10rem));
  --fade-bottom: calc(var(--safe-bottom) + clamp(2.5rem, 12svh, 8rem));
  --muted: #dce6ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--fade-top); }
body {
  margin: 0;
  background-color: var(--page-color);
  color: #f7f7f5;
  font-family: 'Manrope', 'Avenir Next', sans-serif;
  font-size: clamp(20px, 2.35vw, 38px);
  line-height: 1.32;
  letter-spacing: -.025em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The native disclosure state drives the palette for every way of opening an idea. */
:root:has(#intro[open])           { --surface: #5034b9; }
:root:has(#fit[open])             { --surface: #146053; }
:root:has(#simplicity[open])      { --surface: #964526; }
:root:has(#real-work[open])       { --surface: #8b3151; }
:root:has(#automation[open])      { --surface: #385695; }
:root:has(#infrastructure[open])  { --surface: #493760; }
:root:has(#data[open])            { --surface: #005f78; }
:root:has(#operations[open])      { --surface: #46612b; }
:root:has(#configuration[open])   { --surface: #863c82; }
:root:has(#purpose[open])         { --surface: #735019; }
:root:has(#reliability[open])     { --surface: #374956; }
:root:has(#independence[open])    { --surface: #9d3033; }

:root:has(#follow-one-request[open]) { --surface: #193c5f; }
:root:has(#the-spreadsheet-has-a-story[open]) { --surface: #681627; }
:root:has(#put-a-cost-on-the-workaround[open]) { --surface: #13711b; }
:root:has(#pick-the-first-user[open]) { --surface: #300e6a; }
:root:has(#use-the-teams-vocabulary[open]) { --surface: #644b1a; }
:root:has(#define-what-finished-means[open]) { --surface: #176d69; }
:root:has(#automate-the-handoff[open]) { --surface: #661151; }
:root:has(#give-exceptions-a-place[open]) { --surface: #3b6f0e; }
:root:has(#keep-approvals-specific[open]) { --surface: #1b2869; }
:root:has(#preview-a-rule[open]) { --surface: #631f15; }
:root:has(#make-waiting-visible[open]) { --surface: #126c38; }
:root:has(#design-for-a-second-click[open]) { --surface: #570f75; }
:root:has(#a-small-first-integration[open]) { --surface: #5f5f19; }
:root:has(#write-the-first-example[open]) { --surface: #165068; }
:root:has(#let-interfaces-evolve[open]) { --surface: #71133a; }
:root:has(#use-a-safe-rehearsal[open]) { --surface: #196a0e; }
:root:has(#make-failures-legible[open]) { --surface: #261a64; }
:root:has(#trace-a-single-job[open]) { --surface: #6d3e17; }
:root:has(#agree-on-the-measure[open]) { --surface: #116651; }
:root:has(#show-where-numbers-came-from[open]) { --surface: #6f0e6b; }
:root:has(#put-time-on-the-chart[open]) { --surface: #4f691b; }
:root:has(#keep-missing-values-honest[open]) { --surface: #153263; }
:root:has(#compare-like-periods[open]) { --surface: #6c121a; }
:root:has(#design-for-the-next-shift[open]) { --surface: #0f7524; }
:root:has(#give-work-a-clear-owner[open]) { --surface: #3c195f; }
:root:has(#remember-the-reason[open]) { --surface: #685716; }
:root:has(#make-corrections-ordinary[open]) { --surface: #136971; }
:root:has(#fit-the-working-conditions[open]) { --surface: #6a0e47; }
:root:has(#start-with-a-useful-default[open]) { --surface: #33641a; }
:root:has(#give-access-a-purpose[open]) { --surface: #171b6d; }
:root:has(#let-records-travel[open]) { --surface: #662711; }
:root:has(#return-to-the-original-task[open]) { --surface: #0e6f43; }

:root:has(#watch-a-delivery[open]) { --surface: #104946; }
:root:has(#record-a-shortfall[open]) { --surface: #843c40; }
:root:has(#try-it-on-shift[open]) { --surface: #394a83; }
:root:has(#work-queues[open]) { --surface: #754431; }
:root:has(#stock-counts[open]) { --surface: #146053; }
:root:has(#routing-rules[open]) { --surface: #573b85; }

@media (prefers-reduced-motion: no-preference) {
  :root { transition: --page-color 460ms cubic-bezier(.35, 0, .2, 1); }
}

a { color: inherit; }
::selection { background: #fff; color: var(--studio-blue); }
:focus-visible { outline: 2px solid #b8caff; outline-offset: 6px; }
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: calc(23px + var(--safe-top)) var(--right-pad) 36px var(--left-pad);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--page-color) 0, var(--page-color) calc(var(--safe-top) + 2.75rem), transparent 100%);
}
.topbar :is(nav, .logo, .menu-button) { pointer-events: auto; }

/* Fade the scrolling list beneath the navigation, using the active idea's color. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  z-index: 2;
  pointer-events: none;

}
body::before {
  top: 0;
  height: var(--fade-top);
  background: linear-gradient(to bottom, var(--page-color) 30%, color-mix(in srgb, var(--page-color) 90%, transparent) 52%, transparent);
}
body::after {
  bottom: 0;
  z-index: 4;
  height: calc(var(--active-bottom-fade, var(--fade-bottom)) + var(--viewport-bottom, 0px));
  background: linear-gradient(
    to top,
    var(--page-color) calc(var(--viewport-bottom, 0px) + var(--safe-bottom)),
    color-mix(in srgb, var(--page-color) 76%, transparent) calc(var(--viewport-bottom, 0px) + var(--active-bottom-fade, var(--fade-bottom)) * .55),
    transparent
  );
}

.topbar nav, .mobile-menu, .footer-nav, .menu-button { font-family: 'DM Sans', 'Manrope', sans-serif; }
.topbar nav { display: flex; align-items: center; gap: clamp(22px, 2.2vw, 38px); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.topbar a { text-decoration: none; }
.topbar nav a { transition: opacity .2s ease; }
.topbar nav:hover a:not(:hover) { opacity: .94; }
.topbar nav a:hover { opacity: 1; }
.logo { display: flex; align-items: center; gap: 8px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.menu-button { display: none; }
.mobile-menu { position: fixed; z-index: 6; top: calc(72px + var(--safe-top)); left: var(--left-pad); right: var(--right-pad); max-height: calc(100dvh - 88px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; background: #f7f7f5; color: #111; padding: 24px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; box-shadow: 0 18px 45px #0008; }
.mobile-menu:not([hidden]) { display: grid; gap: 18px; animation: menu-in .16s var(--ease) both; }
.mobile-menu a { text-decoration: none; width: fit-content; }
footer { position: relative; z-index: 3; margin: 0 var(--right-pad) 0 var(--left-pad); padding: 35px 0 calc(60px + var(--safe-bottom)); font-size: 15px; line-height: 1.55; letter-spacing: 0; color: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px), (pointer: coarse) and (max-height: 520px) {
  .topbar { padding-top: calc(16px + var(--safe-top)); }
  .topbar nav, .mobile-menu, .footer-nav, .menu-button { font-family: 'DM Sans', 'Manrope', sans-serif; }
.topbar nav { display: none; }
  .menu-button { display: block; order: -1; margin-right: auto; padding: 8px 0; border: 0; background: none; color: inherit; font-family: 'DM Sans', 'Manrope', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* The supplied artwork is dark; invert it on the site's dark background. */
.logo img { display: block; width: clamp(225px, 23vw, 340px); height: auto; filter: invert(1); }
[data-theme="light"] .logo img { filter: none; }
@media (max-width: 1050px), (pointer: coarse) and (max-height: 520px) { .logo img { width: min(58vw, 260px); } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 0; }
.footer-nav a { display: inline-block; margin: 0; color: #f7f7f5; font-size: 16px; font-weight: 600; text-decoration: none; transition: opacity .2s ease; }
.footer-nav:hover a:not(:hover) { opacity: .94; }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .footer-nav { gap: 15px 24px; margin-bottom: 0; } }

main {
  --number-width: 3.25ch;
  padding: max(18svh, var(--fade-top), 7rem) var(--right-pad) clamp(4rem, 12svh, 9rem) var(--left-pad);
  flex: 1;
}
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ideas { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.ideas summary {
  display: grid;
  grid-template-columns: var(--number-width) minmax(0, 1fr) 1rem;
  align-items: baseline;
  padding: .32em .1em .32em 0;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.ideas summary::-webkit-details-marker { display: none; }
.ideas summary::after {
  content: '';
  align-self: center;
  justify-self: center;
  width: .52rem;
  height: .52rem;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s var(--ease);
}
.ideas details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.number { color: var(--muted); font-variant-numeric: tabular-nums; }
.idea-copy { padding: .05em 1rem .7em var(--number-width); }
.idea-copy p {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1.06rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #f2f6ff;
}
.idea-copy p + p { margin-top: .65em; }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .ideas details { interpolate-size: allow-keywords; }
  .ideas details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .24s var(--ease), opacity .2s ease, content-visibility .24s allow-discrete;
  }
  .ideas details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none !important; }
  .ideas details::details-content { transition: none; }
}

.footer-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

.company-page {
  --reading-width: 42rem;
  padding-block-start: max(var(--fade-top), clamp(8rem, 18svh, 12rem));
}
.company-page h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.05em;
}
.company-page .page-intro, .studio-copy {
  max-width: var(--reading-width);
  line-height: 1.55;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.company-page .page-intro {
  max-width: 43ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.75rem);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}
.studio-copy { max-width: 55ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.studio-copy h2 { margin: 1.7em 0 .35em; font-size: 1.12em; font-weight: 650; line-height: 1.25; }
.studio-copy p { margin: 0; color: #edf2ff; }
.company-page .ideas {
  max-width: var(--reading-width);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}
.company-page summary {
  column-gap: .35rem;
  padding-block: .48em;
}
.company-page .idea-copy { padding-inline-start: calc(var(--number-width) + .35rem); }
.company-page .idea-copy p { max-width: 50ch; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.62; }
.topbar a[aria-current="page"], .mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}

.contact-address a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.inquiry-form {
  max-width: 46rem;
  display: grid;
  gap: 1.65rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.form-field { display: grid; gap: .55rem; min-width: 0; }
.form-field label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.form-field label span { color: #dce6ff; font-size: .8rem; font-weight: 500; }
.form-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  color: #f7f7f5;
  font: 400 1rem/1.5 'Manrope', sans-serif;
  transition: border-color .2s ease, background-color .2s ease;
}
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field :is(input, select, textarea):hover { border-color: #fff; }
.form-field :is(input, select, textarea):focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: rgba(255, 255, 255, .11); }
.form-field select {
  appearance: none;
  padding-right: 2.8rem;
  background-image: linear-gradient(45deg, transparent 50%, #e3ebf4 50%), linear-gradient(135deg, #e3ebf4 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - .85rem) 50%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
.form-field option { background: #263b54; color: #f7f7f5; }
.field-hint, .form-actions p { margin: 0; color: #e0e9ff; font-size: .875rem; line-height: 1.5; letter-spacing: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.3rem; }
.form-actions button {
  min-height: 3.25rem;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #0043d8;
  font: 700 .95rem 'Manrope', sans-serif;
}
.form-actions button:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 1.65rem; } }

.inquiry-notice {
  max-width: 46rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: #e0e9ff;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f7f7f5;
  -webkit-box-shadow: 0 0 0 1000px #2e3d4f inset;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.social-links { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.social-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #f7f7f5; opacity: .8; }
.social-icon svg { display: block; width: 1.25rem; height: 1.25rem; }
@media (max-width: 600px) {
  footer { align-items: flex-end; gap: 1rem; }
  .social-links { gap: .15rem; }
}

.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 2rem;
  max-width: 36rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.location-list li { display: grid; gap: .1rem; }
.location-list li span:first-child { font-weight: 650; }
.location-list li span:last-child { color: #dce6ff; font-size: .88em; line-height: 1.45; }
@media (max-width: 420px) {
  .location-list { grid-template-columns: 1fr; gap: .9rem; }
}
