/* Human Voice Inc. — the instrument film. HVI Sunlit slate v1.3: flat colour, hairlines, no glow. */
@import url('../fonts/fonts.css');

:root {
  --ink: #1F2F37;
  --s700: #35505C;
  --slate: #49646F;
  --muted: #8AA4AE;
  --sky: #C0D6DF;
  --white: #FFFFFF;
  --sun: #F2C14E;
  --lava-border: #A5301F;
  --grass: #4E9B57;

  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --inset: 24px;                                   /* the frame's corner brackets */
  --bar: 76px;                                     /* top band: lockup and pages */
  --foot: 60px;                                    /* bottom band: chapter index and ruler */
  --gx: calc(var(--inset) + clamp(28px, 3.6vw, 60px)); /* the content edge, inside the brackets */
  --fig: 49vw;                                     /* the figure's side of the frame */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);         /* colour, opacity, fills */
  /* spacing: one 4-based rhythm for everything inside a chapter */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --t-fast: .18s;                                /* feedback: hover colour */
  --t-base: .32s;                                /* state: selected, filled, faded */
  --t-land: .42s;                                /* spatial micro-motion on the landing spring */
  --ease-land: linear(0, 0.0161, 0.0588, 0.1207, 0.1954, 0.2776, 0.3631, 0.4486, 0.5313, 0.6093, 0.6814, 0.7467, 0.8047, 0.8553, 0.8987, 0.9352, 0.9653, 0.9895, 1.0084, 1.0227, 1.033, 1.04, 1.044, 1.0458, 1.0458, 1.0443, 1.0418, 1.0386, 1.035, 1.0311, 1.0272, 1.0233, 1.0196, 1.0161, 1.013, 1.0102, 1.0077, 1.0055, 1.0037, 1.0022, 1.001);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  scrollbar-color: var(--slate) var(--ink);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 20px/1.6 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--sun);
}
::selection { background: var(--sun); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--slate); border: 3px solid var(--ink); border-radius: 6px; }
img, svg, canvas { display: block; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; border-radius: 6px;
  background: var(--white); color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* the one mono voice: labels that measure or name, never prose */
.label {
  font: 500 13px/1.45 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ the stage and the frame */
.stage { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }
.stage--top { z-index: 2; }
.frame { position: fixed; inset: 0; z-index: 40; pointer-events: none; view-transition-name: hvi-frame; }
.frame__c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--sky); }
.frame__c--tl { top: var(--inset); left: var(--inset); border-top-width: 1px; border-left-width: 1px; }
.frame__c--tr { top: var(--inset); right: var(--inset); border-top-width: 1px; border-right-width: 1px; }
.frame__c--bl { bottom: var(--inset); left: var(--inset); border-bottom-width: 1px; border-left-width: 1px; }
.frame__c--br { bottom: var(--inset); right: var(--inset); border-bottom-width: 1px; border-right-width: 1px; }
.frame__t { position: absolute; background: var(--slate); }
.frame__t--t, .frame__t--b { left: 50%; width: 1px; height: 6px; }
.frame__t--t { top: var(--inset); }
.frame__t--b { bottom: var(--inset); }
.frame__t--l, .frame__t--r { top: 50%; width: 6px; height: 1px; }
.frame__t--l { left: var(--inset); }
.frame__t--r { right: var(--inset); }

/* ------------------------------------------------------------ top band: lockup and pages */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 calc(var(--inset) + 30px);
  background: var(--ink);
}

.lockup {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none; border-radius: 6px;
  view-transition-name: hvi-lockup;
}
.lockup__mark { width: 35.2px; height: 35.2px; overflow: visible; flex: none; }
.mark path { fill: none; stroke-linejoin: round; }
.mark__main path { stroke: var(--white); stroke-width: 4.6; }
.mark__main { transform-origin: 0 0; }
.wordmark { font: 400 22px/1 var(--serif); letter-spacing: 0; white-space: nowrap; }

.nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  font: 500 16px/1 var(--sans); text-decoration: none; color: var(--muted);
  transition: color var(--t-fast) var(--ease-std);
}
.nav__link[aria-current='page'] { color: var(--white); }
.nav__link:hover { color: var(--sun); }
.nav__link .brk { color: var(--sun); view-transition-name: hvi-lock; }

