/*
  The home page's layer over the skill kit (assets/system.css, assets/motion). Loaded after both, so
  it is the last word. Two jobs:
  1. The brand aliases: the kit's palette, fonts and radius names point at the design system's --tq-*
     tokens. There is no second set of values; changing a token in @talentq/ui changes this page.
  2. The home page's own layout rules, on the kit's spacing and type tokens.
*/

/* ---- 1. brand aliases -------------------------------------------------------------------- */
:root {
  --p-bg: var(--tq-bg);
  --p-surface: var(--tq-surface);
  --p-ink: var(--tq-text-primary);
  --p-muted: var(--tq-text-secondary);
  --p-accent: var(--tq-accent);
  --p-accent-ink: var(--tq-on-accent);
  --p-action: var(--tq-accent);
  --p-action-ink: var(--tq-on-accent);
  --p-inv-bg: var(--tq-bg);
  --p-inv-surface: var(--tq-surface);
  --p-inv-ink: var(--tq-text-primary);
  --p-inv-muted: var(--tq-text-secondary);
  --p-inv-accent: var(--tq-accent);
  --p-inv-accent-ink: var(--tq-on-accent);
  --p-inv-action: var(--tq-accent);
  --p-inv-action-ink: var(--tq-on-accent);
  --font-display: var(--tq-font-display);
  --font-text: var(--tq-font-body);
  --font-mono: var(--tq-font-mono);
  --display-weight: 500;
  --display-tracking: -0.03em;
}
html[data-radius] {
  --r-sm: var(--tq-radius-sm);
  --r-md: var(--tq-radius-md);
  --r-lg: var(--tq-radius-lg);
  --r-btn: var(--tq-radius-pill);
}

/* ---- 2. the DS Button takes the kit's hover and press (motion.md, Button) ----------------- */
html:not([data-motion="off"]) .tq-btn {
  transition: background-color var(--m-in) var(--m-ease), border-color var(--m-in) var(--m-ease),
    color var(--m-in) var(--m-ease), transform var(--m-out) var(--m-ease);
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .tq-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    transition-duration: var(--m-in);
  }
}
html:not([data-motion="off"]) .tq-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  transition-duration: var(--m-press);
}
/* white on --tq-accent is 4.23:1 on the dark site; the pressed shade is 5.2:1, so the primary button rests on it
   and its hover (a step darker, mixed toward the page ground) stays above 4.5:1 too */
html .tq-btn--primary { background: var(--tq-accent-pressed); }
html .tq-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--tq-accent-pressed) 85%, var(--tq-bg)); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
@media (max-width: 639px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .tq-btn { width: 100%; }
  .btn-row .link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }
}
.home-actions { margin-top: var(--s-6); }

/* ---- 3. the home page --------------------------------------------------------------------- */
.home-head { margin-bottom: var(--head-gap); }
.home-hero, main > .home-question, main > .home-performers, main > .home-how, main > .home-biz,
main > .home-trust, main > .home-reels, main > .home-close { background: var(--bg); }
.home-split { row-gap: var(--s-7); }
.home-split__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: var(--s-5); align-self: start; }
.home-split__text .home-actions { margin-top: var(--s-3); }
.home-split__media { grid-column: 6 / -1; min-width: 0; }
@media (max-width: 1023px) {
  .home-split__text, .home-split__media { grid-column: 1 / -1; }
}

