/* ==========================================================================
   /website-and-seo — "First in Mind" joint offer page (Web Lagoon × Tarun Gehani Consulting)
   Loaded after site.css on this page only. All classes are prefixed "fim-".
   ========================================================================== */

:root {
  /* Offer accent: warm gold, used only on this page */
  --fim-gold: #f2b43a;
  --fim-gold-soft: #f8d27f;
  --fim-gold-text: #8a5a00;
  --fim-ink-2: #22302f;
}

/* All page content is centered; the form fields stay left-aligned */
.fim {
  display: block;
  text-align: center;
}

/* --- Shared ----------------------------------------------------------- */

.fim-h2 {
  margin: 0 0 16px;
  color: var(--colors--ink-muted);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  text-transform: none;
  white-space: normal;
  letter-spacing: -0.2px;
}

.fim-muted {
  max-width: 34em;
  margin: 0 auto;
  color: var(--colors--ink-muted);
}

.fim-section {
  padding: 120px 0 40px;
}

.fim-section-tight {
  padding-top: 80px;
}

.fim-split {
  display: grid;
  justify-items: center;
  gap: 40px;
}

.fim-split-head {
  max-width: 40em;
}

.fim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--colors--button-radius);
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.fim-btn:active {
  transform: scale(0.98);
}

.fim-btn-primary {
  background-color: var(--fim-gold);
  border-color: var(--fim-gold);
  color: var(--colors--ink);
}

.fim-btn-primary:hover {
  background-color: var(--fim-gold-soft);
  border-color: var(--fim-gold-soft);
}

.fim-btn-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: var(--colors--canvas);
}

.fim-btn-ghost:hover {
  border-color: var(--colors--brand-light);
  color: var(--colors--brand-light);
}

/* --- Hero: cinematic credits ------------------------------------------- */

