:root {
  color-scheme: light;
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --ink: #281913;
  --muted: #665950;
  --red: #55130b;
  --red-dark: #3c100c;
  --gold: #d2a675;
  --line: #e8ded3;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #a94a2b; outline-offset: 4px; }
.hero :focus-visible, .client-cover :focus-visible { outline-color: #ffd6a2; }
.shell { max-width: 1280px; width: calc(100% - 96px); margin-inline: auto; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .6rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--red); }
.brand img { width: 39px; height: 47px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.19rem/1.12 var(--display); }
.brand small { color: var(--muted); font-size: .82rem; margin-top: .18rem; }
.mast-link { color: var(--red); font-size: .9rem; font-weight: 650; }
.mast-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin: 30px 0 32px; min-height: 310px; border-radius: 18px; background: var(--red-dark); color: #fff9ef; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 31px clamp(32px, 5vw, 85px); background: radial-gradient(ellipse at right bottom, #6b2014, var(--red-dark) 78%); }
.accent-line { display: block; width: 45px; height: 2px; background: var(--gold); margin-bottom: 17px; }
h1 { font: 500 clamp(3.15rem, 6.15vw, 6rem)/.9 var(--display); letter-spacing: -.052em; }
.hero-copy p { max-width: 425px; margin-top: 18px; color: #f1ddd0; line-height: 1.52; }
.carousel { position: relative; min-width: 0; }
.slides, .slides figure { position: absolute; inset: 0; }
.slides figure::after, .client-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.slides figure::after { background: linear-gradient(0deg, #1c100ce8, #21110d44 49%, transparent 78%); }
.slides img, .client-cover img { width: 100%; height: 100%; object-fit: cover; }
.slides figcaption { position: absolute; z-index: 1; inset: auto 27px 50px; display: grid; gap: 4px; }
.slides figcaption strong { font: 700 clamp(1.35rem, 2.3vw, 1.9rem)/1.12 var(--display); }
.slides figcaption span { color: #faf0e7; font-size: .91rem; }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; position: absolute; z-index: 1; inset: auto 22px 12px; }
.pages { display: flex; align-items: center; gap: 2px; }
.pages button { width: 25px; height: 25px; border: 0; background: transparent; padding: 5px; position: relative; }
.pages button::before { content: ""; display: block; margin: auto; width: 7px; height: 7px; border-radius: 10px; background: #fff7eb99; }
.pages button[aria-current="true"]::before { width: 15px; background: #f2c28b; }
.rotate { display: grid; place-items: center; width: 31px; height: 31px; color: #fff7ed; border: 1px solid #ffffff85; border-radius: 50%; background: #2916118c; padding: 0; }
.rotate::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.rotate[data-rotating="true"]::before { width: 7px; height: 10px; border: 0; border-inline: 2px solid currentColor; margin: 0; }

.workspace { display: grid; grid-template-columns: minmax(290px, .35fr) minmax(0, 1fr); gap: 25px; align-items: start; margin-bottom: 35px; }
.modules, .client { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; min-width: 0; }
.modules { padding: 19px 15px 11px; }
.modules h2 { margin: 0 8px 12px; font: 700 1.45rem/1.15 var(--display); }
.modules ul { padding: 0; margin: 0; list-style: none; }
.modules li + li { border-top: 1px solid var(--line); }
.module { position: relative; display: grid; grid-template-columns: 37px minmax(0, 1fr) 9px; gap: 11px; padding: 12px 9px; align-items: start; border-radius: 9px; }
.module-primary { background: #f4e7dc; }
a.module:hover { background: #f0e0d4; }
.module-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; color: var(--red); background: #f4eae2; }
.module-primary .module-icon { background: var(--red); color: #fff6e9; }
.module-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.module strong, .module small { display: block; }
.module strong { color: var(--red); font-size: .98rem; font-weight: 730; line-height: 1.35; }
.module small { margin-top: 3px; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.module-status { display: inline-block; margin-top: 4px; color: #794321; font-size: .77rem; font-weight: 650; }
.chevron { align-self: center; width: 6px; height: 6px; border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: rotate(45deg); }

.client { padding: 17px; }
.client-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 3px 15px; }
.client-head p { margin-bottom: 1px; color: #794321; font-size: .84rem; font-weight: 650; }
.client-head h2 { font: 700 clamp(1.6rem, 2.9vw, 2.65rem)/1.05 var(--display); letter-spacing: -.025em; color: var(--red-dark); }
.outline, .solid { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid #d6bdab; border-radius: 7px; padding: 8px 13px; background: transparent; color: var(--red); font-size: .9rem; font-weight: 700; text-align: center; }
.outline:hover { background: #f4e7dc; }
.client-cover { position: relative; min-height: 405px; isolation: isolate; border-radius: 10px; overflow: hidden; color: #fff9f0; display: flex; align-items: end; }
.client-cover img { position: absolute; inset: 0; z-index: -2; object-position: 52% 48%; }
.client-cover::after { z-index: -1; background: linear-gradient(90deg, #21110dee 0%, #2818138a 47%, #28181308 100%), linear-gradient(0deg,#21110d86,transparent 70%); }
.client-copy { padding: clamp(24px, 4.5vw, 61px); }
.client-copy h3 { font: 500 clamp(2.4rem, 5vw, 5.15rem)/.91 var(--display); letter-spacing: -.045em; }
.client-copy p { margin: 13px 0 17px; max-width: 23rem; }
.solid { background: #fff5e7; border-color: #fff5e7; padding-inline: 18px; }
.solid:hover { background: #f1d7b5; border-color: #f1d7b5; }
.embed-toolbar { display: flex; margin-bottom: 10px; }
.embedded iframe { display: block; width: 100%; height: clamp(470px, 72vh, 850px); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .83rem; }
.footer-inner { min-height: 66px; }
footer strong { color: var(--red); }
.version { border-left: 1px solid #d7c9bb; margin-left: .65rem; padding-left: .65rem; }
footer address { display: flex; gap: 18px; font-style: normal; }

@media (max-width: 950px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: minmax(265px, .46fr) minmax(0, 1fr); gap: 16px; }
  .client-head { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 30px); }
  .mast-inner { min-height: 66px; }
  .hero { grid-template-columns: 1fr; margin: 17px 0 21px; }
  .hero-copy { grid-row: 1; padding: 25px; }
  h1 br { display: none; }
  .hero-copy p { margin-top: 12px; }
  .accent-line { margin-bottom: 12px; }
  .carousel { min-height: 225px; }
  .workspace { grid-template-columns: 1fr; }
  .modules { padding-inline: 12px; }
  .client { padding: 13px; }
  .client-cover { min-height: 320px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 9px; padding-block: 14px; }
  footer address { flex-wrap: wrap; gap: 5px 14px; }
}
@media (max-width: 380px) {
  .brand { gap: .4rem; }
  .brand strong { font-size: 1.02rem; }
  .mast-link { font-size: .8rem; }
  h1 { font-size: 2.6rem; }
  .slides figcaption { inset-inline: 20px; }
}
