/* ai2see.com homepage in the townloom clay layout. Depends on clay.css tokens.
   Section patterns mirror townloom.com: .clay-hero, .clay-proof-card, .clay-sol-row,
   .clay-tickers, .clay-scene and .clay-final. */
.home-clay { overflow-x: clip; }
.home-clay main { overflow-x: clip; }
.c-h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.c-h2 em, .c-hero-title em { font-style: normal; color: var(--c-teal); }
.c-h2-xl { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
.c-sub { max-width: 40rem; color: var(--muted); font-size: 1.125rem; }
.c-label {
  display: inline-block;
  color: var(--c-teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.c-label + .c-h2 { margin-top: 0.75rem; }
.c-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.c-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; }

/* Hero: full-bleed video, scrim, headline bottom-left and copy bottom-right. */
.c-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(640px, 100svh, 920px);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}
.c-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.c-hero-video { position: absolute; inset: 0; }
.c-hero-video video { height: 100%; aspect-ratio: auto; object-fit: cover; background: transparent; }
@media (prefers-reduced-motion: reduce) { .c-hero-video { display: none; } }
.c-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #fff 0%, rgb(255 255 255 / 0.86) 34%, transparent 66%),
    radial-gradient(70% 55% at 10% 88%, rgb(255 255 255 / 0.7), transparent 72%),
    radial-gradient(45% 50% at 85% 80%, rgb(255 255 255 / 0.75), transparent 75%);
}
.c-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 0 calc(var(--gut) + 24px) 150px;
}
.c-hero-title {
  flex: none;
  font-size: clamp(3.25rem, 6.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
/* lime marker, the same lime as the call button */
.c-hero-title mark {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  background: linear-gradient(transparent 58%, var(--c-lime) 58%, var(--c-lime) 90%, transparent 90%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.c-hero-side { display: grid; gap: 1.5rem; max-width: 464px; }
.c-hero-side > p:first-child { font-size: 1.375rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.c-hero-note { color: rgb(13 13 15 / 0.72); font-size: 0.9375rem; }
.c-hero-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* SA Glass proof: warm card, copy left, workflow video right. */
.c-proof {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin: clamp(24px, 3vw, 40px) var(--gut) 0;
  padding: var(--pad);
  padding-left: calc(var(--pad) + 16px);
  border-radius: var(--r-xl);
  background: var(--c-warm);
}
.c-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2rem 0 0; }
.c-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; padding: 20px; border-radius: 20px; background: #fff; }
.c-stats dd { margin: 0; font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.c-stats > div:first-child dd { color: var(--c-teal); }
.c-stats dd small { margin-left: 4px; color: var(--muted); font-size: 0.4em; letter-spacing: 0; }
.c-stats dt { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.c-proof .delivery-flow { display: grid; margin: 1.75rem 0 2rem; padding: 0; list-style: none; counter-reset: flow; }
.c-proof .delivery-flow li { position: relative; display: grid; gap: 4px; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); counter-increment: flow; }
.c-proof .delivery-flow li::before {
  content: "0" counter(flow);
  position: absolute;
  top: 16px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.c-proof .delivery-flow li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--c-teal); }
.c-proof .delivery-flow.is-running li::after { animation: c-fill 1.2s var(--ease-out) forwards; }
.c-proof .delivery-flow.is-running li:nth-child(2)::after { animation-delay: 1.2s; }
.c-proof .delivery-flow.is-running li:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes c-fill { to { width: 100%; } }
.c-proof .delivery-flow strong { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }
.c-proof .delivery-flow span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.c-proof .delivery-visual { margin: 0; }
.c-proof .delivery-visual .video-frame { overflow: hidden; border: 0; border-radius: 28px; background: #e0ded6; }

/* Industries: pastel cards in a row that scrolls sideways (clay-sol-row). */
.c-work { padding: clamp(96px, 10vw, 150px) var(--gut) 0; }
.c-work .project-carousel-controls { display: flex; align-items: center; gap: 8px; }
.c-work .project-carousel-controls[hidden] { display: none; }
.c-work .project-position { margin-right: 6px; color: var(--muted); font-size: 0.875rem; }
.c-work .project-carousel-controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-warm); font-size: 1.1rem; }
.c-work .project-carousel-controls button:not(:disabled):hover { background: #e3e1d9; }
.c-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, calc((100% - 32px) / 3.3), 440px);
  gap: 16px;
  margin: 48px calc(-1 * var(--gut)) 0 0;
  padding: 0 var(--gut) 8px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.c-row::-webkit-scrollbar { display: none; }
.c-row > article { scroll-snap-align: start; }
.c-row [data-tone="blue"] { --bg: #eef6ff; --tone: #3a5af9; --deep: #0f1c4d; }
.c-row [data-tone="peach"] { --bg: #fcf1ea; --tone: #b8430f; --deep: #3a1405; }
.c-row [data-tone="lime"] { --bg: #f4f7e2; --tone: #55720b; --deep: #1f2a05; }
.c-row [data-tone="pink"] { --bg: #fcf0f4; --tone: #c0306a; --deep: #3d0a20; }
.c-card {
  position: relative;
  display: grid;
  align-content: start;
  height: 100%;
  padding: 12px 12px 24px;
  border-radius: 28px;
  background: var(--bg);
  color: var(--deep);
  transition: background 0.18s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.c-tag {
  justify-self: start;
  margin: 0 0 0.6rem 12px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--tone);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.c-card video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; margin-bottom: 0.9rem; background: #d9d7d0; }
.c-card h3 { padding: 0 44px 0 12px; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.c-card h3 em { font-style: normal; color: var(--tone); }
.c-arrow { position: absolute; right: 24px; bottom: 24px; font-size: 1.1rem; transition: transform 0.18s; }
@media (hover: hover) and (pointer: fine) {
  .c-card:hover { background: color-mix(in srgb, var(--bg) 90%, var(--tone)); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.35); }
  .c-card:hover .c-arrow { transform: translateX(3px); }
}

/* Two ticker rows: small untilted pills in the industry tones with plain connector
   words between them (townloom clay-tickers / clay-pill / clay-tick-word). */
.c-tickers {
  display: grid;
  gap: 4px;
  margin-top: clamp(72px, 8vw, 120px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.c-ticker { overflow: hidden; padding-block: 6px; }
.c-ticker-track { display: flex; align-items: center; width: max-content; }
.c-ticker-track > * { margin-right: clamp(10px, 1.4vw, 18px); white-space: nowrap; }
.c-pill {
  padding: 0.5em 1em 0.55em;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font: 700 clamp(1rem, 1.5vw, 1.3rem)/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
}
/* the industry card tones, in turn */
.c-pill-0 { --bg: #eef6ff; --accent: #3a5af9; }
.c-pill-1 { --bg: #fcf0f4; --accent: #c0306a; }
.c-pill-2 { --bg: #fcf1ea; --accent: #b8430f; }
.c-pill-3 { --bg: #f4f7e2; --accent: #55720b; }
.c-tick-word { color: var(--ink-soft); font-size: clamp(0.95rem, 1.3vw, 1.15rem); }
@keyframes clay-tick { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .c-ticker-track { animation: clay-tick 38s linear infinite; }
  .c-ticker-rev { animation-direction: reverse; animation-duration: 46s; }
  .c-tickers:hover .c-ticker-track { animation-play-state: paused; }
}

/* How we work: warm panel with white step cards (clay-scene). */
.c-scene {
  margin: clamp(72px, 8vw, 120px) var(--gut) 0;
  padding: var(--pad);
  border-radius: var(--r-xl);
  background: var(--c-warm);
}
.c-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.c-steps li { padding: 24px; border-radius: 20px; background: #fff; }
.c-steps h3 { margin-top: 0.75rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.c-steps p { margin-top: 0.5rem; color: var(--muted); }

/* Start and contact: big heading left, white form card right (clay-final). */
.c-final {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(96px, 10vw, 150px) calc(var(--gut) + 24px) 0;
}
.c-final-head .c-sub { margin-top: 1.5rem; }
.c-final-head .c-actions { margin-top: 2rem; }
.c-call { max-width: 34rem; margin-top: 2.5rem; padding: 24px; border-radius: 20px; background: var(--c-warm); }
.c-call strong { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 1.125rem; }
.c-call p { color: var(--muted); }
.c-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 0; padding: 0; list-style: none; }
.c-path li { display: grid; align-content: start; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.c-path span { color: var(--c-teal); font-size: 0.8125rem; font-weight: 600; }
.c-path strong { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; }
.c-path p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.c-form-card { padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -30px rgb(10 10 10 / 0.35), 0 0 0 1px var(--line); }
.c-form-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.c-form-intro { margin: 0.5rem 0 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.home-clay .contact-form > p:first-child { margin-bottom: 18px; }
.home-clay .contact-field { margin-bottom: 18px; }
.home-clay .contact-field label { font-weight: 500; }
.home-clay .contact-field input, .home-clay .contact-field textarea { border: 1px solid transparent; border-radius: 12px; background: var(--c-warm); }
.home-clay .contact-field input:focus, .home-clay .contact-field textarea:focus { border-color: #b9b6ad; background: #fff; }
.home-clay .contact-field textarea { min-height: 140px; }
.home-clay .contact-form .btn { width: 100%; }
.home-clay .contact-thanks { border-radius: 20px; background: var(--c-warm); }
.home-clay .calendly-wrap { grid-column: 1 / -1; }
.home-clay .calendly-wrap.is-hydrated .calendly-inline-widget { border: 0; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }

/* Motion, ported from townloom (styles.css .tl-in / Write / tl-blow). Content stays
   visible without JS: these only run once clay.js marks a block .tl-in. */
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tl-word { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tl-in { animation: tl-arrive 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  [data-reveal="pop"].tl-in { animation: tl-blow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: var(--d, 0ms); }
  [data-reveal="write"].tl-in { animation: none; }
  [data-reveal="write"] .tl-ch { opacity: 0; }
  .tl-in .tl-ch { animation: tl-type 34ms linear calc(150ms + var(--i) * 34ms) both; }
  .tl-in .tl-ch.tl-last { animation: tl-type-last 1.8s linear calc(150ms + var(--i) * 34ms) both; }
}
@keyframes tl-type {
  0% { opacity: 0; }
  1%, 99% { opacity: 1; box-shadow: 0.06em 0 currentColor; }
  100% { opacity: 1; }
}
@keyframes tl-type-last {
  0% { opacity: 0; }
  1%, 20%, 45%, 70% { opacity: 1; box-shadow: 0.06em 0 currentColor; }
  21%, 44%, 71%, 100% { opacity: 1; box-shadow: none; }
}
@keyframes tl-arrive { from { opacity: 0.35; transform: translateY(16px); } }
@keyframes tl-blow {
  0% { opacity: 0; transform: scale(0.9); }
  68% { opacity: 1; transform: scale(1.02); }
  100% { transform: none; }
}

/* tablet */
@media (max-width: 1100px) {
  .c-hero-row { flex-direction: column; align-items: flex-start; padding-bottom: 130px; }
  .c-proof, .c-final { grid-template-columns: 1fr; }
  .c-form-card { max-width: 560px; }
  .c-steps { grid-template-columns: repeat(2, 1fr); }
}

/* phone */
@media (max-width: 640px) {
  .c-hero { min-height: 860px; }  /* townloom uses 700px; our longer copy needs room so the title lands in the scrim */
  .c-hero-bg { object-position: 60% 30%; }
  .c-hero::after { background: linear-gradient(to top, #fff 0%, rgb(255 255 255 / 0.9) 50%, rgb(255 255 255 / 0.3) 78%, transparent 92%); }
  .c-hero-row { padding: 0 20px 110px; }
  .c-hero-side > p:first-child { font-size: 1.125rem; }
  .c-actions .btn { flex: 1 1 auto; }
  .c-proof { padding: 28px 20px 20px; }
  .c-stats { grid-template-columns: 1fr; }
  .c-row { grid-auto-columns: 82%; }
  .c-work .project-carousel-controls { display: none; }
  /* the six steps swipe sideways instead of stacking into one long column */
  .c-steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scroll-padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .c-steps li { scroll-snap-align: start; }
  .c-final { padding-inline: 20px; }
  .c-path { grid-template-columns: 1fr; }
  .c-form-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-clay *, .home-clay *::before, .home-clay *::after { transition: none !important; }
}