/* brackets: the frame's own corner, used wherever something is locked on */
.brk { position: absolute; inset: 0; pointer-events: none; color: inherit; }
.brk i {
  position: absolute; width: 7px; height: 7px; border: 0 solid currentColor;
  transition: transform var(--t-land) var(--ease-land), opacity var(--t-base) var(--ease-std);
}
.brk i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.brk i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.brk i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.brk i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.menu-btn { display: none; }

/* ------------------------------------------------------------ bottom band: where you are */
.chapters {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--foot);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 calc(var(--inset) + 30px);
  background: var(--ink);
  view-transition-name: hvi-chapters;
}
.chapters__now {
  margin: 0; display: flex; align-items: baseline; white-space: nowrap;
  font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  color: var(--white);
}
.chapters__of { color: var(--muted); }
.chapters__name { color: var(--sun); margin-left: 1.4em; display: inline-block; min-width: calc(var(--cells) * 1.16em); }
.chapters__ruler { position: relative; width: clamp(170px, 17vw, 260px); height: 36px; }
.chapters__track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--s700); }
.chapters__fill { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--white); transform-origin: 0 0; transform: scaleX(0); }
.chapters__head { position: absolute; left: 0; top: -1px; width: 4px; height: 3px; margin-left: -2px; background: var(--sun); }
.chapters__ruler ol { position: absolute; inset: 0; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.chapters__ruler li { position: relative; width: 1px; }
.chapters__tick { position: absolute; top: 0; left: -12px; width: 25px; height: 36px; border-radius: 4px; }
.chapters__tick::before {
  content: ''; position: absolute; left: 12px; top: 10px; width: 1px; height: 8px; background: var(--muted);
  transform-origin: 50% 100%; transition: transform var(--t-base) var(--ease-land), background-color var(--t-fast) var(--ease-std);
}
.chapters__tick:hover::before { background: var(--sky); transform: scaleY(1.4); }
.chapters__tick[aria-current='true']::before { background: var(--white); transform: scaleY(1.5); }

/* ------------------------------------------------------------ chapters */
main { position: relative; z-index: 1; view-transition-name: hvi-page; }
.ch {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--bar) + 64px) var(--gx) calc(var(--foot) + 64px);
}
.ch--top { justify-content: flex-start; padding-top: calc(var(--bar) + clamp(40px, 8vh, 96px)); }
.copy { position: relative; width: 100%; max-width: min(560px, calc(100vw - var(--fig) - var(--gx) - 56px)); }
.copy--wide { max-width: min(820px, 58vw); }
/* the Platform hero sets its title as the home page does, on two lines, and the figure takes the room beside it */
.ch--products .copy { width: max-content; max-width: none; }
.ch--products .display { max-width: 8.2em; }
.ch--products .lede { max-width: none; width: 0; min-width: 100%; }   /* as wide as the title above it, never wider */

.display {
  margin: 0; max-width: 9.6em;
  font: 400 clamp(3rem, 6.5vw, 6rem)/calc(.96em + 6px) var(--serif); letter-spacing: -.02em;
  text-wrap: balance;
}
.statement {
  margin: 0;
  font: 400 clamp(2rem, 3.6vw, 3.6rem)/1.07 var(--serif); letter-spacing: -.012em;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--sky); }
.reading {
  margin: 0; max-width: 23ch;
  font: 400 clamp(1.6rem, 2.35vw, 2.3rem)/1.3 var(--serif); letter-spacing: -.004em;
  text-wrap: pretty;
}
.key {
  text-decoration: underline 1px var(--slate);
  text-underline-offset: .2em;
  transition: color var(--t-base) var(--ease-std), text-decoration-color var(--t-base) var(--ease-std);
}
.key.is-on { color: var(--sky); text-decoration-color: var(--white); }
.lede { margin: var(--s-5) 0 0; max-width: 36ch; font: 400 clamp(1.05rem, 1.25vw, 1.25rem)/1.55 var(--sans); color: var(--sky); }
.title {
  margin: 0 0 var(--s-6); max-width: 18ch;
  font: 400 clamp(2.1rem, 3.4vw, 3.3rem)/1.04 var(--serif); letter-spacing: -.012em;
  text-wrap: balance;
}

