/* OOB corporate refresh: orange brand, ink typography, quiet surfaces.
   Existing page order, routes, sticky geometry and form submission stay intact. */
:root {
  --studio-ink: #171b1c;
  --studio-muted: #586064;
  --studio-paper: #f4f5f3;
  --studio-line: #dfe3e0;
}

:is(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.cta-pill, .footer-inquiry-btn, .footer-cta-btn, .form-submit-btn { color: var(--studio-ink); font-weight: 700; }
.site-header { border-bottom: 1px solid rgb(23 27 28 / 8%); }
.main-nav { gap: clamp(18px, 2.1vw, 32px); }

/* The home header, hero and dock share one alignment line. */
.home-page {
  --home-rail: min(1120px, calc(100% - 56px));
  --consult-height: calc(88px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--consult-height);
}
.home-page :is(.header-inner, .hero-content, .consult-dock-inner) { width: var(--home-rail); margin-inline: auto; }
.home-page .header-inner { padding-inline: 0; column-gap: clamp(18px, 2.6vw, 36px); }
.home-page .video-hero { margin-top: 0; height: auto; max-height: none; min-height: calc(100svh - var(--consult-height)); background: #0b1018; }
.home-page .hero-video-layer { left: 0; }
.home-page .hero-video-layer video { object-position: 60% center; }
.home-page .video-hero::before {
  background: linear-gradient(90deg, #0b1018 0%, rgb(11 16 24 / 91%) 30%, rgb(11 16 24 / 58%) 64%, rgb(11 16 24 / 28%) 100%), linear-gradient(0deg, #0b1018 0%, transparent 42%);
}
.home-page .hero-content { height: auto; min-height: inherit; padding: calc(var(--header-h) + 30px) 0 76px; display: flex; flex-direction: column; justify-content: center; }
.home-page .hero-copy { position: relative; inset: auto; width: 100%; max-width: 910px; }
.home-page .hero-eyebrow { font-size: 13px; letter-spacing: .1em; margin-bottom: 22px; color: #ffab76; }
.home-page .hero-title { font-size: clamp(40px, 4.7vw, 68px); max-width: none; line-height: 1.16; letter-spacing: -.055em; font-weight: 800; }
.home-page .hero-accent { color: #ff9a5c; }
.home-page .hero-description { max-width: 580px; margin-top: 24px; color: #dbe0e8; font-size: 17px; word-break: keep-all; }
.home-page .hero-description::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 24px; background: var(--orange); }
.hero-project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 12px 20px; margin-top: 24px; background: #fff; color: #101722; font-weight: 750; font-size: 15px; border-radius: 6px; }
.hero-project-link:hover { background: #ffe4d2; }
.home-hero-controls { position: absolute; right: 0; bottom: 22px; display: flex; align-items: center; gap: 18px; }
.home-page .hero-indicators { position: static; }
.consult-dock { position: fixed; inset: auto 0 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--studio-line); background: #fff; box-shadow: 0 -4px 24px rgb(11 16 24 / 7%); }
.consult-dock-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 87px; }
.consult-dock-logo { width: 126px; height: auto; }
.consult-dock-copy { border-left: 1px solid var(--studio-line); padding-left: 24px; color: #101722; }
.consult-dock-copy strong { display: block; font-size: 17px; font-weight: 750; }
.consult-dock-copy p { margin-top: 4px; font-size: 14px; color: var(--studio-muted); word-break: keep-all; }
.consult-dock-actions { display: flex; align-items: center; gap: 18px; }
.consult-dock-phone, .consult-dock-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.consult-dock-phone:hover { text-decoration: underline; }
.consult-dock-link { padding-inline: 18px; border-radius: 6px; background: #101722; color: #fff; }
.consult-dock-link:hover { background: #283447; }
.home-page .fab-toolbar { bottom: calc(var(--consult-height) + 16px); }
.home-page .trust-section { padding-block: 76px; }
.home-page .trust-heading { margin-bottom: 40px; }
.home-page .trust-sentence { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.45; font-weight: 600; }
.home-page .trust-caption { margin-top: 14px; }
.home-page .ticker-item { border: 0; border-radius: 4px; }
.ticker-track { animation-duration: 64s; }
.ticker-row.reverse .ticker-track { animation-duration: 72s; }
.ticker-row:hover .ticker-track { animation-play-state: running; }
.ticker-toggle { margin-top: 16px; padding: 8px 12px; background: transparent; color: var(--studio-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.home-page .why-section { background: #fff; padding-block: 88px; }
.home-page .why-eyebrow, .home-page .solution-eyebrow, .home-page .review-eyebrow { display: none; }
.home-page :is(.why-title, .services-heading h2, .solution-title, .review-title-main, .blog-title-main) { font-weight: 650; letter-spacing: -.045em; }
.home-page .why-desc { max-width: 670px; line-height: 1.8; color: var(--studio-muted); }
.home-page .why-grid { gap: 24px; }
.home-page .why-card { border-radius: 6px; border: 0; box-shadow: none; background-color: #f6f6f6; }
.home-page .why-card:hover { box-shadow: none; }
.home-page .why-card-text { padding: 28px; }
.home-page .why-card h3 { letter-spacing: -.025em; }
.home-page .why-card p { line-height: 1.75; }
.home-page .why-card-button { color: var(--studio-ink); }
.home-page .why-card-featured { background-image: none; background-color: var(--orange); }
.home-page .why-card-featured::before { display: none; }
.home-page .why-card-featured .why-card-content h3, .home-page .why-card-featured .why-card-content p { color: var(--studio-ink); }
.home-page .why-card-featured .why-card-content { margin-block: auto; text-align: center; }
.home-page .why-card-featured .why-card-button { background: transparent; border-top: 1px solid rgb(23 27 28 / 25%); }
.home-page .services-section { padding-top: 88px; }
.home-page .service-card { border-radius: 10px; box-shadow: 0 -4px 16px rgb(23 27 28 / 12%); }
.home-page .service-card-text h3 { font-weight: 650; }
.home-page .service-card-tags li { border-radius: 4px; }
.home-page .solution-section { padding-block: 88px; background: #fff; }
.home-page .solution-media { border-radius: 6px; }
.home-page .review-section { margin-top: 0; padding-top: 88px; padding-bottom: 88px; }
.home-page .review-card { border-radius: 0; border-top: 1px solid var(--studio-line); background: transparent; padding: 26px 0; }
.home-page .review-card:hover { box-shadow: none; }
.home-page .review-tag { background: transparent; color: #ad4100; border-radius: 0; padding: 0; }
.home-page .review-client { border: 0; color: var(--studio-muted); }
.home-page .blog-section { padding-block: 88px; border-top: 1px solid var(--studio-line); }
.home-page .blog-thumb { border-radius: 6px; }
.home-page .blog-category { color: #ad4100; }
.home-page .blog-card-title { line-height: 1.55; word-break: keep-all; }

/* The brand signature is also the footer's visual anchor. */
.footer-inner { align-items: flex-start; padding-bottom: 64px; }
.footer-right { flex: 1; justify-content: flex-end; }
.footer-brand { max-width: 100%; padding-top: 12px; }
.footer-brand > p { font-size: clamp(30px, 3vw, 42px); font-weight: 750; line-height: 1.12; color: var(--studio-ink); letter-spacing: -.075em; }
.footer-brand nav { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.footer-brand nav a { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--studio-line); padding-block: 10px; }
.footer-brand nav a:hover { border-color: var(--orange); }
.footer-cta { background-position: center; }
.footer-cta::before { background: rgb(23 27 28 / 78%); }
.footer-cta-title { letter-spacing: -.045em; font-weight: 650; }
.footer-cta-btn { border-radius: 4px; }

/* Shared service pages. */
.service-detail-page .service-field-card { display: block; border-radius: 6px; }
.service-field-card:focus-visible { outline-offset: 5px; }
.service-contact-link { display: inline-block; margin-top: 26px; border-bottom: 2px solid var(--orange); padding: 10px 0; font-weight: 700; color: var(--studio-ink); }
:is(.service-detail-page, .representative-page) .service-expert { gap: 64px; padding-block: 114px; }
:is(.service-detail-page, .representative-page) .service-expert-copy { width: 100%; max-width: none; }
:is(.service-detail-page, .representative-page) .service-expert-desc { white-space: normal; }
.service-expert-desc p + p { margin-top: 20px; }
.hero-motion-toggle { min-height: 40px; padding: 8px 12px; border: 1px solid #ffffff70; border-radius: 4px; color: #fff; background: #101722; font: inherit; font-size: 13px; }
#serviceRelatedWork[hidden] { display: none; }
:is(.service-detail-page, .representative-page) .service-expert-title { font-weight: 650; letter-spacing: -.04em; }

/* Search, navigation state and project-to-inquiry flow. */
.portfolio-tools { width: min(100% - 64px, 1016px); margin: 0 auto 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.portfolio-search { width: min(100%, 520px); }
.portfolio-search label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.portfolio-search-input { display: flex; border-bottom: 1px solid var(--studio-ink); }
.portfolio-search input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 14px 4px; font: inherit; font-size: 16px; color: var(--studio-ink); }
.portfolio-search button { flex: none; padding: 12px 18px; background: var(--studio-ink); color: white; border-radius: 4px 4px 0 0; }
.portfolio-search input::placeholder { color: #666e70; }
.portfolio-results { color: var(--studio-muted); font-size: 13px; white-space: nowrap; padding-bottom: 12px; }
.portfolio-card-cat, .service-intro-eyebrow, .service-expert-eyebrow, .service-expert-experience { color: #ad4100; }
.filter-tab.active, .portfolio-pagination button[aria-current="page"] { color: var(--studio-ink); }
.pf-inquiry-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--orange); color: var(--studio-ink); font-size: 14px; font-weight: 700; border-radius: 4px; }
.pf-modal-nav { flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-modal-close { width: 44px; height: 44px; }
.pf-modal { max-height: 88dvh; }
.pf-modal-source { color: #ad4100; }
.inquiry-reference { padding: 20px 24px; margin-bottom: 32px; background: var(--studio-paper); border-left: 3px solid var(--orange); font-weight: 600; line-height: 1.6; }
.inquiry-reference[hidden] { display: none; }
.inquiry-hero { background-image: url('assets/footer/footer-contact-bg.jpg'); }
.schedule-unsure { margin-top: 12px; padding-block: 6px; color: #ad4100; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner { padding-inline: 24px; column-gap: 24px; }
  .main-nav { gap: 18px; }
  .main-nav > a, .nav-item > a { font-size: 13px; }
}
@media (max-width: 900px) {
  .home-page .hero-title { font-size: clamp(36px, 5.2vw, 48px); }
  .home-page .fab-toolbar { display: none; }
  .home-page .why-section, .home-page .services-section, .home-page .solution-section, .home-page .review-section, .home-page .blog-section { padding-top: 64px; }
  .home-page .why-section, .home-page .solution-section, .home-page .review-section, .home-page .blog-section { padding-bottom: 64px; }
  :is(.service-detail-page, .representative-page) .service-expert { gap: 36px; padding-block: 96px; }
  .footer-inner { gap: 40px; }
  .footer-right { width: 100%; justify-content: flex-start; }
  .portfolio-tools { width: calc(100% - 48px); }
}
@media (max-width: 560px) {
  .home-page { --home-rail: calc(100% - 40px); --consult-height: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .home-page .header-inner .logo img { max-width: min(40vw, 146px); height: auto; }
  .home-page .hero-content { padding-block: calc(var(--header-h) + 28px) 68px; }
  .home-page .video-hero::before { background: linear-gradient(90deg, rgb(11 16 24 / 90%), rgb(11 16 24 / 54%)), linear-gradient(0deg, #0b1018, transparent 58%); }
  .home-page .hero-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .home-page .hero-title { font-size: clamp(26px, 7.1vw, 40px); line-height: 1.24; }
  .home-page .hero-description { font-size: 15px; margin-top: 18px; line-height: 1.65; }
  .home-page .hero-description::after { margin-top: 20px; }
  .hero-project-link { margin-top: 20px; }
  .home-hero-controls { bottom: 14px; }
  .consult-dock-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 63px; }
  .consult-dock-logo, .consult-dock-copy p { display: none; }
  .consult-dock-copy { border-left: 0; padding-left: 0; word-break: keep-all; }
  .consult-dock-copy strong { font-size: 14px; }
  .consult-dock-actions { gap: 10px; }
  .consult-dock-phone, .consult-dock-link { font-size: 13px; }
  .consult-dock-link { gap: 7px; padding-inline: 12px; }
  .home-page .trust-section { padding-block: 52px; }
  .home-page .why-section, .home-page .services-section, .home-page .solution-section, .home-page .review-section, .home-page .blog-section { padding-top: 52px; }
  .home-page .why-section, .home-page .solution-section, .home-page .review-section, .home-page .blog-section { padding-bottom: 52px; }
  .home-page .why-card-text { padding: 24px; }
  .home-page .service-card { height: calc(100svh - var(--header-h) - 104px); min-height: 0; max-height: 700px; }
  .home-page .service-card-content { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .home-page .why-grid { gap: 20px; }
  .home-page .review-card { padding-block: 24px; }
  .footer-brand > p { font-size: 32px; }
  .footer-brand nav { gap: 20px; margin-top: 20px; }
  :is(.service-detail-page, .representative-page) .service-expert { gap: 32px; padding-block: 72px; }
  .portfolio-tools { flex-direction: column; align-items: stretch; gap: 14px; }
  .portfolio-results { padding: 0; }
  .pf-modal { max-height: 92dvh; }
  .pf-inquiry-link { order: 3; width: 100%; }
  .pf-modal-nav-btn { min-height: 44px; }
  .inquiry-reference { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-copy, .portfolio-card { animation: none; }
  .home-page .hero-copy, .home-page .service-card, .portfolio-card, .portfolio-card img { transition: none; }
}

/* Editorial profiles; thumbnail framing never changes popup media. */
:is(.service-detail-page, .representative-page) .service-expert-copy {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "identity description" "tags description" ". contact";
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: 24px;
  align-items: start;
  border-top: 1px solid var(--studio-line);
  padding-top: 32px;
}
.service-expert-identity { grid-area: identity; }
:is(.service-detail-page, .representative-page) .service-expert-title { line-height: 1.25; word-break: keep-all; }
:is(.service-detail-page, .representative-page) .service-expert-desc { grid-area: description; margin-top: 0; color: var(--studio-muted); line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
:is(.service-detail-page, .representative-page) .service-expert-tags { grid-area: tags; margin-top: 0; gap: 10px 0; align-self: start; }
:is(.service-detail-page, .representative-page) .service-expert-tag { font-size: 11px; padding-inline: 10px; color: var(--studio-muted); }
:is(.service-detail-page, .representative-page) .service-contact-link { grid-area: contact; justify-self: start; margin-top: 0; }
.portfolio-card-thumb img, .home-page .blog-thumb img { transform: scale(var(--thumbnail-zoom, 1)); transform-origin: var(--thumbnail-origin, 50% 50%); }
.portfolio-card:hover .portfolio-card-thumb img, .portfolio-card:focus-visible .portfolio-card-thumb img,
.home-page .blog-card:hover .blog-thumb img, .home-page .blog-thumb:focus-visible img { transform: scale(calc(var(--thumbnail-zoom, 1) * 1.04)); }
.home-page :is(.why-title, .services-heading h2, .solution-title, .review-title-main, .blog-title-main) { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.25; font-weight: 650; letter-spacing: -.045em; word-break: keep-all; }
.home-page :is(.why-desc, .services-heading-copy p, .solution-desc, .blog-desc) { margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--studio-muted); }
.home-page :is(.services-eyebrow, .blog-eyebrow) { font-size: 12px; letter-spacing: .12em; margin-bottom: 14px; }
.home-page :is(.why-grid, .services-stack, .solution-body, .review-grid, .blog-grid) { margin-top: 56px; }
.home-page :is(.solution-viewmore, .services-view-more), .service-expert .service-contact-link { padding-bottom: 8px; border-bottom: 1px solid var(--orange); transition: color .2s ease, border-color .2s ease; }
.home-page :is(.solution-viewmore, .services-view-more):hover, .service-expert .service-contact-link:hover { color: #ad4100; border-color: currentColor; }
@media (min-width: 901px) {
  .home-page :is(.services-heading, .services-stack) { padding-inline: 0; }
}
@media (max-width: 900px) {
  :is(.service-detail-page, .representative-page) .service-expert-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "description" "tags" "contact"; row-gap: 24px; padding-top: 28px; }
  :is(.service-detail-page, .representative-page) .service-expert-desc { max-width: 65ch; }
}
@media (max-width: 560px) {
  :is(.service-detail-page, .representative-page) .service-expert-copy { row-gap: 20px; padding-top: 24px; }
  :is(.service-detail-page, .representative-page) .service-expert-title { font-size: 30px; }
  .home-page :is(.why-desc, .services-heading-copy p, .solution-desc, .blog-desc) { margin-top: 16px; font-size: 15px; }
  .home-page :is(.why-grid, .services-stack, .solution-body, .review-grid, .blog-grid) { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card-thumb img, .home-page .blog-thumb img { transition: none; }
}

:is(.service-detail-page, .representative-page) .service-expert-tag:first-child { padding-left: 0; }

/* Standalone representative page; the service page keeps its own profile. */
.representative-main { padding-top: var(--header-h); }
.representative-heading { max-width: 1080px; margin: 0 auto; padding: 80px 32px 0; }
.representative-breadcrumb { display: flex; gap: 12px; color: var(--studio-muted); font-size: 13px; }
.representative-breadcrumb a:hover { color: #ad4100; }
.representative-heading h1 { margin-top: 24px; font-size: clamp(32px, 4vw, 46px); font-weight: 650; line-height: 1.25; letter-spacing: -.045em; }
.representative-page .service-expert { padding-block: 48px 88px; }
@media (max-width: 900px) {
  .representative-heading { padding: 56px 24px 0; }
  .representative-page .service-expert { padding-block: 36px 64px; }
}
@media (max-width: 560px) {
  .representative-heading { padding-top: 40px; }
  .representative-page .service-expert { padding-block: 28px 52px; }
}
