/* Company page: extends the shared Ophyra visual system. */
html:has(body.company-story) { scroll-snap-type: y proximity; }
.company-story { --chapter-top: 82px; }
.company-story .site-shell {
  background: radial-gradient(ellipse 68% 600px at 50% 0, rgba(212,175,55,.065), transparent 100%), linear-gradient(180deg,#000 0%,#070707 50%,#050505 100%);
}
.company-story .topbar-nav [aria-current="page"] { color: var(--gold); }
.company-story .nav-drawer { border: 0; }
.company-story .company-story-main { padding: 0; }
.company-story.header-scroll-clip .company-story-main { clip-path: inset(max(var(--header-content-clip,0px),var(--chapter-content-clip,0px)) 0 var(--footer-content-clip,0px) 0); }
.company-chapters {
  position: fixed; top: var(--chapter-top); left: 50%; transform: translateX(-50%);
  display: flex; justify-content: center; gap: 30px; width: max-content; max-width: calc(100% - 32px); z-index: 32;
}
.company-chapters a {
  position: relative; display: block; padding: 12px 0 16px; text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .045em; color: #9b9b95; transition: color .2s;
}
.company-chapters a::after { content: ''; position: absolute; left: calc(50% - 2px); bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0; }
.company-chapters a:hover, .company-chapters a[aria-current="location"] { color: #edcf76; }
.company-chapters a[aria-current="location"]::after { opacity: 1; }
.story-section { min-height: 100svh; position: relative; display: flex; align-items: center; justify-content: center; padding: 166px 64px 100px; scroll-snap-align: start; outline: none; }
.story-inner { width: min(100%,740px); margin-inline: auto; text-align: center; }
.story-inner-wide { width: min(100%,1000px); }
.company-story h1, .company-story h2 { margin: 0 auto 25px; font-family: var(--ophyra-font-display); font-size: clamp(32px,3.25vw,44px); font-weight: 620; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
.company-story h2 { font-size: clamp(29px,2.8vw,38px); }
.story-lead { margin: 0 auto 20px; max-width: 650px; font-size: 20px; line-height: 1.6; color: #dfdfdb; text-wrap: pretty; }
.story-copy { margin: 0 auto 19px; max-width: 650px; font-size: 16px; line-height: 1.85; color: #b0b0aa; text-wrap: pretty; }
.hero-copy { max-width: 620px; }
.company-story .cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; width: auto; min-width: 265px; min-height: 50px; padding: 12px 25px; font-size: 15px; border: 0; border-radius: 11px; box-shadow: none; }
.quiet-link { display: inline-flex; gap: 12px; align-items: center; color: #deded5; font-size: 13px; line-height: 1.6; text-decoration: none; }
.quiet-link:hover, .contact-email:hover, .community-note a:hover { color: var(--gold); }
.vision-points, .principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; margin: 46px auto 36px; }
.point-overline { display: block; color: #a5a18f; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; }
.company-story h3 { font-size: 20px; line-height: 1.3; font-weight: 540; letter-spacing: -.025em; margin: 0 0 13px; }
.vision-points p, .principles p { color: #a4a49f; font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.milestone { max-width: 670px; margin: 35px auto 20px; color: #a4a49f; font-size: 14px; line-height: 1.8; }
.milestone span { display: block; color: #e1cc8c; font-size: 11px; font-weight: 500; letter-spacing: .1em; margin-bottom: 8px; }
.principles { margin-top: 52px; margin-bottom: 0; }
.principle-number { display: block; margin-bottom: 25px; font-size: 12px; color: var(--gold); letter-spacing: .08em; }
.team-statement { margin: 31px auto 23px; color: #e1cc8c; font-size: 16px; line-height: 1.6; text-wrap: balance; }
.story-join { padding-top: 162px; padding-bottom: 112px; }
.open-roles { width: min(100%,580px); margin: 24px auto; }
.open-roles details { border: 0; margin-bottom: 8px; }
.open-roles summary { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 0; list-style: none; color: #e4e4df; font-size: 16px; cursor: pointer; }
.open-roles summary::-webkit-details-marker { display: none; }
.open-roles summary:hover, .open-roles details[open] summary { color: #e1cc8c; }
.role-toggle { width: 10px; flex: 0 0 10px; font-size: 15px; color: #c2a553; }
.role-toggle::after { content: '+'; }
.open-roles details[open] .role-toggle::after { content: '−'; }
.role-description { padding: 0 10px 12px; }
.role-description p { color: #a4a49f; font-size: 14px; line-height: 1.75; }
.application-note { margin: 24px auto 22px; color: #a4a49f; font-size: 13px; line-height: 1.7; }
.contact-email { display: block; width: fit-content; margin: 15px auto 0; font-size: 13px; color: #d4c28c; text-decoration: none; }
.community-note { margin-top: 32px; color: #96968e; font-size: 12px; line-height: 1.9; }
.community-note a { color: #d7d7ce; text-decoration: none; white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 90; padding: 14px; background: #f0cf73; color: black; }
.skip-link:focus { top: 12px; }
summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
@media (max-width: 860px) {
  html:has(body.company-story) { scroll-snap-type: none; }
  .company-story { --chapter-top: 65px; }
  .company-story .topbar { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); margin: 0; }
  .company-chapters { gap: 22px; }
  .company-chapters a { font-size: 11px; padding-top: 10px; }
  .story-section { min-height: 100svh; padding: 145px 26px 85px; }
  .company-story h1 { font-size: clamp(31px,7.6vw,40px); }
  .company-story h2 { font-size: clamp(28px,6.9vw,35px); }
  .story-lead { font-size: 18px; }
  .story-copy { font-size: 15px; line-height: 1.8; }
  .vision-points, .principles { gap: 28px; }
  .vision-points p, .principles p { font-size: 13px; }
  .company-story h3 { font-size: 18px; }
}
@media (max-width: 560px) {
  .company-chapters { gap: 19px; max-width: calc(100% - 24px); }
  .company-chapters a { font-size: 10px; letter-spacing: .015em; }
  .story-section { padding-inline: 24px; }
  .desktop-break { display: none; }
  .company-story .cta-btn { min-width: 0; width: min(100%,300px); font-size: 14px; }
  .vision-points, .principles { grid-template-columns: 1fr; max-width: 330px; gap: 30px; margin-top: 34px; }
  .point-overline { margin-bottom: 8px; }
  .company-story h3 { margin-bottom: 9px; font-size: 19px; }
  .vision-points p, .principles p { font-size: 14px; }
  .principle-number { margin-bottom: 12px; }
  .team-statement { font-size: 15px; }
  .open-roles summary { font-size: 14px; gap: 10px; }
  .role-description { padding-inline: 0; }
  .community-note { max-width: 240px; margin-inline: auto; }
}
@media (max-height: 700px) { .story-hero { padding-bottom: 100px; } }
@media (prefers-reduced-motion: reduce) { html:has(body.company-story) { scroll-behavior: auto; scroll-snap-type: none; } .company-story *, .company-story *::after { transition: none !important; animation: none !important; } }

/* Match the Creator page typography and give the story the shared page width. */
.company-story .story-section { padding-inline: 0; }
.company-story .story-inner { width: var(--ophyra-shell); max-width: 1180px; }
.company-story .story-inner > .eyebrow { width: 100%; max-width: none; margin-inline: auto; text-align: center; }
@media (min-width: 861px) {
  .company-story .story-hero { padding-block: 140px 180px; }
}
.company-story h1 { max-width: 1120px; font-size: clamp(32px,3.6vw,60px); font-weight: 690; line-height: .99; }
.company-story h2 { max-width: 1180px; font-size: clamp(38px,4vw,68px); font-weight: 690; line-height: .99; }
.company-story :is(h1,h2) br { display: none; }
.company-story :is(.story-lead,.story-copy,.hero-copy,.milestone) { max-width: var(--ophyra-copy); }
.company-story :is(.story-lead,.story-copy,.vision-points p,.principles p,.milestone,.team-statement,.role-description p,.application-note,.community-note) { font-size: clamp(17px,1.25vw,21px); line-height: 1.62; }
.company-story .open-roles { width: min(100%,1040px); }
.company-story .community-note { max-width: none; }
.company-story .desktop-break { display: none; }
@media (max-width: 860px) {
  .company-story h2 { font-size: clamp(34px,8vw,54px); line-height: 1.03; }
}

.company-story #vision .point-overline { color: var(--ophyra-turquoise); font-size: 16px; }

/* One row of disclosures with one full-width, centered description below. */
.company-story .story-join .story-inner > p { margin-inline: auto; }
.company-story .open-roles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; width: 100%; }
.company-story .role-trigger { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 4px; border: 0; background: transparent; color: var(--ophyra-turquoise); font-size: 17px; font-weight: 500; line-height: 1.5; text-align: center; cursor: pointer; }
.company-story .role-trigger[aria-expanded="true"] { color: var(--gold); }
.company-story .role-trigger .role-toggle { color: inherit; }
.company-story .role-trigger[aria-expanded="true"] .role-toggle::after { content: '−'; }
.company-story .role-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.company-story .open-roles .role-description { grid-column: 1 / -1; width: 100%; padding: 12px 0 20px; text-align: center; }
.company-story .role-description[hidden] { display: none; }
.company-story .role-description p { max-width: none; width: 100%; margin-inline: auto; text-align: center; }
@media (max-width: 560px) {
  .company-story .open-roles { gap: 12px 8px; }
  .company-story .role-trigger { flex-direction: column; gap: 6px; font-size: 14px; padding-inline: 0; }
}

/* Match Creator's full-screen track, timing and easing. */
@media (min-width: 861px) {
  .company-story.brands-snap-body .company-viewport { height: 100vh; width: 100%; overflow: hidden; position: relative; }
  .company-story.brands-snap-body .company-track { height: 500vh; width: 100%; transition: transform .95s cubic-bezier(.22,1,.36,1); }
  .company-story.brands-snap-body .story-section { height: 100vh; min-height: 100vh; overflow-y: auto; }
  .company-story.brands-snap-body .company-story-main { clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .company-story.brands-snap-body .company-track { transition: none; }
}
