:root {
  color-scheme: light;
  --paper: #f8faf7;
  --white: #fff;
  --ink: #152e32;
  --muted: #405657;
  --deep: #123f38;
  --green: #17604c;
  --mint: #e0f2eb;
  --line: #d1ddda;
  --grain: url("assets/gradient-grain.png");
  --panel-shadow: 0 1px 2px #113a2514, 0 1.2rem 2.4rem -.8rem #174b3f30;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4vw, 3.5rem);
  --content: 73rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.75rem;
}

body {
  margin: 0;
  background: linear-gradient(169deg, #f5faf1, var(--paper) 34%, #f2f7fa 88%, #fcfbf5);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.018em;
}

h2 { font-size: clamp(3rem, 5.4vw, 5.4rem); }
h3 { font-size: clamp(1.175rem, 1.8vw, 1.45rem); font-weight: 650; line-height: 1.22; letter-spacing: -.035em; }

.container {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section { padding-block: clamp(4.1rem, 8vw, 7.4rem); }

.section-heading {
  display: grid;
  justify-items: start;
  gap: .85rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.15rem);
}

.eyebrow {
  color: var(--green);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #dfeae2;
  background: #fbfdf9f2;
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.5rem, 2.5vw, 2rem);
}

.nameplate {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: clamp(.65rem, 2.5vw, 2.35rem);
}

