:root {
  --bg: #07070a;
  --panel: #0d0d12;
  --panel-2: #111117;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f4ed;
  --muted: #94939f;
  --soft: #d1ced5;
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --gold: #d4af37;
  --font: "Cairo", sans-serif;
  --en: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 4%, rgba(212, 175, 55, 0.075), transparent 30rem),
    radial-gradient(circle at 8% 66%, rgba(var(--accent-rgb), 0.065), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body,
button,
textarea {
  font-family: var(--font);
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.noise {
  position: fixed;
  z-index: 60;
  inset: 0;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  pointer-events: none;
  transition: background-color 0.6s ease;
}

.ambient-a {
  width: 34rem;
  height: 34rem;
  inset-block-start: -22rem;
  inset-inline-end: 18%;
  background: rgba(var(--accent-rgb), 0.16);
}

.ambient-b {
  width: 25rem;
  height: 25rem;
  inset-block-end: -16rem;
  inset-inline-start: -12rem;
  background: rgba(212, 175, 55, 0.08);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #07070a;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 86px;
  padding-inline: clamp(20px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.86);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.brand {
  justify-self: start;
}

.brand img {
  width: 132px;
  height: 54px;
  object-fit: contain;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-title small {
  margin-inline-start: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #00f49a;
  box-shadow: 0 0 0 6px rgba(0, 244, 154, 0.09);
  animation: pulse 2s infinite;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-back,
.header-cta {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.header-back {
  padding-inline: 14px;
  border: 1px solid transparent;
  color: var(--soft);
}

.header-back:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.header-cta {
  gap: 14px;
  padding-inline: 17px;
  border: 1px solid var(--line);
}

.header-cta b {
  color: var(--gold);
}

.header-cta:hover {
  border-color: rgba(212, 175, 55, 0.56);
  background: rgba(212, 175, 55, 0.075);
  transform: translateY(-1px);
}

#main-content,
.app-shell,
.team-story,
.page-footer {
  position: relative;
  z-index: 2;
}

.app-shell {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: clamp(190px, 15vw, 230px) minmax(440px, 1.15fr) minmax(360px, 0.85fr);
  grid-template-rows: minmax(660px, calc(100vh - 86px)) auto;
  border-bottom: 1px solid var(--line);
}

.employee-nav {
  position: relative;
  z-index: 8;
  grid-row: 1 / 3;
  padding: 26px 16px 22px;
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 9, 14, 0.96), rgba(8, 8, 12, 0.9));
}

.nav-head {
  padding: 0 8px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-head b {
  color: var(--gold);
  font: 700 11px var(--en);
}

.employee-list {
  display: grid;
  gap: 6px;
}

.employee-tab {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--muted);
  text-align: start;
  cursor: pointer;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.employee-tab::before {
  content: "";
  position: absolute;
  width: 2px;
  inset-block: 12px;
  inset-inline-start: 0;
  border-radius: 5px;
  background: var(--tab-color);
  opacity: 0;
  transform: scaleY(0.2);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.employee-tab:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  transform: translateX(-2px);
}

.employee-tab.is-active {
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.09);
  color: #fff;
  box-shadow: inset 0 0 24px rgba(var(--accent-rgb), 0.035);
}

.employee-tab.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.tab-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(var(--accent-rgb), 0.17), transparent 65%),
    #121218;
}

.tab-avatar::after,
.chat-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), transparent 54%);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.28);
}

.tab-avatar img,
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-copy {
  min-width: 0;
}

.tab-copy b,
.tab-copy small {
  display: block;
}

.tab-copy b {
  color: inherit;
  font-size: 13px;
}

