/* Isolated studio portrait preview. Existing sections keep their shared styles. */
.studio-hero {
  min-height: 740px;
  height: min(100svh, 980px);
  background: #090a0a;
}

.studio-hero .hero-bg {
  top: 86px;
}

.studio-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  opacity: 1;
}

.studio-hero .hero-overlay {
  top: auto;
  height: 150px;
  background: linear-gradient(0deg, var(--bg-dark), transparent);
  pointer-events: none;
}

.studio-hero .hero-content {
  width: 100%;
  max-width: var(--max-width);
  padding: 106px 24px 48px;
  text-align: left;
}

.studio-hero .hero-copy {
  max-width: 510px;
  width: 47%;
}

.studio-hero .hero-pre {
  margin-bottom: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
}

.studio-hero .hero-title {
  font-size: clamp(3.75rem, 7vw, 6rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.studio-hero .hero-tagline {
  max-width: 440px;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.75;
  letter-spacing: 0;
  color: #d2d2d2;
  margin-bottom: 17px;
  text-wrap: balance;
}

.studio-hero .hero-subtitle {
  max-width: 360px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #ababab;
  font-weight: 400;
  margin-bottom: 32px;
}

.studio-hero .hero-cta {
  gap: 14px;
  min-height: 52px;
  padding: 13px 25px;
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 650;
  font-size: 0.9rem;
  backdrop-filter: none;
}

.studio-hero .hero-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0a0a0a;
}

.studio-hero .hero-cta:hover svg { transform: none; }
.studio-hero .hero-cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.studio-hero .hero-scroll-indicator { bottom: 26px; }
.studio-hero .scroll-line { height: 36px; }

/* Desktop: widen the portrait beyond the right edge so the face moves toward the centre.
   Face sits at ~66% (>900px), ~64% (>=1400px) and ~62% (>=1900px) of the hero width. */
@media (min-width: 901px) {
  .studio-hero .hero-bg img { width: 112%; max-width: none; margin-left: -12%; object-position: right top; }
}
@media (min-width: 1400px) {
  .studio-hero .hero-bg img { width: 120%; margin-left: -20%; }
}
@media (min-width: 1900px) {
  .studio-hero .hero-bg img { width: 125%; margin-left: -25%; }
}

@media (min-width: 1900px) {
  .studio-hero .hero-bg {
    max-width: 1920px;
    left: 50%;
    right: auto;
    width: 100%;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .studio-hero {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 78px;
  }

  .studio-hero .hero-bg {
    position: relative;
    inset: auto;
    height: clamp(340px, 83vw, 510px);
    width: 100%;
    flex: none;
  }

  .studio-hero .hero-bg img {
    object-position: 85% top;
  }

  .studio-hero .hero-overlay { height: 80px; }

  .studio-hero .hero-content {
    padding: 30px 28px 64px;
    max-width: 640px;
    margin: 0 auto;
  }

  .studio-hero .hero-copy { width: 100%; max-width: none; }
  .studio-hero .hero-pre { margin-bottom: 15px; }
  .studio-hero .hero-title {
    font-size: clamp(3.3rem, 10vw, 4.5rem);
    margin-bottom: 22px;
  }
  .studio-hero .hero-tagline { max-width: 400px; font-size: 0.95rem; }
  .studio-hero .hero-subtitle { max-width: 390px; font-size: 1rem; margin-bottom: 26px; }
  .studio-hero .hero-scroll-indicator { display: none; }
}

@media (max-width: 380px) {
  .studio-hero .hero-content { padding-inline: 22px; }
  .studio-hero .hero-title { font-size: 3.15rem; }
}

/* Shared decorative layer carries the network across the hero/about boundary. */
.knowledge-scene { position: relative; isolation: isolate; }
.knowledge-scene > .hero-particles {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}
.knowledge-scene .about > .container { position: relative; z-index: 3; }
.knowledge-ambient {
  position: absolute;
  inset: -24px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 19% 38%, rgba(157, 38, 48, 0.075), transparent 50%);
  will-change: transform;
}
.service-card {
  transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease, background 350ms ease;
}
.service-card .service-icon {
  transition: opacity 300ms ease, filter 300ms ease, transform 350ms ease;
}
.service-card:focus-within {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}
.service-card:focus-within::before { opacity: 1; }
.service-card:focus-within .service-icon { opacity: 1; filter: drop-shadow(0 0 7px rgba(230, 57, 70, 0.3)); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22), 0 0 22px rgba(230, 57, 70, 0.035);
  }
  .service-card:hover .service-icon {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 7px rgba(230, 57, 70, 0.3));
  }
}
@media (hover: none) {
  .service-card:hover { transform: none; }
}
@media (max-width: 900px) {
  .knowledge-scene > .hero-particles { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .knowledge-ambient { transform: none !important; will-change: auto; }
  .service-card:hover, .service-card:hover .service-icon { transform: none; }
}

/* A short arrival signal above each section; it plays only on first entry. */
.knowledge-heading { position: relative; }
.knowledge-heading-marker {
  position: absolute;
  width: 6px;
  height: 6px;
  top: -23px;
  left: calc(50% - 3px);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.42;
  pointer-events: none;
}
.morpheus-text .knowledge-heading-marker { left: 0; }
.knowledge-heading-marker::before {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 2.5px;
  width: 1px;
  height: 30px;
  background: linear-gradient(transparent, rgba(230,57,70,.5));
}
.knowledge-heading-marker::after {
  content: '';
  position: absolute;
  left: 1px;
  top: -32px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff9ba2;
  opacity: 0;
}
.knowledge-arrived .knowledge-heading-marker { animation: knowledgeArrival 1200ms ease-out both; }
.knowledge-arrived .knowledge-heading-marker::after { animation: knowledgeArrivalTravel 650ms ease-in both; }
@keyframes knowledgeArrivalTravel {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: .85; }
  85% { opacity: .85; }
  100% { opacity: 0; transform: translateY(33px); }
}
@keyframes knowledgeArrival {
  0%, 45% { opacity: .42; box-shadow: 0 0 0 0 rgba(230,57,70,0); }
  60% { opacity: 1; box-shadow: 0 0 0 7px rgba(230,57,70,.12), 0 0 14px rgba(230,57,70,.5); }
  100% { opacity: .55; box-shadow: 0 0 0 12px rgba(230,57,70,0); }
}
@media (prefers-reduced-motion: reduce) {
  .knowledge-arrived .knowledge-heading-marker,
  .knowledge-arrived .knowledge-heading-marker::after { animation: none; }
  .knowledge-heading-marker::after { display: none; }
}
