/* ==========================================================================
   About template (about-template.php) — page styles.
   Loaded only on this template by inc/assets.php. Sections:
   1. Page overrides   2. Showreel   3. Location / monolith card   4. Team
   ========================================================================== */

/* ---------- 1. Page overrides ----------
   This block used to be printed before <!doctype html>, which put the whole page
   in quirks mode. Some rules target the contact-form layout used elsewhere. */
    .slider-container{
        margin: 0px 0px !important;
    }
    /* Bottom padding stays with style.css (100px, 30px on mobile): this override used
       to load before style.css, so only its top/side padding ever applied. */
    .wwd-cta {
      padding-top: 0 !important;
      padding-inline: 0 !important;
    }
    .slider-title{
        display: none !important;
    }
    .card-image{
        object-fit: cover;
        height: 100%;
    }

    /* Contact form ------------------------------------------------------ */
    .cn-contact {
      padding: clamp(80px, 10vw, 140px) 0;
      border-top: 1px solid var(--cn-line);
    }

    .cn-contact-copy {
      position: static;
    }

    .cn-contact-card {
      background: rgba(248, 244, 240, 0.04);
      border: 1px solid var(--cn-line);
      border-radius: 24px;
      padding: clamp(28px, 4vw, 48px);
    }

    .cn-form-row {
      margin-bottom: 22px;
    }

    .cn-form-row--two {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
    }

    .cn-form-field label {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--cn-muted);
    }

    .cn-contact-card input[type="text"],
    .cn-contact-card input[type="email"],
    .cn-contact-card input[type="tel"],
    .cn-contact-card select,
    .cn-contact-card textarea {
      width: 100%;
      background: rgba(248, 244, 240, 0.05);
      border: 1px solid var(--cn-line);
      border-radius: 14px;
      color: var(--cn-white);
      font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
      font-size: 0.98rem;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .cn-contact-card textarea {
      min-height: 100px;
      resize: vertical;
    }

    .cn-contact-card ::placeholder {
      color: var(--cn-muted-2);
      opacity: 1;
    }

    .cn-contact-card input:focus,
    .cn-contact-card select:focus,
    .cn-contact-card textarea:focus {
      outline: none;
      border-color: var(--cn-pink);
      background: rgba(248, 244, 240, 0.08);
      box-shadow: 0 0 0 4px rgba(88, 164, 255, 0.16);
    }

    .cn-contact-card select {
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8f4f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      background-size: 18px;
      padding-right: 46px;
      cursor: pointer;
    }

    .cn-contact-card select option {
      background: var(--cn-bg-soft);
      color: var(--cn-white);
    }

    .cn-contact-card input[type="submit"] {
      appearance: none;
      -webkit-appearance: none;
      border: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: linear-gradient(266deg, var(--cn-pink) -3%, var(--cn-red) 104%);
      color: #fff;
      font-weight: 600;
      font-size: 15px;
      font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    }

    .cn-contact-card input[type="submit"]:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 14px 40px -8px rgba(246, 63, 149, 0.75);
    }

    .cn-contact-card input[type="submit"]:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .cn-contact-card .wpcf7-spinner {
      margin-left: 12px;
      vertical-align: middle;
    }

    .cn-contact-card .wpcf7-not-valid-tip {
      position: static !important;
      display: block !important;
      width: auto !important;
      height: auto !important;
      background: none !important;
      color: #ff8a80 !important;
      font-size: 0.82rem !important;
      text-indent: 0 !important;
      padding: 6px 2px 0 !important;
      margin: 0 !important;
    }

    .cn-contact-card .wpcf7-not-valid-tip::before,
    .cn-contact-card .wpcf7-not-valid-tip::after {
      content: none !important;
    }

    .cn-contact-card .wpcf7-response-output {
      float: none !important;
      width: auto !important;
      margin: 22px 0 0 !important;
      border-radius: 14px !important;
      padding: 14px 18px !important;
      font-size: 0.92rem !important;
      border: 1px solid var(--cn-line) !important;
    }

    .cn-contact-card .wpcf7-mail-sent-ok {
      background: rgba(90, 200, 130, 0.16) !important;
      color: #8ff0b2 !important;
    }

    .cn-contact-card .wpcf7-validation-errors,
    .cn-contact-card .wpcf7-mail-sent-ng {
      background: rgba(255, 100, 100, 0.14) !important;
      color: #ffb3b3 !important;
    }

    @media (max-width: 1024px) {
      .wwd-sticky-content {
        position: static;
      }
    }

    @media (max-width: 640px) {
      .cn-form-row--two {
        grid-template-columns: 1fr;
      }
    }
    .cn-form-row p{
        margin: 0px !important;
    }
    .cn-form-submit-row p{
        display: flex;
        position: relative;
    }
    .wpcf7-spinner{
        position: absolute !important;
        right: -70px;
        top: 10px;
    }
    .wwd-manifesto{
        padding: clamp(50px, 14vw, 50px) 0 !important;
    }
    .wwd-testimonials{
        padding: clamp(50px, 10vw, 50px) 0 !important;
    }