/* a label that leads a leader line into the figure */
.tether {
  display: inline-block; margin: var(--s-6) 0 0; padding-bottom: 6px;
  font: italic 400 clamp(1.2rem, 1.6vw, 1.5rem)/1.3 var(--serif);
  color: var(--sky); border-bottom: 1px solid var(--sky);
}

/* Home: the voice on its ruler */
.hero { width: 100%; }
.eyebrow { margin: 0 0 var(--s-4); font: 500 13px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); min-height: 1.4em; }
.hero__line { height: clamp(104px, 15vh, 140px); margin: var(--s-4) 0 var(--s-5); }
.controls { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); }

/* controls are targets: brackets that close in */
.ctl {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--white); font: 500 15px/1 var(--sans); text-decoration: none;
  transition: color var(--t-fast) var(--ease-std), transform .16s var(--ease-std);
}
.ctl .brk { color: var(--muted); }
.ctl .brk i { width: 9px; height: 9px; }
.ctl:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .ctl:not([disabled]):hover { color: var(--sun); }
  .ctl:hover .brk { color: var(--white); }
  .ctl:hover .brk i:nth-child(1) { transform: translate(4px, 4px); }
  .ctl:hover .brk i:nth-child(2) { transform: translate(-4px, 4px); }
  .ctl:hover .brk i:nth-child(3) { transform: translate(4px, -4px); }
  .ctl:hover .brk i:nth-child(4) { transform: translate(-4px, -4px); }
}
.ctl[disabled] { cursor: default; color: var(--muted); }
.ctl[disabled] .brk { color: var(--s700); }
.ctl[disabled]:not(.is-sending) .ctl__label { text-decoration: line-through 1px var(--muted); }
.ctl.is-sending { color: var(--sky); }

/* Home: capabilities, a name and a line each */
.copy--uses .title { max-width: none; margin-bottom: var(--s-5); }
.copy--uses .controls { margin-top: var(--s-5); }
.uses { display: grid; gap: var(--s-2); margin: 0 0 0 -16px; padding: 0; list-style: none; }
/* the copy is as wide as the title's first line ("Where voice intelligence"); the capabilities, selection box
   included, fill that width and wrap inside it, without widening it */
@media (min-width: 760px) {
  .copy--uses { width: fit-content; max-width: none; }
  .copy--uses .title { white-space: nowrap; }
  .uses { width: 0; min-width: calc(100% + 16px); }
}
.use { position: relative; padding: 10px 16px; border-radius: 6px; cursor: pointer; }
.use .brk { color: var(--white); opacity: 0; transition: opacity var(--t-fast) var(--ease-std); }
.use .brk i { width: 8px; height: 8px; }
.use.is-active .brk { opacity: 1; }
.use__name { margin: 0; font: 400 clamp(1.25rem, 1.65vw, 1.6rem)/1.28 var(--serif); color: var(--muted); transition: color var(--t-base) var(--ease-std); }
.use.is-active .use__name { color: var(--white); }
.use__line { margin: var(--s-1) 0 0; font: 400 15px/1.5 var(--sans); color: var(--sky); }

/* Products: questions the figure answers */
.needs__label { margin: 0 0 var(--s-3); color: var(--sky); }
.tm { font-size: .55em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.needs__label[data-expand] { color: var(--sun); }   /* the one place Tuscan Sun is text: Telltale's first introduction */
.needs { display: grid; gap: 2px; margin: 0 0 0 -16px; padding: 0; list-style: none; }
.need {
  position: relative; display: block; width: 100%; max-width: 30ch; text-align: left;
  padding: 10px 16px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--muted); font: 400 clamp(1.25rem, 1.65vw, 1.6rem)/1.28 var(--serif);
  transition: color var(--t-fast) var(--ease-std);
}
.need .brk { color: var(--white); opacity: 0; }
.need .brk i { width: 8px; height: 8px; }
.need:hover { color: var(--sky); }
.need.is-active { color: var(--white); }
.need.is-active .brk { opacity: 1; }
.need__aside { display: block; margin-top: var(--s-1); font: 400 14px/1.5 var(--sans); color: var(--muted); }
.need__text { display: block; }
.needs-joint { position: relative; width: fit-content; margin-left: -16px; }
.needs-joint .needs { margin: 0; }
.needs-joint .need { cursor: default; }
.needs-joint .brk { color: var(--white); }
.needs-joint .brk i { width: 8px; height: 8px; }
.ch--product .title { margin-bottom: var(--s-3); }
.product__line { margin: 0 0 var(--s-6); max-width: 40ch; font: 400 16px/1.5 var(--sans); color: var(--sky); }
.badge { display: inline-block; margin-left: var(--s-1); padding: 2px 9px; border: 1px solid var(--muted); border-radius: 999px; color: var(--muted); font: 500 11px/1.4 var(--sans); letter-spacing: .08em; vertical-align: baseline; }
.product__foot { margin: var(--s-5) 0 0; max-width: 40ch; font: 400 16px/1.5 var(--sans); color: var(--muted); opacity: .7; }

