@import url('/assets/css/flex-carousel.css');

/* ============================================
   CUSTOM ENHANCEMENTS — Flowgrid enhancements by Tanmoy
   Differentiating features from the original
   ============================================ */

/* ---- 1. Custom Cursor ---- */
@media (hover: hover) {
  * { cursor: none !important; }
}
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
}
#custom-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 99998;
  mix-blend-mode: difference;
  transition: transform 0.08s linear, width 0.25s, height 0.25s, border-color 0.3s;
  transform: translate(-50%, -50%);
}
#custom-cursor.--hover {
  width: 50px; height: 50px;
  background: rgba(120, 80, 255, 0.25);
  border: 1.5px solid rgba(120, 80, 255, 0.7);
}
#custom-cursor-ring.--hover {
  width: 60px; height: 60px;
  border-color: rgba(120, 80, 255, 0.5);
}

/* ---- 2. Accent Color Overrides (Deep Purple/Violet) ---- */
:root {
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.35);
}

#scroll-indicator-bar {
  background: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-glow);
}

.header-menu-link:hover .header-menu-link-background {
  background: var(--accent) !important;
  opacity: 0.12 !important;
}

.header-menu-link.--active::before {
  background: var(--accent) !important;
}

#home-reel-cta-dot,
#home-featured-cta-dot {
  background: var(--accent) !important;
}

/* ---- 3. Enhanced "Let's Talk" Button ---- */
#header-right-talk-btn {
  background: var(--accent) !important;
  color: #fff !important;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important;
}
@media (hover: hover) {
  #header-right-talk-btn:hover {
    background: var(--accent-light) !important;
    transform: scale(1.06) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
  }
}

/* ---- 4. Glow on Project Cards ---- */
.project-item {
  transition: transform 0.4s cubic-bezier(.4,0,.1,1), box-shadow 0.4s !important;
}
@media (hover: hover) {
  .project-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18) !important;
  }
}

/* ---- 5. Footer Branding ---- */
#footer-bottom-tagline {
  color: var(--accent-light) !important;
}

/* ---- 6. Smooth Page Entrance (opacity-only so transforms do not conflict with virtual scrolling) ---- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#page-container-inner {
  animation: pageFadeIn 0.6s ease-out;
}

/* ---- 7. Selection Color ---- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ---- 8. Newsletter Input Focus Glow ---- */
#header-menu-newsletter-input-field:focus,
#footer-newsletter-input-field:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--accent), 0 0 15px var(--accent-glow) !important;
}

/* ---- 9. Scroll-to-Top Button Glow ---- */
#footer-bottom-up {
  transition: transform 0.3s, box-shadow 0.3s !important;
}
@media (hover: hover) {
  #footer-bottom-up:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
  }
}

/* ---- 10. Preloader Accent ---- */
#preloader-percent-digits {
  color: var(--accent-light) !important;
}

/* ---- 11. Premium Monochrome Editorial Team Showcase (#about-who-subsection-team only) ---- */
#about-who-subsection-team {
  overflow-x: clip;
}

#about-who-subsection-team #about-who-team-letter-container {
  display: none !important;
}

#about-who-subsection-team #about-who-team-dots {
  opacity: 0.22;
}

#about-who-subsection-team #about-who-team-left {
  pointer-events: none;
  z-index: 4;
}

#about-who-subsection-team #about-who-team-info {
  width: 15.5em;
  height: 5.4em;
}

#about-who-subsection-team #about-who-team-name {
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
}

#about-who-subsection-team #about-who-team-job {
  opacity: 0.88 !important;
  color: var(--color-off-white);
  font-family: IBMPlexMono, monospace;
  font-size: 0.7em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
}

#about-who-subsection-team #about-who-team-info.--is-entering #about-who-team-name-text {
  animation: fgTeamMetaSlideUp 0.52s cubic-bezier(0.19, 1, 0.22, 1) both;
}

