/* Layout concept: a split "two-offering" hero (forest-green services panel first | light product panel),
   then the page alternates light paper sections with deep-forest bands for emphasis.
   Shapes borrow the logo's hard diagonals and quarter-round. Single deliberate light look. */
:root {
  --paper:      #F2F2EC;   /* page ground, faintly green-grey */
  --paper-2:    #E7E3D6;   /* logo cream, for panels */
  --offwhite:   #F8F6EF;   /* cards and inputs: never pure white */
  --ink:        #13241B;   /* body text */
  --ink-soft:   #4D5D53;
  --forest:     #123524;   /* logo deep green: dark highlight bands */
  --forest-2:   #1B3F2D;
  --moss:       #2E4A3A;   /* logo mid green */
  --copper:     #C49A6C;   /* logo copper: accent on dark */
  --copper-ink: #8A5F31;   /* copper dark enough for light ground */
  --on-dark:    #EDEADF;
  --on-dark-soft: #B9BFB2;
  --line:       rgba(18, 53, 36, .16);
  --line-dark:  rgba(237, 234, 223, .16);
  --error:      #A23B2A;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.muted-inv { color: var(--on-dark-soft); }

.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-ink); display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.eyebrow-copper { color: var(--copper); }

/* taglines */
.slogan {
  font-family: var(--f-display); font-weight: 700; font-stretch: 115%;
  font-size: 1.05rem; letter-spacing: .01em; color: var(--moss);
}
.slogan-copper { color: var(--copper); }
.slogan-big { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; font-stretch: 112%; letter-spacing: -.01em; color: var(--forest); display: flex; flex-direction: column; line-height: 1; }
.brand-sub { font-family: var(--f-mono); font-weight: 400; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.brand-name.small { font-size: 1.1rem; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.site-nav a:hover { color: var(--copper-ink); }
.site-nav .nav-cta { background: var(--forest); color: var(--on-dark); padding: .55rem 1rem; border-radius: var(--radius); }
.site-nav .nav-cta:hover { background: var(--moss); color: var(--on-dark); }
.menu-btn { display: none; font: 500 .9rem var(--f-body); background: none; border: 1px solid var(--line); color: var(--ink); padding: .45rem .8rem; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0; }
  .site-nav:not(.open) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: 600 .95rem var(--f-body); text-decoration: none; cursor: pointer;
  padding: .8rem 1.2rem; border-radius: var(--radius); border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--forest); color: var(--on-dark); }
.btn-dark:hover { background: var(--moss); }
.btn-copper { background: var(--copper); color: var(--forest); }
.btn-copper:hover { background: #D3AC80; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 3.8rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-title {
  font-size: var(--step-4); font-weight: 700; font-stretch: 88%; letter-spacing: -.02em;
  color: var(--forest); max-width: 20ch; margin-top: 1rem;
}
.hero-title em { font-style: normal; font-stretch: 120%; font-weight: 800; color: var(--copper-ink); }
.hero-title em:last-of-type { color: var(--moss); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 22px); margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.split-card {
  min-width: 0; display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.2rem, 2.6vw, 2rem); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.split-card h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 105%; letter-spacing: -.015em; }
.split-card sup { font-size: .45em; vertical-align: super; }
.split-card .btn { align-self: flex-start; margin-top: auto; }
.split-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }

.split-product { background: var(--paper-2); color: var(--ink); }
.split-product h2 { color: var(--forest); }
.split-service { background: var(--forest); color: var(--on-dark); }
/* logo-derived corner shapes */
.split-product::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 0 0 0 100%; background: var(--moss); opacity: .12; }
.split-service::after { content: ""; position: absolute; right: 0; top: 0; width: 90px; height: 90px; background: var(--copper); clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .9; }

.split-service .split-head { padding-right: 56px; }
.hero-dash { margin: 0; display: grid; gap: .55rem; }
.hero-dash .slot { border: 1px solid var(--line-dark); }
.hero-dash figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--on-dark-soft); display: flex; align-items: center; gap: .5rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #6FCF8E; box-shadow: 0 0 0 0 rgba(111, 207, 142, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 142, .55); } 70% { box-shadow: 0 0 0 8px rgba(111, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 207, 142, 0); } }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-points li { font-size: .85rem; padding: .35rem .7rem; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--on-dark); }
.tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 2px; background: var(--forest); color: var(--on-dark); }
.tag-copper { background: var(--copper); color: var(--forest); }

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