.tab-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab-arrow {
  color: var(--accent);
  font-size: 13px;
  opacity: 0;
  transform: translateX(5px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.employee-tab.is-active .tab-arrow {
  opacity: 1;
  transform: none;
}

.nav-foot {
  margin-top: auto;
  padding: 18px 7px 0;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.nav-foot-mark {
  color: var(--gold);
}

.nav-foot b,
.nav-foot small {
  display: block;
}

.nav-foot b {
  font-size: 11px;
}

.nav-foot small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.employee-stage {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  border-inline-end: 1px solid var(--line);
  background: #090806;
}

.employee-stage::before,
.employee-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.employee-stage::before {
  z-index: 0;
  background: url("employee-identity-v4/backgrounds/diwan_hq.webp") 52% center / cover no-repeat;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.015);
}

.employee-stage::after {
  z-index: 1;
  background:
    radial-gradient(circle at 27% 48%, rgba(var(--accent-rgb), 0.2), transparent 25%),
    linear-gradient(90deg, rgba(7, 7, 10, 0.1) 0%, rgba(7, 7, 10, 0.12) 37%, rgba(7, 7, 10, 0.78) 76%, rgba(7, 7, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.12), rgba(7, 7, 10, 0.1) 55%, rgba(7, 7, 10, 0.9) 100%);
  transition: background 0.5s ease;
}

.stage-topline {
  position: absolute;
  z-index: 5;
  top: 27px;
  inset-inline: 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #8b8990;
  font: 600 8px var(--en);
  letter-spacing: 1.8px;
}

.stage-topline span:first-child {
  direction: ltr;
  color: var(--accent);
  font-weight: 800;
}

.stage-line {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.17);
}

.hero-copy {
  position: absolute;
  z-index: 5;
  top: 14%;
  right: clamp(28px, 4vw, 58px);
  width: min(58%, 410px);
}

.status-pill {
  padding: 6px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(7, 7, 10, 0.54);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.eyebrow {
  margin: 24px 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -7px;
  text-shadow: 0 16px 55px rgba(0, 0, 0, 0.55);
}

.employee-role {
  margin: 13px 0 0;
  color: #e6e2df;
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 700;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.employee-tagline {
  max-width: 330px;
  margin: 10px 0 0;
  color: #aaa7ad;
  font-size: 13px;
  line-height: 1.9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.ghost-action {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #060609;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(var(--accent-rgb), 0.25);
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 11, 0.44);
  color: var(--soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ghost-action:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.07);
}

.ghost-action span {
  color: var(--accent);
}

.portrait-wrap {
  position: absolute;
  z-index: 3;
  width: 58%;
  height: calc(100% - 96px);
  left: 2%;
  bottom: 24px;
  pointer-events: none;
}

.portrait-glow {
  position: absolute;
  z-index: 0;
  width: 54%;
  aspect-ratio: 1;
  left: 23%;
  top: 27%;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.22);
  filter: blur(55px);
  opacity: 0.7;
  transition: background-color 0.5s ease;
}

.diwan-employee-cutout {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 24px 24px rgba(0, 0, 0, 0.62))
    saturate(0.98)
    contrast(1.02);
  transform-origin: 50% 92%;
  animation: employeeFloat 4.2s ease-in-out infinite;
  transition:
    opacity 0.2s ease,
    transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1);
  will-change: transform;
}

.portrait-wrap.is-switching .diwan-employee-cutout {
  opacity: 0;
  animation: none;
  transform: translateY(8px) scale(0.985);
}

.portrait-fade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 7, 10, 0.88), transparent 17%),
    linear-gradient(to right, transparent 54%, rgba(7, 7, 10, 0.62) 92%);
}

.stage-metric {
  position: absolute;
  z-index: 6;
  bottom: 28px;
}

.stage-metric b,
.stage-metric span {
  display: block;
}

.stage-metric b {
  color: var(--accent);
  font: 800 19px var(--en);
}

.stage-metric span {
  margin-top: 3px;
  color: #9b999f;
  font-size: 9px;
}

.metric-a {
  right: 32px;
}

.metric-b {
  right: 145px;
}

.content-panel {
  min-width: 0;
  grid-column: 2;
  padding: 48px clamp(25px, 4vw, 58px) 65px;
  border-inline-end: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(10, 10, 15, 0.97), rgba(8, 8, 12, 0.93));
}

