/* Obla LLC — palette taken straight from the mark.
   Blue #3F72B4 -> Teal #5FC9BC gradient, wordmark #4E9CB4. */

:root {
  --blue: #3F72B4;
  --teal: #5FC9BC;
  --word: #4E9CB4;

  --ink: #16232F;
  --ink-soft: #55697C;
  --line: #DEE7ED;
  --bg: #FFFFFF;
  --bg-band: #F4F9FB;
  --card: #FFFFFF;

  --grad: linear-gradient(100deg, var(--blue), var(--teal));
  --shadow: 0 1px 2px rgba(22, 35, 47, .05), 0 8px 24px -12px rgba(22, 35, 47, .18);
  --radius: 18px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8F0F5;
    --ink-soft: #9FB3C2;
    --line: #24333F;
    --bg: #0E1620;
    --bg-band: #131E29;
    --card: #16222E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.125rem)/1.65 ui-sans-serif, system-ui,
        -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--word); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: .7em 1.1em; border-radius: 0 0 10px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: .85rem 1.5rem;
}
section { scroll-margin-top: 84px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 132px; height: auto; }

.site-head nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-head nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .95rem; font-weight: 500; padding: .2em 0;
  border-bottom: 2px solid transparent;
}
.site-head nav a:hover { color: var(--ink); border-bottom-color: var(--teal); }

/* ------------------------------------------------------------------ hero */

section { max-width: 1120px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem; }

.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem); font-weight: 800; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 600; margin: 1.1rem 0 1.4rem; color: var(--ink);
}
.sub { max-width: var(--measure); color: var(--ink-soft); font-size: 1.08em; }

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }

.btn {
  display: inline-block; padding: .85em 1.5em; border-radius: 999px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .98rem; box-shadow: var(--shadow);
  transition: transform .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.12); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--teal); }

/* ----------------------------------------------------------------- bands */

/* Full-bleed background without touching the inner layout. Overriding the
   band's max-width instead made each child centre independently, so headings
   and body text landed on different left edges. */
.band {
  background: var(--bg-band);
  box-shadow: 0 0 0 100vmax var(--bg-band);
  clip-path: inset(0 -100vmax);
}

h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3rem); font-weight: 750; }
.section-lede { color: var(--ink-soft); font-size: 1.12em; margin: .8rem 0 2.6rem; max-width: var(--measure); }

/* ----------------------------------------------------------------- staff */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card-body { padding: 1.25rem 1.4rem 1.5rem; }

/* Portraits vary in crop and aspect (one real photo, the rest rendered), so
   normalise them to one frame and bias the crop upward to keep faces. */
.portrait {
  /* height:auto is load-bearing -- the img's height attribute otherwise applies
     as a real CSS height and aspect-ratio never gets to govern. */
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 20%;
  background: var(--bg-band);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.card.human::before { background: var(--word); }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card h3 { font-size: 1.25rem; margin: .5rem 0 .15rem; }
.card .role { font-size: .93rem; font-weight: 600; color: var(--word); margin: 0 0 .9rem; }
.cyr { font-weight: 500; color: var(--ink-soft); }

.badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32em .7em; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  color: var(--word);
}
.badge-human {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--blue);
}
@media (prefers-color-scheme: dark) { .badge-human { color: #8FB6E4; } }

/* ------------------------------------------------------------------ work */

.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.6rem; }
.work > li {
  display: grid; gap: .2rem 3rem;
  grid-template-columns: minmax(0, 20ch) minmax(0, 1fr);
  padding-top: 2.2rem; border-top: 1px solid var(--line);
}
.work > li:first-child { padding-top: 0; border-top: 0; }
.work h3 { font-size: 1.55rem; }
.work .kicker { grid-column: 1; color: var(--ink-soft); font-size: .95rem; margin-top: .4rem; }
.work p:not(.kicker) { grid-column: 2; color: var(--ink-soft); }
.work h3 { grid-column: 1; }
.work .links { margin-bottom: 0; }
.work .links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.work .links a { font-weight: 600; text-decoration: none; }
.work .links a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .work > li { grid-template-columns: 1fr; gap: .5rem; }
  .work p:not(.kicker), .work h3, .work .kicker { grid-column: 1; }
  .work .kicker { margin-bottom: .8rem; }
}

.pill {
  display: inline-block; font-size: .84rem; font-weight: 600;
  padding: .35em .9em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}

/* ------------------------------------------------------------- manifesto */

.manifesto { max-width: var(--measure); font-size: 1.1em; margin-top: 2.2rem; }
.manifesto p { color: var(--ink-soft); }
.manifesto em { color: var(--ink); font-style: italic; }

.pull {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem);
  font-weight: 700; line-height: 1.28; letter-spacing: -.02em;
  margin: 2rem 0; padding-left: 1.2rem;
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  color: var(--ink) !important;
}

/* --------------------------------------------------------------- contact */

