/* ============================================================
   GRASSIK — site theme (approved homepage design)
   Loaded after style.css and hero.css by index.html and
   why-grassik.html, so both pages share the navy palette, Lexend
   type, balanced line breaks and 15px small text. Homepage-only
   sections (photo hero, figures band, practice cards) are also
   styled here.
   ============================================================ */

/* palette · navy #0E1B2C replaces the dark green #14312A (and its green-tinted relatives) */

body {
  --ink: #0E1B2C;
  --ink-hover: #1B2E47;
  --body: #2E343C;
  --muted: #4A525C;
  --hair-dark: #1B2E47;
  --paper: #F7F6F1;
  /* v3 beige (was #EFEFE9); every beige section and the topbar read this */
}

/* shadows and tints that were hard-coded in green in style.css */

.btn-solid:hover {
  box-shadow: 0 4px 14px rgba(14,27,44,.18);
}

.btn-ghost:hover {
  box-shadow: 0 4px 14px rgba(14,27,44,.15);
}

.door:hover {
  box-shadow: 0 10px 28px rgba(14,27,44,.16);
}

.pr:hover {
  box-shadow: 0 14px 32px rgba(14,27,44,.12);
}

.tl-card {
  background: linear-gradient(160deg,#2A4466 0%,var(--ink) 100%);
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(14,27,44,.18);
}

.doors {
  background: #FBFBFA;
}

/* v3: same as the "Trusted by leadership teams at" band */

/* type · Lexend for both headings and body (replaces Source Serif 4 + Libre Franklin) */

body {
  --display: "Lexend",system-ui,sans-serif;
  --sans: "Lexend",system-ui,sans-serif;
  --dtrack: -.02em;
  --dital: normal;
}

/* Lexend has no italic, so the italic accents become upright; the hero's second line is set lighter instead */

.hero h1>span:last-child {
  font-style: normal;
  font-weight: 300;
}

.thesis-close em,
.wg-quote {
  font-style: normal;
}

/* Lexend is wider than Source Serif: the headline steps down so each line still fits its column (desktop)
   and "Most searches end when" stays on one line (phone) */

.hero h1 {
  font-size: clamp(32px,4.2vw,62px);
}

@media (max-width:560px) {
  .hero h1 {
    font-size: clamp(22px,7.6vw - 3px,30px);
  }
}

/* ============================================================
   v3 · photo hero
   Full-bleed photograph behind the hero with a navy wash that is
   heaviest under the copy (left) and lifts towards the people
   (right). Text, hairlines and buttons switch to their on-dark
   versions; the stats column stays.
   ============================================================ */

.hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0E1B2C;
  /* fallback while the photo loads */
  min-height: min(calc(100svh - 75px), 820px);
  padding: clamp(64px,8vw,120px) 0 clamp(56px,6vw,96px);
  /* tokens re-pointed for the dark background, inside the hero only */
  --ink: #fff;
  --body: rgba(255,255,255,.86);
  --muted: rgba(255,255,255,.66);
  --hair: rgba(255,255,255,.2);
  --accent: var(--accent-lift);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 70%;
  transform: scale(1.06);
  transition: transform 7s cubic-bezier(.2,.6,.3,1);
}

body.lit .hero-photo {
  transform: scale(1);
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14,27,44,.94) 0%, rgba(14,27,44,.86) 42%, rgba(14,27,44,.7) 70%, rgba(14,27,44,.58) 100%), linear-gradient(0deg, rgba(14,27,44,.55) 0%, rgba(14,27,44,0) 35%);
}

.hero--photo .eyebrow {
  color: var(--accent-lift);
  font-size: 11.5px;
  letter-spacing: .16em;
  margin-bottom: 18px;
}

.hero--photo .eyebrow::after {
  background: rgba(255,255,255,.3);
}

.hero--photo p {
  opacity: 1;
}

.hero--photo h1 em::after {
  background: var(--accent-lift);
}

/* buttons: same on-dark pair as the Careers section */

.hero--photo .btn-solid {
  background: var(--accent-lift);
  color: #141414;
}

.hero--photo .btn-solid:hover {
  background: var(--accent-lift);
  color: #141414;
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.hero--photo .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}

.hero--photo .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

/* tablet and phone: copy and stats stack over the photo, so the wash evens out */