/* hero: the words left (45), the bare phone and two live pieces on the glow right (55) */
.home-hero__grid { height: 100%; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: var(--gutter); align-items: center; }
.home-hero h1 { font-size: clamp(38px, 2.6vw + 19px, 58px); }
.home-hero__copy { display: flex; flex-direction: column; gap: var(--s-4); }
.home-hero__copy > .home-actions { margin-top: var(--s-5); }
.home-hero .t-lead { font-family: var(--tq-font-display); font-size: var(--tq-text-h2); line-height: var(--tq-leading-h2); }
.home-hero .muted { font-size: var(--tq-text-body); line-height: var(--tq-leading-body); color: var(--tq-text-secondary); }
.home-hero__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: min(640px, calc(100svh - 160px)); }
.home-hero__phone {
  position: relative; flex: none; height: min(640px, calc(100svh - 160px)); aspect-ratio: 9 / 16; box-sizing: content-box; z-index: 1;
  border: 6px solid var(--tq-surface-3); border-radius: 44px; overflow: hidden; background: var(--tq-media-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.home-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.home-hero__pause { position: absolute; right: var(--s-4); top: var(--s-4); }
/* 46px, not 44: the hero stage enters at scale .98, and a touch target must still measure 44 while it settles */
.home-hero__pause .tq-iconbtn { width: 46px; height: 46px; }

/* the live pieces overlap the phone's edges */
.hero-pieces { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-pieces .tq-card { position: absolute; background: var(--tq-surface); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.hero-role { top: 12%; right: calc(50% + 170px); width: 240px; padding: var(--s-4); color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.hero-pieces .hero-role { pointer-events: auto; }
.hero-role { transition: transform var(--m-out, 180ms) var(--m-ease, ease-out); }
@media (hover: hover) and (pointer: fine) { html:not([data-motion="off"]) .hero-role:hover { transform: translateY(var(--m-lift, -2px)); } }
.hero-role:focus-visible { outline: 2px solid var(--tq-focus-ring); outline-offset: 2px; }
.hero-role__top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.hero-role__title { margin: 0; font-family: var(--tq-font-display); font-weight: 600; font-size: var(--tq-text-h3); line-height: var(--tq-leading-h3); }
.hero-role__meta { margin: 0; color: var(--tq-text-tertiary); font-size: var(--tq-text-small); }
.hero-role__pay { margin: var(--s-2) 0 var(--s-2); font-weight: 600; color: var(--tq-text-primary); font-size: var(--tq-text-body); }
.hero-board { right: 0; bottom: 7%; width: 340px; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.hero-board__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.hero-board__lane { position: relative; height: 84px; border-radius: var(--tq-radius-md); background: var(--tq-bg); border: 1px dashed var(--tq-divider); }
.hero-applicant {
  position: absolute; top: 6px; left: 6px; width: calc(50% - 9px); height: 72px; box-sizing: border-box;
  display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-2); border-radius: var(--tq-radius-sm);
  background: var(--tq-surface-2); border: 1px solid var(--tq-divider);
}
.hero-applicant__av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tq-accent-wash); color: var(--tq-accent-soft); font-size: 11px; font-weight: 600; }
.hero-applicant__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hero-applicant__who strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.hero-applicant__who small { font-size: 11px; color: var(--tq-text-tertiary); white-space: nowrap; }
.hero-applicant__state { display: grid; margin-top: 4px; justify-items: start; }
.hero-applicant__state > * { grid-area: 1 / 1; }
.hero-applicant__state .tq-badge { font-size: 10px; }
.hero-applicant__b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-applicant { animation: hero-move 3.4s var(--m-ease, ease-in-out) infinite; }
  .hero-applicant__a { animation: hero-a 3.4s steps(1, end) infinite; }
  .hero-applicant__b { animation: hero-b 3.4s steps(1, end) infinite; }
}
@keyframes hero-move { 0%, 25% { transform: translateX(0); } 55%, 90% { transform: translateX(calc(100% + 12px)); } 100% { transform: translateX(0); } }
@keyframes hero-a { 0%, 45% { opacity: 1; } 46%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hero-b { 0%, 45% { opacity: 0; } 46%, 99% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1279px) { .hero-applicant__av { display: none; } main > .home-hero { padding-bottom: 64px; } }
@media (min-width: 1024px) and (max-width: 1439px) { .hero-role { top: 46%; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero-role { right: calc(50% + 162px); width: 200px; } .hero-board { right: -8%; width: 290px; } }
/* below 1180 the stage has no room left of the phone without reaching the headline copy: the role card waits for the stacked layout */
@media (min-width: 1024px) and (max-width: 1179px) { .hero-role { display: none; } }
@media (max-width: 1023px) {
  main > .home-hero { height: auto; min-height: 100svh; }
  .home-hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-6); }
  .home-hero__stage { min-height: 0; flex-direction: column; gap: var(--s-5); }
  .hero-pieces { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); }
  .hero-pieces .tq-card { position: static; width: min(100%, 340px); }
}
@media (max-width: 639px) {
  .home-hero__phone { height: auto; width: 100%; aspect-ratio: 9 / 16; max-height: none; box-sizing: border-box; border-width: 0; border-radius: var(--r-lg); }
  .hero-pieces { display: none; }
  .home-hero__pause { top: var(--s-3); right: var(--s-3); bottom: auto; }
}

/* the question: two lines at one size; the first is struck through on scroll, the second lands under it */
.home-question__line, .home-question__turn {
  font-family: var(--tq-font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(40px, 7vw, 104px); margin: 0;
}
.home-question__turn { color: var(--tq-text-primary); }
/* one Nastaliq word, hunar (skill), big and nearly invisible behind the lines. Nastaliq's content area is about
   2.1em tall, so the size is held to what the section is tall (18vw: 259px at 1440, 110px at 390) and the word is
   centred in the section with nothing clipped; the section clips only sideways, so it cannot widen the page. */
main > .home-question { overflow-x: clip; }
.home-question__mark {
  position: absolute; z-index: 0; right: 4vw; top: 0; bottom: 0; padding-inline: 0.3em; display: flex; align-items: center;
  font-family: var(--tq-font-nastaliq); font-size: clamp(110px, 18vw, 270px); line-height: 1; white-space: nowrap;
  color: var(--tq-text-primary); opacity: 0.06; pointer-events: none; user-select: none;
}
.home-question__strike { position: relative; display: inline-block; }
.home-question__strike::after {
  content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 0.04em; background: var(--tq-text-primary);
  transform: scaleX(0); transform-origin: left center;
}
.home-question__body { margin-top: var(--s-7); color: var(--tq-text-secondary); font-size: var(--tq-text-h3); line-height: var(--tq-leading-h3); }
@media (prefers-reduced-motion: no-preference) {
  html.strike-ready .home-question__turn { opacity: 0; transform: translateY(12px); }
  html.strike-ready .home-question__line.is-in .home-question__strike { color: var(--tq-text-tertiary); transition: color 400ms ease 500ms; }
  html.strike-ready .home-question__line.is-in .home-question__strike::after { transform: scaleX(1); transition: transform 900ms cubic-bezier(.6,0,.2,1); }
  html.strike-ready .home-question__line.is-in + .home-question__turn { opacity: 1; transform: none; transition: opacity 700ms ease 900ms, transform 700ms ease 900ms; }
}
/* reduced motion: no strike, both lines plain and fully visible (nothing above hides them) */

/* section 3: a 2x2 grid of product cards, the screen cropped big in a tinted panel above its words */
.home-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.home-screens > .card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--tq-surface); }
.home-screens__panel {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tq-surface-2);
  border-bottom: 1px solid var(--tq-divider);
}
.home-screens__photo { position: absolute; inset: 0; }
.home-screens__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-screens__phone { position: absolute; right: var(--s-5); bottom: 0; width: 32%; }
@media (min-width: 768px) { .home-screens > [data-screen="roles"] .home-screens__phone { width: 26%; } }   /* short enough to leave the second person's face in the photo uncovered */
.home-screens__phone picture { display: block; }
.home-screens__phone img {
  display: block; width: 100%; height: auto; object-fit: cover; object-position: top;
  border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--tq-divider); border-bottom: 0;
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .home-screens > .card:hover .home-screens__photo img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="off"]) .home-screens > .card:hover .home-screens__photo img { transform: none; }
}
.home-screens__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-5); }
.home-screens h3 { font-family: var(--tq-font-display); font-weight: 600; font-size: var(--tq-text-h2); line-height: var(--tq-leading-h2); letter-spacing: 0; max-width: 30ch; }
.home-screens .link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: auto; }
.home-screens__body { flex: 1; }
.home-screens h3 { margin-bottom: var(--s-3); }
@media (max-width: 767px) {
  .home-screens { grid-template-columns: minmax(0, 1fr); }
  .home-question__mark { bottom: 8%; }   /* clear of the paragraph */
  .home-screens__panel { aspect-ratio: 4 / 5; }
  .home-screens__phone { width: 36%; right: var(--s-3); }
}