/* ---------- 2. Showreel ----------
   Reserve the device-specific frame before the video loads. */
.cn-about-showreel { margin: 0; }
.cn-about-showreel video { display: block; width: 100vw; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #08488f; }
@media (max-width: 768px) {
  .cn-about-showreel video { aspect-ratio: 9 / 16; }
}

/* ---------- 3. Location / monolith card ---------- */
.cn-about-page .location-globe-container {
  position: relative;
  width: min(100%, 540px);
  min-width: 0;
  aspect-ratio: 1;
  justify-self: start;
  isolation: isolate;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .cn-about-page .location-globe-container { width: min(100%, 390px); }
}

@media (max-width: 767px) {
  .cn-about-page .location-globe-container {
    order: 2;
    width: min(100%, 360px);
    justify-self: center;
  }
}

    .cn-monolith {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: transparent;
      cursor: grab;
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
    }
    .cn-monolith:active { cursor: grabbing; }
    .cn-monolith:focus-visible { outline: 2px solid #58a4ff; outline-offset: -2px; }
    .cn-monolith > canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      filter: grayscale(1);
    }
    .cn-monolith__face {
      position: absolute;
      left: 50%;
      bottom: 52px;
      transform: translateX(-50%);
      text-align: center;
      color: #fff;
      pointer-events: none;
      z-index: 3;
    }
    .cn-monolith__face b {
      display: block;
      font-size: clamp(20px, 2.4vw, 30px);
      letter-spacing: -.03em;
    }
    .cn-monolith__face span,
    .cn-monolith__hint {
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .58);
    }
    .cn-monolith__hint {
      position: absolute;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      white-space: nowrap;
      pointer-events: none;
      z-index: 3;
    }

/* ---------- 4. Team ---------- */
/* The two-person portrait gallery belongs only to the About template. */
.cn-about-team {
  padding: clamp(72px, 9vw, 132px) 0 clamp(88px, 12vw, 160px);
}

.cn-about-team__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.cn-about-team__heading {
  margin: 24px 0 0;
  color: var(--cn-white);
  font: 500 clamp(42px, 6vw, 80px)/1.06 var(--cn-font);
  letter-spacing: -.045em;
}

.cn-about-team__intro {
  max-width: 350px;
  margin: 0 0 5px auto;
  color: var(--cn-muted);
  font-size: var(--full-website-paragraph-font-size);
  line-height: 1.7;
}

.cn-about-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6.5vw, 88px);
}

.cn-team-member { min-width: 0; }

.cn-team-member__portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #182331;
  color: #fff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.cn-team-member:nth-child(2) .cn-team-member__portrait {
  background: #302218;
}

.cn-team-member__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1);
  transition: transform .75s cubic-bezier(.2, .7, .2, 1), filter .65s ease;
}

.cn-team-member__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 42%, rgba(0, 0, 0, .55));
  pointer-events: none;
}

.cn-team-member__number {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .12em;
}