/* ---------- image slots ---------- */
.slot {
  position: relative; margin: 0; width: 100%; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(18,53,36,.06) 11px 12px),
    #DCD8C9;
}
.slot-dark { background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(237,234,223,.06) 11px 12px), #1D4331; }
.slot > img.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; gap: .25rem; color: var(--moss);
}
.slot-dark .slot-ph { color: var(--on-dark-soft); }
.slot-ph b { font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: inherit; }
.slot-ph code { font-family: var(--f-mono); font-size: .72rem; opacity: .85; overflow-wrap: anywhere; }
.slot.has-img .slot-ph { display: none; }

.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-7 { aspect-ratio: 16 / 7; }
.ratio-story { aspect-ratio: 5 / 4; }

/* live readout chips */
.readout {
  position: absolute; z-index: 2; top: .8rem; left: .8rem;
  background: var(--offwhite); color: var(--ink); border: 1px solid var(--line);
  padding: .55rem .75rem; border-radius: 3px; display: grid; gap: .1rem; min-width: 150px;
  font-variant-numeric: tabular-nums;
}
.readout-dark { background: var(--forest); color: var(--on-dark); border-color: var(--line-dark); }
.readout-k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.readout-v { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; font-stretch: 90%; }
.spark { width: 120px; height: 28px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-head { display: grid; gap: .9rem; max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: var(--step-3); font-weight: 800; font-stretch: 100%; letter-spacing: -.015em; color: var(--forest); }
.section-dark .section-title { color: var(--on-dark); }
.section-title sup { font-size: .45em; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.section-dark .lede { color: var(--on-dark-soft); }
.sub-title { font-size: var(--step-2); font-weight: 800; color: var(--forest); margin: clamp(2.6rem, 5vw, 3.6rem) 0 1rem; }

/* ---------- services ---------- */
.svc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.svc-grid li { padding: 1.2rem 1.1rem 1.4rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; gap: .45rem; align-content: start; position: relative; transition: background .2s ease; }
.svc-grid li:hover { background: var(--moss); }
.svc-grid h3 { font-size: 1.05rem; font-weight: 700; font-stretch: 105%; color: var(--on-dark); }
.svc-grid p { font-size: .9rem; color: var(--on-dark-soft); }
.svc-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: .35rem;
  font-size: 1.55rem; line-height: 1; border-radius: var(--radius);
  background: rgba(196, 154, 108, .16); border: 1px solid rgba(196, 154, 108, .35);
  transition: transform .25s ease, background .25s ease;
}
.svc-grid li:hover .svc-icon { transform: translateY(-3px) rotate(-6deg); background: rgba(196, 154, 108, .3); }
.svc-soon h3 { color: var(--copper); }
.soon { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); background: var(--copper); justify-self: start; padding: .15rem .45rem; border-radius: 2px; margin-top: .2rem; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc-shot { margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; display: grid; gap: .7rem; }
.svc-shot .slot { border: 1px solid var(--line-dark); }
.svc-shot figcaption { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--on-dark-soft); }
.ratio-dash { aspect-ratio: 1893 / 800; }
@media (max-width: 640px) { .ratio-16-7 { aspect-ratio: 16 / 10; } }

