/* Gilfoyle's profile story below the portrait hero: five work scenes, setup and the closing actions.
   Linked only by templates/employee-gilfoyle.html; every rule is scoped to its se-* classes. */
.se-story {
  --se-ink: #302b33;
  --se-muted: #6b636e;
  --se-line: #302b3314;
  --se-paper: #fffdf9;
  --se-green: #1f883d;
  --se-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding-top: clamp(24px, 4vw, 56px);
  color: var(--se-ink);
}
.se-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: min(1200px, calc(100% - 2 * var(--gutter, 40px)));
  margin: 0 auto;
  padding: clamp(56px, 6.5vw, 96px) 0;
}
.se-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.se-flip .se-copy { order: 2; }
.se-copy h2 {
  margin: 0;
  font: 400 clamp(36px, 3.7vw, 54px)/1.08 var(--heading);
  letter-spacing: -.035em;
  color: var(--se-ink);
  text-wrap: balance;
}
.se-copy p {
  max-width: 440px;
  margin: 22px 0 0;
  font: 400 18px/1.6 HelveticaNow, Arial, sans-serif;
  color: var(--se-muted);
  text-wrap: pretty;
}
.se-copy-center { max-width: 680px; margin: 0 auto; text-align: center; }
.se-copy-center p { max-width: 520px; margin-inline: auto; }
.se-points { max-width: 420px; margin: 32px 0 0; padding: 0; list-style: none; }
.se-points li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--se-line);
  font: 500 15px/1.45 HelveticaNow, Arial, sans-serif;
}
.se-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a5aa3, #4b2163);
}