#about-who-subsection-team #about-who-team-info.--is-entering #about-who-team-job-text {
  animation: fgTeamMetaSlideUp 0.52s 0.08s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Portrait & Oversized Editorial Typography Stage */
#about-who-subsection-team #about-who-team-faces {
  left: 3%;
  bottom: 0;
  width: 63%;
  height: 92%;
  z-index: 10 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

#about-who-team-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

#about-who-team-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 13%;
  pointer-events: none;
  user-select: none;
}

#about-who-team-editorial-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: clamp(3.8rem, 10.2vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
  white-space: pre-line;
  color: var(--color-off-white);
  opacity: 0.96;
  text-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
  will-change: transform, opacity;
}

#about-who-team-stage[data-scale="stacked"] #about-who-team-editorial-name {
  font-size: clamp(3.3rem, 8.6vw, 8.2rem);
  line-height: 0.88;
}

#about-who-team-stage[data-scale="long"] #about-who-team-editorial-name {
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  letter-spacing: -0.04em;
}

#about-who-team-stage[data-scale="medium"] #about-who-team-editorial-name {
  font-size: clamp(3.3rem, 8.4vw, 8rem);
}

.fg-team-name-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
}

.fg-team-char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.012em 0.06em;
  margin: -0.04em -0.012em -0.06em;
}

.fg-team-char {
  display: inline-block;
  will-change: transform, opacity;
}

#about-who-team-stage.--is-entering .fg-team-char {
  animation: fgTeamCharReveal 0.72s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(var(--char-index, 0) * 26ms);
}

/* Monochrome Portrait Framing & Subtle Hover Polish */
#about-who-team-portrait-wrap {
  position: relative;
  z-index: 2;
  height: 89%;
  max-height: 89%;
  width: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  transform-origin: bottom center;
  will-change: transform, opacity;
}

#about-who-team-portrait {
  display: block;
  height: 100%;
  min-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  filter: grayscale(100%) contrast(1.06) brightness(0.98) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.68));
  transition: filter 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: filter, transform;
}

@media (hover: hover) {
  #about-who-team-portrait-wrap:hover #about-who-team-portrait {
    filter: grayscale(100%) contrast(1.14) brightness(1.05) drop-shadow(0 36px 68px rgba(0, 0, 0, 0.78));
    transform: translate3d(0, -4px, 0) scale(1.018);
  }
}

/* Editorial Role Caption Bar */
#about-who-team-editorial-role-wrap {
  position: absolute;
  z-index: 3;
  bottom: 2.15rem;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.55em 1.25em;
  border-radius: 2px;
  background: rgba(10, 11, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: IBMPlexMono, monospace;
  font-size: 0.74em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-off-white);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}

#about-who-team-editorial-role-index {
  opacity: 0.52;
}

#about-who-team-editorial-role-sep {
  display: inline-block;
  width: 1.4em;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

/* Member Switch Entrance Animations */
#about-who-team-stage.--is-entering #about-who-team-portrait-wrap {
  animation: fgTeamPortraitIn 0.76s cubic-bezier(0.19, 1, 0.22, 1) both;
}

#about-who-team-stage.--is-entering #about-who-team-editorial-role-wrap {
  animation: fgTeamRoleIn 0.58s 0.14s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes fgTeamCharReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 108%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fgTeamPortraitIn {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(1.028);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes fgTeamRoleIn {
  from {
    opacity: 0;
    transform: translate3d(-50%, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes fgTeamMetaSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 70%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fgTeamRespReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fgTeamRosterStagger {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: var(--roster-rest-opacity, 0.66);
    transform: translate3d(0, 0, 0);
  }
}

/* Right Column: Key Responsibilities Editorial Dossier & Staggered Roster */
#about-who-subsection-team #about-who-team-right {
  z-index: 5;
}

#about-who-team-right-footer {
  display: flex;
  flex-direction: column;
  gap: 1.65em;
}

#about-who-subsection-team #about-who-team-desc {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  width: 100%;
}