/* section 4: one loop, a vertical dot-line timeline beside one large screen */
.home-loop { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: var(--s-8, 64px); align-items: stretch; }
.home-timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; display: flex; flex-direction: column; gap: 44px; }
.home-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--tq-divider); }
.home-timeline > li { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.home-timeline > li::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; box-sizing: border-box;
  border-radius: 50%; background: var(--tq-bg); border: 2px solid var(--tq-text-tertiary);
}
.home-timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
.home-timeline h3 { font-family: var(--tq-font-display); font-weight: 600; font-size: var(--tq-text-h2); line-height: var(--tq-leading-h2); letter-spacing: 0; }
.home-timeline time { font-family: var(--tq-font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--tq-text-tertiary); }
.home-timeline p { color: var(--tq-text-secondary); font-size: var(--tq-text-body); line-height: var(--tq-leading-body); max-width: 40ch; }
.home-timeline__pulse {
  position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; margin-left: 0;
  background: var(--tq-accent); box-shadow: 0 0 0 6px var(--tq-accent-wash); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .home-timeline.is-live .home-timeline__pulse { opacity: 1; animation: tl-pulse 4s ease-in-out 1 forwards; }
}
@keyframes tl-pulse { 0% { top: 4px; } 100% { top: calc(100% - 22px); } }
.home-loop__panel {
  display: flex; justify-content: center; overflow: hidden; min-height: 560px; max-height: 660px; padding-top: var(--s-6);
  background: var(--tq-surface-2); border: 1px solid var(--tq-divider); border-radius: var(--r-lg);
}
.home-loop__panel picture { display: block; width: min(68%, 400px); align-self: flex-start; }
.home-loop__panel img { display: block; width: 100%; height: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--tq-divider); border-bottom: 0; }
@media (max-width: 1023px) {
  .home-loop { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .home-loop__panel { min-height: 0; height: 480px; }
}
@media (max-width: 639px) { .home-loop__panel { height: 400px; } .home-loop__panel picture { width: 62%; } }

/* section 5: the dashboard, 1200px wide under the copy, cropped to the pipeline board */
.home-biz__head { margin-bottom: 50px; max-width: 760px; }
.home-biz__head .home-actions { margin-top: var(--s-4); }
.home-dash { position: relative; max-width: 1200px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-strong); aspect-ratio: 1200 / 450; }
.home-dash__frame { position: relative; width: 100%; }
.home-dash__frame img { display: block; width: 100%; height: auto; }
/* one applicant card over the board, in the empty second slot of the Applied column, then the same slot of the
   Shortlisted column, so it never lands on a card the picture already draws (positions are % of the picture) */
