:root {
  --ink: #161910;
  --ink-soft: #3a3f32;
  --paper: #f7f5f2;
  --paper-2: #efeae4;
  --white: #ffffff;
  --clay: #d23c14;
  --clay-deep: #9c280c;
  --moss: #1c6a45;
  --line: rgba(22, 25, 16, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 24px 60px rgba(22, 25, 16, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker span {
  color: var(--clay-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.brand-logo { height: 78px; width: auto; display: block; }
.footer-logo { height: 96px; width: auto; display: block; margin-bottom: 12px; }
.side-logo { width: 210px; height: auto; display: block; border-radius: 12px; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 640;
}
.brand strong { display: block; letter-spacing: 0.14em; font-size: 13px; }
.brand small { display: block; color: var(--ink-soft); letter-spacing: 0.16em; font-size: 10px; }
.menu-panel { display: contents; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { text-decoration: none; font-size: 15px; }
.site-nav a.is-on { box-shadow: inset 0 -2px 0 var(--clay); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
}

.btn, .btn-ghost, .text-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn {
  background: var(--clay);
  color: #fff8f4;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 560;
}
.btn:hover { background: var(--clay-deep); }
.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: transparent;
}
.btn-small { padding: 8px 12px; font-size: 14px; }
.text-link { font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 36px;
  padding: 64px 0 28px;
  align-items: end;
}
.hero h1, .page-hero h1, .prose h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.lede { margin-top: 18px; font-size: 18px; max-width: 46rem; color: var(--ink-soft); }
.hero-actions, .split-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.board {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.board header, .board footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.62);
}
.board ul { list-style: none; margin: 16px 0; padding: 0; }
.board li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(243, 239, 228, 0.12);
}
.board li em { font-style: normal; color: rgba(243, 239, 228, 0.66); font-size: 14px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efb423;
  box-shadow: 0 0 0 4px rgba(239, 180, 35, 0.15);
}
.dot.live { background: #3dbe7a; box-shadow: 0 0 0 4px rgba(61, 190, 122, 0.16); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-top: 28px;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2, .band h2, .cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 560;
}
.section-head p { max-width: 36rem; color: var(--ink-soft); }

.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 64px 52px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service-row:hover { color: var(--clay-deep); }
.service-row .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.service-row h3 { font-size: 28px; font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}
.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 22px;
  border-radius: 22px;
  text-decoration: none;
}
.work-card:first-child { min-height: 494px; grid-row: span 2; }
.work-card small { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.work-card h3 { font-family: var(--serif); font-size: clamp(32px, 3vw, 48px); letter-spacing: -0.04em; line-height: 0.98; margin: 12px 0; font-weight: 560; }
.tone-clay { background: #c4320e; color: #fff6f1; }
.tone-moss { background: #1c6a45; color: #f3fff7; }
.tone-ink { background: #171a12; color: #f4f0e6; }
.tone-sand { background: #e6d3ae; color: #2a2114; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  min-height: 180px;
}
.step b { font-family: var(--mono); font-size: 12px; color: var(--clay-deep); }
.step h3 { margin: 16px 0 8px; font-size: 22px; font-family: var(--serif); font-weight: 560; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}
.quote p { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.quote figcaption { margin-top: 18px; color: var(--ink-soft); font-size: 14px; }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
}
.cta-band p { color: rgba(243, 239, 228, 0.74); margin-top: 10px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-band .btn { background: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(243, 239, 228, 0.3); }

.notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.note time { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.note h3 { font-size: 26px; font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0 20px;
  margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 24px; }
.site-footer a { color: var(--paper); }
.site-footer h2 { font-family: var(--serif); font-size: 36px; font-weight: 560; letter-spacing: -0.04em; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-note { color: rgba(243, 239, 228, 0.68); margin-top: 12px; }
.footer-word {
  font-family: var(--serif);
  font-size: clamp(64px, 16vw, 200px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 228, 0.28);
  margin: 28px 0 8px;
}
.legal-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(243, 239, 228, 0.6); }

.page-hero { padding: 54px 0 10px; }
.page-hero .lede { margin-top: 14px; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; padding-bottom: 64px; }
.card, .form-card, .thread, .account-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.stack { display: grid; gap: 8px; }
.stack a { text-decoration: none; }
.meta-list { list-style: none; padding: 0; margin: 16px 0 0; }
.meta-list li { padding: 8px 0; border-top: 1px solid var(--line); }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span, .check { font-size: 13px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.flash { width: min(1180px, calc(100% - 40px)); margin: 16px auto 0; padding: 12px 14px; border-radius: 12px; }
.flash.ok { background: #e5f4ea; color: #145233; }
.flash.bad { background: #fde8e2; color: #8d2610; }
.flash p { margin: 0; }

.prose { padding-bottom: 48px; }
.prose p { margin: 0 0 14px; font-size: 18px; }
.team-grid, .account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 560; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--paper-2);
}
.pill-new, .pill-open, .pill-requested, .pill-urgent, .pill-high { background: #fde8e2; color: #8d2610; }
.pill-in_review, .pill-in_progress, .pill-waiting, .pill-confirmed { background: #fff1cc; color: #6d4d08; }
.pill-replied, .pill-resolved, .pill-completed, .pill-published { background: #e5f4ea; color: #145233; }
.pill-closed, .pill-cancelled, .pill-draft, .pill-disabled { background: #eceae4; color: #3e4338; }

.thread-list { display: grid; gap: 10px; margin: 16px 0; }
.bubble { border-radius: 16px; padding: 12px 14px; background: var(--paper); }
.bubble.staff { background: #e7f3ec; }
.bubble header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 14px; }
.filters a.is-on { background: var(--ink); color: var(--paper); }
.table-wrap { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; }
table.sheet th, table.sheet td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
table.sheet th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 560; }
table.sheet a { color: var(--clay-deep); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-soft); }

.admin-body { background: #efeae0; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 14px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side a { color: var(--paper); text-decoration: none; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 16px; }
.side-brand strong { letter-spacing: 0.14em; font-size: 13px; }
.side nav { display: grid; gap: 16px; }
.side h2 { margin: 0 0 6px; padding: 0 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,239,228,.5); font-weight: 500; }
.side nav a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 15px; }
.side nav a.is-on, .side nav a:hover { background: rgba(243, 239, 228, 0.08); }
.side-foot { margin-top: 22px; padding: 8px; font-size: 13px; color: rgba(243,239,228,.7); display: grid; gap: 6px; }
.desk { padding: 22px 22px 48px; }
.desk-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.desk-top h1 { font-family: var(--serif); font-size: 40px; letter-spacing: -0.04em; font-weight: 560; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--white); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 32px; letter-spacing: -0.04em; }
.stat span { color: var(--ink-soft); font-size: 14px; }
.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.panel h2 { font-size: 16px; margin-bottom: 8px; }
.panel li { padding: 8px 0; border-top: 1px solid var(--line); list-style: none; }
.panel ul { margin: 0; padding: 0; }
.matrix { display: grid; gap: 8px; }
.matrix label { display: flex; gap: 8px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.who { font-size: 13px; color: var(--ink-soft); }

.banner {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f7f3ea;
  background: #12140f;
}
.banner-media, .banner-shade { position: absolute; inset: 0; }
.banner-video, .banner-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-still {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  animation: office-drift 22s ease-in-out infinite alternate;
}
.banner-shade {
  background:
    linear-gradient(90deg, rgba(10,12,8,.78) 0%, rgba(10,12,8,.42) 48%, rgba(10,12,8,.18) 100%),
    linear-gradient(to top, rgba(10,12,8,.55), transparent 42%);
}
.banner-copy { position: relative; z-index: 1; padding: 72px 0 56px; max-width: 820px; }
.banner h1 { color: #f7f3ea; text-shadow: 0 10px 30px rgba(0,0,0,.25); }
.banner .lede { color: rgba(247,243,234,.86); }
.banner .kicker, .banner .kicker span { color: rgba(247,243,234,.78); }
.banner .btn-ghost { color: #f7f3ea; border-color: rgba(247,243,234,.45); }
@keyframes office-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-2%, -1.5%, 0); }
}
.hero-board { padding: 28px 0 0; }
.hero-board .board { max-width: 520px; margin-left: auto; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: 100%;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 190px; object-fit: cover; display: block; }
.shot-body { display: grid; gap: 8px; padding: 16px 16px 18px; }
.shot-body small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); }
.shot-body h3 { font-family: var(--serif); font-size: 28px; letter-spacing: -.03em; font-weight: 560; line-height: 1.05; }
.shot-body p { color: var(--ink-soft); font-size: 15px; }
.shot:hover h3 { color: var(--clay-deep); }

.work-grid.shots { grid-template-columns: repeat(3, 1fr); }
.work-grid.shots .work-shot:first-child { min-height: 300px; grid-row: auto; }
.work-shot {
  position: relative;
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #f7f3ea;
  background: #171a12 center/cover no-repeat;
}
.work-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,10,7,.86), rgba(8,10,7,.08) 62%);
}
.work-shot span { position: relative; z-index: 1; padding: 20px; display: grid; gap: 8px; }
.work-shot small { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.work-shot h3 { font-family: var(--serif); font-size: 32px; letter-spacing: -.03em; line-height: 1; font-weight: 560; }
.work-shot p { color: rgba(247,243,234,.84); }

.demo-page { padding: 48px 0 72px; }
.demo-page h1 { font-size: clamp(40px, 5vw, 64px); }
.demo-page .lede { margin: 12px 0 22px; max-width: 640px; }
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.demo-split .form-card { height: 100%; }
.demo-art {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 100%;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.demo-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-map { margin-top: 28px; }
.footer-map-frame {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 16px;
  background: var(--paper-2);
}
.feature-shot { margin: 8px auto 28px; }
.feature-shot img { width: 100%; height: min(520px, 58vw); object-fit: cover; border-radius: 24px; display: block; }

@media (max-width: 980px) {
  .hero, .split, .cta-band, .work-grid, .work-grid.shots, .shot-grid, .quotes, .steps, .foot-grid, .service-row, .desk-grid, .stats, .shell, .team-grid, .account-grid, .demo-split, .footer-map {
    grid-template-columns: 1fr;
  }
  .demo-art { min-height: 320px; }
  .banner { min-height: 70vh; }
  .banner-copy { padding: 48px 0 36px; }
  .work-card:first-child { min-height: 240px; grid-row: auto; }
  .service-row { grid-template-columns: 1fr; }
  .note { grid-template-columns: 1fr; }
  .shell { display: block; }
  .side { position: relative; height: auto; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .menu-panel { display: none; }
  body.nav-open .menu-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: var(--paper);
    padding: 12px 22px 16px;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .site-nav, body.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }
  .brand { margin-right: 0; }
  .brand-logo { height: 64px; }
  .site-header { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .banner-still { animation: none; }
  html { scroll-behavior: auto; }
}