#about-who-team-dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  font-family: IBMPlexMono, monospace;
  font-size: 0.64em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

#about-who-team-dossier-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform-origin: left center;
}

#about-who-team-desc.--is-entering #about-who-team-dossier-rule {
  animation: fgTeamRuleDraw 0.65s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes fgTeamRuleDraw {
  from {
    transform: scaleX(0);
    opacity: 0.3;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

#about-who-team-responsibilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.fg-team-resp-item {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.42em;
}

.fg-team-resp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fg-team-resp-line {
  display: flex;
  align-items: baseline;
  gap: 0.85em;
  will-change: transform, opacity;
}

#about-who-team-desc.--is-entering .fg-team-resp-line {
  animation: fgTeamRespReveal 0.56s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(80ms + var(--item-index, 0) * 65ms);
}

.fg-team-resp-marker {
  font-family: IBMPlexMono, monospace;
  font-size: 0.62em;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

.fg-team-resp-text {
  font-family: Aeonik, sans-serif;
  font-weight: 400;
  font-size: 0.92em;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

#about-who-team-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6em;
  width: 100%;
  pointer-events: auto;
}

.about-who-team-roster-item {
  --roster-rest-opacity: 0.64;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  width: 100%;
  padding: 0.78em 0.9em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-off-white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: var(--roster-rest-opacity);
}

.about-who-team-roster-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-off-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.19, 1, 0.22, 1);
}

#about-who-team.--is-revealed .about-who-team-roster-item {
  animation: fgTeamRosterStagger 0.58s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(100ms + var(--roster-index, 0) * 70ms);
}

.about-who-team-roster-item:hover {
  --roster-rest-opacity: 0.96;
  opacity: 0.96;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  transform: translate3d(0, -2px, 0);
}

.about-who-team-roster-item.--is-active {
  --roster-rest-opacity: 1;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.085);
}

.about-who-team-roster-item.--is-active::before {
  transform: scaleX(1);
}

.about-who-team-roster-idx {
  font-family: IBMPlexMono, monospace;
  font-size: 0.625em;
  line-height: 1.5;
  opacity: 0.52;
  flex-shrink: 0;
}

.about-who-team-roster-meta {
  display: flex;
  flex-direction: column;
  gap: 0.24em;
  min-width: 0;
}

.about-who-team-roster-name {
  font-family: Aeonik, sans-serif;
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-who-team-roster-role {
  font-family: IBMPlexMono, monospace;
  font-size: 0.5625em;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.25;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet Layout Adjustments */
@media (max-width: 1000px) and (min-width: 813px) {
  #about-who-subsection-team #about-who-team-faces {
    left: 0;
    width: 56%;
    height: 88%;
  }

  #about-who-team-editorial-name {
    font-size: clamp(3rem, 8.2vw, 6.5rem);
  }

  #about-who-team-stage[data-scale="stacked"] #about-who-team-editorial-name {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
  }

  #about-who-team-stage[data-scale="long"] #about-who-team-editorial-name {
    font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  }

  .fg-team-resp-text {
    font-size: 0.85em;
  }
}

