/* ==========================================================================
   What We Do template (what-we-do-template.php, page /what-we-do-two/).
   Loaded only on this template by inc/assets.php. Sections:
   1. Page overrides   2. Sticky root + work grid (from what-we-do.css)
   3. Lighthouse   4. Services embed (currently hidden)   5. Work video
   The legacy assets/css/what-we-do.css keeps its own copy for pages not migrated yet.
   ========================================================================== */

/* ---------- 1. Page overrides ----------
   This block used to be printed before <!doctype html> (quirks mode). */
    .slider-container{
        margin: 0px 0px !important;
    }
    .wwd-cta {
      padding: 0px 0px !important;
    }
    .slider-title{
        display: none !important;
    }
    .card-image{
        object-fit: cover;
        height: 100%;
    }

    /* Contact form ------------------------------------------------------ */
    .cn-contact {
      padding: clamp(80px, 10vw, 140px) 0;
    }

    .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 .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;
    }


/* The page used to render in quirks mode, which gave the form a 1em bottom margin
   and no gap under the textarea. Keep the contact card looking exactly the same. */
.cn-contact .cn-contact-card .wpcf7-form { margin-bottom: 1em; }
.cn-contact .cn-contact-card textarea { vertical-align: top; }

/* ---------- 2. Sticky root + work grid ---------- */
html.wwd-sticky-root,
html.wwd-sticky-root body {
  /* The global theme sets overflow-x:hidden on body. That promotes the
     computed overflow-y value to auto and makes body the sticky containing
     block, so sticky children scroll away with the document. `clip` prevents
     horizontal spill without creating a scrolling ancestor. */
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.wwd-auto-container {
  max-width: var(--cn-auto-container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.wwd-section-copy {
  color: var(--cn-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0 0 32px;
}

/* ---------------------------------------------------------------------- */
/* Work / selected projects                                               */
/* ---------------------------------------------------------------------- */

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

.wwd-work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.wwd-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.wwd-work-card {
  position: relative;
  text-decoration: none;
  color: var(--cn-white);
  display: flex;
  flex-direction: column;
}

.wwd-work-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.wwd-work-thumb {
  position: absolute;
  inset: 0;
}

.wwd-page .wwd-work-thumb .card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wwd-thumb { background: linear-gradient(135deg, var(--cn-cursor-big), var(--cn-cursor-accent) 60%, var(--cn-cursor-big)); }


.wwd-work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 40%);
  z-index: 1;
  pointer-events: none;
}

.wwd-work-capsules {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wwd-capsule {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cn-white);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(248, 244, 240, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wwd-capsule--active {
  background: transparent;
  border-color: rgba(248, 244, 240, 0.85);
}

.wwd-work-info {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wwd-work-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  margin: 0;
}

.wwd-work-arrow {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(248, 244, 240, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}

.wwd-work-card:hover .wwd-work-arrow {
  transform: rotate(45deg);
  background: var(--cn-white);
  color: var(--cn-black);
}

.wwd-work-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cn-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .wwd-work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wwd-work-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 3. Lighthouse (moved from assets/css/lighthouse.css) ---------- */
.cn-lighthouse-concept {
  --cn-lighthouse-ink: #fff;
  --cn-lighthouse-muted: rgba(255, 255, 255, 0.58);
  --cn-lighthouse-line: rgba(255, 255, 255, 0.14);
  border-top: 1px solid var(--cn-lighthouse-line);
  color: var(--cn-lighthouse-ink);
  background: transparent;
}

.cn-lighthouse-concept,
.cn-lighthouse-concept * {
  box-sizing: border-box;
}

.cn-lighthouse-concept__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(40px, 6vw, 84px) clamp(28px, 6vw, 96px) clamp(28px, 3vw, 40px);
}

.cn-lighthouse-concept .concept__num {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cn-lighthouse-muted);
}

.cn-lighthouse-concept .concept__title {
  margin: 12px 0 0;
  font-size: clamp(32px, 3.6vw, 58px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--cn-lighthouse-ink);
}

.cn-lighthouse-concept__head h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cn-lighthouse-muted);
}

.cn-lighthouse-concept__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cn-lighthouse-ink);
}