.home-dash__card {
  position: absolute; left: 6.3%; top: 59.5%; width: 17.8%; height: 12.9%; box-sizing: border-box;
  display: flex; align-items: center; gap: 4%; padding: 0 1.1%; border-radius: 6px;
  background: #fff; border: 1px solid #d9d6e4; box-shadow: 0 2px 8px rgba(30, 20, 60, 0.18);
  color: #15131c; font-family: var(--tq-font-body); font-size: clamp(7px, 0.92vw, 13px); line-height: 1.25; opacity: 0;
}
.home-dash__av { flex: none; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #888; }
.home-dash__who { display: flex; flex-direction: column; min-width: 0; }
.home-dash__who strong { font-weight: 600; white-space: nowrap; }
.home-dash__who small { color: #5a5668; font-size: 0.85em; white-space: nowrap; }
.home-dash__state { display: grid; }
.home-dash__state > * { grid-area: 1 / 1; white-space: nowrap; }
.home-dash__b { opacity: 0; color: #4a1fb0 !important; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .home-dash.is-live .home-dash__card { opacity: 1; animation: dash-move 4.2s ease-in-out 1 forwards; }
  .home-dash.is-live .home-dash__a { animation: dash-a 4.2s steps(1, end) 1 forwards; }
  .home-dash.is-live .home-dash__b { animation: dash-b 4.2s steps(1, end) 1 forwards; }
}
@keyframes dash-move { 0%, 22% { left: 6.3%; } 55%, 100% { left: 30.6%; } }
@keyframes dash-a { 0%, 36% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes dash-b { 0%, 36% { opacity: 0; } 37%, 100% { opacity: 1; } }
@media (max-width: 767px) {
  .home-dash { aspect-ratio: auto; height: 172px; }   /* ends above the "Load more" row */
  .home-dash__frame { width: 720px; margin-left: -14px; margin-top: -92px; }
  .home-dash__card { font-size: 9px; }
}

/* section 6: trust, six items */
.home-trust__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.home-trust__list li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: var(--s-6); min-height: 200px; }
.home-trust__list p { font-size: var(--t-card); line-height: 1.4; max-width: 28ch; }
.home-trust__list svg { color: var(--tq-accent); width: 28px; height: 28px; flex: none; stroke-width: 1.5; }
@media (max-width: 1023px) { .home-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .home-trust__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-3); }
  .home-trust__list li { min-height: 0; gap: 12px; padding-top: var(--s-4); }
  .home-trust__list p { font-size: var(--t-body); }
}