/* Mobile Layout Adjustments */
@media (max-width: 812px) {
  #about-who-subsection-team #about-who-team-info {
    display: none;
  }

  #about-who-subsection-team #about-who-team-faces {
    bottom: 34%;
    left: 0;
    width: 100%;
    height: 45%;
  }

  #about-who-team-editorial-bg {
    padding-bottom: 14%;
  }

  #about-who-team-editorial-name {
    font-size: clamp(3rem, 16vw, 5.8rem);
  }

  #about-who-team-stage[data-scale="stacked"] #about-who-team-editorial-name {
    font-size: clamp(2.4rem, 12.8vw, 4.8rem);
  }

  #about-who-team-stage[data-scale="long"] #about-who-team-editorial-name {
    font-size: clamp(2rem, 9.8vw, 4rem);
  }

  #about-who-team-stage[data-scale="medium"] #about-who-team-editorial-name {
    font-size: clamp(2.4rem, 12.5vw, 4.8rem);
  }

  #about-who-team-portrait-wrap {
    height: 85%;
    max-height: 85%;
  }

  #about-who-team-editorial-role-wrap {
    bottom: 0.75rem;
    font-size: 0.64em;
    padding: 0.42em 0.95em;
  }

  #about-who-team-right-footer {
    gap: 0.85em;
  }

  #about-who-subsection-team #about-who-team-desc {
    gap: 0.45em;
  }

  #about-who-team-responsibilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3em 0.65em;
  }

  .fg-team-resp-item {
    border-bottom: none;
    padding-bottom: 0;
  }

  .fg-team-resp-line {
    gap: 0.45em;
  }

  .fg-team-resp-text {
    font-size: 0.74em;
    line-height: 1.28;
  }

  #about-who-team-roster {
    gap: 0.35em;
  }

  .about-who-team-roster-item {
    padding: 0.44em 0.6em;
    gap: 0.42em;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  #about-who-team-stage.--is-entering .fg-team-char,
  #about-who-team-stage.--is-entering #about-who-team-portrait-wrap,
  #about-who-team-stage.--is-entering #about-who-team-editorial-role-wrap,
  #about-who-subsection-team #about-who-team-info.--is-entering #about-who-team-name-text,
  #about-who-subsection-team #about-who-team-info.--is-entering #about-who-team-job-text,
  #about-who-team-desc.--is-entering #about-who-team-dossier-rule,
  #about-who-team-desc.--is-entering .fg-team-resp-line,
  #about-who-team.--is-revealed .about-who-team-roster-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #about-who-team-portrait,
  .about-who-team-roster-item,
  .about-who-team-roster-item::before {
    transition: none !important;
  }
}

/* ---- 12. High-Visibility FAQ Section (.award-category-talks) — Swiss Hairline Ledger ---- */
#about-award .award-category-talks .about-award-header-title,
#about-award .award-category-talks .about-award-header-text {
  color: #FFFFFF;
  opacity: 1;
}

#about-award .award-category-talks .about-award-item {
  margin-bottom: 1.5em;
}

#about-award .award-category-talks .about-award-item-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2.2em;
  margin-left: var(--margin-left);
  padding: 1.25em 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.25s ease;
}

#about-award .award-category-talks .about-award-item-wrapper:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#about-award .award-category-talks .about-award-item-wrapper:not(:first-child) {
  margin-top: 0;
}

#about-award .award-category-talks .about-award-item-wrapper:hover {
  background: transparent;
  border-top-color: #84CC16;
}

#about-award .award-category-talks .about-award-item-wrapper .about-award-item-wrapper-text {
  opacity: 1 !important;
  cursor: default !important;
}

#about-award .award-category-talks .about-award-item-wrapper .about-award-item-wrapper-text:before {
  display: none !important;
}

#about-award .award-category-talks .about-award-item-container:nth-child(1) {
  width: auto;
  flex: 1 1 56%;
  cursor: default;
}

#about-award .award-category-talks .about-award-item-container:nth-child(1) .about-award-item-wrapper-text {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1.35;
}

#about-award .award-category-talks .about-award-item-container:nth-child(2) {
  margin-left: 0;
  flex: 0 1 42%;
  text-align: right;
}

#about-award .award-category-talks .about-award-item-container:nth-child(2) .about-award-item-wrapper-text {
  color: #9CA3AF;
  font-family: IBMPlexMono, monospace;
  font-size: 0.92em;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

#about-award .award-category-talks .about-award-item-wrapper-svg {
  display: none;
}

@media (max-width: 1000px) {
  #about-award .award-category-talks .about-award-item-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45em;
    padding: 1.05em 0;
  }

  #about-award .award-category-talks .about-award-item-container:nth-child(1),
  #about-award .award-category-talks .about-award-item-container:nth-child(2) {
    width: 100%;
    flex: none;
    text-align: left;
  }
}

