:root {
  color-scheme: light;
  --paper: #f4efe6;
  --white: #fffaf2;
  --ink: #271e18;
  --muted: #63564b;
  --accent: #7c492d;
  --bronze: #a46c42;
  --line: #d9ccbc;
  --dark: #292019;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  font: 100%/1.58 var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; text-underline-offset: .26em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #996030; outline-offset: 4px; }
[hidden] { display: none !important; }
figure, p, h1, h2, h3, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.065em; }
h1 em, h2 em { font-weight: inherit; color: var(--accent); }
section[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 104px, 1380px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 10; padding: .65rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.top { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; font-size: 1.02rem; font-weight: 700; letter-spacing: -.028em; }
.brand b { font-weight: 450; }
.top nav { display: flex; gap: clamp(1.2rem, 3vw, 3rem); }
.top nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }
.pill { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; text-align: center; padding: .66rem 1.32rem; border: 1px solid var(--line); border-radius: 5rem; color: var(--ink); background: transparent; text-decoration: none; font-size: .94rem; font-weight: 600; line-height: 1.25; }
.pill:hover { border-color: var(--accent); color: var(--accent); background: #eadbca; }
.pill.primary { color: #fff9ef; background: var(--dark); border-color: var(--dark); }
.pill.primary:hover { background: #583721; border-color: #583721; }
.pill.outline { border-color: #af9a85; }
.nav-cta { min-height: 40px; }
.hero { display: grid; grid-template-columns: minmax(360px, .86fr) minmax(0, 1.14fr); min-height: min(680px, 70vw); padding-block: 30px 46px; }
.hero-copy { align-self: center; padding: 2.7rem clamp(1.4rem, 4.4vw, 5rem) 3.5rem 0; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; display: flex; align-items: center; gap: .68rem; line-height: 1.35; }
.eyebrow span { display: inline-block; width: 11px; height: 11px; flex: 0 0 11px; background: #a2683e; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hero h1 { font-size: clamp(4rem, 7.4vw, 8.4rem); margin-block: .28em .24em; }
.hero-text { max-width: 34ch; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.29rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.1rem; }
.hero-figure { position: relative; isolation: isolate; overflow: hidden; min-height: 485px; background: #735840; display: flex; align-items: end; }
.hero-photo, .hero-grid, .hero-figure::after { position: absolute; inset: 0; z-index: -1; }
.hero-photo { background: #705741 var(--hero-image, url("assets/interior.jpg")) center 52% / cover no-repeat; }
.hero-grid { background-image: linear-gradient(90deg, transparent calc(100% - 1px), #efe0be32 0), linear-gradient(transparent calc(100% - 1px), #efe0be32 0); background-size: 20% 25%; opacity: .62; }
.hero-figure::after { content: ""; background: linear-gradient(0deg, #21170ec4 0, transparent 33%); }
.hero-mark { position: absolute; top: 24px; right: 27px; filter: brightness(1.85) saturate(.65); opacity: .88; }
.hero-figure figcaption { width: 100%; padding: 1.25rem 1.5rem; color: #fff6e5; display: flex; justify-content: space-between; gap: .75rem; align-items: center; font-size: .86rem; }
.hero-figure figcaption span:last-child { letter-spacing: .13em; font-size: .71rem; text-align: right; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .75fr); align-items: end; gap: 2.3rem; margin-bottom: 2.6rem; }
.section-heading h2 { font-size: clamp(2.95rem, 5.5vw, 6.5rem); margin-top: .25em; }
.section-heading > p, .section-heading > div:nth-child(2) { color: var(--muted); max-width: 46ch; }
.demo-section, .modules-section, .tour-section, .company-section, .pilot-section { padding-block: clamp(4.25rem, 7vw, 7.5rem); }
.demo-section { background: #ece1d2; }
.demo-frame { display: grid; grid-template-columns: minmax(184px, 248px) minmax(0, 1fr); min-height: 540px; background: var(--white); border: 1px solid #cfbeaa; box-shadow: 0 18px 55px #62422512; }
.demo-rail { background: #2d231b; color: #faf0e2; padding: 1.35rem 1rem; display: flex; flex-direction: column; }
.rail-brand { color: #ead7be; font-size: .83rem; letter-spacing: .08em; font-weight: 700; padding: .55rem .6rem .9rem; }
.rail-list { display: grid; gap: .16rem; }
.rail-list button { display: flex; gap: .62rem; align-items: center; text-align: left; color: #f0dfcd; border: 1px solid transparent; border-radius: .42rem; padding: .49rem .55rem; background: transparent; font-size: .87rem; min-height: 40px; }
.rail-list button[aria-current="step"] { background: #4b3526; border-color: #835b3c; color: white; }
.rail-list button:not(:disabled):hover { background: #4b3526; }
.rail-list button span { color: #d7aa74; font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 16px; }
.rail-reset { margin-top: auto; padding-top: 1rem; }
.rail-reset button { background: none; border: 0; color: #f0dfcd; text-decoration: underline; text-underline-offset: .27rem; text-align: left; min-height: 40px; }
.demo-main { padding: clamp(1.2rem, 4vw, 3.5rem); min-width: 0; }
.demo-main h3 { font: 400 clamp(1.85rem, 3.6vw, 3.18rem)/1.08 var(--display); letter-spacing: -.043em; }
.demo-main .intro { color: var(--muted); margin-top: .64rem; max-width: 67ch; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .11em; font-weight: 690; font-size: .77rem; margin-bottom: .45rem; }
.progress { display: flex; gap: 5px; max-width: 320px; margin: .85rem 0 1.15rem; }
.progress span { height: 4px; flex: 1; border-radius: 4px; background: #e3d7c9; }
.progress span.done { background: var(--bronze); }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1.15rem; }
.option { display: block; min-height: 57px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .55rem; text-align: left; color: var(--ink); background: #fcf6eb; line-height: 1.4; }
.option strong, .option small { display: block; }
.option small { color: var(--muted); margin-top: .22rem; font-size: .86rem; }
.option:hover, .option[aria-pressed="true"] { border-color: var(--accent); background: #ebd9c5; }
.style-sample { display: block; height: 12px; margin-bottom: .5rem; border-radius: .16rem; background: var(--swatch); }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.35rem; }
.demo-note { padding: .7rem .95rem; border-left: 3px solid #9b704d; background: #f3e9db; color: #5e432e; font-size: .94rem; margin-top: 1rem; }
.demo-main .empty { margin-block: 1.1rem; background: #f5ecdf; padding: 1rem; }
.definition { display: grid; grid-template-columns: minmax(105px, .45fr) 1fr; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.definition dt, .definition dd { margin: 0; padding: .49rem .55rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.definition dt { color: var(--muted); font-size: .91rem; }
.definition dd { font-weight: 550; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.card { border: 1px solid var(--line); padding: 1rem; min-width: 0; background: #fcf6eb; }
.card h4 { margin: 0 0 .4rem; font-size: 1rem; }
.card p + p { margin-top: .55rem; }
.card ul, .steps { margin: .35rem 0 0; padding-left: 1.18rem; }
.card li + li, .steps li + li { margin-top: .45rem; }
.card.warn { background: #f6e8da; }
.palette { display: flex; height: 55px; margin: .75rem 0; border: 1px solid var(--line); }
.palette span { flex: 1; }
.demo-table { width: 100%; border-collapse: collapse; margin-top: 1rem; text-align: left; font-size: .93rem; }
.demo-table th, .demo-table td { padding: .49rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo-table th:last-child, .demo-table td:last-child { text-align: right; }
.demo-table tfoot { font-weight: 700; }
.approval-form { display: flex; align-items: flex-start; gap: .55rem; margin-top: 1rem; }
.approval-form input { width: 1.15rem; height: 1.15rem; margin-top: .23rem; accent-color: var(--accent); flex: none; }
.content-tabs { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: 1rem; }
.content-tabs button { border: 1px solid var(--line); border-radius: 2rem; padding: .57rem .88rem; background: #fcf6eb; color: var(--ink); }
.content-tabs button[aria-pressed="true"] { border-color: var(--accent); background: #ebd9c5; }
.content-sample { margin-top: .75rem; }
.content-sample strong { display: block; margin-bottom: .38rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.metric { background: #f2e6d7; padding: .8rem; }
.metric b { display: block; font: 400 clamp(1.6rem, 4vw, 2.5rem)/1 var(--display); color: var(--accent); margin-bottom: .28rem; }
.metric span { font-size: .9rem; line-height: 1.25; display: block; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-grid article { min-height: 205px; padding: 1.55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-grid article > span { color: var(--accent); font-size: .87rem; font-weight: 700; }
.module-grid h3, .work-grid h3, .pilot-grid h3 { font: 400 clamp(1.4rem, 2.45vw, 2.08rem)/1.1 var(--display); letter-spacing: -.025em; margin: .33rem 0 .65rem; }
.module-grid p, .work-grid p:not(.kicker), .pilot-grid p { color: var(--muted); }
.module-grid a, .work-grid a, .text-link { display: inline-block; color: var(--accent); font-weight: 640; font-size: .92rem; margin-top: .75rem; }
.tour-section { background: #292019; color: #fff4e3; }
.tour-section .eyebrow, .tour-section h2 em { color: #e0b689; }
.tour-section .section-heading > p { color: #e2d1bd; }
.work-grid, .pilot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.work-grid article, .pilot-grid article { padding: 1.38rem; background: #fbf6ed; border: 1px solid var(--line); }
.pilot-section { background: #eae0d2; }
.faq { margin-top: 3.1rem; }
.faq > h3 { font: 400 2.05rem/1.1 var(--display); margin-bottom: .8rem; }
.faq details { border-top: 1px solid #cbb9a5; padding: .83rem 0; }
.faq details:last-child { border-bottom: 1px solid #cbb9a5; }
.faq summary { cursor: pointer; font-weight: 650; padding: .18rem .25rem; }
.faq details p { max-width: 76ch; color: var(--muted); margin: .55rem 1.4rem .15rem; }
.faq details a { color: var(--accent); }
.pilot-next { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.7rem; }
.pilot-next p { max-width: 53ch; color: var(--muted); }
.footer { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer p, .footer > a:last-child:not(.brand) { font-size: .87rem; color: var(--muted); }
@media (max-width: 1090px) {
  .shell { width: calc(100% - 72px); }
  .hero { grid-template-columns: minmax(330px, .92fr) minmax(0, 1.08fr); }
  .hero-figure { min-height: 485px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .top { gap: .45rem; min-height: 64px; }
  .top nav { justify-content: flex-end; gap: .8rem; }
  .top nav a { font-size: .84rem; }
  .nav-cta { display: none; }
  .brand { font-size: .9rem; gap: .38rem; }
  .brand img { width: 26px; height: 26px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 0 1.9rem; }
  .hero-copy { padding: 2.6rem 0 2rem; }
  .hero h1 { font-size: clamp(4rem, 12.8vw, 6.35rem); }
  .hero-figure { min-height: 0; aspect-ratio: 1.21; }
  .hero-figure figcaption { padding: .8rem .9rem; font-size: .75rem; }
  .hero-figure figcaption span:last-child { font-size: .61rem; }
  .hero-mark { width: 39px; height: 39px; top: 16px; right: 15px; }
  .actions { margin-top: 1.35rem; }
  .section-heading { grid-template-columns: 1fr; gap: .95rem; margin-bottom: 1.6rem; }
  .demo-frame { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .demo-rail { padding: .55rem .66rem; }
  .rail-brand { padding: .33rem .3rem .5rem; font-size: .76rem; }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
  .rail-list button { padding: .36rem .38rem; min-height: 35px; font-size: .81rem; }
  .rail-reset { padding-top: .26rem; }
  .rail-reset button { min-height: 35px; font-size: .84rem; }
  .demo-main { padding: 1.2rem 1rem 1.4rem; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid article { min-height: 0; padding: .9rem; }
  .work-grid, .pilot-grid { grid-template-columns: 1fr; gap: .65rem; }
  .work-grid article, .pilot-grid article { padding: 1rem; }
  .pilot-next { align-items: flex-start; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; padding-block: 1.25rem; gap: .45rem; }
}
@media (max-width: 390px) {
  .top nav { gap: .52rem; }
  .top nav a { font-size: .79rem; }
  .hero h1 { font-size: 3.65rem; }
  .quiz-options, .split { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill { padding-inline: 1rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#demo-panel-title:focus { outline: none; }

.bp-portfolio {
  display: grid;
  gap: 1rem;
}
.bp-portfolio-tools,
.bp-portfolio-projects {
  display: grid;
  gap: 1rem;
}
.bp-portfolio-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bp-portfolio-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bp-portfolio-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.65rem);
  background: #fbf6ed;
  border: 1px solid var(--line);
}
.bp-portfolio-card h3 {
  margin: .38rem 0 .6rem;
  font: 400 clamp(1.45rem, 2.65vw, 2.35rem)/1.12 var(--display);
  letter-spacing: -.035em;
}
.bp-portfolio-card p:not(.kicker) {
  color: var(--muted);
}
.bp-portfolio-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 1rem 0 .65rem;
}
.bp-portfolio-shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: #f1e8da;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: zoom-in;
  font: inherit;
  line-height: 1.25;
}
.bp-portfolio-shot:hover {
  border-color: var(--accent);
}
.bp-portfolio-shot img,
.bp-portfolio-lightbox img {
  display: block;
  width: 100%;
  height: auto;
}
.bp-portfolio-shot span {
  padding: .48rem .55rem;
  font-size: clamp(.7rem, 1.2vw, .85rem);
}
.bp-portfolio-access {
  margin-top: .35rem;
  font-size: .85rem;
}
.bp-portfolio-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}
.bp-portfolio-lightbox {
  width: min(96vw, 1360px);
  max-height: 92dvh;
  padding: clamp(.55rem, 2vw, 1rem);
  border: 1px solid var(--line);
  background: #fbf6ed;
  color: var(--ink);
}
.bp-portfolio-lightbox > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding-bottom: .55rem;
}
.bp-portfolio-lightbox img {
  max-height: 76dvh;
  object-fit: contain;
}
.bp-portfolio-lightbox button {
  padding: .32rem .65rem;
  min-height: 2.5rem;
  color: var(--ink);
  background: #f5ebdb;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}
.bp-portfolio-lightbox::backdrop {
  background: rgb(17 14 12 / .76);
}
@media (max-width: 760px) {
  .bp-portfolio-tools,
  .bp-portfolio-projects {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 390px) {
  .bp-portfolio-shot span {
    overflow-wrap: anywhere;
  }
}