/* section 7: the reel and the song, two frames, each half the width */
.reels-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.reel-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--tq-divider); background: var(--tq-surface); display: grid; place-items: center; }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; background: var(--tq-media-surface); }
.reel-frame--song img { width: min(52%, 300px); height: auto; mix-blend-mode: screen; }
.reel-frame--song audio { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); width: calc(100% - 2 * var(--s-4)); }
.reel-frame--song audio:not([controls]) { display: none; }
.reel-frame .reel-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; }
.reel-play .tq-iconbtn { width: 56px; height: 56px; backdrop-filter: blur(6px); background: rgba(15, 15, 20, 0.55); border-color: rgba(255, 255, 255, 0.35); }
.reel-frame--song .reel-play { top: auto; bottom: var(--s-6); transform: translateX(-50%); }
@media (max-width: 767px) { .reels-row { grid-template-columns: minmax(0, 1fr); } }

/* section 8: the close, one column: the line and the button, the lockup centred under them */
.home-close > .wrap { background: var(--bg); }
.home-close .home-split__text, .home-close .home-split__media { grid-column: 1 / -1; }
.home-close__h { max-width: 14ch; }
.home-lockup { width: min(100%, 360px); height: auto; margin: 0 auto; mix-blend-mode: screen; }
@media (max-width: 639px) { .home-lockup { width: min(100%, 200px); } }

/* ---- 4. surfaces and rhythm (v2) ----------------------------------------------------------
   Sections are as tall as their content (about 640 to 850px), not one screen each: 96px of air above
   and below, the eyebrow / H2 / intro stack, then 50px before the content. Raised surface = --tq-surface. */
main > section.section:not(.hero) {
  height: auto; min-height: 0; padding-block: 96px;
}
main > section.section:not(.hero) > .wrap { height: auto; }
@media (max-width: 639px) { main > section.section:not(.hero) { padding-block: 64px; min-height: 0; } }
.eyebrow {
  margin: 0; font-family: var(--tq-font-body); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--tq-text-tertiary);
}
.home-sechead { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: 50px; max-width: 760px; }
.home-sechead h2, .home-split__text h2 { font-size: clamp(30px, 1.4vw + 22px, 40px); line-height: 1.15; }
.home-split__text { gap: var(--s-4); }

/* the hero alone sits on a lit ground: one soft glow behind the phone, tokens only, nothing under the words */
.home-hero {
  background:
    radial-gradient(ellipse 46% 60% at 74% 46%, var(--tq-accent-wash), transparent 70%),
    var(--bg);
}
main > .home-hero { background-color: var(--bg); }

/* trust is the one light section: the kit's light tokens (warm paper --tq-bg) re-point the page's --p-* aliases,
   and .ground-base re-derives --bg/--ink/--line from them, so the section reads the same system on paper. */
main > section.home-trust[data-theme="light"] {
  --p-bg: var(--tq-bg); --p-surface: var(--tq-surface); --p-ink: var(--tq-text-primary);
  --p-muted: var(--tq-text-secondary); --p-accent: var(--tq-accent); --p-accent-ink: var(--tq-on-accent);
  --p-action: var(--tq-accent); --p-action-ink: var(--tq-on-accent);
}
.home-trust__list li { border-top-color: var(--tq-divider); }