/* ---- 13. Flowgrid Poster Liquid Logo Header ---- */
#header-logo.fg-has-liquid-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(158px, 11.6vw, 196px);
  aspect-ratio: 760 / 160;
  height: auto;
  pointer-events: auto;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: hover) {
  #header-logo.fg-has-liquid-logo:hover {
    transform: translate3d(0, -1px, 0) scale(1.025);
  }
}

#header-logo.fg-has-liquid-logo .fg-liquid-logo-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#header-logo.fg-has-liquid-logo .fg-liquid-logo-legacy-svg {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

#header-logo.fg-has-liquid-logo .fg-liquid-logo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 812px) {
  #header-logo.fg-has-liquid-logo {
    width: clamp(128px, 34vw, 158px);
  }
}

/* ---- 14. Flowgrid Swiss-Editorial Services Ledger, Cobalt Pillars, Internships & FAQ ---- */
#preloader[hidden],
#preloader.is-done,
html.is-ready #preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Full-Bleed Alternating Surfaces: Pure White (#FFFFFF), Electric Cobalt (#0033FF), Jet Black (#000000) */
.fg-band-section {
  display: block !important;
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(4.5rem, 7.5vw, 7.5rem) var(--base-padding-x, clamp(1.25rem, 4vw, 3.5rem));
  background-color: #FFFFFF;
  color: #000000;
  --fg-band-ink: #000000;
  --fg-band-muted: #6B7280;
  --fg-band-body: rgba(0, 0, 0, 0.78);
  --fg-band-hairline: rgba(0, 0, 0, 0.12);
  z-index: 3;
}

#fg-pillars-internship.fg-band-section {
  background-color: #0033FF;
  color: #FFFFFF;
  --fg-band-ink: #FFFFFF;
  --fg-band-muted: rgba(255, 255, 255, 0.76);
  --fg-band-body: rgba(255, 255, 255, 0.88);
  --fg-band-hairline: rgba(255, 255, 255, 0.22);
}

#fg-home-faq.fg-band-section {
  background-color: #000000;
  color: #FFFFFF;
  --fg-band-ink: #FFFFFF;
  --fg-band-muted: #9CA3AF;
  --fg-band-body: rgba(255, 255, 255, 0.8);
  --fg-band-hairline: rgba(255, 255, 255, 0.15);
}

.fg-band-inner {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 3.8vw, 3.5rem);
}

/* Crosshair Grid Anchor (+   +   +   +) above every Swiss Band */
.fg-band-inner::before {
  content: "+          +          +          +";
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  font-family: IBMPlexMono, monospace;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fg-band-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--fg-band-hairline);
  user-select: none;
}

.fg-band-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 1.5rem 3rem;
  align-items: end;
}

.fg-eyebrow {
  display: block;
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-band-muted);
  margin-bottom: 0.9rem;
}

.fg-eyebrow::before {
  display: none;
}

.fg-band-title {
  margin: 0;
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg-band-ink);
}

.fg-band-lead {
  margin: 0;
  font-family: Aeonik, sans-serif;
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.56;
  color: var(--fg-band-body);
}

/* Swiss-Editorial Horizontal Index Ledger (Zero SaaS Pricing Boxes) */
.fg-services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--fg-band-hairline);
}

.fg-service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 2.5vw, 2.75rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg-band-ink);
  border: none;
  border-bottom: 1px solid var(--fg-band-hairline);
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.fg-service-card:hover {
  transform: none;
  box-shadow: none;
  border-bottom-color: #84CC16;
}

.fg-service-card--featured {
  background: transparent;
  border-color: var(--fg-band-hairline);
}

.fg-service-card-top {
  display: grid;
  grid-template-columns: minmax(185px, 0.8fr) auto minmax(0, 1.35fr);
  align-items: baseline;
  gap: 0.75rem clamp(1.5rem, 2.2vw, 2.25rem);
  min-width: 0;
}

