/* ============================================================
   Picolo — enterprise design system
   White canvas · black text · terracotta as a single accent
   ============================================================ */
:root {
  --white: #FFFFFF;
  --bg-soft: #F7F4EE;       /* barely-there warm off-white for alt sections */
  --ink: #141210;           /* near-black text */
  --muted: #5E5950;         /* secondary text */
  --line: rgba(20, 18, 16, 0.10);
  --line-strong: rgba(20, 18, 16, 0.16);
  --accent: #D17B5A;        /* terracotta — used sparingly */
  --accent-deep: #A8543A;
  --dark: #141210;
  --dark-soft: #211D19;
  --on-dark-muted: rgba(244, 239, 230, 0.62);

  --maxw: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 8px;
  --radius-lg: 12px;

  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  background: var(--ink); color: #fff;
  padding: .78rem 1.4rem; border-radius: 10px; border: 1px solid var(--ink);
  cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn--lg { font-size: 1.02rem; padding: .95rem 1.7rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn--invert:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__img { height: 32px; width: auto; border-radius: 7px; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; font-size: .95rem; }
.nav__links > a:not(.btn) { color: var(--muted); transition: color .2s var(--ease); }
.nav__links > a:not(.btn):hover { color: var(--ink); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -0.035em; }
.rotator { display: inline-block; color: var(--accent); }
.rotator__word { display: inline-block; }
.rotator__word.is-out { animation: wordOut .35s var(--ease) forwards; }
.rotator__word.is-in { animation: wordIn .45s var(--ease) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.35em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); margin-top: 1.3rem; max-width: 440px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* ---------- Animated worker demo ---------- */
.hero__visual { position: relative; }
.wkr {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -32px rgba(20,18,16,.28), 0 2px 8px -4px rgba(20,18,16,.1);
  overflow: hidden; max-width: 440px; margin-inline: auto;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.wkr__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); background: var(--bg-soft); }
.wkr__id { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink); }
.wkr__avatar { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.wkr__live { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); }
.wkr__live i { width: 7px; height: 7px; border-radius: 50%; background: #3FBF6B; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63,191,107,.5);} 50% { opacity: .6; box-shadow: 0 0 0 5px rgba(63,191,107,0);} }
.wkr__body { padding: 1.2rem 1.1rem; height: 400px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .6rem; scrollbar-width: none; }
.wkr__body::-webkit-scrollbar { display: none; }

.msg { max-width: 84%; padding: .65rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.45;
  opacity: 0; transform: translateY(10px); animation: msgIn .4s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg--in { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.msg--bot { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg__meta { display: block; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.msg--bot .msg__meta { color: rgba(255,255,255,.6); }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: .7rem .9rem; background: var(--ink); border-radius: 14px; border-bottom-right-radius: 5px;
  opacity: 0; animation: msgIn .3s var(--ease) forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); animation: typedot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typedot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .04em; color: var(--accent-deep); background: rgba(209,123,90,.12);
  border: 1px solid rgba(209,123,90,.3); padding: .35rem .7rem; border-radius: 8px;
  opacity: 0; transform: scale(.9); animation: chipIn .35s var(--ease) forwards; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
/* attachment chip on a message */
.attach { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; padding: .35rem .6rem;
  background: rgba(255,255,255,.14); border-radius: 8px; font-size: .76rem; font-family: var(--font-mono); }
.attach::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; opacity: .9; }

/* action / "doing" row */
.act { display: inline-flex; align-self: flex-start; align-items: center; gap: .55rem; font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: .02em; color: var(--muted); padding: .4rem .2rem;
  opacity: 0; transform: translateY(8px); animation: msgIn .35s var(--ease) forwards; }
.act__spin { width: 13px; height: 13px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.act.is-done .act__spin { border: 0; background: var(--accent-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip::before { content: ""; width: 13px; height: 13px; background: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Logo strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.2rem 0; }
.logos__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.4rem; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 2.8rem; }
.logos__row span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); opacity: .55; letter-spacing: -0.01em; transition: opacity .2s var(--ease); }
.logos__row span:hover { opacity: 1; }

/* ---------- Customers ---------- */
.placeholder-note { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-deep);
  background: rgba(209,123,90,.1); display: inline-block; padding: .3rem .65rem; border-radius: 7px; margin-bottom: 1.4rem; }
.cust__feature { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cust__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.cust__tab { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); opacity: .35;
  background: none; border: 0; cursor: pointer; padding: .2rem .1rem; position: relative; transition: opacity .2s var(--ease); }
.cust__tab + .cust__tab { margin-left: 1.4rem; }
.cust__tab.is-active { opacity: 1; }
.cust__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.cust__quote { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.4; letter-spacing: -0.015em;
  min-height: 3.4em; transition: opacity .3s var(--ease); }
.cust__who { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; font-size: .9rem; color: var(--muted); transition: opacity .3s var(--ease); }
.cust__who strong { color: var(--ink); font-weight: 600; }
.cust__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--ink); overflow: hidden;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
img.cust__avatar { object-fit: cover; }
.cust__logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.cust__logos span { display: grid; place-items: center; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  font-family: var(--font-display); font-weight: 600; color: var(--ink); opacity: .45; letter-spacing: .01em; transition: opacity .2s var(--ease); }
.cust__logos span:hover { opacity: .8; }

/* ---------- Platform hub (corner cards + olo core) ---------- */
.hub { position: relative; max-width: 820px; margin: 3rem auto 0; }
.hub__grid { display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(150px, 26vw, 260px); row-gap: clamp(90px, 13vw, 150px); }
.qcard { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.qcard--tr, .qcard--br { text-align: right; }
.qcard h3 { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.qcard ul { list-style: none; display: grid; gap: .35rem; }
.qcard li { color: var(--muted); font-size: .96rem; }

.hub__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(170px, 28vw, 220px); aspect-ratio: 1; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; z-index: 2; }
.hub__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hub__logo { width: clamp(74px, 13vw, 104px); height: auto; border-radius: 16px;
  box-shadow: 0 20px 45px -18px rgba(168,84,58,.55); animation: floaty 6s ease-in-out infinite; }
.hub__bracket { position: absolute; width: 16px; height: 16px; border: 2px solid var(--line-strong); }
.hub__bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hub__bracket--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hub__bracket--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hub__bracket--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- AI Workers two-column ---------- */
.work { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.work__title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.work__lead { font-size: clamp(.92rem, 1.3vw, 1rem); color: var(--muted); max-width: 46ch; margin-top: .85rem; }
.work .accordion { margin-top: 0; }
.work__caption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 1.4rem; }

/* compact hub for the right column */
.hub--side { margin: 0; max-width: 100%; }
.hub--side .hub__grid { column-gap: clamp(84px, 11vw, 118px); row-gap: clamp(44px, 6vw, 64px); }
.hub--side .qcard { padding: .9rem 1rem; }
.hub--side .qcard h3 { font-size: .67rem; margin-bottom: .5rem; }
.hub--side .qcard li { font-size: .8rem; }
.hub--side .hub__core { width: clamp(92px, 13vw, 120px); }
.hub--side .hub__logo { width: clamp(50px, 7vw, 70px); border-radius: 12px; }
.hub--side .hub__label { font-size: .6rem; }

/* ---------- Nav dropdown ---------- */
.nav__drop { position: relative; }
.nav__dropbtn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; font: inherit;
  color: var(--muted); cursor: pointer; padding: 0; transition: color .2s var(--ease); }
.nav__dropbtn:hover, .nav__drop:hover .nav__dropbtn { color: var(--ink); }
.nav__dropbtn svg { transition: transform .25s var(--ease); }
.nav__drop:hover .nav__dropbtn svg, .nav__drop.is-open .nav__dropbtn svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + .6rem); left: -.7rem; min-width: 190px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: .4rem; box-shadow: 0 20px 40px -24px rgba(20,18,16,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); }
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.nav__menu a:hover { background: var(--bg-soft); color: var(--ink); }