/* Platform: what it holds, and the ways it ships */
.copy--deploy { max-width: min(640px, calc(100vw - var(--fig) - var(--gx) - 56px)); }
.copy--deploy .title { max-width: none; margin-bottom: var(--s-5); }
.platform { padding: var(--s-4) var(--s-4) var(--s-3); border: 1px solid var(--slate); border-radius: 6px; }
.platform__name { margin: 0 0 var(--s-2); color: var(--sun); }
.platform__areas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-3); margin: 0; padding: 0; list-style: none; font: 400 clamp(1.1rem, 1.4vw, 1.35rem)/1.5 var(--serif); }
.platform__areas li { white-space: nowrap; }
/* the connector: a hairline down from the platform, named, to the ways it ships */
.platform__ship { position: relative; margin: 0; padding: var(--s-5) 0 var(--s-5) var(--s-5); color: var(--muted); }
.platform__ship::before { content: ''; position: absolute; left: var(--s-4); top: 0; bottom: 0; border-left: 1px dashed var(--slate); }
.deploys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.deploy { padding: var(--s-4); border: 1px solid var(--s700); border-radius: 6px; }
.deploy__icon { width: 28px; height: 28px; margin-bottom: var(--s-3); fill: none; stroke: var(--sky); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.deploy__name { margin: 0; font: 400 clamp(1.1rem, 1.4vw, 1.3rem)/1.3 var(--serif); color: var(--white); }
.deploy__line { margin: var(--s-1) 0 0; font: 400 14px/1.5 var(--sans); color: var(--sky); }

/* Home: the team. The whole chapter fits one screen (list, and the longest bio), so it rests like the others
   and the next chapter never takes the frame while a bio is still being read */
@media (min-width: 760px) {
  .ch.ch--team { justify-content: flex-start; padding-top: calc(var(--bar) + clamp(8px, 3vh, 40px)); padding-bottom: var(--foot); }
}
.copy--team { max-width: min(720px, calc(100vw - var(--fig) - var(--gx) - 56px)); }
.copy--team .title { margin-bottom: var(--s-3); }
/* the chapter's pages: each says which it is; the second is the first's mirror, its copy on the right, its prints on the left */
.title__page { margin-left: .7em; font: 500 13px/1 var(--mono); letter-spacing: .16em; color: var(--muted); vertical-align: .55em; white-space: nowrap; }
@media (min-width: 760px) {
  .ch--team-mirror .copy--team { margin-left: auto; }
}
.people { display: grid; gap: 1px; margin: 0 0 0 -16px; padding: 0; list-style: none; }
.person {
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: var(--s-3);
  width: min(100%, 360px); padding: 2px var(--s-4); text-align: left;
  border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--muted);
  transition: color var(--t-fast) var(--ease-std);
}
.person .brk { color: var(--white); opacity: 0; }
.person .brk i { width: 8px; height: 8px; }
.person:hover { color: var(--sky); }
.person.is-active { color: var(--white); }
.person.is-active .brk { opacity: 1; }
.person__face { position: relative; width: 50px; height: 50px; border-radius: 6px; overflow: hidden; background: var(--ink); border: 1px solid var(--s700); }
.person__face img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); opacity: .72; transition: opacity var(--t-base) var(--ease-std); }
.person.is-active .person__face img, .person:hover .person__face img { opacity: 1; }
.person__ph { display: block; width: 100%; height: 100%; fill: var(--slate); transition: fill var(--t-base) var(--ease-std); }
.person:hover .person__ph, .person.is-active .person__ph { fill: var(--muted); }
.person__text { display: block; min-width: 0; }
.person__name { display: block; font: 400 clamp(1.1rem, 1.3vw, 1.3rem)/1.15 var(--serif); }
.person__title { display: block; margin-top: 2px; font: 400 15px/1.35 var(--sans); color: var(--muted); }
.person.is-active .person__title { color: var(--sky); }
/* every bio shares one cell, so the area is as tall as the longest and nothing below it moves between people */
.bios { display: grid; margin-top: var(--s-4); }
.bio { grid-area: 1 / 1; margin: 0; font: 400 16px/1.5 var(--sans); color: var(--sky); }
.bio[hidden] { display: block; visibility: hidden; }
/* the lower right corner, under the Team's prints (lower left when they are on the left): whose print it is, while it
   is the person's own. Two even lines, with or without the link; the arrow points up and across to the print */
