/* dorukulasx content overrides — loaded after the Webflow stylesheet. */

/* ---------- Name wordmark (nav + tablet/mobile hero) ---------- */
.nav-brand svg,
.hero-name-svg {
  overflow: visible; /* the cedilla of Ş hangs below the original 138x63 box */
}
.nav-brand text {
  transition: fill var(--animation-default);
}
.hero-name-svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

/* ---------- Hero social buttons (reuse the old "next race" card slot so its
   scroll hide/show clip animation keeps working) ---------- */
.home-hero-next-race-w.is-socials {
  left: auto;
  right: var(--gap);
  width: auto;
  height: auto;
  color: var(--color--dark-green);
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  flex-flow: row;
  display: flex;
}
.hero-social {
  /* mirrors the menu button (.nav-ham, drawn by Rive in rive/btn-ui.riv "hamburger"):
     transparent, 2px dark outline, and on hover the accent pours in from the top edge */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  color: var(--color--dark-green);
  border: 2px solid var(--color--dark-green);
  border-radius: .8rem;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  width: 4.5rem; /* the menu button is 3.75rem shown at 1.2x by the nav script on desktop */
  height: 4.5rem;
  display: flex;
  transition: border-color var(--animation-default), color var(--animation-default);
}
/* Port of the menu button's "circle-hover": an ellipse centred on the top edge grows from
   50x0 to 116x136 (in the 62-unit artboard) = rx 40.3% -> 93.5%, ry 0 -> 109.7%.
   In: 500ms, keyframe ease cubic-bezier(.6,.213,.124,1).
   Out: 500ms, the same keyframe ease run backwards under the state transition ease
   cubic-bezier(.13,.66,.5,1), sampled into linear(). */
.hero-social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color--lime);
  clip-path: ellipse(40.3% 0% at 50% .8%);
  transition: clip-path .5s cubic-bezier(.13, .66, .5, 1);
  transition: clip-path .5s linear(0, .012, .044, .095, .171, .288, .472, .655, .764, .83, .873, .904, .927, .944, .958, .968, .976, .983, .988, .992, .995, .997, .999, 1, 1);
}
.hero-social svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}
@media (hover: hover) {
  .hero-social:hover::before {
    clip-path: ellipse(93.5% 109.7% at 50% .8%);
    transition: clip-path .5s cubic-bezier(.6, .213, .124, 1);
  }
}
.hero-social:focus-visible {
  outline: 2px solid var(--color--dark-green);
  outline-offset: 3px;
}

/* tablet + phone: bottom-right belongs to the "tap to lock" control, so sit bottom-left */
@media screen and (max-width: 991px) {
  .home-hero-next-race-w.is-socials {
    left: var(--gap);
    right: auto;
  }
}
@media screen and (max-width: 479px) {
  .home-hero-next-race-w.is-socials {
    display: flex; /* the old card was hidden on phones */
  }
  .hero-social {
    border-radius: .75rem;
    width: min(4rem, 60px);
    height: min(4rem, 60px);
  }
}
/* touch layouts: the buttons sit on the portrait's black shirt, so use the menu button's
   on-dark state (filled with the light tone, no visible outline) */
@media screen and (max-width: 991px) {
  .hero-social {
    background-color: var(--color--white);
    border-color: var(--color--white);
    color: var(--color--dark-green);
  }
}

/* ---------- Nav: STORE button removed, keep the menu button on the right ---------- */
.btn-layout.is-nav .nav-ham {
  margin-left: auto;
}

/* ---------- Menu: DU monogram + slogan in place of the helmet emblem ---------- */
.nav-helmet-rive-w .menu-du-logo {
  display: block;
  margin-left: auto; /* centred like the helmet it replaces (.base-helmet-rive) */
  margin-right: auto;
  width: 5.25rem;
  height: auto;
  color: var(--color--green-off-white-2);
  fill: currentColor;
}
@media screen and (max-width: 479px) {
  .nav-helmet-rive-w .menu-du-logo {
    width: 4.5rem;
  }
}

