body {
  --bg: #efebe2;
  --ink: #1d1b18;
  --muted: #615c53;
  --line: #dcd6ca;
  --surface: #faf8f3;
  --accent: #ff6a36;
  --accent-hover: #ff895f;
  --dark-muted: #d6cec2;
}

.header { height: 84px; border: 0; }
.brand-mark { border-color: var(--ink); background: var(--ink); }
.header nav { gap: 8px; }
.header nav .nav-contact, .header nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
}
.header nav .nav-contact { width: 44px; border: 1px solid var(--line); background: var(--surface); }
.header nav .nav-cta { padding: 0 19px; background: var(--ink); color: white; font-size: 14px; }
.header nav .nav-cta:hover { background: #3b3530; }

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: center;
  padding-block: clamp(35px, 5vw, 62px) clamp(55px, 8vw, 95px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.hero-copy h1 {
  max-width: 620px;
  margin: 20px 0;
  font-size: clamp(39px, 4.5vw, 64px);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -.055em;
}
.hero-copy .hero-lead { margin: 0 0 22px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.58; }
.project-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.project-input {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.project-input input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.project-input .button, .expert-actions .button { flex: none; width: auto; margin: 0; min-height: 44px; padding: 10px 15px; }
.project-input .primary, .expert-actions .primary { border: 0; background: var(--accent); color: var(--ink); cursor: pointer; }
.project-input .primary:hover, .expert-actions .primary:hover { background: var(--accent-hover); color: var(--ink); }
.demo-label { margin: 22px 0 9px; color: var(--muted); font-size: 13px; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.case-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.case-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.case-tabs .case-mark { width: 21px; height: 21px; border-radius: 4px; }
.case-tabs .case-mark-rage { width: 36px; }

.portfolio-demo {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 38px #211b1417;
}
.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e9e5dd;
  font-size: 13px;
}
.demo-top strong { display: flex; align-items: center; gap: 8px; }
.chat-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--ink); color: white; }
.demo-state { color: var(--muted); font-size: 12px; }
.demo-state::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #31865a; content: ""; }
#case-preview { padding: 15px; }
.demo-question { width: fit-content; max-width: 92%; margin: 0 0 14px auto; padding: 10px 12px; border-radius: 13px 13px 3px 13px; background: var(--bg); font-size: 14px; line-height: 1.48; }
.portfolio-demo .case-card { padding: 14px; }
.portfolio-demo .case-question { display: none; }
.portfolio-demo .case-form { margin-top: 12px; }
.portfolio-demo .case-field { flex-basis: 125px; }
.portfolio-demo .case-submit { flex-basis: 100%; }
.portfolio-demo .case-result { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.portfolio-demo .case-result:focus-visible { outline-offset: -2px; }

.why-section, .closing-section { background: var(--ink); color: white; }
.why-section, .process-section, .closing-section, .faq-section, .portfolio-cases { padding-block: clamp(45px, 7vw, 86px); }
.why-section .eyebrow, .process-section .eyebrow, .portfolio-cases .eyebrow { margin: 0 0 9px; color: #9a4226; }
.why-section .eyebrow { color: #ff9978; }
.why-section h2, .process-section h2, .closing-section h2, .faq-section h2, .portfolio-cases h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-lead { max-width: 650px; margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.why-section .section-lead { color: var(--dark-muted); }
.question-flow, .process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.question-flow li { padding: 15px 18px; border: 1px solid #494137; border-radius: 12px; background: #28241f; font-weight: 650; }

.expert-card {
  display: grid;
  grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 29px);
  padding: clamp(17px, 3vw, 24px);
  margin-top: 28px;
  border: 1px solid #494137;
  border-radius: 15px;
  background: #28241f;
}
.expert-photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.expert-card h3 { margin: 0 0 5px; font-size: clamp(23px, 3vw, 29px); }
.expert-card p { margin: 0; color: var(--dark-muted); font-size: 15px; line-height: 1.55; }
.expert-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 8px 0 12px; font-size: 13px; }
.expert-links a { color: var(--dark-muted); }
.expert-links a:hover { color: white; }
.expert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.expert-actions .secondary { border: 1px solid #85796d; color: white; }
.expert-actions .secondary:hover { background: #3b342b; }

.portfolio-gallery { margin-top: 16px; }
.case-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.case-story[hidden] { display: none; }
.case-story h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 25px; }
.case-story h3 .case-mark { height: 30px; }
.case-story p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.case-story button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--ink); color: white; font: inherit; font-weight: 650; cursor: pointer; }
.case-capture { display: block; color: var(--muted); }
.case-capture img { display: block; width: 100%; height: auto; border-radius: 9px; }
.case-capture span { display: block; margin-top: 6px; font-size: 12px; }

.process-section { background: #e6e0d5; }
.process-steps { margin-top: 23px; }
.process-steps li { padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.process-steps span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--accent); font-weight: 700; }
.process-steps h3 { margin: 14px 0 7px; font-size: 20px; }
.process-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.faq-section details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq-section summary { cursor: pointer; font-size: 17px; font-weight: 650; }
.faq-section details p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.closing-section p { margin: 0 0 20px; color: var(--dark-muted); line-height: 1.55; }
.closing-section .project-form { max-width: 580px; }
.footer-bottom { gap: 12px; }

@media (max-width: 800px) {
  .header { height: 70px; }
  .portfolio-hero, .case-story { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(36px, 7vw, 57px); }
  .portfolio-demo { width: 100%; }
}

@media (max-width: 520px) {
  .project-input { flex-direction: column; }
  .project-input input { min-height: 42px; }
  .project-input .button { width: 100%; }
  .question-flow, .process-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .question-flow li { padding: 12px 15px; }
  .expert-card { grid-template-columns: minmax(0, 1fr); }
  .expert-photo { width: 88px; }
  .expert-actions .button { padding-inline: 11px; }
}
