/* Site-only styles on top of the Swasti design system */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-bg { position: absolute; inset: 0; background: var(--color-bg); background-image: var(--texture-grain); }

/* Image placeholders until real photos arrive */
.ph { background: var(--sand-100); }
.ph--a { background: linear-gradient(160deg, var(--stone-300), var(--stone-600)); }
.ph--b { background: linear-gradient(180deg, var(--stone-400) 0 60%, var(--stone-600) 60%); }

/* Footer: light, so the logo sits on cream as the brand rules require */
.sw-footer { background: var(--color-bg); color: var(--color-text-muted); border-top: 1px solid var(--color-border); }
.sw-footer a { color: var(--color-text); text-decoration: none; }
.sw-footer a:hover { color: var(--color-brand-text); }
.footer-inner { display: grid; gap: var(--space-5); justify-items: center; text-align: center; }
.footer-logo { height: 72px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-5); }
.sw-footer p { margin: 0; max-width: none; }

.contact-form { max-width: 760px; }

/* Mobile menu */
.menu { position: fixed; inset: 100px 0 0; z-index: 19; background: var(--color-bg); background-image: var(--texture-grain); padding: var(--space-6) var(--gutter); }
.menu nav { display: grid; gap: var(--space-2); }
.menu a { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); color: var(--color-text); text-decoration: none; padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); }
.menu a:hover { color: var(--color-brand-text); }
.sw-nav__menu[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.sw-nav__menu[aria-expanded="true"] span::after { content: ""; display: block; width: 20px; height: 1.5px; background: currentColor; transform: rotate(-90deg); }

/* Inner pages: the first section clears the fixed header */
.page-first { padding-top: calc(100px + var(--space-9)); }
@media (max-width: 768px) { .page-first { padding-top: calc(90px + var(--space-7)); } }
.company-photo { aspect-ratio: 16 / 7; border-radius: var(--radius-xl); }
@media (max-width: 768px) { .company-photo { aspect-ratio: 4 / 3; } }

/* Values: click a row to open it */
.values { border-top: 1px solid var(--color-border); }
.value { border-bottom: 1px solid var(--color-border); }
.value summary { list-style: none; display: grid; grid-template-columns: 5rem 1fr auto; align-items: baseline; gap: var(--space-4); padding-block: var(--space-6); cursor: pointer; }
.value summary::-webkit-details-marker { display: none; }
.value__num { font-size: var(--text-sm); color: var(--color-text-muted); }
.value__title { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); line-height: 1.1; }
.value summary:hover .value__title { color: var(--color-brand-text); }
.value__icon { position: relative; width: 18px; height: 18px; align-self: center; }
.value__icon::before, .value__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.value__icon::after { transform: rotate(90deg); }
.value[open] .value__icon::after { transform: rotate(0deg); }
.value summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.value p { margin: 0 0 var(--space-6) calc(5rem + var(--space-4)); max-width: 52ch; font-size: var(--text-lg); color: var(--color-text-muted); }
@media (max-width: 768px) {
  .value summary { grid-template-columns: 2.5rem 1fr auto; padding-block: var(--space-5); }
  .value__title { font-size: var(--text-xl); }
  .value p { margin-left: calc(2.5rem + var(--space-4)); font-size: var(--text-base); }
}

/* Company: one point at a time. The block is tall; its text stays pinned in the middle of
   the screen while you scroll, and each point comes into focus in turn (after lightshiprv.com). */
.reveal { position: relative; height: 320vh; }
.reveal__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 100px var(--gutter) 0; }
.reveal__text { max-width: 19em; text-align: center; display: grid; gap: var(--space-7); font-size: var(--text-statement); }
.reveal__point { margin: 0; font-size: 1em; font-weight: inherit; transition: opacity .6s ease, filter .6s ease; }
.reveal.is-ready .reveal__point { opacity: .18; filter: blur(8px); }
.reveal.is-ready .reveal__point.is-on { opacity: 1; filter: none; }
@media (max-width: 768px) { .reveal { height: 300vh; } .reveal__text { gap: var(--space-6); } }
@media (prefers-reduced-motion: reduce) { .reveal { height: auto; } .reveal__stage { position: static; height: auto; padding-block: calc(100px + var(--space-9)) var(--space-9); } }


/* End card motion: soft lines drift behind, the words rise in one by one, then
   "Moments illuminated." lights up with a slow sweep of light. */
.sw-endcard { position: relative; overflow: hidden; }
.sw-endcard > .sw-container { position: relative; z-index: 1; }
.sw-endcard .rise { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sw-endcard .rise > span { display: inline-block; }
.sw-endcard .glow { color: rgb(245 238 234 / 0.5); }
.js-motion .sw-endcard .rise > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.7,.1,1); }
.js-motion .sw-endcard .glow { opacity: 0; transition: opacity 1s ease .7s; }
.js-motion .sw-endcard .sw-hero__actions { opacity: 0; transform: translateY(12px); transition: opacity .8s ease 1.1s, transform .8s ease 1.1s; }
.js-motion .sw-endcard.is-in .rise > span { transform: none; }
.js-motion .sw-endcard.is-in .glow { opacity: 1; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, rgb(245 238 234 / .45) 0%, rgb(245 238 234 / .45) 40%, #F7F1E8 50%, rgb(245 238 234 / .45) 60%, rgb(245 238 234 / .45) 100%);
  background-size: 250% 100%; background-position: 100% 0; animation: illuminate 2.6s ease 1s forwards; }
.js-motion .sw-endcard.is-in .sw-hero__actions { opacity: 1; transform: none; }
@keyframes illuminate { to { background-position: 0% 0; } }

/* Single word end card: bigger, letters rise one after another */
.sw-endcard h2.endcard-word { font-size: clamp(4.5rem, 2rem + 13vw, 14rem); letter-spacing: var(--tracking-display); line-height: .95; white-space: nowrap; }

/* Our work: client panels show the client's official logo on The Bloom's linen (#f6f3eb),
   as their brand guide asks for the full-colour logo. Logos are used exactly as supplied. */
.sw-panel--logo { color: var(--color-text); }
.sw-panel--logo { background: #f6f3eb; aspect-ratio: 4 / 3; }
.sw-panel--logo > .sw-panel__media { inset: var(--space-6) var(--space-6) 6.5rem; background: none; }
.sw-panel--logo > .sw-panel__media::after { display: none; }
.sw-panel--logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sw-panel--logo { transition: background-color .3s ease; }
.sw-panel--logo:hover { background: #faf8f2; }
.sw-panel--logo .sw-panel__label { color: var(--color-text-muted); }