.content-tabs {
  margin-bottom: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.content-tabs::-webkit-scrollbar,
.employee-list::-webkit-scrollbar {
  display: none;
}

.content-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 13px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.content-tabs button::after {
  content: "";
  position: absolute;
  height: 2px;
  inset-inline: 10px;
  bottom: -1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.content-tabs button.is-active {
  color: #fff;
}

.content-tabs button.is-active::after {
  transform: scaleX(1);
}

.content-tabs button span {
  margin-inline-start: 4px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
}

.view {
  display: none;
  animation: rise 0.4s ease;
}

.view.is-active {
  display: block;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font: 800 9px var(--en);
  letter-spacing: 1px;
}

.section-kicker span {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.section-kicker.second {
  margin-top: 46px;
}

.view h2 {
  margin: 12px 0 7px;
  font-size: clamp(25px, 2.3vw, 38px);
  line-height: 1.35;
  letter-spacing: -1.5px;
}

.section-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.prompt-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  color: var(--soft);
  text-align: start;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.prompt-card:hover {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-2px);
}

.prompt-card span {
  font-size: 11px;
  line-height: 1.75;
}

.prompt-card b {
  align-self: flex-end;
  color: var(--accent);
  font-size: 15px;
}

.skills-preview {
  margin-top: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.skill-preview {
  padding: 16px;
  background: var(--panel);
}

.skill-preview i {
  margin-bottom: 10px;
  display: block;
  color: var(--accent);
  font: 700 9px var(--en);
  font-style: normal;
}

.skill-preview b {
  margin-bottom: 5px;
  display: block;
  font-size: 12px;
}

.skill-preview span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.skills-full,
.addons-grid {
  display: grid;
  gap: 10px;
}

.skill-full {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  background: linear-gradient(110deg, rgba(var(--accent-rgb), 0.055), rgba(255, 255, 255, 0.018));
}

.skill-full .skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font: 800 11px var(--en);
}

.skill-full b {
  display: block;
  font-size: 13px;
}

.skill-full p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.addon-card {
  position: relative;
  overflow: hidden;
  padding: 46px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(var(--accent-rgb), 0.025));
}

.addon-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  left: -25px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  filter: blur(30px);
}

.addon-status {
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 16px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.addon-card.is-ready {
  border-color: rgba(0, 255, 157, 0.24);
}

.addon-card.is-ready .addon-status {
  border-color: rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.07);
  color: #63f3b7;
}

.addon-card.is-review {
  border-color: rgba(212, 175, 55, 0.24);
}

.addon-card.is-review .addon-status {
  border-color: rgba(212, 175, 55, 0.26);
  background: rgba(212, 175, 55, 0.07);
  color: var(--gold);
}

.addon-card.is-unavailable {
  opacity: 0.78;
}

.addon-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.addon-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 18px;
}

.addon-copy {
  min-width: 0;
  flex: 1;
}

.addon-copy b {
  font-size: 13px;
}

.addon-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.addon-price {
  color: var(--gold);
  font: 800 11px var(--en);
  white-space: nowrap;
}

.empty-addons {
  padding: 42px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}

.empty-addons b {
  margin-bottom: 8px;
  display: block;
  color: var(--accent);
  font-size: 32px;
}

.empty-addons span {
  font-size: 11px;
}

.chat-panel {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  min-height: 670px;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  padding: 48px clamp(24px, 3vw, 46px) 36px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 12, 17, 0.98), rgba(8, 8, 12, 0.95));
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.18), transparent 66%),
    var(--panel-2);
}

.chat-avatar i {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  right: 3px;
  bottom: 3px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #00f49a;
}

.chat-identity {
  min-width: 0;
}

.chat-identity b,
.chat-identity span {
  display: block;
}

.chat-identity b {
  font-size: 13px;
}