.fim-hero {
  position: relative;
  padding: 200px 0 160px;
  overflow: hidden;
  isolation: isolate;
  background-color: #070a0b;
  /* Spotlight from above + teal haze + vignette */
  background-image:
    radial-gradient(50% 45% at 50% 18%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(70% 60% at 50% 40%, rgba(10, 147, 150, .22) 0%, rgba(10, 147, 150, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(7, 10, 11, 0) 55%, rgba(0, 0, 0, .85) 100%);
  color: var(--colors--canvas);
  text-align: center;
}

/* Film grain (inline SVG noise, no extra request) */
.fim-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fim-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  color: rgba(242, 244, 243, .55);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.fim-x {
  color: rgba(242, 244, 243, .35);
  font-size: 16px;
  letter-spacing: 0;
}

.fim-present {
  margin-top: 28px;
  color: rgba(242, 244, 243, .6);
  font-size: 14px;
  letter-spacing: .42em;
  text-transform: lowercase;
}

.fim-title {
  margin: 32px 0 0;
  color: var(--colors--canvas);
  font-size: min(5.6vw, 76px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .04em;
  /* Tighter letters, but keep the original gap between words */
  word-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Title wave: every few seconds each letter lifts in turn with a soft glow below it
   (letters are split and the wave is triggered by js/website-and-seo.js). */
.fim-title-word {
  display: inline-block;
}

.fim-title-letter {
  display: inline-block;
}

.fim-title.is-waving .fim-title-letter {
  animation: fim-wave .9s ease-in-out both;
  animation-delay: calc(var(--i) * 80ms);
}

@keyframes fim-wave {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 .2em .35em rgba(242, 180, 58, 0);
  }
  40% {
    transform: translateY(-0.1em);
    /* Soft warm glow below the letter only; the letter itself stays white */
    text-shadow: 0 .2em .35em rgba(242, 180, 58, .28);
  }
}

.fim-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Body text, as on the main site */
.fim-sub {
  max-width: 36em;
  margin: 24px auto 0;
  color: rgba(242, 244, 243, .78);
  font-size: 16px;
  line-height: 1.4;
}

.fim-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* Both hero buttons share one width */
.fim-hero-actions .fim-btn {
  width: 240px;
}

/* --- Intro --------------------------------------------------------------- */

.fim-intro-section {
  padding-top: 112px;
}

.fim-founders {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--colors--border-light);
}

.fim-h3 {
  margin: 0 0 12px;
  color: var(--colors--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.fim-body {
  color: var(--colors--ink);
  font-size: 16px;
  line-height: 1.4;
}

.fim-founder-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

.fim-founder {
  width: 240px;
}

.fim-founder img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
}

.fim-founder-name {
  margin: 16px 0 4px;
  color: var(--colors--ink);
  font-size: 18px;
  font-weight: 500;
}

.fim-founder-role {
  color: var(--colors--ink);
  font-size: 16px;
  line-height: 1.4;
}

.fim-founder-co {
  margin-top: 2px;
  color: var(--colors--ink-muted);
  font-size: 14px;
}

.fim-founder-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

/* 40x40 tap area around the 18px icons */
.fim-founder-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--colors--border-dark);
  transition: color .2s;
}

.fim-founder-links a:hover {
  color: var(--colors--brand-text);
}

/* --- Get found + get chosen ------------------------------------------- */

.fim-intro {
  max-width: 60em;
  margin: 0 auto 48px;
}

.fim-intro .fim-intro-text {
  max-width: 46em;
  margin: 0 auto;
}

.fim-intro-text {
  color: var(--colors--ink);
  font-size: 16px;
  line-height: 1.4;
}

/* Section label + lead text (used instead of an h2 in some sections) */
.fim-eyebrow {
  margin: 0 0 16px;
  color: var(--colors--brand-text);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.fim-lead {
  max-width: 34em;
  margin: 0 auto;
  color: var(--colors--ink);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
}

/* --- What we do: highlighted result on top, two disciplines below -------- */

.fim-what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 48px auto 0;
}

.fim-what .fim-eq-result {
  grid-column: 1 / -1;
  padding: 40px;
  margin-bottom: 8px;
}

.fim-what .fim-eq-result .fim-eq-title {
  font-size: clamp(26px, 2.6vw, 32px);
}

.fim-what .fim-eq-result p:last-child {
  max-width: 32em;
  margin: 0 auto;
}

.fim-eq-card {
  padding: 28px;
  border: 1px solid var(--colors--border-light);
  background-color: var(--colors--surface-white);
}

.fim-eq-card p {
  color: var(--colors--ink-muted);
}

.fim-eq-kicker {
  margin-bottom: 12px;
  color: var(--colors--brand-text) !important;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fim-eq-title {
  margin: 0 0 12px;
  color: var(--colors--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.fim-eq-result {
  border-color: var(--colors--ink);
  background-color: var(--colors--ink);
  box-shadow: 8px 8px 0 0 var(--fim-gold);
}

.fim-eq-result .fim-eq-title {
  color: var(--colors--canvas);
}

.fim-eq-result p {
  color: rgba(242, 244, 243, .72);
}

.fim-eq-result .fim-eq-kicker {
  color: var(--fim-gold) !important;
}

/* --- Who this is for ---------------------------------------------------- */

.fim-fit {
  max-width: 40em;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.fim-fit li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--colors--border-light);
  line-height: 1.4;
}

.fim-fit li:first-child {
  border-top: 1px solid var(--colors--border-light);
}

.fim-check {
  position: relative;
  flex: none;
  display: block;
  margin-top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--colors--brand-light);
}

.fim-check::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 5px;
  height: 10px;
  border: solid var(--colors--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Phases ------------------------------------------------------------- */

.fim-phases {
  margin-top: 120px;
  padding: 110px 0;
  background-color: var(--colors--brand-text);
  color: var(--colors--canvas);
}

.fim-phases-head {
  max-width: 46em;
  margin: 0 auto 56px;
}

.fim-on-dark {
  color: var(--colors--canvas);
}

/* Body text on the dark section */
.fim-on-dark-body {
  color: rgba(242, 244, 243, .95);
  font-size: 16px;
  line-height: 1.4;
}

.fim-phase-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cards use three colors only: ink, white and gold */
.fim-phase {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: var(--colors--ink);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}

.fim-phase:hover {
  box-shadow: 0 32px 56px -24px rgba(0, 0, 0, .6);
  transform: translateY(-6px);
}

.fim-phase-name {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 28px;
  color: var(--colors--canvas);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fim-phase-num {
  color: rgba(242, 244, 243, .4);
}

/* Subtitle + text below form one pair (h4 + body paragraph) */
.fim-phase-sub {
  margin: 0 0 6px;
  color: var(--fim-gold);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.fim-phase-text {
  margin-bottom: 24px;
  color: rgba(242, 244, 243, .78);
  font-size: 16px;
  line-height: 1.4;
}

.fim-phase-get-label {
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(242, 244, 243, .55);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fim-phase-get {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.fim-phase-get li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: rgba(242, 244, 243, .92);
  font-size: 16px;
  line-height: 1.4;
}

.fim-phase-get li::before {
  content: "";
  position: absolute;
  top: .85em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--fim-gold);
}

/* Intro call CTA under the cards */
.fim-phases-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}

.fim-phases-cta .fim-btn {
  min-width: 240px;
  white-space: nowrap;
}

/* Price and timing: plain text at the bottom of the card, not button-like */
.fim-phase-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 16px;
}

.fim-phase-pay {
  margin-top: 4px;
  color: rgba(242, 244, 243, .55);
  font-size: 14px;
  line-height: 1.4;
}

.fim-phase-price {
  color: var(--colors--canvas);
  font-weight: 500;
}

.fim-phase-time {
  color: rgba(242, 244, 243, .55);
}

@media (prefers-reduced-motion: reduce) {
  .fim-phase,
  .fim-phase:hover {
    transform: none;
  }
}

/* --- Why us ------------------------------------------------------------- */

.fim-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--colors--border-light);
  border-left: 1px solid var(--colors--border-light);
}

.fim-why li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 32px;
  border-right: 1px solid var(--colors--border-light);
  border-bottom: 1px solid var(--colors--border-light);
  color: var(--colors--ink-muted);
  font-size: 16px;
  line-height: 1.4;
  transition: background-color .6s ease;
}

.fim-why li:hover,
.fim-why li.is-active {
  background-color: rgba(255, 255, 255, .6);
}

