/* Flowform Studio — selected work grid & case-study overlays */

.ffw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
@media (max-width: 991px) { .ffw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ffw-grid { grid-template-columns: 1fr; } }

.ffw-item {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ffw-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.ffw-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0e1016;
}
.ffw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ffw-item:hover .ffw-media img { transform: scale(1.04); }
.ffw-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 16px;
}
.ffw-name {
  color: #f0ede8;
  font-family: 'Nohemi', sans-serif;
  font-size: 0.92rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ffw-meta {
  color: rgba(240, 237, 232, 0.68);
  font-size: 0.72rem;
  text-align: right;
}
@media (max-width: 600px) {
  .ffw-caption { flex-wrap: wrap; }
  .ffw-meta { text-align: left; }
}

/* ---------- Overlay ---------- */
html.ffw-locked, html.ffw-locked body { overflow: hidden; }

.ffw-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the injected #ff-nav (99999) */
  background: #0a0b0f;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.ffw-overlay.is-open { opacity: 1; }
.ffw-overlay[hidden] { display: none; }

.ffw-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ffw-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(10, 11, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ffw-tag {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.5);
}
.ffw-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 18px;
  color: #f0ede8;
  font-family: 'Nohemi', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ffw-close:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.ffw-close span { color: rgba(240, 237, 232, 0.4); margin-left: 6px; }

.ffw-case {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(64px, 8vw, 120px);
  text-align: left;
}
.ffw-case h2, .ffw-case p { text-align: left; }
.ffw-title {
  margin: 0 0 10px;
  color: #f0ede8;
  font-family: 'Nohemi', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.ffw-casemeta {
  margin: 0 0 26px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.5);
}
.ffw-about {
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 720px;
  color: rgba(240, 237, 232, 0.78);
  font-size: 17px;
  line-height: 1.65;
}
.ffw-shots { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.ffw-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ffw-shot img { width: 100%; display: block; }
.ffw-shot--video { aspect-ratio: 16 / 9; }
.ffw-shot--video iframe { display: block; width: 100%; height: 100%; border: 0; }

.ffw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ffw-nav { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.ffw-nav span {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.45);
}
.ffw-nav strong {
  color: #f0ede8;
  font-family: 'Nohemi', sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.ffw-nav--next { text-align: right; align-items: flex-end; }
.ffw-nav:hover strong { text-decoration: underline; }

/* ---------- Hero H1: stacked lines, one-at-a-time entrance ---------- */
.ff-h1-stack .ff-h1-line {
  display: block;
  font: inherit;
  font-weight: 700;
  opacity: 0;
  transform: translateY(26px);
  animation: ff-h1-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ff-h1-stack .ff-h1-line:nth-child(1) { animation-delay: 0s; }
.ff-h1-stack .ff-h1-line:nth-child(2) { animation-delay: 0.2s; }
.ff-h1-stack .ff-h1-line:nth-child(3) { animation-delay: 0.4s; }
.ff-h1-accent { color: #f05a28; }
@keyframes ff-h1-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ff-h1-stack .ff-h1-line { animation: none; opacity: 1; transform: none; }
}

/* ---------- Logo row tweaks ---------- */
.ff-logos-track img[alt="Infiniscape"] { height: 20px; }

/* ---------- Hero H1: bigger, bolder ---------- */
h1.heading-130.ff-h1-stack {
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* ---------- Founder ---------- */
.ff-founder { padding: 4.5rem 2rem; }
.ff-founder-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ff-founder-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ff-founder-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.52);
}
.ff-founder-name {
  margin: 0 0 8px;
  color: #f0ede8;
  font-family: 'Nohemi', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
}
.ff-founder-bio {
  margin: 0;
  color: rgba(240, 237, 232, 0.72);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
@media (max-width: 600px) {
  .ff-founder-inner { flex-direction: column; text-align: center; }
  .ff-founder-name, .ff-founder-bio { text-align: center; }
}

/* ---------- Eyebrow labels: centered everywhere ---------- */
.ff-founder-eyebrow { text-align: center; margin-bottom: 1.6rem; }
.ff-build-eyebrow, .ff-studio-eyebrow { text-align: center !important; }
#services .section_title .neontitle { text-align: center; }

/* GreenLyne logo ~30% smaller */
.ff-logos-track img[alt="GreenLyne"] { height: 18px; }

.ff-founder-link {
  display: inline-block;
  margin-top: 10px;
  color: #f0ede8;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ff-founder-link:hover { color: #f05a28; border-color: rgba(240, 90, 40, 0.6); }
@media (max-width: 600px) { .ff-founder-link { margin-left: auto; margin-right: auto; } }

/* Kill the leftover sheen/outline overlay on the work marquee tiles */
#portfolio .div-block-160,
#portfolio .div-block-160-copy { display: none !important; }
#portfolio .background-video-7,
#portfolio ._2ndvideoposter,
#portfolio .video-based-work { background: transparent !important; }

/* Mobile: comfortable touch target for the overlay close button */
@media (max-width: 700px) {
  .ffw-close { padding: 13px 22px; }
}

/* ---------- Mobile hero CTAs: uniform, centered, no glass fringe ---------- */
@media (max-width: 600px) {
  .liqquid-glass video,
  .liqquid-glass .w-background-video-atom { display: none !important; }
  .liqquid-glass { background: transparent !important; }
  .liqquid-glass,
  ._2buttondiv {
    width: min(320px, 86vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .liqquid-glass .main-button,
  ._2buttondiv .main-button {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ---------- Mobile comparison table: identical fixed tracks per row ---------- */
@media (max-width: 768px) {
  .ff-compare-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .ff-compare-table .ff-cmp-row {
    grid-template-columns: 96px 132px 122px 122px !important;
    min-width: 472px !important;
  }
  .ff-compare-table .ff-cmp-cell { min-width: 0; overflow-wrap: break-word; }
}

/* ---------- Footer: Santa Rosa map sits flush under the tagline ---------- */
.footer-city-img {
  display: block !important;
  margin: 10px 0 0 !important;
}
