/* ============ RESET / BASE ============ */
* {
  cursor: none;
}
html, body {
  background: #ffffff;
  overscroll-behavior: none;
}
body {
  font-family: 'Switzer', ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background: #000;
  color: #fff;
}

/* ============ CUSTOM CURSOR ============
   mix-blend-mode:difference only works as an "always visible on any
   background" trick if the shape itself is a fully-opaque WHITE (or other
   bright) color: difference(white-bg, white-shape) = black, difference
   (black-bg, white-shape) = white — always shows. The previous semi-
   transparent BLACK border/fill did difference(white-bg, black) = white,
   which is the same color as the page background, so on this mostly
   bg-white site the cursor was rendering completely invisible. */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.cursor-hover {
  width: 60px;
  height: 60px;
  background: #fff;
  border-color: transparent;
}

@media (max-width: 768px) {
  * { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-text {
  color: #f5f3ef;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

/* ============ NAVBAR ============ */
#navbar {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
#navbar.nav-hidden {
  transform: translateY(-120%);
}
.nav-link {
  position: relative;
  color: rgba(0,0,0,0.85);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-wins {
  transition: background-color 0.3s ease;
}
.nav-wins:hover {
  background-color: rgba(0,0,0,0.1);
}

/* ============ MOBILE MENU (dropdown card) ============ */
#navbar {
  max-width: 100vw;
}
#navbar .nav-pill {
  min-width: 0;
}
#navbar .nav-logo {
  min-width: 0;
}

/* hamburger <-> close morph */
.menu-icon-line:nth-child(1) { transform: translateY(-3px); }
.menu-icon-line:nth-child(2) { transform: translateY(3px); }
#menu-toggle.open .menu-icon-line:nth-child(1) { transform: translateY(0) rotate(45deg); }
#menu-toggle.open .menu-icon-line:nth-child(2) { transform: translateY(0) rotate(-45deg); }

#mobile-menu {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  /* soft fade at the bottom edge so it blends into the page behind it,
     matching the reference mock rather than a hard-edged card */
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
#mobile-menu nav {
  overflow-y: auto;
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mobile-link {
  position: relative;
  color: #fff;
  width: fit-content;
}
.mobile-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.3em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-link:hover::after,
.mobile-link:active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* lock background scroll while the dropdown is open */
body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  #navbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-pill {
    padding-left: 8px;
    padding-right: 12px;
    gap: 0;
  }
  .nav-logo span:first-child {
    font-size: 7px;
  }
  .nav-logo span:last-child {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  #mobile-menu .mobile-link {
    font-size: 22px;
  }
}

/* ============ CONTACT MODAL ============
   Same tap-out-backdrop + rise-in-card pattern as the mobile menu above,
   so the two popups feel like one family. Opened from any element with
   class "contact-trigger" (desktop nav link, mobile dropdown link) on
   either page — see js/script.js / js/news.js. Sits above the mobile
   menu (z-50) so it always ends up on top even if a click on the mobile
   "Contact" link fires while the dropdown is still closing. */
#contact-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
#contact-modal {
  max-height: calc(100vh - 32px);
  overflow-y: auto;

  /* hide the scrollbar itself, keep scrolling working */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge / IE */
}
#contact-modal::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, new Edge */
}
#contact-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.contact-modal-open {
  overflow: hidden;
}

/* ============ HERO ============ */
.hero-line {
  padding-bottom: 0.05em;
}
.hero-word {
  will-change: transform;
  font-family: 'Switzer', ui-sans-serif, system-ui, sans-serif;
  text-align:center;
}

/* ============ REEL ============ */
#play-reel-icon {
  flex: none;
}
#reel-shrink {
  transform-origin: center center;
  will-change: transform, border-radius;
}

/* ============ FEEL SECTION ============ */
.feel-word {
  will-change: transform;
  font-family: 'Switzer', ui-sans-serif, system-ui, sans-serif;
}
.feel-tagline {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
}

