:root {
  --black: #0b0b0b;
  --graphite: #1f1f1f;
  --panel: #131313;
  --panel-soft: #181818;
  --white: #ffffff;
  --muted: #a5a5a5;
  --gray: #6b6b6b;
  --gold: #d4af37;
  --gold-bright: #edcc62;
  --gold-dark: #9b781b;
  --line: rgba(255, 255, 255, 0.12);
  --gold-line: rgba(212, 175, 55, 0.38);
  --display: "Montserrat", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
body.chat-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(6rem, 10vw, 10rem) 0; }
em { color: var(--gold); font-style: normal; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--gold);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.site-header.scrolled,
.site-header.menu-active {
  background: rgba(11, 11, 11, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { height: 86px; display: flex; align-items: center; gap: 2rem; }
.brand { width: 188px; flex: 0 0 auto; aspect-ratio: 900 / 301; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.desktop-nav a {
  position: relative;
  color: #d7d7d7;
  font-family: var(--display);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right 220ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after { right: 0; }
.header-cta { margin-left: clamp(0.4rem, 1.2vw, 1.4rem); min-height: 44px !important; padding: 0.7rem 1.15rem !important; font-size: 0.72rem !important; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--white); }
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; transition: transform 220ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 86px 0 0; padding: 2rem 24px; background: var(--black); }
.mobile-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.mobile-nav .mobile-nav-cta { margin-top: 1.5rem; padding: 1rem; color: var(--black); background: var(--gold); text-align: center; border: 0; }
.reading-progress { position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--gold); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.button-gold { color: #080808; background: linear-gradient(100deg, #bc9428, #e5c558 54%, #c89c28); border-color: var(--gold); }
.button-gold:hover { background: var(--gold-bright); }
.button-ghost { color: var(--white); background: rgba(10, 10, 10, 0.3); border-color: rgba(255,255,255,0.28); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(10,10,10,0.65); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; background: #090909; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #090909 0%, #090909 38%, rgba(9,9,9,0.9) 48%, rgba(9,9,9,0.1) 74%, rgba(9,9,9,0.35) 100%),
    linear-gradient(0deg, #090909 0%, transparent 28%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.hero-visual { position: absolute; inset: 0 0 0 34%; z-index: -2; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(0.82) contrast(1.05); }
.hero-grid { padding-top: 116px; padding-bottom: 72px; }
.hero-copy { width: min(720px, 62vw); }
.eyebrow, .section-kicker, .card-label, .case-sector {
  margin: 0 0 1.4rem;
  color: #c8c8c8;
  font-family: var(--display);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; margin-right: 0.7rem; padding-right: 0.7rem; color: var(--gold-bright); border-right: 1px solid var(--gold-line); }
.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.1vw, 6.15rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero h1 em { display: inline-block; font-weight: 500; }
.hero-lead { max-width: 650px; margin: 2rem 0 0; color: #f3f3f3; font-size: clamp(1.16rem, 1.6vw, 1.42rem); line-height: 1.45; }
.hero-description { max-width: 610px; margin: 1rem 0 0; color: #b6b6b6; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.service-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; max-width: 720px; margin: 2.3rem 0 0; color: #b7b7b7; font-size: 0.78rem; }
.service-line i { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.hero-index { position: absolute; right: clamp(24px, 4vw, 64px); bottom: 34px; display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.55); font-family: var(--display); font-size: 0.65rem; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.hero-index strong { color: var(--gold); font-size: 0.9rem; }

.section-intro { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.split-intro { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr); gap: clamp(3rem, 7vw, 8rem); align-items: end; }
.section-kicker { color: var(--gold); }
.section-intro h2, .method-heading h2, .technology-copy h2, .diagnostic-copy h2, .about-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.section-summary, .intro-copy { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.intro-copy p { margin: 0 0 1rem; }

.problem { background: #0d0d0d; }
.friction-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.friction-grid article { min-height: 230px; padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,0.02), transparent); transition: background 240ms ease, border-color 240ms ease; }
.friction-grid article:hover { background: rgba(212,175,55,0.055); border-color: var(--gold-line); }
.friction-grid article > span { color: var(--gold); font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.15em; }
.friction-grid h3 { margin: 2.6rem 0 0.5rem; font-family: var(--display); font-size: 1.18rem; }
.friction-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.principle { display: grid; grid-template-columns: 1fr 2.1fr; gap: 2rem; margin-top: clamp(3rem, 6vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--gold-line); }
.principle > span { color: var(--gold); font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.principle p { margin: 0; font-family: var(--display); font-size: clamp(1.55rem, 3.1vw, 3.2rem); line-height: 1.2; }
.principle strong { color: var(--gold-bright); font-weight: 600; }
.strategy-snapshot { position: relative; min-height: 520px; margin: clamp(4rem, 7vw, 7rem) 0 0; overflow: hidden; border: 1px solid var(--line); background: #080808; }
.strategy-snapshot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.12), rgba(5,5,5,0.06) 46%, rgba(5,5,5,0.82)), linear-gradient(0deg, rgba(5,5,5,0.82), transparent 44%); }
.strategy-snapshot > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; filter: saturate(0.84) contrast(1.03); }
.strategy-snapshot figcaption { position: absolute; z-index: 1; right: clamp(1.5rem, 5vw, 4.5rem); bottom: clamp(1.5rem, 5vw, 4rem); width: min(480px, 46%); }
.strategy-snapshot figcaption span { display: block; margin-bottom: 0.7rem; color: var(--gold-bright); font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; }
.strategy-snapshot figcaption strong { display: block; font-family: var(--display); font-size: clamp(1.45rem, 2.8vw, 2.7rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }

.method { position: relative; overflow: hidden; background: var(--graphite); }
.method::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 65%); }
.method-mark { position: absolute; left: -5%; bottom: -8%; width: clamp(220px, 28vw, 430px); opacity: 0.035; transform: rotate(-12deg); }
.method-layout { position: relative; display: grid; grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1fr); gap: clamp(4rem, 8vw, 9rem); }
.method-heading { position: sticky; top: 130px; align-self: start; }
.method-heading > p:not(.section-kicker) { max-width: 560px; margin: 2rem 0 0; color: #b7b7b7; }
.method-flow { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; color: #c5c5c5; font-family: var(--display); font-size: 0.65rem; letter-spacing: 0.07em; text-transform: uppercase; }
.method-flow i { color: var(--gold); font-style: normal; }
.method-steps { border-top: 1px solid var(--gold-line); }
.method-step { display: grid; grid-template-columns: 82px 1fr; gap: 1.5rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--gold); font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.method-step div > p:first-child { margin: 0 0 0.6rem; color: var(--gray); font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; }
.method-step h3 { margin: 0 0 0.7rem; font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.05rem); font-weight: 600; }
.method-step div > p:last-child { margin: 0; color: #b7b7b7; }

.solutions { background: var(--black); }
.solutions .section-intro { display: grid; grid-template-columns: 1.25fr 0.7fr; gap: 3rem; max-width: none; align-items: end; }
.solutions .section-intro .section-kicker { grid-column: 1 / -1; margin-bottom: -1rem; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.solution-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.7rem, 3vw, 2.7rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: #101010; transition: background 250ms ease; }
.solution-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease; }
.solution-card:hover { background: #161616; }
.solution-card:hover::after { transform: scaleX(1); }
.solution-feature { grid-column: 1 / -1; min-height: 360px; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: end; gap: 2rem; background: linear-gradient(120deg, #181818, #101010); }
.card-index { color: var(--gold); font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.14em; }
.solution-card h3 { max-width: 670px; margin: 0 0 0.9rem; font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; }
.solution-card p:last-child { max-width: 630px; margin: 0; color: var(--muted); }
.card-label { margin-bottom: 0.7rem; color: var(--gray); font-size: 0.66rem; }
.card-arrow { color: var(--gold); font-size: 2.4rem; }

.cases { background: #101010; }
.case-card { margin-top: clamp(3rem, 5vw, 5.5rem); padding: clamp(1.5rem, 4vw, 3.6rem); border: 1px solid var(--line); background: var(--panel); }
.case-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; padding: 0.45rem 0.75rem; border: 1px solid var(--line); color: #d4d4d4; font-family: var(--display); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.status-live { border-color: var(--gold-line); color: var(--gold-bright); }
.status-live i { box-shadow: 0 0 0 4px rgba(212,175,55,0.12); }
.status-progress { color: #d5d5d5; }
.status-progress i { background: #8d8d8d; }
.case-sector { margin: 0 0 0.6rem; color: var(--gray); }
.case-topline h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.2vw, 4.3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.case-number { color: transparent; -webkit-text-stroke: 1px rgba(212,175,55,0.45); font-family: var(--display); font-size: clamp(4rem, 9vw, 8.2rem); font-weight: 700; line-height: 0.9; }
.case-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); padding-top: 3rem; align-items: center; }
.case-story dl { margin: 0; }
.case-story dl > div { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.case-story dt { margin-bottom: 0.35rem; color: var(--gold); font-family: var(--display); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.case-story dd { margin: 0; color: #b9b9b9; font-size: 0.93rem; }
.case-story .button { margin-top: 1.8rem; }
.site-mockup { display: block; perspective: 1200px; }
.mockup-browser { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,0.19); border-radius: 9px; background: #eef2e9; box-shadow: 0 28px 60px rgba(0,0,0,0.36); transform: rotateY(-3deg) rotateX(1.5deg); transition: transform 350ms ease, border-color 250ms ease; }
.site-mockup:hover .mockup-browser { transform: rotateY(0) rotateX(0) translateY(-4px); border-color: var(--gold-line); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 11px; color: #6a6a6a; background: #e4e7df; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b8bcb4; }
.browser-bar b { margin: 0 auto; font-size: 0.54rem; font-weight: 500; }
.mockup-page { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #23322f; }
.mockup-photo { width: 100%; height: 100%; object-fit: cover; }
.mockup-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,28,23,0.94), rgba(4,28,23,0.58) 52%, rgba(4,28,23,0.08)); }
.mockup-logo { position: absolute; left: 4%; top: 5%; width: 28%; height: auto; }
.mockup-copy { position: absolute; left: 6%; bottom: 12%; display: flex; flex-direction: column; align-items: flex-start; }
.mockup-copy small { color: #b7d632; font-size: clamp(0.36rem, 0.6vw, 0.55rem); font-weight: 700; letter-spacing: 0.1em; }
.mockup-copy strong { margin-top: 0.4rem; font-family: var(--display); font-size: clamp(1rem, 2.5vw, 2.1rem); line-height: 1.02; }
.mockup-copy strong em { color: #b7d632; }
.mockup-copy b { margin-top: 0.9rem; padding: 0.45rem 0.7rem; color: #11201b; background: #b7d632; font-size: clamp(0.36rem, 0.65vw, 0.56rem); text-transform: uppercase; }
.mockup-caption { display: flex; justify-content: space-between; margin-top: 1rem; color: #8c8c8c; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.mockup-caption b { color: #d5d5d5; font-weight: 500; }
.mockup-caption i { color: var(--gold); font-style: normal; }
.case-progress { background: linear-gradient(125deg, #151515 0%, #111 65%, rgba(212,175,55,0.06)); }
.case-progress-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); padding-top: 3rem; }
.case-deliverables { align-self: start; padding: 2rem; border: 1px solid var(--gold-line); background: rgba(212,175,55,0.025); }
.case-deliverables > p { margin: 0 0 1rem; color: var(--gold); font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.14em; }
.case-deliverables ol { list-style: none; margin: 0; padding: 0; }
.case-deliverables li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 0.7rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 0.92rem; }
.case-deliverables li:last-child { border: 0; }
.case-deliverables li span { color: var(--gray); font-size: 0.68rem; }
.case-deliverables li b { color: var(--gold); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; }

.social-proof { background: #0b0b0b; }
.social-proof-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(390px, 0.86fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.social-proof-visual { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: #050505; box-shadow: 0 30px 70px rgba(0,0,0,0.32); }
.social-proof-visual::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color 240ms ease, background 240ms ease; }
.social-proof-visual:hover::after { border-color: var(--gold-line); background: rgba(212,175,55,0.025); }
.social-proof-visual > img { width: 100%; aspect-ratio: 1035 / 570; object-fit: cover; }
.social-proof-visual > span { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.social-proof-visual > span b { font-family: var(--display); font-size: 0.85rem; }
.social-proof-visual > span i { color: var(--gold); font-size: 0.68rem; font-style: normal; letter-spacing: 0.07em; text-transform: uppercase; }
.social-proof-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 4.35rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; }
.social-proof-lead { margin: 2rem 0 1rem; color: var(--white) !important; font-size: 1.18rem; }
.social-proof-copy > p:not(.section-kicker) { color: var(--muted); }
.network-links { margin-top: 2rem; border-top: 1px solid var(--gold-line); }
.network-links a { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: color 200ms ease, padding 200ms ease; }
.network-links a:hover { color: var(--gold-bright); padding-left: 0.35rem; }
.network-links span { color: var(--gray); font-family: var(--display); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; }
.network-links b { font-family: var(--display); font-size: 0.84rem; font-weight: 600; }
.network-links i { color: var(--gold); font-style: normal; }

.about { background: var(--graphite); }
.about-grid { display: grid; grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.about-visual { position: relative; min-height: 670px; overflow: hidden; background: #111; }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,0.88), transparent 50%); }
.about-visual > img { width: 100%; height: 100%; min-height: 670px; object-fit: cover; object-position: center; filter: saturate(0.76) contrast(1.04); }
.about-caption { position: absolute; z-index: 1; left: 2rem; bottom: 1.8rem; display: flex; flex-direction: column; }
.about-caption small { color: var(--gold); font-family: var(--display); font-size: 0.64rem; letter-spacing: 0.14em; }
.about-caption b { margin-top: 0.2rem; font-family: var(--display); font-size: 1.35rem; }
.about-role { margin: 0.8rem 0 2rem; color: var(--gold); font-family: var(--display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
.about-lead { color: var(--white) !important; font-size: 1.28rem; }
.about-copy > p:not(.section-kicker):not(.about-role) { color: #bdbdbd; }
.about-copy blockquote { margin: 2.4rem 0 0; padding: 1.5rem 0 0 1.6rem; border-top: 1px solid var(--gold-line); border-left: 2px solid var(--gold); color: #efefef; font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.5; }
.career { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: clamp(4rem, 7vw, 7rem); padding-top: 2.2rem; border-top: 1px solid var(--line); color: #c2c2c2; font-family: var(--display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.career i { color: var(--gold); font-style: normal; }

.technology { background: #0e0e0e; }
.technology-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(4rem, 8vw, 9rem); align-items: center; }
.technology-copy .technology-lead { margin-top: 2rem; color: var(--white); font-size: 1.25rem; }
.technology-copy > p:last-child { color: var(--muted); }
.technology-board { border-top: 1px solid var(--gold-line); }
.technology-board > div { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.technology-board .board-head { color: var(--gold); font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.13em; }
.technology-board b { font-family: var(--display); font-size: 0.85rem; font-weight: 600; }
.technology-board span { color: var(--muted); font-size: 0.88rem; }

.manifesto { position: relative; min-height: 730px; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: #090909; }
.manifesto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #090909 0%, rgba(9,9,9,0.94) 48%, rgba(9,9,9,0.32) 100%), linear-gradient(0deg, #090909, transparent 35%); }
.manifesto-image { position: absolute; z-index: -2; inset: 0 0 0 38%; }
.manifesto-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.62) contrast(1.06); }
.manifesto-inner { padding-block: 7rem; }
.manifesto-inner > img { width: 70px; margin-bottom: 2rem; }
.manifesto h2 { max-width: 960px; margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.5vw, 4.7rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.12; }
.manifesto h2 em { color: var(--gold-bright); }
.manifesto h2 + p { margin-top: 2rem; color: var(--white); font-family: var(--display); font-weight: 600; }
.manifesto h2 + p span { color: var(--gold); font-weight: 500; }

.diagnostic { background: var(--graphite); }
.diagnostic-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.diagnostic-copy > p:not(.section-kicker) { max-width: 600px; color: #bdbdbd; font-size: 1.08rem; }
.diagnostic-note { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--gold-line); }
.diagnostic-note > span { color: var(--gold); font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; }
.diagnostic-note ul { margin: 1rem 0 0; padding-left: 1.2rem; color: #c2c2c2; }
.diagnostic-note li { margin: 0.35rem 0; }
.diagnostic-form { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: #111; }
.form-heading { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.form-heading span { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.form-heading small { color: var(--muted); font-size: 0.84rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.form-grid label { display: flex; flex-direction: column; gap: 0.45rem; }
.form-grid label > span { color: #b9b9b9; font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; padding: 0.9rem 0; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid #454545; border-radius: 0; outline: 0; }
.form-grid select { color-scheme: dark; cursor: pointer; }
.form-grid select option { color: var(--white); background: #111; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--gold); }
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #6f6f6f; }
.full-field { grid-column: 1 / -1; }
.form-submit { width: 100%; margin-top: 1.7rem; }
.form-status { margin: 0.9rem 0 0; color: #777; font-size: 0.75rem; text-align: center; }
.form-status.success { color: var(--gold-bright); }
.direct-contact { margin-top: 2rem; border-top: 1px solid var(--gold-line); }
.direct-contact a { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.direct-contact a:hover b { color: var(--gold-bright); }
.direct-contact span { color: var(--gray); font-family: var(--display); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.direct-contact b { overflow-wrap: anywhere; font-family: var(--display); font-size: 0.86rem; font-weight: 600; transition: color 200ms ease; }
.direct-contact i { color: var(--gold); font-style: normal; }

.site-footer { padding: 4rem 0 2rem; background: #080808; border-top: 1px solid var(--gold-line); }
.footer-main { display: grid; grid-template-columns: 0.75fr 1.15fr 0.55fr; gap: 3rem; align-items: start; }
.footer-brand img { width: 190px; aspect-ratio: 900 / 301; object-fit: contain; }
.footer-brand p { max-width: 260px; margin: 1rem 0 0; color: #777; font-size: 0.78rem; }
.footer-contact-link { display: block; width: fit-content; margin-top: 0.65rem; color: #b8b8b8; font-size: 0.78rem; }
.footer-contact-link:hover { color: var(--gold-bright); }
.footer-statement { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 3.4rem); line-height: 1.15; }
.footer-main nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; color: #aaa; font-size: 0.84rem; }
.footer-main nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); color: #606060; font-size: 0.7rem; }
.footer-bottom a:hover { color: var(--gold); }
.context-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding: 1.35rem 1.5rem; background: linear-gradient(100deg, rgba(212,175,55,0.08), rgba(255,255,255,0.015)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgba(212,175,55,0.16); }
.context-cta > div { display: grid; gap: 0.18rem; }
.context-cta > div span { color: var(--gold-bright); font-family: var(--display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.context-cta > div strong { color: #f3f1eb; font-family: var(--display); font-size: clamp(0.92rem, 1.5vw, 1.15rem); font-weight: 600; line-height: 1.35; }
.context-cta > a { display: inline-flex; min-height: 46px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem 1rem; color: #e8e5dc; border: 1px solid rgba(212,175,55,0.48); font-family: var(--display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase; transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease; }
.context-cta > a:hover { color: #090909; background: var(--gold); border-color: var(--gold-bright); transform: translateY(-2px); }

/* Asistente AIconneX · integración oficial de n8n Chat */
#n8n-chat,
.n8n-chat {
  --chat--color--primary: #d4af37;
  --chat--color--primary-shade-50: #c49d2f;
  --chat--color--primary--shade-100: #a98320;
  --chat--color--secondary: #d4af37;
  --chat--color-secondary-shade-50: #e4c45d;
  --chat--color-white: #f6f6f3;
  --chat--color-light: #101010;
  --chat--color-light-shade-50: #1a1a1a;
  --chat--color-light-shade-100: #323232;
  --chat--color-medium: #777;
  --chat--color-dark: #090909;
  --chat--color-disabled: #666;
  --chat--color-typing: #d4af37;
  --chat--spacing: 0.9rem;
  --chat--border-radius: 12px;
  --chat--transition-duration: 180ms;
  --chat--font-family: "Inter", sans-serif;
  --chat--window--width: min(400px, calc(100vw - 44px));
  --chat--window--height: min(600px, calc(100dvh - 190px));
  --chat--window--bottom: 88px;
  --chat--window--right: 22px;
  --chat--window--z-index: 95;
  --chat--window--border: 1px solid rgba(212, 175, 55, 0.38);
  --chat--window--border-radius: 18px;
  --chat--window--margin-bottom: 12px;
  --chat--header--padding: 1.2rem 1.25rem;
  --chat--header--background: #0b0b0b;
  --chat--header--color: #f6f6f3;
  --chat--header--border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  --chat--heading--font-size: 1.25rem;
  --chat--subtitle--font-size: 0.78rem;
  --chat--subtitle--line-height: 1.45;
  --chat--body--background: #111;
  --chat--message--font-size: 0.92rem;
  --chat--message--padding: 0.85rem 0.95rem;
  --chat--message--border-radius: 12px;
  --chat--message-line-height: 1.5;
  --chat--message--bot--background: #1a1a1a;
  --chat--message--bot--color: #efefec;
  --chat--message--bot--border: 1px solid rgba(255, 255, 255, 0.08);
  --chat--message--user--background: #d4af37;
  --chat--message--user--color: #090909;
  --chat--message--user--border: 1px solid #e4c45d;
  --chat--input--container--background: #0d0d0d;
  --chat--input--container--border: 1px solid rgba(212, 175, 55, 0.28);
  --chat--input--container--border-radius: 13px;
  --chat--input--container--padding: 0.2rem;
  --chat--input--background: transparent;
  --chat--input--text-color: #f4f4f1;
  --chat--input--border-radius: 10px;
  --chat--input--send--button--background: #d4af37;
  --chat--input--send--button--background-hover: #e4c45d;
  --chat--input--send--button--color: #090909;
  --chat--input--send--button--color-hover: #090909;
  --chat--footer--background: #111;
  --chat--footer--border-top: 1px solid rgba(255, 255, 255, 0.08);
  --chat--toggle--width: auto;
  --chat--toggle--height: 54px;
  --chat--toggle--border-radius: 999px;
  --chat--toggle--background: #d4af37;
  --chat--toggle--hover--background: #e4c45d;
  --chat--toggle--active--background: #c49d2f;
  --chat--toggle--color: #090909;
}

#n8n-chat .chat-window {
  background: #111;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

#n8n-chat .chat-layout .chat-header {
  position: relative;
  width: 100%;
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  display: block !important;
  padding: 0 0.85rem !important;
  overflow: hidden;
  background: linear-gradient(135deg, #080808 0%, #15130d 100%);
}

#n8n-chat .aixa-identity {
  position: absolute;
  inset: 0 64px 0 0.3rem;
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
}

#n8n-chat .aixa-avatar {
  width: 96px;
  height: 119px;
  align-self: flex-end;
  margin: 0 0 -10px;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 9px 15px rgba(0, 0, 0, 0.42));
}

#n8n-chat .aixa-identity-copy {
  min-width: 0;
  align-self: center;
  padding-bottom: 0.1rem;
}

#n8n-chat .chat-layout .chat-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  white-space: nowrap;
}

#n8n-chat .aixa-ai { color: var(--gold-bright); font-size: 1.18rem; }
#n8n-chat .aixa-xa { color: #fff; font-size: 1.18rem; }
#n8n-chat .aixa-role { color: #f2f0e9; font-size: 0.88rem; font-weight: 500; }

#n8n-chat .chat-layout .chat-header p {
  margin: 0.15rem 0 0;
  color: #c9c7bf;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

#n8n-chat .chat-footer {
  padding: 0.8rem;
}

#n8n-chat .chat-inputs textarea::placeholder {
  color: #777;
}

#n8n-chat .chat-close-button {
  display: none !important;
}

#n8n-chat .aixa-custom-close {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.75rem;
  width: 48px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0;
  color: var(--gold-bright);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#n8n-chat .aixa-custom-close span {
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

#n8n-chat .aixa-custom-close small {
  color: #d8d5cc;
  font-family: var(--display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

#n8n-chat .aixa-custom-close:hover {
  color: #090909;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-50%) scale(1.04);
}

#n8n-chat .aixa-custom-close:hover small {
  color: #090909;
}

#n8n-chat .chat-window-toggle {
  gap: 0.62rem;
  padding: 0 1.15rem;
  border: 1px solid #e4c45d;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48), 0 0 24px rgba(212, 175, 55, 0.12);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#n8n-chat .chat-window-toggle::after {
  content: "Asistente IA";
  white-space: nowrap;
}

body.chat-open #n8n-chat .chat-window-toggle {
  display: none !important;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .hero-copy { width: min(690px, 68vw); }
  .method-layout { grid-template-columns: 1fr; }
  .method-heading { position: relative; top: auto; }
  .about-grid { gap: 3.5rem; }
  .social-proof-grid { grid-template-columns: 1fr; }
  .social-proof-visual { max-width: 820px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 36px, 680px); }
  .section { padding: 6rem 0; }
  .site-header { background: rgba(8,8,8,0.95); border-color: rgba(212,175,55,0.28); backdrop-filter: blur(16px); }
  .header-inner { height: 78px; }
  .brand { width: 180px; }
  .mobile-nav { top: 78px; }
  .header-cta { display: none; }
  .hero { min-height: auto; display: block; padding-top: 78px; }
  .hero::before { background: linear-gradient(0deg, #090909 0%, #090909 27%, rgba(9,9,9,0.78) 48%, rgba(9,9,9,0.08) 79%, rgba(9,9,9,0.18) 100%); }
  .hero-visual { position: relative; inset: auto; z-index: -2; height: min(58svh, 520px); min-height: 420px; margin: 0; overflow: hidden; }
  .hero-visual img { object-position: 64% center; }
  .hero-grid { position: relative; z-index: 1; margin-top: -10rem; padding-top: 0; padding-bottom: 5.5rem; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.85rem, 10.5vw, 4.9rem); }
  .hero-index { display: none; }
  .split-intro, .solutions .section-intro, .case-grid, .case-progress-layout, .about-grid, .technology-grid, .diagnostic-grid { grid-template-columns: 1fr; }
  .split-intro { gap: 2rem; }
  .solutions .section-intro { gap: 1.5rem; }
  .friction-grid { grid-template-columns: repeat(2, 1fr); }
  .principle { grid-template-columns: 1fr; }
  .solution-feature { grid-template-columns: 70px minmax(0,1fr) auto; }
  .case-grid { gap: 3.5rem; }
  .case-progress-layout { gap: 3.5rem; }
  .site-mockup { order: -1; }
  .mockup-browser { transform: none; }
  .about-visual, .about-visual > img { min-height: 600px; }
  .technology-grid { gap: 3rem; }
  .manifesto { min-height: 650px; }
  .manifesto::before { background: linear-gradient(90deg, #090909 0%, rgba(9,9,9,0.85) 64%, rgba(9,9,9,0.36)), linear-gradient(0deg, #090909, transparent 40%); }
  .manifesto-image { inset: 0 0 0 16%; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-statement { grid-column: 1 / -1; grid-row: 1; }
  .footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 32px); }
  body { padding-bottom: 68px; }
  .section { padding: 5rem 0; }
  .header-inner { height: 74px; }
  .brand { width: 168px; }
  .mobile-nav { top: 74px; }
  .menu-toggle { width: 46px; height: 46px; }
  .hero { padding-top: 74px; }
  .hero-visual { height: 51svh; min-height: 370px; margin: 0; }
  .hero-visual img { object-position: 68% center; }
  .hero-grid { margin-top: -7rem; padding-bottom: 4.5rem; }
  .eyebrow { max-width: 310px; font-size: 0.64rem; }
  .eyebrow span { display: block; width: fit-content; margin: 0 0 0.4rem; padding: 0; border: 0; }
  .hero h1 { font-size: clamp(2.25rem, 10.7vw, 3.25rem); line-height: 1.02; }
  .hero-lead { margin-top: 1.4rem; font-size: 1.03rem; }
  .hero-description { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .service-line { gap: 0.5rem; margin-top: 1.6rem; font-size: 0.7rem; }
  .friction-grid { grid-template-columns: 1fr; }
  .friction-grid article { min-height: 190px; }
  .strategy-snapshot { min-height: 470px; }
  .strategy-snapshot::after { background: linear-gradient(0deg, rgba(5,5,5,0.94), rgba(5,5,5,0.18) 68%); }
  .strategy-snapshot > img { min-height: 470px; object-position: 55% center; }
  .strategy-snapshot figcaption { left: 1.2rem; right: 1.2rem; bottom: 1.3rem; width: auto; }
  .strategy-snapshot figcaption strong { font-size: 1.35rem; }
  .method-step { grid-template-columns: 54px 1fr; gap: 0.7rem; }
  .method-flow { line-height: 1.8; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-feature { grid-column: auto; display: flex; min-height: 330px; }
  .card-arrow { display: none; }
  .case-card { padding: 1.2rem; }
  .case-topline { gap: 0.8rem; }
  .case-topline { padding-bottom: 1.6rem; }
  .case-number { font-size: 3.8rem; }
  .mockup-copy strong { font-size: 1rem; }
  .browser-bar b { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .case-deliverables { padding: 1.1rem; }
  .case-deliverables li { grid-template-columns: 35px 1fr; }
  .case-deliverables li b { grid-column: 2; }
  .social-proof-grid { gap: 2.5rem; }
  .social-proof-visual > span { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .social-proof-visual > span i { font-size: 0.62rem; }
  .social-proof-copy h2 { font-size: clamp(2.05rem, 10.5vw, 3.15rem); }
  .network-links a { grid-template-columns: 68px 1fr auto; gap: 0.7rem; }
  .network-links b { font-size: 0.76rem; }
  .about-visual, .about-visual > img { min-height: 480px; }
  .career { justify-content: flex-start; }
  .technology-board > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .manifesto { min-height: 620px; }
  .manifesto-image { inset: 0 -45% 0 5%; }
  .manifesto::before { background: linear-gradient(0deg, #090909 10%, rgba(9,9,9,0.82) 66%, rgba(9,9,9,0.42)); }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-statement { grid-column: auto; grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
  .context-cta { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.15rem; }
  .context-cta > a { width: 100%; }
  #n8n-chat,
  .n8n-chat {
    --chat--window--width: calc(100vw - 24px);
    --chat--window--height: min(560px, calc(100dvh - 230px));
    --chat--window--right: 12px;
    --chat--window--bottom: 74px;
    --chat--window--border-radius: 15px;
    --chat--toggle--height: 50px;
  }
  #n8n-chat .chat-window-toggle { padding-inline: 1rem; font-size: 0.68rem; }
}

/* En móvil, el asistente ocupa la pantalla y se cierra sin abandonar la página. */
@media (max-width: 768px) {
  #n8n-chat,
  .n8n-chat {
    --chat--window--width: 100vw;
    --chat--window--height: 100dvh;
    --chat--window--right: 0;
    --chat--window--bottom: 0;
    --chat--window--border-radius: 0;
    --chat--window--margin-bottom: 0;
    --chat--window--z-index: 1000;
    --chat--header--padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
  }

  #n8n-chat .chat-window {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
  }

  #n8n-chat .chat-layout {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  #n8n-chat .chat-header {
    flex: 0 0 auto;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
  }

  #n8n-chat .aixa-identity {
    inset: 0 58px 0 0.15rem;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.25rem;
  }

  #n8n-chat .aixa-avatar {
    width: 88px;
    height: 112px;
    margin: 0 0 -7px;
  }

  #n8n-chat .chat-layout .chat-header h1 {
    font-size: 0.86rem;
  }

  #n8n-chat .aixa-role {
    display: inline;
    margin: 0;
    font-size: clamp(0.7rem, 3.15vw, 0.86rem);
  }

  #n8n-chat .aixa-ai,
  #n8n-chat .aixa-xa {
    font-size: clamp(1rem, 4.3vw, 1.18rem);
  }

  #n8n-chat .aixa-custom-close {
    right: 0.4rem;
    width: 48px;
    height: 66px;
  }

  #n8n-chat .chat-body {
    min-height: 0;
    overscroll-behavior: contain;
  }

  #n8n-chat .chat-footer {
    flex: 0 0 auto;
    padding: 0.75rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  #n8n-chat .chat-inputs textarea {
    font-size: 16px;
  }
}
