/* /toronto-ai-agency. Borrowed format: the city section of a newspaper.
   A night-street hero, then one chapter per district with its own photo, the
   905 as a city index, the price list and a Toronto-team section. Prefix ta-. */
.ta-page {
  --ta-paper: #f3efe7;
  --ta-white: #fcfaf5;
  --ta-ink: #16191d;
  --ta-muted: #555a5f;
  --ta-line: #d5cfc3;
  --ta-red: #c7372c;
  --ta-red-deep: #9d2a21;
  --ta-gold: #e0b35c;
  --ta-night: #0f1317;
  --ta-night-text: #c9cfd3;
  background: var(--ta-paper);
  color: var(--ta-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.64;
  overflow-x: clip;
}
.ta-page * { box-sizing: border-box; }
.ta-page ::selection { background: #f4c6c1; color: var(--ta-ink); }
.ta-page :focus-visible { outline: 2px solid var(--ta-gold); outline-offset: 4px; border-radius: 3px; }
.ta-page a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:where(.ta-page) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.ta-page) :where(ul, ol) { padding: 0; list-style: none; }
.ta-page h1, .ta-page h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.ta-page h2 { font-size: clamp(2.2rem, 3.8vw, 3.7rem); line-height: 1.04; }
.ta-page h2 em { font-style: italic; font-weight: 400; color: var(--ta-red-deep); }
.ta-page h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.ta-wrap { width: min(100%, 1300px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.ta-arrow { flex: none; }
.ta-head { max-width: 760px; }
.ta-head > p { margin-top: 16px; font-size: 18px; color: var(--ta-muted); }

.ta-page .ta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.ta-page .ta-btn-gold { background: var(--ta-gold); color: var(--ta-night); }
.ta-page .ta-btn-gold:hover { background: #efc778; transform: translateY(-1px); }
.ta-page .ta-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.4); color: #f5f1e8; }
.ta-page .ta-btn-ghost:hover { border-color: var(--ta-gold); color: var(--ta-gold); }
.ta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.ta-hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: calc(104px + 48px) 0 clamp(48px, 7vw, 88px); color: #f5f1e8; background: var(--ta-night); }
.ta-hero-photo { position: absolute; inset: 0; z-index: -1; }
.ta-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.ta-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 13, 16, 0.92) 0%, rgba(10, 13, 16, 0.72) 42%, rgba(10, 13, 16, 0.15) 75%), linear-gradient(0deg, rgba(10, 13, 16, 0.85) 0%, transparent 45%); }
.ta-hero-inner { width: min(100%, 1300px); }
.ta-crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--ta-night-text); }
.ta-crumbs a { text-decoration: none; }
.ta-crumbs a:hover { text-decoration: underline; }
.ta-page h1 { margin-top: 22px; max-width: 13ch; font-size: clamp(3.2rem, 6.6vw, 6.6rem); line-height: 0.95; }
.ta-page h1 em { display: block; font-style: italic; font-weight: 400; color: var(--ta-gold); }
.ta-kicker { display: block; margin-bottom: 20px; font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ta-gold); }
.ta-lead { margin-top: 24px; max-width: 50ch; font-size: 19px; line-height: 1.58; color: #dfe3e5; }
.ta-hero .ns-trustline { margin-top: 22px !important; }

/* Intro */
.ta-intro { padding: clamp(64px, 8vw, 112px) 0; background: var(--ta-white); border-bottom: 1px solid var(--ta-line); }
.ta-intro-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.ta-intro-grid p { font-size: 18px; color: var(--ta-muted); }
.ta-intro-grid p + p { margin-top: 16px; }

/* Districts */
.ta-district { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--ta-line); }
.ta-district:nth-child(even) { background: var(--ta-white); }
.ta-district-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ta-district:nth-child(even) .ta-district-photo { order: 2; }
.ta-district-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 80px -48px rgba(22, 25, 29, 0.6); }
.ta-district-num { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ta-red-deep); }
.ta-district-copy h2 { margin-top: 10px; font-size: clamp(2rem, 3.2vw, 3rem); }
.ta-customer { margin-top: 18px; font-family: var(--font-serif); font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.38; font-style: italic; }
.ta-build { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ta-line); }
.ta-build-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ta-build p:last-child { margin-top: 6px; color: var(--ta-muted); font-size: 16px; }
.ta-district-offers { margin-top: 18px; display: grid; gap: 8px; }
.ta-district-offers a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border: 1px solid var(--ta-line); border-radius: 10px; background: var(--ta-paper); text-decoration: none; transition: border-color .2s ease; }
.ta-district:nth-child(even) .ta-district-offers a { background: var(--ta-white); }
.ta-district-offers a:hover { border-color: var(--ta-red); }
.ta-district-offers span { font-weight: 700; }
.ta-district-offers strong { font-weight: 600; color: var(--ta-red-deep); }
.ta-district-links { margin-top: 14px; font-size: 14.5px; color: var(--ta-muted); }
.ta-district-links a { font-weight: 700; color: var(--ta-ink); }