.chat-identity span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-badge {
  margin-inline-start: auto;
  padding: 5px 9px;
  border: 1px solid rgba(0, 244, 154, 0.2);
  border-radius: 999px;
  background: rgba(0, 244, 154, 0.05);
  color: #28e99d;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.chat-context {
  margin: 26px 0 15px;
  padding-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.chat-context button {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 9px;
  cursor: pointer;
}

.messages {
  min-height: 300px;
  max-height: 520px;
  flex: 1;
  overflow: auto;
  padding: 4px 3px 18px;
  scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent;
  scrollbar-width: thin;
}

.message {
  margin: 12px 0;
  display: flex;
  animation: messageIn 0.32s ease;
}

.message.user {
  justify-content: flex-start;
}

.message.bot {
  justify-content: flex-end;
}

.bubble {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.user .bubble {
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: #060609;
  font-weight: 600;
}

.bot .bubble {
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #e5e3e9;
}

.bot .bubble.error {
  border-color: rgba(255, 82, 82, 0.3);
  color: #ffaaaa;
}

.typing {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.composer {
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.composer:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.055);
}

.composer textarea {
  min-height: 38px;
  max-height: 110px;
  flex: 1;
  resize: none;
  padding: 9px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
}

.composer textarea::placeholder {
  color: #74737e;
}

.composer button {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.composer button:hover {
  transform: scale(1.05);
}

.composer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.composer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #07070a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-note {
  margin: 10px 0 0;
  color: #74737d;
  font-size: 8px;
  text-align: center;
}

.team-story {
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(72px, 8vw, 118px) clamp(20px, 5vw, 78px);
}

.team-story-head {
  max-width: 1200px;
  margin: 0 auto clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
}

.team-story-head > div > p {
  margin: 0 0 12px;
  color: var(--gold);
  font: 800 10px var(--en);
  letter-spacing: 2px;
}

.team-story-head h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 66px);
  line-height: 1.22;
  letter-spacing: -2px;
}

.team-story-head > p {
  margin: 0;
  padding-inline-start: clamp(0px, 3vw, 38px);
  border-inline-start: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.team-formal,
.team-scenes figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0b0b;
}

.team-formal {
  max-width: 1400px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.team-formal::after,
.team-scenes figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 7, 0.92) 100%);
}

.team-formal img,
.team-scenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 0.7s ease;
}

.team-formal:hover img,
.team-scenes figure:hover img {
  filter: saturate(1.05);
  transform: scale(1.018);
}

.team-formal figcaption,
.team-scenes figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(16px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  gap: 13px;
}

.team-formal figcaption > span,
.team-scenes figcaption > span {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 10, 0.4);
  color: var(--gold);
  font: 800 10px var(--en);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.team-formal figcaption b,
.team-formal figcaption small,
.team-scenes figcaption b,
.team-scenes figcaption small {
  display: block;
}

.team-formal figcaption b,
.team-scenes figcaption b {
  font-size: 13px;
}

.team-formal figcaption small,
.team-scenes figcaption small {
  margin-top: 3px;
  color: #bab7bd;
  font-size: 10px;
}

