/* Local review draft. No header separator is selected or enabled here. */
:root { --dg-control-radius: 2px; }
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply {
  border-radius: var(--dg-control-radius) !important;
}
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::before {
  border-radius: var(--dg-control-radius);
}
.dg-studio #contact .dg-messenger-button { border-radius: var(--dg-control-radius) !important; }

/* Remove only the production-card rules identified in the owner's photographs. */
.dg-studio #projects .dg-production-card { border-bottom: 0; padding-bottom: 8px; }
.dg-studio #projects .dg-production-grid { row-gap: 28px; }

/* Clocks share the very same parent granite surface as Personal Experience.
   Fade the photograph itself instead of painting opaque rectangles over that surface. */
.dg-studio #top #dg-clock-review {
  background: transparent !important;
}
.dg-studio #dg-clock-review .dg-clock-photo img {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 75%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 75%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Larger existing photographs, with a quiet corner and edge treatment. */
.dg-studio #services .dg-services-photo-cell { border-radius: 10px; }
.dg-studio #services .dg-services-photo-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 10px 2px #16161650;
  pointer-events: none;
}
@media (min-width: 901px) {
  .dg-studio #services > .mx-auto {
    width: calc(50% - var(--dg-gutter) - 18px);
    max-width: none;
    margin-left: var(--dg-gutter);
    margin-right: auto;
    padding-inline: 0;
  }
  .dg-studio #services > .dg-services-photo-grid {
    width: calc(48% - var(--dg-gutter) - 16px);
    gap: clamp(12px, 1.3vw, 18px);
  }
}
@media (max-width: 900px) {
  .dg-studio #services > .dg-services-photo-grid { max-width: 720px; }
}

/* The photographed rule above the first production row, not any title or copy. */
.dg-studio #projects .dg-production-heading { border-bottom: 0; }

/* Restore the v88 hero sizes only. Its original responsive title rule remains in index.html. */
.dg-studio #top .dg-hero-copy > p.dg-hero-intro[data-hero-fade] {
  font-size: 17px;
  font-weight: 500;
  color: var(--dg-white, #EEE9E1);
  opacity: 1;
}
@media (max-width: 767px) {
  .dg-studio #top .dg-hero-copy > p.dg-hero-intro[data-hero-fade] { font-size: 16px; }
}
.dg-studio #about p,
.dg-studio #services article p:not(.dg-service-number),
.dg-studio #top .dg-hero-services .dg-service-caption {
  color: var(--dg-white, #EEE9E1);
  font-weight: 500;
  opacity: 1;
}
.dg-studio #dg-clock-review .dg-clock-heading { width: 100%; align-items: stretch; }
.dg-studio #dg-clock-review .dg-clock-heading h2 { text-align: center; }
.dg-studio #dg-clock-review .dg-clock-heading p {
  text-align: center;
  padding-right: 0;
  color: var(--dg-white, #EEE9E1);
}
.dg-studio #dg-clock-review .dg-clock-photo::after {
  content: none;
  background: none;
}

/* Equal, undistorted cover viewports for the two identified film stills.
   Their dialogs retain the original complete images and contain treatment. */
.dg-studio #projects .dg-production-image-button:is(
  [data-project-dialog="project-ping-pong-the-triumph"],
  [data-project-dialog="project-breaking-through"]
) img { object-fit: cover; object-position: center; }

/* Keep the unchanged geographic line under the hero actions and before its title. */
.dg-studio #top .dg-hero-copy > .dg-hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--dg-white, #EEE9E1);
  font-size: 14px;
  line-height: 1.5;
}
.dg-location-globe { display: block; flex: 0 0 21px; overflow: visible; }
.dg-location-globe .dg-globe-land { animation: dg-globe-turn 14s linear infinite; }
@keyframes dg-globe-turn { to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) {
  .dg-location-globe .dg-globe-land { animation: none; }
}

/* Page 8 of the supplied brand guide: display headings, Inter Tight body copy. */
.dg-studio #top .dg-hero-copy > p.dg-hero-intro[data-hero-fade],
.dg-studio #about p,
.dg-studio #services article p:not(.dg-service-number),
.dg-studio #top .dg-hero-services .dg-service-caption {
  font-family: 'Inter Tight', var(--font-sans), sans-serif;
}
.dg-studio #about h2,
.dg-studio #about .dg-markets-title {
  font-family: var(--dg-display-font);
  color: var(--dg-gold, #F0BF76);
  font-weight: 400;
}

/* Remove the older blue-grey light patch at the clock/Experience boundary. */
.dg-studio #top > .dg-ambient-light { background: none; }

/* Match the compact account controls without changing the talent link target. */
.dg-studio #talent .dg-more-talents-button { border-radius: 2px !important; }