/* the close is one contained panel: copy left, the one primary button right */
main > section.home-close { padding-block: 96px; }
.home-close__panel {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  box-sizing: border-box; width: 100%; max-width: 1280px; margin-inline: auto;
  padding: 64px; border-radius: 24px; background: var(--tq-surface); border: 1px solid var(--tq-divider);
}
.home-close__h { max-width: 14ch; font-size: clamp(32px, 2.6vw + 14px, 56px); line-height: 1.08; }
@media (max-width: 767px) {
  .home-close__panel { flex-direction: column; align-items: stretch; padding: var(--s-6) var(--s-5); }
  .home-close__panel .tq-btn { width: 100%; }
}
/* phone: the close keeps its 96px above and below and a taller panel, about 0.6 of a screen (it was 0.42) */
@media (max-width: 639px) {
  main > section.section.home-close:not(.hero) { padding-block: 96px; }
  .home-close__panel { padding-block: 80px; }
}

/* ---- 5. header: 64px at every width (the kit sets 72 and 56); the translucent blur is in globals.css ---- */
:root { --nav: 64px; }

/* ---- 6. phone: paragraphs are 16px or more, so iOS never zooms and nothing is small print ---- */
@media (max-width: 639px) {
  html main p:not(.eyebrow):not(.x):not(.voice) { font-size: 16px; line-height: 24px; }
}

/* ---- 7. two voices: Roman Urdu lines are the serif italic, English stays Sora -------------------
   A serif italic reads smaller than Sora at the same size, so each .voice line is one step up from
   the Sora line it replaces. The family name lives in tokens.css only. */
.voice {
  font-family: var(--tq-font-voice); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.05;
}
.home-hero .t-lead.voice { font-family: var(--tq-font-voice); font-size: clamp(28px, 0.9vw + 21px, 36px); line-height: 1.1; }
.home-question__turn.voice { text-wrap: balance; }
.home-question__line.voice, .home-question__turn.voice { font-size: clamp(48px, 8.4vw, 124px); line-height: 1.05; font-weight: 400; letter-spacing: 0; }
.home-sechead h2.voice { font-size: clamp(38px, 1.8vw + 28px, 54px); line-height: 1.05; }
.home-close__h.voice { font-size: clamp(40px, 3.2vw + 18px, 72px); line-height: 1.05; }

/* ---- 8. heavier display type: h1 and h2 on the site are Sora 700, tight. Site-scoped; the kit tokens stay. ---- */
h1, h2 { font-weight: 700; letter-spacing: -0.04em; }
@media (min-width: 1024px) {
  .home-hero h1 { font-size: clamp(50px, 3.2vw + 18px, 68px); }
}

/* Prototype: an 8px ajrak-style lattice over the brand gradient under the hero; off unless <html data-texture="on"> */
.home-texture { display: none; }
html[data-texture="on"] .home-texture {
  display: block; height: 8px;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--tq-bg) 45%, transparent) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tq-bg) 45%, transparent) 0 1px, transparent 1px 4px),
    var(--tq-brand-gradient);
}

