/* Firebound Interactive — site styles
   Type: Kumbh Sans throughout (round, geometric, friendly). Paper, ink, one flame. */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --card: #fbf9f4;
  --ink: #1c1b18;
  --ink-2: #4a463f;
  --ink-3: #6f695f;
  --rule: #d8d1c4;
  --flame: #e4531b;
  --flame-ink: #b23e0e;
  --flame-wash: #f6dccb;
  --ok: #2c7a4b;
  --bad: #b42318;

  --display: "Kumbh Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --sans: "Kumbh Sans", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161512;
    --paper-2: #1e1c18;
    --card: #1f1d19;
    --ink: #ece7dd;
    --ink-2: #bdb6aa;
    --ink-3: #958e82;
    --rule: #36322b;
    --flame: #ff6a2b;
    --flame-ink: #ff8a55;
    --flame-wash: #3a2216;
    --ok: #5cc28a;
    --bad: #ff7b6e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161512;
  --paper-2: #1e1c18;
  --card: #1f1d19;
  --ink: #ece7dd;
  --ink-2: #bdb6aa;
  --ink-3: #958e82;
  --rule: #36322b;
  --flame: #ff6a2b;
  --flame-ink: #ff8a55;
  --flame-wash: #3a2216;
  --ok: #5cc28a;
  --bad: #ff7b6e;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--flame); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--flame-ink); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em;
  margin-right: auto;
}
.brand img { width: 23px; height: 30px; flex: none; }
.brand:hover { color: var(--ink); }
.brand-name { white-space: nowrap; }
.brand-name span { font-weight: 400; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  text-decoration: none; font-size: 0.97rem; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.primary-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--flame); }
.primary-nav .menu-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions::before {
  content: ""; width: 1px; height: 22px; background: var(--rule); margin-right: 2px;
}

.login-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.95rem; text-decoration: none; color: var(--ink-2);
  padding: 7px 2px;
}
.login-link svg { width: 15px; height: 15px; flex: none; }
.login-link:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px; font-size: 0.92rem; cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner { gap: 14px; min-height: 64px; }
  .header-actions::before { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    font-family: var(--display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
    padding: 12px 0; border-bottom: 1px solid var(--rule);
  }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--flame-ink); }
  .primary-nav .menu-only { display: block; }
  .primary-nav .menu-only.btn { margin-top: 20px; font-family: var(--sans); font-size: 1rem; text-align: center; color: var(--paper); border: 0; }
}
@media (max-width: 560px) {
  .site-header .brand { gap: 9px; }
  .site-header .brand-name { display: grid; font-size: 1.12rem; line-height: 1; }
  .site-header .brand-name span { font-size: 0.74em; letter-spacing: 0.01em; margin-top: 3px; color: var(--ink-2); }
}
@media (max-width: 400px) {
  .login-link span { display: none; }
  .login-link svg { width: 18px; height: 18px; }
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 13px 22px; font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 16px; font-size: 0.94rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--flame);
  text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
.arrow { display: inline-block; transition: transform 0.15s ease; }
a:hover .arrow { transform: translateX(3px); }
a:hover .arrow.down { transform: translateY(3px); }
a:hover .arrow.out { transform: translate(2px, -2px); }

/* ---------- shared bits ---------- */
.label {
  display: block;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-3);
  letter-spacing: 0.01em;
}
.section { padding-block: clamp(72px, 10vw, 140px); }
.rule-top { border-top: 1px solid var(--rule); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.section-head p { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; }
  .section-head.split p { justify-self: end; }
}

.intro-body { padding-bottom: clamp(64px, 9vw, 120px); }
.sub-h { font-size: 1.45rem; margin-bottom: 12px; }
.prose-lg .sub-h { margin-bottom: 16px; }

.page-intro { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-intro h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 17ch; }
.page-intro .lede { margin-top: 26px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 54ch; }

/* ---------- home: hero ---------- */
.hero {
  display: grid; gap: 56px; align-items: center;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13.5ch;
}
.hero h1 .scribble {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5c38-5 79-6.5 122-5.2 43 1.3 70 4.6 108 3.2 21-.8 43-2.6 66-5' fill='none' stroke='%23e4531b' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 0.22em;
  background-position: 0 96%;
  padding-bottom: 0.06em;
}
.hero .lede { margin-top: clamp(24px, 3vw, 32px); font-size: clamp(1.1rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
/* Side by side only when there's room for the pictures to be big; otherwise they sit
   underneath the text, full width. */
@media (min-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 4vw, 64px); }
  .hero h1 { font-size: clamp(2.6rem, 4.1vw, 3.9rem); }
}