/* A narrow brand-gold marker distinguishes the selected language. */
.dg-studio header.dg-compact-header #dg-language-switcher button {
  position: relative;
}
.dg-studio header.dg-compact-header #dg-language-switcher button[aria-pressed="true"] {
  box-shadow: none;
}
.dg-studio header.dg-compact-header #dg-language-switcher button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 24px;
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background-color: #F0BF76;
  background-image: linear-gradient(100deg, #F0BF76 38%, #FFE6BA 50%, #F0BF76 62%);
  background-size: 220% 100%;
  background-position: 100% 50%;
  animation: dg-selected-language-sheen 8s ease-in-out infinite;
}
@keyframes dg-selected-language-sheen {
  0%, 55% { background-position: 100% 50%; }
  85%, 100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-studio header.dg-compact-header #dg-language-switcher button[aria-pressed="true"]::after {
    animation: none !important;
    background-image: none;
  }
}

/* Quiet left-to-right glints on the two existing primary hero actions. */
.dg-studio #top .dg-hero-actions > button:first-child,
.dg-studio #top .dg-hero-actions > .dg-casting-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dg-studio #top .dg-hero-actions > button:first-child::after,
.dg-studio #top .dg-hero-actions > .dg-casting-button::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255,246,222,.36) 50%, transparent 72%);
  transform: translateX(-140%);
  animation: dg-hero-action-glint 8s ease-in-out infinite;
}
@keyframes dg-hero-action-glint {
  0%, 60% { transform: translateX(-140%); }
  82%, 100% { transform: translateX(140%); }
}
/* A shallow leaf-like opening; existing buttons, keyboard and hidden state stay intact. */
.dg-studio #faq .dg-faq-questions [data-faq-panel][aria-hidden="false"] {
  transform-origin: center top;
  animation: dg-faq-leaf-open 280ms ease-out both;
}
@keyframes dg-faq-leaf-open {
  from { opacity: .25; transform: perspective(800px) rotateX(-5deg) translateY(-3px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-studio #top .dg-hero-actions > button:first-child::after,
  .dg-studio #top .dg-hero-actions > .dg-casting-button::after { animation: none !important; content: none; }
  .dg-studio #faq .dg-faq-questions [data-faq-panel][aria-hidden="false"] { animation: none !important; transform: none; }
}

/* Requested v96 follow-up: lift Experience and expose the common lower canvas.
   The previous full-width opaque fade produced a horizontal shade change at its top. */
.dg-studio #top > #about .dg-experience-background::after {
  content: none !important;
  background: none !important;
}
@media (min-width: 901px) {
  .dg-studio #top > #about { padding-top: clamp(28px, 3vw, 44px); }
}
@media (min-width: 768px) and (max-width: 900px) {
  /* Keep the 470px portrait above copy, with a compact 20px gap. */
  .dg-studio #top > #about { padding-top: 490px; }
}
@media (max-width: 767px) {
  /* Preserve the existing 360px mobile portrait without covering its face. */
  .dg-studio #top > #about { padding-top: 374px; }
}

/* Latest placement: the existing portfolio caption follows the Projects heading. */
.dg-studio #projects .dg-production-heading > div > .dg-production-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  color: var(--dg-muted, #B8B1A7);
}
.dg-studio #projects .dg-production-kicker .dg-portfolio-camera {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}
.dg-studio #top .dg-hero-copy > .dg-hero-location {
  color: var(--dg-muted, #B8B1A7);
}
/* Muted brand ivory applies only to the location text, not the colored globe. */
.dg-studio #top .dg-hero-copy > .dg-hero-location { color: var(--dg-white, #EEE9E1); }
.dg-studio #top .dg-hero-copy > .dg-hero-location > span { opacity: .72; }
/* Remove the outer empty band between the four equal Services cells and Projects. */
.dg-studio #top > #services { padding-bottom: clamp(20px, 2.5vw, 32px); }
.dg-studio #top > #projects.dg-productions { padding-top: 24px; }
@media (max-width: 900px) {
  .dg-studio #services > .dg-services-photo-grid { width: calc(100% - 2 * var(--dg-gutter)); }
}
/* Subtle alpha at photo edges exposes the same canvas, without changing crops or pixels. */
.dg-studio #services .dg-services-photo-cell,
.dg-studio #projects .dg-production-image-button { background: transparent; }
.dg-studio #services .dg-services-photo-cell::after { content: none; }
.dg-studio #services .dg-services-photo-cell img,
.dg-studio #projects .dg-production-image-button img,
.dg-studio #projects .dg-production-image-button::after {
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent),
    linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent),
    linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Align the existing FAQ questions with the selected photograph, without extra copy. */
.dg-studio #faq.dg-faq-layout { align-items: start; }
.dg-studio #faq.dg-faq-layout > .dg-faq-selected-composite { align-self: start; }
.dg-studio #faq.dg-faq-layout .dg-faq-selected-composite::after { content: none; }
.dg-studio #faq.dg-faq-layout .dg-faq-selected-composite img {
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(180deg, transparent, #000 6%, #000 98.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(180deg, transparent, #000 6%, #000 98.5%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Keep both Services columns in normal flow so the photo grid never leaves
   a reserved absolute-positioning void or overlaps the following section. */
@media (min-width: 901px) {
  .dg-studio #top > #services {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 72px);
    padding-inline: var(--dg-gutter);
    align-items: start;
  }
  .dg-studio #services > .mx-auto {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .dg-studio #services > .dg-services-photo-grid {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 54px 0 0;
  }
  .dg-studio #services article { padding-block: 12px; }
}