.fg-service-card-top:not(:has(.fg-service-price)) {
  grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.fg-service-meta-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: IBMPlexMono, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-band-muted);
  margin-bottom: 0.15rem;
}

.fg-service-tag {
  color: var(--fg-band-muted);
  transition: color 0.2s ease;
}

.fg-service-card:hover .fg-service-tag {
  color: #84CC16;
}

.fg-service-name {
  margin: 0;
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-band-ink);
  min-width: 0;
}

.fg-service-price {
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-band-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: start;
  padding-right: 0.25rem;
}

.fg-service-price span {
  font-family: IBMPlexMono, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-band-muted);
  margin-left: 0.3rem;
}

.fg-service-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--fg-band-body);
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Inline Editorial Specs (Zero SaaS Checkmark Boxes) */
.fg-service-points {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  border-top: none;
}

.fg-service-points li {
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--fg-band-muted);
  padding-left: 1rem;
  position: relative;
}

.fg-service-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--fg-band-muted);
}

.fg-service-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
  align-self: center;
}

.fg-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  font-family: IBMPlexMono, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fg-service-link:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* Electric Purple Primary Pill CTA (#7C3AED) with 4px Dot */
.fg-service-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.2rem;
  border-radius: 9999px;
  background-color: #7C3AED;
  color: #FFFFFF;
  font-family: IBMPlexMono, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fg-service-wa[href^="https://wa.me"]::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #FFFFFF;
  transition: background-color 0.2s ease;
}

.fg-service-wa:hover {
  background-color: #6D28D9;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.fg-service-wa[href^="https://wa.me"]:hover::after {
  background-color: #84CC16;
}

/* Direct Consultation Jet Black Architectural Strip */
.fg-service-card.fg-cta-card {
  margin-top: 2rem;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: 18px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
  --fg-band-ink: #FFFFFF;
  --fg-band-muted: #9CA3AF;
  --fg-band-body: rgba(255, 255, 255, 0.8);
}

.fg-service-card.fg-cta-card:hover {
  border-color: #000000;
}

.fg-service-card.fg-cta-card .fg-service-link {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.fg-service-card.fg-cta-card .fg-service-link:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

/* Borderless 4-Column Swiss Typographic Strip (On Electric Cobalt Blue Band) */
.fg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--fg-band-hairline);
  border-bottom: 1px solid var(--fg-band-hairline);
}