/* ---------- dashboard features (inside a case study) ---------- */
.case-features { grid-column: 1 / -1; min-width: 0; }
.feat-grid { list-style: none; margin: 0; padding: 0 !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
.feat-grid li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; align-items: start;
  padding: .95rem 1rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.feat-grid li:hover { border-color: var(--copper); transform: translateY(-2px); }
.feat-icon { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; border-radius: var(--radius); background: var(--offwhite); }
.feat-grid h4 { font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .25rem; font-stretch: 102%; }
.feat-grid p { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- case study cards link to their own page ---------- */
a.case-summary { text-decoration: none; transition: background .2s ease; }
a.case-summary:hover { background: var(--offwhite); }
a.case-summary:hover h4 { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.case-toggle .arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; transition: transform .2s ease; }
a.case-summary:hover .case-toggle .arrow { transform: translateX(4px); background: var(--copper); color: var(--forest); border-color: var(--copper); }

/* ---------- case study page ---------- */
.cs-hero { background: var(--forest); color: var(--on-dark); padding-block: clamp(2rem, 5vw, 3.6rem); }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.cs-hero-copy { display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.cs-back { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); text-decoration: none; }
.cs-back:hover { color: var(--copper); }
.cs-title { font-size: var(--step-4); font-weight: 800; font-stretch: 92%; letter-spacing: -.02em; color: var(--on-dark); max-width: 18ch; }
.cs-client { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); color: var(--copper); }
.cs-summary { font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-soft); max-width: 60ch; }
.cs-summary strong { color: var(--on-dark); }
.chip-inv { border-color: var(--line-dark); color: var(--on-dark-soft); }
.chip-status-inv { background: var(--on-dark); color: var(--forest); border-color: var(--on-dark); }
.cs-cover { aspect-ratio: 4 / 5; max-height: 520px; border: 1px solid var(--line-dark); }
@media (max-width: 860px) {
  .cs-hero-grid { grid-template-columns: 1fr; }
  .cs-cover { aspect-ratio: 16 / 10; }
}
.cs-page { display: grid; gap: clamp(2rem, 4.5vw, 3.4rem); padding-block: clamp(2rem, 5vw, 3.6rem); }
.cs-h { font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; color: var(--forest); margin: 0; }
.cs-missing { display: grid; gap: 1rem; justify-items: start; }
.cs-more { padding-block: 0 clamp(2.4rem, 6vw, 4rem); display: grid; gap: 1rem; }
.cs-more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cs-more-card { display: grid; gap: .6rem; justify-items: start; padding: 1.2rem; border-radius: var(--radius); background: var(--paper-2); text-decoration: none; color: var(--ink); }
.cs-more-card strong { font-family: var(--f-display); font-size: var(--step-1); color: var(--forest); }
.cs-more-go { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); }
.feat-grid h3, .cs-solution h3 { font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .25rem; font-stretch: 102%; }

/* ---------- full case study content ---------- */
.contact-k2 { margin-top: 1rem; }
.case-body { gap: clamp(1.6rem, 3.5vw, 2.6rem) !important; }
.cs-block { display: grid; gap: .9rem; min-width: 0; align-content: start; }
.cs-block > h5 { margin: 0; }
.cs-intro { color: var(--ink-soft); max-width: 72ch; }
.cs-glance { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--offwhite); }
.cs-glance div { padding: .8rem 1rem; display: grid; gap: .2rem; align-content: start; }
.cs-glance div + div { border-left: 1px solid var(--line); }
.cs-glance dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-ink); }
.cs-glance dd { margin: 0; font-weight: 600; color: var(--forest); font-size: .95rem; }
@media (max-width: 900px) {
  .cs-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-glance div + div { border-left: 0; }
  .cs-glance div { border-top: 1px solid var(--line); }
  .cs-glance div:nth-child(-n+2) { border-top: 0; }
}
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); }
@media (max-width: 760px) { .cs-two { grid-template-columns: 1fr; } }
.cs-points { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: .65rem !important; }
.cs-points li { padding-left: 1.1rem; position: relative; }
.cs-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--copper); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.cs-points strong { color: var(--forest); }

.cs-solution { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cs-solution li { grid-template-columns: 1fr !important; align-content: start; }
.cs-solution li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; padding: 1rem; background: var(--paper-2); border-radius: var(--radius); }
.cs-solution h4 { font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .25rem; }
.cs-solution p { font-size: .9rem; color: var(--ink-soft); }

