/*
  styles.css
  What this file does:
  Visual design for the DLMI DIGIT marketing site. The look follows a dark
  header, full-width photo hero, light content sections, and teal actions,
  written for this company rather than copied from another brand.
  Step by step:
  1. Set shared colours, type, and page width.
  2. Style the utility bar, navigation, hero, and moving phrase strip.
  3. Style about, service, work, process, package, FAQ, and quote sections.
  4. Style inner-page banners, legal text, the footer, and floating actions.
  5. Adjust the layout for tablets and phones.
*/

/* Shared colour and type tokens used across every page. */
:root {
  --color_ink: #071018;
  --color_header: #071018;
  --color_panel: #0c1824;
  --color_teal: #0e7f8e;
  --color_teal_bright: #149aab;
  --color_teal_soft: #e7f5f7;
  --color_text: #1e2a36;
  --color_muted: #5b6b7a;
  --color_line: #e3eaef;
  --color_paper: #ffffff;
  --color_sand: #f5f7f9;
  --color_whatsapp: #25d366;
  --color_ribbon: #e4364a;
  --shadow_card: 0 16px 40px rgba(7, 16, 24, 0.08);
  --page_width: 1160px;
  --font_body: "Manrope", "Segoe UI", sans-serif;
}

/* Reset spacing so each section controls its own margin. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font_body);
  color: var(--color_text);
  background: var(--color_paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Hide text that should stay available to screen readers. */
.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip_link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--color_teal);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip_link:focus {
  top: 12px;
}

.page_wrap {
  width: min(var(--page_width), calc(100% - 40px));
  margin: 0 auto;
}

/* Thin contact strip above the main navigation. */
.utility_bar {
  background: #050b12;
  color: #d5dee6;
  font-size: 13px;
}

.utility_inner {
  width: min(var(--page_width), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.utility_links,
.utility_note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.utility_links a:hover,
.nav_link:hover,
.text_link:hover {
  color: var(--color_teal_bright);
}

/* Main navigation bar. */
.site_header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color_header);
  color: #fff;
}

.nav_bar {
  width: min(var(--page_width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand_lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand_logo {
  display: block;
  height: 46px;
  width: auto;
}

.footer_logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 0 14px;
}

/* Ink wordmark for the white contact card. The header logo is white and fades out here. */
.contact_logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 0 14px;
}

.site_nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav_link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8eef3;
}

.nav_link.is_current {
  color: var(--color_teal_bright);
}

/* Services dropdown. It stays open briefly after the pointer leaves so a choice can be made. */
.nav_item {
  position: relative;
}

.nav_item.is_open::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(980px, calc(100vw - 32px));
  height: 22px;
  translate: -42% 0;
}

.service_menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  translate: -42% 0;
  width: min(980px, calc(100vw - 32px));
  padding: 22px;
  background: #fff;
  color: var(--color_text);
  border-radius: 16px;
  box-shadow: var(--shadow_card);
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  z-index: 40;
}

.nav_item.is_open .service_menu,
.nav_item:focus-within .service_menu {
  display: grid;
}

.service_menu a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color_text);
}

.service_menu_title {
  color: var(--color_teal) !important;
  font-weight: 800 !important;
  margin-bottom: 6px;
}

.service_menu a:hover {
  color: var(--color_teal);
}

.nav_actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav_call {
  text-align: right;
  line-height: 1.2;
}

.nav_call_label {
  display: block;
  font-size: 11px;
  color: #9eb0bf;
}

.nav_call_number {
  font-weight: 800;
  font-size: 14px;
}

.menu_button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
}

.menu_bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

/* Shared buttons. */
.button_teal,
.button_dark,
.button_line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.button_teal {
  background: var(--color_teal);
  color: #fff;
}

.button_teal:hover,
.button_dark:hover {
  background: var(--color_teal_bright);
}

.button_dark {
  background: var(--color_ink);
  color: #fff;
}

.button_line {
  background: transparent;
  color: var(--color_ink);
  border: 1px solid var(--color_line);
}

/* Hero with a darkened office photograph. */
.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.72), rgba(7, 16, 24, 0.78)),
    url("../images/hero.jpg") center/cover no-repeat;
  text-align: center;
}

.hero_inner {
  width: min(860px, calc(100% - 40px));
  margin: 72px auto;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #b7e4ea;
}

.hero h1,
.page_hero h1,
.section_heading h2,
.closing_band h2 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: 52px;
}

.hero_lead {
  margin: 0 auto 28px;
  max-width: 680px;
  color: #e4edf3;
  font-size: 18px;
}