.team-cta {
  position: fixed; right: calc(var(--inset) + 30px); bottom: calc(var(--foot) + 16px); z-index: 5; margin: 0;
  display: flex; align-items: flex-start; gap: 8px; pointer-events: none;
  font: 400 16px/1.4 var(--sans); color: var(--sky); opacity: 0; transition: opacity .5s var(--ease-std);
}
.team-cta.is-on { opacity: 1; }
.team-cta__text { max-width: 19em; text-wrap: balance; }
.ch--team-mirror .team-cta { right: auto; left: calc(var(--inset) + 30px); }
.team-cta__link { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease-std); }
.team-cta.is-on .team-cta__link { pointer-events: auto; }
.team-cta__link:hover { color: var(--sun); }
.team-cta__arrow { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* the close */
.ch--close { align-items: center; text-align: center; min-height: 0; justify-content: flex-start; padding-top: calc(var(--bar) + 72px); padding-bottom: 72px; }
.close { display: flex; flex-direction: column; align-items: center; }
.close__mark { width: clamp(150px, min(19vw, 27vh), 270px); aspect-ratio: 1; }
.close__word { margin: var(--s-7) 0 var(--s-4); font: 400 clamp(3rem, min(6.6vw, 10vh), 6rem)/.95 var(--serif); letter-spacing: 0; white-space: nowrap; }
.close__tag { margin: 0 0 var(--s-6); text-wrap: balance; font: italic 400 clamp(1.15rem, 1.5vw, 1.4rem)/1.4 var(--serif); color: var(--sky); }
.ch--close .controls { justify-content: center; }

/* Contact */
.ch--contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
}
.copy--contact { max-width: 600px; }
.ch--contact { padding-top: calc(var(--bar) + var(--s-7)); padding-bottom: calc(var(--foot) + var(--s-7)); }
.ch--contact .statement { font-size: clamp(1.9rem, 2.7vw, 2.75rem); }
.ch--contact .lede { margin-top: var(--s-4); }
.contact__figure { height: min(56vh, 520px); }
.form { display: grid; gap: var(--s-5); margin-top: var(--s-6); max-width: 560px; }
.field__label { display: block; margin-bottom: var(--s-1); color: var(--sky); }
.field__control { position: relative; }
.field .brk { color: var(--white); opacity: 0; }
.field:focus-within .brk { opacity: 1; }
.input {
  display: block; width: 100%; margin: 0; padding: 8px 12px 10px;
  border: 0; border-radius: 0; background: transparent; color: var(--white);
  font: 400 clamp(1.3rem, 1.7vw, 1.55rem)/1.35 var(--serif);
  caret-color: var(--sun);
}
.input:focus-visible { outline: none; }
.field__control:focus-within { outline: 2px solid var(--sun); outline-offset: 5px; border-radius: 6px; }
textarea.input { resize: vertical; min-height: 4.2em; }
.field__base { position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--muted); transition: border-color var(--t-base) var(--ease-std); }
.field.is-filled .field__base { border-bottom-style: solid; border-color: var(--white); }
.field.is-invalid .field__base { border-bottom-style: solid; border-color: var(--lava-border); }
.field__error { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-2) 0 0; color: var(--white); font: 500 14px/1.4 var(--sans); }
.field__error::before { content: ''; width: 18px; height: 2px; background: var(--lava-border); flex: none; }
.field__error[hidden] { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.form__status { display: flex; align-items: center; gap: var(--s-3); margin: 0; font: 400 15px/1.45 var(--sans); color: var(--sky); }
.form__status::before { content: ''; width: 28px; height: 1px; background: var(--grass); flex: none; }
.form__status[hidden] { display: none; }
.form__status.is-error { color: var(--white); }
.form__status.is-error::before { height: 2px; background: var(--lava-border); }
.form__note { margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--muted); }
.form__note a { color: var(--sky); text-underline-offset: 3px; text-decoration-color: var(--slate); }
.form__note a:hover { text-decoration-color: var(--sky); }
/* Google allows hiding the badge when the reCAPTCHA notice is shown with the form, as it is here */
.grecaptcha-badge { visibility: hidden; }