.site-header nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--green); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .56rem 1rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.button-primary { background: linear-gradient(155deg, #286551, #123f38 75%); color: var(--white); }
.button-primary:hover { background: #216455; }
.button-outline { border-color: #819c95; background: transparent; color: var(--deep); }
.button-outline:hover { background: var(--mint); border-color: var(--deep); }

.text-link, summary {
  width: fit-content;
  color: var(--green);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #7b9e96;
  text-underline-offset: .24em;
}

.text-link:hover, summary:hover { color: var(--deep); text-decoration-color: var(--deep); }

.hero {
  --hero-veil: radial-gradient(ellipse 79% 136% at -9% 39%, #fcfbe8 8%, #f5fae5 28%, #ecf8e4d9 52%, #f0fbec44 77%, transparent 95%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5.3vw, 4.7rem);
  border-radius: 0 0 clamp(1.65rem, 4vw, 4.2rem) clamp(1.65rem, 4vw, 4.2rem);
  background: #92c7b4;
}

.hero::before, .hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: -14%;
  z-index: -2;
  background:
    radial-gradient(ellipse 47% 41% at 53% 102%, #e0e88a 0%, #b5d47e 48%, transparent 85%),
    radial-gradient(ellipse 42% 28% at 94% 15%, #8f9cdb 6%, #97b5dd 52%, transparent 96%),
    radial-gradient(ellipse 34% 70% at 97% 69%, #32878b 11%, #459b9e 44%, transparent 87%),
    radial-gradient(ellipse 47% 58% at 68% 40%, #b3efdc 12%, #8ed7cf 45%, transparent 89%),
    radial-gradient(ellipse 53% 58% at 39% 4%, #ecf3c6 0%, #d3e8a3 45%, transparent 88%),
    linear-gradient(143deg, #dfeec5 12%, #a7d7ba 53%, #32836f 87%);
  filter: blur(clamp(16px, 2.3vw, 37px));
  transform: rotate(-11deg) scale(1.04);
}

.hero::after {
  inset: 0;
  z-index: -1;
  background-image: var(--grain), var(--hero-veil);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(1.6rem, 4.9vw, 5.5rem);
}

.hero-copy { container-type: inline-size; }

.hero h1 {
  margin-block: .9rem 1.5rem;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(2.7rem, 7.5vw, 7.45rem);
  font-size: min(clamp(3.4rem, 6.2vw, 6.1rem), 14.2cqi);
}

.hero h1 span, .hero h1 em { display: block; white-space: nowrap; }
.hero h1 em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 50ch; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.22rem); }
.hero .actions { margin-top: 1.7rem; }

.hero-visual {
  position: relative;
  padding: 0 1.15rem 4.9rem clamp(1rem, 3vw, 2.6rem);
}

.hero-photo {
  width: min(100%, 25rem);
  margin-left: auto;
  aspect-ratio: 1.08;
  padding: clamp(.45rem, 1.2vw, .85rem);
  border: 1px solid #d3e4df;
  border-radius: clamp(1.35rem, 3vw, 2.6rem);
  /* same gradient frame as the stage photo */
  background:
    var(--grain),
    radial-gradient(ellipse at 100% 0%, #afc6eb, transparent 85%),
    linear-gradient(135deg, #deefd5, #b8e5dc);
  box-shadow: 0 1.9rem 3.5rem -1rem #163b496b, 0 .35rem 1rem #244e5127;
}

.hero-photo-crop { display: block; height: 100%; overflow: hidden; border-radius: clamp(1rem, 2.3vw, 2rem); background: #b5d9d5; }

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 100%;
  /* zoom toward the people so the booth signage sits outside the frame */
  transform: scale(1.12);
  transform-origin: 85% 100%;
}

.hero-demo {
  position: absolute;
  inset: auto auto 0 0;
  width: min(100%, 20.5rem);
  padding: .95rem;
  border: 1px solid #ffffffd9;
  border-radius: 1.15rem;
  background:
    radial-gradient(ellipse at 100% 0%, #e2e7fd 0%, transparent 64%),
    linear-gradient(143deg, #ffffff, #edf7ec 79%);
  box-shadow: 0 1.25rem 3rem -.6rem #123d454d, 0 .15rem .65rem #113a2520;
}

.hero-demo-heading, .hero-demo-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.hero-demo-title { margin-top: .2rem; font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; }
.hero-demo-heading .voice-signal { color: #246b63; }

.hero-demo-links { justify-content: flex-start; flex-wrap: wrap; margin-top: .75rem; }
.hero-demo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .35rem .68rem;
  border: 1px solid #a7c6bc;
  border-radius: .55rem;
  background: #ffffffc7;
  color: var(--deep);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.hero-demo-links a[hidden] { display: none; }
.hero-demo-links a:hover { border-color: var(--green); background: #d6eee3; }

.voice-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, .45vw, 6px);
  color: #e7ffec;
}

.voice-signal i {
  --height: 1.45rem;
  --delay: .15s;
  width: 3px;
  height: var(--height);
  border-radius: 1rem;
  background: currentColor;
  box-shadow: 0 0 .7rem #e7ffec3d;
}

.voice-signal i:nth-child(1), .voice-signal i:nth-child(7) { --height: .4rem; --delay: .35s; }
.voice-signal i:nth-child(2), .voice-signal i:nth-child(6) { --height: .85rem; --delay: .24s; }
.voice-signal i:nth-child(4) { --height: 2.05rem; --delay: 0s; }

.scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(.75rem, 1.8vw, 1.65rem) 0 0;
  overflow: hidden;
  border: 1px solid #d8e7da;
  border-radius: 1.35rem;
  background: linear-gradient(108deg, #fcfcf1, #f6fbf5 43%, #e5f4ef 74%, #e5f1f8);
  box-shadow: 0 .7rem 2rem -1.35rem #174b3f55;
}

.scope > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .3rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.scope > div + div { border-inline-start: 1px solid var(--line); }
.scope dt { color: var(--muted); font-size: .92rem; font-weight: 550; line-height: 1.4; }
.scope dt a { text-decoration-color: #7b9e96; text-underline-offset: .17em; }
.scope dt a:hover { color: var(--green); }

.scope dd {
  margin: 0;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 4.3rem);
  line-height: .98;
}

.featured-cases, .case-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.featured-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.featured-case {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid #d8e7df;
  border-radius: clamp(1.1rem, 2.5vw, 2rem);
  background: linear-gradient(138deg, #fff 42%, #f0f8f1);
  box-shadow: var(--panel-shadow);
}

.featured-copy, .featured-result { padding-inline: clamp(1.25rem, 3vw, 2.75rem); }
.featured-copy { padding-block: clamp(1.25rem, 2.55vw, 2.25rem); }

@supports (grid-template-rows: subgrid) {
  .featured-cases { row-gap: 0; }
  .featured-case { grid-row: span 2; grid-template-rows: subgrid; }
}

.featured-copy h3 {
  margin: .72rem 0 .95rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.95rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.featured-copy > p:not(.eyebrow) { max-width: 58ch; color: var(--muted); font-size: 1.04rem; }

.featured-result {
  display: flex;
  min-height: 10.5rem;
  flex-direction: column;
  gap: .65rem;
  padding-block: clamp(1.25rem, 2vw, 1.8rem);
  background:
    var(--grain),
    radial-gradient(ellipse 93% 124% at 103% -17%, #929dd4, transparent 85%),
    radial-gradient(ellipse 94% 75% at 98% 90%, #83cdcf, transparent 91%),
    radial-gradient(ellipse 100% 105% at 31% 113%, #cae58b 14%, transparent 78%),
    linear-gradient(138deg, #edf7da, #bfeae3);
  color: var(--deep);
}

.featured-case-payer .featured-result {
  background:
    var(--grain),
    radial-gradient(ellipse 88% 112% at 103% -10%, #8bcbd0, transparent 86%),
    radial-gradient(ellipse 106% 100% at 41% 116%, #c3df87, transparent 85%),
    linear-gradient(142deg, #f0f6d5, #b8e6dc);
}

.featured-result-title { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.45rem); line-height: 1; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.case-card {
  --card-wash: #dff0e4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border: 1px solid #dbe6df;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse 117% 76% at 106% 108%, var(--card-wash), transparent 98%), #fff;
  box-shadow: 0 .8rem 1.5rem -1.2rem #174b3f50;
}

.case-card:nth-child(2) { --card-wash: #e2e9fa; }

.case-card h3 { margin: .6rem 0 .7rem; }
.case-card > p:not(.eyebrow), details p { color: var(--muted); }
.case-card details { width: 100%; margin-block: .9rem 1.15rem; }

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  display: inline-block;
  margin-inline-start: .42rem;
  content: "+";
  text-decoration: none;
}

details[open] summary::after { content: "−"; }
details p { margin-top: .68rem; }

.case-result {
  width: 100%;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.case-result strong { color: var(--green); font-size: .79rem; }
.case-result p { margin-top: .2rem; font-weight: 630; }

.approach {
  border-block: 1px solid #dceae5;
  background:
    radial-gradient(ellipse at 99% 19%, #dbe6fc 0%, transparent 57%),
    radial-gradient(ellipse at 2% 47%, #dcefe4 0%, transparent 68%),
    linear-gradient(153deg, #f9fcf6, #edf7f6 58%, #e7f3e3);
}

.approach-grid { gap: clamp(1rem, 3.5vw, 2.75rem); }

.approach-grid article {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
  padding-top: 1.15rem;
  border-top: 1px solid #aac1bb;
}

.approach-grid article > p { color: var(--muted); }
.approach-grid .text-link { margin-top: auto; }

.evaluation {
  display: grid;
  gap: clamp(1.15rem, 3vw, 2rem);
  margin-top: clamp(2.8rem, 6vw, 5.1rem);
  padding: clamp(1rem, 3.4vw, 2.75rem);
  border: 1px solid #c9e0d8;
  border-radius: clamp(1.15rem, 3vw, 2.5rem);
  background:
    var(--grain),
    radial-gradient(ellipse 64% 51% at 103% 2%, #b6c4ee 7%, transparent 87%),
    radial-gradient(ellipse 75% 59% at 100% 39%, #91d3d4 4%, transparent 90%),
    radial-gradient(ellipse 62% 35% at 2% 100%, #cae6a9 6%, transparent 91%),
    linear-gradient(150deg, #fbfbed 3%, #dfefea 47%, #d3eaf1 76%, #e6f3e2);
  box-shadow: 0 1.65rem 3rem -1.4rem #22465c46;
}

.evaluation-intro h3 {
  margin: .55rem 0 .65rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 4.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.evaluation-intro > p:not(.eyebrow) { max-width: 64ch; color: var(--muted); }
.evaluation-intro > p.evaluation-sources { margin-top: .55rem; font-size: .87rem; }
.evaluation-sources a { color: var(--green); font-weight: 650; text-underline-offset: .17em; }
.voice-demo[hidden], .voice-actions[hidden], .voice-listen[hidden] { display: none; }

.voice-toolbar, .scenario-controls, .voice-run-actions, .voice-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.voice-toolbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding: .65rem;
  border: 1px solid #ffffffcc;
  border-radius: 1rem;
  background: #f7fcf8ad;
  box-shadow: 0 .7rem 1.5rem -1.1rem #18413566;
}

.scenario-controls button, .voice-listen {
  min-height: 2.7rem;
  padding: .45rem .72rem;
  border: 1px solid #a4bab2;
  border-radius: .55rem;
  background: #fffdf9e8;
  color: var(--deep);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

.scenario-controls button:hover, .voice-listen:hover { background: var(--mint); }
.scenario-controls button[aria-pressed="true"] {
  border-color: #39776a;
  background: linear-gradient(146deg, #e1f3dd, #cdece7);
}
.voice-run-actions button, .voice-actions button { cursor: pointer; }
.voice-run-actions button:disabled { opacity: .56; cursor: default; }

.voice-session {
  display: grid;
  min-width: 0;
  gap: .75rem;
}

.voice-session-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: .7rem clamp(.85rem, 2.35vw, 2.15rem);
  padding: clamp(1rem, 2.5vw, 1.85rem);
  border: 1px solid #e7ffeb70;
  border-radius: 1.15rem;
  color: var(--white);
  background:
    var(--grain),
    radial-gradient(ellipse 99% 170% at 120% -60%, #82b6d9 0%, transparent 87%),
    radial-gradient(ellipse 59% 175% at 52% 134%, #4a8455 0%, transparent 90%),
    linear-gradient(115deg, #143b39 8%, #20665e 91%);
  box-shadow: 0 .9rem 1.85rem -.8rem #174c4694;
}

.voice-session-header .eyebrow { color: #cee9e2; }
.voice-session-header h4 { margin: .28rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.15; }

.session-signal { display: flex; gap: clamp(2px, .45vw, 6px); }
.session-signal .voice-signal:first-child { transform: scaleY(.62); }
.session-signal .voice-signal:last-child { transform: scaleY(.76); }
.voice-session-header[data-stage="queued"] .session-signal .voice-signal { color: #fff0b6; }
.voice-session-header[data-speaking] .voice-signal i { animation: signal-pulse .74s ease-in-out var(--delay) infinite alternate; }

@keyframes signal-pulse {
  from { transform: scaleY(.53); }
  to { transform: scaleY(1.2); }
}

.voice-status {
  padding: .33rem .65rem;
  border: 1px solid #b6d6ca;
  border-radius: 2rem;
  background: #113c36ab;
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
}

.voice-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-route li {
  padding: .65rem .7rem;
  border: 1px solid #96b9ad;
  border-radius: .65rem;
  background: #f9fdfaab;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.voice-route [data-state="current"] { background: linear-gradient(145deg, #daefce, #bfe8df); color: #163d36; }
.voice-route [data-state="done"] { background: #e5f6ec; color: var(--deep); }
.voice-route [data-state="blocked"] { background: #faefd9; color: #604819; }
.voice-route [data-state="skipped"] { color: #50665f; text-decoration: line-through; }

.voice-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: .75rem;
}

.voice-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #fafff8;
  border-radius: 1rem;
  background: linear-gradient(160deg, #fff 10%, #f3faf6);
  box-shadow: var(--panel-shadow);
}

.voice-trace-panel { background: linear-gradient(150deg, #fff 10%, #f1f7fc); }

.voice-panel-heading {
  display: flex;
  min-height: 3.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  padding: .65rem clamp(.8rem, 2vw, 1.3rem);
  border-bottom: 1px solid var(--line);
}

.voice-panel-heading h5, .voice-evaluation h5 { margin: 0; font-size: .98rem; font-weight: 750; }
.voice-listen { min-height: 2.25rem; padding: .32rem .55rem; }

.voice-transcript, .voice-trace {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: .65rem;
  min-height: 16rem;
  max-height: 23rem;
  overflow: auto;
  margin: 0;
  padding: .85rem clamp(.8rem, 2vw, 1.3rem);
  list-style: none;
}

.voice-turn {
  width: fit-content;
  max-width: 91%;
  padding: .58rem .72rem;
  border: 1px solid #d7e7e0;
  border-radius: .55rem .55rem .55rem .18rem;
  background: linear-gradient(145deg, #f4fbf0, #e5f4eb);
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.5;
}

.voice-turn[data-speaker="caller"] {
  justify-self: end;
  border-color: #dbe8ed;
  border-radius: .55rem .55rem .18rem .55rem;
  background: linear-gradient(145deg, #f5f5ff, #e9f3f9);
}

.voice-turn span { display: block; color: var(--green); font-size: .76rem; font-weight: 750; }
.voice-turn span + p { margin-top: .18rem; }

.voice-actions, .voice-record {
  padding: .75rem clamp(.8rem, 2vw, 1.3rem);
  border-top: 1px solid var(--line);
  background: #e9f3ee94;
}

.voice-record { margin-top: auto; font-size: .9rem; }
.voice-record p + p { margin-top: .24rem; }
#case-summary { font-weight: 700; }

.trace-empty { color: var(--muted); font-size: .9rem; }

.voice-trace details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #f6faf8;
}

.voice-trace summary {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .4rem;
  padding: .48rem .62rem;
  text-decoration: none;
}

.voice-trace summary code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .84rem;
  color: var(--ink);
}

.voice-trace summary::after { margin-inline-start: .13rem; }

.trace-result {
  flex: 0 0 auto;
  padding: .12rem .36rem;
  border-radius: .2rem;
  background: #dcefe5;
  color: #255744;
  font-size: .73rem;
}

.trace-result[data-tone="exception"] { background: #f7ebd1; color: #61451b; }

.voice-trace pre {
  overflow-wrap: anywhere;
  margin: 0;
  padding: .6rem .65rem;
  border-top: 1px solid var(--line);
  background: #edf4f1;
  color: #1c3e35;
  font-size: .78rem;
  white-space: pre-wrap;
}

.voice-evaluation {
  padding: .65rem clamp(.8rem, 2vw, 1.3rem) .8rem;
  border: 1px solid #f9fff5;
  border-radius: .9rem;
  background: linear-gradient(115deg, #f1fae8, #e4f2f6);
  box-shadow: 0 .8rem 1.2rem -1.05rem #174b3f72;
}

.voice-evaluation ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem 1rem;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
}

.voice-evaluation li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem;
  padding: .45rem .6rem;
  border: 1px solid #cfe1d9;
  border-radius: .5rem;
  background: #ffffff96;
  font-size: .82rem;
}
.voice-evaluation span { color: var(--muted); font-weight: 700; }
.voice-evaluation [data-result="pass"] { color: #116142; }
.voice-evaluation [data-result="fail"] { color: #a2381c; }
.voice-evaluation li:has([data-result="fail"]) { border-color: #e7b9a6; background: #fff4ee; }
.check-note {
  margin-top: .55rem;
  padding: .55rem .75rem;
  border-left: 3px solid #c0502b;
  border-radius: .35rem;
  background: #fff4eecc;
  color: #6f2b16;
  font-size: .86rem;
  font-weight: 600;
}
.voice-note { max-width: 78ch; color: var(--muted); font-size: .87rem; }
.voice-note a { text-underline-offset: .17em; }

.demo-launch {
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid #fcfff8;
  border-radius: 1rem;
  background: linear-gradient(130deg, #f9fcf2, #e4f3e9 63%, #e1edf7);
  box-shadow: var(--panel-shadow);
}

.demo-launch h4 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  font-weight: 400;
  line-height: 1.04;
}

.demo-launch p { max-width: 68ch; color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.leadership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 5vw, 4.75rem);
  align-items: stretch;
}

.leadership-notes { display: grid; align-content: center; gap: 1.7rem; }
.leadership-notes article { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.leadership-notes p, .role p, .coffee-note p { color: var(--muted); }
.leadership-notes p { max-width: 67ch; margin-top: .6rem; }

.leadership-feature {
  align-self: center;
  padding: clamp(.5rem, 1.5vw, 1.1rem);
  border: 1px solid #d3e4df;
  border-radius: 1.6rem;
  background:
    var(--grain),
    radial-gradient(ellipse at 100% 0%, #afc6eb, transparent 85%),
    linear-gradient(135deg, #deefd5, #b8e5dc);
  box-shadow: var(--panel-shadow);
}

.keynote-photo { overflow: hidden; border-radius: 1.05rem; background: #e3efec; aspect-ratio: 1; }

.keynote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.field-assets {
  margin-bottom: clamp(2rem, 5vw, 4.4rem);
  padding: clamp(1rem, 3vw, 2.35rem);
  border: 1px solid #d3e4df;
  border-radius: clamp(1.15rem, 2.5vw, 2rem);
  background:
    radial-gradient(ellipse at 98% 0%, #d1def8, transparent 65%),
    radial-gradient(ellipse at 2% 105%, #dcecc4, transparent 75%),
    linear-gradient(145deg, #fdfbf1, #e4f4ee);
  box-shadow: var(--panel-shadow);
}

.field-assets > h3 {
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.35vw, 3.85rem);
  font-weight: 400;
  line-height: 1;
}

.field-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.field-assets-grid article {
  padding: clamp(.95rem, 2vw, 1.45rem);
  border: 1px solid #ffffffd9;
  border-radius: .95rem;
  background: #ffffffbf;
}

.field-assets-grid h4 { margin: 0 0 .38rem; font-size: 1.1rem; line-height: 1.25; }
.field-assets-grid p { max-width: 52ch; color: var(--muted); }
.field-assets-grid .field-asset-feature {
  grid-column: 1 / -1;
  padding: clamp(1.15rem, 2.6vw, 1.9rem);
  background:
    radial-gradient(ellipse at 100% 0%, #d6e3fa, transparent 60%),
    linear-gradient(135deg, #ffffffe6, #f1faf6e6);
}
.field-asset-feature .eyebrow { margin-bottom: .3rem; }
.field-asset-feature h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.03em; }
.field-asset-feature p:not(.eyebrow) { max-width: 70ch; }
.field-asset-feature p + p { margin-top: .6rem; }

.experience {
  --experience-width: 60rem;
  border-top: 1px solid var(--line);
}

.experience > * { max-width: var(--experience-width); margin-inline: auto; }

/* career at a glance: the same line-and-dots motif as the motion piece */
.career-line {
  --draw: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0 clamp(1.6rem, 4vw, 2.6rem);
  padding: 0;
  list-style: none;
}
.career-line::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #9fcfbf, var(--green));
  transform: scaleX(var(--draw));
  transform-origin: 0 50%;
  transition: transform 1.6s cubic-bezier(.65, 0, .35, 1);
}
.career-line li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  text-align: center;
  transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.career-line li::before {
  content: "";
  order: 1;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 .3rem #e0f2eb, 0 0 0 .38rem #9fcfbf;
}
.career-year { order: 0; color: var(--green); font-size: .74rem; font-weight: 750; letter-spacing: .14em; }
.career-line img { order: 2; height: 1.45rem; width: auto; max-width: 7.5rem; margin-top: .45rem; object-fit: contain; mix-blend-mode: multiply; }
.career-label { order: 3; color: var(--muted); font-size: .84rem; font-weight: 600; line-height: 1.3; }
.career-line.is-waiting { --draw: 0; }
.career-line.is-waiting li { opacity: 0; transform: translateY(.6rem); }
.career-line.is-visible { --draw: 1; }
.career-line.is-visible li { opacity: 1; transform: none; }
.career-line.is-visible li:nth-child(2) { transition-delay: .4s; }
.career-line.is-visible li:nth-child(3) { transition-delay: .8s; }
.career-line.is-visible li:nth-child(4) { transition-delay: 1.2s; }
.experience-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .85rem 1.25rem; }
.experience-heading .eyebrow { grid-column: 1 / -1; }
.experience-heading h2 { text-wrap: balance; }
.experience-heading .button { margin-bottom: .3rem; background: #ffffff91; }
.experience-heading .button:hover { background: var(--mint); }

.role {
  display: grid;
  grid-template-columns: clamp(6.6rem, 12vw, 9.2rem) minmax(0, 1fr);
  align-items: start;
  gap: .75rem clamp(1rem, 3.5vw, 3.2rem);
  padding-block: clamp(1.15rem, 3vw, 1.95rem);
  border-bottom: 1px solid var(--line);
}

.role:first-child { border-top: 1px solid var(--line); }

.role-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: min(100%, var(--logo-width));
  height: auto;
  align-self: start;
  margin-top: var(--logo-offset, .24rem);
}

.role-logo-servicenow { --logo-width: 9.2rem; --logo-offset: .5rem; mix-blend-mode: multiply; }
.role-logo-tracelink { --logo-width: 8.25rem; }
.role-logo-salsify { --logo-width: 8.7rem; }
.role-logo-rush { --logo-width: 6.8rem; }

.role h3 { grid-column: 2; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.role-positions { grid-column: 2; display: grid; gap: .9rem; }
.role-position + .role-position { padding-top: .85rem; border-top: 1px solid var(--line); }
.role-position > p { margin-top: .35rem; }
.role-accomplishments {
  display: grid;
  gap: .38rem;
  margin: .6rem 0 0;
  padding-inline-start: 1.2rem;
  color: var(--muted);
}
.role-accomplishments ::marker { color: var(--green); }
.role-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .9rem; }
.role-title h4, .education h4 { margin: 0; font-size: 1.06rem; line-height: 1.32; }
.role-date { font-size: .88rem; font-weight: 650; }
.role .role-note { margin-top: .7rem; color: var(--green); font-size: .9rem; font-weight: 650; }

.education {
  margin-top: clamp(1.6rem, 4vw, 2.7rem);
  padding: clamp(1rem, 2.8vw, 2rem);
  border: 1px solid #d3e4df;
  border-radius: 1.15rem;
  background: linear-gradient(140deg, #f7fae9, #e2f2ef 70%, #e9effa);
}

.education ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

.education p { margin-top: .28rem; color: var(--muted); }

.closing {
  padding-block: clamp(3.65rem, 7vw, 6rem);
  border-radius: clamp(1.65rem, 4vw, 4.2rem);
  color: var(--white);
  background:
    var(--grain),
    radial-gradient(ellipse 82% 142% at -9% 50%, #103c35 20%, #183f39 52%, transparent 98%),
    radial-gradient(ellipse 61% 102% at 106% -21%, #8d9ed7 7%, #77b4cb 51%, transparent 92%),
    radial-gradient(ellipse 66% 106% at 91% 128%, #b6c971 0%, #74a464 48%, transparent 95%),
    linear-gradient(118deg, #163a37, #276d64 67%, #4c9c9d),
    #246957;
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .72fr);
  align-items: end;
  gap: clamp(1.7rem, 7vw, 7rem);
}

.closing h2 { margin-block: .7rem 1rem; }
.closing .eyebrow { color: #bde8da; }
.closing-inner > div > p:last-of-type { max-width: 58ch; color: #edf7f4; font-size: 1.14rem; }
.closing-contact { padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid #ffffff3d; border-radius: 1.2rem; background: #ffffff14; backdrop-filter: blur(6px); }
.closing-contact h3 { margin-bottom: .35rem; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 400; letter-spacing: -.01em; }
.closing-contact p { margin-bottom: 1rem; color: #e3f3ee; font-size: .98rem; }
.closing .button-primary { background: var(--white); color: var(--deep); }
.closing .button-primary:hover { background: var(--mint); }
.closing .button-outline { border-color: #c7e3dd; color: var(--white); }
.closing .button-outline:hover { background: rgb(255 255 255 / .16); }
.closing a:focus-visible { outline-color: var(--white); }

.background-extras {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  margin-top: clamp(1.6rem, 4vw, 2.7rem);
}
.background-extras .education { margin-top: 0; }

.coffee-note {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  padding: clamp(.75rem, 1.8vw, 1rem);
  border: 1px solid #d3e4df;
  border-radius: 1.15rem;
  background:
    var(--grain),
    radial-gradient(ellipse at 100% 0%, #afc6eb, transparent 85%),
    linear-gradient(135deg, #deefd5, #b8e5dc);
  color: var(--ink);
}
.coffee-photo { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: .8rem; }
.coffee-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.coffee-note h3 { margin-top: .2rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 1.95rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance; }
.coffee-note p:not(.eyebrow) { margin-top: .4rem; font-size: .93rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 56rem) {
  .case-grid { grid-template-columns: 1fr; }
  .voice-toolbar { align-items: flex-start; flex-direction: column; }
  .closing-inner { gap: 2rem; }
  .session-signal .voice-signal:first-child { display: none; }
}

@media (max-width: 43rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    padding-block: .8rem;
  }

  .header-contact { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; justify-content: space-between; gap: .35rem; }
  .site-header nav a { font-size: .85rem; padding-block: .2rem; }

  .hero-inner, .featured-cases, .leadership-layout, .field-assets-grid, .experience-heading, .education ul, .closing-inner, .approach-grid { grid-template-columns: 1fr; }
  .featured-cases { row-gap: 1rem; }
  .featured-case { grid-row: auto; grid-template-rows: auto auto; }
  .hero {
    --hero-veil: radial-gradient(ellipse 131% 62% at -9% 9%, #fffae3 3%, #f2f8e4 41%, #ebf8e4bd 67%, transparent 98%);
    padding-block: 2.55rem 2rem;
  }
  .hero h1 { margin-bottom: 1rem; }
  .hero-visual { padding: 0 0 .2rem .75rem; }
  .hero-photo { aspect-ratio: 1.37; }
  .hero-demo { position: relative; inset: auto; width: min(100%, 20.5rem); margin: -1.5rem 0 0 -.75rem; }

  .scope > div { padding: .9rem .55rem; }
  .scope dt { font-size: .76rem; }
  .scope dd { font-size: clamp(1.6rem, 6vw, 2.3rem); }
  .keynote-photo { aspect-ratio: 1.5; }

  .background-extras { grid-template-columns: 1fr; }
  .coffee-note { grid-template-columns: 6rem minmax(0, 1fr); }
  .role { grid-template-columns: clamp(5.35rem, 24vw, 7rem) minmax(0, 1fr); gap: .65rem .85rem; }
  .role-logo { grid-row: 1; }
  .role-positions { grid-column: 1 / -1; }
  .role-logo-rush { --logo-width: 4.85rem; }
  .role-logo-salsify { --logo-width: 5.7rem; }

  .voice-workspace, .voice-evaluation ul { grid-template-columns: 1fr; }
  .voice-session-header { grid-template-columns: minmax(0, 1fr) auto; }
  .voice-status { grid-column: 1 / -1; justify-self: start; }
  .session-signal .voice-signal:last-child { display: none; }
  .scenario-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .career-line { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .career-line::before { display: none; }
  .scenario-controls button { padding-inline: .32rem; font-size: .8rem; text-align: center; }
  .voice-transcript, .voice-trace { min-height: 10rem; max-height: 19rem; }
  .voice-route li { padding-inline: .35rem; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .voice-session-header[data-speaking] .voice-signal i { animation: none; }
}