/* ============ ELEVATED GALLERY ============ */
.elevated-track {
  will-change: transform;
}
.elevated-scale {
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
}
.elevated-scale img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.elevated-scale:hover img {
  transform: scale(1.08);
}
.elevated-caption {
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* ============ SERVICES ============ */
#services-steps {
  list-style: none;
}
.service-item {
  color: rgba(0, 0, 0, 0.15);
  transition: color 0.4s ease;
}
.service-item[data-active='true'] {
  color: #000;
}
.services-visual img {
  transition: opacity 0.35s ease;
}
#services-sublist li {
  transition: opacity 0.3s ease;
}

/* ============ CLIENT LOGOS ============ */
.logo-mark {
  color: #000;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.logo-mark:hover {
  opacity: 1;
}

/* ============ FEATURED CASE STUDIES ============
   Exact hover interaction from the real site: the image's visible area
   insets by 6px on hover (revealing the dark #3f3f3f card background as a
   thin frame around it), NOT a scale/zoom — a subtle "shrink into frame"
   effect via clip-path, eased over 500ms. */
.case-card-clip {
  clip-path: inset(0 round 8px);
  transition: clip-path 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.case-card:hover .case-card-clip {
  clip-path: inset(6px round 8px);
}

/* ============ SHIPYARD BANNER ============ */
.shipyard-wordmark {
  font-family: 'Switzer', ui-sans-serif, system-ui, sans-serif;
}

/* ============ INDUSTRIES ============
   Fixed row height; each card gets an explicit wide or narrow width so the
   row reads as an uneven rhythm (wide/narrow/narrow…) instead of a uniform
   grid of equal squares — matches the real site's card widths. */
.industry-row {
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 220px;
}
.industry-row::-webkit-scrollbar {
  display: none;
}
.industry-card {
  height: 100%;
}
.industry-card--wide {
  width: 240px;
}
.industry-card--narrow {
  width: 140px;
}
@media (min-width: 768px) {
  .industry-row {
    height: 300px;
  }
  .industry-card--wide {
    width: 340px;
  }
  .industry-card--narrow {
    width: 200px;
  }
}
.industry-clip {
  clip-path: inset(0 round 8px);
  transition: clip-path 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.industry-card:hover .industry-clip {
  clip-path: inset(5px round 8px);
}

/* ============ ABOUT / APPROACH (full-bleed story sections) ============ */
.story-bg img {
  transform: scale(1.12);
  will-change: transform;
}

/* Real tinywins.com overlaps each story section by exactly one viewport
   height (-100vh) and stacks them with increasing z-index, so the next
   section's sticky panel visually slides up and covers the still-pinned
   previous one instead of just appearing after it. Without the overlap +
   z-index, the sections are simply adjacent — About unpins and scrolls
   away on its own, Approach then pins separately, no "cover" motion. */
#about-us {
  z-index: 1;
}
#approach-us {
  margin-top: -100vh;
  z-index: 2;
}

/* ============ NEWS (latest partnerships list) ============
   Real site: image sits in a fixed-size box that reserves its layout
   space, but the visible image is absolutely positioned and anchored to
   the right edge of that box. A spacer div to its left gives it empty
   room to grow into on hover — so widening the image never pushes or
   overlaps the text column, it just eats into that reserved gap. */
@media (min-width: 768px) {
  .news-card-img {
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .news-card:hover .news-card-img {
    width: 460px;
  }
}

/* ============ FOOTER (curtain reveal) ============
   Same overlap technique as #approach-us covering #about-us: #news (z-10,
   opaque) is pulled down over the footer (z-0) by exactly one viewport
   height, so the footer is already sitting there the whole time — it just
   surfaces as #news' trailing edge scrolls up and off, "pulling the
   curtain away" instead of the footer sliding into place. */
#news {
  margin-bottom: -100vh;
}

/* ============ UTILITIES ============ */
a, button {
  -webkit-tap-highlight-color: transparent;
}