/* footer */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-4) var(--s-6);
  padding: var(--s-6) var(--gx) calc(var(--foot) + var(--s-6));
  background: var(--ink);
  border-top: 1px solid var(--s700);
}
.foot__nav ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; padding: 0; list-style: none; }
.foot__nav a { font: 500 14px/1.4 var(--sans); color: var(--muted); text-decoration: none; }
.foot__nav a:hover, .foot__nav a[aria-current='page'] { color: var(--white); }
.foot__copy { margin: 0; font: 400 13.5px/1.4 var(--sans); color: var(--muted); }

/* ------------------------------------------------------------ intro */
html.is-intro main, html.is-intro .scroll-cue, html.is-intro .foot, html.is-intro .nav, html.is-intro .menu-btn, html.is-intro .chapters > * { visibility: hidden; }
html.is-intro .lockup { position: relative; z-index: 60; }
html.is-intro .wordmark { opacity: 0; }
/* the headline rises through line masks; the masks reach below the descenders so g and y are never cut */
.line-mask { padding-bottom: .24em; margin-bottom: -.24em; }
.intro-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; pointer-events: none; }
html.intro-still .stage { opacity: 0; }
.stage { transition: opacity .8s ease; }
html.is-intro .lockup__mark { opacity: 0; }
html.is-intro .frame__c { transform: scale(0); }
.frame__c { transition: transform .7s var(--ease-land); }
.frame__c--tl { transform-origin: 0 0; }
.frame__c--tr { transform-origin: 100% 0; }
.frame__c--bl { transform-origin: 0 100%; }
.frame__c--br { transform-origin: 100% 100%; }
html.is-intro.frame-in .frame__c { transform: none; }