.hero_actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero_phone {
  color: #fff;
  font-weight: 800;
}

/* Four honest capability cells in place of unverified statistics. */
.capability_strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color_panel);
  color: #fff;
}

.capability_item {
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.capability_item:last-child {
  border-right: 0;
}

.capability_item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.capability_item span {
  color: #b7c5d1;
  font-size: 14px;
}

/* Slowly moving phrase line under the hero. */
.marquee {
  overflow: hidden;
  background: #09131d;
  color: #8fd3dc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee_track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 12px 0;
  animation: marquee_slide 32s linear infinite;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.marquee_track span::before {
  content: "◆";
  margin-right: 32px;
  color: var(--color_teal_bright);
}

@keyframes marquee_slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Standard content sections. */
.section {
  padding: 84px 0;
}

.section_sand {
  background: var(--color_sand);
}

.section_heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section_heading h2,
.closing_band h2 {
  margin: 0 0 12px;
  font-size: 40px;
}

.page_hero h1 {
  margin: 0 auto 10px;
  max-width: 760px;
  font-size: 40px;
  line-height: 1.25;
}

.section_heading p,
.card p,
.legal_copy p,
.process_item p {
  color: var(--color_muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img,
.work_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.photo_frame {
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
}

.check_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check_list li {
  padding-left: 22px;
  position: relative;
}

.check_list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color_teal);
  position: absolute;
  left: 0;
  top: 8px;
}

.mini_points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.mini_point {
  background: var(--color_sand);
  border-radius: 14px;
  padding: 16px;
}

.mini_point h3,
.card h3,
.process_item h3,
.package_card h3 {
  margin: 0 0 8px;
}

/* Service and reason cards. */
.card_grid,
.work_grid,
.package_grid,
.reason_grid {
  display: grid;
  gap: 18px;
}

.card_grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.package_card,
.reason_card,
.work_card,
.contact_card {
  background: #fff;
  border: 1px solid var(--color_line);
  border-radius: 18px;
  padding: 22px;
}

.card {
  min-height: 230px;
  box-shadow: var(--shadow_card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.package_card:hover,
.work_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(7, 16, 24, 0.12);
}

.card_index {
  color: var(--color_teal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.text_link {
  color: var(--color_teal);
  font-weight: 800;
}

.reason_grid {
  grid-template-columns: repeat(3, 1fr);
}

.work_grid {
  grid-template-columns: repeat(3, 1fr);
}

.work_card {
  padding: 0;
  overflow: hidden;
}

.work_card img {
  height: 190px;
  border-radius: 0;
}

.work_card div {
  padding: 16px 18px 20px;
}

.work_note {
  font-size: 13px;
}

/* Numbered process row. */
.process_list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process_item {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--color_line);
}

.process_number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color_teal_soft);
  color: var(--color_teal);
  font-weight: 800;
  margin-bottom: 12px;
}

.package_grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.package_card.is_featured {
  border: 2px solid var(--color_teal);
  transform: translateY(-8px);
}

.package_card ul {
  padding-left: 18px;
  color: var(--color_muted);
}

.package_label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color_teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Questions that open and close. */
.faq_list {
  display: grid;
  gap: 10px;
}

.faq_item {
  border: 1px solid var(--color_line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq_item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq_item p {
  display: none;
  margin: 0;
  padding: 0 18px 16px;
}

.faq_item.is_open p {
  display: block;
}

/* Quote form and contact details. */
.quote_layout,
.contact_layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5dee6;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form_status {
  min-height: 1.4em;
  font-size: 14px;
}

.form_status.is_error {
  color: #a12332;
}

.form_status.is_ok {
  color: #0d7a4b;
}

.contact_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact_list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color_line);
}

.contact_list span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color_muted);
}

/* Short dark close and page banner. */
.closing_band,
.page_hero {
  background:
    linear-gradient(100deg, rgba(7, 16, 24, 0.92), rgba(14, 127, 142, 0.75)),
    url("../images/about.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.closing_band {
  padding: 72px 20px;
}

.page_hero {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 64px 24px 48px;
  background:
    linear-gradient(120deg, rgba(9, 11, 12, 0.97) 0%, rgba(9, 11, 12, 0.88) 55%, rgba(13, 116, 128, 0.5) 100%),
    url("../images/reference/banner-design.webp") center/cover no-repeat;
}

.page_hero::after {
  content: "";
  width: 56px;
  height: 3px;
  margin-top: 18px;
  background: var(--color_teal_bright);
}

.page_crumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #9fb0b1;
  font-size: 13.5px;
}

