/* Overrides & additions on top of webflow.css */

/* ═══ HOMEPAGE HERO — fun interactions (scoped to .is-home) ════════════════════ */

/* Hero section as positioning + perspective context */
.is-home .section-24 {
  position: relative;
  perspective: 1200px;
}

/* 1) Custom cursor — small grey double ring with a blur lens (site-wide) */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(165, 165, 165, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  will-change: left, top;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-hovering {
  width: 30px;
  height: 30px;
  border-color: rgba(210, 210, 210, 1);
}
/* hide the native arrow site-wide so only the ring shows (keep it on text fields) */
@media (hover: hover) and (pointer: fine) {
  html, a, button, [role="button"],
  .link-block-2, .link-block-2-copy { cursor: none; }
  input:not([type="submit"]), textarea, select, [contenteditable] { cursor: auto; }
}
@media (hover: none) { .cursor-ring { display: none; } }

/* 2) Typewriter sub-line under the name */
.is-home .hero-typer-line {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #cfcfcf;
  margin-top: 14px;
  letter-spacing: 0.3px;
}
@media screen and (max-width: 767px) {
  .is-home .hero-typer-line { font-size: 18px; }
}

/* 3) Entrance animation — hero lines + project cards rise in, staggered */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.is-home .hero-line,
.is-home .portfolio {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.is-home .hero-line:nth-child(1) { animation-delay: 0.05s; }
.is-home .hero-line:nth-child(2) { animation-delay: 0.13s; }
.is-home .hero-line:nth-child(3) { animation-delay: 0.30s; }
.is-home .hero-line:nth-child(4) { animation-delay: 0.45s; }
.is-home .hero-line:nth-child(5) { animation-delay: 0.60s; }
.is-home .portfolio:nth-of-type(1) { animation-delay: 0.70s; }
.is-home .portfolio:nth-of-type(2) { animation-delay: 0.80s; }
.is-home .portfolio:nth-of-type(3) { animation-delay: 0.90s; }
.is-home .portfolio:nth-of-type(4) { animation-delay: 1.00s; }
.is-home .portfolio:nth-of-type(5) { animation-delay: 1.10s; }

/* 4) Card hover — simple lift (same gentle interaction on every card) */
.is-home .portfolio .link-block-2,
.is-home .portfolio .link-block-2-copy {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  will-change: transform;
}
.is-home .portfolio .link-block-2:hover,
.is-home .portfolio .link-block-2-copy:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .is-home .hero-line,
  .is-home .portfolio { animation: none !important; opacity: 1 !important; }
  .cursor-ring { display: none; }
  html, a, button, [role="button"] { cursor: auto !important; }
  .is-home .portfolio .link-block-2,
  .is-home .portfolio .link-block-2-copy { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Corptax passcode lock screen ──────────────────────────────────────────── */
#corptax-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(120% 120% at 50% 0%, #18120c 0%, #0a0a0a 55%, #000 100%);
}
#corptax-lock .lock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
  padding: 44px 36px 36px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#corptax-lock .lock-icon {
  display: block;
  width: 84px;
  height: auto;
  padding: 0 !important;
  margin: 0 auto 18px;
  box-sizing: border-box;
  filter: drop-shadow(0 8px 18px rgba(250, 135, 47, 0.25));
}
#corptax-lock .lock-title {
  margin: 0 0 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
}
#corptax-lock .lock-hint {
  margin: 0 0 26px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #9a9a9a;
}
#corptax-lock .lock-input {
  width: 100%;
  height: 50px;
  margin: 0 0 12px;
  padding: 0 16px;
  font-size: 15px;
  color: #fff;
  background: #121212;
  border: 1px solid #2c2c2c;
  border-radius: 11px;
  text-align: center;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#corptax-lock .lock-input::placeholder { color: #5f5f5f; letter-spacing: 0; }
#corptax-lock .lock-input:focus {
  outline: none;
  border-color: #fa872f;
  box-shadow: 0 0 0 3px rgba(250, 135, 47, 0.18);
}
#corptax-lock .lock-submit {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #fa872f;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.05s;
}
#corptax-lock .lock-submit:hover { filter: brightness(1.08); }
#corptax-lock .lock-submit:active { transform: translateY(1px); }
#corptax-lock .lock-fail {
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff8d8d;
  background: rgba(255, 90, 90, 0.10);
  border: 1px solid rgba(255, 90, 90, 0.32);
  border-radius: 9px;
}
#corptax-lock .lock-back {
  margin-top: 20px;
  font-size: 13px;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.18s;
}
#corptax-lock .lock-back:hover { color: #fa872f; }