.team-scenes {
  max-width: 1400px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.team-scenes figure {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

.page-footer {
  min-height: 108px;
  padding: 22px clamp(22px, 4vw, 55px);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.86);
  color: var(--muted);
  font-size: 10px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.footer-signature {
  display: grid;
  gap: 5px;
}

.footer-signature strong {
  color: var(--gold);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--soft);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

.page-footer small {
  color: var(--muted);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(
  a,
  button,
  textarea,
  [tabindex]
):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(0, 244, 154, 0);
  }
}

@keyframes employeeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

@keyframes typing {
  0%,
  70%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 190px minmax(420px, 1fr) minmax(350px, 0.8fr);
  }

  .hero-copy {
    right: 30px;
    width: min(62%, 380px);
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .header-title small {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    height: 76px;
    padding-inline: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
  }

  .brand img {
    width: 108px;
    height: 48px;
  }

  .header-title {
    justify-self: center;
    font-size: 12px;
  }

  .app-shell {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .employee-nav {
    position: sticky;
    z-index: 30;
    top: 76px;
    order: 0;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 7, 10, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .nav-head,
  .nav-foot {
    display: none;
  }

  .employee-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .employee-tab {
    flex: 0 0 150px;
    grid-template-columns: 38px minmax(0, 1fr);
    scroll-snap-align: center;
  }

  .tab-avatar {
    width: 38px;
    height: 38px;
  }

  .tab-arrow {
    display: none;
  }

  .employee-stage {
    min-height: 620px;
    order: 1;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .employee-stage::before {
    background-position: 52% center;
  }

  .hero-copy {
    top: 13%;
    right: clamp(24px, 7vw, 62px);
    width: min(58%, 430px);
  }

  .hero-copy h1 {
    font-size: clamp(72px, 13vw, 100px);
  }

  .portrait-wrap {
    width: 56%;
    left: 2%;
  }

  .content-panel {
    order: 2;
    padding: 44px clamp(22px, 6vw, 58px) 56px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .prompt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chat-panel {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 650px;
    order: 3;
    padding: 44px clamp(22px, 6vw, 58px) 34px;
  }

  .messages {
    max-height: 470px;
  }

  .team-story {
    padding-block: 76px;
  }

  .page-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding: 26px 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .page-footer small {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 68px;
    padding-inline: 12px;
    gap: 9px;
  }

  .brand img {
    width: 90px;
    height: 42px;
  }

  .header-title {
    gap: 6px;
    font-size: 10px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-back,
  .header-cta {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .header-cta {
    gap: 6px;
  }

  .employee-nav {
    top: 68px;
    padding-inline: 10px;
  }

  .employee-tab {
    flex-basis: 144px;
    min-height: 54px;
    padding: 7px;
  }

  .employee-stage {
    min-height: 620px;
  }

  .stage-topline {
    top: 21px;
    inset-inline: 18px;
  }

  .stage-topline span:last-child {
    display: none;
  }

  .hero-copy {
    top: 11%;
    right: 19px;
    width: min(79%, 330px);
  }

  .hero-copy h1 {
    font-size: clamp(62px, 20vw, 82px);
    letter-spacing: -5px;
  }

  .employee-role {
    max-width: 270px;
    font-size: 16px;
  }

  .employee-tagline {
    max-width: 260px;
    font-size: 11px;
  }

  .hero-actions {
    gap: 7px;
  }

  .primary-action,
  .ghost-action {
    min-height: 38px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 9px;
  }

  .portrait-wrap {
    width: 56%;
    height: 66%;
    left: 0;
    bottom: 24px;
  }

  .portrait-fade {
    background:
      linear-gradient(to top, rgba(7, 7, 10, 0.94), transparent 18%),
      linear-gradient(to right, transparent 45%, rgba(7, 7, 10, 0.73) 92%);
  }

  .stage-metric {
    bottom: 20px;
  }

  .metric-a {
    right: 19px;
  }

  .metric-b {
    right: 122px;
  }

  .content-tabs {
    margin-bottom: 31px;
  }

  .prompt-grid,
  .skills-preview {
    grid-template-columns: 1fr;
  }

  .prompt-card span,
  .skill-preview span,
  .skill-full p,
  .addon-copy p,
  .bubble,
  .composer textarea {
    font-size: 12px;
  }

  .view h2 {
    font-size: 28px;
  }

  .chat-context,
  .chat-context button,
  .chat-note {
    font-size: 10px;
  }

  .team-story {
    padding: 64px 16px;
  }

  .team-story-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .team-story-head h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .team-story-head > p {
    padding-inline-start: 16px;
  }

  .team-formal {
    border-radius: 18px;
  }

  .team-scenes {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .team-scenes figure {
    border-radius: 16px;
  }

  .team-formal figcaption small,
  .team-scenes figcaption small {
    display: none;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: 72px minmax(48px, 1fr) auto;
  }

  .brand img {
    width: 72px;
  }

  .header-title {
    justify-self: center;
    font-size: 9px;
  }

  .header-title .pulse {
    display: none;
  }

  .header-back {
    width: 32px;
    padding: 0;
  }

  .header-back span {
    display: none;
  }

  .header-back::after {
    content: "↩";
    font: 800 14px var(--en);
  }

  .header-cta {
    padding-inline: 8px;
    font-size: 8px;
  }

  .employee-stage {
    min-height: 590px;
  }

  .status-pill {
    font-size: 9px;
  }

  .eyebrow {
    margin-top: 18px;
  }

  .hero-copy h1 {
    font-size: 60px;
  }

  .stage-metric span {
    font-size: 8px;
  }

  .content-panel,
  .chat-panel {
    padding-inline: 18px;
  }

  .addon-head {
    flex-wrap: wrap;
  }

  .addon-price {
    margin-inline-start: 52px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