.page_crumbs a {
  color: #9fb0b1;
}

.page_crumbs span {
  color: #556264;
}

.page_hero p,
.closing_band p {
  margin: 0 auto;
  max-width: 680px;
  color: #e5eef3;
}

/* Footer, side tab, and round contact buttons. */
.site_footer {
  background: #050b12;
  color: #d5dee6;
  padding: 56px 0 24px;
}

.footer_grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr 1.1fr;
  gap: 28px;
}

.site_footer h2,
.site_footer h3 {
  color: #fff;
  margin-top: 0;
}

.site_footer a {
  display: block;
  padding: 4px 0;
}

.footer_base {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.side_tab {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 25;
  background: var(--color_ribbon);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 16px 10px;
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.float_stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: grid;
  gap: 10px;
}

.float_button {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.float_button svg {
  position: relative;
  z-index: 1;
}

/* Two rings leave each button, one after the other, like a call wave. */
.float_button::before,
.float_button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.float_button.whatsapp_button {
  background: var(--color_whatsapp);
}

.float_button.whatsapp_button::before,
.float_button.whatsapp_button::after {
  animation: float_wave_whatsapp 2s ease-out infinite;
}

.float_button.whatsapp_button::after {
  animation-delay: 1s;
}

.float_button.call_button {
  background: var(--color_teal);
}

.float_button.call_button::before,
.float_button.call_button::after {
  animation: float_wave_call 2s ease-out infinite;
}

.float_button.call_button::after {
  animation-delay: 1s;
}

@keyframes float_wave_whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes float_wave_call {
  0% { box-shadow: 0 0 0 0 rgba(14, 127, 142, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(14, 127, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 127, 142, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .float_button::before,
  .float_button::after {
    animation: none;
  }
}

.legal_copy {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal_copy h2 {
  margin-top: 28px;
  font-size: 22px;
}

:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .capability_strip,
  .card_grid,
  .reason_grid,
  .work_grid,
  .package_grid,
  .process_list,
  .footer_grid {
    grid-template-columns: 1fr 1fr;
  }

  .process_list,
  .quote_layout,
  .contact_layout,
  .split {
    grid-template-columns: 1fr;
  }

  .package_card.is_featured {
    transform: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .nav_call {
    display: none;
  }
}

@media (max-width: 760px) {
  .menu_button {
    display: block;
  }

  .site_nav,
  .nav_actions {
    display: none;
  }

  .site_header.is_open .site_nav,
  .site_header.is_open .nav_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav_bar {
    flex-wrap: wrap;
    padding: 10px 0 14px;
  }

  .brand_logo {
    height: 38px;
  }

  .capability_strip,
  .card_grid,
  .reason_grid,
  .work_grid,
  .package_grid,
  .footer_grid,
  .check_list,
  .mini_points,
  .field_row {
    grid-template-columns: 1fr;
  }

  .utility_note,
  .side_tab {
    display: none;
  }

  .site_header.is_open .service_menu {
    position: static;
    display: grid;
    translate: none;
    width: 100%;
    margin-top: 8px;
    background: #101c2a;
    color: #fff;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .site_header.is_open .service_menu a {
    color: #e8eef3;
  }

  .contact_list,
  .quote_form {
    padding-right: 64px;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1,
  .section_heading h2,
  .page_hero h1 {
    font-size: 32px;
  }

  .footer_base {
    flex-direction: column;
  }
}

/* Consultation popup. It sits over the page instead of scrolling to the form. */
.quote_popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.quote_popup.is_open {
  display: flex;
}

.quote_popup_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 10, 0.72);
  backdrop-filter: blur(3px);
}

.quote_popup_panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  color: var(--color_text);
  border-radius: 16px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s ease;
}

.quote_popup.is_open .quote_popup_panel {
  transform: none;
}

.quote_popup_panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color_ink);
}

.quote_popup .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color_teal);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.popup_lead {
  margin: 0 0 22px;
  color: var(--color_muted);
  font-size: 14.5px;
}

.popup_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.quote_popup .field {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color_ink);
}

.quote_popup .field small {
  font-weight: 400;
  color: #7c8b8c;
}

.quote_popup .field input,
.quote_popup .field select,
.quote_popup .field textarea {
  margin-top: 6px;
  border: 1px solid #d3dede;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15.5px;
  font-weight: 500;
}

.quote_popup .field textarea {
  min-height: 110px;
}

.quote_popup .field input:focus,
.quote_popup .field select:focus,
.quote_popup .field textarea:focus {
  outline: 2px solid var(--color_teal);
  outline-offset: 1px;
  border-color: var(--color_teal);
}