.cs-visuals { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .cs-visuals { grid-template-columns: 1fr; } }
.cs-pic { margin: 0; display: grid; gap: .5rem; min-width: 0; }
.cs-pic img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--offwhite); }
.cs-pic figcaption { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.cs-flow img { padding: .6rem; background: #FFFFFF; }
.cs-photo img { max-height: 520px; object-fit: cover; }
.cs-note { background: var(--offwhite); border: 1px dashed var(--copper); border-radius: var(--radius); padding: .8rem 1rem; color: var(--ink); }
.cs-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: .4rem; }
@media (max-width: 900px) { .cs-shots { grid-template-columns: 1fr; } }

.cs-roi .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--offwhite); }
.cs-roi table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.cs-roi th, .cs-roi td { padding: .7rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
.cs-roi thead th { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); }
.cs-roi tbody th { text-align: left; font-weight: 600; color: var(--forest); }
.cs-roi thead th:first-child { text-align: left; }
.cs-roi td:last-child { font-weight: 700; color: var(--moss); }
.cs-roi tbody tr:last-child th, .cs-roi tbody tr:last-child td { border-bottom: 0; background: rgba(196, 154, 108, .14); }
.cs-roi tbody tr:last-child td:last-child { color: var(--copper-ink); font-size: 1.1rem; }
.cs-roi-note { font-size: 1.02rem; }
.cs-roi-note strong { color: var(--forest); }
.cs-foot { font-size: .8rem; color: var(--ink-soft); font-style: italic; }

.cs-quote { margin: 0; background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem); display: grid; gap: 1rem; position: relative; overflow: hidden; }
.cs-quote::before { content: "“"; position: absolute; right: 1.2rem; top: -1.6rem; font-family: var(--f-display); font-size: 9rem; line-height: 1; color: var(--copper); opacity: .35; }
.cs-quote p { font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 500; line-height: 1.45; max-width: 62ch; position: relative; }
.cs-quote footer { font-size: .92rem; color: var(--on-dark-soft); }
.cs-quote footer strong { color: var(--copper); }

.cs-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.cs-cta strong { display: block; font-family: var(--f-display); font-size: var(--step-1); color: var(--forest); margin-bottom: .2rem; }
.cs-cta p { color: var(--ink-soft); max-width: 60ch; }

/* case results */
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.result { background: var(--forest); color: var(--on-dark-soft); border-left: 3px solid var(--copper); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .25rem; }
.result-v { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--copper); font-variant-numeric: tabular-nums; }
.result p { font-size: .88rem; }
.chip-result { background: var(--copper); color: var(--forest); border-color: var(--copper); }

/* ---------- case studies ---------- */
.cases { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--copper); }
.cases-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cases-title { font-size: var(--step-3); font-weight: 800; color: var(--on-dark); }
.case-list { display: grid; gap: 14px; }

.case { background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.case-summary {
  width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  padding: 14px;
}
.case-summary .slot { aspect-ratio: 4 / 3; }
.case-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.chip { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); }
.chip-status { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.case-summary h4 { font-size: var(--step-2); font-weight: 800; font-stretch: 102%; color: var(--forest); margin: 0 0 .35rem; line-height: 1.12; }
.case-summary p { color: var(--ink-soft); }
.case-toggle { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.case-toggle .plus { display: inline-block; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; position: relative; transition: transform .25s ease; }
.case-toggle .plus::before, .case-toggle .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.case-toggle .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.case.open .case-toggle .plus { transform: rotate(45deg); }

.case-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1rem, 3vw, 2.4rem); }
.case-cols > div { min-width: 0; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.4rem); border-top: 1px solid var(--line); margin-inline: 14px; padding-block: clamp(18px, 3vw, 26px); }
.case-body h5 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 .5rem; }
.case-cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.case-body .case-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-body .stack { display: flex; flex-wrap: wrap; gap: .4rem; }