/* Smooth scroll for sidebar anchor clicks */
html {
  scroll-behavior: smooth;
}

/* Scroll spy active link — must beat .paragraph-30 a specificity */
.paragraph-30 a.nav-link-active {
  color: #fa872f !important;
}

/* Prevent click/visited color on "On this page" links */
.paragraph-30 a,
.paragraph-30 a:visited,
.paragraph-30 a:active,
.paragraph-30 a:focus {
  color: inherit;
  outline: none;
}

/* ─── DESIGN IMPROVEMENTS ─────────────────────────────────────────────────── */

/* Section labels — spaced, uppercase, white */
.paragraph-50 {
  font-size: 11px !important;
  letter-spacing: 3px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

/* Section headings — larger, bold, white */
.paragraph-49 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}

/* Body text — softer grey, more readable line-height */
.paragraph-52 {
  color: #bdbdbd !important;
  line-height: 1.85 !important;
}

/* Section panels — removed, caused weird grey tint */

/* "On this page" nav links — more visible default state */
.paragraph-30 a:not(.nav-link-active) {
  color: #7a7a7a !important;
  transition: color 0.2s !important;
}
.paragraph-30 a:not(.nav-link-active):hover {
  color: #ccc !important;
}

/* Homepage hero credential line — small caps style */
.text-span-106 {
  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #c8c8c8 !important;
  font-weight: 500 !important;
}

/* All content images — fill container without upscaling (prevents blur) */
.image-16,
.image-16-copy,
.image-32,
.image-67,
.image-67-copy,
.image-67-copy-copy {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  display: block !important;
}

/* Reduce right dead-space on wide screens */
@media screen and (min-width: 1200px) {
  .portfolio {
    margin-right: 40px !important;
  }
}

/* Project cards — hover lift */
.link-block-2 {
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: block !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
.link-block-2:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
}

/* Tags — keep original legibility */
.tag, .tag-green {
  font-size: 13px !important;
}

/* Reduce divider visual weight */
.divider .image-17 {
  opacity: 0.3 !important;
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* Typewriter */
.typer-text {
  color: #fa872f;
  font-weight: 400;
}

.typer-cursor {
  color: #fa872f;
  animation: blink 0.9s step-start infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Pin social/email section to bottom of sidebar on case study pages,
   matching the landing-page layout: icons side-by-side flush left (x:0 / x:74),
   email below at x:30. */

/* Instagram icon — flush left, like landing */
.body-2 .navbar .link-block-5,
.body-2 .navbar .link-block-7 {
  position: absolute !important;
  bottom: 80px;
  left: 0;
  margin-top: 0 !important;
}

/* LinkedIn icon — 74px gap from Instagram, like landing (no overlap) */
.body-2 .navbar .link-block-5 + .w-inline-block,
.body-2 .navbar .link-block-7 + .w-inline-block {
  position: absolute !important;
  bottom: 80px;
  left: 74px;
  margin-top: 0 !important;
}

/* Email line — its own 30px margin-left lands it at x:30, like landing */
.body-2 .navbar .paragraph-4 {
  position: absolute !important;
  bottom: 24px;
  left: 0;
  right: auto;
  margin-top: 0 !important;
}

/* Mobile nav toggle (replaces Webflow's JS-driven nav) */
@media screen and (max-width: 767px) {
  .navbar {
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid #222;
    overflow: visible !important;
  }

  .link-block-8 {
    flex-shrink: 0;
  }

  .nav-menu-open .navigation-bar,
  .nav-menu-open .link-block-5,
  .navbar .nav-menu-open .w-inline-block:not(.link-block-8),
  .nav-menu-open .paragraph-4 {
    display: block !important;
    width: 100%;
  }

  .navigation-bar,
  .link-block-5,
  .navbar .w-inline-block:not(.link-block-8),
  .navbar .paragraph-4 {
    display: none !important;
  }

  .section-24,
  .portfolio {
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-top: 70px;
  }

  .section-24 { padding-top: 20px; }

  .footer-subscribe {
    margin-left: 0 !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hamburger button */
  .hamburger-btn {
    display: flex !important;
  }
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  margin-left: auto;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