/* ---- 5. inner pages (/business, /support, /download): the home page's sections, the same type and edges ---- */
main > section.section.inner-hero { padding-top: calc(var(--nav) + 64px); }
.inner-hero__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: var(--gutter); align-items: center; }
.inner-hero__copy { display: flex; flex-direction: column; gap: var(--s-4); }
.inner-hero h1 { font-size: clamp(38px, 2.6vw + 19px, 58px); }
.inner-hero__copy > .home-actions { margin-top: var(--s-5); }
.inner-lead { font-family: var(--tq-font-display); font-size: var(--tq-text-h2); line-height: var(--tq-leading-h2); max-width: 36ch; color: var(--tq-text-primary); }
.inner-hero--text .inner-lead { max-width: 44ch; }
.link-plain { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link-plain:hover { text-decoration-color: currentColor; }
.app-frame { border-radius: var(--r-lg); border: 1px solid var(--line-strong); overflow: hidden; background: var(--tq-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.app-frame img { display: block; width: 100%; height: auto; }
.inner-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.inner-card { background: var(--tq-surface); gap: var(--s-3); transition: border-color var(--dur) var(--ease); }
.inner-card h2 { font-family: var(--tq-font-display); font-weight: 600; font-size: var(--tq-text-h2); line-height: var(--tq-leading-h2); }
.inner-cards .inner-card { counter-increment: step; min-height: 200px; }
.inner-cards .inner-card::before {
  content: counter(step); font-family: var(--tq-font-display); font-weight: 700; font-size: var(--tq-text-h2); line-height: 1; color: var(--tq-accent);
}
.inner-cards .inner-card p { font-size: var(--t-card); line-height: 1.4; }
.inner-cards--plain .inner-card::before { content: none; }
.inner-cards--plain .inner-card { min-height: 0; }
@media (hover: hover) and (pointer: fine) { .inner-card:hover { border-color: var(--line-strong); } }
.inner-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); margin-top: var(--s-7); align-items: start; }
.inner-stack { display: flex; flex-direction: column; gap: var(--card-gap); }
.inner-cols .inner-card { padding: var(--s-6); }
.inner-phone { display: flex; justify-content: center; }
.inner-phone img { display: block; width: min(300px, 60vw); height: auto; border-radius: 36px; border: 6px solid var(--tq-surface-3); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.inner-stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); list-style: none; margin: var(--s-8) 0 0; padding: 0; }
.inner-stills .card { padding: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tq-surface); }
.inner-stills img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 1023px) {
  .inner-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7); }
  .inner-cards, .inner-cols { grid-template-columns: minmax(0, 1fr); }
  .inner-cards .inner-card { min-height: 0; }
}
@media (max-width: 639px) {
  main > section.section.inner-hero { padding-top: calc(var(--nav) + 32px); }
  .inner-stills { gap: var(--s-2); margin-top: var(--s-6); }
  .inner-stills .card { aspect-ratio: 3 / 4; }
  .inner-cols .inner-card { padding: var(--s-5); }
}
main > section.section.inner-hero { padding-bottom: 64px; }
main > section.section.inner-cost { padding-block: 32px 96px; }
.inner-hero__grid { align-items: start; }
.inner-hero .inner-hero__copy { padding-top: var(--s-5); }
@media (max-width: 1023px) { .inner-hero .inner-hero__copy { padding-top: 0; } }
@media (max-width: 639px) {
  /* the phone crop shows the Applicants header and the Applied and Shortlisted columns whole (source x 0-620, y 70-525), no tab row */
  .inner-hero .app-frame { height: 250px; }
  .inner-hero .app-frame img { width: 662px; max-width: none; margin: -38px 0 0 0; }
  main > section.section.inner-cost { padding-block: 16px 0; }
  main > section.section.inner-cost .home-sechead { margin-bottom: 0; }
  main:has(.inner-cost) ~ .site-footer { margin-top: 32px; }
}

/* ---- 6. notice pages (404, /oops, /back-soon): one screen, copy centred vertically ---- */
main > section.section.inner-hero.notice { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav) + 32px) var(--s-8); }
.notice__pages ul { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.notice__pages a { display: inline-flex; align-items: center; min-height: 44px; }
.notice__more { margin: 0; }
main > section.section.notice > .wrap.notice__grid { display: grid; height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: center; }
.notice__photo { aspect-ratio: 5 / 6; max-height: calc(100svh - var(--nav) - 96px); justify-self: end; width: 100%; overflow: hidden; border-radius: var(--tq-radius-lg); background: var(--tq-surface); }
.notice__photo picture { display: block; height: 100%; }
.notice__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 1023px) {
  main > section.section.notice > .wrap.notice__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .notice__photo { order: -1; aspect-ratio: 4 / 5; max-height: none; }
}

/* ---- 7. /about and /contact: a photograph beside the hero copy (the same 45/55 grid as /business) ---- */
.inner-hero__grid--photo { align-items: center; }
.inner-photo { border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--tq-surface); aspect-ratio: 4 / 5; max-height: 560px; justify-self: end; width: 100%; }
.inner-photo picture { display: contents; }
.inner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.inner-prose { display: flex; flex-direction: column; gap: var(--s-4); }
.inner-prose .inner-lead { max-width: 52ch; }
@media (max-width: 1023px) {
  .inner-hero__grid--photo .inner-photo { order: -1; max-height: none; justify-self: stretch; }
}
@media (max-width: 639px) {
  .inner-hero__grid--photo .inner-photo { max-height: none; }
}