.case-next { border: 1px dashed var(--line-dark); border-radius: var(--radius); padding: 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.case-next p { color: var(--on-dark-soft); max-width: 52ch; }
.case-next strong { color: var(--on-dark); font-family: var(--f-display); font-size: var(--step-1); display: block; margin-bottom: .2rem; }

@media (max-width: 760px) {
  .case-summary { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .case-body .case-gallery { grid-template-columns: 1fr; }
}

/* ---------- product: stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.stat { background: var(--forest); color: var(--on-dark-soft); border-left: 3px solid var(--copper); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.3rem; display: grid; gap: .35rem; align-content: start; }
.stat-v { font-family: var(--f-display); font-weight: 800; font-stretch: 95%; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1; color: var(--copper); font-variant-numeric: tabular-nums; }
.stat p { font-size: .92rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product: story ---------- */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); position: relative; }
.story-card { background: var(--paper-2); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; position: relative; }
.story-card .slot { border-radius: var(--radius) var(--radius) 0 0; }
.slot.fit-contain { background: var(--forest); }
.slot.fit-contain > img.slot-img { object-fit: contain; }
.story-text { padding: 1.2rem 1.3rem 1.5rem; display: grid; gap: .5rem; }
.story-n { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); }
.story-text h3 { font-size: var(--step-2); font-weight: 800; font-stretch: 100%; color: var(--forest); }
.story-text p { color: var(--ink-soft); }
/* arrows between story steps */
.story-card + .story-card::before {
  content: "→"; position: absolute; z-index: 3; left: calc(-1 * clamp(12px, 2vw, 20px) / 2); top: 38%;
  transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--copper); color: var(--forest); font-weight: 700; display: grid; place-items: center;
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .ratio-story { aspect-ratio: 16 / 10; }
  .story-card + .story-card::before { content: "↓"; left: 50%; top: calc(-1 * clamp(12px, 2vw, 20px) / 2); }
}

/* ---------- product: demo video ---------- */
.demo {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: center;
  background: var(--paper-2); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.4rem);
}
.demo-copy { display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.demo-copy .sub-title { margin: 0; }
.demo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.demo-points li { font-weight: 500; }
/* portrait phone-style frame for the vertical video */
.demo-frame {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 464 / 832;
  background: var(--forest); border-radius: 22px; overflow: hidden;
  border: 8px solid var(--forest); box-shadow: 0 18px 40px -18px rgba(18, 53, 36, .55);
}
@media (max-width: 760px) {
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .demo-frame { max-width: 300px; }
}
.demo-frame video, .demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--forest); }
.demo-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.demo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .28; filter: grayscale(.3); }
.demo-ph-inner { position: relative; display: grid; justify-items: center; gap: .6rem; text-align: center; color: var(--on-dark); padding: 1rem; }
.demo-ph-inner b { font-family: var(--f-display); font-size: var(--step-1); }
.demo-ph-inner code { font-family: var(--f-mono); font-size: .74rem; color: var(--on-dark-soft); }
.play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: var(--forest); font-size: 1.6rem; padding-left: 5px; box-shadow: 0 0 0 10px rgba(196, 154, 108, .25); }

/* ---------- partners ---------- */
.section-partners { border-top: 1px solid var(--line); }
.partner-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.partner {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.4rem; align-items: center;
  text-decoration: none; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--offwhite);
  transition: border-color .2s ease, transform .2s ease;
}
.partner:hover { border-color: var(--moss); transform: translateY(-2px); }
.partner h3 { font-size: var(--step-1); color: var(--forest); margin-bottom: .3rem; }
.partner-logo { height: 110px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 110px; max-width: 150px; width: auto; object-fit: contain; }
.partner-logo .wordmark { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.3rem; color: var(--forest); text-align: center; line-height: 1; border: 2px solid var(--forest); padding: .7rem .6rem; }
@media (max-width: 760px) { .partner-row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .partner { grid-template-columns: 1fr; } .partner-logo { justify-content: flex-start; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; min-width: 0; }
.email-box { display: grid; gap: .4rem; margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.email-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.email { font-family: var(--f-display); font-size: var(--step-2); font-weight: 700; color: var(--copper); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.copy-btn { font: 500 .8rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; background: none; color: var(--on-dark); border: 1px solid var(--line-dark); padding: .35rem .7rem; border-radius: 3px; cursor: pointer; }
.copy-btn:hover { border-color: var(--copper); }

.contact-form { background: var(--paper); color: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); display: grid; gap: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--offwhite); width: 100%;
  border: 1px solid var(--line); border-radius: 3px; padding: .7rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--moss); outline-offset: 0; border-color: var(--moss); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--moss); font-weight: 600; }
.form-status.err { color: var(--error); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* entrance: starts visible, only a gentle lift */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
.split-card { animation: rise .6s ease both; }
.split-product { animation-delay: .08s; }