/* Hover: a gold dot appears above the text. Its space is reserved,
   so the text does not shift. */
.fim-why li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: var(--fim-gold);
  opacity: 0;
  transform: scale(0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.fim-why li:hover::before,
.fim-why li.is-active::before {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fim-why li::before {
    transform: none;
    transition: opacity .6s ease;
  }
}

/* Key words in each point */
.fim-why strong {
  color: var(--colors--ink);
  font-weight: 500;
}

/* --- Add-ons ----------------------------------------------------------- */

.fim-addons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

.fim-addons li {
  padding: 10px 22px;
  border: 1px solid var(--colors--border-light);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .6);
  color: var(--colors--brand-text);
  line-height: 1.4;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.fim-addons li:hover {
  border-color: var(--colors--brand-light);
  background-color: var(--colors--surface-white);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .fim-addons li:hover {
    transform: none;
  }
}

/* --- CTA + form --------------------------------------------------------- */

.fim-cta {
  margin-top: 120px;
  padding: 110px 0;
  background-color: var(--fim-gold);
  background-image: radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 60%);
}

.fim-cta-grid {
  display: grid;
  justify-items: center;
  gap: 56px;
}

.fim-cta-text {
  max-width: 46em;
}

.fim-cta-title {
  margin: 0;
  color: var(--colors--ink);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: none;
  white-space: normal;
}

.fim-cta-lead {
  margin-top: 24px;
  color: var(--fim-ink-2);
  font-size: 18px;
  line-height: 1.4;
}

.fim-form-card {
  width: 100%;
  max-width: 760px;
  margin: 0;
  text-align: left;
  padding: 40px;
  border-radius: 4px;
  background-color: var(--colors--canvas);
  box-shadow: 12px 12px 0 0 var(--colors--ink);
}

.fim-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fim-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fim-form .input-field {
  width: 100%;
  min-height: 42px;
}

/* Room between a field and the next label, so labels sit with their own field */
.fim-form .input-block {
  margin-bottom: 18px;
}

.fim-form .field-label {
  display: block;
  margin-bottom: 4px;
}

.fim-form .form-submit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fim-submit {
  width: 100%;
  background-color: var(--colors--ink);
  border-color: var(--colors--ink);
  color: var(--colors--canvas);
}

.fim-submit:hover {
  background-color: var(--colors--brand-text);
  border-color: var(--colors--brand-text);
}

.fim-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.fim-form-card .w-form-done {
  padding: 24px;
  background-color: var(--colors--surface-white);
  text-align: left;
}

.fim-form-card .w-form-fail {
  margin-top: 16px;
}

/* --- Responsive --------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .fim-hero {
    padding: 160px 0 120px;
  }

  .fim-phase-list,
  .fim-why {
    grid-template-columns: 1fr;
  }

  .fim-why li {
    padding: 44px 24px;
  }

  .fim-section {
    padding-top: 88px;
  }

  .fim-phases,
  .fim-cta {
    margin-top: 88px;
    padding: 80px 0;
  }
}

@media screen and (max-width: 767px) {
  .fim-what,
  .fim-form-row {
    grid-template-columns: 1fr;
  }

  .fim-what .fim-eq-result {
    padding: 28px;
    margin-bottom: 0;
  }

  .fim-form-card {
    padding: 24px;
    box-shadow: 8px 8px 0 0 var(--colors--ink);
  }

  .fim-hero-actions .fim-btn {
    width: 100%;
  }

  /* Large two-line h1 on phones ("First in / Mind") */
  .fim-title {
    margin-top: 24px;
    font-size: min(15vw, 64px);
    line-height: 1.05;
    letter-spacing: .02em;
    word-spacing: .08em;
    white-space: normal;
  }

  /* Founders: stacked, round portraits focused on the faces */
  .fim-founder-cards {
    flex-direction: column;
    gap: 24px;
  }

  .fim-founder {
    width: 100%;
  }

  /* Thin divider between the two founders */
  .fim-founder + .fim-founder {
    padding-top: 24px;
    border-top: 1px solid var(--colors--border-light);
  }

  .fim-founder picture {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
  }

  /* Zoom in toward the face to crop more of the background */
  .fim-founder img {
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 22%;
    transform: scale(1.35);
    transform-origin: 50% 28%;
  }

  /* Tarun's photo is framed tighter already: zoom less, keep the hair in */
  .fim-founder + .fim-founder img {
    transform: scale(1.2);
    transform-origin: 50% 36%;
  }

  /* 44x44 tap areas (Apple's guideline) with 20px icons */
  .fim-founder-links {
    gap: 0;
    margin-top: 4px;
  }

  .fim-founder-links a {
    width: 44px;
    height: 44px;
  }

  .fim-founder-links svg {
    width: 20px;
    height: 20px;
  }

  /* Company names on two lines, × between them */
  .fim-credits {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    letter-spacing: .2em;
  }

  .fim-hero {
    padding: 140px 0 100px;
  }
}

/* Phones in portrait: the hero fills the screen */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .fim-hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
  }

  .fim-hero > .w-container {
    width: 100%;
  }
}
