/* Suyash Raj site: shared tokens, type, buttons, nav and footer. Loaded by every page. */
:root {
  --sc-canvas: #FAFAF7;
  --sc-surface: #FFFFFF;
  --sc-ink: #121318;
  --sc-ink-soft: #545862;
  --sc-accent: #2340C8;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --deva: "Tiro Devanagari Hindi", "Kohinoor Devanagari", serif;

  --paper: #FAFAF7;
  --stone: #EEEFF1;
  --night: #121318;
  --night-ink: #F3F3EF;
  --night-soft: #A8ACB7;
  --cobalt-lit: #8C9DFF;
  --r: 4px;
  --nav-h: 76px;
  --sc-shadow-color: 228 30% 12%;
  --sc-maxw: 96rem;
}

html { scroll-padding-top: var(--nav-h); scroll-padding-bottom: 5rem; }
body { background: var(--paper); }
::selection { background: var(--sc-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sc-ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type -- */
.display { font-family: var(--sc-font-display); font-weight: 400; font-optical-sizing: auto;
  letter-spacing: -0.03em; line-height: 1; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.6rem); letter-spacing: -0.035em; line-height: 0.98; }
.prose { color: var(--sc-ink-soft); max-width: 62ch; text-wrap: pretty; margin: 0; }
.label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--sc-ink-soft); }
em, .it { font-style: italic; }

/* ---------------------------------------------------------------- buttons -- */
.btn { display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap;
  font: 500 0.98rem/1 var(--sc-font-text); letter-spacing: -0.005em;
  padding: 0.95em 1.35em; border-radius: var(--r); text-decoration: none;
  background: var(--sc-ink); color: var(--paper);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.btn svg { width: 1em; height: 1em; transition: transform 180ms var(--sc-ease-out); }
.btn:active { transform: translateY(1px) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--sc-accent); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--sm { font-size: 0.88rem; padding: 0.72em 1.05em; }

.link { color: var(--sc-ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--sc-accent); } }