/* logo wall images */
.cust__logos img { max-height: 30px; max-width: 116px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: opacity .2s var(--ease), filter .2s var(--ease); }
.cust__logos span:hover img { filter: grayscale(0); opacity: 1; }
.cust__logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  opacity: .5; letter-spacing: .01em; transition: opacity .2s var(--ease); }
.cust__logos span:hover .cust__logo-text { opacity: .85; }

/* ---------- Platform panel (AI Workers right column) ---------- */
.pcard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); padding: 1.4rem;
  box-shadow: 0 24px 60px -34px rgba(20,18,16,.32); }
.pcard__head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.pcard__logo { width: 46px; height: 46px; border-radius: 11px; animation: floaty 6s ease-in-out infinite; }
.pcard__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.pcard__sub { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .15rem; }
.pcard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pcell { background: var(--white); padding: .95rem 1.05rem; transition: background .2s var(--ease); }
.pcell:hover { background: var(--bg-soft); }
.pcell h4 { font-size: .9rem; margin-bottom: .25rem; }
.pcell p { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ---------- Customer quotes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.2rem; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; }
.quote-card blockquote { font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.quote-card figcaption { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }
.quote-av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .82rem; }
.quote-card strong { color: var(--ink); font-weight: 600; }

/* ---------- Brand wall ---------- */
.trustwall { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2.4rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.trustwall span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); opacity: .42;
  letter-spacing: -0.01em; transition: opacity .2s var(--ease); }