/* DutyGO, as big as the column allows, with the Willow Spell over its bottom-left corner.
   Both shown whole (never cropped). */
.hero-art { position: relative; width: 100%; aspect-ratio: 1 / 0.68; }
.art { position: absolute; overflow: hidden; background: var(--paper-2); border-radius: 22px; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-main { top: 0; right: 0; width: 94%; aspect-ratio: 1221 / 610; box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.35); }
.art-small { left: 0; bottom: 0; width: 62%; aspect-ratio: 1400 / 693; border-radius: 18px; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.45); }

/* ---------- home: work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 32px); row-gap: clamp(36px, 4.5vw, 56px); align-items: start; }
.project { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.project figure { margin: 0; }
.shot {
  display: block; overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.shot img { width: 100%; height: auto; transition: transform 0.5s ease; } /* whole picture, never cropped */
a.shot:hover img { transform: scale(1.015); }

.project-meta { display: grid; gap: 6px; }
.project-meta h3, .project-meta h4 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.project-meta h3 a, .project-meta h4 a { text-decoration: none; }
.project-meta h3 a:hover, .project-meta h4 a:hover { text-decoration: underline; text-decoration-color: var(--flame); }
.project-meta p { color: var(--ink-2); max-width: 48ch; }
.tags { font-size: 0.88rem; color: var(--ink-3); }
.tags span + span::before { content: " · "; }

@media (min-width: 900px) {
  /* side by side in tidy pairs: no staggering, so no empty gaps */
  .project.pair-a { grid-column: 1 / span 8; }
  .project.pair-b { grid-column: 9 / span 4; }
  .project.pair-c { grid-column: 1 / span 6; }
  .project.pair-d { grid-column: 7 / span 6; }
}

/* client work and our own products, kept apart */
.work-group + .work-group { margin-top: clamp(64px, 8vw, 104px); }
.group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: clamp(24px, 3vw, 36px);
}
.group-head h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
.group-head p { color: var(--ink-3); font-size: 0.97rem; }

.product-list { list-style: none; padding: 0; display: grid; gap: 40px 28px; }
.product { display: grid; gap: 14px; align-content: start; }
/* all three screenshots are almost exactly 2:1, so a shared 2:1 frame keeps the titles level
   while trimming less than 2% of any picture */
.product .shot { aspect-ratio: 2 / 1; }
.product .shot img { height: 100%; object-fit: cover; object-position: top center; }
.product-meta { display: grid; gap: 6px; }
.product-meta h4 { font-size: 1.4rem; }
.product-meta h4 a { text-decoration: none; }
.product-meta h4 a:hover { text-decoration: underline; text-decoration-color: var(--flame); }
.product-meta p { color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 620px) { .product-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .product-list { grid-template-columns: repeat(3, 1fr); } }

.work-index { margin-top: clamp(72px, 9vw, 120px); }
.work-index h3 { font-size: 1.5rem; margin-bottom: 18px; }
.index-list { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 6px 22px; align-items: center;
  padding: 16px 0; text-decoration: none; color: inherit;
}
.index-row .thumb { grid-row: span 2; width: 120px; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.index-row .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.index-row .thumb.blank { display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--ink-3); }
.index-row .name { font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.index-row .what { color: var(--ink-2); font-size: 0.98rem; }
.index-row .kind { font-size: 0.88rem; color: var(--ink-3); }
a.index-row:hover .name { color: var(--flame-ink); }
@media (min-width: 760px) {
  .index-row { grid-template-columns: 120px minmax(180px, 1.1fr) 2fr auto; }
  .index-row .thumb { grid-row: auto; }
}
@media (max-width: 759px) {
  .index-row { grid-template-columns: 96px 1fr; }
  .index-row .thumb { width: 96px; }
  .index-row .kind { grid-column: 2; }
}

/* ---------- home: testimonials (up to three, from the dashboard) ---------- */
.testimonials { background: var(--paper-2); }
.testimonial-list { list-style: none; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 760px) { .testimonial-list.count-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .testimonial-list.count-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) and (max-width: 959px) { .testimonial-list.count-3 { grid-template-columns: 1fr 1fr; } .testimonial-list.count-3 li:last-child { grid-column: 1 / -1; } }
.testimonial figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 22px;
  padding: clamp(24px, 3vw, 34px);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote::before {
  content: "\201C"; display: block; height: 0.62em; margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif; font-size: 4.2rem; font-weight: 700; line-height: 1; color: var(--flame);
}
.testimonial blockquote p { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.12rem, 1.4vw, 1.3rem); line-height: 1.45; overflow-wrap: anywhere; }
.testimonial-list.count-1 blockquote p { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.35; max-width: 36ch; }
.testimonial figcaption { display: grid; gap: 2px; font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 16px; }
.testimonial .name { font-weight: 600; }
.testimonial .biz { color: var(--ink-3); }
#work + .testimonials[hidden] + .about-home { padding-top: clamp(24px, 4vw, 56px); }