/* The 905 */
.ta-outside { padding: clamp(64px, 8vw, 112px) 0; background: var(--ta-night); color: #f5f1e8; }
.ta-outside-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.ta-outside .ta-district-num { color: var(--ta-gold); }
.ta-outside h2 { margin-top: 10px; }
.ta-outside p { margin-top: 16px; color: var(--ta-night-text); max-width: 52ch; }
.ta-outside-more a { color: #fff; font-weight: 700; }
.ta-city-list { border-top: 1px solid rgba(224, 179, 92, 0.35); }
.ta-city-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid rgba(224, 179, 92, 0.35); font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-decoration: none; transition: color .2s ease, padding .2s ease; }
.ta-city-list a:hover { color: var(--ta-gold); padding-inline: 12px; }

/* Prices */
.ta-prices { padding: clamp(72px, 9vw, 120px) 0; }
.ta-price-list { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ta-ink); }
.ta-price-list a { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 6px 28px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--ta-line); text-decoration: none; transition: background-color .2s ease; }
.ta-price-list a:hover { background: var(--ta-white); }
.ta-price-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }
.ta-price-line { font-size: 15.5px; color: var(--ta-muted); }
.ta-price-figure { text-align: right; font-weight: 700; color: var(--ta-red-deep); }
.ta-price-managed .ta-price-name { color: var(--ta-red-deep); }

/* Toronto team */
.ta-local { padding: clamp(72px, 9vw, 120px) 0; background: var(--ta-white); border-block: 1px solid var(--ta-line); }
.ta-local-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ta-founder img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 4px; }
.ta-founder figcaption { margin-top: 12px; display: grid; font-size: 14px; color: var(--ta-muted); }
.ta-founder figcaption strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ta-ink); }
.ta-reasons { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--ta-line); padding-top: 24px; }
.ta-reasons p { margin-top: 8px; font-size: 15.5px; color: var(--ta-muted); }
.ta-local-link { margin-top: 28px; font-weight: 700; }

/* Voices */
.ta-voices { padding: clamp(64px, 8vw, 104px) 0; }
.ta-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.ta-quotes blockquote { font-family: var(--font-serif); font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-style: italic; line-height: 1.3; }
.ta-quotes p { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ta-muted); }
.ta-voices-more { margin-top: 30px; }
.ta-voices-more a { font-weight: 700; }

/* FAQ */
.ta-faq { padding: clamp(64px, 8vw, 112px) 0; background: var(--ta-white); border-top: 1px solid var(--ta-line); }
.ta-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ta-faq-list details { border-bottom: 1px solid var(--ta-line); }
.ta-faq-list details:first-child { border-top: 1px solid var(--ta-line); }
.ta-faq-list summary { cursor: pointer; list-style: none; position: relative; padding: 22px 36px 22px 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.ta-faq-list summary::-webkit-details-marker { display: none; }
.ta-faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--font-sans); font-size: 26px; font-weight: 300; color: var(--ta-red); transition: transform .2s ease; }
.ta-faq-list details[open] summary::after { transform: rotate(45deg); }
.ta-faq-list details p { padding-bottom: 24px; font-size: 16.5px; color: var(--ta-muted); max-width: 62ch; }
.ta-spine { padding: 40px 0; }

/* Close */
.ta-close { padding: clamp(72px, 9vw, 120px) 0; background: var(--ta-night); color: #f5f1e8; text-align: center; }
.ta-close-inner { display: grid; justify-items: center; }
.ta-close p { margin-top: 16px; font-size: 18px; color: var(--ta-night-text); max-width: 52ch; }
.ta-close .ta-actions { justify-content: center; }

@media (max-width: 900px) {
  .ta-intro-grid, .ta-district-grid, .ta-outside-grid, .ta-local-grid, .ta-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .ta-district:nth-child(even) .ta-district-photo { order: 0; }
  .ta-reasons, .ta-quotes { grid-template-columns: minmax(0, 1fr); }
  .ta-price-list a { grid-template-columns: minmax(0, 1fr); }
  .ta-price-figure { text-align: left; }
  .ta-founder { max-width: 280px; }
  .ta-hero { min-height: 0; }
  .ta-hero-photo::after { background: linear-gradient(0deg, rgba(10, 13, 16, 0.95) 20%, rgba(10, 13, 16, 0.55) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ta-page .ta-btn, .ta-city-list a, .ta-faq-list summary::after { transition: none; }
}