/* ------------------------------------------------------------ page transitions */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(hvi-lock) { animation-duration: 620ms; animation-timing-function: var(--ease-land); }
::view-transition-old(hvi-page) { animation: page-out 260ms var(--ease-out) both; }
::view-transition-new(hvi-page) { animation: page-in 620ms var(--ease-out) 80ms both; }
::view-transition-group(hvi-page) { animation: none; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------ narrower desktops */
@media (max-width: 1180px) and (min-width: 1024px) {
  :root { --fig: 46vw; }
  .nav__link { padding: 0 10px; font-size: 15px; }
}
@media (max-height: 760px) and (min-width: 760px) {
  :root { --bar: 68px; --foot: 54px; }
  .ch { padding-top: calc(var(--bar) + 40px); padding-bottom: calc(var(--foot) + 40px); }
  .ch--close { padding-top: calc(var(--bar) + var(--s-7)); padding-bottom: var(--s-7); }
  .close__word { margin-top: var(--s-6); }
}

/* the pages move into a sheet wherever the bar cannot hold them on one line */
@media (max-width: 1023px) {
  .menu-btn {
    display: grid; place-items: center; position: relative; z-index: 2;
    width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer;
  }
  .menu-btn span { grid-area: 1 / 1; width: 22px; height: 1px; background: var(--white); transition: transform var(--t-land) var(--ease-land); }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  .nav-open .menu-btn span:first-child { transform: rotate(45deg); }
  .nav-open .menu-btn span:last-child { transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
    padding: var(--bar) var(--gx) var(--foot); background: var(--ink);
    visibility: hidden; opacity: 0; transition: opacity var(--t-base) var(--ease-std), visibility 0s linear var(--t-base);
  }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity var(--t-base) var(--ease-std); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link { min-height: 64px; padding: 0 14px; margin-left: -14px; font: 400 2.1rem/1 var(--serif); }
  .nav__link .brk i { width: 10px; height: 10px; }
  .nav-open .chapters { visibility: hidden; }
  .lockup { position: relative; z-index: 2; }
}

/* ------------------------------------------------------------ phones */
@media (max-width: 759px) {
  :root { --inset: 12px; --bar: 64px; --foot: 52px; --gx: 24px; --fig: 0px; }
  .team-cta, .ch--team-mirror .team-cta { position: static; margin-top: var(--s-4); }
  body { font-size: 19px; }
  .bar { padding: 0 calc(var(--inset) + 14px); }
  .lockup { gap: 9px; }
  .lockup__mark { width: 32px; height: 32px; }
  .wordmark { font-size: 20px; }

  .chapters { padding: 0 calc(var(--inset) + 14px); }
  .chapters__name { margin-left: 1.1em; }
  .chapters__ruler { width: 118px; }

  .ch { justify-content: flex-start; min-height: 100svh; padding: calc(var(--bar) + 43svh) var(--gx) calc(var(--foot) + 40px); }
  .copy, .copy--wide {
    max-width: none; margin: 0 calc(var(--gx) * -1); width: auto;
    padding: 22px var(--gx) 26px; background: var(--ink); border-top: 1px solid var(--s700);
  }
  .ch--hero:not(.ch--products) { justify-content: center; padding-top: calc(var(--bar) + 24px); }
  .ch--hero:not(.ch--products) .copy { border-top: 0; }
  .display { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .ch--products .copy { width: auto; }
  .ch--products .display { max-width: none; font-size: min(clamp(2.7rem, 12.5vw, 3.6rem), calc((100vw - 2 * var(--gx)) / 8.1)); }
  .hero__line { height: 112px; margin: 26px 0 26px; }
  .controls { flex-direction: column; align-items: flex-start; }
  .reading { font-size: 1.6rem; }
  .needs { margin-left: -16px; }
  .deploys { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .person__face { width: 60px; height: 60px; }
  .ch--close { min-height: 0; padding-top: calc(var(--bar) + var(--s-6)); padding-bottom: var(--s-6); justify-content: flex-start; }
  .close__mark { width: min(40vw, 150px); }
  .close__word { margin-top: var(--s-6); }
  .close__tag { margin-bottom: var(--s-5); }
  .close__word { font-size: clamp(2rem, 10.4vw, 3.2rem); }
  .ch--contact { display: flex; padding-top: calc(var(--bar) + 12px); }
  .contact__figure { order: -1; height: 28svh; flex: none; }
  .copy--contact { border-top: 0; padding-top: 0; }
  .foot { flex-direction: column; }
}

/* ------------------------------------------------------------ reduced motion */
/* Home: the scroll cue, a translucent fingertip swiping up under its words */
.scroll-cue { position: fixed; left: 0; right: 0; bottom: calc(var(--foot) + 16px); z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.scroll-cue__link {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 16px; border: 0; background: none; cursor: pointer; pointer-events: auto;
  font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky);
  transition: color var(--t-fast) var(--ease-std), opacity .5s var(--ease-std);
}
.scroll-cue__link:hover { color: var(--sun); }
.scroll-cue.is-away .scroll-cue__link { opacity: 0; pointer-events: none; }
.scroll-cue__track { position: relative; width: 24px; height: 44px; }
.scroll-cue__dot {
  position: absolute; left: 1px; bottom: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
  animation: cue-swipe 2.8s var(--ease-std) infinite;
}
@keyframes cue-swipe {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  18% { transform: translateY(0) scale(1); opacity: 1; }
  72% { transform: translateY(-22px) scale(1); opacity: 1; }
  100% { transform: translateY(-22px) scale(.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__dot { animation: none; opacity: .7; transform: translateY(-11px); }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