/* ---------- Menu: section links (#...) must never look like "the current page".
   Webflow marks in-view section links as .w--current, which would strike them through
   and disable them; only the real Home link keeps that state. ---------- */
.nav-menu-link-w.w--current[href^="#"] {
  pointer-events: auto;
  color: inherit;
  cursor: pointer;
}
.nav-menu-link-w.w--current[href^="#"] .nav-menu-link-current-svg {
  visibility: hidden;
}

/* ---------- Signature section: DU monogram in place of the original mark, signature images ---------- */
.image.is-du-logo {
  width: 4.6rem;             /* the DU mark is horizontal (the original mark was 1.875 x 2.125rem) */
  height: auto;
}
.horizontal-rive-placeholder img,
.image.is-footer-rive,
.image.is-home-marquee-sig-img {
  object-fit: contain;
}

/* ---------- Signature canvas: same canvas-to-photo ratio as desktop (800 / 472 = 1.69) so the
   signature covers the photo the same way on tablets and phones (Rive re-renders crisply) ---------- */
@media screen and (max-width: 991px) {
  .marquee-gl-rive-target {
    width: 69vw;             /* photo 45.5vw at 768 -> 1.69x */
  }
}
@media screen and (max-width: 479px) {
  .marquee-gl-rive-target {
    width: 117vw;            /* photo 69.4vw at 402 -> 1.69x; only the transparent canvas margin overflows */
  }
}

/* ---------- Quote signatures: the box was sized for the original, very wide mark (4.125 x 1.875rem);
   follow the height and let the width come from the signature itself ---------- */
.horizontal-rive-placeholder {
  aspect-ratio: auto;
  width: auto;
  height: 2.9rem;
}
.horizontal-rive-placeholder img {
  width: auto;
  height: 100%;
}
@media screen and (max-width: 991px) {
  .horizontal-rive-placeholder { width: auto; height: 3.4rem; }
}
@media screen and (max-width: 479px) {
  .horizontal-rive-placeholder { width: auto; height: 2.9rem; }
}

/* ---------- Crest (crown + sword) above the Latin legion line, in place of the helmet emblem.
   Draws in from the blade tip up to the crown, like the original helmet line art did on scroll. ---------- */
.crest-mark-w {
  display: flex;
  justify-content: center;
  color: var(--color--lime);           /* theme accent (ice blue) */
}
.crest-mark {
  display: block;
  width: auto;
  height: 3.6rem;
  overflow: visible;
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  transform: translateY(.75rem);
  transition: clip-path 1.2s cubic-bezier(.6, .213, .124, 1), opacity .5s ease, transform 1.2s cubic-bezier(.6, .213, .124, 1);
}
.crest-mark-w.is-in .crest-mark {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: none;
}
@media screen and (max-width: 479px) {
  .crest-mark { height: 3.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .crest-mark { transition: none; }
}

/* laurels (from the original emblem) open out from behind the sword once it has drawn in */
.crest-laurel {
  transform-box: fill-box;
  transition: transform 1s cubic-bezier(.6, .213, .124, 1) .35s, opacity .6s ease .35s;
  opacity: 0;
}
.crest-laurel-l { transform-origin: 100% 100%; transform: rotate(18deg) translateX(12%); }
.crest-laurel-r { transform-origin: 0% 100%; transform: rotate(-18deg) translateX(-12%); }
.crest-mark-w.is-in .crest-laurel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .crest-laurel { transition: none; } }

/* ---------- Footer: crest in place of the helmet figure (same slot, same bottom anchoring) ---------- */
.footer-bg-img.is-crest {
  width: 34rem;
  height: auto;
  bottom: 7rem;
  object-fit: contain;
  filter: drop-shadow(0 0 2.5rem rgba(165, 204, 255, .18));
}
@media screen and (max-width: 991px) {
  .footer-bg-img.is-crest { width: 26rem; height: auto; bottom: 6.5rem; }
}
@media screen and (max-width: 479px) {
  .footer-bg-img.is-crest { width: 19rem; height: auto; bottom: 6rem; }
}
