/* FORMA editorial visual refresh inspired by image-led furniture showrooms. */
:root {
  --ink: #252421;
  --paper: #fbfaf8;
  --white: #fff;
  --wood: #a77b55;
  --line: #e7e4df;
  --sage: #62685e;
  --muted: #696762;
  --max: 1480px;
  --space: clamp(22px, 5vw, 84px);
}

html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; }
h1, h2, h3 { letter-spacing: -.035em; font-weight: 500; }
.eyebrow { color: #77736c; font-size: 11px; letter-spacing: .12em; }
.top { background: rgba(251,250,248,.96); border-color: #ebe8e2; backdrop-filter: blur(14px); }
.topinner { min-height: 76px; }
.brand, .top .brand { font-weight: 600; letter-spacing: .13em; }
.top .brand { color: var(--ink); }
.brand i { color: #a77b55; }
.nav { font-size: 13px; gap: clamp(12px, 1.6vw, 25px); }
.top .nav { color: var(--ink); }
.nav a:hover, .nav a[aria-current=page] { color: #96704e; }
.btn, .top .btn { border-radius: 999px; font-size: 14px; min-height: 50px; padding: 13px 25px; background: #272724; border-color: #272724; }
.top .btn { color: #fff; }
.btn:hover, .top .btn:hover { background: #9d7858; border-color: #9d7858; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: #aaa69e; }
.btn.secondary:hover { background: #eeece7; border-color: #88847c; color: var(--ink); }

/* Home: keep the existing FORMA video hero, with editorial spacing around it. */
.homePage .hero { min-height: clamp(600px, 65vw, 820px); }
.homePage .heroArt::after { background: linear-gradient(90deg, #171816d9 0%, #17181691 32%, #17181628 70%, #17181608 100%), linear-gradient(0deg,#171816b8 0%,transparent 32%); }
.homePage .heroCopy { max-width: 1000px; padding-top: clamp(60px, 9vw, 138px); }
.homePage .heroCopy h1 { max-width: 12ch; font-size: clamp(48px, 6.2vw, 98px); line-height: 1.01; letter-spacing: -.055em; }
.homePage .heroCopy p { max-width: 44ch; font-size: clamp(16px, 1.4vw, 20px); }
.homePage .heroCopy .btn { background: #c4a37f; border-color: #c4a37f; }
.homePage .heroCopy .btn:hover { background: #d2b28e; border-color: #d2b28e; color: #211f1c; }
.homePage .heroCopy .btn.secondary { color: #fff; border-color: #ffffffbb; background: #16171620; }
.homePage .heroCopy .btn.secondary:hover { background: #ffffff20; }
.heroBottom { border-color: #ffffff58; }
.heroProof > div { font-size: 13px; }
.homePage .heroArt .artlabel { border-radius: 999px; font-size: 10px; }
.heroVideoControl button { border-radius: 999px; }

/* Open, image-first sections and project cards. */
.section { padding-block: clamp(64px, 8.2vw, 128px); }
.section + .section { border-top-color: #ebe8e2; }
.intro { margin-bottom: clamp(28px, 4vw, 52px); gap: clamp(22px, 4vw, 64px); }
.intro h2 { max-width: 16ch; }
.intro p { font-size: 16px; color: #696762; }
.directionBand { padding-block: clamp(56px, 7vw, 100px); }
.directionRail { grid-auto-columns: clamp(205px, 20vw, 300px); gap: 14px; padding-bottom: 14px; }
.railCard { aspect-ratio: 4/5; }
.railCopy { padding: clamp(16px, 2vw, 25px); }
.railCopy h3 { font-size: clamp(20px, 1.8vw, 28px); }
.editorial, .dashboard, .homeEditorial { padding-block: clamp(64px, 8vw, 120px); }
.editorGrid { grid-template-rows: clamp(260px, 28vw, 420px) clamp(190px, 20vw, 300px); gap: 14px; }
.editorCard { border-radius: 0; }
.editorCard::after { background: linear-gradient(0deg,#11120fd9 0%,#11120f36 55%,transparent 100%); }
.editorCopy { left: clamp(18px, 2.4vw, 34px); right: clamp(18px, 2.4vw, 34px); bottom: clamp(18px, 2.4vw, 34px); }
.editorCopy h3 { font-size: clamp(24px, 2.8vw, 40px); }
.homeFeature .visual { border-radius: 0; }
.homeFeature .visual img, .miniArticles .visual img, .editorCard .visual img, .railCard .visual img { transition: transform .55s cubic-bezier(.2,.65,.25,1); }
.tile { border-radius: 0; box-shadow: none; border-color: #e8e5df; }
.tile.image { border: 0; background: transparent; }
.tile.image .tilebody { padding: 20px 2px 0; }
.tile .visual { border-radius: 0; }
.tile h3 { font-weight: 500; }
.miniArticles > a { background: transparent; border-bottom: 1px solid #e5e2dc; }
.miniArticles > a > div:last-child { padding: 14px 2px 20px; }
.miniArticles h3 { font-size: 18px; }
.proofs { border-color: #dedbd5; }
.proof { padding: clamp(18px, 2.4vw, 32px); }
.proof b { font-size: clamp(24px, 2.6vw, 36px); }
.homePage .ctaPanel { padding: clamp(32px, 5vw, 68px); background: #2a2a27; }
.ctaPanel { border-radius: 0; }

/* Interior pages use brighter, full-bleed project photography and calmer cards. */
#app:not([data-page=home]) { background: var(--paper); }
#app:not([data-page=home]) .section { padding-block: clamp(52px, 7vw, 100px); }
#app:not([data-page=home]) .subhero { max-width: none; width: 100%; min-height: clamp(430px, 50vw, 680px); padding-inline: max(var(--space), calc((100vw - var(--max)) / 2)); }
#app:not([data-page=home]) .subhero h1 { font-size: clamp(42px, 6vw, 88px); max-width: 13ch; }
#app:not([data-page=home]) .subhero p { font-size: clamp(16px, 1.35vw, 19px); }
#app:not([data-page=home]) .subhero:after { background: linear-gradient(90deg,#171816d9 0%,#17181683 38%,#17181612 100%),linear-gradient(0deg,#17181647,transparent 35%); }
#app:not([data-page=home]) .tile { background: #fff; border-color: #ebe8e2; border-radius: 0; }
#app:not([data-page=home]) .tile.image { background: transparent; border: 0; }
#app:not([data-page=home]) .tile .tilebody { padding: 18px 1px 4px; }
#app:not([data-page=home]) .tile .visual { aspect-ratio: 16 / 10; border-radius: 0; }
#app:not([data-page=home]) .ctaPanel { border-radius: 0; background: #292a27; }
#app:not([data-page=home]) .tag { border-radius: 999px; background: #fff; }
.productionHero { min-height: min(800px, calc(100svh - 76px)); }

/* Independent editorial pages, forms, and article templates. */
.hero, .mediaHero, .caseHero, .listingHero, .articleHero { border-radius: 0; }
.mediaHero, .caseHero { min-height: clamp(480px, 58vw, 760px); }
.subhero, .pageHero { background-color: #282825; }
.grid { gap: clamp(14px, 1.7vw, 24px); }
.formgrid { gap: 18px; }
input:not([type=checkbox]), select, textarea { border-radius: 0; background: #fff; border-color: #d9d6d0; min-height: 50px; font-size: 16px; }
textarea { min-height: 130px; }
.check { font-size: 14px; }
.notice { border-radius: 0; }
.faq details { border-color: #e2dfd8; }
.footer { background: #282925; }
.footergrid { gap: clamp(20px, 3vw, 42px); }
.skip:focus { z-index: 100; }

@media (max-width: 920px) {
  .homePage .hero { min-height: 660px; }
  .homePage .heroCopy { padding-bottom: 150px; }
  .editorGrid { grid-template-rows: 240px 210px; }
  .directionRail { grid-auto-columns: clamp(190px, 38vw, 260px); }
  #app:not([data-page=home]) .subhero { min-height: 500px; padding-inline: var(--space); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topinner { min-height: 66px; }
  .homePage .hero { min-height: min(760px, calc(100svh - 66px)); }
  .homePage .heroCopy { padding-inline: var(--space); padding-top: 70px; padding-bottom: 170px; }
  .homePage .heroCopy h1 { font-size: clamp(42px, 11vw, 62px); }
  .homePage .heroCopy p { font-size: 16px; }
  .heroBottom { left: var(--space); right: var(--space); padding-block: 15px 18px; }
  .heroProof > div { font-size: 11px; white-space: normal; }
  .section { padding-block: 60px; }
  .editorGrid { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(220px, 66vw)); }
  .editor0, .editor1 { grid-row: auto; grid-column: auto; }
  .miniArticles { gap: 14px; }
  .homePage .ctaPanel { padding: 24px; }
  #app:not([data-page=home]) .subhero { min-height: 460px; padding: 34px var(--space); }
  #app:not([data-page=home]) .subhero h1 { font-size: clamp(38px, 10vw, 56px); }
  .mediaHero, .caseHero { min-height: 500px; }
  .formgrid { grid-template-columns: 1fr; }
  .formgrid .full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* V15 palette: white, graphite, and light gray. */
:root {
  --ink: #252525;
  --paper: #fff;
  --white: #fff;
  --wood: #555;
  --line: #e6e6e6;
  --sage: #555;
  --muted: #777;
}
body, html { background: #fff; color: #252525; }
.eyebrow, small, .muted, .intro p, .railNote { color: #777; }
.brand i { color: #555; }
.nav a:hover, .nav a[aria-current=page] { color: #555; }
.btn, .top .btn { background: #252525; border-color: #252525; color: #fff; }
.btn:hover, .top .btn:hover { background: #4a4a4a; border-color: #4a4a4a; color: #fff; }
.btn.secondary { color: #252525; border-color: #aaa; }
.btn.secondary:hover { background: #f3f3f3; border-color: #777; color: #252525; }
.top { background: rgba(255,255,255,.97); border-color: #e8e8e8; }
.section + .section, .proofs, .proof + .proof, .faq details { border-color: #e6e6e6; }
.homePage .heroCopy .eyebrow { color: #f1f1f1; }
.homePage .heroCopy .btn { background: #fff; border-color: #fff; color: #252525; }
.homePage .heroCopy .btn:hover { background: #ededed; border-color: #ededed; color: #252525; }
.homePage .heroCopy .btn.secondary { background: #15151528; color: #fff; border-color: #ffffffbd; }
.heroProof span { color: #e5e5e5; }
.heroBottom { border-color: #ffffff5c; }
.homePage .heroArt .artlabel { background: #1119; border-color: #ffffff55; color: #fff; }
.homePage .ctaPanel, #app:not([data-page=home]) .ctaPanel { background: #292929; }
#app:not([data-page=home]) .dark { background: #f5f5f5; color: #252525; }
#app:not([data-page=home]) .dark .tile { background: #fff; color: #252525; border-color: #e6e6e6; }
#app:not([data-page=home]) .dark .tile p,
#app:not([data-page=home]) .dark .intro p,
#app:not([data-page=home]) .dark .tile .muted { color: #707070; }
#app:not([data-page=home]) .dark .tile .arrow { color: #555; }
#app:not([data-page=home]) .subhero .eyebrow,
.productionHeroContent .eyebrow { color: #e9e9e9; }
.notice { background: #f3f3f3; border-left-color: #555; color: #4f4f4f; }
.tag, .tab { border-color: #dedede; }
.tab.active, .tab:hover { background: #252525; color: #fff; border-color: #252525; }
input:not([type=checkbox]), select, textarea { border-color: #d8d8d8; }

/* CTA panel follows the supplied FORMA reference image. */
.ctaPanel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 220px;
  padding: clamp(34px, 5vw, 68px);
  background: #292929;
  color: #f7f7f7;
  border-radius: 0;
}
.ctaPanel h2 { color: #f7f7f7; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; }
.ctaPanel p { color: #d2d2d2; font-size: clamp(15px, 1.2vw, 17px); margin-top: 10px; }
.ctaPanel .btn,
.homePage .ctaPanel .btn,
#app:not([data-page=home]) .ctaPanel .btn {
  flex: 0 0 auto;
  min-height: 50px;
  padding-inline: 26px;
  background: #d8c1a0;
  color: #202020;
  border-color: #d8c1a0;
}
.ctaPanel .btn:hover,
.homePage .ctaPanel .btn:hover,
#app:not([data-page=home]) .ctaPanel .btn:hover {
  background: #e4d2b8;
  border-color: #e4d2b8;
  color: #202020;
}
@media (max-width: 700px) {
  .ctaPanel { align-items: flex-start; flex-direction: column; min-height: 0; gap: 22px; }
}

/* Shared navigation behavior and appearance for static entry pages. */
.top .menu {
  color: #252525;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
@media (max-width: 920px) {
  .top .menu { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  body > .top .topinner > nav.nav { display: none !important; }
  body > .top .topinner > nav.nav.open { display: flex !important; }
  .top .nav.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 22px var(--space);
    flex-direction: column !important;
    align-items: stretch;
    gap: 16px;
    color: #252525;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 12px 25px #00000010;
  }
  .top .nav.open a { display: block; color: #252525; }
  .top .nav.open a:hover { color: #666; }
}

/* Concept-led cards for the 11 catalog directions. */
.directionTile { padding: 0; border: 0; background: transparent; gap: 0; }
.directionTile .visual { width: 100%; aspect-ratio: 16 / 10; margin: 0; background: #f0f0f0; overflow: hidden; }
.directionTile .visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.65,.25,1); }
.directionTile:hover .visual img { transform: scale(1.035); }
.directionTile .tilebody { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 18px 0 24px; }
.directionTile h2 { margin: 0; font-size: clamp(21px, 2vw, 29px); line-height: 1.16; }
.directionTile ul { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; color: #707070; font-size: 14px; line-height: 1.7; }
.directionTile li { break-inside: avoid; padding-right: 4px; }
.directionTile span { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; }
@media (max-width: 620px) { .directionTile .tilebody { padding: 15px 0 24px; } .directionTile ul { font-size: 13px; } }

/* Direction index: generated concept visuals, separate from the completed-project portfolio. */
.direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 4vw, 56px) 24px; }
.direction-grid .tile { padding: 0 0 22px; border: 0; border-bottom: 1px solid #e8e5df; background: transparent; gap: 12px; }
.directionVisual { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 7px; overflow: hidden; background: #f0efec; }
.directionVisual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.direction-grid .tile:hover .directionVisual img { transform: scale(1.025); }
.directionVisual span { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(255,255,255,.92); color: #272727; font-size: 10px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.direction-grid .tile h2 { font-size: clamp(26px, 3.2vw, 46px); }
@media (max-width: 760px) { .direction-grid { grid-template-columns: 1fr; gap: 28px; } .direction-grid .tile h2 { font-size: clamp(27px, 8vw, 38px); } .directionVisual { aspect-ratio: 16 / 10; } }

/* Shared editorial heading scale: same hierarchy on every page. */
:is(main, #app) h2 { font-size: 36px !important; line-height: 1.16; }
:is(main, #app) h3 { font-size: 24px !important; line-height: 1.3; }
@media (max-width: 760px) { :is(main, #app) h2 { font-size: 28px !important; } :is(main, #app) h3 { font-size: 20px !important; } }

/* Shared pill controls and horizontal action groups across all page layouts. */
button, .btn { border-radius: 999px !important; }
.btn, button.btn, .top .btn { min-height: 48px !important; align-items: center; justify-content: center; }
.homePage .heroCopy .rowflex { display: flex; grid-template-columns: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.homePage .heroCopy .btn { width: auto; min-height: 48px; flex: 0 0 auto; }

/* Direction-card actions: align every card CTA to the row baseline. */
.direction-grid .tile { height: 100%; }
.direction-grid .tile > span:last-child { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: fit-content; min-height: 48px; margin-top: auto; padding: 10px 20px; border: 1px solid #292a27; border-radius: 999px; background: transparent; color: #292a27; font-size: 14px; font-weight: 550; line-height: 1.3; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.direction-grid .tile:hover > span:last-child { background: #292a27; border-color: #292a27; color: #fff; }
@media (max-width: 760px) { .direction-grid .tile > span:last-child { margin-top: 4px; } }

/* Full-width site layout across standalone and app-rendered pages. */
:root { --max: none; --space: clamp(16px, 2.5vw, 40px); }
.wrap, #app:not([data-page=home]) .wrap { width: 100%; max-width: none !important; margin-inline: auto; }
#app[data-page=direction] .subhero, #app[data-page=case] .subhero, #app[data-page=company] .subhero { width: 100%; max-width: none !important; }
.engLead, .engTitle, .eng .layout, .eng .bottom, .eng .action, .eng .note, .engHeadline { width: 100%; max-width: none !important; }


/* V27: video-backed heroes span the viewport on every page. */
.wrap > .mediaHero:has(> video.heroMedia) { width: calc(100% + var(--space) + var(--space)); max-width: none !important; margin-left: calc(-1 * var(--space)); margin-right: calc(-1 * var(--space)); padding-inline: var(--space); }
.mediaHero:has(> video.heroMedia) { display: block; position: relative; min-height: clamp(520px, 66vw, 820px); padding-block: clamp(56px, 9vw, 132px); }
.mediaHero:has(> video.heroMedia)::before { z-index: 0; background: linear-gradient(90deg, rgba(25,25,24,.82) 0%, rgba(25,25,24,.55) 42%, rgba(25,25,24,.08) 100%), linear-gradient(0deg, rgba(25,25,24,.35), transparent 35%); }
.mediaHero:has(> video.heroMedia) .heroMedia { inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 1; }
.mediaHero:has(> video.heroMedia) .heroText { width: min(100%, 820px); padding-block: clamp(36px, 6vw, 84px); }
.mediaHero:has(> video.heroMedia) .heroMediaLabel { z-index: 1; }
@media (max-width: 760px) { .mediaHero:has(> video.heroMedia) { min-height: 560px; padding-block: 42px; } .mediaHero:has(> video.heroMedia) .heroText { padding-block: 32px; } }

/* Prevent viewport-width media sections from creating a horizontal page scrollbar. */
html, body { overflow-x: clip; }


/* V28: add image-led treatment to solution, knowledge, and feature cards. */
.tileMedia { position: relative; display: block; width: calc(100% + 48px); aspect-ratio: 16 / 9; margin: -24px -24px 4px; overflow: hidden; background: #ebe8e2; }
.tileMedia img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tile:hover .tileMedia img { transform: scale(1.025); }
.tileMedia span { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; background: rgba(255,255,255,.92); color: #282825; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
/* Remove floating image badges throughout the site while preserving captions and card text. */
.tileMedia > span,
.portfolioCardMedia > span,
.realCaseImage > span,
.artlabel,
.heroMediaLabel,
.compareLabel { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tileMedia img { transition: none; } .tile:hover .tileMedia img { transform: none; } }


/* V29: structured, searchable FORMA knowledge base. */
.knowledgeTools { display: grid; grid-template-columns: minmax(240px,1fr) minmax(220px,.45fr) auto; gap: 14px; align-items: center; margin: clamp(24px,3vw,42px) 0 clamp(22px,2.5vw,36px); padding: 18px; background: #f5f3ef; border: 1px solid #e7e4de; }
.knowledgeTools input, .knowledgeTools select { min-height: 48px; border: 1px solid #d8d4cd; border-radius: 999px; background: #fff; padding: 0 18px; color: #252525; }
.knowledgeCount { color: #686862; font-size: 13px; white-space: nowrap; }
.knowledgeGrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: clamp(16px,1.6vw,26px); }
.knowledgeGrid > [hidden] { display: none !important; }
.knowledgeGrid .tile { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; border: 1px solid #e7e4de; background: #fff; min-width: 0; }
.knowledgeGrid .tileMedia { width: 100%; aspect-ratio: 16 / 10; margin: 0; }
.knowledgeGrid .tilebody { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: clamp(16px,1.6vw,24px); }
.knowledgeGrid .tilebody .eyebrow { color: #77766f; font-size: 10px; letter-spacing: .12em; }
.knowledgeGrid .tilebody h2, .knowledgeGrid .tilebody h3 { font-size: clamp(18px,1.35vw,23px); line-height: 1.25; letter-spacing: -.025em; }
.knowledgeGrid .tilebody p { color: #65655f; font-size: 14px; line-height: 1.55; }
.knowledgeGrid .tilebody .arrow { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; }
.knowledgeEmpty { padding: 28px; color: #65655f; border: 1px dashed #d8d4cd; }
@media (max-width: 1250px) { .knowledgeGrid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 920px) { .knowledgeTools { grid-template-columns: 1fr 1fr; } .knowledgeCount { grid-column: 1/-1; } .knowledgeGrid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .knowledgeTools { grid-template-columns: 1fr; padding: 14px; } .knowledgeCount { grid-column: auto; } .knowledgeGrid { grid-template-columns: 1fr; } .knowledgeGrid .tileMedia { aspect-ratio: 16 / 9; } }

.caseEditorial{display:grid;grid-template-columns:minmax(190px,.45fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);padding:clamp(28px,4vw,54px) 0;border-bottom:1px solid var(--line)}.caseEditorial .eyebrow{margin-bottom:12px}.caseEditorial h2{font-size:clamp(24px,3vw,38px);max-width:16ch}.caseEditorial p{max-width:72ch;color:var(--muted);font-size:clamp(15px,1.3vw,18px)}.caseHero .caseStatus{border-radius:999px}.casePhotoGallery figure{position:relative}.casePhotoGallery figcaption{font-size:12px;color:var(--muted);padding:8px 2px}@media(max-width:700px){.caseEditorial{grid-template-columns:1fr;gap:14px}}