@media (max-width:940px) {
  .hero--photo {
    min-height: 0;
  }
  .hero--photo::after {
    background: linear-gradient(180deg, rgba(14,27,44,.9) 0%, rgba(14,27,44,.8) 55%, rgba(14,27,44,.92) 100%);
  }
  .hero-photo {
    object-position: 72% 60%;
  }
}

/* phone: the eyebrow fills the width, so its trailing rule would shrink to a stub */

@media (max-width:520px) {
  .hero--photo .eyebrow::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  body.lit .hero-photo {
    transform: none;
    transition: none;
  }
}

/* ============================================================
   v3 · figures band
   The four numbers sit in a dark band joined to the photo hero:
   slightly lighter navy, hairline dividers between the figures,
   big white numbers with the % / + in the coral accent.
   ============================================================ */

.figures {
  background: var(--ink);
  color: #fff;
  /* site dark blue #0E1B2C, same as the CTA card and footer */
  border-top: 1px solid rgba(255,255,255,.1);
  padding: clamp(40px,4.6vw,64px) 0 clamp(44px,5vw,72px);
}

.figures .fig-grid {
  background: none;
  border: 0;
  gap: 0;
}

.figures .fig {
  background: none;
  padding: 4px clamp(20px,2.6vw,40px);
  border-left: 1px solid rgba(255,255,255,.14);
}

.figures .fig:first-child {
  border-left: 0;
  padding-left: 0;
}

.figures .fig:hover {
  background: none;
}

.figures .fig .num {
  color: #fff;
  font-weight: 600;
  letter-spacing: -.025em;
  font-size: clamp(44px,4.8vw,64px);
  margin-bottom: 18px;
}

.figures .fig .num sup {
  font-size: 1em;
  vertical-align: baseline;
  margin-left: 0;
  color: var(--accent-lift);
  font-weight: 600;
}

.figures .fig h3 {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  max-width: 26ch;
}

.figures .fig p {
  color: rgba(255,255,255,.62);
}

/* tablet: two by two, with a rule between the rows */

@media (max-width:900px) {
  .figures .fig {
    padding: 28px 28px 30px;
  }
  .figures .fig:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .figures .fig:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .figures .fig:nth-child(-n+2) {
    padding-top: 4px;
  }
}

/* phone: one column, rules between */

@media (max-width:520px) {
  .figures .fig,
  .figures .fig:nth-child(odd) {
    border-left: 0;
    padding: 26px 0 28px;
  }
  .figures .fig + .fig {
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .figures .fig:first-child {
    padding-top: 4px;
  }
  .figures .fig:last-child {
    padding-bottom: 0;
  }
}

/* ============================================================
   v3 · practice photo cards ("Where we search")
   Each practice is a photo card: navy fade from the bottom, white
   title and sectors, coral "Explore" link. All five are the same
   size so no practice outranks another. They sit in two rows of
   three with a CTA card in the sixth slot; 2-up on tablet, 1-up on
   phones.
   ============================================================ */

.pr-list {
  --gap: clamp(16px,2vw,25px);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--gap);
  border: 0;
  margin-top: clamp(28px,3vw,40px);
}

.pr-list .pr {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(320px,28vw,380px);
  border: 0;
  background: #0E1B2C;
  color: #fff;
}

.pr-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.3,1);
}

.pr-list .pr::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,27,44,.35) 0%, rgba(14,27,44,.55) 40%, rgba(14,27,44,.93) 100%);
  transition: background .4s ease;
}

/* no coral top rule on hover (style.css draws one on .pr::after) */

.pr-list .pr::after {
  display: none;
}

.pr-list .pr:hover {
  transform: none;
  background: #0E1B2C;
  box-shadow: 0 18px 40px rgba(14,27,44,.22);
}

.pr-list .pr:hover .pr-img {
  transform: scale(1.05);
}

.pr-list .pr:hover::before {
  background: linear-gradient(180deg, rgba(14,27,44,.45) 0%, rgba(14,27,44,.65) 40%, rgba(14,27,44,.95) 100%);
}

.pr-list .pr-content {
  padding: clamp(20px,1.8vw,26px);
  justify-content: flex-end;
}

.pr-list .pr-num {
  color: var(--accent-lift);
  margin-bottom: auto;
}

.pr-list .pr h4 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(20px,1.8vw,24px);
  line-height: 1.25;
  margin: 28px 0 10px;
}

.pr-list .pr p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

.pr-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-lift);
}