.fg-pillar-card {
  padding: clamp(1.6rem, 2.6vw, 2.4rem) 1.5rem;
  border-radius: 0;
  background: transparent;
  color: #FFFFFF;
  border: none;
  border-right: 1px solid var(--fg-band-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fg-pillar-card:first-child {
  padding-left: 0;
}

.fg-pillar-card:last-child {
  border-right: none;
  padding-right: 0;
}

.fg-pillar-num {
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
}

.fg-pillar-title {
  margin: 0;
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.fg-pillar-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* Architectural Jet Black Internship Strip inside Electric Cobalt Band */
.fg-internship-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1.75rem 3rem;
  align-items: center;
  padding: clamp(2rem, 3.6vw, 3.25rem);
  border-radius: 18px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fg-internship-banner .fg-eyebrow {
  color: #9CA3AF;
}

.fg-internship-banner h3 {
  margin: 0.2rem 0 0.8rem;
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.fg-internship-banner p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.8);
  max-width: 62ch;
}

.fg-internship-tracks-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.fg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.5rem;
  border-radius: 9999px;
  background-color: #7C3AED;
  color: #FFFFFF;
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.fg-btn-primary:hover {
  background-color: #6D28D9;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.fg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.4rem;
  border-radius: 9999px;
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-family: IBMPlexMono, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.fg-btn-secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

/* Single-Column Swiss Hairline FAQ Accordion on Jet Black */
.fg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--fg-band-hairline);
}

.fg-faq-item {
  border-radius: 0;
  background: transparent;
  color: #FFFFFF;
  border: none;
  border-bottom: 1px solid var(--fg-band-hairline);
  padding: 1.5rem 0;
  transition: border-color 0.25s ease;
}

.fg-faq-item[open] {
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

.fg-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: Aeonik, sans-serif;
  font-weight: 500;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  line-height: 1.32;
  color: #FFFFFF;
}

.fg-faq-item summary::-webkit-details-marker {
  display: none;
}

.fg-faq-item summary::after {
  content: "+";
  font-family: IBMPlexMono, monospace;
  font-size: 1.25rem;
  line-height: 1;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.fg-faq-item[open] summary::after {
  content: "−";
  color: #84CC16;
}

.fg-faq-answer {
  margin: 0.95rem 0 0;
  font-size: 0.98rem;
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.78);
  max-width: 74ch;
}

/* Project card crawlable outcome subline */
.project-item-summary {
  margin-top: 0.45em;
  font-family: Aeonik, sans-serif;
  font-size: 0.86em;
  line-height: 1.42;
  opacity: 0.78;
  max-width: 54ch;
}

/* Clean clone class for animated scroll hint (avoids duplicate ID) */
.end-bottom-text-item {
  white-space: nowrap;
  line-height: 1.5;
  font-size: 0.75em;
  color: var(--color-black);
  animation: 3s 0.2s infinite cubic-bezier(0.1, 0, 0.1, 1) text-animation;
}
.end-bottom-text-item--clone {
  position: absolute;
  top: -1.5em;
}

@media (max-width: 1280px) {
  .fg-service-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .fg-service-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1.75rem;
  }

  .fg-service-card-top:not(:has(.fg-service-price)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .fg-service-desc {
    grid-column: 1 / -1;
  }

  .fg-service-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 1120px) {

  .fg-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-pillar-card:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .fg-pillar-card:nth-child(odd) {
    padding-left: 0;
  }

  .fg-pillar-card:nth-child(n + 3) {
    border-top: 1px solid var(--fg-band-hairline);
  }
}

@media (max-width: 812px) {
  .fg-band-header,
  .fg-service-card-top,
  .fg-service-card-top:not(:has(.fg-service-price)),
  .fg-pillars-grid,
  .fg-internship-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fg-service-actions {
    flex-wrap: wrap;
  }

  .fg-pillar-card {
    padding: 1.4rem 0;
    border-right: none;
    border-bottom: 1px solid var(--fg-band-hairline);
  }

  .fg-pillar-card:last-child {
    border-bottom: none;
  }
}

/* ============================================================================
   15. HOME FEATURED "FLOWGRID CASE STUDIES" HEADER — ZERO TEXT OVERLAP FIX
   ============================================================================ */
#home-reel-video-container-crosses-bottom {
  position: absolute;
  height: var(--cross-size);
  width: 100%;
}

@media (max-width: 812px) {
  #home-reel-video-container-crosses-bottom {
    display: none;
  }
}

#home-featured-title-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 32%) !important;
  align-items: end !important;
  gap: clamp(1.5rem, 3vw, 3.5rem) !important;
  line-height: 1.15 !important;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

#home-featured-title-wrapper {
  position: relative !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: clamp(2.4rem, 4.3vw, 4.8rem) !important;
  letter-spacing: -0.03em !important;
}

#home-featured-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-top: 0.18em !important;
  padding-bottom: 0.18em !important;
  line-height: 1.06 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-wrap: balance;
}

#home-featured-title .word {
  display: inline-block;
  white-space: nowrap;
}

#home-featured-disclaimer {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 36ch !important;
  margin: 0 0 0.25em auto !important;
  font-size: clamp(11px, 0.85vw, 13px) !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  #home-featured-title-top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem !important;
  }

  #home-featured-disclaimer {
    margin: 0 !important;
    max-width: 56ch !important;
  }
}
