/* Homepage only (loaded when body has .page-home).
   Built from the shared system in tokens.css / components.css: bezel hero, soft panels, bezel FAQ,
   zinc scale, 36/48px radii. Header, buttons, plans and accordion come from components.css. */
.page-home { background: var(--paper); }
.page-home .h-wrap { width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: var(--gutter); }
.h-section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.h-section--tight { padding-block: clamp(1rem, 3vw, 2.5rem); }

/* hero: grey bezel shell around a big rounded panel */
.h-hero { padding: calc(var(--header-h) + 1.25rem) var(--gutter) 0; max-width: 90rem; margin-inline: auto; }
.h-hero__shell { background: var(--gray-100); border: 1px solid var(--gray-150); border-radius: calc(var(--r-2xl) + 8px); padding: 8px; box-shadow: var(--shadow-bezel); }
.h-hero__panel {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); min-height: clamp(30rem, 74svh, 44rem);
  display: grid; place-items: center; text-align: center; padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent) 30%, #fff) 0%, transparent 60%),
    radial-gradient(100% 80% at 90% 100%, color-mix(in srgb, var(--accent) 16%, #fff7ef) 0%, transparent 65%),
    #fff6ee;
}
.h-hero__img { position: absolute; inset: 0; }
.h-hero__img picture, .h-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.h-hero__panel.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%); }
.h-hero__inner { position: relative; z-index: 1; max-width: 52rem; display: grid; gap: var(--space-5); justify-items: center; }
.h-hero__title { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem); line-height: 1.06; letter-spacing: var(--tracking-tight); font-weight: 600; }
.h-hero__sub { font-size: var(--step-1); line-height: 1.45; max-width: 38ch; color: var(--gray-700); }
.h-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.h-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-7); padding: var(--space-6) 0 0; color: var(--gray-500); font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); }
.h-logos__item img { height: 1.5rem; width: auto; filter: grayscale(1); opacity: 0.6; }

/* section headings */
.h-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-7); margin-bottom: var(--space-7); }
.h-head--stack { display: grid; grid-template-columns: 1fr; margin-bottom: var(--space-7); align-items: start; }
.h-head--center { flex-direction: column; align-items: center; text-align: center; }
.h-h2 { font-size: var(--h2); letter-spacing: var(--tracking-tight); line-height: var(--lh-h2); max-width: 18ch; }
.h-copy { color: var(--gray-600); max-width: 44ch; display: grid; gap: var(--space-3); font-size: var(--step-0); }
.h-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: var(--ui-lg); font-weight: 500; color: var(--gray-900); transition: color 0.25s; }
.h-link:hover { color: var(--gray-600); }

/* work rail */
.h-rail { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) var(--space-3); scrollbar-width: none; }
.h-rail::-webkit-scrollbar { display: none; }
.h-tile { flex: 0 0 clamp(16rem, 28vw, 24rem); scroll-snap-align: start; text-decoration: none; display: grid; gap: 0.35rem; align-content: start; }
.h-tile__media { display: block; overflow: hidden; border-radius: var(--r-xl); background: var(--gray-300); }
.h-tile__media .media img, .h-tile__media .ph { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.h-tile:hover .h-tile__media img { transform: scale(1.04); }
.h-tile__title { font-family: var(--font-display); font-weight: 700; font-size: var(--h5); line-height: 1.3; margin-top: 0.5rem; }
.h-tile__meta { color: var(--gray-500); font-size: var(--ui); }
@media (min-width: 90rem) { .h-rail { padding-inline: calc((100vw - 84rem) / 2 + var(--gutter)); } }

/* soft panel + step cards */
.h-panel { background: var(--gray-100); border: 1px solid var(--gray-150); border-radius: var(--r-2xl); padding: clamp(1.5rem, 4vw, 3.5rem); }
.h-steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.h-step { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--r-xl); padding: 24px; display: grid; gap: var(--space-3); align-content: start; min-height: 13rem; box-shadow: var(--shadow-card); }
.h-step__n { justify-self: start; padding: 4px 10px; border-radius: var(--r-xs); background: var(--gray-50); border: 1px solid var(--gray-100); font-size: var(--ui); font-weight: 600; line-height: 1.55; color: var(--accent-text); }
.h-step h3 { font-size: var(--h5); font-weight: 700; line-height: 1.3; }
.h-step p { color: var(--gray-600); }

/* stats */
.h-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.h-stat { display: grid; gap: 0.25rem; padding-left: var(--space-4); border-left: 1px solid var(--gray-200); }
.h-stat strong { font-family: var(--font-display); font-size: clamp(2.25rem, 1.2rem + 3.5vw, 4rem); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.1; }
.h-stat span { color: var(--gray-500); font-size: var(--ui); }
@media (min-width: 48rem) { .h-stats { grid-template-columns: repeat(4, 1fr); } }

/* service cards */
.h-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.h-card { position: relative; display: grid; gap: var(--space-3); align-content: start; text-decoration: none; background: var(--gray-100); border: 1px solid var(--gray-150); border-radius: var(--r-xl); padding: 28px 28px 5rem; min-height: 15rem; transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.h-card:hover { background: #fff; box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.h-card h3 { font-size: var(--h5); font-weight: 700; line-height: 1.3; }
.h-card p { color: var(--gray-600); }
.h-card__go { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: var(--gray-950); color: #fff; box-shadow: var(--shadow-btn); transition: background-color 0.25s; }
.h-card:hover .h-card__go { background: var(--accent); color: var(--on-accent); }

/* work grid (shared card) */
.h-work { display: grid; gap: var(--space-7) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

/* testimonials sit in a full-width soft band that tucks under the next section */
.page-home .theme-soft.band { background: var(--gray-100); }

/* faq: heading + call-out card on the left, bezel accordion on the right */
.h-faq { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 56rem) { .h-faq { grid-template-columns: 1fr 1.5fr; } }
.h-faq__side { display: grid; gap: var(--space-6); justify-items: start; }
.faq-cta { display: grid; gap: var(--space-4); justify-items: start; width: 100%; max-width: 20rem; padding: 28px; border: 1px solid var(--gray-300); border-radius: var(--r-xl); }
.faq-cta p { font-weight: 600; color: var(--gray-900); line-height: 1.4; }

/* cta */
.h-cta { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); border-radius: var(--r-2xl); padding: clamp(2rem, 6vw, 5rem); display: grid; gap: var(--space-6); justify-items: start; }
.h-cta::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%); pointer-events: none; }
.h-cta h2 { position: relative; font-size: var(--h1); letter-spacing: var(--tracking-tight); line-height: var(--lh-h1); max-width: 18ch; color: inherit; }
.h-cta .btn { position: relative; }

/* footer wordmark: homepage only */
.footer__wordmark { display: none; }
.page-home .footer__wordmark { display: block; overflow: hidden; margin-top: var(--space-7); text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(4rem, 22vw, 22rem); color: color-mix(in srgb, #fff 12%, transparent); user-select: none; padding-bottom: 0.05em; }