.cn-team-member__prompt {
  position: absolute;
  bottom: 34px;
  left: 28px;
  z-index: 2;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.cn-team-member__plus {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(10, 10, 12, .2);
  backdrop-filter: blur(10px);
  font: 300 30px/1 var(--cn-font);
  transition: transform .4s ease, background .3s ease, color .3s ease;
}

.cn-team-member__portrait:hover img,
.cn-team-member__portrait:focus-visible img { filter: grayscale(0); }
.cn-team-member__portrait:hover .cn-team-member__plus,
.cn-team-member__portrait:focus-visible .cn-team-member__plus { transform: rotate(90deg); background: #f8f4f0; color: #0e0e10; }
.cn-team-member__portrait:hover .cn-team-member__prompt,
.cn-team-member__portrait:focus-visible .cn-team-member__prompt { opacity: 1; transform: none; }

.cn-team-member__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.cn-team-member__role {
  margin: 0 0 8px;
  color: var(--cn-muted);
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cn-team-member__name {
  margin: 0;
  color: var(--cn-white);
  font-weight: 500;
  font-family: var(--cn-font);
  font-size: var(--full-website-paragraph-font-size);
  letter-spacing: -.035em;
}

.cn-team-socials { display: flex; gap: 8px; }
.cn-team-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cn-line);
  border-radius: 50%;
  color: var(--cn-white);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cn-team-social svg { width: 15px; height: 15px; }
a.cn-team-social:hover { border-color: var(--cn-pink); background: rgba(88, 164, 255, .12); transform: translateY(-2px); }
.cn-team-social--placeholder { color: var(--cn-muted); }
.cn-team-member__portrait:focus-visible,
.cn-team-social:focus-visible,
.cn-team-profile__close:focus-visible,
.cn-team-profile__contact:focus-visible { outline: 2px solid var(--cn-pink); outline-offset: 5px; }

.cn-team-reveal .cn-team-member {
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.cn-team-reveal .cn-team-member:not(.is-visible) { opacity: 0; transform: translateY(48px); }

html.cn-team-modal-open,
html.cn-team-modal-open body { overflow: hidden !important; }
.cn-team-profile {
  position: fixed;
  inset: 0;
  width: min(1000px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 0;
  /* The custom cursor is moved into the top-layer dialog. Clip its moving
     fixed-position box here so it cannot enlarge the dialog's scroll area. */
  overflow: hidden;
  border: 1px solid var(--cn-line);
  border-radius: 20px;
  background: #101113;
  color: var(--cn-white);
  font-family: var(--cn-font);
}
.cn-team-profile::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(12px); }
.cn-team-profile[open] { animation: cnTeamProfileFadeIn .35s ease both; }
.cn-team-profile__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  max-height: calc(100svh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 244, 240, .3) transparent;
}
.cn-team-profile[open] .cn-team-profile__inner { animation: cnTeamProfileContentIn .35s ease both; }
.cn-team-profile__portrait { width: 100%; height: 100%; min-height: min(540px, calc(100svh - 48px)); object-fit: cover; object-position: center 35%; }
.cn-team-profile__body { align-self: center; padding: 72px 48px 48px; }
.cn-team-profile__eyebrow { margin: 0 0 40px; color: var(--cn-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.cn-team-profile__name { margin: 0 0 20px; font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.cn-team-profile__bio { margin: 0 0 28px; color: var(--cn-muted); font-size: 16px; line-height: 1.8; }
.cn-team-profile__contact { display: inline-flex; align-items: center; gap: 24px; margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--cn-line); color: var(--cn-white); font-size: 14px; text-decoration: none; }
.cn-team-profile__close { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(248,244,240,.25); border-radius: 50%; background: #101113; color: #fff; font: 300 28px/1 var(--cn-font); cursor: pointer; }
/* Keep transforms off the dialog itself. A transformed dialog becomes the
   containing block for its fixed custom cursor and offsets it from the mouse. */
@keyframes cnTeamProfileFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cnTeamProfileContentIn { from { transform: translateY(16px); } to { transform: none; } }

@media (max-width: 767px) {
  .cn-about-team__head { grid-template-columns: 1fr; gap: 24px; }
  .cn-about-team__intro { max-width: 38ch; margin-left: 0; }
  .cn-about-team__grid { grid-template-columns: 1fr; gap: 52px; }
  .cn-team-member:nth-child(2) { padding-top: 0; }
  .cn-team-member:nth-child(2) .cn-team-member__portrait { aspect-ratio: 4 / 5; }
  .cn-team-member__prompt { opacity: 1; transform: none; }
  .cn-team-member__caption { padding-top: 20px; gap: 16px; }
  .cn-team-profile { width: calc(100% - 28px); max-height: calc(100svh - 28px); border-radius: 16px; }
  .cn-team-profile__inner { grid-template-columns: 1fr; max-height: calc(100svh - 28px); }
  .cn-team-profile__portrait { min-height: 0; height: 300px; object-position: center 30%; }
  .cn-team-profile__body { padding: 32px 26px; }
  .cn-team-profile__eyebrow { margin-bottom: 24px; }
  .cn-team-profile__close { position: sticky; top: 16px; float: right; margin: 16px 16px -58px 0; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-about-team *, .cn-about-team *::before, .cn-about-team *::after { animation: none !important; transition: none !important; }
  .cn-team-reveal .cn-team-member:not(.is-visible) { opacity: 1; transform: none; }
  .cn-team-member__portrait:hover img, .cn-team-member__portrait:focus-visible img { transform: none; }
}

/* Crown ring, adapted from new-pages/crownindex.html. */
.cn-about-crown {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    pointer-events: auto;
}
.cn-about-crown__canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.cn-about-crown.is-ready .cn-about-crown__canvas { opacity: 1; }
.cn-about-crown.is-ready .cn-about-crown__fallback { opacity: 0; }
.cn-about-crown__fallback {
    position: absolute;
    inset: 18%;
    border: clamp(28px, 6vw, 68px) double var(--cn-orange);
    border-inline-color: var(--cn-purple);
    border-radius: 50%;
    transform: rotate(-28deg) scaleY(0.75);
}