/* ---------- home: about ---------- */
.about-grid { display: grid; gap: 48px; }
.about-text h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 15ch; margin: 0 0 24px; }
.about-text p { color: var(--ink-2); max-width: 46ch; font-size: 1.08rem; }
.about-text p + p { margin-top: 14px; }
.about-text p:last-child { margin-top: 24px; }
.scribble.draw {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5c38-5 79-6.5 122-5.2 43 1.3 70 4.6 108 3.2 21-.8 43-2.6 66-5' fill='none' stroke='%23e4531b' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 0.2em; background-position: 0 98%;
}
.team-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); align-self: end; }
.team-strip li { display: grid; gap: 2px; align-content: start; }
.team-strip li:nth-child(2) { margin-top: clamp(24px, 4vw, 56px); }
.team-strip li:nth-child(3) { margin-top: clamp(12px, 2vw, 28px); }
.team-strip .photo { margin-bottom: 12px; }
.team-strip .n { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.team-strip .r { font-size: 0.88rem; color: var(--ink-3); line-height: 1.35; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* protected team photos: painted on a canvas by site.js, with a shield on top */
.photo {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-2); border-radius: var(--radius);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.photo.has-photo canvas { opacity: 1; }
.photo-shield { position: absolute; inset: 0; z-index: 1; }
.photo .initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink-3) 55%, transparent);
}
.photo.has-photo .initial { visibility: hidden; }
html.photos-hidden .photo canvas { visibility: hidden; opacity: 0; transition: none; }
html.photos-hidden .photo .initial { visibility: visible; }
@media print { .photo canvas { display: none !important; } .photo .initial { visibility: visible !important; } }

/* ---------- home: how it works ---------- */
.how { background: var(--paper-2); }
.how-grid { display: grid; gap: 40px; }
.steps { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px;
  padding: 22px 0 24px; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--flame-ink);
}
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--ink-2); max-width: 58ch; }
.price-note {
  align-self: start;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); padding: 26px 26px 28px;
}
.price-note .big { font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; margin: 0 0 14px; }
.price-note p { color: var(--ink-2); }
.price-note p + p { margin-top: 12px; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: 7fr 4fr; gap: 72px; }
  .price-note { position: sticky; top: 104px; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field label, .field .label-text { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--flame-wash);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-radius: var(--radius); padding: 13px 16px; font-size: 0.97rem;
  border: 1px solid var(--rule); background: var(--card);
}
.notice.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-aside p { color: var(--ink-2); max-width: 40ch; }
.contact-aside p + p { margin-top: 14px; }
.contact-lines { margin-top: 30px; border-top: 1px solid var(--rule); }
.contact-lines div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.contact-lines a { font-family: var(--display); font-size: 1.2rem; font-weight: 500; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span.v { font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ---------- about ---------- */
.two-col { display: grid; gap: 28px 64px; }
.two-col .prose-lg p { font-size: 1.15rem; color: var(--ink-2); }
.two-col .prose-lg p + p { margin-top: 18px; }
.pull {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25;
  border-left: 3px solid var(--flame); padding-left: 22px; align-self: start;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 7fr 5fr; } }
/* careers: the short facts beside the intro */
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-self: start; border-top: 1px solid var(--ink); }
.facts > div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.85rem; color: var(--ink-3); }
.facts dd { font-family: var(--display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2px; }
.facts .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .facts { margin-top: 6px; } }

