.grow-story {
  --ink: #081728;
  --mint: #00b77f;
  --amber: #fcc04e;
  --muted: #bdcdd5;
  --story-line: #84b3be3d;
  --home-nav: 110px;
  --opening-nav: 96px;
  scroll-padding-top: var(--home-nav);
  scroll-behavior: auto;
}
.grow-story .story-page { background: #081728; color: #f3f7fa; }
.story-page::before { content: ''; position: fixed; inset: 0 0 auto; height: var(--home-nav); background: #081728; z-index: 49; pointer-events: none; }
.story-page .story-section {
  display: grid; align-content: center; padding-block: clamp(28px,4.4svh,55px);
  min-height: calc(100svh - var(--home-nav)); border-bottom: 1px solid var(--story-line);
  background: #081728;
}
.story-page .story-intro { min-height: calc(100svh - var(--opening-nav)); background: radial-gradient(ellipse at 84% 52%,#0a383e 0,transparent 59%), #06111e; }
.story-page .wrap { min-width: 0; }
.story-page .story-intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px,5vw,80px); }
.story-page .eyebrow { color: #62dcae; font-size: .7rem; letter-spacing: .13em; margin-bottom: 15px; }
.story-page h1 { font-size: clamp(3.6rem,5.7vw,5.5rem); line-height: 1.025; letter-spacing: -.065em; margin-bottom: 22px; }
.story-page h2 { font-size: clamp(2.4rem,3.9vw,3.8rem); line-height: 1.065; }
.story-page h1 em, .story-page h2 em { color: #00c389; }
.story-page .story-intro-copy > p:not(.eyebrow) { font-size: clamp(.94rem,1.12vw,1.1rem); line-height: 1.68; max-width: 55ch; color: #c9d6dd; margin: 0 0 14px; }
.story-page .story-actions { display: flex; gap: 13px 23px; align-items: center; flex-wrap: wrap; margin-top: 23px; }
.story-page .story-actions .button { padding: 11px 19px; min-height: 46px; background: linear-gradient(120deg,#00c389,#00b77f); line-height: 1.35; }
.story-page .story-actions .button span { font-size: 1.2rem; line-height: 1; }
.story-page .story-text-link, .story-page .office-contact a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 620; font-size: .86rem; text-decoration: underline; text-underline-offset: .28em; }
.story-page .story-text-link span { color: #62dcae; }
.story-page .brand-tree {
  position: relative; display: grid; align-content: center; justify-items: center; width: 100%; isolation: isolate;
  min-height: clamp(335px,31vw,456px); padding: 35px 4%; overflow: hidden; border: 1px solid #527a875e;
  border-radius: 24px; background: radial-gradient(ellipse at 50% 38%,#214447 0%,#102e38 37%,#0b1c2b 85%);
  box-shadow: inset 0 1px #b9d6de24, 0 8px #020e1b, 0 32px 55px -31px #000a;
}
.story-page .tree-grid { position: absolute; inset: 44% -20% -41%; z-index: -1; transform: perspective(320px) rotateX(52deg); background-image: linear-gradient(#669d9f25 1px,transparent 1px),linear-gradient(90deg,#669d9f25 1px,transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(transparent,#000 42%,transparent); }
.story-page .tree-shadow { position: absolute; inset: 26% 20% 13%; background: radial-gradient(ellipse,#00101dcc,transparent 69%); transform: translateY(20%); z-index: -1; }
.story-page .parent-mark, .story-page .tree-brands > div {
  display: grid; place-items: center; border: 1px solid #69948f88; background: linear-gradient(135deg,#24444c,#102731 80%);
  border-radius: 14px; box-shadow: 0 6px #051720, 2px 10px #041421, 0 16px 24px #03141b90, inset 0 1px #d5fce52b;
}
.story-page .parent-mark { z-index: 1; width: 62%; max-width: 295px; min-height: 95px; padding: 9px 20px; border-color: #b69a638a; }
.story-page .parent-mark img { width: 95%; max-height: 108px; object-fit: contain; }
.story-page .tree-branches { position: relative; display: flex; justify-content: space-between; width: 62%; height: clamp(43px,5.5vw,76px); }
.story-page .tree-branches:before, .story-page .tree-branches:after, .story-page .tree-branches i { content: ''; position: absolute; background: #398e7b; }
.story-page .tree-branches:before { left: 50%; top: 0; width: 2px; height: 51%; }
.story-page .tree-branches:after { left: 0; right: 0; top: 50%; height: 2px; }
.story-page .tree-branches i { top: 50%; bottom: 0; width: 2px; left: 0; }
.story-page .tree-branches i:nth-child(2) { left: 50%; }
.story-page .tree-branches i:last-child { left: 100%; }
.story-page .tree-brands { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 95%; gap: 10px; }
.story-page .tree-brands > div { border-radius: 9px; min-height: clamp(61px,6vw,88px); padding: 12px; }
.story-page .tree-brands img { width: 100%; max-height: 48px; object-fit: contain; }
.story-page .story-heading { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: clamp(19px,2.9svh,32px); }
.story-page .story-heading > p { max-width: 43ch; color: #bdcdd5; font-size: .94rem; line-height: 1.65; }
.story-page .family-section { background: radial-gradient(ellipse at 92% 6%,#11333f,transparent 58%),#0a1b2a; }
.story-page .family-tabs { display: inline-flex; align-items: center; flex-wrap: wrap; padding: 4px; border: 1px solid var(--story-line); border-radius: 11px; background: #091a2a; gap: 4px; }
.story-page .family-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 7px 17px; color: #c9d6dd; font-size: .9rem; font-weight: 640; border: 1px solid transparent; border-radius: 7px; }
.story-page .family-tabs a > span { font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .86; }
.story-page .family-tabs [aria-selected="true"] { background: #0c5448; border-color: #378b73; color: #dcffed; box-shadow: inset 0 1px #97e0b62b; }
.story-page .family-stage-name { font-size: 1rem; color: #e3ecef; margin-block: 17px 11px; letter-spacing: -.025em; }
.story-page .story-brand-grid { display: grid; grid-template-columns: repeat(var(--count),minmax(0,1fr)); gap: clamp(11px,1.5vw,22px); align-items: stretch; }
.story-page .story-brand, .story-page .neighbourhood-project {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #4c738266;
  border-radius: 14px; background: linear-gradient(145deg,#163044,#102033 88%); box-shadow: 0 6px #04111b, 0 18px 28px -18px #000a;
}
.story-page .story-brand-art { background: #091a2c; border-bottom: 1px solid var(--story-line); overflow: hidden; }
.story-page .story-brand-art img { width: 100%; height: clamp(105px,14.5svh,157px); object-fit: contain; transition: transform .32s ease; }
.story-page .story-brand-copy { padding: 14px clamp(13px,1.4vw,20px) 8px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.story-page .story-brand-copy h4 { margin: 0; width: 100%; }
.story-page .story-brand-copy h4 img { width: min(100%,160px); height: 45px; object-fit: contain; object-position: left center; }
.story-page .story-brand-copy p, .story-page .neighbourhood-copy p, .story-page .story-products a p { color: #c9d6dd; font-size: .88rem; line-height: 1.55; }
.story-page .story-brand-copy p { margin: 8px 0 11px; }
.story-page .brand-status { margin-top: auto; color: #b7dbce; font-size: .77rem; padding-block: 1px 7px; }
.story-page .brand-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; border-top: 1px solid var(--story-line); font-size: .8rem; font-weight: 650; }
.story-page .brand-action b, .story-page .story-products > a > span { line-height: 1; color: #62dcae; font-size: 1.15rem; font-weight: 550; }
.story-page .family-all { margin-top: 13px; }
.story-page .story-work { background: radial-gradient(ellipse at 18% 66%,#153641,transparent 56%),#081728; }
.story-page .story-work-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(18px,3vw,43px); }
.story-page .neighbourhood-art { display: grid; place-items: center; height: clamp(170px,25svh,280px); overflow: hidden; background: radial-gradient(ellipse at 50% 60%,#1c444b,transparent 66%),#0a1c2c; border-bottom: 1px solid var(--story-line); }
.story-page .neighbourhood-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transform: scale(1.36); filter: drop-shadow(5px 12px 8px #02101999); }
.story-page .neighbourhood-copy { display: grid; gap: 9px; padding: 15px 24px 8px; }
.story-page .neighbourhood-copy h3 img { width: 139px; height: 37px; object-fit: contain; object-position: left; }
.story-page .story-products { display: grid; grid-template-rows: repeat(3,1fr) auto; gap: 12px; }
.story-page .story-products > a:not(.all-software) { display: grid; grid-template-columns: clamp(74px,8.4vw,123px) minmax(0,1fr) 19px; gap: clamp(13px,1.6vw,24px); align-items: center; padding: 7px 14px 7px 7px; border: 1px solid var(--story-line); background: #102435; border-radius: 11px; box-shadow: 0 4px #03121e; }
.story-page .product-scene { width: 100%; height: 92px; object-fit: contain; border-radius: 8px; background: #010f18; }
.story-page .story-products h3 img { width: 111px; max-height: 30px; object-fit: contain; object-position: left; }
.story-page .story-products h3 { margin: 0 0 5px; }
.story-page .story-products .move-name { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.story-page .story-products .move-name img { width: 30px; height: 30px; background: #79a6ad; padding: 2px; border-radius: 4px; }
.story-page .story-products small { display: inline-block; color: #f3c679; font-size: .75rem; }
.story-page .all-software { justify-self: start; }
.story-page .story-principles { background: radial-gradient(ellipse at 73% 10%,#12303d,transparent 55%),#0b1d2b; }
.story-page #story-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.story-page .story-value { display: grid; grid-template-columns: minmax(78px,.62fr) minmax(0,1.38fr); gap: 15px; align-items: start; padding: 17px; border: 1px solid var(--story-line); border-radius: 13px; background: #102536; box-shadow: 0 5px #04131e; }
.story-page .value-illustration { overflow: hidden; border: 1px solid #648b9340; border-radius: 8px; background: #081728; box-shadow: 2px 4px #051521; }
.story-page .value-illustration > svg { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.story-page .story-value h3, .story-page #story-steps h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 6px; letter-spacing: -.035em; }
.story-page .story-value p, .story-page #story-steps p, .story-page .manama-card p, .story-page .manama-card address { color: #c9d6dd; font-size: .88rem; line-height: 1.57; }
.story-page .story-how { background: radial-gradient(ellipse at 83% 60%,#11353b,transparent 60%),#081728; }
.story-page .how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px,4vw,64px); }
.story-page #story-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.story-page #story-steps li { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 10px 0; }
.story-page #story-steps li:not(:last-child)::after { content: ''; position: absolute; left: 26px; top: calc(50% + 24px); height: calc(100% - 45px); width: 1px; background: #46726d; }
.story-page .step-sign { display: grid; place-items: center; width: 52px; height: 49px; border: 1px solid #549d8c; border-radius: 10px; color: #9eeac6; background: linear-gradient(145deg,#25564e,#12313b); box-shadow: 2px 4px #051720; }
.story-page .step-sign svg { width: 31px; height: 31px; }
.story-page .manama-card { padding: clamp(20px,2.4vw,34px); border: 1px solid #618b896b; border-radius: 16px; background: linear-gradient(140deg,#183b40,#102033); box-shadow: 0 6px #04121e; }
.story-page .office-name { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--story-line); padding-bottom: 11px; margin-bottom: 14px; }
.story-page .office-name img { width: 100px; height: 41px; object-fit: contain; }
.story-page .office-name span, .story-page .company-cr { color: #b1d6c4; font-size: .8rem; }
.story-page .manama-card h3 { font-size: clamp(1.5rem,2.3vw,2rem); margin-bottom: 9px; }
.story-page .manama-card address { font-style: normal; margin-top: 10px; }
.story-page .office-contact { display: flex; flex-wrap: wrap; gap: 0 17px; border-top: 1px solid var(--story-line); }
.story-page .manama-card .story-actions { margin-top: 8px; }
.story-page .footer { display: grid; align-content: center; min-height: calc(100svh - var(--home-nav)); background: #061320; padding-block: 35px; }
.story-page .footer a, .story-page .footer button { min-height: 44px; align-content: center; }
.story-page :is(a,button,summary):focus-visible { outline: 3px solid #fcc04e; outline-offset: 3px; }
.story-page .site-nav .mega-menu { max-height: calc(100dvh - var(--home-nav) - 12px); overflow: auto; overscroll-behavior: contain; }
@media (hover:hover) and (pointer:fine) {
  .story-page :is(.story-brand,.neighbourhood-project,.story-products > a):is(:hover,:focus-visible) { border-color: #4aaf91; }
  .story-page .story-brand:is(:hover,:focus-visible) .story-brand-art img { transform: scale(1.05); }
}
.grow-story[data-paused="true"] .story-brand-art img { transform: none; transition: none; }
@media (min-width:701px) and (max-width:1000px) {
  .grow-story { --home-nav: 102px; --opening-nav: 88px; }
  .story-page .story-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-page .story-intro-copy > p:not(.eyebrow) { max-width: 66ch; }
  .story-page .brand-tree { min-height: 265px; padding-block: 22px; }
  .story-page .parent-mark { width: 215px; }
  .story-page .tree-brands { width: 80%; }
  .story-page .tree-branches { width: 54%; height: 40px; }
  .story-page .story-heading > p { max-width: 32ch; }
  .story-page .story-brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .story-page .story-brand-art img { height: 95px; }
  .story-page .story-brand-copy { padding: 9px 14px 5px; }
  .story-page .story-brand-copy h4 img { height: 36px; }
  .story-page .story-brand-copy p { margin-block: 5px; }
  .story-page #story-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-page .story-work-grid { gap: 17px; }
  .story-page .story-products > a:not(.all-software) { grid-template-columns: 62px 1fr 12px; gap: 9px; }
}
@media (min-width:1001px) and (max-height:850px) {
  .story-page .story-section { padding-block: 19px; }
  .story-page .family-section { padding-block: 13px; }
  .story-page .family-stage-name { margin-block: 8px 7px; }
  .story-page .family-all { margin-top: 4px; }
  .story-page .story-heading { margin-bottom: 15px; }
  .story-page .story-heading .eyebrow { margin-bottom: 9px; }
  .story-page h2 { font-size: clamp(2.15rem,3.2vw,2.8rem); }
  .story-page .story-brand-art img { height: 92px; }
  .story-page .story-brand-copy { padding-block: 10px 4px; }
  .story-page .product-scene { height: 75px; }
  .story-page .story-value { padding: 13px; }
  .story-page .manama-card { padding-block: 18px; }
}
@media (max-width:700px) {
  .grow-story { --home-nav: 87px; --opening-nav: 77px; }
  .story-page .story-section { padding-block: 32px; }
  .story-page .story-intro-grid, .story-page .story-work-grid, .story-page .how-grid { grid-template-columns: 1fr; gap: 25px; }
  .story-page h1 { font-size: clamp(2.65rem,11.5vw,4.1rem); margin-bottom: 15px; }
  .story-page h2 { font-size: clamp(2.1rem,8.3vw,3rem); }
  .story-page .story-intro-copy > p:not(.eyebrow) { font-size: .94rem; }
  .story-page .brand-tree { min-height: 224px; padding: 21px 4%; border-radius: 16px; }
  .story-page .parent-mark { width: 56%; min-height: 63px; padding: 5px 15px; }
  .story-page .parent-mark img { max-height: 61px; }
  .story-page .tree-brands { gap: 7px; }
  .story-page .tree-brands > div { padding: 6px; min-height: 47px; }
  .story-page .tree-branches { height: 36px; }
  .story-page .story-heading { display: block; margin-bottom: 18px; }
  .story-page .story-heading > p { margin-top: 13px; }
  .story-page .story-brand-grid, .story-page #story-values { grid-template-columns: 1fr; gap: 14px; }
  .story-page .family-tabs { gap: 2px; }
  .story-page .family-tabs a { padding-inline: 12px; }
  .story-page .story-brand { display: grid; grid-template-columns: minmax(70px,29%) minmax(0,1fr); }
  .story-page .story-brand-art { display: grid; place-items: center; border-bottom: 0; border-inline-end: 1px solid var(--story-line); }
  .story-page .story-brand-art img { height: auto; }
  .story-page .story-brand-copy { padding: 11px 13px 4px; }
  .story-page .story-brand-copy h4 img { height: 37px; width: min(100%,140px); }
  .story-page .story-brand-copy p { margin-block: 6px; }
  .story-page .brand-status { padding-block: 0 4px; }
  .story-page .neighbourhood-copy { padding-inline: 18px; }
  .story-page .product-scene { height: 72px; }
  .story-page .story-products > a:not(.all-software) { grid-template-columns: 63px 1fr 12px; gap: 11px; }
  .story-page .story-value { grid-template-columns: minmax(73px,.65fr) minmax(0,1.35fr); padding: 14px; gap: 12px; }
  .story-page #story-steps li { padding-block: 14px; }
  .story-page .footer-main > :first-child, .story-page .footer-main > :last-child { grid-column: 1/-1; }
  .story-page .footer-bottom { flex-wrap: wrap; }
  .story-page .site-nav nav.open .mega-menu { position: static; max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion:reduce) {
  .story-page *, .story-page *::before, .story-page *::after { animation: none !important; transition: none !important; }
  .story-page .story-brand .story-brand-art img { transform: none; }
}