/* A natural photograph frames each product view, as in the site's setup cards. */
.se-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 520px;
  margin: 0;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  overflow: hidden;
  background: #d9d6cb;
  box-shadow: inset 0 0 0 1px #3026380f;
}
.se-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.se-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #ffffff14, #1d1a2214);
  pointer-events: none;
}
.se-bug .se-scene::after { background: linear-gradient(180deg, #fffdf833, #fffdf81a); }
.se-scene-dusk .se-backdrop { object-position: 50% 30%; }
.se-scene-wood .se-backdrop { object-position: 50% 40%; }
.se-requests, .se-onboarding { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.se-scene-wide { min-height: 0; padding: clamp(28px, 4.5vw, 64px); }
.se-scene-clouds .se-backdrop { object-position: 50% 62%; }

.se-window {
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 14px;
  background: var(--se-paper);
  box-shadow: 0 3px 7px #253d2414, 0 26px 50px -20px #1f2a2a70;
  color: var(--se-ink);
  font: 400 13px/1.5 HelveticaNow, Arial, sans-serif;
  text-align: left;
}
.se-window p { margin: 0; }
.se-window img { display: block; }
.se-muted { color: var(--se-muted); font-weight: 400; }
.se-avatar { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.se-initial { display: grid; place-items: center; color: #fffdf8; font: 600 14px/1 HelveticaNow, Arial, sans-serif; }
.se-tone-clay { background: #b9785a; }
.se-tone-sage { background: #6d8a68; }
.se-tone-plum { background: #7a5a8c; }
.se-who { margin-bottom: 2px !important; font-size: 13px; }
.se-window strong { font-weight: 500; color: #1d1920; }
.se-check {
  position: relative;
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--se-green);
}
.se-check::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 3px;
  width: 3.5px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}
.se-state { flex: none; margin-left: auto; padding: 3px 10px; border-radius: 999px; font: 500 12px/1.4 HelveticaNow, Arial, sans-serif; }
.se-state-open { background: var(--se-green); color: #fff; }
.se-state-ready { background: #efe6f3; color: #56286c; }
.se-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: #f1ede5;
  font: 500 12px/1.4 HelveticaNow, Arial, sans-serif;
  color: var(--se-ink);
}
.se-chip img { border-radius: 3px; }
.se-chip-pass { background: #e8f5eb; color: #17602d; }
.se-chip-pass .se-check { width: 14px; height: 14px; }
.se-chip-pass .se-check::after { left: 4.75px; top: 2.5px; width: 3px; height: 6px; }
.se-chip-run { background: #f7efdf; color: #74531a; }
.se-spinner { width: 10px; height: 10px; border: 2px solid #74531a40; border-top-color: #74531a; border-radius: 50%; }

/* Pull request review */
.se-pr-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--se-line); font-size: 14px; }
.se-pr-head strong { font-weight: 600; }
.se-file { padding: 8px 18px; background: #f5f2ec; border-bottom: 1px solid var(--se-line); font: 500 12px/1.4 var(--se-mono); }
.se-diff { font: 12px/1.7 var(--se-mono); border-bottom: 1px solid var(--se-line); }
.se-line { display: grid; grid-template-columns: 40px 16px minmax(0, 1fr); }
.se-line > span { padding-right: 10px; color: #9a929d; text-align: right; }
.se-line::after { content: ''; order: 1; }
.se-line code { order: 2; overflow: hidden; white-space: pre; text-overflow: ellipsis; font: inherit; }
.se-del { background: #fdecea; }
.se-add { background: #e7f6ea; }
.se-del::after { content: '−'; color: #b3261e; }
.se-add::after { content: '+'; color: #17602d; }
.se-comment { display: flex; gap: 10px; margin: 14px 16px 0; padding: 12px; border: 1px solid #302b331c; border-radius: 10px; background: #fff; }
.se-comment-body { min-width: 0; }
.se-comment-body > p + p { margin-top: 4px; }
.se-suggest { margin-top: 10px; overflow: hidden; border: 1px solid #302b331c; border-radius: 8px; }
.se-suggest-label { display: block; padding: 5px 10px; background: #f5f2ec; font-size: 11.5px; font-weight: 500; color: var(--se-muted); }
.se-suggest code { display: block; padding: 7px 10px; background: #e7f6ea; font: 11.5px/1.55 var(--se-mono); white-space: pre; overflow: hidden; }
.se-resolved { display: flex; align-items: center; gap: 8px; padding: 14px 18px 16px; font-size: 12.5px; }

/* Slack threads */
.se-slack-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--se-line); font-weight: 600; }
.se-slack-bar .se-muted { margin-left: auto; font-size: 12px; }
.se-msg { display: flex; gap: 10px; padding: 12px 16px; }
.se-msg > div { min-width: 0; }
.se-msg > div > p + p { margin-top: 6px; }
.se-mention { padding: 0 2px; border-radius: 3px; background: #e8f3fa; color: #1264a3; }
.se-pr-card { margin-top: 10px; overflow: hidden; border: 1px solid #302b331c; border-radius: 10px; background: #fff; }
.se-pr-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--se-line); }
.se-pr-card-head strong { min-width: 0; font-weight: 600; }
.se-checks { margin: 0; padding: 8px 12px 4px; list-style: none; }
.se-checks li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.se-pr-card-foot { display: flex; padding: 6px 12px 12px; }
.se-pr-card-foot .se-state { margin-left: 0; }

/* Plain-language requests */
.se-requests-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; width: 100%; max-width: 1040px; align-items: stretch; }
.se-request { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; max-width: none; padding: 4px 0; }
.se-request .se-avatar { width: 28px; height: 28px; border-radius: 7px; }
.se-reply { border-top: 1px solid var(--se-line); }

/* Production alert */
.se-alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--se-line); background: #fff4f2; }
.se-alert-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #c8372d; box-shadow: 0 0 0 4px #c8372d26; }
.se-alert-title { font-size: 14px; font-weight: 600; }
.se-timeline { margin: 0; padding: 8px 18px 14px; list-style: none; }
.se-timeline li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.se-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 40px; bottom: -6px; width: 2px; border-radius: 1px; background: #e6e0e8; }
.se-timeline .se-avatar { width: 26px; height: 26px; border-radius: 50%; }
.se-timeline code { padding: 1px 4px; border-radius: 4px; background: #f3efe9; font: 11.5px/1.6 var(--se-mono); overflow-wrap: anywhere; }
.se-step { position: relative; width: 26px; height: 26px; }
.se-step::before { content: ''; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #8d6f9c; box-shadow: 0 0 0 4px #efe8f2; }
.se-step-done { border-radius: 50%; background: var(--se-green); }
.se-step-done::before { content: none; }
.se-step-done::after { content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Isolated machines */
.se-machine-stack { display: grid; gap: 14px; width: 100%; max-width: 520px; }
.se-machine { position: relative; background: #241e2a; color: #ece6f0; box-shadow: 0 3px 7px #10120f2e, 0 26px 50px -20px #10120fa0; }
.se-machine:nth-child(2) { margin-left: 24px; width: calc(100% - 24px); }
.se-machine:nth-child(3) { margin-left: 48px; width: calc(100% - 48px); }
.se-machine-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #2f2836; color: #cfc4d6; font: 500 12px/1.4 var(--se-mono); }
.se-dots { display: flex; gap: 5px; }
.se-dots i { width: 8px; height: 8px; border-radius: 50%; background: #5a5060; }
.se-machine pre { margin: 0; padding: 12px 14px 14px; font: 12px/1.65 var(--se-mono); white-space: pre; overflow: hidden; }
.se-machine code { font: inherit; }
.se-prompt { color: #c4a3dc; }
.se-ok { color: #84d69c; }
.se-run { color: #e6c46e; }
.se-machine .se-chip { position: absolute; right: 12px; top: 40px; margin: 0; }

/* Setup */
.se-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.se-step-card {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px #302b3312, 0 22px 44px -30px #302b3366;
}
.se-step-num { position: absolute; top: 26px; right: 28px; font: 400 18px/1 var(--heading); color: #a69dab; }
.se-step-logos { display: flex; gap: 8px; margin-bottom: 22px; }
.se-step-logos img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px #302b3314; }
.se-step-card h3 { margin: 0; font: 400 24px/1.2 var(--heading); letter-spacing: -.02em; text-wrap: balance; }
.se-step-card p { margin: 10px 0 0; font: 400 15px/1.55 HelveticaNow, Arial, sans-serif; color: var(--se-muted); }
.se-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 4px; }
.se-links a { padding: 6px 2px; color: var(--se-ink); font: 500 15px/1.4 HelveticaNow, Arial, sans-serif; text-decoration: underline; text-decoration-color: #302b3340; text-underline-offset: 4px; }
.se-links a:hover { text-decoration-color: currentColor; }
.se-links a:focus-visible { outline: 2px solid #643975; outline-offset: 3px; border-radius: 4px; }

/* Closing: the hero's two actions, centered in the shared night scene. */
.closing-section .hero-actions.se-closing-actions { justify-content: center; margin-top: 36px; }
@media (max-width: 600px) {
  .closing-section .hero-actions.se-closing-actions { flex-direction: column; align-items: stretch; gap: 12px; width: min(342px, 100%); margin-inline: auto; }
  .closing-section .hero-actions.se-closing-actions :is(.hero-signup, .native-demo-button) { flex: none; width: 100%; }
}

/* Entrance motion, added by software-engineer-sections.js only when motion is allowed. */
.se-motion .se-copy, .se-motion .se-scene > :not(.se-backdrop), .se-motion .se-step-card {
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.se-motion .se-backdrop { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.se-motion :is(.se-copy, .se-scene, .se-step-card):not(.se-in) :is(.se-window, .se-requests-grid, .se-machine-stack),
.se-motion .se-copy:not(.se-in), .se-motion .se-step-card:not(.se-in) { opacity: 0; transform: translateY(24px); }
.se-motion .se-scene:not(.se-in) .se-backdrop { transform: scale(1.05); }
.se-motion .se-step-card:nth-child(2) { transition-delay: .08s; }
.se-motion .se-step-card:nth-child(3) { transition-delay: .16s; }
.se-motion .se-scene :is(.se-comment, .se-resolved, .se-msg + .se-msg, .se-timeline li, .se-request, .se-machine) { transition: opacity .6s ease, transform .6s ease; }
.se-motion .se-scene:not(.se-in) :is(.se-comment, .se-resolved, .se-msg + .se-msg, .se-timeline li, .se-request, .se-machine) { opacity: 0; transform: translateY(10px); }
.se-motion .se-scene.se-in .se-comment { transition-delay: .35s; }
.se-motion .se-scene.se-in .se-resolved { transition-delay: .7s; }
.se-motion .se-scene.se-in .se-msg + .se-msg { transition-delay: .45s; }
.se-motion .se-scene.se-in :is(.se-timeline li, .se-request, .se-machine):nth-child(2) { transition-delay: .25s; }
.se-motion .se-scene.se-in :is(.se-timeline li, .se-request, .se-machine):nth-child(3) { transition-delay: .5s; }
.se-motion .se-scene.se-in .se-timeline li:nth-child(4) { transition-delay: .75s; }
.se-motion .se-spinner { animation: se-spin 1.1s linear infinite; }
@keyframes se-spin { to { transform: rotate(360deg); } }
html.se-settling .se-story * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .se-motion * { transition: none !important; animation: none !important; }
}

/* Tablet: scenes stack under their copy. */
@media (max-width: 1100px) {
  .se-section, .se-flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .se-flip .se-copy { order: 0; }
  .se-copy { max-width: 640px; }
  .se-requests-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 540px; }
  .se-request { grid-row: auto; grid-template-rows: auto; }
  .se-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 760px) {
  .se-section { width: calc(100% - 40px); padding: 56px 0; gap: 28px; }
  .se-copy h2 { font-size: clamp(32px, 8.6vw, 40px); }
  .se-copy p { margin-top: 16px; font-size: 16px; }
  .se-points { margin-top: 22px; }
  .se-points li { font-size: 14px; }
  .se-scene, .se-scene-wide { min-height: 0; padding: 20px 14px; border-radius: 18px; }
  .se-window { font-size: 12.5px; }
  .se-pr-head { padding: 12px 14px; font-size: 13px; }
  .se-file { padding: 7px 14px; }
  .se-diff { font-size: 11px; }
  .se-line { grid-template-columns: 30px 14px minmax(0, 1fr); }
  .se-line > span { padding-right: 6px; }
  /* Long lines wrap under their own code rather than being cut off. */
  .se-line code { padding-left: 4ch; text-indent: -4ch; white-space: pre-wrap; overflow-wrap: anywhere; }
  .se-comment { margin: 12px 10px 0; padding: 10px; }
  .se-comment .se-avatar { width: 28px; height: 28px; }
  .se-resolved { padding: 12px 14px 14px; }
  .se-msg { padding: 10px 12px; }
  .se-msg > .se-avatar { width: 28px; height: 28px; }
  .se-timeline { padding: 6px 14px 12px; }
  .se-machine:nth-child(n) { margin-left: 0; width: auto; }
  .se-machine pre { font-size: 11px; }
  .se-machine .se-chip { position: static; margin: 0 12px 12px; }
  .se-step-card { padding: 24px 22px 26px; }
}
