/* Home page — Riverlight hero; shared navigation and service content retained. */

/* ---------- Hero ---------- */
:root { --header-h: 85px; }
.site-header { background: #0b1a20; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-shell { width: min(1600px, 90%); }
.brand-mark { width: 38px; height: 38px; background: none; border: 0; }
.brand-mark img { width: 34px; filter: none; }
.brand-words strong { font-size: 21px; font-weight: 750; }
.brand-words small { font-size: 9px; letter-spacing: 2px; }
.site-menu .nav-cta, .site-menu .nav-cta:hover { color: var(--on-dark); border: 1px solid #ffffff50; background: transparent; box-shadow: none; }
.hero { padding: 0; color: var(--on-dark); background: #0b1a20; }
.hero-body { position: relative; isolation: isolate; min-height: 730px; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 1; width: 86%; margin-inline: auto; padding: 60px 0; pointer-events: none; }
.hero-copy { width: 100%; max-width: 480px; justify-self: center; text-align: center; pointer-events: auto; }
.hero h1 { color: var(--on-dark); font-size: clamp(3.3rem, 5vw, 4.5rem); font-weight: 650; line-height: .99; letter-spacing: -.042em; }
.hero-accent { color: #f5a278; }
.hero-lede { margin-top: 28px; color: #c8d7d7; font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; margin-top: 30px; }
.hero-actions .primary { min-height: 56px; gap: 25px; padding: 16px 25px; font-size: 15px; background: #f5a278; box-shadow: none; }
.hero-actions .primary:hover { background: #ffb78f; box-shadow: none; }
.hero-actions .primary::after { content: "↗"; content: "↗" / ""; }
.hero-services { color: var(--on-dark); font-size: 14px; text-decoration: none; padding: 12px 0; }
.hero-services:hover { color: #f5a278; }
.hero-services::after { content: " ↗"; content: " ↗" / ""; }
.hero-services { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #7b9399; }
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-sky, .hero-poster, .hero-poster img, .hero-loop, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sky { pointer-events: none; background: #0b1a20; }
.hero-poster img, .hero-loop { object-fit: cover; object-position: 75% center; }
.hero-loop { opacity: 0; transition: opacity .25s; }
.hero-sky[data-playing] .hero-loop { opacity: 1; }
.hero-shade { background: linear-gradient(90deg, #0b1a20 1%, #0b1a20ee 23%, #0b1a2070 42%, transparent 58%); }
.hero-motion { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff60; border-radius: 50%; color: #f4f8f7; background: #0b1a20cc; cursor: pointer; }
.hero-motion:hover { background: #0b1a20; }
.hero-motion svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-motion .motion-play, .hero-motion[data-paused="true"] .motion-pause { display: none; }
.hero-motion[data-paused="true"] .motion-play { display: block; }
.trust-list { list-style: none; margin: 0; padding: 22px 5%; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff20; font-size: 12px; line-height: 1.5; color: #c8d7d7; }
.trust-list li:first-child { color: var(--on-dark); }
/* Connect the selected hero to the existing service inventory. */
main.home-page > .services { padding-top: 52px; background: #f6f3eb; }
.home-page > .services > .container { width: min(1600px, 90%); }
.home-page > .services .section-heading { margin-bottom: 24px; gap: 64px; }
.home-page > .services h2 { font-size: 38px; font-weight: 550; letter-spacing: -1px; }
.home-page > .services h2::before { display: none; }
.home-page > .services .section-heading p { max-width: 420px; justify-self: end; color: #435b64; font-size: 16px; }
.home-audience { color: #435b64; font-size: 14px; line-height: 1.6; margin-bottom: 32px; }

/* ---------- Section bands ---------- */
.section { padding: 104px 0; position: relative; }
.section h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.section h2::before { content: ""; display: block; width: 48px; height: 5px; border-radius: 999px; margin-bottom: 22px; background: var(--sunset); }
.section-heading { margin-bottom: 56px; }
.section-heading.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; }
.section-heading p { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.section-heading:not(.split) p { margin-top: 18px; }

/* ---------- Services ---------- */
.section.services { background: linear-gradient(180deg, var(--cream) 0%, var(--mint) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { padding: 30px 28px 72px; display: flex; flex-direction: column; gap: 12px; }
.service-card h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.service-card h3 a { color: var(--navy); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--teal);
  background: linear-gradient(135deg, rgba(92, 200, 181, 0.22), rgba(126, 212, 240, 0.22)); border: 1px solid var(--line); margin-bottom: 6px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-arrow {
  position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--teal); transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.card-arrow::before { content: "→"; content: "→" / ""; font-weight: 700; }
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.service-card:hover .card-arrow, .service-card:focus-within .card-arrow { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateX(3px); }
.service-card:has(a:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.service-card h3 a:focus-visible { outline: none; }
.service-grid > .service-card:last-child {
  background: radial-gradient(400px 200px at 100% 100%, rgba(242, 135, 106, 0.35), transparent 70%), linear-gradient(160deg, var(--deep-2), #1a3a4a);
  border-color: rgba(244, 248, 247, 0.12);
}
.service-grid > .service-card:last-child h3 a { color: var(--on-dark); }
.service-grid > .service-card:last-child p { color: var(--on-dark-muted); }
.service-grid > .service-card:last-child .service-icon { color: var(--amber); background: rgba(246, 192, 101, 0.12); border-color: rgba(246, 192, 101, 0.35); }
.service-grid > .service-card:last-child .card-arrow { color: var(--night); background: var(--sunset); border-color: transparent; }
.service-grid > .service-card:last-child:has(a:focus-visible) { outline-color: var(--sky); }

/* ---------- Idea panel ---------- */
.section.idea { background: var(--mint); padding-top: 24px; }
.idea-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 64px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; color: var(--on-dark);
  background:
    radial-gradient(600px 300px at 95% 120%, rgba(242, 135, 106, 0.45), transparent 65%),
    radial-gradient(500px 260px at 0% -20%, rgba(92, 200, 181, 0.25), transparent 60%),
    linear-gradient(140deg, var(--night), #1a3a4a);
  box-shadow: var(--shadow-lg);
}
.idea-panel .section-heading { margin: 0; }
.idea-panel h2 { color: var(--on-dark); }
.idea-panel h2::before { background: var(--amber); }
.idea-panel .section-heading p { color: var(--on-dark-muted); margin-top: 18px; max-width: 40em; }
.idea-art {
  position: absolute; z-index: -1; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  border: 1px dashed rgba(246, 192, 101, 0.35); box-shadow: 0 0 0 40px rgba(246, 192, 101, 0.05), 0 0 0 80px rgba(246, 192, 101, 0.03);
}

/* ---------- Our work ---------- */
.section.work { background: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project:hover, .project:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.project-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--mint); }
.project-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-body { padding: 26px 28px 30px; display: grid; gap: 12px; }
.project h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 8px; }
.project h3 a { color: var(--navy); text-decoration: none; }
.project h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.project h3 a:focus-visible { outline: none; }
.project:has(a:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.ext::before { content: "↗"; content: "↗" / ""; color: var(--teal); font-size: 1rem; }
.project p { color: var(--muted); }
.home-project-tags small { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: .04em; color: var(--teal); background: var(--mint); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.work .section-action { margin-top: 28px; color: var(--muted); }

/* ---------- How we work ---------- */
.section.how { background: linear-gradient(180deg, var(--mint), var(--cream)); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); z-index: 0; }
.step { counter-increment: step; padding: 30px 28px; display: grid; gap: 12px; align-content: start; z-index: 1; }
.step::before {
  content: counter(step, decimal-leading-zero); content: counter(step, decimal-leading-zero) / ""; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font: 800 1rem/1 var(--font-display); color: var(--night); background: var(--sunset); box-shadow: 0 8px 20px -10px rgba(242, 135, 106, .9);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); }

/* ---------- FAQ ---------- */
.section.faq { background: var(--paper); }
.faq .container { max-width: 900px; }
.faq-list { display: grid; gap: 12px; margin-top: 40px; }
.faq-item { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--line); box-shadow: var(--shadow-lg); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-radius: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.faq-item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%230e6f9c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--mint); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); max-width: 46em; }
.faq-item summary:focus-visible { outline-offset: -3px; }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0; background: #0b1a20; color: var(--on-dark); }
.contact-sky { position: absolute; inset: 0; z-index: -1; }
.contact-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 32, .22) 0%, rgba(11, 26, 32, .16) 40%, rgba(11, 26, 32, .5) 68%, rgba(11, 26, 32, .68) 100%); }
.contact-poster, .contact-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-poster img { max-width: none; object-fit: cover; object-position: 72% center; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.contact .contact-form-container { grid-column: 1; grid-row: 1; box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .55); }
.contact-copy { grid-column: 2; grid-row: 1; position: static; display: grid; gap: 20px; align-content: start; }
.contact-copy h2 { color: var(--on-dark); font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.contact-copy h2::before { content: ""; display: block; width: 48px; height: 5px; border-radius: 999px; margin-bottom: 22px; background: var(--sunset); }
.contact-copy p { color: var(--on-dark-muted); font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-heading.split { grid-template-columns: 1fr; gap: 18px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-panel { grid-template-columns: 1fr; padding: 48px 36px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-copy, .contact .contact-form-container { grid-column: auto; grid-row: auto; }
  .contact-copy { position: static; }
  .contact-sky::after { background: linear-gradient(180deg, rgba(11, 26, 32, .7) 0%, rgba(11, 26, 32, .4) 22%, rgba(11, 26, 32, .16) 46%, rgba(11, 26, 32, .24) 100%); }
  .contact-poster img { inset: auto; width: auto; height: 125%; max-width: none; aspect-ratio: 16 / 9; top: -14%; left: 50%; transform: translateX(-56%); object-fit: fill; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .contact { padding: 72px 0; }
  .service-grid, .project-grid { grid-template-columns: 1fr; }
  .idea-panel { padding: 36px 24px; border-radius: 22px; }
  .idea-panel .button { width: 100%; }
  .faq-item summary { padding: 18px 20px; }
  .faq-item p { padding: 0 20px 20px; }
}
@media (min-width: 1600px) { .hero-body { min-height: 820px; } }
@media (min-width: 961px) and (max-width: 1200px) { .hero-copy { max-width: 365px; } .hero-actions { gap: 16px; } }
@media (min-width: 761px) and (max-width: 960px) {
  .hero-body { min-height: 620px; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero-copy { max-width: 300px; }
  .hero h1 { font-size: 44px; }
  .hero-lede { font-size: 16px; color: #e1ebeb; }
  .hero-actions { gap: 12px; }
  .trust-list { font-size: 11px; gap: 16px; }
}
@media (max-width: 960px) {
  .home-page > .services .section-heading { gap: 18px; }
  .home-page > .services .section-heading p { justify-self: start; }
}
@media (max-width: 760px) {
  .hero-body { min-height: 0; display: flex; flex-direction: column; }
  .hero-grid { width: 100%; padding: 38px 24px 15px; }
  .hero-copy { max-width: 560px; margin-inline: auto; text-align: center; }
  .hero h1 { font-size: 48px; line-height: 1.02; letter-spacing: -.042em; }
  .hero-lede { font-size: 17px; line-height: 1.5; margin-top: 20px; }
  .hero-actions { justify-content: center; margin-top: 24px; }
  .hero-services { display: none; }
  .hero-scene { position: relative; inset: auto; width: 100%; aspect-ratio: 1; }
  .hero-poster img, .hero-loop { object-position: 100% center; }
  .hero-shade { background: linear-gradient(#0b1a20, transparent 18%, transparent 82%, #0b1a20); }
  .trust-list { justify-content: center; flex-wrap: wrap; text-align: center; border: 0; gap: 10px 20px; padding: 8px 24px 24px; }
}
@media (max-width: 760px) {
  :root { --header-h: 67px; }
  .nav-shell { width: calc(100% - 44px); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark img { width: 30px; }
  .brand-words strong { font-size: 19px; }
  .brand-words small { font-size: 8px; }
  .nav-toggle { background: none; border-color: transparent; }
  .hero-grid { padding: 35px 24px 15px; }
  .hero h1 { font-size: 41px; }
  .hero-lede { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 23px; }
  .hero-actions .primary { min-height: 52px; font-size: 14px; padding: 16px 23px; }
  .hero-motion { right: 16px; bottom: 12px; }
  .trust-list { padding-top: 6px; gap: 10px 16px; font-size: 11px; }
  .trust-list li:last-child { flex-basis: 100%; }
  main.home-page > .services { padding-top: 36px; }
  .home-page > .services > .container { width: calc(100% - 48px); }
  .home-page > .services h2 { font-size: 30px; }
  .home-page > .services .section-heading p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hero *, .hero *::after { animation: none; transition: none; } }
@media (forced-colors: active) { .hero-accent { color: CanvasText; } }