/* ---------------------------------------------------------------- nav -- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60; }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--paper);
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
  transform-origin: 50% 0; transform: scaleY(1); opacity: 0;
  transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out); }
.nav__in { position: relative; height: 100%; display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--sc-gutter); transition: transform 240ms var(--sc-ease-out); }
.nav.is-scrolled::before { opacity: 1; transform: scaleY(0.82); }
.nav.is-scrolled .nav__in { transform: translateY(-7px); }
.nav__mark { font: 400 1.28rem/1 var(--sc-font-display); letter-spacing: -0.02em; color: var(--sc-ink);
  text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.7rem; }
.nav__folio { font: italic 400 1rem/1 var(--sc-font-display); color: var(--sc-ink-soft); opacity: 0;
  transform: translateY(4px); transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.nav__folio.is-on { opacity: 1; transform: none; }
.nav__links { margin-left: auto; display: flex; gap: 1.9rem; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { font-size: 0.93rem; color: var(--sc-ink); text-decoration: none; position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 200ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); } }
@media (max-width: 1279px) { .nav__folio { display: none; } .nav__links { gap: 1.35rem; } }
@media (max-width: 1060px) { .nav__links { display: none; } .nav__in { justify-content: space-between; } }
@media (max-width: 860px) {
  .nav__links, .nav__folio { display: none; }
  .nav__in { justify-content: space-between; }
  :root { --nav-h: 64px; }
}

/* ---------------------------------------------------------------- footer -- */
.link--light { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .link--light:hover { color: #FFFFFF; background-size: 100% 2px; } }
.foot { max-width: var(--sc-maxw); width: 100%; margin-inline: auto; padding: 1.6rem var(--sc-gutter) 2rem;
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: baseline;
  border-top: 1px solid rgb(255 255 255 / 0.28); font-size: 0.9rem; color: rgb(255 255 255 / 0.86); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.foot a { color: #FFFFFF; text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 220ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { background-size: 100% 1px; } }
.foot__mark { font: 400 1.2rem/1 var(--sc-font-display); color: #FFFFFF; }

/* ---------------------------------------------------------------- shared light button -- */
.btn--light { background: #FFFFFF; color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: var(--sc-ink); color: #FFFFFF; } }


/* ---------------------------------------------------------------- a11y -- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- trust line -- */
.trust { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; line-height: 1.2; color: var(--sc-ink-soft); text-decoration: none; }
.trust b { font-weight: 500; color: var(--sc-ink); }
.trust__stars { position: relative; flex: none; width: 84px; height: 16px; }
.trust__stars svg { display: block; width: 84px; height: 16px; }
.trust__base path { fill: color-mix(in oklab, var(--sc-ink) 18%, transparent); }
.trust__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.trust__fill path { fill: var(--sc-accent); }
.trust__text { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat;
  background-position: 0 100%; padding-bottom: 1px; transition: background-size 220ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .trust:hover .trust__text { background-size: 100% 1px; } }
.trust--light { color: rgb(255 255 255 / 0.9); }
.trust--light b { color: #FFFFFF; }
.trust--light .trust__base path { fill: rgb(255 255 255 / 0.32); }
.trust--light .trust__fill path { fill: #FFFFFF; }
.trust--light:focus-visible { outline-color: #FFFFFF; }

/* ---------------------------------------------------------------- mobile menu -- */
.menu-toggle { display: none; align-items: center; gap: 0.6rem; font: 500 0.9rem/1 var(--sc-font-text); color: var(--sc-ink);
  background: transparent; border: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); border-radius: var(--r);
  padding: 0.62em 0.8em; cursor: pointer; transition: border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.menu-toggle:active { transform: scale(0.97); }
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform 240ms var(--sc-ease-out); }
.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .menu-toggle:hover { border-color: var(--sc-accent); } }
@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav__in > .btn--sm { margin-left: auto; }
  .nav__in { gap: 0.6rem; }
}
.menu { position: fixed; inset: 0; z-index: 59; background: var(--paper); padding: calc(var(--nav-h) + 1.5rem) var(--sc-gutter) 2rem;
  overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity 240ms var(--sc-ease-out), transform 260ms var(--sc-ease-out); }
.menu.is-open { opacity: 1; transform: none; }
.menu[hidden] { display: none; }
.menu__in { max-width: 40rem; display: grid; gap: 2rem; }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.menu__list li { border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
  opacity: 0; transform: translateY(8px); transition: opacity 260ms var(--sc-ease-out), transform 300ms var(--sc-ease-out); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: 30ms; } .menu.is-open .menu__list li:nth-child(3) { transition-delay: 60ms; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: 90ms; } .menu.is-open .menu__list li:nth-child(5) { transition-delay: 120ms; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: 150ms; } .menu.is-open .menu__list li:nth-child(7) { transition-delay: 180ms; }
.menu__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 0.85rem 0; color: var(--sc-ink); text-decoration: none;
  font: 400 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/1.1 var(--sc-font-display); letter-spacing: -0.025em; }
.menu__list a::after { content: "\2192"; font: 400 1.1rem/1 var(--sc-font-text); color: var(--sc-accent); }
.menu__list a[aria-current="page"] { color: var(--sc-accent); }
.menu__list a:focus-visible { outline-offset: 2px; }
.menu__foot { display: grid; gap: 1.2rem; justify-items: start; }
html.menu-open { overflow: hidden; }
html.menu-open .nav::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu__list li { transform: none !important; transition: opacity 160ms linear; transition-delay: 0ms !important; }
  .menu-toggle__icon i { transition: none; }
}

/* ---------------------------------------------------------------- arch motif (home hero, consulting) -- */
.arch { position: absolute; inset: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden;
  background: var(--sc-accent); animation: arch-wipe 1300ms 120ms var(--sc-ease-drawer) both; }
@keyframes arch-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.sig { position: absolute; left: 2%; width: 96%; top: 17%; height: 62%; }
/* sound chamber: the arch repeated inward, so the contours always match the frame */
.chamber { position: absolute; inset: 0; }
.chamber i { position: absolute; top: calc(var(--k) * 6.5%); left: calc(var(--k) * 7%); right: calc(var(--k) * 7%); bottom: -2px;
  border: 1px solid rgb(255 255 255 / 0.11); border-bottom: 0; border-radius: 999px 999px 0 0; }
.chamber i:nth-child(1) { --k: 1; } .chamber i:nth-child(2) { --k: 2; } .chamber i:nth-child(3) { --k: 3; border-color: rgb(140 157 255 / 0.55); }
.chamber i:nth-child(4) { --k: 4; } .chamber i:nth-child(5) { --k: 5; } .chamber i:nth-child(6) { --k: 6; }
.sig__axis { stroke: rgb(255 255 255 / 0.22); stroke-width: 1; }
.sig__bar { fill: #F6F6F1; transform-box: fill-box; transform-origin: center; }
.sig__bar--lit { fill: var(--cobalt-lit); }
.sig__voice { animation: sig-in 1500ms 500ms var(--sc-ease-out) both; }
@keyframes sig-in { from { opacity: 0; } to { opacity: 1; } }
.sig__wire { fill: none; stroke: var(--cobalt-lit); stroke-width: 2; stroke-linejoin: round; }
.sig__node { fill: var(--sc-accent); stroke: #F6F6F1; stroke-width: 2; }
.sig__node--end { fill: #F6F6F1; }

/* ---------------------------------------------------------------- working-hours band (home about, about page) -- */
.hours { margin: 0; display: grid; gap: 1.4rem; }
.hours__grid { position: relative; display: grid; gap: 1.1rem; --label: 9.5rem; padding-bottom: 1.4rem; }
.hours__axis { display: flex; justify-content: space-between; margin-left: var(--label); padding-bottom: 0.2rem;
  font: 400 0.74rem/1 "Geist Mono", ui-monospace, monospace; color: var(--night-soft); border-bottom: 1px solid rgb(255 255 255 / 0.12); padding-bottom: 0.6rem; }
.hours__row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; }
.hours__city { margin: 0; display: grid; gap: 0.15rem; }
.hours__name { font: 400 1.15rem/1.1 var(--sc-font-display); letter-spacing: -0.01em; color: var(--night-ink); }
.hours__row--home .hours__name { font-style: italic; color: var(--cobalt-lit); }
.hours__time { font: 400 0.86rem/1 "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--night-soft); }
.hours__track { position: relative; height: 30px; border-radius: 3px; background: rgb(255 255 255 / 0.05);
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px calc(100% / 24)); }
.hours__bar { position: absolute; top: 5px; bottom: 5px; border-radius: 2px; background: #7C7F88; }
.hours__row--home .hours__bar { background: var(--cobalt-lit); }
.hours__bar--overlap { background: #F3F3EF; z-index: 1; }
.hours__now { position: absolute; top: 0; bottom: 0; width: 1px; background: #F3F3EF; left: calc(var(--label) + (100% - var(--label)) * var(--now, 0.5)); z-index: 2; }
.hours__now span { position: absolute; bottom: -1.3rem; left: -0.9rem; font: 500 0.7rem/1 "Geist Mono", ui-monospace, monospace; color: #F3F3EF;
  background: var(--night); padding: 0 4px; }
.hours__caption { color: var(--night-soft); font-size: 0.95rem; line-height: 1.55; max-width: 52ch; }
.hours__caption b { color: var(--night-ink); font-weight: 500; }
@media (max-width: 899px) {
  .hours__grid { --label: 0px; gap: 0.9rem; }
  .hours__axis { margin-left: 0; }
  .hours__row { grid-template-columns: 1fr; gap: 0.45rem; }
  .hours__city { display: flex; justify-content: space-between; align-items: baseline; }
}

/* trust line: on narrow widths the text moves under the stars as one unit, never broken mid-phrase */
.trust { flex-wrap: wrap; row-gap: 0.35rem; }
.trust__text { white-space: nowrap; }
@media (max-width: 340px) { .trust__text { white-space: normal; } }