.trustwall span:hover { opacity: .85; }

/* ---------- Platform diagram (AI Workers right) ---------- */
.diagram__frame { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); }
.diagram__cap { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 1.3rem; }
.diagram { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.diagram__lines line, .diagram__lines polyline { stroke: var(--line-strong); stroke-width: 1.3; fill: none; }
.diagram__lines line { stroke-dasharray: 3 4; }
.diagram__node { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; overflow: hidden;
  transition: border-color .25s var(--ease); }
.diagram__node:hover { border-color: var(--line-strong); }
.diagram__node h4 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.diagram__node ul { list-style: none; display: flex; flex-direction: column; gap: .18rem; }
.diagram__node li { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.diagram__node--tl { align-items: flex-start; text-align: left; }
.diagram__node--tr { align-items: flex-end; text-align: right; }
.diagram__node--bl { align-items: flex-start; justify-content: flex-end; text-align: left; }
.diagram__node--br { align-items: flex-end; justify-content: flex-end; text-align: right; }
.diagram__center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 34%; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 20px 48px -20px rgba(20,18,16,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; }
.diagram__center img { width: 44%; border-radius: 9px; animation: floaty 6s ease-in-out infinite; }
.diagram__lbl { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Customer name wall ---------- */
.namewall { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.8rem; }
.namewall a { flex: 0 0 auto; min-width: 150px; text-align: center; padding: 1.1rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: -0.01em;
  color: var(--muted); text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.namewall a:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.section__head--center { max-width: 620px; margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 32ch; }
.section__lead { font-size: clamp(.98rem, 1.3vw, 1.08rem); color: var(--muted); max-width: 58ch; margin-top: 1rem; }
.section__lead + .grid, .section__lead + .stats { margin-top: 2.5rem; }

/* ---------- Thesis ---------- */
.thesis__title { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 52ch; }
.thesis__lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); max-width: 58ch; margin-top: 1.1rem; }

/* ---------- Subpage hero ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero__title { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 18ch; }
.page-hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 56ch; margin-top: 1.1rem; }
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow, .page-hero--center .page-hero__title, .page-hero--center .page-hero__sub { margin-inline: auto; }
.page-hero--center .page-hero__title { max-width: 36ch; }
.page-hero--center .page-hero__sub { max-width: 50ch; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.section--soft .card { background: var(--white); }
.card__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--bg-soft); color: var(--accent-deep); margin-bottom: 1.1rem; border: 1px solid var(--line); }
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Pillars ---------- */
.pillar { padding: 1.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  transition: border-color .25s var(--ease), transform .25s var(--ease); }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--ink); color: var(--accent); margin-bottom: 1.1rem; }
.pillar__icon svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.pillar p { color: var(--muted); }