.quote_popup .button_teal {
  margin-top: 16px;
  border-radius: 8px;
  min-height: 48px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
}

.quote_popup .button_teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 116, 128, 0.35);
}

.quote_popup .form_status {
  margin: 14px 0 0;
  color: var(--color_muted);
  font-weight: 500;
}

.quote_popup_close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef3f3;
  color: var(--color_ink);
  cursor: pointer;
  font-size: 18px;
}

.quote_popup_close:hover {
  background: var(--color_teal);
  color: #fff;
}

.quote_popup .quote_form {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.quote_popup .field textarea {
  min-height: 72px;
}

.quote_popup .field {
  margin-bottom: 10px;
}

body.popup_open {
  overflow: hidden;
}

/* Scroll fade used on every page once JavaScript marks the document. */
.js_motion .rise_in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rise_delay, 0ms);
}

.js_motion .rise_in.is_shown {
  opacity: 1;
  transform: none;
}

.js_motion .rise_in.is_shown.studio_card:hover {
  transform: translateY(-3px);
  transition-delay: 0ms;
}

.js_motion .rise_in.is_shown.card:hover,
.js_motion .rise_in.is_shown.work_card:hover,
.js_motion .rise_in.is_shown.package_card:hover {
  transform: translateY(-6px);
  transition-delay: 0ms;
}

@keyframes popup_in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee_track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js_motion .rise_in,
  .js_motion .rise_in.is_shown,
  .quote_popup_panel,
  .card,
  .package_card,
  .work_card,
  .studio_card,
  .studio_work {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 700px) {
  .popup_grid {
    grid-template-columns: 1fr;
  }

  .quote_popup_panel {
    padding: 30px 20px 22px;
  }

  .quote_popup_panel h2 {
    font-size: 23px;
  }

  .page_hero {
    min-height: 0;
    padding: 40px 18px 32px;
  }

  .studio_heading {
    display: block;
  }
}

/* Home services and sample-work blocks, laid out like the reference studio. */
.studio_band {
  background: #fff;
}

.studio_heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1160px;
  margin-bottom: 42px;
}

.studio_heading h2 {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.studio_heading p {
  max-width: 420px;
  margin: 0;
  color: var(--color_muted);
}

.section .eyebrow,
.studio_heading .eyebrow {
  color: var(--color_teal);
}

.studio_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

.studio_card {
  position: relative;
  margin: 0;
  padding: 0 0 28px;
  background: #fff;
  border: 1px solid #e4eaea;
  border-top: 3px solid var(--color_teal);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.studio_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 19, 20, 0.09);
}

.studio_shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.studio_shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.studio_card:hover .studio_shot img,
.studio_work:hover .studio_shot img {
  transform: scale(1.04);
}

.studio_shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 75%, rgba(16, 19, 20, 0.22));
}

.studio_number {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.studio_number span {
  color: #7fd5dc;
}

.studio_body {
  position: relative;
  padding: 18px 20px 8px;
}

.studio_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #101314;
  color: #fff;
}

.studio_body h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.studio_body h3 a {
  color: inherit;
}

.studio_body p {
  margin: 0 0 16px;
  color: var(--color_muted);
}

.studio_more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 0;
  color: var(--color_ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-transform: uppercase;
}

.studio_plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #101314;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.studio_card:hover .studio_plus {
  background: var(--color_teal);
}

.studio_foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.studio_foot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color_teal);
}

.work_showcase {
  background: #fff;
}

.studio_work {
  display: block;
  background: #fff;
  border: 1px solid #e3eaea;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.studio_work:hover {
  border-color: var(--color_teal);
  box-shadow: 0 14px 34px rgba(16, 19, 20, 0.1);
}

.studio_browser {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #eef3f3;
  border-bottom: 1px solid #e3eaea;
}

.studio_browser span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5d2d2;
}

.studio_work .studio_shot {
  aspect-ratio: 16 / 10;
  background: #f7fafa;
}

.studio_work .studio_shot::after {
  display: none;
}

.studio_work .studio_shot img {
  object-fit: contain;
  object-position: center;
}

.studio_work.is_cover .studio_shot img {
  object-fit: cover;
  object-position: center top;
}

.studio_work div {
  padding: 18px 20px 20px;
}

.studio_work h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.studio_work p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color_muted);
}

@media (max-width: 980px) {
  .studio_grid {
    grid-template-columns: 1fr 1fr;
  }

  .studio_heading h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .studio_grid,
  .studio_heading {
    grid-template-columns: 1fr;
    display: block;
  }
}