.pr-go span {
  transition: transform .25s ease;
}

.pr-go:hover span,
.pr:hover .pr-go span {
  transform: translateX(4px);
}

/* CTA card in the sixth slot: solid navy (the site ink), no photo; coral button as in the hero */

.pr-list .pr-cta {
  background: var(--ink);
}

.pr-list .pr-cta::before {
  display: none;
}

.pr-list .pr-cta:hover {
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(14,27,44,.22);
}

.pr-list .pr-cta .pr-num {
  color: var(--accent-lift);
  text-transform: uppercase;
}

.pr-list .pr-cta p {
  color: rgba(255,255,255,.88);
}

.pr-cta-btn {
  align-self: flex-start;
  margin-top: 24px;
  background: var(--accent-lift);
  color: #141414;
  padding: 15px 26px;
  font-size: 15px;
}

.pr-cta-btn:hover {
  background: var(--accent-lift);
  color: #141414;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.pr-list .pr-cta .pr-go {
  color: #fff;
  margin-top: 18px;
  font-size: 13.5px;
}

@media (max-width:900px) {
  .pr-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px) {
  .pr-list {
    grid-template-columns: 1fr;
  }
  .pr-list .pr {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-img,
  .pr-go span {
    transition: none;
  }
  .pr-list .pr:hover .pr-img {
    transform: none;
  }
}

/* v3 · "Trusted by leadership teams at": background #FBFBFA
   (was paper 25% + white, about #FDFDFB). The logo cells match it. */

.clients-section,
.cl-cell {
  background: #FBFBFA;
}

/* v3 · closing CTA ("The first step is the same either way"): same beige as For candidates.
   style.css paints a glow behind the copy in the old beige (#EFEFE9), which reads as a
   darker patch on the v3 paper (#F7F6F1); the glow now uses the v3 paper. */

.final::after {
  background: radial-gradient(ellipse 45% 60% at 50% 45%,rgba(247,246,241,.9) 0%,rgba(247,246,241,0) 100%);
}

/* closing CTA intro: wide enough to sit on two balanced lines on desktop (style.css caps it at 52ch) */
.final p {
  max-width: 72ch;
}

/* homepage · balanced line breaks for all text (inherited from body);
   hero.css sets the hero intro to "pretty", so that one is overridden here */

body {
  text-wrap: balance;
}

.hero p {
  text-wrap: balance;
}

/* ============================================================
   small text · 14px -> 15px
   Every 14px text on the homepage moves up to 15px. The 14px
   rules live in the shared style.css / hero.css (also used by
   why-grassik.html), so they are overridden here for the
   homepage only.
   ============================================================ */

.nav .btn-sm,
.hero-meta dd small,
.fig p,
.tl-step p,
.ps p,
.pr p,
.quote span,
.cr-p h4,
.cr-p p,
.cr-voice cite,
.btn-accent,
.btn-outline-l,
.recog-item span,
.foot,
.foot-base {
  font-size: 15px;
}

@media (max-width:540px) {
  .hero-cta .btn {
    font-size: 15px;
  }
}

/* phone header: the 15px "Start a conversation" button is ~10px wider than at 14px,
   so it loses a little side padding to keep clear of the logo */

@media (max-width:420px) {
  .nav .btn-sm {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* smallest phones (under 360px, e.g. 320px): logo and button together are ~25px too wide,
   so the logo steps down a little and the button tightens; nothing scrolls sideways */
@media (max-width:359px) {
  .brand-logo {
    height: 26px;
  }
  .nav .btn-sm {
    font-size: 13.5px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* why-grassik.html · its card hover shadow is hard-coded green in style.css */

.wg-card.in:hover {
  box-shadow: 0 10px 28px rgba(14,27,44,.18);
}

/* inner pages · light heroes use the homepage hero's type for the label above the h1
   (hero.css styles every hero <p> at 18px, which the eyebrow would otherwise pick up) */

.hero:not(.hero--photo) .eyebrow {
  font-size: 11.5px;
  letter-spacing: .16em;
  margin-bottom: 18px;
  color: var(--accent);
  opacity: 1;
}

/* sticky header · hides while scrolling down, returns on scroll up (js/header.js) */
.topbar { transition: transform .35s cubic-bezier(.4,0,.2,1); }
.topbar.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}

/* "Trusted by leadership teams at" · two auto-scrolling rows of logo boxes, top row drifting
   right and bottom row left. --cl-visible boxes show per row (7 / 4 / 2); each box is that
   fraction of the frame's width (container query units). js/home.js appends one copy of each
   row and adds .is-ready, so moving the track by half its width loops seamlessly.
   Each box draws its own right and bottom hairline; the frame draws top and left. */
.cl-marquee {
  --cl-visible: 7;
  container-type: inline-size;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);   /* fixed edge on the right too, matching the left */
}

.cl-track {
  display: flex;
  width: max-content;
}

.cl-track .cl-cell {
  flex: 0 0 calc(100cqw / var(--cl-visible));
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  transition: background-color .35s ease;
}

.cl-track.is-ready { animation: cl-left 46s linear infinite; }
.cl-track--right.is-ready { animation-name: cl-right; }

@keyframes cl-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes cl-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* hover · the row stops under the pointer and that box shows its logo in full colour */
.cl-track:hover { animation-play-state: paused; }

.cl-track .cl-cell:hover { background: #fff; }

.cl-cell:hover .cl-logo {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.cl-cell:hover .cl-logo--invert { filter: invert(1); }

@media (max-width:1024px) {
  .cl-marquee { --cl-visible: 4; }
}

@media (max-width:620px) {
  .cl-marquee { --cl-visible: 2; }
  .cl-track.is-ready { animation-duration: 34s; }
}

/* reduced motion: rows stay still and can be swiped / scrolled sideways instead */
@media (prefers-reduced-motion: reduce) {
  .cl-track.is-ready { animation: none; }
  .cl-marquee { overflow-x: auto; }
}


.cl-cell {
  min-height: clamp(96px,9vw,120px);
}

.cl-logo {
  height: 34px;
  width: auto;
  max-width: min(150px,80%);
  max-height: none;
  mix-blend-mode: multiply;   /* drops the white box behind the Hindalco artwork */
}

/* per-shape heights so every logo reads at about the same weight */
.cl-logo--sm { height: 26px; }       /* bold, heavy wordmarks */
.cl-logo--mid { height: 48px; }      /* stacked marks */
.cl-logo--square { height: 58px; }   /* round or square emblems */

/* Table Space's official file is white (made for dark headers): inverted to read on the light cell */
.cl-logo--invert,
.cl-logo--invert:hover {
  filter: invert(1) grayscale(100%);
}

@media (max-width:820px) {
  .cl-logo { height: 28px; }
  .cl-logo--sm { height: 22px; }
  .cl-logo--mid { height: 40px; }
  .cl-logo--square { height: 48px; }
}

/* Careers · intro paragraph plus a "Why join Grassik →" link (to why-join-grassik.html).
   The wrapper takes over the old .cr-head > p spacing so the text still starts level with the h2. */
.cr-intro {
  margin-top: calc(13px * 1.6 + 22px);
}

.cr-intro p {
  font-size: clamp(16px,1.6vw,18.5px);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 62ch;
  margin: 0;
}

.cr-more {
  color: var(--accent-lift);
  border-bottom-color: color-mix(in srgb,var(--accent-lift) 40%,transparent);
}

.cr-more:hover {
  border-bottom-color: var(--accent-lift);
}

@media (max-width:880px) {
  .cr-intro { margin-top: 0; }
}

/* phones · homepage client quotes: each card is 390px wide on desktop, wider than a phone screen,
   so it narrows to leave a sliver of the next card in view (the slide loop is unaffected,
   since every card stays the same width) */
@media (max-width:540px) {
  .quote {
    width: calc(100vw - 64px);
    flex-basis: calc(100vw - 64px);
    margin: 0 10px;
    padding: 24px 22px 22px;
  }
  .quote p {
    font-size: calc(17px * var(--ds));
  }
}

/* phones · Careers buttons stack as full-width rows of equal size, like the hero buttons
   (style.css right-aligns them, which left the two outline buttons short and pushed right) */
@media (max-width:540px) {
  .cr-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cr-foot .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* footer bottom line (copyright, regions): white at 42% on navy measured 4.0:1, under the 4.5:1
   needed for 15px text; 56% gives about 5.8:1 and still reads as secondary */
.foot-base {
  color: rgba(255,255,255,.56);
}

/* client quotes strip: holds still until js/home.js adds .is-on as it nears the screen
   (a strip that is already moving makes the browser load all its lazy photos up front) */
.marquee:not(.is-on) {
  animation: none;
}