/* ---------- FDE — the one dark section ---------- */
.section--fde { background: var(--dark); color: #fff; }
.fde__headline { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.32; }
.fde__headline em { font-style: normal; color: var(--accent); display: inline-block; margin-top: .35rem; }
.fde__lead { color: var(--on-dark-muted); font-size: clamp(.98rem, 1.4vw, 1.12rem); max-width: 56ch; margin: 1.6rem 0 3.2rem; }
.fde__steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
.fde__step { display: flex; flex-direction: column; padding: 1.8rem 1.6rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: var(--dark-soft);
  transition: border-color .25s var(--ease), transform .25s var(--ease); }
.fde__step:hover { border-color: rgba(209,123,90,.55); transform: translateY(-3px); }
.fde__num { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; }
.fde__step h3 { font-size: 1.15rem; line-height: 1.35; margin: .7rem 0 .6rem; min-height: 3.1rem; }
.fde__step p { color: var(--on-dark-muted); font-size: .94rem; line-height: 1.55; }
@media (max-width: 880px) { .fde__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fde__steps { grid-template-columns: 1fr; } }
.fde__kicker { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); color: #fff; max-width: 42ch; margin-top: 2.8rem; line-height: 1.35; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem 1.5rem; margin-top: 3rem; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--ink); display: block; letter-spacing: -0.03em; line-height: 1; }
.stat__num::after { content: ""; display: block; width: 26px; height: 3px; background: var(--accent); margin-top: .7rem; border-radius: 3px; }
.stat p { color: var(--muted); font-size: .94rem; margin-top: .8rem; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: start; }
.pricing__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); }
.pricing__card--enterprise { background: var(--bg-soft); display: flex; flex-direction: column; }
.pricing__tier { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.pricing__tag { color: var(--muted); font-size: .96rem; margin-top: .4rem; max-width: 42ch; }
.pricing__group { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pricing__group-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.pricing__item { margin-top: 1.3rem; }
.pricing__item:first-of-type { margin-top: 0; }
.pricing__item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pricing__item-head h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.pricing__item p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: .35rem; max-width: 50ch; }
.pricing__item p strong { color: var(--ink); font-weight: 600; }
.pricing__price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.pricing__price small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.pricing__price--lg { font-size: 2rem; margin-top: 1.6rem; }
.pricing__enterprise-note { color: var(--muted); font-size: .9rem; margin-top: .6rem; max-width: 32ch; }

.pricing__note { margin-top: 1.6rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.pricing__note-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.pricing__note p:not(.pricing__note-label) { color: var(--muted); font-size: .92rem; line-height: 1.55; }

@media (max-width: 880px) {
  .pricing__grid { grid-template-columns: 1fr; }
}

/* ---------- About: story & founders ---------- */
.about__story { max-width: 760px; margin-inline: auto; }
.about__story p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.2rem; }
.founders { display: flex; gap: 2.4rem; margin-top: 2.4rem; flex-wrap: wrap; justify-content: center; }
.founder { width: 200px; text-align: left; }
.founder__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.founder__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); margin-top: .9rem; }
.founder__meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; }
.founder__role { color: var(--muted); font-size: .88rem; }
.founder__li { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.founder__li:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---------- Closing CTA (light, restrained) ---------- */
.cta { background: var(--white); padding: clamp(3.5rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.cta__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 52ch; margin-inline: auto; }
.cta__sub { color: var(--muted); margin: .9rem 0 1.8rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 3.2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer__brand { display: flex; align-items: flex-start; gap: .9rem; max-width: 420px; }
.footer__brand .brand__img { height: 34px; flex-shrink: 0; }
.footer__tag { font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__meta { display: flex; flex-direction: column; gap: .45rem; text-align: right; font-size: .88rem; }
.footer__meta a:hover { color: var(--accent); }

/* ---------- Accordion ---------- */
.accordion { margin-top: 2.5rem; border-top: 1px solid var(--line); }
#accWorkers { margin-top: 2rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: none; border: 0; cursor: pointer; padding: 1.1rem 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.98rem, 1.6vw, 1.12rem);
  color: var(--ink); letter-spacing: -0.01em; transition: color .2s var(--ease); }
.acc__head:hover { color: var(--accent-deep); }
.acc__num { font-family: var(--font-mono); font-size: .78rem; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.acc__chev { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.acc__chev::before, .acc__chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__chev::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__panel p { padding: 0 0 1.1rem; color: var(--muted); max-width: 64ch; font-size: .92rem; }
.acc.is-open .acc__panel { max-height: 240px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .wkr { max-width: 460px; }
  .work { grid-template-columns: 1fr; }
  .work__right { max-width: 480px; }
}

@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.3rem;
    box-shadow: 0 20px 40px -28px rgba(20,18,16,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; }
  .nav__drop { width: 100%; }
  .nav__dropbtn { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 .4rem .8rem; min-width: 0; background: transparent; max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
  .nav__drop.is-open .nav__menu { max-height: 160px; }
}
@media (max-width: 760px) {
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
  .quotes { grid-template-columns: 1fr; }
  .namewall { gap: .5rem; }
  .namewall a { flex: 1 1 calc(50% - .5rem); min-width: 0; padding: .9rem .8rem; font-size: .88rem; }
  .diagram { gap: 10px; }
  .diagram__center { width: 38%; }
  .diagram__node { padding: .75rem .85rem; }
  .diagram__node li { font-size: .68rem; }
  .hub { max-width: 420px; display: flex; flex-direction: column; }
  .hub__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 1rem; }
  .qcard, .qcard--tr, .qcard--br { text-align: left; }
  .hub__core { position: static; transform: none; width: 100%; aspect-ratio: auto;
    flex-direction: row; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
    order: -1; margin-bottom: 1rem; background: var(--ink); }
  .hub__core .hub__label { color: #fff; }
  .hub__bracket { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