.big-link { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.big-link a {
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-link a:hover { text-decoration: underline; -webkit-text-decoration-color: var(--teal); text-decoration-color: var(--teal); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 2.4rem 1.5rem 3.4rem;
  color: var(--ink-soft); font-size: .92rem;
}
.site-foot p { margin: 0; }
.site-foot .fine { margin-top: .3rem; font-size: .86rem; opacity: .8; }

.soon { color: var(--ink-soft); font-size: .95rem; align-self: center; }

/* The boss gets his own row: full-width card on top, portrait beside the text,
   the three bots in a row underneath. Below 860px everything stacks as before. */
@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.human {
    grid-column: 1 / -1;
    flex-direction: row; align-items: stretch;
  }
  .card.human .portrait {
    width: 34%; max-width: 340px; flex: none;
    align-self: stretch; height: auto; aspect-ratio: auto;
    object-position: 50% 22%;
  }
  .card.human .card-body {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 1.6rem 1.8rem;
  }
  .card.human .card-body > p:last-child { max-width: 62ch; }
}
@media (min-width: 860px) {
  /* card-body is a flex column here, so the badge would stretch edge to edge. */
  .card.human .badge { align-self: flex-start; }
}

/* --- Services (added 2026-08-26) --- */
.proof {
  grid-column: 2;
  font-size: .95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--teal);
  padding-left: .9rem;
  margin-top: .2rem;
}
.sub-head {
  font-size: 1.6rem;
  margin: 3.4rem 0 0;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}
.prices {
  grid-column: 2;
  width: 100%;
  border-collapse: collapse;
  margin: .4rem 0 .2rem;
  font-size: .97rem;
}
.prices th,
.prices td {
  text-align: left;
  vertical-align: top;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.prices tr:first-child th,
.prices tr:first-child td { border-top: 0; }
.prices th { font-weight: 600; color: var(--ink); padding-right: 1.4rem; }
.prices td strong { display: block; color: var(--word); font-size: 1.05rem; }
.prices td span { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: .15rem; }
.closer {
  margin-top: 2.4rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.closer a { font-weight: 600; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 700px) {
  .proof, .prices { grid-column: 1; }
  .prices th, .prices td { display: block; padding: .35rem 0; }
  .prices th { border-top: 1px solid var(--line); padding-top: .8rem; }
  .prices td { border-top: 0; padding-bottom: .8rem; }
}

@media (max-width: 620px) {
  .brand img { width: 84px; }
  .head-inner { gap: .3rem; padding: .45rem 1.1rem .5rem; }
  .site-head nav { gap: 1rem; width: 100%; }
  .site-head nav a { font-size: .85rem; padding: 0; }
  section { scroll-margin-top: 108px; }
}

/* --- contact form (added 2026-08-26) --- */
.form { max-width: 720px; display: grid; gap: 1.1rem; margin-top: .6rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label {
  display: grid; gap: .4rem;
  font-size: .92rem; font-weight: 600; color: var(--ink);
}
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input,
.form select,
.form textarea {
  font: inherit; font-weight: 400;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .85rem; width: 100%;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form .consent { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.form button { justify-self: start; border: 0; cursor: pointer; }
.form button[disabled] { opacity: .6; cursor: default; }
.form-note { min-height: 1.4em; margin: 0; font-size: .93rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.big-link.alt { font-size: 1rem; color: var(--ink-soft); margin-top: 2rem; }

/* --- Atlas chat widget (added 2026-08-26) --- */
.atlas-launch {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: .75rem 1.3rem; font: inherit; font-size: .95rem; font-weight: 600;
  color: #fff; background: var(--grad); box-shadow: var(--shadow);
}
.atlas-launch:hover { filter: saturate(1.12); transform: translateY(-1px); }
.atlas[hidden], .atlas-launch[hidden] { display: none; }
.atlas {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: min(370px, calc(100vw - 2.2rem));
  height: min(520px, calc(100vh - 2.2rem));
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.atlas-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line);
}
.atlas-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal); }
.atlas-sub { font-size: .8rem; color: var(--ink-soft); }
.atlas-x {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink-soft); padding: 0 .2rem;
}
.atlas-log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .7rem; align-content: start; }
.atlas-msg {
  margin: 0; padding: .6rem .8rem; border-radius: 14px;
  font-size: .93rem; line-height: 1.55; max-width: 88%;
}
.atlas-msg.bot { background: var(--bg-band); color: var(--ink); justify-self: start; }
.atlas-msg.me { background: var(--grad); color: #fff; justify-self: end; }
.atlas-msg.wait { color: var(--ink-soft); }
.atlas-in { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.atlas-in input {
  flex: 1; font: inherit; font-size: .93rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem;
}
.atlas-in input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.atlas-in button {
  border: 0; cursor: pointer; border-radius: 12px; padding: .55rem .9rem;
  font: inherit; font-size: .9rem; font-weight: 600; color: #fff; background: var(--grad);
}

/* --- Atlas launcher: the avatar, breathing --- */
.atlas-launch {
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem 1.1rem .4rem .4rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.atlas-launch:hover { filter: none; }
.atlas-face {
  position: relative; display: block;
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex: none;
  animation: atlas-breathe 5.5s ease-in-out infinite;
}
.atlas-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atlas-face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(95, 201, 188, .85);
  animation: atlas-glow 5.5s ease-in-out infinite;
}
.atlas-say { font-size: .95rem; font-weight: 600; }
@keyframes atlas-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.055); }
}
@keyframes atlas-glow {
  0%, 100% { opacity: .35; }
  50%      { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-face, .atlas-face::after { animation: none; }
}
@media (max-width: 480px) {
  .atlas-say { display: none; }
  .atlas-launch { padding: .4rem; border-radius: 50%; }
}