.timeline { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.timeline li { display: grid; gap: 6px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { font-size: 0.92rem; color: var(--flame-ink); font-weight: 500; }
.timeline h3 { font-size: 1.6rem; }
.timeline p { color: var(--ink-2); max-width: 60ch; margin-top: 6px; }
.timeline .links { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
@media (min-width: 760px) { .timeline li { grid-template-columns: 160px 1fr; } }

.values { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.values > div { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.values h3 { font-size: 1.7rem; margin-bottom: 10px; }
.values p { color: var(--ink-2); max-width: 44ch; }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .values > div { border-bottom: 0; padding-right: 36px; }
  .values > div + div { border-left: 1px solid var(--rule); padding-left: 32px; }
}

/* ---------- team ---------- */
.people { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 18px 22px; padding: 30px 0 34px; border-bottom: 1px solid var(--rule); align-items: center; }
.person > p { grid-column: 1 / -1; }
.person h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.person .role { font-size: 0.98rem; color: var(--flame-ink); font-weight: 500; margin-top: 10px; }
.person p { color: var(--ink-2); font-size: 1.1rem; max-width: 54ch; }
.person-email { display: inline-block; margin-top: 8px; font-size: 0.98rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); overflow-wrap: anywhere; } /* splits at the @ first; anywhere only on the narrowest phones */
.person-email:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .person { grid-template-columns: 200px 4fr 7fr; gap: 10px 44px; align-items: start; padding: 38px 0 42px; }
  .person > p { grid-column: auto; padding-top: 8px; }
  .person-name { padding-top: 4px; }
}

/* ---------- careers ---------- */
.roles { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.roles li { border-bottom: 1px solid var(--rule); }
.role-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.role-row .t { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; }
.role-row .m { color: var(--ink-3); font-size: 0.92rem; }
.role-row:hover .t { color: var(--flame-ink); }
.empty-roles { padding: 26px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }

/* ---------- dialog ---------- */
dialog.sheet {
  margin: auto; /* the reset above removes the browser's centring */
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  padding: 0;
}
dialog.sheet::backdrop { background: rgb(20 18 15 / 0.55); }
.sheet-inner { padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.sheet-head h2 { font-size: 2rem; }
.icon-btn {
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- legal / long-form ---------- */
.legal { display: grid; gap: 40px; padding-bottom: clamp(72px, 10vw, 140px); }
.legal .toc { font-size: 0.95rem; }
.legal .toc ol { list-style: none; padding: 0; display: grid; gap: 6px; margin-top: 10px; }
.legal .toc a { text-decoration: none; color: var(--ink-2); }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 66ch; }
.prose section { padding: 24px 0; border-top: 1px solid var(--rule); }
.prose section:first-child { border-top: 1px solid var(--ink); }
.prose h2 { font-size: 1.6rem; margin-bottom: 10px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
@media (min-width: 900px) {
  .legal { grid-template-columns: 3fr 8fr; gap: 64px; }
  .legal .toc { position: sticky; top: 104px; align-self: start; }
}

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--ink); padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 24px; }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: 64px; margin-top: 0; }
.site-footer a { color: var(--paper); text-decoration: none; opacity: 0.82; }
.site-footer a:hover { opacity: 1; text-decoration: underline; color: var(--paper); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-about .brand { color: var(--paper); margin: 0; }
.footer-about p { margin-top: 16px; opacity: 0.75; max-width: 34ch; font-size: 0.98rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; opacity: 0.6; letter-spacing: 0.02em; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.98rem; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  font-size: 0.88rem;
}
.footer-bottom .small { opacity: 0.6; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badges .ico { height: 34px; width: auto; background: #fff; border-radius: 4px; padding: 3px 5px; }
.badges .climate { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; font-size: 0.82rem; }
.badges .climate svg { flex: none; color: #4cc38a; }
.theme-switch { display: inline-flex; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; padding: 2px; }
.theme-switch button {
  background: none; border: 0; color: var(--paper); opacity: 0.7;
  padding: 4px 11px; border-radius: 999px; font-size: 0.82rem; cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: rgb(255 255 255 / 0.14); opacity: 1; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: #0e0d0b; color: var(--ink); border-top: 1px solid var(--rule); }
  :root:not([data-theme="light"]) .site-footer a { color: var(--ink); }
  :root:not([data-theme="light"]) .theme-switch button { color: var(--ink); }
}
:root[data-theme="dark"] .site-footer { background: #0e0d0b; color: var(--ink); border-top: 1px solid var(--rule); }
:root[data-theme="dark"] .site-footer a { color: var(--ink); }
:root[data-theme="dark"] .theme-switch button { color: var(--ink); }

/* ---------- support chat ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 12px 18px 12px 15px;
  font-size: 0.97rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
}
.chat-launcher:hover { background: var(--flame); color: #fff; }
.chat-launcher svg { width: 18px; height: 18px; }
.chat-launcher .dot {
  position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--flame); border: 2px solid var(--paper);
}

.chat-panel {
  position: fixed; right: 20px; bottom: 82px; z-index: 61;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.18);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.chat-head h2 { font-size: 1.45rem; }
.chat-head p { font-size: 0.88rem; color: var(--ink-3); margin-top: 3px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.chat-hello { color: var(--ink-2); font-size: 0.95rem; padding: 4px 2px 8px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 12px; font-size: 0.96rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg .who { display: block; font-size: 0.78rem; color: var(--ink-3); margin-bottom: 2px; white-space: normal; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.me .who { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.msg.them { align-self: flex-start; background: var(--card); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg.note { align-self: center; max-width: 92%; text-align: center; background: none; color: var(--ink-3); font-size: 0.86rem; padding: 4px 6px; }
.msg img { border-radius: 6px; max-height: 220px; margin-top: 4px; }
.msg a { text-decoration: underline; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); background: var(--card); }
.chat-form textarea {
  flex: 1; resize: none; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper);
  padding: 9px 11px; font-size: 0.97rem; line-height: 1.35; height: 42px; max-height: 120px;
}
.chat-form textarea:focus { outline: none; border-color: var(--ink); }
.chat-form .btn { padding: 9px 15px; }
@media (max-width: 520px) {
  .chat-launcher .txt { display: none; }
  .chat-launcher { padding: 13px; }
  .chat-panel { right: 12px; bottom: 76px; }
}

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 22px; padding-block: 80px; }
.lost h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 14ch; }
.lost p { color: var(--ink-2); max-width: 44ch; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hero + .section { padding-top: clamp(32px, 5vw, 64px); }

/* ---------- scroll animations ---------- */
/* theme.js adds .js before first paint, site.js adds .reveal-on when it starts.
   If site.js never runs, the safety animation shows everything after a few seconds. */
[data-progress] > li { position: relative; }
[data-progress] > li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--flame); transform-origin: left center; transform: scaleX(var(--p, 0));
}
.js .steps[data-progress] > li::before { transition: color 0.3s ease; }
.js .steps[data-progress] > li:not(.is-active)::before { color: var(--ink-3); }
.js .timeline[data-progress] > li .when { transition: color 0.3s ease; }
.js .timeline[data-progress] > li:not(.is-active) .when { color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { animation: reveal-safety 0.6s ease 3s both; }
  .js.reveal-off [data-reveal] { animation: none; }
  .js.reveal-on [data-reveal] {
    animation: none; opacity: 0; transform: translateY(22px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
  }
  .js.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
  .js.reveal-on .scribble.draw { background-size: 0% 0.2em; transition: background-size 0.9s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--d, 0s) + 0.45s); }
  .js.reveal-on .is-in .scribble.draw { background-size: 100% 0.2em; }
}
/* parallax: site.js sets --py as you scroll; nothing moves with reduced motion */
[data-parallax] { translate: 0 var(--py, 0px); }
@media (prefers-reduced-motion: no-preference) {
  /* hero pieces arrive one after another */
  .js.reveal-on .art-main[data-reveal]:not(.is-in) { transform: translateY(34px) scale(0.96); }
  .js.reveal-on .art-small[data-reveal]:not(.is-in) { transform: translateY(56px) scale(0.94); }
  .js.reveal-on .hero-art [data-reveal] { transition-duration: 1s, 1.1s; }
  /* work: each screenshot opens up and settles as it comes into view */
  .js.reveal-on .project[data-reveal] .shot { clip-path: inset(14% 0 0 0 round var(--radius)); transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
  .js.reveal-on .project[data-reveal].is-in .shot { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js.reveal-on .project[data-reveal] .shot img { scale: 1.14; transition: scale 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.5s ease; }
  .js.reveal-on .project[data-reveal].is-in .shot img { scale: 1; }
  .js.reveal-on .testimonial[data-reveal]:not(.is-in) { transform: translateY(34px) scale(0.97); }
}
@keyframes reveal-safety { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---------- attachments (chat, dashboard, portal) ---------- */
.attachments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 4px; }
.attachment.image { display: block; width: 168px; height: 126px; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.attachment-img { width: 100%; height: 100%; object-fit: cover; }
.attachment.file {
  display: inline-flex; gap: 8px; align-items: baseline; max-width: 100%;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink);
  border-radius: 6px; padding: 7px 11px; cursor: pointer; font-size: 0.9rem; text-align: left;
}
.attachment.file:hover { border-color: var(--ink); }
.attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; }
.attachment.missing { font-size: 0.85rem; color: var(--ink-3); }
.msg .attachment { margin: 4px 0 2px; }