.cn-lighthouse-concept__head .says {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cn-lighthouse-concept__head .build {
  margin-top: 14px;
  font-size: 13px;
  color: var(--cn-lighthouse-muted);
}

.cn-lighthouse-concept .tag {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--cn-lighthouse-line);
  border-radius: 99px;
  font-size: 12px;
  color: var(--cn-lighthouse-ink);
}

.cn-lighthouse-stage {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  border-top: 1px solid var(--cn-lighthouse-line);
  background: transparent;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cn-lighthouse-stage > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cn-lighthouse-stage .stage__hint {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cn-lighthouse-muted);
}

@media (max-width: 900px) {
  .cn-lighthouse-concept__head {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cn-lighthouse-concept__head {
    grid-template-columns: 1fr;
  }

  .cn-lighthouse-stage {
    height: 78vh;
    min-height: 520px;
  }

  .cn-lighthouse-stage .stage__hint {
    width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
}

/* ---------- 4. Services embed (section is display:none in the template for now) ---------- */
    @font-face {
        font-family: "CN Dawn Graphik";
        src: url("../../dawn-services/graphik-regular.woff2") format("woff2");
        font-style: normal;
        font-weight: 400;
        font-display: swap;
    }

    @font-face {
        font-family: "CN Dawn Graphik Medium";
        src: url("../../dawn-services/graphik-medium.woff2") format("woff2");
        font-style: normal;
        font-weight: 400;
        font-display: swap;
    }

    .cn-dawn-services-page,
    .cn-dawn-services-page * { box-sizing: border-box; }

    .cn-dawn-services-page {
        color: #fff;
        font-family: "CN Dawn Graphik", Arial, sans-serif;
        font-size: 17px;
        letter-spacing: -.68px;
        line-height: 1.29;
        overflow: hidden;
    }

    .cn-dawn-services-page .o-section { position: relative; padding: 134.98px 0; }
    .cn-dawn-services-page .o-section__top--small { padding-top: 63.92px; }
    .cn-dawn-services-page .o-wrapper { position: relative; width: calc(100% - 160.14px); margin: 0 auto; }
    .cn-dawn-services-page .c-services-top-level__wrapper { min-height: 400px; }
    .cn-dawn-services-page .c-services-top-level__int { position: relative; width: 900px; margin: 0 auto; }
    .cn-dawn-services-page .c-services-top-level__title {
        max-width: 100%;
        margin: 0;
        padding: 0;
        color: #fbfaee;
        font-family: "CN Dawn Graphik Medium", "CN Dawn Graphik", Arial, sans-serif;
        font-size: 49.98px;
        font-weight: 400;
        letter-spacing: -3.06px;
        line-height: 1.07;
    }
    .cn-dawn-services-page .c-services-top-level__top,
    .cn-dawn-services-page .c-services-top-level__bottom {
        display: block;
        width: max-content;
        max-width: 100%;
        color: inherit;
        white-space: nowrap;
    }
    .cn-dawn-services-page .c-services-top-level__top { margin-left: 165.07px; }
    .cn-dawn-services-page .c-services-top-level__bottom { margin-left: 400.01px; }
    .cn-dawn-services-page .c-services-top-level__link {
        appearance: none;
        -webkit-appearance: none;
        display: inline;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        font: inherit;
        letter-spacing: inherit;
        line-height: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }
    .cn-dawn-services-page .c-services-top-level__link:hover,
    .cn-dawn-services-page .c-services-top-level__link:focus-visible,
    .cn-dawn-services-page .c-services-top-level__link.is-active { color: var(--cn-cursor-big); outline: none; }
    .cn-dawn-services-page .c-services-top-level__cols { display: flex; align-items: flex-start; }
    .cn-dawn-services-page .c-services-top-level__media {
        position: absolute;
        top: 155px;
        left: 0;
        flex-shrink: 0;
        width: 360px;
        height: 210px;
        overflow: hidden;
        border-radius: 16px;
    }
    .cn-dawn-services-page .c-services-top-level__media-asset {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .3s ease, visibility .3s ease;
    }
    .cn-dawn-services-page .c-services-top-level__media-image,
    .cn-dawn-services-page .c-services-top-level__media-video { display: block; border-radius: 16px; }
    .cn-dawn-services-page .c-services-top-level__media-asset.is-active { opacity: 1; visibility: visible; }
    .cn-dawn-services-page .c-services-top-level__content { position: relative; flex-shrink: 0; width: 496px; margin-left: 403.92px; }
    .cn-dawn-services-page .c-services-top-level__text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0 0 23.97px;
        padding: 0;
        font-family: "CN Dawn Graphik", Arial, sans-serif;
        font-size: 18.02px;
        font-weight: 400;
        letter-spacing: -.51px;
        line-height: 1.29;
        opacity: 0;
        visibility: hidden;
    }
    .cn-dawn-services-page .c-services-top-level__text.is-active { opacity: 1; visibility: visible; }

    @media screen and (min-width: 320px) {
        .cn-dawn-services-page .c-services-top-level__title { font-size: calc(6.60714vw + 28.8571px); letter-spacing: calc(-.375vw - 1.8px); }
        .cn-dawn-services-page .c-services-top-level__text { font-size: calc(.178571vw + 17.4286px); letter-spacing: calc(-.0258929vw - .427143px); }
    }
    @media screen and (min-width: 1440px) {
        .cn-dawn-services-page .c-services-top-level__title { font-size: 123.93px; letter-spacing: -7.14px; }
        .cn-dawn-services-page .c-services-top-level__text { font-size: 20.06px; letter-spacing: -.85px; }
    }
    @media (max-width: 1250px) {
        .cn-dawn-services-page .o-wrapper { width: calc(100% - 79.9px); }
    }
    @media (max-width: 960px) {
        .cn-dawn-services-page .c-services-top-level__int { width: 100%; }
        .cn-dawn-services-page .c-services-top-level__bottom { margin-left: 50%; }
    }
    @media (max-width: 900px) {
        .cn-dawn-services-page .c-services-top-level__media { width: 45%; height: 190px; }
        .cn-dawn-services-page .c-services-top-level__content { width: 45%; margin-left: calc(50% + 4px); }
    }
    @media (max-width: 700px) {
        .cn-dawn-services-page .c-services-top-level__wrapper { min-height: 0; }
        .cn-dawn-services-page .c-services-top-level__top,
        .cn-dawn-services-page .c-services-top-level__bottom { margin-left: 0; }
        .cn-dawn-services-page .c-services-top-level__media { position: relative; top: 0; height: 160px; }
        .cn-dawn-services-page .c-services-top-level__content { margin-left: 31.96px; }
        .c-services-top-level__bottom {
            padding-left: 13%;
        }
    }
    @media (min-width: 561px) {
        .cn-dawn-services-page .c-services-top-level__title { margin-bottom: 0; }
    }
    @media (max-width: 560px) {
        .cn-dawn-services-page.cn-dawn-services-embed {
            box-sizing: border-box;
            width: 100vw;
            margin-left: -20px;
        }
        .cn-dawn-services-page .o-section { padding: 42px 0 24px; }
        .cn-dawn-services-page .o-section__top--small { padding-top: 42px; }
        .cn-dawn-services-page .o-wrapper { width: calc(100% - 36px); }
        .cn-dawn-services-page .c-services-top-level__title {
            margin-bottom: 30px;
            font-size: clamp(42px, 15vw, 54px);
            letter-spacing: -.06em;
            line-height: 1.02;
            text-align: right;
        }
        .cn-dawn-services-page .c-services-top-level__cols { display: block; }
        .cn-dawn-services-page .c-services-top-level__media {
            width: 100%;
            height: auto;
            aspect-ratio: 1.9 / 1;
        }
        .cn-dawn-services-page .c-services-top-level__content {
            width: 100%;
            min-height: 110px;
            margin-top: 24px;
            margin-left: 0;
        }
        .cn-dawn-services-page .c-services-top-level__text {
            font-size: 16px;
            letter-spacing: -.02em;
            line-height: 1.25;
        }
    }
    @media (max-width: 420px) {
        .cn-dawn-services-page .c-services-top-level__media { height: auto; }
    }
    @media (prefers-reduced-motion: reduce) {
        .cn-dawn-services-page .c-services-top-level__link { transition: none; }
    }

/* ---------- 5. Work video (the animated "Ameya" thumbnail, formerly a 9 MB GIF) ---------- */
.wwd-page .wwd-work-thumb video.card-image {
  display: block;
  width: 100%;
}
